有哪位朋友能看明白下面的错误信息的?(关键字: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
=======================================================================
...全文
91 3 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
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都齐了吗?需要的方法都重写了吗?

67,549

社区成员

发帖
与我相关
我的任务
社区描述
J2EE只是Java企业应用。我们需要一个跨J2SE/WEB/EJB的微容器,保护我们的业务核心组件(中间件),以延续它的生命力,而不是依赖J2SE/J2EE版本。
社区管理员
  • Java EE
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧