Michael,

I have made a change in ejbjar so that a NoClassDefFound error is not
fatal. The code was catching ClassNotFoundExceptions so this is not a major
change. It basically means that while the loader did find your class, it
could not find another class upon which it depended. There can be a few
reasons for that, especially due to interaction between the classpaths of
the ejbjar class loader and the system classloader.

Before you pick up this change, can you please run ant -debug and send me
the output. Probably easier to read if you zip it and send it to me
directly. In debug mode, the AntClassLoader will each class load attempt
and which loader will be responsible.

Jeff, the same would probably apply to you.

Once you do pick up this change, you will most likely get a warning about
being unable to load a superclass or superinterface. If you let me know
about those too, it would be good.

Conor

----- Original Message -----
From: "Shamberger, Michael" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, January 18, 2001 11:23 AM
Subject: RE: instability in ant 1.3alpha


> Conor,
>
> I have attached the debug output and stack trace.  It appears that the
> classpath that is getting sent to ejbc is getting truncated somehow since
> the class that can't be found is definetely in the classpath and the
target
> works if called again after the failure.  If I remove the bean that
fails,
> then I get a failure on the bean that would have been after that one.
The
> classpath used for ejbc is not printed out in debug mode.  I am using the
> jikes compiler for ejbc.  Another thing I noticed that ejbjar does not
have
> the same continue after an error that was recently put into the javac
task.
>
>
> commissionService.jar:
>     [javac] com\msdw\online\service\commission\CommissionService.java
> omitted as
>
C:\build_classes\com\msdw\online\service\commission\CommissionService.class
> is up to date.
>     [javac] com\msdw\online\service\commission\CommissionServiceBean.java
> added
> as
>
C:\build_classes\com\msdw\online\service\commission\CommissionServiceBean.c
l
> ass doesn't exist.
>     [javac]
> com\msdw\online\service\commission\CommissionServiceBusiness.java omitted
as
>
C:\build_classes\com\msdw\online\service\commission\CommissionServiceBusine
s
> s.class is up to date.
>     [javac] com\msdw\online\service\commission\CommissionServiceHome.java
> omitted as
>
C:\build_classes\com\msdw\online\service\commission\CommissionServiceHome.c
l
> ass is up to date.
>     [javac] com\msdw\online\service\commission\BlazeCommissionIO.java
added
> as
>
C:\build_classes\com\msdw\online\service\commission\BlazeCommissionIO.class
> doesn't exist.
>     [javac] Compiling 2 source files to C:\build_classes
>     [javac] Using jikes compiler
>     [javac] Compilation args: jikes -d C:\build_classes -classpath
>
C:\jdk1.2.2\jre\lib\ext\iiimp.jar;C:\build_classes;M:\re_coreMsdw_V1\coreMs
d
>
w\classes\ant\lib\ant.jar;M:\re_coreMsdw_V1\coreMsdw\classes\ant\lib\parser
.
>
jar;M:\re_coreMsdw_V1\coreMsdw\classes\ant\lib\jaxp.jar;M:\re_coreMsdw_V1\c
o
> reMsdw\classes\ant\lib\op
>
tional.jar;C:\weblogic\lib\weblogic510sp6.jar;C:\deploy_root_USA\properties
;
>
C:\deploy_root_USA\jars\3rdParty\Acme.jar;C:\deploy_root_USA\jars\3rdParty\
A
>
dventNetSnmp.jar;C:\deploy_root_USA\jars\3rdParty\AdventNetSnmpAgent.jar;C:
\
>
deploy_root_USA\jars\3rdParty\dogsofdow.jar;C:\deploy_root_USA\jars\3rdPart
y
>
\log4j-full.jar;C:\deploy_root_USA\jars\3rdParty\junit3_2.jar;C:\deploy_roo
t
>
_USA\jars\3rdParty\mqjms.jar;C:\deploy_root_USA\jars\3rdParty\mq.jar;C:\dep
l
>
oy_root_USA\jars\3rdParty\jakartaregexp11.jar;C:\deploy_root_USA\jars\3rdPa
r
>
ty\AdvCommon.jar;C:\deploy_root_USA\jars\3rdParty\Advisor.jar;C:\deploy_roo
t
> _USA\jars\3rdParty\AdvisorSvr.ja
>
r;C:\deploy_root_USA\jars\3rdParty\jsse.jar;C:\deploy_root_USA\jars\3rdPart
y
>
\xerces1_2_1.jar;C:\deploy_root_USA\jars\3rdParty\xalan.jar;C:\deploy_root_
U
>
SA\jars\3rdParty\jce1_2-do.jar;C:\deploy_root_USA\jars\3rdParty\NetComponen
t
>
s.jar;C:\deploy_root_USA\jars\3rdParty\db2java.zip;C:\weblogic\lib\jConnect
.
>
jar;C:\weblogic\lib\weblogicaux.jar;C:\weblogic\lib\weblogicbeans.jar;C:\we
b
>
logic\classes;C:\jdk1.2.2\lib\tools.jar;C:\deploy_root_USA\jars\3rdParty\li
c
> ense;C:\jdk1.2.2\jre\lib\rt.jar;M:\re_coreMsdw_V1\coreMsdw\src -g -depend
>     [javac] Files to be compiled:
>
>
M:\re_coreMsdw_V1\coreMsdw\src\com\msdw\online\service\commission\Commissio
n
> ServiceBean.java
>
>
M:\re_coreMsdw_V1\coreMsdw\src\com\msdw\online\service\commission\BlazeComm
i
> ssionIO.java
>
>    [ejbjar] 1 deployment descriptors located.
>    [ejbjar] The old method for locating CMP files has been DEPRECATED.
>    [ejbjar] Please adjust your weblogic descriptor and set oldCMP="false"
to
> use the new CMP descriptor inclusion mechanism.
> Class com.msdw.online.service.commission.CommissionServiceHome loaded
from
> system loader
>    [ejbjar] looking at interface
> com.msdw.online.service.commission.CommissionServiceHome
>    [ejbjar]      implements javax.ejb.EJBHome
> Class com.msdw.online.service.commission.CommissionService loaded from
> system loader
>    [ejbjar] looking at interface
> com.msdw.online.service.commission.CommissionService
>    [ejbjar]      implements javax.ejb.EJBObject
>    [ejbjar]      implements
> com.msdw.online.service.commission.CommissionServiceBusiness
>
> BUILD FAILED
>
> java.lang.NoClassDefFoundError:
> com/blazesoft/server/deploy/ejb/session/NdStatelessEjbServerBean
>         at java.lang.ClassLoader.defineClass0(Native Method)
>         at java.lang.ClassLoader.defineClass(ClassLoader.java, Compiled
> Code)
>         at
> java.security.SecureClassLoader.defineClass(SecureClassLoader.java,
Compiled
> Code)
>         at java.net.URLClassLoader.defineClass(URLClassLoader.java,
Compiled
> Code)
>         at java.net.URLClassLoader.access$1(URLClassLoader.java, Compiled
> Code)
>         at java.net.URLClassLoader$1.run(URLClassLoader.java, Compiled
Code)
>         at java.security.AccessController.doPrivileged(Native Method)
>         at java.net.URLClassLoader.findClass(URLClassLoader.java,
Compiled
> Code)
>
>         at java.lang.ClassLoader.loadClass(ClassLoader.java, Compiled
Code)
>         at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java,
> Compiled Code)
>         at java.lang.ClassLoader.loadClass(ClassLoader.java, Compiled
Code)
>         at java.lang.ClassLoader.findSystemClass(ClassLoader.java,
Compiled
> Code)
>         at
> org.apache.tools.ant.AntClassLoader.loadClass(AntClassLoader.java,
Compiled
> Code)
>         at java.lang.ClassLoader.loadClass(ClassLoader.java, Compiled
Code)
>         at
>
org.apache.tools.ant.taskdefs.optional.ejb.GenericDeploymentTool.checkAndAd
d
> Inherited(GenericDeploymentTool.java, Compiled Code)
>         at
>
org.apache.tools.ant.taskdefs.optional.ejb.GenericDeploymentTool.processDes
c
> riptor(GenericDeploymentTool.java, Compiled Code)
>         at
> org.apache.tools.ant.taskdefs.optional.ejb.EjbJar.execute(EjbJar.java,
> Compiled Code)
>         at org.apache.tools.ant.Target.execute(Target.java, Compiled
Code)
>         at org.apache.tools.ant.Project.runTarget(Project.java, Compiled
> Code)
>         at org.apache.tools.ant.Project.executeTarget(Project.java,
Compiled
> Code)
>         at org.apache.tools.ant.Project.executeTargets(Project.java,
> Compiled Code)
>         at org.apache.tools.ant.Main.runBuild(Main.java, Compiled Code)
>         at org.apache.tools.ant.Main.main(Main.java:149)
>
> Total time: 16 minutes 51 seconds
> com/blazesoft/server/deploy/ejb/session/NdStatelessEjbServerBean
>
>
> Example target:
>
>
>   <!--   ###### TARGET: commissionService.jar ######   -->
>   <target name="commissionService.jar"
>           depends="externals">
>     <javac srcdir="${CORE_INTERNAL_SRC}"
>            destdir="${INTERNAL_CLASSES}"
>            includes="${EJB_SERVICE_SRC}/commission/*.java"
>            excludes=""
>            debug="${DEBUG}"
>            failonerror="${FAILONERROR}"
>            depend="yes"
>     />
>     <ejbjar srcdir="${INTERNAL_CLASSES}"
>
> descriptordir="${CORE_INTERNAL_SRC}/${EJB_SERVICE_SRC}/commission"
>             basejarname="commissionService">
>       <weblogic destdir="${DEPLOY_EJB}"
>                 classpath="${CLASSPATH}"
>                 compiler="${JAVAC}"/>
>       <include name="**/ejb-jar.xml"/>
>       <exclude name="**/weblogic*.xml"/>
>     </ejbjar>
>   </target>
>
>
> -----Original Message-----
> From: Conor MacNeill [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, January 17, 2001 2:56 PM
> To: [EMAIL PROTECTED]
> Subject: RE: instability in ant
>
>
> Michael,
>
> I think that should be 1.3alpha :-)
>
> Can you try a later nightly build (check the temp directory). The build
from
> the 8th has Sam's build.sysclasspath patch which does not interact well
with
> ejbjar, I think.
>
> Conor
>
>
> --
> Conor MacNeill
> [EMAIL PROTECTED]
> Cortex eBusiness
> http://www.cortexebusiness.com.au
>
> > -----Original Message-----
> > From: Shamberger, Michael [mailto:[EMAIL PROTECTED]]
> > Sent: Thursday, 18 January 2001 9:49
> > To: '[EMAIL PROTECTED]'
> > Subject: instability in ant
> >
> >
> > Hi,
> >
> > A little more info:
> >
> > Using: windows 2000 sp1
> >        jdk1.2.2
> >        jikes compiler
> >        ant1.3 Jan 8, 2001
> >
> > Mike
> >
> > -----Original Message-----
> > From: Shamberger, Michael [mailto:[EMAIL PROTECTED]]
> > Sent: Wednesday, January 17, 2001 2:41 PM
> > To: '[EMAIL PROTECTED]'
> > Subject: instability in ant
> >
> >
> > Hi,
> >
> > I have an ant build that uses about 70 targets mainly calling the
> > javac and
> > ejb-jar tasks.  The build is failing on the same target every time on
my
> > windows machine.  When I run the build a second time it picks up where
it
> > left off and finishes.  I had originally thought it may be due to
> > a problem
> > with Clearcase dynamic views, but I then created a snapshot view
> > and had the
> > same problem.  It seems that there is some sort of instability in ant.
> > Another strange thing is that it only has the failure on about half of
the
> > win2k development machines at my company.  Has anyone else seen
> > this type of
> > instability?  Any suggestions for windows parameters that I can change?
> >
> > Thanks,
> > Mike
> >
>

Reply via email to