ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Cyril Bouteille <CyrilBoutei...@yahoo.com>
Subject Re: wlrun task java 1.3 -server option
Date Mon, 13 Nov 2000 17:09:57 GMT
Conor,

> Can you run ant with the -debug flag to see what the command line is
> used to run the server when you specify -server in the jvmargs?

Please see the following log.
The only difference with my startWebLogic.sh script is that the -server
is not the first argument.
Bingo! I tried to put -server after a -Dkey=value at the command line
and it gives this error.

Is there any way to make the <wlrun> task put the jvmargs attribute at
the beginning of the command line for starting weblogic?

Build sequence for target `weblogic' is [weblogic]
Complete build sequence is [weblogic, tomcat, p4edit, compile, javadoc,
clean, test, apache, ejb]
Setting project property: wl.props ->
/home/cyril/p4/hotwire/2.0/deploy/dev/weblogic/weblogic.properties
Setting token to filter: HOTWIRE_CLASSES ->
/home/cyril/p4/hotwire/2.0/classes
Copying 1 files to /home/cyril/p4/hotwire/2.0/deploy/dev/weblogic
Copying /home/cyril/p4/hotwire/2.0/deploy/dev/weblogic.props to
/home/cyril/p4/hotwire/2.0/deploy/dev/weblogic/weblogic.properties
Copy: /home/cyril/p4/hotwire/2.0/deploy/dev/weblogic.props >
/home/cyril/p4/hotwire/2.0/deploy/dev/weblogic/weblogic.properties
Replacing: @HOTWIRE_CLASSES@ -> /home/cyril/p4/hotwire/2.0/classes
   +Task: java
Forking java
-Dweblogic.class.path=/home/cyril/p4/java/sunos-sparc/1.3/jre/lib/rt.jar:/home/cyril/p4/java/sunos-sparc/1.3/lib/tools.jar:/home/cyril/p4/apache/ant/1.2/lib/jaxp.jar:/home/cyril/p4/apache/ant/1.2/lib/parser.jar:/home/cyril/p4/junit/3.2/junit.jar:/home/cyril/p4/apache/ant/1.2/lib/ant.jar:/home/cyril/p4/apache/ant/1.2/lib/optional.jar:/home/cyril/p4/apache/tomcat/3.1/lib/jasper.jar:/home/cyril/p4/apache/tomcat/3.1/lib/servlet.jar:/home/cyril/p4/apache/tomcat/3.1/lib/webserver.jar:/home/cyril/p4/weblogic/5.1/lib/weblogic510sp6.jar:/home/cyril/p4/weblogic/5.1/classes:/home/cyril/p4/weblogic/5.1/license:/home/cyril/p4/weblogic/5.1/lib/weblogicaux.jar:/home/cyril/p4/hotwire/1.0/classes/lib/TOPLinkWLX.jar:/home/cyril/p4/hotwire/1.0/classes/lib/TOPLink.jar:/home/cyril/p4/hotwire/1.0/classes/lib/TOPLinkX.jar:/home/cyril/p4/hotwire/1.0/classes/lib/Tools.jar:/home/cyril/p4/jce/1.2.1/lib/jce1_2_1.jar:/home/cyril/p4/jce/1.2.1/lib/sunjce_provider.jar:/home/cyril/p4/hotwire/2.0/classes/lib/e!
land.jar:/home/cyril/p4/hotwire/2.0/classes/lib/cybersource3300.jar:/home/cyril/p4/hotwire/2.0/classes/lib/jce1_2-do.jar:/home/cyril/p4/hotwire/2.0/classes/lib/jnet.jar:/home/cyril/p4/hotwire/2.0/classes/lib/jcert.jar:/home/cyril/p4/hotwire/2.0/classes/lib/jsse.jar:/home/cyril/p4/hotwire/2.0/classes/lib/org.jar:/home/cyril/p4/hotwire/2.0/classes/lib/mail.jar:/home/cyril/p4/hotwire/2.0/classes/lib/oracle-thin.zip:/home/cyril/p4/hotwire/2.0/classes
-Djava.security.manager
-Djava.security.policy==/home/cyril/p4/weblogic/5.1/weblogic.policy
-Dweblogic.system.home=/home/cyril/p4/weblogic/5.1
-Dweblogic.system.name=myserver
-Dweblogic.system.propertiesFile=weblogic.properties -server -native
-ms128m -mx128m
-Dhotwire.properties=/home/cyril/p4/hotwire/2.0/deploy/dev/hotwire.props
-Dweblogic.system.home=/home/cyril/p4/hotwire/2.0/deploy/dev/weblogic
-Dweblogic.cluster.enable=false
-Dweblogic.system.logFile=wyvern-j2ee.log
-Dweblogic.jdbc.logFileName=wyvern-jdbc.log -classpath
/home/cyril/p4/weblogic/5.1/lib/weblogic510sp6boot.jar:/home/cyril/p4/weblogic/5.1/classes/boot
weblogic.Server
Unrecognized option: -server
Could not create the Java virtual machine.

BUILD FAILED
 
> > -----Original Message-----
> > From: cyril@wyvern.hotwirebiz.com
> > [mailto:cyril@wyvern.hotwirebiz.com]On
> > Behalf Of Cyril Bouteille
> > Sent: Saturday, 11 November 2000 6:13
> > To: ant-user@jakarta.apache.org
> > Subject: wlrun task java 1.3 -server option
> >
> >
> > Hi,
> >
> > When I use the following task in ant:
> >     <wlrun home="${wl.home}"
> >            classpath="${wl.boot.cp}"
> >            wlclasspath="${java.class.path}"
> >            properties="weblogic.properties"
> >          jvmargs="${wl.args}"/>
> >
> > It fails if the -server (or -client) option of JDK 1.3 is set in the
> > jvmargs:
> > weblogic:
> > Copying 1 files to /home/cyril/p4/hotwire/2.0/deploy/dev/weblogic
> > Unrecognized option: -server
> > Could not create the Java virtual machine.
> > BUILD FAILED
> >
> > I'm pretty sure weblogic starts with JDK 1.3 since, when I remove the
> > option, the log reports:
> > Fri Nov 10 10:54:12 PST 2000:<I> <System Props> java.home =
> > /home/cyril/p4/java/sunos-sparc/1.3/jre
> > Fri Nov 10 10:54:12 PST 2000:<I> <System Props> java.runtime.name =
> > Java(TM) 2 Runtime Environment, Standard Edition
> > Fri Nov 10 10:54:12 PST 2000:<I> <System Props> java.runtime.version
=
> > 1.3.0
> >
> > I can start weblogic with -server just fine with the regular
> > startWebLogic.sh script.
> >
> > Any idea why this option is not supported by <wlrun>?
> >
> > Thanks,
Mime
View raw message