当前位置: 技术问答>java相关
j2ee服务器启动失败!
来源: 互联网 发布时间:2015-10-08
本文导语: 在dos窗口输入j2ee -verbose 怎么出现一下错误?是什么原因,请各位指点。 谢谢! J2EE server listen port:1050 Naming server started :1050 Exception in thread "main" java.lang.NoSuchMethodError at om.sun.corba.ee.internal.corba.AnyImpl.createTypeC...
在dos窗口输入j2ee -verbose
怎么出现一下错误?是什么原因,请各位指点。
谢谢!
J2EE server listen port:1050
Naming server started :1050
Exception in thread "main" java.lang.NoSuchMethodError
at om.sun.corba.ee.internal.corba.AnyImpl.createTypeCodeForClass(AnyImpl.java:1256)
at com.sun.corba.ee.internal.iiop.ShutdownUtilDelegate.createTypeCode(ShutdownUtilDelegate.java:223)
at com.sun.corba.ee.internal.iiop.ShutdownUtilDelegate.writeAny(ShutdownUtilDelegate.java:178)
at javax.rmi.CORBA.Util.writeAny(Util.java:80)
at org.omg.stub.com.sun.enterprise.naming._SerialContextProvider_Stub.rebind(Unknown Source)
at com.sun.enterprise.naming.SerialContext.rebind(SerialContext.java:188)
at com.sun.enterprise.naming.SerialContext.rebind(SerialContext.java:202)
at javax.naming.InitialContext.rebind(InitialContext.java:370)
at com.sun.enterprise.naming.NamingManagerImpl.publishObject(NamingManagerImpl.java:192)
at com.sun.enterprise.naming.NamingManagerImpl.publishObject(NamingManagerImpl.java:149)
at com.sun.enterprise.server.J2EEServer.bindObject(J2EEServer.java:718)
at com.sun.enterprise.server.J2EEServer.createServerObject(J2EEServer.java:473)
at com.sun.enterprise.server.J2EEServer.run(J2EEServer.java:244)
at com.sun.enterprise.server.J2EEServer.main(J2EEServer.java:972)
怎么出现一下错误?是什么原因,请各位指点。
谢谢!
J2EE server listen port:1050
Naming server started :1050
Exception in thread "main" java.lang.NoSuchMethodError
at om.sun.corba.ee.internal.corba.AnyImpl.createTypeCodeForClass(AnyImpl.java:1256)
at com.sun.corba.ee.internal.iiop.ShutdownUtilDelegate.createTypeCode(ShutdownUtilDelegate.java:223)
at com.sun.corba.ee.internal.iiop.ShutdownUtilDelegate.writeAny(ShutdownUtilDelegate.java:178)
at javax.rmi.CORBA.Util.writeAny(Util.java:80)
at org.omg.stub.com.sun.enterprise.naming._SerialContextProvider_Stub.rebind(Unknown Source)
at com.sun.enterprise.naming.SerialContext.rebind(SerialContext.java:188)
at com.sun.enterprise.naming.SerialContext.rebind(SerialContext.java:202)
at javax.naming.InitialContext.rebind(InitialContext.java:370)
at com.sun.enterprise.naming.NamingManagerImpl.publishObject(NamingManagerImpl.java:192)
at com.sun.enterprise.naming.NamingManagerImpl.publishObject(NamingManagerImpl.java:149)
at com.sun.enterprise.server.J2EEServer.bindObject(J2EEServer.java:718)
at com.sun.enterprise.server.J2EEServer.createServerObject(J2EEServer.java:473)
at com.sun.enterprise.server.J2EEServer.run(J2EEServer.java:244)
at com.sun.enterprise.server.J2EEServer.main(J2EEServer.java:972)
|
需要设置的幻境变量:
path,classpath,JAVA_HOME,J2EE_HOME
path,classpath,JAVA_HOME,J2EE_HOME
|
JAVA_HOME The location of the J2SE SDK installation
J2EE_HOME The location of the J2EE SDK installation
ANT_HOME The location of the ant installation
PATH Should include the bin directories of the J2EE SDK, J2SE, and ant installations
J2EE_HOME The location of the J2EE SDK installation
ANT_HOME The location of the ant installation
PATH Should include the bin directories of the J2EE SDK, J2SE, and ant installations
|
你用的是JDK1.3.0吧,换成JDK1.3.1就行了。
|
应该是你的JDK版本低,最少要用1.3.1 ;1.3.0肯定是不行的
|
环境变量你设置好了吗?
|
jdk1.3可以的,不需要jsk1,.4