I'm
currently running ant1.3b3 on a Sun Server with OS version
5.8
I have
a set of build scripts that I wrote which are constructing my session beans for
weblogic 6.0.
I've
had no problems running these build scripts on my win2k machine, but once I
moved to the sun machine and ran the same build, my session beans fail to be
built. I'm not sure why I'm getting the error, since my entity beans do the same
basic thing and they are constructed fine.
My
guess is it's a path problem with something in Ant, since all the paths I'm
entering seem to check out.
The
error I'm getting looks like this :
[ejbc]
[ejbc]
java.lang.NoClassDefFoundError
[ejbc] Java Result:
1
The
ejbjar task looks like the following:
<ejbjar
srcdir="${build}/EJB/"
descriptordir="${SourceCodeLoc}/${PackagePath}/${PackageName}/META-INF"
basejarname="${BeanName}EJB">
<weblogic destdir="${SessionDest}" newCMP="true" keepgenerated="true">
<classpath>
<pathelement location="${DomainLib}/mail.jar" />
<pathelement location="${DomainLib}/activation.jar" />
<pathelement path="/export/home/opt/bea/jdk130/lib/tools.jar" />
<pathelement location="${ApplicationServerLib}/ejb20.jar" />
<pathelement location="${ApplicationServerLib}/weblogic_sp.jar" />
<pathelement location="${ApplicationServerLib}/weblogic.jar" />
<pathelement location="${DomainLib}/xerces.jar" />
<pathelement location="${DomainLib}/xalan.jar" />
<pathelement location="${CommonJarBuildLocation}/${CommonJarName}" />
<pathelement location="${build}/DependantClasses" />
<pathelement location="${DomainLib}/log4j.jar" />
</classpath>
</weblogic>
<include name="**/*.xml"/>
<exclude name="**/weblogic*.xml"/>
</ejbjar>
descriptordir="${SourceCodeLoc}/${PackagePath}/${PackageName}/META-INF"
basejarname="${BeanName}EJB">
<weblogic destdir="${SessionDest}" newCMP="true" keepgenerated="true">
<classpath>
<pathelement location="${DomainLib}/mail.jar" />
<pathelement location="${DomainLib}/activation.jar" />
<pathelement path="/export/home/opt/bea/jdk130/lib/tools.jar" />
<pathelement location="${ApplicationServerLib}/ejb20.jar" />
<pathelement location="${ApplicationServerLib}/weblogic_sp.jar" />
<pathelement location="${ApplicationServerLib}/weblogic.jar" />
<pathelement location="${DomainLib}/xerces.jar" />
<pathelement location="${DomainLib}/xalan.jar" />
<pathelement location="${CommonJarBuildLocation}/${CommonJarName}" />
<pathelement location="${build}/DependantClasses" />
<pathelement location="${DomainLib}/log4j.jar" />
</classpath>
</weblogic>
<include name="**/*.xml"/>
<exclude name="**/weblogic*.xml"/>
</ejbjar>
Has anyone else got
this?
