T
top05
Unregistered / Unconfirmed
GUEST, unregistred user!
在 JBuilder4 中开发 EJB 应用
参考 JBuilder4 开发文档,我使用 JBuilder4 的 Wizard 创建了一个没有手写任何代码的 stateless session bean ,
在配置完 deployment descriptor 后,在 VisiBroker 中布署 EJB ,
当点击“Run”后,message tab 中显示出异常,信息如下:
E:/JBuilder4/ias/bin/java2iiop -VBJclasspath "e:/work/aohao/aohaoBean/classes;E:/JBuilder4/ias/lib/vbdev.jar;E:/JBuilder4/ias/lib/vbejb.jar;E:/JBuilder4/ias/lib/vbjdev.jar;E:/JBuilder4/ias/lib/vbjorb.jar;E:/JBuilder4/ias/lib/navigator.jar;E:/JBuilder4/ias/lib/ias.jar;E:/JBuilder4/ias/lib/jmclient.jar;E:/JBuilder4/ias/lib/jmserver.jar;E:/JBuilder4/ias/lib/migration.jar;E:/JBuilder4/ias/lib/pjbean.jar;E:/JBuilder4/ias/lib/servlet.jar;E:/JBuilder4/jdk1.3/demo/jfc/Java2D/Java2Demo.jar;E:/JBuilder4/jdk1.3/jre/lib/i18n.jar;E:/JBuilder4/jdk1.3/jre/lib/jaws.jar;E:/JBuilder4/jdk1.3/jre/lib/rt.jar;E:/JBuilder4/jdk1.3/jre/lib/sunrsasign.jar;E:/JBuilder4/jdk1.3/lib/dt.jar;E:/JBuilder4/jdk1.3/lib/tools.jar" -no_examples -no_tie -no_comments -root_dir "e:/work/aohao/aohaoBean/classes/Temporary_Files" aohaobean.FirstHome
"FirstHome.java": Can't find class java.lang.NoClassDefFoundError. (Wrong class path?)
此时我注意到,在 Container 启动和布署 EJB 的过程中也出现了布署异常,如下附:
FirstHelper 类是什么,是否是我的一些 jar 包没有包含进去呢?
另外我注意到 project 中同时生成了 ClassLoader Container URLClassLoader 三个类,这三个类究竟起什么作用呢?
请各位高手指点,谢谢!
/////// ** Container 启动信息 ** //////////////////////////////////////////////////////////
E:/JBuilder4/jdk1.3/bin/javaw -classpath "E:/JBuilder4/ias/lib/navigator.jar;E:/JBuilder4/ias/lib/vbdev.jar;E:/JBuilder4/ias/lib/vbejb.jar;E:/JBuilder4/ias/lib/vbjdev.jar;E:/JBuilder4/ias/lib/vbjorb.jar;e:/work/aohao/aohaoBean/classes;E:/JBuilder4/ias/lib/ias.jar;E:/JBuilder4/ias/lib/jmclient.jar;E:/JBuilder4/ias/lib/jmserver.jar;E:/JBuilder4/ias/lib/migration.jar;E:/JBuilder4/ias/lib/pjbean.jar;E:/JBuilder4/ias/lib/servlet.jar;E:/JBuilder4/jdk1.3/demo/jfc/Java2D/Java2Demo.jar;E:/JBuilder4/jdk1.3/jre/lib/i18n.jar;E:/JBuilder4/jdk1.3/jre/lib/jaws.jar;E:/JBuilder4/jdk1.3/jre/lib/rt.jar;E:/JBuilder4/jdk1.3/jre/lib/sunrsasign.jar;E:/JBuilder4/jdk1.3/lib/dt.jar;E:/JBuilder4/jdk1.3/lib/tools.jar" com.inprise.ejb.Container ejbcontainer "E:/work/aohao/aohaoBean/aohaoBean.jar" -jts -jns -jss -jdb
Inprise EJB Container
=====================
server version : 4.1.1
server build date : Aug 18, 2000
java version : 1.3.0
java vendor : Sun Microsystems Inc.
heap size : 1984 Kb
java class path : E:/JBuilder4/ias/lib/navigator.jar
: E:/JBuilder4/ias/lib/vbdev.jar
: E:/JBuilder4/ias/lib/vbejb.jar
: E:/JBuilder4/ias/lib/vbjdev.jar
: E:/JBuilder4/ias/lib/vbjorb.jar
: e:/work/aohao/aohaoBean/classes
: E:/JBuilder4/ias/lib/ias.jar
: E:/JBuilder4/ias/lib/jmclient.jar
: E:/JBuilder4/ias/lib/jmserver.jar
: E:/JBuilder4/ias/lib/migration.jar
: E:/JBuilder4/ias/lib/pjbean.jar
: E:/JBuilder4/ias/lib/servlet.jar
: E:/JBuilder4/jdk1.3/demo/jfc/Java2D/Java2Demo.jar
: E:/JBuilder4/jdk1.3/jre/lib/i18n.jar
: E:/JBuilder4/jdk1.3/jre/lib/jaws.jar
: E:/JBuilder4/jdk1.3/jre/lib/rt.jar
: E:/JBuilder4/jdk1.3/jre/lib/sunrsasign.jar
: E:/JBuilder4/jdk1.3/lib/dt.jar
: E:/JBuilder4/jdk1.3/lib/tools.jar
=====================
Initializing ORB.....do
ne
Initializing JNS.....do
ne
Initializing JTS....do
ne
Initializing JSS...Developer's License (no connection limit)
Copyright (c) 1996-2000 Inprise Corporation. All rights reserved.
License for JDataStore development only - not for redistribution
Registered to:
Inprise Application Server Development Licensee
Inprise Application Server Customer
.do
ne
Initializing JDB.....do
ne
Initializing EJBs....java.lang.ClassNotFoundException: aohaobean.FirstHelper
at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:297)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:286)
at java.lang.ClassLoader.loadClass(ClassLoader.java:253)
at java.lang.ClassLoader.findSystemClass(ClassLoader.java:620)
at com.inprise.ejb.util.ClassLoaderDriver$LocalClassLoader.loadClass(ClassLoaderDriver.java:472)
at java.lang.ClassLoader.loadClass(ClassLoader.java:253)
at com.inprise.ejb.Global.loadClass(Global.java:116)
at com.inprise.ejb.EJBHome.<init>(EJBHome.java:75)
at com.inprise.ejb.StatelessSessionHome.<init>(StatelessSessionHome.java:14)
at com.inprise.ejb.Container.load(Container.java:854)
at com.inprise.ejb.Container.run(Container.java:597).
at com.inprise.ejb.Container.run(Container.java:1241)
at com.inprise.ejb.Container.main(Container.java:1246)
>>>> EJB LOG >>>>
Could not deploy ejb-jar E:/work/aohao/aohaoBean/aohaoBean.jar
java.lang.Error: Invalid helper class: aohaobean.FirstHelper
at com.inprise.ejb.EJBHome.<init>(EJBHome.java:82)
at com.inprise.ejb.StatelessSessionHome.<init>(StatelessSessionHome.java:14)
at com.inprise.ejb.Container.load(Container.java:854)
at com.inprise.ejb.Container.run(Container.java:597)
at com.inprise.ejb.Container.run(Container.java:1241)Undoing effects of a partial deployment ...
Jar name = E:/work/aohao/aohaoBean/aohaoBean.jar
The home name is : FirstHome
.do
ne
Container [ejbcontainer] is ready
at com.inprise.ejb.Container.main(Container.java:1246)
<<<< EJB LOG <<<<
EJB Container Statistics
========================
Time Sun Mar 26 10:09:44 CST 2000
Memory (used) 999 Kb (max 999 Kb)
Memory (total) 2088 Kb (max 2088 Kb)
Memory (free) 52.0%
------------------------
Home FirstHome
Total in memory 0
Total in use 0
========================
参考 JBuilder4 开发文档,我使用 JBuilder4 的 Wizard 创建了一个没有手写任何代码的 stateless session bean ,
在配置完 deployment descriptor 后,在 VisiBroker 中布署 EJB ,
当点击“Run”后,message tab 中显示出异常,信息如下:
E:/JBuilder4/ias/bin/java2iiop -VBJclasspath "e:/work/aohao/aohaoBean/classes;E:/JBuilder4/ias/lib/vbdev.jar;E:/JBuilder4/ias/lib/vbejb.jar;E:/JBuilder4/ias/lib/vbjdev.jar;E:/JBuilder4/ias/lib/vbjorb.jar;E:/JBuilder4/ias/lib/navigator.jar;E:/JBuilder4/ias/lib/ias.jar;E:/JBuilder4/ias/lib/jmclient.jar;E:/JBuilder4/ias/lib/jmserver.jar;E:/JBuilder4/ias/lib/migration.jar;E:/JBuilder4/ias/lib/pjbean.jar;E:/JBuilder4/ias/lib/servlet.jar;E:/JBuilder4/jdk1.3/demo/jfc/Java2D/Java2Demo.jar;E:/JBuilder4/jdk1.3/jre/lib/i18n.jar;E:/JBuilder4/jdk1.3/jre/lib/jaws.jar;E:/JBuilder4/jdk1.3/jre/lib/rt.jar;E:/JBuilder4/jdk1.3/jre/lib/sunrsasign.jar;E:/JBuilder4/jdk1.3/lib/dt.jar;E:/JBuilder4/jdk1.3/lib/tools.jar" -no_examples -no_tie -no_comments -root_dir "e:/work/aohao/aohaoBean/classes/Temporary_Files" aohaobean.FirstHome
"FirstHome.java": Can't find class java.lang.NoClassDefFoundError. (Wrong class path?)
此时我注意到,在 Container 启动和布署 EJB 的过程中也出现了布署异常,如下附:
FirstHelper 类是什么,是否是我的一些 jar 包没有包含进去呢?
另外我注意到 project 中同时生成了 ClassLoader Container URLClassLoader 三个类,这三个类究竟起什么作用呢?
请各位高手指点,谢谢!
/////// ** Container 启动信息 ** //////////////////////////////////////////////////////////
E:/JBuilder4/jdk1.3/bin/javaw -classpath "E:/JBuilder4/ias/lib/navigator.jar;E:/JBuilder4/ias/lib/vbdev.jar;E:/JBuilder4/ias/lib/vbejb.jar;E:/JBuilder4/ias/lib/vbjdev.jar;E:/JBuilder4/ias/lib/vbjorb.jar;e:/work/aohao/aohaoBean/classes;E:/JBuilder4/ias/lib/ias.jar;E:/JBuilder4/ias/lib/jmclient.jar;E:/JBuilder4/ias/lib/jmserver.jar;E:/JBuilder4/ias/lib/migration.jar;E:/JBuilder4/ias/lib/pjbean.jar;E:/JBuilder4/ias/lib/servlet.jar;E:/JBuilder4/jdk1.3/demo/jfc/Java2D/Java2Demo.jar;E:/JBuilder4/jdk1.3/jre/lib/i18n.jar;E:/JBuilder4/jdk1.3/jre/lib/jaws.jar;E:/JBuilder4/jdk1.3/jre/lib/rt.jar;E:/JBuilder4/jdk1.3/jre/lib/sunrsasign.jar;E:/JBuilder4/jdk1.3/lib/dt.jar;E:/JBuilder4/jdk1.3/lib/tools.jar" com.inprise.ejb.Container ejbcontainer "E:/work/aohao/aohaoBean/aohaoBean.jar" -jts -jns -jss -jdb
Inprise EJB Container
=====================
server version : 4.1.1
server build date : Aug 18, 2000
java version : 1.3.0
java vendor : Sun Microsystems Inc.
heap size : 1984 Kb
java class path : E:/JBuilder4/ias/lib/navigator.jar
: E:/JBuilder4/ias/lib/vbdev.jar
: E:/JBuilder4/ias/lib/vbejb.jar
: E:/JBuilder4/ias/lib/vbjdev.jar
: E:/JBuilder4/ias/lib/vbjorb.jar
: e:/work/aohao/aohaoBean/classes
: E:/JBuilder4/ias/lib/ias.jar
: E:/JBuilder4/ias/lib/jmclient.jar
: E:/JBuilder4/ias/lib/jmserver.jar
: E:/JBuilder4/ias/lib/migration.jar
: E:/JBuilder4/ias/lib/pjbean.jar
: E:/JBuilder4/ias/lib/servlet.jar
: E:/JBuilder4/jdk1.3/demo/jfc/Java2D/Java2Demo.jar
: E:/JBuilder4/jdk1.3/jre/lib/i18n.jar
: E:/JBuilder4/jdk1.3/jre/lib/jaws.jar
: E:/JBuilder4/jdk1.3/jre/lib/rt.jar
: E:/JBuilder4/jdk1.3/jre/lib/sunrsasign.jar
: E:/JBuilder4/jdk1.3/lib/dt.jar
: E:/JBuilder4/jdk1.3/lib/tools.jar
=====================
Initializing ORB.....do
ne
Initializing JNS.....do
ne
Initializing JTS....do
ne
Initializing JSS...Developer's License (no connection limit)
Copyright (c) 1996-2000 Inprise Corporation. All rights reserved.
License for JDataStore development only - not for redistribution
Registered to:
Inprise Application Server Development Licensee
Inprise Application Server Customer
.do
ne
Initializing JDB.....do
ne
Initializing EJBs....java.lang.ClassNotFoundException: aohaobean.FirstHelper
at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:297)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:286)
at java.lang.ClassLoader.loadClass(ClassLoader.java:253)
at java.lang.ClassLoader.findSystemClass(ClassLoader.java:620)
at com.inprise.ejb.util.ClassLoaderDriver$LocalClassLoader.loadClass(ClassLoaderDriver.java:472)
at java.lang.ClassLoader.loadClass(ClassLoader.java:253)
at com.inprise.ejb.Global.loadClass(Global.java:116)
at com.inprise.ejb.EJBHome.<init>(EJBHome.java:75)
at com.inprise.ejb.StatelessSessionHome.<init>(StatelessSessionHome.java:14)
at com.inprise.ejb.Container.load(Container.java:854)
at com.inprise.ejb.Container.run(Container.java:597).
at com.inprise.ejb.Container.run(Container.java:1241)
at com.inprise.ejb.Container.main(Container.java:1246)
>>>> EJB LOG >>>>
Could not deploy ejb-jar E:/work/aohao/aohaoBean/aohaoBean.jar
java.lang.Error: Invalid helper class: aohaobean.FirstHelper
at com.inprise.ejb.EJBHome.<init>(EJBHome.java:82)
at com.inprise.ejb.StatelessSessionHome.<init>(StatelessSessionHome.java:14)
at com.inprise.ejb.Container.load(Container.java:854)
at com.inprise.ejb.Container.run(Container.java:597)
at com.inprise.ejb.Container.run(Container.java:1241)Undoing effects of a partial deployment ...
Jar name = E:/work/aohao/aohaoBean/aohaoBean.jar
The home name is : FirstHome
.do
ne
Container [ejbcontainer] is ready
at com.inprise.ejb.Container.main(Container.java:1246)
<<<< EJB LOG <<<<
EJB Container Statistics
========================
Time Sun Mar 26 10:09:44 CST 2000
Memory (used) 999 Kb (max 999 Kb)
Memory (total) 2088 Kb (max 2088 Kb)
Memory (free) 52.0%
------------------------
Home FirstHome
Total in memory 0
Total in use 0
========================