ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alvarado, David" <DAlvar...@u1solutions.com>
Subject java.lang.NoClassDefFoundError
Date Tue, 24 Jul 2001 19:31:04 GMT
When attempting to package the deployable jar file, 
I receive the java.lang.NoClassDefFoundError for one of 
the classes that I want packaged.  This occurs during [ejbc]
portion of ejbjar task.  The generic jar is built, but the
weblogic specific one is where the error occurs.  
No errors are encountered when packaging all the class 
files with scripts.  I'm using weblogic 6.0 on windows 2000.
The VSS and javac tasks containd in the same build file
work fine.

Here is my deployment script:

	<target name="deploy">
		<ejbjar descriptordir="${dd.dir}" srcdir="${build.classes}"
basejarname="antTest" classpath="${build.classes}">
			<include name="ejb-jar.xml"/>
			<exclude name="weblogic*.xml"/>
			<support dir="${build.classes}">
				<include name="*.class"/>
			</support>
			<weblogic destdir="${deployment.dir}"
keepgeneric="true">
				<classpath>
					<pathelement
path="${weblogic.classes};${build.classes}"/>
				</classpath>
				<wlclasspath>
					<pathelement
path="${weblogic.classes}"/>
				</wlclasspath>
			</weblogic>
		</ejbjar>
	</target>

here is the error I'm receiving:
deploy:
	[ejbjar]building antTest.jar with 63 files
		[ejbc] java.lang.NoClassDefFoundError:
com/myutility/ejb/DataErrorException
		[ejbc] at java.lang.NoClass.getMethods0<Native Method>
		[ejbc] at java.lang.NoClass.getMethods<Class.java:718>
		[ejbc] at
weblogic.ejb20.deployer.ClientDrivenBeanInfoImpl.initializeMethodInfos<Clien
tDrivenBeanInfoImpl.java, Compiled Code>
		[ejbc] at
weblogic.ejb20.deployer.ClientDrivenBeanInfoImpl.<init><ClientDrivenBeanInfo
Impl.java:148>
		[ejbc] at
weblogic.ejb20.deployer.EntityBeanInfoImpl.<init><EntityBeanInfoImpl.java,
Compiled Code>
		[ejbc] at
weblogic.ejb20.deployer.BeanInfoImpl.createBeanInfoImpl<BeanInfoImpl.java:21
0>
		[ejbc] at
weblogic.ejb20.deployer.DeploymentInfoImpl.initializeBeanInfos<DeploymentInf
oImpl.java, Compiled Code>
		[ejbc] at
weblogic.ejb20.deployer.DeploymentInfoImpl.<init><DeploymentInfoImpl.java:86
>
		[ejbc] at
weblogic.ejb20.ejbc.EJBCompiler.setupEJB.<EJBCompiler.java:106>
		[ejbc] at weblogic.ejb20.runBody<EJBCompiler.java, Compiled
Code>
		[ejbc] at weblogic.utils.compiler.Tool.run<Tool.java:81>
		[ejbc] at weblogic.ejbc.main<ejbc.java:20>
		[ejbc] Java Result: 1

BUILD SUCCESSFUL


Mime
View raw message