Converting WAR to EAR and other Glassfish stories

Posted by Random on Stack Overflow See other posts from Stack Overflow or by Random
Published on 2010-04-28T11:22:42Z Indexed on 2010/04/29 19:47 UTC
Read the original article Hit count: 173

Filed under:
|
|
|

Hello!

I am really new in this so I hopefully don't make any terrible mistake. I apologize before hand if I have.

In my project I was using tomcat and deploying WAR files. But now some bosses wants to deploy EAR files. So there we go.

I first downloaded Glassfish (don't know if it's the apropiate application server for a newbie like me), instaled it and all (I even deployed the hello.war in the autodeploy >_< ). Then prepared an EAR file.

From what I know, I just need to create an Enterprise Application Project in Eclipse and add to the module my war file. This changes the application.xml file automatically (thanks eclipse project!). So I exported it to an EAR file and uploaded it to the glassfish server.

Wonders of wonders, it doesn't work.

I also tried deploying the old WAR file in this new shiny glassfish but it goes on http-404 not found error. The glassfish seems to say that my project is not in ~/domains/domain1/docroot. By the way I am using windows and I am aware of some problems between glassfish and windows due to some updating open files or such.

So I have to questions: First, Am I doing the EAR package correctly? Second, Do I need to do some especial configuration to the glassfish server to deploy EAR and WAR files?

Thanks!

© Stack Overflow or respective owner

Related posts about convert

Related posts about java