ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vincent Massol" <vmas...@octo.fr>
Subject Re: Problem with EJBJAR
Date Tue, 21 Nov 2000 20:23:45 GMT
I am working with Jeremie and we have corrected the problem by doing the following :

- Getting the latest version of Ant from CVS (the 20th of november one),

We still had a problem after that. It was saying that it could not open a file (the temporary
one that is generated by the task).

- Our Weblogic install was located under d:\program files\weblogic
- We used d:\progra~1\weblogic as our path

so

- We moved WebLogic to d:\WebLogic ....

... and it worked !

Thanks.
  ----- Original Message ----- 
  From: jeremie hebre 
  To: ant-user@jakarta.apache.org 
  Sent: Tuesday, November 21, 2000 11:03 AM
  Subject: Problem with EJBJAR


  Dear users,

  I am using ant 1.2 to build. I've made target wich use ejbjar:

  <target name="ejb" depends="compile">
   
    <mkdir dir="${build.dir}/META-INF"/>
     <copy todir="${build.dir}/META-INF">
      <fileset dir="${conf.dir}">
           <include name="ejb-jar.xml"/>
       <include name="weblogic-ejb-jar.xml"/>
      </fileset>
     </copy>
   
    <ejbjar descriptordir="${build.dir}/META-INF" srcdir="${build.dir}/classes" destdir="${build.dir}">
     <include name="**/ejb-jar.xml"/>
     <exclude name="**/weblogic*.xml"/>

     <weblogic destdir="${build.dir}"
     classpath="${weblogic.dir}/classes;${weblogic.dir}/lib/unpacked_jars/collections.zip;${weblogic.dir}/lib/weblogicaux.jar;${build.dir}"
/>
    </ejbjar>
    
   </target>


  The following message is displayed:


  [...]
  [ejbjar] adding file 'META-INF/ejb-jar.xml'
     [ejbjar] Calling weblogic.ejbc for V:\dev\customer\bin\weblogic-generic.jar
       [java] Forking java -classpath C:\apps\weblogic\classes;C:\apps\weblogic\lib\unpacked_jars\collections.zip;C:\apps\weblogic\lib\weblogicaux.jar;V:\dev\customer\bin
weblogic.ejbc -noexit V:\dev\customer\bin\weblogic-generic.jar V:\dev\customer\bin\weblogic.jar
       [java] weblogic.ejb.deployment.dd.DescriptorLoaderException: Received low-level error
when processing DOM: message was
       [java] "weblogic.xml.dom.ChildCountException"
       [java]  at weblogic.ejb.deployment.dd.DescriptorLoader.addDOMProcessingError(DescriptorLoader.java:1731)
       [java]  at weblogic.ejb.deployment.dd.DescriptorLoader.createEntityBeanDescriptors(DescriptorLoader.java:924)
       [java]  at weblogic.ejb.deployment.dd.DescriptorLoader.createDeploymentUnit(DescriptorLoader.java:259)
       [java]  at weblogic.ejbc.runBody(ejbc.java:299)
       [java]  at weblogic.utils.compiler.Tool.run(Tool.java:80)
       [java]  at weblogic.ejbc.main(ejbc.java:353)
       [java] weblogic.ejb.deployment.dd.DescriptorLoaderException: Received low-level error
when processing DOM: message was
       [java] "weblogic.xml.dom.ChildCountException"
       [java]  at weblogic.ejb.deployment.dd.DescriptorLoader.addDOMProcessingError(DescriptorLoader.java:1731)
       [java]  at weblogic.ejb.deployment.dd.DescriptorLoader.createSessionBeanDescriptors(DescriptorLoader.java:1078)
       [java]  at weblogic.ejb.deployment.dd.DescriptorLoader.createDeploymentUnit(DescriptorLoader.java:261)
       [java]  at weblogic.ejbc.runBody(ejbc.java:299)
       [java]  at weblogic.utils.compiler.Tool.run(Tool.java:80)
       [java]  at weblogic.ejbc.main(ejbc.java:353)
       [java] ERROR: Error from ejbc: Received low-level error when processing DOM: message
was
       [java] "weblogic.xml.dom.ChildCountException"
       [java] ERROR: Error from ejbc: Received low-level error when processing DOM: message
was
       [java] "weblogic.xml.dom.ChildCountException"
       [java] weblogic.utils.compiler.ToolFailureException: ERROR: ejbc found errors
       [java]  at weblogic.ejbc.runBody(ejbc.java:328)
       [java]  at weblogic.utils.compiler.Tool.run(Tool.java:80)
       [java]  at weblogic.ejbc.main(ejbc.java:353)
     [ejbjar] deleting generic jar V:\dev\customer\bin\weblogic-generic.jar
     [ejbjar] building ejb.jar with 4 files
     [ejbjar] adding file 'com\vizzavi\customer\ejbtest\ejb\TestUserManagerHome.class'
     [ejbjar] adding file 'META-INF/ejb-jar.xml'
     [ejbjar] adding file 'com\vizzavi\customer\ejbtest\ejb\TestUserManagerRemote.class'
     [ejbjar] adding file 'com\vizzavi\customer\ejbtest\ejb\TestUserManager.class'
     [ejbjar] Calling weblogic.ejbc for V:\dev\customer\bin\ejb-generic.jar
       [java] Forking java -classpath C:\apps\weblogic\classes;C:\apps\weblogic\lib\unpacked_jars\collections.zip;C:\apps\weblogic\lib\weblogicaux.jar;V:\dev\customer\bin
weblogic.ejbc -noexit V:\dev\customer\bin\ejb-generic.jar V:\dev\customer\bin\ejb.jar
       [java] ERROR: Error from ejbc: The JNDI name of bean TestUserManager was not set
       [java] weblogic.utils.compiler.ToolFailureException: ERROR: ejbc found errors
       [java]  at weblogic.ejbc.runBody(ejbc.java:328)
       [java]  at weblogic.utils.compiler.Tool.run(Tool.java:80)
       [java]  at weblogic.ejbc.main(ejbc.java:353)
     [ejbjar] deleting generic jar V:\dev\customer\bin\ejb-generic.jar

  This target worked with my previous bean!

  Any help would be greatly appreciated!

  Regards,

  Jeremie.





Mime
View raw message