Skip to main content

developerWorks >  WebSphere  >  Forums  >  WebSphere Application Server  >  developerWorks

Issue with ws_ant custom task wsstartserver on 64-bit WAS 7.0 on Win 2003    Point your RSS reader here for a feed of the latest messages in this thread


     

 
 

My developerWorks
 Welcome, Guest
Sign in or register
This question is answered.

Permlink Replies: 1 - Pages: 1 - Last Post: Nov 7, 2009 7:22 AM Last Post By: Hemanth_Sundaram Threads: [ Previous | Next ]
Hemanth_Sundaram

Posts: 9
Registered: Jan 12, 2009 05:41:20 AM
Issue with ws_ant custom task wsstartserver on 64-bit WAS 7.0 on Win 2003
Posted: Nov 05, 2009 09:00:42 AM
 
Click to report abuse...   Click to reply to this thread Reply
Hi,

I had installed 64-bit WebSphere 7.0 in a Windows 2003 64-bit machine. When I am trying to start the server through an ANT script using ws_ant utility

C:/> ws_ant.bat -f build.xml -debug -logfile log.txt

where build.xml looks like this;

<?xml version="1.0"?>
<!-- Build file for our first application -->
<project name="Ant test project" default="build" basedir=".">

<taskdef name="wsStartServer" classname="com.ibm.websphere.ant.tasks.StartServer" />
<target name="build" >

<wsStartServer server="server1" profileName="peoplesoft3" />

</target>
</project>

I get the following error;



startServer profileName=psft_image registry=D:\Anusha\WAS7_Image\properties\profileRegistry.xml
startServer profileHome=D:\Anusha\PT8.51-102-R2\webserv\psft_image
startServer JVMJ9VM007E Command-line option unrecognised: -d64

startServer Usage: java -options class http://args...
startServer (to execute a class)
startServer or java -jar -options jarfile http://args...
startServer (to execute a jar file)
..............................................................
..............................................................
startServer Could not create the Java virtual machine.



I don't find this kind of a problem in an AIX 5.3 64-bit machine.

Is there any known issue with custom WS_ANT tasks like wsStartServer, wsstopserver etc in Windows 2003 & Win 2008 64-bit boxes.

Note also that this issue happens only with 64-bit version of WebSphere 7.0. I don't see this issue with the 32-bit version of WebSphere 7.0 on Windows 2003 & 2008 64-bit boxes.

If anybody know of a known APAR or a way to workaround this issue let me know.

Thanks,
Hemanth
Hemanth_Sundaram

Posts: 9
Registered: Jan 12, 2009 05:41:20 AM
Re: Issue with ws_ant custom task wsstartserver on 64-bit WAS 7.0 on Win 2003
Posted: Nov 07, 2009 07:22:59 AM   in response to: Hemanth_Sundaram in response to: Hemanth_Sundaram's post
 
Click to report abuse...   Click to reply to this thread Reply
I found that there is an APAR Fix - "PK74488: ON 64-BIT WEBSPHERE APPLICATION SERVER NON-SOLARIS/HP-UX SYSTEMS WS_ANT SCRIPT FAILS" that exactly documents the issue we are facing. This fix had gone in WAS 7.0.0.3 incidentally.

http://www-01.ibm.com/support/docview.wss?rs=180&uid=swg1PK74488

Just wanted to share this for everyone's benefit.

Root Cause:
The -d64 JVM property was being added for all Ant task
invocations on 64-bit platforms and as a result caused the
following error on platforms where the JVM does not support
this property:

JVMJ9VM007E Command-line option unrecognised: -d64

Thanks,
Hemanth

 Tags
Help

Use the search field to find all types of content in My developerWorks with that tag.

Use the slider bar to see more or fewer tags.

Popular tags shows the top tags for this particular type of content or application that you're viewing.

My tags shows your tags for this particular type of content or application that you're viewing.

 

MoreLess 


Point your RSS reader here for a feed of the latest messages in all forums