我编译的第一个ejb.就出错,请高手指教

coding的乐趣 2004-12-17 05:40:38
"simple.jar": Spaces in the temporary directory path may cause WebLogic APPC utility to produce fatal compile errors.
"simple.jar": C:\bea\jdk142_04\bin\javaw -classpath "F:\ejbtest\ejbtest\classes;C:\bea\weblogic81\server\lib\weblogic_sp.jar;C:\bea\weblogic81\server\lib\weblogic.jar;C:\bea\weblogic81\server\lib\webservices.jar;" weblogic.appc -keepgenerated -forceGeneration -compiler C:/bea/jdk142_04/bin/javac F:/ejbtest/ejbtest/simple.jar.jar -output F:/ejbtest/ejbtest/simple.jar

"simple.jar": <2004-12-17 下午05时36分45秒 CST> <Warning> <EJB> <BEA-010054> <EJB Deployment: Count has a class ejb.exe2.CountBean that is in the classpath. This class should only be located in the ejb-jar file.>
"simple.jar": <2004-12-17 下午05时36分46秒 CST> <Warning> <EJB> <BEA-010054> <EJB Deployment: Count has a class ejb.exe2.CountHome that is in the classpath. This class should only be located in the ejb-jar file.>
"simple.jar": <2004-12-17 下午05时36分46秒 CST> <Warning> <EJB> <BEA-010054> <EJB Deployment: Count has a class ejb.exe2.Count that is in the classpath. This class should only be located in the ejb-jar file.>
"simple.jar": [J2EE:160119]Appc is unable to process the file 'F:\ejbtest\ejbtest\simple.jar.jar'. The following error occurred:
"simple.jar": In EJB Count, the home create method ejbCreate(int) did not have a corresponding ejbCreate method in the bean class, or the ejbCreate method in the bean class was not public.
"simple.jar": at weblogic.ejb20.compliance.EJBComplianceChecker.check(EJBComplianceChecker.java:268)
"simple.jar": at weblogic.ejb20.compliance.EJBComplianceChecker.checkDeploymentInfo(EJBComplianceChecker.java:232)
"simple.jar": at weblogic.ejb20.ejbc.EJBCompiler.complianceCheckJar(EJBCompiler.java:810)
"simple.jar": at weblogic.ejb20.ejbc.EJBCompiler.checkCompliance(EJBCompiler.java:766)
"simple.jar": at weblogic.ejb20.ejbc.EJBCompiler.doCompile(EJBCompiler.java:200)
"simple.jar": at weblogic.ejb20.ejbc.EJBCompiler.compileEJB(EJBCompiler.java:476)
"simple.jar": at weblogic.ejb20.ejbc.EJBCompiler.compileEJB(EJBCompiler.java:387)
"simple.jar": at weblogic.appc.compileEJB(appc.java:802)
"simple.jar": at weblogic.appc.compileEJB(appc.java:776)
"simple.jar": at weblogic.appc.compileInput(appc.java:463)
"simple.jar": at weblogic.appc.runBody(appc.java:184)
"simple.jar": at weblogic.utils.compiler.Tool.run(Tool.java:146)
"simple.jar": at weblogic.utils.compiler.Tool.run(Tool.java:103)
"simple.jar": at weblogic.appc.main(appc.java:1030)
"simple.jar": weblogic.ejb20.compliance.ComplianceException: In EJB Count, the home create method ejbCreate(int) did not have a corresponding ejbCreate method in the bean class, or the ejbCreate method in the bean class was not public.
"simple.jar": at weblogic.ejb20.compliance.HomeInterfaceChecker.checkCreateMethodsMatchBeanCreates(HomeInterfaceChecker.java:309)
"simple.jar": at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
"simple.jar": at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
"simple.jar": at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
"simple.jar": at java.lang.reflect.Method.invoke(Method.java:324)
"simple.jar": at weblogic.ejb20.compliance.EJBComplianceChecker.check(EJBComplianceChecker.java:278)
"simple.jar": at weblogic.ejb20.compliance.EJBComplianceChecker.checkDeploymentInfo(EJBComplianceChecker.java:232)
"simple.jar": at weblogic.ejb20.ejbc.EJBCompiler.complianceCheckJar(EJBCompiler.java:810)
"simple.jar": at weblogic.ejb20.ejbc.EJBCompiler.checkCompliance(EJBCompiler.java:766)
"simple.jar": at weblogic.ejb20.ejbc.EJBCompiler.doCompile(EJBCompiler.java:200)
"simple.jar": at weblogic.ejb20.ejbc.EJBCompiler.compileEJB(EJBCompiler.java:476)
"simple.jar": at weblogic.ejb20.ejbc.EJBCompiler.compileEJB(EJBCompiler.java:387)
"simple.jar": at weblogic.appc.compileEJB(appc.java:802)
"simple.jar": at weblogic.appc.compileEJB(appc.java:776)
"simple.jar": at weblogic.appc.compileInput(appc.java:463)
"simple.jar": at weblogic.appc.runBody(appc.java:184)
"simple.jar": at weblogic.utils.compiler.Tool.run(Tool.java:146)
"simple.jar": at weblogic.utils.compiler.Tool.run(Tool.java:103)
"simple.jar": at weblogic.appc.main(appc.java:1030)
"simple.jar": --------------- nested within: ------------------
"simple.jar": weblogic.utils.compiler.ToolFailureException: [J2EE:160121]Errors encountered while compiling module 'F:\ejbtest\ejbtest\simple.jar.jar':
"simple.jar": In EJB Count, the home create method ejbCreate(int) did not have a corresponding ejbCreate method in the bean class, or the ejbCreate method in the bean class was not public.
"simple.jar": - with nested exception:
"simple.jar": [
"simple.jar": In EJB Count, the home create method ejbCreate(int) did not have a corresponding ejbCreate method in the bean class, or the ejbCreate method in the bean class was not public.
"simple.jar": ]
"simple.jar": at weblogic.appc.compileEJB(appc.java:781)
"simple.jar": at weblogic.appc.compileInput(appc.java:463)
"simple.jar": at weblogic.appc.runBody(appc.java:184)
"simple.jar": at weblogic.utils.compiler.Tool.run(Tool.java:146)
"simple.jar": at weblogic.utils.compiler.Tool.run(Tool.java:103)
"simple.jar": at weblogic.appc.main(appc.java:1030)

在线等
...全文
87 7 打赏 收藏 转发到动态 举报
写回复
用AI写文章
7 条回复
切换为时间正序
请发表友善的回复…
发表回复
helloqiner 2005-01-19
  • 打赏
  • 举报
回复
路径中有空格,服务器不认。这是WebLogic的Bug。
可以换个没有空格的路径再试。
redex 2005-01-19
  • 打赏
  • 举报
回复
"simple.jar": Spaces in the temporary directory path may cause WebLogic APPC utility to produce fatal compile errors.

把环境变量中的TMP和TEMP指向一个没有空格的目录.
WebLogic的ejbc utility现在变成APPC utility了,呵呵.
redex 2005-01-19
  • 打赏
  • 举报
回复
"simple.jar": In EJB Count, the home create method ejbCreate(int) did not have a corresponding ejbCreate method in the bean class, or the ejbCreate method in the bean class was not public.

bean类中没写ejbCreate方法或与home类中的签名不一致.
另外,ejbc要求它编译的项目中路径中不能有空格,否则可能出错.
Chark1979 2005-01-19
  • 打赏
  • 举报
回复
友情UP
xlhacoo 2005-01-19
  • 打赏
  • 举报
回复
up
coding的乐趣 2004-12-17
  • 打赏
  • 举报
回复
不知道的也帮我顶一下。有分。
coding的乐趣 2004-12-17
  • 打赏
  • 举报
回复
我不知道是什么原因导致出错的。我刚刚接触ejb就碰到钉子了。请高手帮我拔掉。感激涕泞

67,513

社区成员

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

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