Reputation: 411
I created a new project in Eclipse Helios (for Java EE): Google -> Web Application Project. Now I want to use my glassfish server, not the built-in. I have the glassfish server. I downloaded the "Glassfish Java EE Application Server Plugin for Eclipse" with the Marketplace. I unchecked the "Run built-in server" in the project's properties.
What should I do next if I want that my gwt-project, glassfish and eclipse work together? I can't find the "deploy" or something...
Because in Netbeans so much easier this: I just have to create the new gwt-project and I can choose the server I want to work with...
I need to work with Eclipse, because of the gwt-designer. :(
Upvotes: 0
Views: 4126
Reputation: 1701
Any particular reason for Glassfish?Usually one works with Eclipse+Jetty for development, builds a war and deploys on Tomcat/Glassfish for testing/production
Upvotes: 0
Reputation: 7154
well you need to:
1. Convert your gwt project to a Dynamic Web Application project
2. Make shure to set your war folder to the one you use with gwt (default is 'war' for GWT projects and 'WebContent' for Dynamic web projects )
3. (This is the part that sucks) Make sure you compile it and any time there are changes on the client side, you have to compile again.
4. Create a new glassfish server
5. add your gwt/dynamic web project project to glassfish
6. start glassfish
7. your set!
The bad part is that you hae to compile and recompile a lot (whenever there are changes on the client side). You can use ' -localWorkers 2 ' and -draftCompile as runtime parameters so it compiles faster. Anyway, why do you need glassfish? maby you can run it with jetty
Upvotes: 1