关于第五章的,在线等!!!急等!!!

    
whitefox1317
05-05-11 1 401

我在编译第五章代码时出现如下错误:请问你是什么原因???



"CustomerManagerBean.java": cannot access CreateException; CreateException at line 105, column 57
"CustomerManagerBean.java": cannot access FinderException; FinderException at line 117, column 67
"CustomerAction.java": cannot access CreateException; CreateException at line 55, column 62
"subEJB.jar": Spaces in the temporary directory path may cause WebLogic APPC utility to produce fatal compile errors.
"subEJB.jar": C:\bea\jdk141_05\bin\javaw -classpath "C:\bea\weblogic81\server\lib\weblogic_sp.jar;C:\bea\weblogic81\server\lib\weblogic.jar;C:\bea\weblogic81\server\lib\webservices.jar;F:\JBuilder\thirdparty\jakarta-struts-1.1-lib\commons-beanutils.jar;F:\JBuilder\thirdparty\jakarta-struts-1.1-lib\commons-collections.jar;F:\JBuilder\thirdparty\jakarta-struts-1.1-lib\commons-digester.jar;F:\JBuilder\thirdparty\jakarta-struts-1.1-lib\commons-fileupload.jar;F:\JBuilder\thirdparty\jakarta-struts-1.1-lib\commons-lang.jar;F:\JBuilder\thirdparty\jakarta-struts-1.1-lib\commons-logging.jar;F:\JBuilder\thirdparty\jakarta-struts-1.1-lib\commons-validator.jar;F:\JBuilder\thirdparty\jakarta-struts-1.1-lib\jakarta-oro.jar;F:\JBuilder\thirdparty\jakarta-struts-1.1-lib\struts.jar;J:\study\CodeInBook\javasystembook\CmpSUB\lib\jdom.jar;J:\study\CodeInBook\javasystembook\CmpSUB\lib\JdonFramework.jar;J:\study\CodeInBook\javasystembook\CmpSUB\lib\JdonUtils.jar;J:\study\CodeInBook\javasystembook\CmpSUB\lib\log4j.jar;" weblogic.appc -keepgenerated -forceGeneration -compiler C:/bea/jdk141_05/bin/javac J:/study/CodeInBook/javasystembook/CmpSUB/subEJB.jar.jar -output J:/study/CodeInBook/javasystembook/CmpSUB/subEJB.jar

"subEJB.jar": [J2EE:160119]Appc is unable to process the file 'J:\study\CodeInBook\javasystembook\CmpSUB\subEJB.jar.jar'. The following error occurred:
"subEJB.jar": Unable to load a class specified in your ejb-jar.xml: com.jdon.samples.ejb.CustomerManagerBean
"subEJB.jar": at weblogic.ejb20.ejbc.EJBCompiler.setupEJB(EJBCompiler.java:164)
"subEJB.jar": at weblogic.ejb20.ejbc.EJBCompiler.compileEJB(EJBCompiler.java:415)
"subEJB.jar": at weblogic.ejb20.ejbc.EJBCompiler.compileEJB(EJBCompiler.java:387)
"subEJB.jar": at weblogic.appc.compileEJB(appc.java:802)
"subEJB.jar": at weblogic.appc.compileEJB(appc.java:776)
"subEJB.jar": at weblogic.appc.compileInput(appc.java:463)
"subEJB.jar": at weblogic.appc.runBody(appc.java:184)
"subEJB.jar": at weblogic.utils.compiler.Tool.run(Tool.java:146)
"subEJB.jar": at weblogic.utils.compiler.Tool.run(Tool.java:103)
"subEJB.jar": at weblogic.appc.main(appc.java:1028)
"subEJB.jar": weblogic.ejb20.deployer.DeploymentDescriptorException: Unable to load a class specified in your ejb-jar.xml: com.jdon.samples.ejb.CustomerManagerBean
"subEJB.jar": at weblogic.ejb20.deployer.MBeanDeploymentInfoImpl.initializeBeanInfos(MBeanDeploymentInfoImpl.java:550)
"subEJB.jar": at weblogic.ejb20.deployer.MBeanDeploymentInfoImpl.<init>(MBeanDeploymentInfoImpl.java:232)
"subEJB.jar": at weblogic.ejb20.ejbc.EJBCompiler.setupEJB(EJBCompiler.java:155)
"subEJB.jar": at weblogic.ejb20.ejbc.EJBCompiler.compileEJB(EJBCompiler.java:415)
"subEJB.jar": at weblogic.ejb20.ejbc.EJBCompiler.compileEJB(EJBCompiler.java:387)
"subEJB.jar": at weblogic.appc.compileEJB(appc.java:802)
"subEJB.jar": at weblogic.appc.compileEJB(appc.java:776)
"subEJB.jar": at weblogic.appc.compileInput(appc.java:463)
"subEJB.jar": at weblogic.appc.runBody(appc.java:184)
"subEJB.jar": at weblogic.utils.compiler.Tool.run(Tool.java:146)
"subEJB.jar": at weblogic.utils.compiler.Tool.run(Tool.java:103)
"subEJB.jar": at weblogic.appc.main(appc.java:1028)
"subEJB.jar": --------------- nested within: ------------------
"subEJB.jar": weblogic.utils.compiler.ToolFailureException: [J2EE:160121]Errors encountered while compiling module 'J:\study\CodeInBook\javasystembook\CmpSUB\subEJB.jar.jar':
"subEJB.jar": Unable to load a class specified in your ejb-jar.xml: com.jdon.samples.ejb.CustomerManagerBean
"subEJB.jar": - with nested exception:
"subEJB.jar": [
"subEJB.jar": Unable to load a class specified in your ejb-jar.xml: com.jdon.samples.ejb.CustomerManagerBean
"subEJB.jar": ]
"subEJB.jar": at weblogic.appc.compileEJB(appc.java:781)
"subEJB.jar": at weblogic.appc.compileInput(appc.java:463)
"subEJB.jar": at weblogic.appc.runBody(appc.java:184)
"subEJB.jar": at weblogic.utils.compiler.Tool.run(Tool.java:146)
"subEJB.jar": at weblogic.utils.compiler.Tool.run(Tool.java:103)
"subEJB.jar": at weblogic.appc.main(appc.java:1028)
"subEJB.jar": WebLogic APPC tool invocation errors.

banq
2005-05-14 16:21

CreateException 等类不能访问,去除 CreateException ,或导入这个包