facebook

xdoclet-build.xml error during build [Closed]

  1. MyEclipse IDE
  2.  > 
  3. General Development
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #197948 Reply

    blinder
    Member

    Hello,
    I’m getting this error when I run the xdoclet process:

    
    Buildfile: /home/dave/eclipse/workspace/LiberaEJB/xdoclet-build.xml
    
    N400004:
       [ejbdoclet] file:/home/dave/eclipse/workspace/LiberaEJB/xdoclet-build.xml:26: At least one fileset must be specified
       [ejbdoclet]     at xjavadoc.ant.XJavadocTask.validateOptions(XJavadocTask.java:174)
       [ejbdoclet]     at xdoclet.DocletTask.validateOptions(DocletTask.java:483)
       [ejbdoclet]     at xdoclet.modules.ejb.EjbDocletTask.validateOptions(EjbDocletTask.java:80)
       [ejbdoclet]     at xjavadoc.ant.XJavadocTask.execute(XJavadocTask.java:79)
       [ejbdoclet]     at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:193)
       [ejbdoclet]     at org.apache.tools.ant.Task.perform(Task.java:341)
       [ejbdoclet]     at org.apache.tools.ant.Target.execute(Target.java:309)
       [ejbdoclet]     at org.apache.tools.ant.Target.performTasks(Target.java:336)
       [ejbdoclet]     at org.apache.tools.ant.Project.executeTarget(Project.java:1339)
       [ejbdoclet]     at org.apache.tools.ant.Project.executeTargets(Project.java:1255)
       [ejbdoclet]     at org.eclipse.ant.internal.core.ant.InternalAntRunner.run(InternalAntRunner.java:569)
       [ejbdoclet]     at org.eclipse.ant.internal.core.ant.InternalAntRunner.run(InternalAntRunner.java:367)
       [ejbdoclet]     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
       [ejbdoclet]     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
       [ejbdoclet]     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
       [ejbdoclet]     at java.lang.reflect.Method.invoke(Method.java:324)
       [ejbdoclet]     at org.eclipse.ant.core.AntRunner.run(AntRunner.java:335)
       [ejbdoclet]     at org.eclipse.ui.externaltools.internal.ant.launchConfigurations.AntLaunchDelegate.launch(AntLaunchDelegate.java:189)
       [ejbdoclet]     at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:156)
       [ejbdoclet]     at org.jboss.ide.eclipse.xdoclet.run.ui.actions.XDocletRunAction$1.run(XDocletRunAction.java:151)
       [ejbdoclet]     at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:101)
       [ejbdoclet] BUILD FAILED: file:/home/dave/eclipse/workspace/LiberaEJB/xdoclet-build.xml:26: Unexpected error
    Total time: 3 seconds
    

    I made sure that I have added an XDoclet configuration (Standard EJB) and I did add the JBoss entry (as directed in the help). I also made sure I have a valid deployment target (JBoss 4). I have a valid and error-free bean class with a remote business method:

    
    /**
         * Get a category using the passed in category ID as our primary key
         *
         * @ejb.interface-method view-type = "remote"
         * 
         * @throws EJBException Thrown if the instance could not perform 
         * the function requested by the container because of an system-level error.
         */
        public String getCategory (String categoryID) throws EJBException
        {
            return null;
        }
    

    Is there something I’m missing?

    I am using:
    Eclipse Version: 2.1.0 (Build id: 200303272130)
    Linux RedHat 8.0
    Sun JDK 1.4.1_02
    MyEclipse 2.5.1

    Thanks 🙂

    #197949 Reply

    blinder
    Member

    Sorry, please disregard this. My appoligies for contributing to the noise. This was my error, in that I accidentally unchecked the “fileset” option in the Standard EJB XDoclet.

    my bad 🙁

    #259483 Reply

    siva.rayudu
    Member

    how to download this file xdoclet.modules.ejb.EjbDocletTask.class file.

    my error is D:\bea\user_projects\w4WP_workspaces\Untitled\.metadata\.plugins\org.eclipse.jst.j2ee.ejb.annotations.xdoclet\tempAnt.xml:57: taskdef class xdoclet.modules.ejb.EjbDocletTask cannot be found

    #259485 Reply

    siva.rayudu
    Member

    hi,
    in ejb how to run the sample application.
    i did create jar file and upload that file and run the client program then also not running client.

    Error:

    E:\Example ejb>java ConverterClient
    Caught an unexpected exception!
    javax.naming.NameNotFoundException: Unable to resolve ‘SimpleConverter2’. Resolv
    ed ” [Root exception is javax.naming.NameNotFoundException: Unable to resolve ‘
    SimpleConverter2’. Resolved ”]; remaining name ‘SimpleConverter2’
    at weblogic.rjvm.ResponseImpl.unmarshalReturn(ResponseImpl.java:195)
    at weblogic.rmi.cluster.ClusterableRemoteRef.invoke(ClusterableRemoteRef
    .java:338)
    at weblogic.rmi.cluster.ClusterableRemoteRef.invoke(ClusterableRemoteRef
    .java:252)
    at weblogic.jndi.internal.ServerNamingNode_920_WLStub.lookup(Unknown Sou
    rce)
    at weblogic.jndi.internal.WLContextImpl.lookup(WLContextImpl.java:374)
    at weblogic.jndi.internal.WLContextImpl.lookup(WLContextImpl.java:362)
    at javax.naming.InitialContext.lookup(InitialContext.java:351)
    at ConverterClient.main(ConverterClient.java:30)
    Caused by: javax.naming.NameNotFoundException: Unable to resolve ‘SimpleConverte
    r2’. Resolved ”
    at weblogic.jndi.internal.BasicNamingNode.newNameNotFoundException(Basic
    NamingNode.java:1139)
    at weblogic.jndi.internal.BasicNamingNode.lookupHere(BasicNamingNode.jav
    a:252)
    at weblogic.jndi.internal.ServerNamingNode.lookupHere(ServerNamingNode.j
    ava:171)
    at weblogic.jndi.internal.BasicNamingNode.lookup(BasicNamingNode.java:20
    6)
    at weblogic.jndi.internal.RootNamingNode_WLSkel.invoke(Unknown Source)
    at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:517)
    at weblogic.rmi.cluster.ClusterableServerRef.invoke(ClusterableServerRef
    .java:224)
    at weblogic.rmi.internal.BasicServerRef$1.run(BasicServerRef.java:407)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(Authenticate
    dSubject.java:363)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:
    147)
    at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.jav
    a:403)
    at weblogic.rmi.internal.BasicServerRef.access$300(BasicServerRef.java:5
    6)
    at weblogic.rmi.internal.BasicServerRef$BasicExecuteRequest.run(BasicSer
    verRef.java:934)
    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
    at weblogic.work.ExecuteThread.run(ExecuteThread.java:181)

    #259486 Reply

    siva.rayudu
    Member

    can you solve this error,
    At run the client arase error:

    E:\Ejb>java Client1
    javax.naming.NoInitialContextException: Need to specify class name in environmen
    t or system property, or as an applet parameter, or in an application resource f
    ile: java.naming.factory.initial
    at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:6
    45)
    at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:247
    )
    at javax.naming.InitialContext.getURLOrDefaultInitCtx(InitialContext.jav
    a:284)
    at javax.naming.InitialContext.lookup(InitialContext.java:351)
    at Client1.main(Client1.java:39)

    E:\Ejb>

    #259841 Reply

    Greg
    Member

    siva.rayudu,

    You appear to be using WTP xdoclet integration and not MyEclipse. Please use the following documentation for how to use MyEclipse-XDoclet integration.
    http://www.myeclipseide.com/images/tutorials/quickstarts/firstejb/

Viewing 6 posts - 1 through 6 (of 6 total)
Reply To: xdoclet-build.xml error during build [Closed]

You must be logged in to post in the forum log in