File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Websphere & .ear files

 
S Mi
Greenhorn
Posts: 4
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2712
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Moving to the IBM/Websphere forum...
 
Kyle Brown
author
Ranch Hand
Posts: 3892
5
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
So tell us what this obscure error is and we might be able to help...
Kyle
 
Vinod Bijlani
Ranch Hand
Posts: 133
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
it would be quicker if you use WebSphere Assembly tool
$WAS_HOME/bin/assembly.sh
 
prem lall
Greenhorn
Posts: 15
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
or WSAD 5.x.....
 
S Mi
Greenhorn
Posts: 4
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 3892
5
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Look, tell us the EXACT error that AAT is giving you and we might be able to help you.
Kyle
 
Eugen Cocalea
Greenhorn
Posts: 6
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 30
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 76
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic