有哪位朋友能看明白下面的错误信息的?(关键字:linux,weblogic,ejb,bea-010054)

梦想家起飞 爱意福瑞(北京)科技有限公司 打杂的  2004-05-01 10:40:17
我已经没有力气了...

开发调试平台是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
=======================================================================
...全文
44 3 点赞 打赏 收藏 举报
写回复
3 条回复
切换为时间正序
当前发帖距今超过3年,不再开放新的回复
发表回复
梦想家起飞 2004-05-05
sigh... 现在我几乎都习惯自问自答了.


要解决这个问题很容易,我的代码本身是没有错误的,罪魁祸首是jdk.

一开始为了保证应用和weblogic的兼容性,我在jb9里引用的是weblogic81所带的jdk,出现上述的错误,后来换成jrockit,更惨,连编译的动作都没有,最后换回jb9自带的jdk,问题才迎刃而解.
  • 打赏
  • 举报
回复
梦想家起飞 2004-05-03
up!
  • 打赏
  • 举报
回复
umbrella1984 2004-05-02
ejb-jar.xml检查一下这个文件,看你的包里需要的CLASS都齐了吗?需要的方法都重写了吗?
  • 打赏
  • 举报
回复
相关推荐
发帖
Java EE
加入

6.7w+

社区成员

J2EE只是Java企业应用。我们需要一个跨J2SE/WEB/EJB的微容器,保护我们的业务核心组件(中间件),以延续它的生命力,而不是依赖J2SE/J2EE版本。
申请成为版主
帖子事件
创建了帖子
2004-05-01 10:40
社区公告
暂无公告