Reputation: 1360
I'm finally ready to stop developing in Eclipse and running on Glassfish and actually deploy this creation onto a web server. I don't know where to begin with this task. How do I get started? I have a MySQL database, some EJBs, Servlets, and Facelets pages and I'm using JPA.
Do I have to save each component into a .jar, .war file or can I put everything into the .war
I exported the EAR project to an EAR and tried deploying it through glassfish admin but it said it was already deployed? does glassfish conginuously deploy working projects so that assembling and packaging isn't required if you're deploying locally?
I go to Glassfish Admin click my application and click "deploy" I fill out the configuration settins and click finish. I'm getting this error:
An error has occurred Error occurred during deployment: Application with name XRSSear is already registered. Either specify that redeployment must be forced, or redeploy the application. Or if this is a new deployment, pick a different name. Please see server.log for more details.
Sorry I just found out that it was already being deployed as I was testing and running it. I didn't realize that the Glassfish test server environment bundled with eclipse was also a stand alone container server. So all I ended up having to do was find the glassfish "startserver" .bat and run that.
Upvotes: 1
Views: 2034
Reputation: 5542
Where can I find more information about application deployment? These resources should help:
- Application Deployment Guide
- Deploying an Application chapter in the Quick Start Guide.
- Deployment page
- Deployment FAQ (somewhat older)
Source: FaqDeploymentGeneral
See also:
JEE6 and Packaging an EAR at Ralph's Java Blog.
Upvotes: 1
Reputation: 1360
Glassfish autodeploys EAR projects during testing so the only thing necessary to do is start the glassfish server and it will contain the latest EAR if you're deploying locally to the same Server you're testing on.
Upvotes: 1
Reputation: 3334
In addition to Carsten's recommendation, I'd like to recommend the Java EE 6 Tutorial. The overview section describes Java EE packaging.
Upvotes: 1
Reputation: 18446
Well, you open the Glassfish administration page for your server and use it to deploy your application. It's quite easy to use and should be self-explanatory.
Also, I suggest you take a look inside the Glassfish Application Deployment Guide.
Upvotes: 0