ejb的问题(100分)

  • 主题发起人 主题发起人 dhyzf
  • 开始时间 开始时间
D

dhyzf

Unregistered / Unconfirmed
GUEST, unregistred user!
D:/JBuilder4/jdk1.3/bin/javaw -classpath "D:/Inprise/AppServer/lib/navigator.jar;D:/Inprise/AppServer/lib/vbdev.jar;D:/Inprise/AppServer/lib/vbejb.jar;D:/Inprise/AppServer/lib/vbjdev.jar;D:/Inprise/AppServer/lib/vbjorb.jar;H:/Documents and Settings/Administrator/jbproject/tescro_5/classes;D:/Inprise/AppServer/lib/ias.jar;D:/Inprise/AppServer/lib/jmclient.jar;D:/Inprise/AppServer/lib/jmserver.jar;D:/Inprise/AppServer/lib/migration.jar;D:/Inprise/AppServer/lib/pjbean.jar;D:/Inprise/AppServer/lib/servlet.jar;D:/JBuilder4/jdk1.3/demo/jfc/Java2D/Java2Demo.jar;D:/JBuilder4/jdk1.3/jre/lib/i18n.jar;D:/JBuilder4/jdk1.3/jre/lib/jaws.jar;D:/JBuilder4/jdk1.3/jre/lib/rt.jar;D:/JBuilder4/jdk1.3/jre/lib/sunrsasign.jar;D:/JBuilder4/jdk1.3/lib/dt.jar;D:/JBuilder4/jdk1.3/lib/tools.jar" com.inprise.ejb.Container ejbcontainer "H:/Documents and Settings/Administrator/jbproject/tescro_5/quick.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 : D:/Inprise/AppServer/lib/navigator.jar : D:/Inprise/AppServer/lib/vbdev.jar : D:/Inprise/AppServer/lib/vbejb.jar : D:/Inprise/AppServer/lib/vbjdev.jar : D:/Inprise/AppServer/lib/vbjorb.jar : H:/Documents and Settings/Administrator/jbproject/tescro_5/classes : D:/Inprise/AppServer/lib/ias.jar : D:/Inprise/AppServer/lib/jmclient.jar : D:/Inprise/AppServer/lib/jmserver.jar : D:/Inprise/AppServer/lib/migration.jar : D:/Inprise/AppServer/lib/pjbean.jar : D:/Inprise/AppServer/lib/servlet.jar : D:/JBuilder4/jdk1.3/demo/jfc/Java2D/Java2Demo.jar : D:/JBuilder4/jdk1.3/jre/lib/i18n.jar : D:/JBuilder4/jdk1.3/jre/lib/jaws.jar : D:/JBuilder4/jdk1.3/jre/lib/rt.jar : D:/JBuilder4/jdk1.3/jre/lib/sunrsasign.jar : D:/JBuilder4/jdk1.3/lib/dt.jar : D:/JBuilder4/jdk1.3/lib/tools.jar=====================Initializing ORB........do
neInitializing JNS......do
neInitializing JTS....do
neInitializing JSS...Developer's License (no connection limit)Copyright (c) 1996-2000 Inprise Corporation. All rights reserved.License for JDataStore development only - not for redistributionRegistered to:
Inprise Application Server Development Licensee
Inprise Application Server Customer..do
neInitializing JDB......do
neInitializing EJBs.....java.lang.ClassNotFoundException: tescro_5.CabinHelperat 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.EntityHome.<init>(EntityHome.java:21)at com.inprise.ejb.Container.load(Container.java:858)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 H:/Documents and Settings/Administrator/jbproject/tescro_5/quick.jarjava.lang.Error: Invalid helper class: tescro_5.CabinHelperat com.inprise.ejb.EJBHome.<init>(EJBHome.java:82)at com.inprise.ejb.EntityHome.<init>(EntityHome.java:21)at com.inprise.ejb.Container.load(Container.java:858)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 = H:/Documents and Settings/Administrator/jbproject/tescro_5/quick.jarThe home name is : Cabin.do
neContainer [ejbcontainer] is readyat com.inprise.ejb.Container.main(Container.java:1246)<<<< EJB LOG <<<<EJB Container Statistics
========================
TimeThu Oct 25 22:10:39 CST 2001
Memory (used)1122 Kb(max 1122 Kb)
Memory (total)2152 Kb(max 2152 Kb)
Memory (free)47.0%
------------------------
HomeCabin
Total in memory0
Total in use0
========================


运行客户端程序后是如下所一示:
D:/JBuilder4/jdk1.3/bin/javaw -classpath "H:/Documents and Settings/Administrator/jbproject/tescro_5/classes;D:/Inprise/AppServer/lib/ias.jar;D:/Inprise/AppServer/lib/jmclient.jar;D:/Inprise/AppServer/lib/jmserver.jar;D:/Inprise/AppServer/lib/migration.jar;D:/Inprise/AppServer/lib/navigator.jar;D:/Inprise/AppServer/lib/pjbean.jar;D:/Inprise/AppServer/lib/servlet.jar;D:/Inprise/AppServer/lib/vbdev.jar;D:/Inprise/AppServer/lib/vbejb.jar;D:/Inprise/AppServer/lib/vbjdev.jar;D:/Inprise/AppServer/lib/vbjorb.jar;D:/JBuilder4/jdk1.3/demo/jfc/Java2D/Java2Demo.jar;D:/JBuilder4/jdk1.3/jre/lib/i18n.jar;D:/JBuilder4/jdk1.3/jre/lib/jaws.jar;D:/JBuilder4/jdk1.3/jre/lib/rt.jar;D:/JBuilder4/jdk1.3/jre/lib/sunrsasign.jar;D:/JBuilder4/jdk1.3/lib/dt.jar;D:/JBuilder4/jdk1.3/lib/tools.jar" tescro_5.CabinClient
javax.naming.NameNotFoundException. Root exception is org.omg.CosNaming.NamingContextPackage.NotFoundat org.omg.CosNaming.NamingContextPackage.NotFoundHelper.read(NotFoundHelper.java:34)at org.omg.CosNaming.NamingContextPackage.NotFoundHelper.extract(NotFoundHelper.java:50)at org.omg.CosNaming._NamingContextStub.resolve(_NamingContextStub.java:161)at com.sun.jndi.cosnaming.CNCtx.callResolve(CNCtx.java:324)at com.sun.jndi.cosnaming.CNCtx.lookup(CNCtx.java:373)at com.sun.jndi.cosnaming.CNCtx.lookup(CNCtx.java:351)at javax.naming.InitialContext.lookup(InitialContext.java:350)at javax.naming.InitialContext.lookup(InitialContext.java:350)at tescro_5.CabinClient.<init>(CabinClient.java:19)at tescro_5.CabinClient.main(CabinClient.java:46)

请问这是什么问题!
 
应该是Home接口没有生成stub
 
没有成Helper和Holder类
那应该如何才能生成呢。。
 
在JBuilder中右击Home接口,在菜单里找找,好像有一项是build,里面有一个
generate IIOP的选项,选上试试
 
好像不行啦。我已经选中了它。还存在什么问题吗
 
把新的结果贴出来
 
是EJB没发布吧?
 
就是那上面的代码啦,我本来就是那样运行的,就出现了那些结果,是不是我的ejb的
环境有问题呢,高手指点。
如果我用inprise application server来发布又可以,但不能生成client.jar文件,是什么
回事呢。
 
有没脸知道呢!
 
>java.lang.ClassNotFoundException: tescro_5.CabinHelper
你检查一下生成的ejb-jar文件里面又没有tescro_5.CabinHelper这个类
 
哦,没有,是不是我的应用服务的问题呢!!
要不要进行重装ias 呢!
 
在环境变量Path的设置有问题。
若你装有Delphi时会和Delphi的visibroker有冲突,去掉visibroker的路径,将
Path加入C:/bas45/bin(你的application server安装的路径)放在第一个就可以了。
注意:不能同时有Delphi的visibroker路径。
当用delphi的Corba时,环境变量还得改回来。
我也曾在这个问题上折腾了很久。
 
多人接受答案了。
 
后退
顶部