当前位置: 技术问答>java相关
HELP!!关于运行j2ee -verboss 无法正确运行的问题!
来源: 互联网 发布时间:2015-04-02
本文导语: o.以前装的是j2sdkee1.2.1,运行j2ee一切正常。 a.今天我下了一个j2ee1.3.1,打算升级; b.在安装j2ee1.3.1之前先在控制面板->删除程序中将j2ee1.2.1卸载; c.接着便安装j2ee1.3.1; d.安装完成后我把环境变量(包括J2EE_HOME,classp...
o.以前装的是j2sdkee1.2.1,运行j2ee一切正常。
a.今天我下了一个j2ee1.3.1,打算升级;
b.在安装j2ee1.3.1之前先在控制面板->删除程序中将j2ee1.2.1卸载;
c.接着便安装j2ee1.3.1;
d.安装完成后我把环境变量(包括J2EE_HOME,classpath,PATH)的路径相应更新;
e.之后我便尝试运行j2ee -verboss
以下是运行命令行结果:
J2EE server listen port:1050
Naming service started:1050
Expception in thread "main" java.lang.NoSuchMethodError
at com.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.jar路径,可我在环境变量中classpath明明有阿!而且以前1.2.1是一切顺利的牙!这是怎么回事呢??!!
a.今天我下了一个j2ee1.3.1,打算升级;
b.在安装j2ee1.3.1之前先在控制面板->删除程序中将j2ee1.2.1卸载;
c.接着便安装j2ee1.3.1;
d.安装完成后我把环境变量(包括J2EE_HOME,classpath,PATH)的路径相应更新;
e.之后我便尝试运行j2ee -verboss
以下是运行命令行结果:
J2EE server listen port:1050
Naming service started:1050
Expception in thread "main" java.lang.NoSuchMethodError
at com.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.jar路径,可我在环境变量中classpath明明有阿!而且以前1.2.1是一切顺利的牙!这是怎么回事呢??!!
|
关注