From: jollyplay <nu...@jb...> - 2005-07-26 12:38:09
|
Hello i am new bie to XDoclet. i tried with simple application as mentioned in the url with some modification. i faced problem. Please help me. http://www.onjava.com/pub/a/onjava/2002/01/30/xdoclet.html?page=2 My Stateless Bean Code is ----------------------------------------------------------- package com.ejb.statelesss; import java.rmi.RemoteException; import javax.ejb.EJBException; import javax.ejb.SessionBean; import javax.ejb.SessionContext; /** * This is the EJB Simple Xbean * * @ejb:bean type="Stateless" * name="com.ejb.statelesss.Hello" * jndi-name="Hello" * display-name="EJB First Xbean" */ public class HelloBean implements SessionBean { private SessionContext sessionContext; public void ejbCreate() throws CreateException { } public void ejbRemove() { } public void ejbActivate() { } public void ejbPassivate() { } public void setSessionContext(SessionContext sessionContext) { this.sessionContext = sessionContext; } /** * The method that the sender uses to pass the Document * * @ejb:interface-method view-type="remote" */ public String getName()throws RemoteException{ return "It is ok"; } } -------------- in build.xml i have this part ----------------------------------------- i got the following error when i execute >ant ejbdoclet D:\bala\XDocLet\XDSample>ant ejbdoclet Buildfile: build.xml init: prepare: ejbdoclet: [ejbdoclet] (ModuleFinder.findModules 179 ) There is an entry on XDoc lets classpath that doesn't exist: {0}. Ignoring it [ejbdoclet] (ModuleFinder.findModules 179 ) There is an entry on XDoc lets classpath that doesn't exist: {0}. Ignoring it [ejbdoclet] (ModuleFinder.findModules 179 ) There is an entry on XDoc lets classpath that doesn't exist: {0}. Ignoring it [ejbdoclet] XDoclet classpath missing J2EE classes [ejbdoclet] at xdoclet.modules.ejb.EjbDocletTask.validateOptions(EjbDocletTa sk.java:86) [ejbdoclet] at xjavadoc.ant.XJavadocTask.execute(XJavadocTask.java:89) [ejbdoclet] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.ja va: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.apache.tools.ant.Main.runBuild(Main.java:673) [ejbdoclet] at org.apache.tools.ant.Main.startAnt(Main.java:188) [ejbdoclet] at org.apache.tools.ant.launch.Launcher.run(Launcher.java:196) [ejbdoclet] at org.apache.tools.ant.launch.Launcher.main(Launcher.java:55) [ejbdoclet] Caused by: Make sure the jar file containing the javax.ejb.EntityBea n class is on the classpath specified in the that defined ejbdoclet. T hese classes are needed in order to generate correct output. [ejbdoclet] at xdoclet.DocletTask.checkClass(DocletTask.java:513) [ejbdoclet] at xdoclet.modules.ejb.EjbDocletTask.validateOptions(EjbDocletTa sk.java:83) [ejbdoclet] ... 11 more [ejbdoclet] --- Nested Exception --- [ejbdoclet] Make sure the jar file containing the javax.ejb.EntityBean class is on the classpath specified in the that defined ejbdoclet. These classe s are needed in order to generate correct output. [ejbdoclet] at xdoclet.DocletTask.checkClass(DocletTask.java:513) [ejbdoclet] at xdoclet.modules.ejb.EjbDocletTask.validateOptions(EjbDocletTa sk.java:83) [ejbdoclet] at xjavadoc.ant.XJavadocTask.execute(XJavadocTask.java:89) [ejbdoclet] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.ja va:275) [ejbdoclet] at org.apache.tools.ant.Task.perform(Task.java:364) --------------------------------------------- Please help me out from the problem and please do the needful. Thank you in advance. Regards, balachandar View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3886583#3886583 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3886583 |