Help coderanch get a
new server
by contributing to the fundraiser
  • 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
  • Ron McLeod
  • Paul Clapham
  • Devaka Cooray
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Tim Moores
  • Carey Brown
  • Mikalai Zaikin
Bartenders:
  • Lou Hamers
  • Piet Souris
  • Frits Walraven

Creating EAR file - plz HEEEELP

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Guys,
I am developing JSP/servlet application using NetBeans. Right now I have been asked to send the application in EAR file. Please, please, please, could anybody of you give me a clue how to do it in the simpliest way? I can export it directly from IDE to WAR, but definetly I don't know how to convert the WAR to EAR or how to simply say to some packager: "This directory structure, so pack it to a bloody EAR!".
Marek
 
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Look at the following page for the directory structure .
http://www.iona.com/support/docs/e2a/asp/5.1/j2ee/reference/EARSCO_ref4.html
You make jar files and war files depending upon the kind of components and place them in appropriate directories and package them.
JBuilder provides this feature(if in case you are using this IDE!!).
 
Marek Sobotka
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks, but I am using NetBeans IDE. I have to create EAR, which will be loadable to WebSphere 5.0. As I understand from the link you specified, EJB.JAR should be WebSphere specific ... Anyway I do belive there has to be a tool, which simply takes my application directory from Tomcat or which takes WAR and creates WebSphere deployable EAR. Or am I too naive?
M.
 
author & internet detective
Posts: 41967
911
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Marek,
You can use Websphere's application assembler to convert your war into an ear.
 
Ranch Hand
Posts: 3695
IntelliJ IDE Java Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I once asked in an iplanet newsgroup if there wasn't some way to take an EAR File that was produced by the Sun Reference Implementation of a J2EE Server, and make it deployable on iPlanet, which was Suns J2EE Server that you would pay $$ for. There was no such tool. So it might be a little naive to assume there's a tool out there that converts from WAR to EAR in 1 easy click.

Having said that, app servers have come a long way since then (I made the complaint about 2 years ago), and IDE's have also caught up.
If you don't have the option of using Websphere application developer, there might be a way for netbeans to make an ear file for you. But that's more of a netbeans question.

So I'll move your thread to the IDE forum for you.
 
Marek Sobotka
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Sounds you are right. It's more related to IDE ... . As you said I have no chance to use any of WebSphere tools. Searching over the Internet I found some indicies there is a chance to create EAR with NetBeans once it's integrated somehow with Ant and XDoc. But I haven't found any detailed description. On other hand I am ready to use any other tool/IDE which is available to download from Internet for free or limited amount.
M.
reply
    Bookmark Topic Watch Topic
  • New Topic