请教jbuilder+weblogic的问题!!

03-09-08 cl007
我用jbuilder写了一个最简单的session bean,为什么编译不成功,错误如下:

"session.ejbgrpx": D:\Program Files\JBuilder6\jdk1.3.1\bin\javaw -classpath "E:\project\jbuilder\ejb\test\classes;C:\bea\wlserver6.1\lib\weblogic_sp.jar;C:\bea\wlserver6.1\lib\weblogic.jar;D:\Program Files\JBuilder6\lib\jbuilder.jar;D:\Program Files\JBuilder6\lib\help.jar;D:\Program Files\JBuilder6\lib\gnuregexp.jar;D:\Program Files\JBuilder6\jdk1.3.1\demo\jfc\Java2D\Java2Demo.jar;D:\Program Files\JBuilder6\jdk1.3.1\jre\lib\i18n.jar;D:\Program Files\JBuilder6\jdk1.3.1\jre\lib\jaws.jar;D:\Program Files\JBuilder6\jdk1.3.1\jre\lib\rt.jar;D:\Program Files\JBuilder6\jdk1.3.1\jre\lib\sunrsasign.jar;D:\Program Files\JBuilder6\jdk1.3.1\lib\dt.jar;D:\Program Files\JBuilder6\jdk1.3.1\lib\htmlconverter.jar;D:\Program Files\JBuilder6\jdk1.3.1\lib\tools.jar;D:\Program Files\JBuilder6\jdk1.3.1\lib\tools.jar;D:\Program Files\JBuilder6\patch\trial.jar;D:\Program Files\JBuilder6\lib\activation.jar;D:\Program Files\JBuilder6\lib\beandt.jar;D:\Program Files\JBuilder6\lib\borlandxml.jar;D:\Program Files\JBuilder6\lib\castor-xml.jar;D:\Program Files\JBuilder6\lib\castor.jar;D:\Program Files\JBuilder6\lib\cx.jar;D:\Program Files\JBuilder6\lib\dbswing.jar;D:\Program Files\JBuilder6\lib\dbswingdt.jar;D:\Program Files\JBuilder6\lib\dbtools.jar;D:\Program Files\JBuilder6\lib\dt.jar;D:\Program Files\JBuilder6\lib\dx.jar;D:\Program Files\JBuilder6\lib\gnuregexp.jar;D:\Program Files\JBuilder6\lib\help.jar;D:\Program Files\JBuilder6\lib\iastools.jar;D:\Program Files\JBuilder6\lib\ias_common.jar;D:\Program Files\JBuilder6\lib\internetbeans.jar;D:\Program Files\JBuilder6\lib\jakarta-regexp-1.1.jar;D:\Program Files\JBuilder6\lib\javaws.jar;D:\Program Files\JBuilder6\lib\jbcl.jar;D:\Program Files\JBuilder6\lib\jbuilder.jar;D:\Program Files\JBuilder6\lib\jdbcx.jar;D:\Program Files\JBuilder6\lib\jdom.jar;D:\Program Files\JBuilder6\lib\jds.jar;D:\Program Files\JBuilder6\lib\jdsremote.jar;D:\Program Files\JBuilder6\lib\jdsserver.jar;D:\Program Files\JBuilder6\lib\junit.jar;D:\Program Files\JBuilder6\lib\mail.jar;D:\Program Files\JBuilder6\lib\sqltools.jar;D:\Program Files\JBuilder6\lib\unittest.jar;D:\Program Files\JBuilder6\lib\webserverglue.jar;D:\Program Files\JBuilder6\lib\xalan.jar;D:\Program Files\JBuilder6\lib\xerces.jar;D:\Program Files\JBuilder6\lib\xml4j.jar;D:\Program Files\JBuilder6\lib\xmlbeans.jar;D:\Program Files\JBuilder6\lib\xmldbms.jar;D:\Program Files\JBuilder6\lib\bes\agentclient.jar;D:\Program Files\JBuilder6\lib\bes\asrt.jar;D:\Program Files\JBuilder6\lib\bes\client.jar;D:\Program Files\JBuilder6\lib\bes\guicore.jar;D:\Program Files\JBuilder6\lib\bes\jaas.jar;D:\Program Files\JBuilder6\lib\bes\jcert.jar;D:\Program Files\JBuilder6\lib\bes\jnet.jar;D:\Program Files\JBuilder6\lib\bes\jsse.jar;D:\Program Files\JBuilder6\lib\bes\lm.jar;D:\Program Files\JBuilder6\lib\bes\vbdev.jar;D:\Program Files\JBuilder6\lib\bes\vbejb.jar;D:\Program Files\JBuilder6\lib\bes\vbjdev.jar;D:\Program Files\JBuilder6\lib\bes\vbjorb.jar;D:\Program Files\JBuilder6\lib\bes\vbsec.jar;D:\Program Files\JBuilder6\lib\bes\xmlrt.jar" weblogic.ejbc -keepgenerated -compiler "D:/Program Files/JBuilder6/bin/bcjW" E:/project/jbuilder/ejb/test/session.jar.jar E:/project/jbuilder/ejb/test/session.jar

"session.ejbgrpx": Spaces in the temporary directory path may cause WebLogic EJBC utility to produce fatal compile errors.

"session.ejbgrpx": Spaces in the classpath may cause WebLogic EJBC utility to produce fatal compile errors.

"session.ejbgrpx": <2003-9-8 下午02时31分21秒> <Warning> <EJB> <EJB Deployment: hello has a class test.helloBean which is in the classpath. This class should only be located in the ejb-jar file.>

"session.ejbgrpx": <2003-9-8 下午02时31分21秒> <Warning> <EJB> <EJB Deployment: hello has a class test.helloHome which is in the classpath. This class should only be located in the ejb-jar file.>

"session.ejbgrpx": <2003-9-8 下午02时31分21秒> <Warning> <EJB> <EJB Deployment: hello has a class test.hello which is in the classpath. This class should only be located in the ejb-jar file.>

"session.ejbgrpx": ERROR: Error from ejbc: ERROR: The classes which ejbc generated from your home and remote interfaces cannot be loaded. Please ensure that you have set the -d option to a writeable directory.

"session.ejbgrpx": ERROR: ejbc found errors

robbin
2003-09-08 15:14
这个问题我遇到过。是JBuilder自带的XML解析器和其它的解析器冲突导致的。检查一下,你是否在CLASSPATH里面设置了什么Xerces解析器,或者你是否在JBuilder自带的JDK里面设置了外部的Xerces解析器?

我以前就是安装了JBuilder以后,就直接把JBuilder自带的JDK拿来用,在JDK的JRE\lib\ext下面放置了我自己下载的Xerces,结果就出现了上面那种错误。所以在安装JBuilder机器上,不要去到它带的那个JDK。

如果都不是我说的这些问题,那么你只好把JBuilder卸载,重新安装一下就会好的。

cl007
2003-09-08 15:57
谢谢你robbin,问题已解决,是由于类路径中有空格造成的!!

我是一个j2ee迷,但是,我的周围几乎没有搞java的,所以,robbin如果你不介意,我想交你这个朋友!!

msn:cl5460@hotmail.com

qq:44466206

猜你喜欢