ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Hardy Henneberg <xhh0...@dsb.dk>
Subject java ejbc can't find com.sun.java.util.List
Date Thu, 29 Mar 2001 15:00:52 GMT
Hi,
I use java weblogic.ejbc to generate ejbjars, but gets NoClassDefFound
exceptions:


C:\websalg\build.xml:49: java.lang.NoClassDefFoundError:
com/sun/java/util/colle
ctions/List
java.lang.NoClassDefFoundError: com/sun/java/util/collections/List
        at weblogic.ejb.ejbc.EJBCFactory.createEJBC(EJBCFactory.java:13)
        at weblogic.ejbc.runBody(ejbc.java:291)
        at weblogic.utils.compiler.Tool.run(Tool.java:80)
        at weblogic.ejbc.main(ejbc.java:353)
        at java.lang.reflect.Method.invoke(Native Method)
        at
org.apache.tools.ant.taskdefs.ExecuteJava.execute(ExecuteJava.java:10

my build.xml includes the following:

  <property name="weblogicpath"  value=
"${WL_HOME}\classes;${WL_HOME}\lib\weblogicaux.jar" />

 <target name="EJBcompile" depends="compile">
    <copy todir="./build/META-INF">
      <fileset dir="./META-INF"/>
    </copy>
    <mkdir dir= "${tempjar}" />
    <mkdir dir= "${distlib}" />
    <jar jarfile="${tempjar}/${projectname}.jar" basedir="${build}" />
    <java classname="weblogic.ejbc" >
       <classpath path="${weblogicpath}" />     
       <arg value="${tempjar}/${projectname}.jar" />
       <arg value="${distlib}/${projectname}.jar" /> 
     </java>
  </target>

the weblogicpath includes the weblogicaux.jar, which includes the missing
classes.
Why can it not be found ?

kind regards 
Hardy Henneberg

Mime
View raw message