有哪位朋友能看明白下面的错误信息的?(关键字:linux,weblogic,ejb,bea-010054)
我已经没有力气了...
开发调试平台是RH Linux9+Oracle817+Weblogic812+JBuilder9.
开发一般的jdbc应用,sessionBean等,正常,而只要开发entityBean就会出现以下的错误(make的时候,还不到deploy).但是相同的代码,相同的操作过程,在windowsXP下则可以通过.
问题若能解决,定当重分相谢!!!
=======================================================================
"Cmp.jar": /u01/bea/jdk141_05/bin/java -classpath "/root/jbproject/cmpSample/classes:/u01/bea/weblogic81/server/lib/weblogic_sp.jar:/u01/bea/weblogic81/server/lib/weblogic.jar:/u01/bea/weblogic81/server/lib/webservices.jar:/u01/oracle/classes12.zip:" weblogic.appc -keepgenerated -forceGeneration -compiler /u01/bea/jdk141_05/bin/javac /root/jbproject/cmpSample/Cmp.jar.jar -output /root/jbproject/cmpSample/Cmp.jar
"Cmp.jar": <2004-5-1 下午22时14分25秒 CST> <Warning> <EJB> <BEA-010054> <EJB Deployment: Student has a class cmpsample.StudentBean that is in the classpath. This class should only be located in the ejb-jar file.>
"Cmp.jar": <2004-5-1 下午22时14分26秒 CST> <Warning> <EJB> <BEA-010054> <EJB Deployment: Student has a class cmpsample.StudentRemoteHome that is in the classpath. This class should only be located in the ejb-jar file.>
"Cmp.jar": <2004-5-1 下午22时14分26秒 CST> <Warning> <EJB> <BEA-010054> <EJB Deployment: Student has a class cmpsample.StudentRemote that is in the classpath. This class should only be located in the ejb-jar file.>
"Cmp.jar": <2004-5-1 下午22时14分26秒 CST> <Warning> <EJB> <BEA-010054> <EJB Deployment: Student has a class cmpsample.StudentHome that is in the classpath. This class should only be located in the ejb-jar file.>
"Cmp.jar": <2004-5-1 下午22时14分26秒 CST> <Warning> <EJB> <BEA-010054> <EJB Deployment: Student has a class cmpsample.Student that is in the classpath. This class should only be located in the ejb-jar file.>
"Cmp.jar": /tmp/appcgen/cmpsample/Student_z53p80__WebLogic_CMP_RDBMS.java:305: cannot resolve symbol
"Cmp.jar": symbol : variable __W_modifiedBeanIsRegistered
"Cmp.jar": location: class cmpsample.Student_z53p80__WebLogic_CMP_RDBMS
"Cmp.jar": if (! __W_modifiedBeanIsRegistered) {
"Cmp.jar": ^
"Cmp.jar": 1 error
"Cmp.jar": Exec failed .. exiting
=======================================================================
问题点数:20、回复次数:3Top
1 楼umbrella1984(雨伞(KEN))回复于 2004-05-02 13:27:39 得分 20
ejb-jar.xml检查一下这个文件,看你的包里需要的CLASS都齐了吗?需要的方法都重写了吗?Top
2 楼wingtrace(虽然生活很艰苦,但是我们也不能做禽兽)回复于 2004-05-03 13:51:10 得分 0
up!Top
3 楼wingtrace(虽然生活很艰苦,但是我们也不能做禽兽)回复于 2004-05-05 10:49:31 得分 0
sigh... 现在我几乎都习惯自问自答了.
要解决这个问题很容易,我的代码本身是没有错误的,罪魁祸首是jdk.
一开始为了保证应用和weblogic的兼容性,我在jb9里引用的是weblogic81所带的jdk,出现上述的错误,后来换成jrockit,更惨,连编译的动作都没有,最后换回jb9自带的jdk,问题才迎刃而解.Top




