You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Arti Singh <ar...@yahoo.ca> on 2005/08/25 21:43:27 UTC

DEPLOY PLUGINS TO ANT FAILS WITH EXIT CODE OF 1

HI Guys,
           I need help :). I have been trying to deploy  a few j2ee plugins to weblogic server.Im building my plugins with my build file called build-orderctext which calls a main build file located elsewhere to deploy to weblogic.It compiles,assembles the plugins, adds to a jar, crerates the mainfest and then fails when calling ejbc on the main build file. 
 
.....................................................................................................
ant output
 
ant -f build-orderctext.xml
Buildfile: build-orderctext.xml
init:
     [echo]
     [echo]  Current Configuration:
     [echo]   ----------------------
     [echo]   database.username=OMS_28_ARTIEFI
     [echo]   database.password=OMS_28_ARTIEFI
     [echo]   database.url=jdbc:oracle:thin:@sol9itg.metasolv.com:1531:SOL9ITG
     [echo]   weblogic.url=t3://cheetah:7705
     [echo]   weblogic.password=weblogic
     [echo]   weblogic.username=system
     [echo]   weblogic.domain.server=myserver
     [echo]   plugins.assemble.destdir=.${basedir/assemble}
     [echo]
     [echo]
compile-taskcontext-plugin:
     [echo] copiling task context plugin code
     [echo]     step 1 of 3: create classes directory
     [echo]     step 2 of 3: compile source
    [javac] Compiling 8 source files to C:\Program Files\OMS\SDK\SDK-PLugin\samp
les\TEST\class
     [echo]     step 3 of 3: copy configuration files
build-taskcontext-plugin:
     [echo] building taskcontext plugin via CMT
main:
init:
plugin-subproject-build:
plugin-assemble:
   [plugin] Validating automationMap.xml file
   [plugin]     Plug-in Source: C:\Program Files\OMS\SDK\SDK-PLugin\samples\TEST
\class
   [plugin]     Schema: C:\Progra~1\OMS\SDK\SDK-PLugin\CartridgeManagementTool\d
evelopment\Plugin\SDK\automationdeploy_bin\automationMap.xsd
   [plugin] Validating plug-in classes in automationMap.xml file
   [plugin] C:\Program Files\OMS\SDK\SDK-PLugin\samples\TEST\class\META-INF\appl
ication.xml file is valid
   [plugin] Assembling...
   [plugin] Creating staging directory: C:\Program Files\OMS\SDK\SDK-PLugin\samp
les\TEST\staging-temp
   [delete] Deleting directory C:\Program Files\OMS\SDK\SDK-PLugin\samples\TEST\
staging-temp
    [mkdir] Created dir: C:\Program Files\OMS\SDK\SDK-PLugin\samples\TEST\stagin
g-temp
   [plugin] Copying plug-in class files to staging directory
     [copy] Copying 38 files to C:\Program Files\OMS\SDK\SDK-PLugin\samples\TEST
\staging-temp
   [plugin] Unjar SDK files to staging directory
   [plugin] Parsing C:\Program Files\OMS\SDK\SDK-PLugin\samples\TEST\class\META-
INF\automationMap.xml file
   [plugin]     Creating XML Document from file: C:\Program Files\OMS\SDK\SDK-PL
ugin\samples\TEST\class\META-INF\automationMap.xml
   [plugin] Automator:
   [plugin]     Name: taskAutomator
   [plugin] receiver Type: am:InternalReceiver
   [plugin] localreceiverType:InternalReceiver
   [plugin]     NameSpace: test
   [plugin]     Version: 1.0
   [plugin] Automator:
   [plugin]     Name: taskAutomator
   [plugin] receiver Type: am:InternalReceiver
   [plugin] localreceiverType:InternalReceiver
   [plugin]     NameSpace: test
   [plugin]     Version: 1.0
   [plugin] Automator:
   [plugin]     Name: taskAutomator
   [plugin] receiver Type: am:InternalReceiver
   [plugin] localreceiverType:InternalReceiver
   [plugin]     NameSpace: test
   [plugin]     Version: 1.0
   [plugin] Updating the plug-in ejb-jar.xml and weblogic-ejb-jar.xml files
   [plugin] Create Empty XML Document for ejb-jar.xml
   [plugin] Create Empty XML Document for weblogic-ejb-jar.xml
   [plugin] Add the environment variables for plugin EJB : OrderContext
   [plugin] Add the weblogic-enterprise-bean for the dispatcher message driven b
ean
   [plugin] Add the environment variables for plugin EJB : OrderContext.OrderCon
text_OrderProcess
   [plugin] Add the weblogic-enterprise-bean for the dispatcher message driven b
ean
   [plugin] Add the environment variables for plugin EJB : OrderContext.OrderCon
text_Remark
   [plugin] Add the weblogic-enterprise-bean for the dispatcher message driven b
ean
   [plugin] Creating manifest file at C:\Program Files\OMS\SDK\SDK-PLugin\sample
s\TEST\staging-temp\META-INF\MANIFEST.MF
   [plugin] Setting Class-Path in manifest.mf file to:  omslogging.jar automatio
n_plugins.jar log4j.jar commons-logging.jar commons-collections-3.1.jar
   [plugin] Calling ebjc on C:\Program Files\OMS\SDK\SDK-PLugin\samples\TEST\cla
ss
     [java] Usage: java weblogic.ejbc [options] <source directory or jar file> [
<target directory or jar file>]
     [java] where options include:
     [java]     -help             Print the standard usage message.
     [java]     -version          Print version information.
     [java]     -idl              Generate idl for remote interfaces
     [java]     -idlOverwrite     Always overwrite existing IDL files
     [java]     -idlVerbose       Display verbose information for IDL
     [java]                       generation
     [java]     -idlNoValueTypes  Do not generate valuetypes and
     [java]                       methods/attributes that contain them.
     [java]     -idlNoAbstractInterfaces Do not generate abstract interfaces and
     [java]                       methods/attributes that contain them.
     [java]     -idlFactories     Generate factory methods for valuetypes.
     [java]     -idlVisibroker    Generate IDL somewhat compatible with
     [java]                       Visibroker 4.5 C++.
     [java]     -idlOrbix         Generate IDL somewhat compatible with Orbix
     [java]                       2000 2.0 C++.
     [java]     -idlDirectory <dir> Specify the directory where IDL files will b
e
     [java]                       created (default : target directory or jar)
     [java]     -iiop             Generate CORBA stubs.
     [java]     -iiopDirectory <dir> Specify the directory where IIOP stub files
     [java]                       will be written (default : target directory
     [java]                       or jar)
     [java]     -idlMethodSignatures <> Specify the method signatures used to tr
igger
     [java]                       idl code generation.
     [java]     -forceGeneration  Force generation of wrapper classes.  Without
     [java]                       this flag the classes may not be regenerated
     [java]                       if it is determined to be unnecessary.
     [java]     -basicClientJar   Generate a client jar that does not contain
     [java]                       deployment descriptors.
     [java] ERROR: incorrect command-line.
     [java]     -convertDDs       Convert old 1.1 deployment descriptors to
     [java]                       7.0. If this flag is set, ejbc invokes
     [java]                       ddconverter to convert to 70 descriptors.
     [java]     -disableHotCodeGen Generate ejb stub and skel as part of ejbc.
     [java]                       Avoid HotCodeGen to have better performance.
     [java]     -keepgenerated    Keep the generated .java files.
     [java]     -compiler <javac> Java compiler to exec.  If not specified, the
     [java]                       -compilerclass option will be used.
     [java]     -compilerclass <com.sun.tools.javac.Main> Compiler class to invo
ke.
     [java]     -g                Compile debugging info into class file.
     [java]     -nowarn           Compile without warnings.
     [java]     -verbose          Compile with verbose output.
     [java]     -verboseJavac     Enable Java compiler verbose output.
     [java]     -deprecation      Warn about deprecated calls.
     [java]     -normi            Passed through to Symantec's sj.
     [java]     -classpath <path> Classpath to use.
     [java]     -J<option>        Flags passed through to java runtime.

BUILD FAILED
C:\Program Files\OMS\SDK\SDK-PLugin\samples\TEST\build-orderctext.xml:65: The fo
llowing error occurred while executing this line:
C:\Progra~1\OMS\SDK\SDK-PLugin\CartridgeManagementTool\development\build.xml:336
: Java returned: 1
Total time: 7 seconds


		
---------------------------------
Find your next car at Yahoo! Canada Autos