Eclipse + Jboss + Lomboz的文件搜索

04-10-16 hovering
我用Eclipse3.0.1 + Lomboz3.0.3 + JBoss(集成Tomcat)3.0.7搭建了一个EJB的开发环境。在利用Wizard生成了一个Lomboz J2EE工程,添加了EJB和Stateless Session Bean,并添加了一个EJB方法。在Eclipse里可以正常启动JBoss,生成的Web界面也可以成功登陆,但是在“生成EJB代码(Generate EJB class)”时出现了如下错误信息:

Buildfile: E:\EJB_Study\TestJ2EE\MyEJB\META-INF\build.xml

init:

ejbdoclet:

init:

ejbdoclet:

[ejbdoclet] Deploy TEMPLATE URL: jar:file:/C:/eclipse/plugins/sf.net.xdoclet_1.2.1/xdoclet-apache-module-1.2.1.jar!/xdoclet/modules/apache/axis/ejb/resources/axis-deploy_wsdd.xdt

[ejbdoclet] Undeploy TEMPLATE URL: jar:file:/C:/eclipse/plugins/sf.net.xdoclet_1.2.1/xdoclet-apache-module-1.2.1.jar!/xdoclet/modules/apache/axis/ejb/resources/axis-undeploy_wsdd.xdt

[ejbdoclet] Includesfile E:\EJB_Study\TestJ2EE\MyEJB\META-INF\ejbs.xml not found.

[ejbdoclet] at org.apache.tools.ant.types.PatternSet.readFiles(PatternSet.java:466)

[ejbdoclet] at org.apache.tools.ant.types.PatternSet.getIncludePatterns(PatternSet.java:381)

[ejbdoclet] at org.apache.tools.ant.types.PatternSet.append(PatternSet.java:357)

[ejbdoclet] at org.apache.tools.ant.types.AbstractFileSet.setupDirectoryScanner(AbstractFileSet.java:371)

[ejbdoclet] at org.apache.tools.ant.types.AbstractFileSet.getDirectoryScanner(AbstractFileSet.java:350)

[ejbdoclet] at xjavadoc.ant.XJavadocTask.execute(XJavadocTask.java:103)

[ejbdoclet] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)

[ejbdoclet] at org.apache.tools.ant.Task.perform(Task.java:364)

[ejbdoclet] at org.apache.tools.ant.Target.execute(Target.java:341)

[ejbdoclet] at org.apache.tools.ant.Target.performTasks(Target.java:369)

[ejbdoclet] at org.apache.tools.ant.Project.executeTarget(Project.java:1214)

[ejbdoclet] at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:386)

[ejbdoclet] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)

[ejbdoclet] at org.apache.tools.ant.Task.perform(Task.java:364)

[ejbdoclet] at org.apache.tools.ant.Target.execute(Target.java:341)

[ejbdoclet] at org.apache.tools.ant.Target.performTasks(Target.java:369)

[ejbdoclet] at org.apache.tools.ant.Project.executeTarget(Project.java:1214)

[ejbdoclet] at org.apache.tools.ant.Project.executeTargets(Project.java:1062)

[ejbdoclet] at org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.run(InternalAntRunner.java:377)

[ejbdoclet] at org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.main(InternalAntRunner.java:135)

BUILD FAILED: E:\EJB_Study\TestJ2EE\MyEJB\META-INF\build.xml:19: The following error occurred while executing this line:

E:\EJB_Study\TestJ2EE\MyEJB\META-INF\xdoclet.xml:57: Unexpected error

Total time: 16 seconds

即找不到“ejbs.xml”文件。

其中,该文件的build.xml中被引用。

请问各位前辈这很可能是哪里的问题。我尝试了Eclipse和JBoss的多个版本,总是不顺利。请前辈多多指教!

猜你喜欢