ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "james" <ja...@yoosed.com>
Subject Re: EJBJAR
Date Fri, 23 Mar 2001 02:19:06 GMT

when ant "forks" it is triggering execution in another VM.... I guessing
that
this VM's classloader is a "sibling" to the VM that your ejbjar is currently
running in and hence has no access to your classpath... if you were to
stick:

     <weblogic destdir="${env.STAGE_DIRECTORY}">
         <classpath>
             <pathelement path="yourclasspath}"/>
         </classpath>
    </weblogic>

I bet you you will be able to ejbjar! Although you'll get a bunch of
warnings about how your ejb classes are in your classpath and blah blah
blah...

----- Original Message -----
From: "Jason Lin" <jlin@boats.com>
To: <ant-user@jakarta.apache.org>
Sent: Thursday, March 22, 2001 7:31 PM
Subject: RE: EJBJAR


> Thanks James, but unfortunately, I don't think that's it because:
>
> a) I can't find a weblogic.jar in the lib directory(but there is a
> weblogic.ejbc in weblogic\classes, and that is in the classpath)
> and
> b) When I run ant verbosely, it spits out this:
>    [ejbjar] Calling weblogic.ejbc for
> E:\projects\p38\deploy\com\Finance-generic.jar
>      [ejbc] Forking java -classpath
>
E:\projects\p38\classes;D:\weblogic\classes;E:\projects\p38\lib\cdkjava12_32
>
10.jar;E:\projects\p38\lib\classes12.zip;E:\projects\p38\lib\com.ibm.mq.iiop
>
jar;E:\projects\p38\lib\com.ibm.mq.jar;E:\projects\p38\lib\com.ibm.mqbind.j
>
ar;E:\projects\p38\lib\com.ibm.mqjms.jar;E:\projects\p38\lib\domwriter.jar;E
>
:\projects\p38\lib\fscontext.jar;E:\projects\p38\lib\gnu-regexp-1.0.8.jar;E:
>
\projects\p38\lib\j2ee.jar;E:\projects\p38\lib\jce1_2-do.jar;E:\projects\p38
>
\lib\jms.jar;E:\projects\p38\lib\jndi.jar;E:\projects\p38\lib\mail.jar;E:\pr
>
ojects\p38\lib\Map.jar;E:\projects\p38\lib\MapQuestX.jar;E:\projects\p38\lib
>
\MQJavaCore-0.95.jar;E:\projects\p38\lib\xalan.jar;E:\projects\p38\lib\xerce
>
s.jar;D:\weblogic\lib\jConnect.jar;D:\weblogic\lib\persistence\WebLogic_RDBM
>
S.jar;D:\weblogic\lib\poolorb.jar;D:\weblogic\lib\rmiForMs.zip;D:\weblogic\l
>
ib\tengahbeans.jar;D:\weblogic\lib\unpacked_jars\antlr.jar;D:\weblogic\lib\u
>
npacked_jars\collections.zip;D:\weblogic\lib\unpacked_jars\infobus.jar;D:\we
>
blogic\lib\unpacked_jars\javax_ejb.zip;D:\weblogic\lib\unpacked_jars\javax_j
>
ts.zip;D:\weblogic\lib\unpacked_jars\jndi.jar;D:\weblogic\lib\unpacked_jars\
>
jsafeWithNative.jar;D:\weblogic\lib\unpacked_jars\swingall.jar;D:\weblogic\l
> ib\weblogicaux.jar;D:\weblogic\lib\weblogicbeans.jar weblogic.ejbc
> E:\projects\p38\deploy\com\Finance-generic.jar
> E:\projects\p38\deploy\com\Finance.jar
>      [ejbc] The system cannot find the path specified.
>      [ejbc] Java Result: 1
>
> And if I run 'java -classpath ..... weblogic.ejbc
> E:\projects\p38\deploy\com\Finance-generic.jar
> E:\projects\p38\deploy\com\Finance.jar', it works.  :(
>
> -Jason
>
> -----Original Message-----
> From: james [mailto:james@yoosed.com]
> Sent: March 22, 2001 17:04
> To: ant-user@jakarta.apache.org
> Subject: Re: EJBJAR
>
>
> you need to feed the ejbc weblogic's class path
> ($WL_HOME/lib/weblogic.jar)
>
> ----- Original Message -----
> From: "Jason Lin" <jlin@boats.com>
> To: "Ant-User (E-mail)" <ant-user@jakarta.apache.org>
> Sent: Thursday, March 22, 2001 6:17 PM
> Subject: EJBJAR
>
>
> > I've been trying to run EJBJAR using the weblogic option, but every time
I
> > do, it does the following:
> >
> > ejb:
> >    [ejbjar] building Finance.jar with 41 files
> >      [ejbc] The system cannot find the path specified.
> >      [ejbc] Java Result: 1
> >    [ejbjar] building p38.jar with 121 files
> >      [ejbc] The system cannot find the path specified.
> >      [ejbc] Java Result: 1
> >
> > The wierd thing is, it successfully creates the 'generic' JAR, and if I
> run
> > ANT with the '-verbose' option, it dumps the 'forking java ...' message
> that
> > calls weblogic.ejbc.  If I cut and paste/execute that, it works fine.
> >
> > My environment specifies JAVA_HOME and it's the same version of java
> that's
> > in the classpath.
> >
> > Any ideas?
> >
> > Thanks
> >
> > -Jason
> >
> >
>
>


Mime
View raw message