aspose file tools*
The moose likes Websphere and the fly likes war file question Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Websphere
Bookmark "war file question" Watch "war file question" New topic
Author

war file question

Shreya Menon
Ranch Hand

Joined: Jul 31, 2001
Posts: 285
Hi all,
I have a web project which I developed in WSAD and its running fine. Npw I want to install this web project in another machine.
I tried exporting the war file and then importing the war file in the other machine.
But I needed to add all the jar files by hand. I dont want to do this, because we have to send this jar file to the business team where they dont have any tech exposure. So I would prefer having a war with all the external jars added.
Can I add jar files manually, or whats the proper solution ?
Thanks
Kyle Brown
author
Ranch Hand

Joined: Aug 10, 2001
Posts: 3892
    
    5
If the JAR files are the things that are already in the WebSphere classpath (things in the AppServer/lib directory or in the JDK) then you don't need to add them to the WAR file.
If they are 3rd party JARs then you should import them into the WAR file inside WSAD, which will automatically make sure they're packaged correctly into the WAR's lib directory.
kyle


Kyle Brown, Author of Persistence in the Enterprise and Enterprise Java Programming with IBM Websphere, 2nd Edition
See my homepage at http://www.kyle-brown.com/ for other WebSphere information.
Shreya Menon
Ranch Hand

Joined: Jul 31, 2001
Posts: 285
Thanks Kyle,
You mean, when I say, import war, in the next screen add the external jar files, ok. Got it
Thanks
Could you pls let me know whats the max size of a file that can be sent as a SOAP attachment ?
Maya
Kyle Brown
author
Ranch Hand

Joined: Aug 10, 2001
Posts: 3892
    
    5
Maya,
AFAIK there is no max size. I've never encountered on at least...
Kyle
Shreya Menon
Ranch Hand

Joined: Jul 31, 2001
Posts: 285
Thanks
BTW, I exported my WAR file from WSAD. I opened the war and saw 3 of my classes inside the "WEB-INF"/classes/com/test folder.
But when I tried creating a new web project in another machine and try importing the previous jar file, I imported it but inside WSAD I am not seeing any classes inside the WEB-INF/classes folder. In other ways, when I imported a war file with classes into WSAD, I got an empty classes folder..
Why is it so ?
Thanks
Maya
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: war file question