最近终于下了决心要学习j2ee.看过很多朋友推荐了petstore1.1.2(版本可能比较老了)。于是下了src,在其说明文档里看 安装说明。
原本我装了jsdkse1.6,又按照上面的安装说明下载安装了,jsdkee1.3.1 可问题出来了,启动j2ee server时出现了错误:c:/jsdkee1.3.1/bin/j2ee -verbose
J2EE server listen port: 1050
Exception in thread "main " java.lang.NoClassDefFoundError: com/sun/corba/se/internal/util/IdentityHashtable
at com.sun.corba.ee.internal.javax.rmi.CORBA.Util. <clinit> (Util.java:87)
at com.sun.corba.ee.internal.POA.POAImpl.activate(POAImpl.java:935)
at com.sun.corba.ee.internal.POA.POAImpl.activate_object(POAImpl.java:895)
at com.sun.corba.ee.internal.CosNaming.TransientNameService.initialize(TransientNameService.java:117)
at com.sun.corba.ee.internal.CosNaming.TransientNameService. <init> (TransientNameService.java:70)
at com.sun.enterprise.iiop.POAProtocolMgr.initializeNaming(POAProtocolMgr.java:103)
at com.sun.enterprise.server.J2EEServer.run(J2EEServer.java:226)
at com.sun.enterprise.server.J2EEServer.main(J2EEServer.java:972)
C:/Documents and Settings/Administrator>
在网上搜索很长时间,大家都说时jsdkse和jsdkee版本的问题。那么我们把版本变一下看看效果