aspose file tools*
The moose likes Websphere and the fly likes Websphere & .ear files Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Products » Websphere
Bookmark "Websphere & .ear files" Watch "Websphere & .ear files" New topic
Author

Websphere & .ear files

S Mi
Greenhorn

Joined: Jan 26, 2004
Posts: 4
Hello,
I have a webapp that I'm running in Tomcat without any trouble. I want to port it over to a Websphere 5.0 app server.
I've been trying to make .ear files from .war files using the jar.exe utility. I am able to make the files, but whenever they are attempted to be deployed by Websphere it gives a very obscure error.
Any help would be appreciated! Thanks!
S Mi
Chris Mathews
Ranch Hand

Joined: Jul 18, 2001
Posts: 2712
Moving to the IBM/Websphere forum...
Kyle Brown
author
Ranch Hand

Joined: Aug 10, 2001
Posts: 3879
So tell us what this obscure error is and we might be able to help...
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.
Vinod Bijlani
Ranch Hand

Joined: Mar 06, 2002
Posts: 133
it would be quicker if you use WebSphere Assembly tool
$WAS_HOME/bin/assembly.sh
prem lall
Greenhorn

Joined: Jun 21, 2003
Posts: 15
or WSAD 5.x.....
S Mi
Greenhorn

Joined: Jan 26, 2004
Posts: 4
Hello,
well, I've tried to use that AAT and it always throws the error that my WAR file is of an incorrect type. I made the WAR file from a webapp that uses the standard J2EE structure (WEB-INF, lib, class, etc.).
I've attempted making the EAR file with the AAT using the WAR file and then another time using the AAT to make my WAR and then attempting to make the EAR.
Hope this can shed some light on the solution!
S Mi
Kyle Brown
author
Ranch Hand

Joined: Aug 10, 2001
Posts: 3879
Look, tell us the EXACT error that AAT is giving you and we might be able to help you.
Kyle
Eugen Cocalea
Greenhorn

Joined: Jan 30, 2004
Posts: 6
Any other way to make an .ear out of an .war, except AAT? I want to automate this and the wartowebapp.bat is nowhere. I suppose it doesn't come with WebSphere AS, but some development application.
Naveen Kumar
Ranch Hand

Joined: May 29, 2002
Posts: 30
Hi,
Yes it is possible to automate the process of creating an EAR, using ant script. (The EAR created by this way can be deployed in any app server).
Below provided is a sample ant target in the build_abc.xml for crating an EAR.
< target if="module.ear" name="ear" depends="prepare">
< ear earfile="${target_ejb.dir}/myapp.ear" appxml="${source.dir}/meta-inf/application.xml">
< fileset dir="${target_ejb.dir}">
< include name="ejb_${product.name}_abc.jar"/>
< include name="ejb_${product.name}_xyz.jar"/>
< include name="abc.war"/>
< include name="xyz.war"/>
< /fileset>
< /ear>
< /target>
Hope this can solve the problem of building the EAR file.
Regards
Naveen Kumar
bharat nagpal
Ranch Hand

Joined: Oct 26, 2002
Posts: 76
Originally posted by S Mi:
Hello,
well, I've tried to use that AAT and it always throws the error that my WAR file is of an incorrect type.

Could you post contents of your web.xml file?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Websphere & .ear files
 
Similar Threads
Migrating EAR's from Websphere 4 to Websphere 6
where to place .ear file in WAS
Configuration files not recognized by websphere
Deployment descriptor in websphere
Log4j problem in Websphere