• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Websphere & .ear files

 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 2713
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Moving to the IBM/Websphere forum...
 
author
Posts: 3892
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
So tell us what this obscure error is and we might be able to help...
Kyle
 
Ranch Hand
Posts: 133
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
it would be quicker if you use WebSphere Assembly tool
$WAS_HOME/bin/assembly.sh
 
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
or WSAD 5.x.....
 
S Mi
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Posts: 3892
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 76
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic