ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Paul Cody <paul.c...@lucida.com>
Subject RE: Please help!
Date Wed, 16 Jan 2002 11:30:59 GMT
First, see Tom's message about j2ee.jar.  jar tf weblogic.jar to see if it's
actually in there.

Second, i'd recommend setting your classpath with a <path> structure:

<!-- for example -->
<path id="default.classpath">
  <pathelement location="${weblogic.home}/lib/weblogic.jar" />
  <pathelement location="${basedir}/build/classes" />
  <fileset dir="${basedir}/lib" />
    <include name="*.jar" />
  </fileset>
</path>

Reference it later like so:

<target name="...">
  <java>
    <classpath refid="default.classpath"/>
  </java>
</target>

Path structures are much easier to look at and maintain.   

Third, it looks like (I could be wrong) you are trying to call a task
directly using <java>.  Most likely bea wrote the task such that you should
declare it with:

  <taskdef name="ddinit" classname="weblogic.ant.taskdefs.ejb20.DDInit" />

Ant then use it in your build.xml file something like (I prefer task names
that aren't shouting at me):

<target name="ejb-desc">
  <ddinit>
    ...
  </ddinit>
</target>

Again, I'm not familiar with this task so I could be wrong about it's usage.

HTH,
Paul

> I`m trying to generate deployment desciptors.  The classpath 
> argument points
> to the weblogic.jar file which contains -
> javax/ejb/EJBObject/EJBObject.class
> 
> Heres the section of code that generates the deployment descriptors: -
> 
>     <target name="EJBDESC" depends="INIT">
>        <java classname="weblogic.ant.taskdefs.ejb20.DDInit"
> classpath="${weblogic};${powerjd};${packageroot}${srcdir}">         
>             <arg value="${packageroot}"/>
>        </java>
>     </target>
> 
> And the output I get is: -
> 
> INIT:
> EJBDESC:
> Loading classes
> manifest.mf
> build.xml [33] java.lang.NoClassDefFoundError: javax/ejb/EJBObject
> BUILD FAILED
> Total time: 0 seconds
> 
> I`d very very, very grateful for any suggestions as I`m 
> tearing my hair out
> at the moment.
> 
> Cheers,
> Tom
> 
> 
> 
> --
> To unsubscribe, e-mail:   
<mailto:ant-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>

--
To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>


Mime
View raw message