wood burning stoves 2.0*
The moose likes Ant, Maven and Other Build Tools and the fly likes Error in building EJB 2.1 on WAS6.1 using ANT 1.6.1 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Bookmark "Error in building EJB 2.1 on WAS6.1 using ANT 1.6.1" Watch "Error in building EJB 2.1 on WAS6.1 using ANT 1.6.1" New topic
Author

Error in building EJB 2.1 on WAS6.1 using ANT 1.6.1

Deboshree Roy
Greenhorn

Joined: Oct 03, 2007
Posts: 21
Hi,
I am trying to build my ejb module useing ANT 1.6.1 on WAS6.1.
I'm getting the following error:
Unable to parse setupCmdLine: null\bin\setupCmdLine.bat (The system cannot find the path specified.)
at com.ibm.ws.ant.utils.ProjectUtils.reportError(ProjectUtils.java:30)
at com.ibm.ws.ant.utils.WasUtils.parseScriptFile(WasUtils.java:257)
at com.ibm.ws.ant.utils.WasUtils.parseProfileScriptFile(WasUtils.java:13
6)
at com.ibm.ws.ant.utils.WasUtils.parseSetupCmdLine(WasUtils.java:115)
at com.ibm.websphere.ant.tasks.WsEjbDeploy.execute(WsEjbDeploy.java:519)

at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:269)
at org.apache.tools.ant.Task.perform(Task.java:364)
at org.apache.tools.ant.Target.execute(Target.java:301)
at org.apache.tools.ant.Target.performTasks(Target.java:328)
at org.apache.tools.ant.Project.executeTarget(Project.java:1215)
at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:383)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:269)
at org.apache.tools.ant.Task.perform(Task.java:364)
at org.apache.tools.ant.Target.execute(Target.java:301)
at org.apache.tools.ant.Target.performTasks(Target.java:328)
at org.apache.tools.ant.Project.executeTarget(Project.java:1215)
at org.apache.tools.ant.Project.executeTargets(Project.java:1063)
at org.apache.tools.ant.Main.runBuild(Main.java:632)
at org.apache.tools.ant.Main.startAnt(Main.java:183)
at org.apache.tools.ant.launch.Launcher.run(Launcher.java:197)
at org.apache.tools.ant.launch.Launcher.main(Launcher.java:56)

I saw a few links on this particular error, but couldnt find any proper solution.
Please do let me know if anyone came across this issue and solved it successfully.
Jeanne Boyarsky
internet detective
Marshal

Joined: May 26, 2003
Posts: 30136
    
150

Deboshree,
What command are you using to kick this off? In particular are you using IBM's ant setup wrapper?

I'm going to move this to our build tools forum where questions about Ant fit in better.


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
Deboshree Roy
Greenhorn

Joined: Oct 03, 2007
Posts: 21
Hi,

I'm using apache-ant-1.6.1 for building my code.
Jeanne Boyarsky
internet detective
Marshal

Joined: May 26, 2003
Posts: 30136
    
150

Originally posted by Deboshree Roy:
I'm using apache-ant-1.6.1 for building my code.

Right. But more specifically, are you typing "build" or are you running an IBM script? IBM specific variables will only work if you use the IBM script.
Deboshree Roy
Greenhorn

Joined: Oct 03, 2007
Posts: 21
Hi,
I provide the path for the build.xml and key in the ant command to start the build process.That is how it was done when my code was originally on WAS and WPS 5.1 and I'm following the same procedure on migration to WAS and WPS 6.1
Jeanne Boyarsky
internet detective
Marshal

Joined: May 26, 2003
Posts: 30136
    
150

Deboshree,
Not sure what WPS is, but the ejb related stuff got stricter between 5 and 6. In particular, it was possible to run ejbdeploy without having a full WebSphere installation in 5 and that seems to be gone in 6.
Deboshree Roy
Greenhorn

Joined: Oct 03, 2007
Posts: 21
Hi
I have made a full installation of Webspere Portal Server(WPS)6.1 on my system.
ejb2.0 was the version that was working on my portal 5.1. But I have migrated on RAD 7.5 using the Migration Wizard to ejb2.1.
The error is coming while executing the wsejbdeploy task.It is not able to lookup the AppServer path (I guess),But when I echo the WASHome path in the script it is displaying the correct path.
f malin
Greenhorn

Joined: Jan 07, 2009
Posts: 19
Deboshree,
Not sure if you have gotten around the problem.
Can you try to defined -Duser.install.root=<Your Profile Dir> on the java command you use to invoke ant? Or is it possible to use the ws_ant command which is shipped with WAS?
Frank
Martijn Verburg
author
Bartender

Joined: Jun 24, 2003
Posts: 3274
    
    5

Hi f malin,

Can you please change your screen name in accordance with our Naming Policy, thanks!


Cheers, Martijn - Blog,
Twitter, PCGen, Ikasan, My The Well-Grounded Java Developer book!,
My start-up.
Martijn Verburg
author
Bartender

Joined: Jun 24, 2003
Posts: 3274
    
    5

My sincere apologies, I got our naming policy dead wrong, happy Ranching!
f malin
Greenhorn

Joined: Jan 07, 2009
Posts: 19

Actually, the more that I think about the problem, the more I wonder if a profile exists on the install?

I believe that starting on WAS 6.0, a profile needs to exist. Do you have a profile create? You can look at <WAS_INSTALL>/properties/profileRegistry.xml
<?xml version="1.0" encoding="UTF-8"?>
<profiles>
<profile isAReservationTicket="false" isDefault="true" name="AppSrv01" path="/opt/WebSphere/profiles/ProcSrv01" template="/opt/WebSphere/profileTemplates/default">
</profile>
</profiles>
You may be able to pass the install root as the user.install.root, or simply create a profile using the pmt in <WAS_INSTALL>/bin/ProfileManagement/pmt


 
Consider Paul's rocket mass heater.
 
subject: Error in building EJB 2.1 on WAS6.1 using ANT 1.6.1
 
Similar Threads
ftpclient class not found?
Canoo web testing
Error in getting pvcs by promotion group
Got problem while building the application
run Perl script from Ant file