ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ravi Dodla <Ravi.Do...@valtech.com>
Subject RE: weblogic.ejbc error - Urgent
Date Tue, 25 Sep 2001 15:29:39 GMT
Thanks all for their response. The problem is resolved. The directory in the
path had a space in its name and that was causing all the problem.

Ravi

-----Original Message-----
From: Chris Flemetakis
To: ant-user@jakarta.apache.org
Sent: 9/25/2001 10:18 AM
Subject: RE: weblogic.ejbc error - Urgent

Ravi

I don't think that this will solve your problem necessarily cause I am
not 
sure what you are doing there with those arguments you are passing in
the 
java task.. but this is what I use to build my EJB's.. I hope it helps 
you...

This task requires that the descriptors are renamed.. from ejb-jar.xml
and 
weblogic-ejb-jar.xml to <bean_filename>-ejb-jar.xml and 
<bean_filename>-weblogic-ejb-jar.xml (The task will name them back to
normal 
during execution of the task so you need not worry about that)..

I hope this helps a bit..

Chris

  <target name="ejb" depends="compile, compileLocal">
    <echo message="----------------------------------------------"/>
    <echo message="Creating EJB's"/>
      <ejbjar srcdir="${dir.dsn-classes}" 
descriptordir="${dir.dsn-build}\ejb_descriptors">
       	<include name="**/*jar.xml"/>
        <weblogic destdir="${dir.ear_staging}"
       		  keepgeneric="false"
       		  suffix=".jar"
       		  rebuild="false"
       		  newCMP="true">
       	    <classpath refid="lib_classpath"/>
       	    <wlclasspath refid="lib_classpath"/>
       	</weblogic>
      </ejbjar>
  </target>



>From: Ravi Dodla <Ravi.Dodla@valtech.com>
>Reply-To: ant-user@jakarta.apache.org
>To: "'Kapil_Pawar@i2.com '" <Kapil_Pawar@i2.com>, 
>"'ant-user@jakarta.apache.org '" <ant-user@jakarta.apache.org>
>Subject: RE: weblogic.ejbc error - Urgent
>Date: Tue, 25 Sep 2001 09:35:38 -0500
>
>
>Hi,
>this is the entire output from ant.  Also the build file is attached.
>
>*************************
>C:\valtech\new structure2\bin>set ant_home=c:\jakarta-ant-1.4
>"localcp =
>c:\bea\jdk131\lib\tools.jar;c:\jakarta-ant-1.4\lib\xalan.jar;c:\jakar
>ta-ant-1.4\lib\optional.jar;c:\jakarta-ant-1.4\lib\junit.jar;c:\jakarta
-ant-
>1.4\
>lib\ant.jar;c:\jakarta-ant-1.4\lib\jaxp.jar;c:\jakarta-ant-1.4\lib\crim
son.j
>ar;;
>c:\jakarta-ant-1.4\lib;C:\bea\wlserver6.1\lib\weblogic.jar"
>Buildfile: antBuild.xml
>
>init:
>
>prepare:
>    [delete] Deleting directory C:\valtech\new structure2\build
>     [mkdir] Created dir: C:\valtech\new structure2\build
>
>compile.trs:
>     [javac] Compiling 201 source files to C:\valtech\new
structure2\build
>     [javac] Note: Some input files use or override a deprecated API.
>     [javac] Note: Recompile with -deprecation for details.
>
>jar.trs:
>     [mkdir] Created dir: C:\valtech\new structure2\build\META-INF
>      [copy] Copying 16 files to C:\valtech\new
structure2\build\META-INF
>    [delete] Deleting directory C:\valtech\new structure2\tmp
>     [mkdir] Created dir: C:\valtech\new structure2\tmp
>       [jar] Building jar: C:\valtech\new
structure2\tmp\cqg-tmp-ejb.jar
>      [echo]
>CP=.;c:/bea/jdk131/lib/tools.jar;c:/bea/jdk131/jre/lib/rt.jar;lib/ju
>nit.jar;lib/log4j.jar;lib/log4j-core.jar;lib/fixengine.jar;lib/fix.jar;
c:/be
>a/wl
>server6.1/lib/weblogic.jar;c:/bea/wlserver6.1/lib/weblogic_sp.jar;c:/be
a/wls
>erve
>r6.1/lib/xmlx.jar
>      [java] error: cannot read: C:\valtech\new
>structure2\ejbcgen\com\cqg\trs\ve
>ndors\session\*.java
>      [java] 1 error
>      [java] Exec failed .. exiting
>      [java] Java Result: 1
>
>BUILD SUCCESSFUL
>
>Total time: 46 seconds
>
>****************
>
>This error is frustrating me.... Any help, suggestions will be great.
>
>Ravi
>
>-----Original Message-----
>From: Kapil_Pawar@i2.com
>To: ant-user@jakarta.apache.org
>Sent: 9/25/2001 12:07 AM
>Subject: Re: weblogic.ejbc error
>
>
>Hi Ravi,
>
>The partial output of the build and the partial build file do not seem
>to match. Can you cross check and send the relevant output of the
build?
>
>
>Clearly if mkdir is the first task in the target the build output will
>contain [mkdir] blah blah...
>
>Regards
>_____________________________________
>Kapil Singh Pawar
>Consultant - Integration
>i2 Technologies India Private Ltd.
>1 Primrose Road
>Bangalore 560 025, INDIA
>Email: kapil_pawar@i2.com
>Tel: +91 80 558 1487-90 ext. 2416
>
>
>
>	Ravi Dodla <Ravi.Dodla@valtech.com>
>
>
>09/25/01 10:15 AM
>Please respond to ant-user
>
>         To:        "'ant-user@jakarta.apache.org'"
><ant-user@jakarta.apache.org>
>         cc:
>         Subject:        weblogic.ejbc error
>
>
>
>
>
>Hi ,
>I am getting an error when running weblogic.ejbc
>I get the error as below. The directory exists but it fails.
>Can you tell me how u were able to solve the problem
>
>
>******************
>ejb-jar.trs:
>     [java] error: cannot read: C:\valtech\new
>structure2\ejbcgen\com\cqg\trs\ve
>ndors\session\*.java
>     [java] 1 error
>     [java] Exec failed .. exiting
>     [java] Java Result: 1
>
>
>
>The script is like this:
>
>***************
><target name="jar.trs" depends="init, prepare, compile.trs">
>
>        <!-- copy all xml files to staging directory -->
>        <mkdir dir="${build.dir}/${meta-inf.dir}"/>
>        <copy todir="${build.dir}/${meta-inf.dir}">
>            <fileset dir="${ejb-meta-inf.dir}" />
>        </copy>
>        <delete dir="${tmp.dir}"/>
>        <mkdir dir="${tmp.dir}"/>
>        <jar jarfile="${tmp.dir}/${trs-tmp.jar.name}"
>            basedir="${build.dir}" />
>
>        <!-- Call weblogic ejbc complier -->
>       <echo message="CP=${classpath}"/>
>
>        <java classname="weblogic.ejbc"
>              fork="no"
>              classpath="${classpath}">
>            <arg value="${tmp.dir}/${trs-tmp.jar.name}"/>
>            <arg value="${deploy.dir}/${trs.jar.name}"/>
>        </java>
>    </target>
>
>
>I need to ejbc compile a bunch of EJB's at a time and want to use
>weblogic.ejbc.
>
>Thanks
>Ravi
>
>
>
>
>
><< antBuild.xml >>


_________________________________________________________________
Get your FREE download of MSN Explorer at
http://explorer.msn.com/intl.asp

Mime
View raw message