ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Shamberger, Michael" <Michael.Shamber...@msdw.com>
Subject RE: instability in ant 1.3alpha
Date Thu, 18 Jan 2001 00:23:42 GMT
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.cl
ass doesn't exist.
    [javac]
com\msdw\online\service\commission\CommissionServiceBusiness.java omitted as
C:\build_classes\com\msdw\online\service\commission\CommissionServiceBusines
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.cl
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\coreMsd
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\co
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\3rdParty
\log4j-full.jar;C:\deploy_root_USA\jars\3rdParty\junit3_2.jar;C:\deploy_root
_USA\jars\3rdParty\mqjms.jar;C:\deploy_root_USA\jars\3rdParty\mq.jar;C:\depl
oy_root_USA\jars\3rdParty\jakartaregexp11.jar;C:\deploy_root_USA\jars\3rdPar
ty\AdvCommon.jar;C:\deploy_root_USA\jars\3rdParty\Advisor.jar;C:\deploy_root
_USA\jars\3rdParty\AdvisorSvr.ja
r;C:\deploy_root_USA\jars\3rdParty\jsse.jar;C:\deploy_root_USA\jars\3rdParty
\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\NetComponent
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:\web
logic\classes;C:\jdk1.2.2\lib\tools.jar;C:\deploy_root_USA\jars\3rdParty\lic
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\Commission
ServiceBean.java
 
M:\re_coreMsdw_V1\coreMsdw\src\com\msdw\online\service\commission\BlazeCommi
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.checkAndAdd
Inherited(GenericDeploymentTool.java, Compiled Code)
        at
org.apache.tools.ant.taskdefs.optional.ejb.GenericDeploymentTool.processDesc
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:conor@ebinteractive.com.au]
Sent: Wednesday, January 17, 2001 2:56 PM
To: ant-user@jakarta.apache.org
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
conor@cortexebusiness.com.au
Cortex eBusiness
http://www.cortexebusiness.com.au

> -----Original Message-----
> From: Shamberger, Michael [mailto:Michael.Shamberger@msdw.com]
> Sent: Thursday, 18 January 2001 9:49
> To: 'ant-user@jakarta.apache.org'
> 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:Michael.Shamberger@msdw.com]
> Sent: Wednesday, January 17, 2001 2:41 PM
> To: 'ant-user@jakarta.apache.org'
> 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
>

Mime
View raw message