easy way to compile/test a java ee app
Hi,
I have this simple java ee app, it connects to a remote Glassfish 2 server, everytime I click 'run', IDEA returns:
Facet javaEEApplication: Module is being deployed, please wait...
Connected to server
Facet javaEEApplication: Module is not deployed. Press 'Deploy' to start deployment
I have to switch to Glassfish console, undeploy the app, then deploay again, it takes time, what is the easy way to compile, deploy and test in this case? Thanks,
Angelo
请先登录再写评论。
Hello Angelo,
Do you start Glassfish locally? Try to check log file (it is shown in the
next tab to run console), usually it shows the reason why deployment fails.
For me Glassfish deployment fails when some web (yes, I didn't try java ee)
application is already deployed with the same context path. In this case
I run the server outside Idea, undeploy old application and stop server.
Then inside Idea all works many times until some next error.
Alexander.
Hi Alexander,
I did not start it locally, but outside of IDEA, in the IDEA I define the server as remote, the app runs, it's just the undeploy/deploy/test cycle is slow, any easy way? or any other app server that IDEA supports better? also, when the app is using a remote server, is there a way to step the app in debug mode? Thanks,
Angelo
>
Hello Angelo,
Checked with EAR including one web application (war). In 7.0.3 I meet the
bug: http://www.jetbrains.net/jira/browse/JEEAS-168. With EAR I observed
very similar behaviour: IDEA console reports "Module is not deployed", while
actually it is deployed. So, thanks for the bug report.
Yes. Find the file: {glassfish.home}/domains/{domain.name}/config/domain.xml.
Find element java-config. Make sure that debug-enabled attribute is "true".
Also make sure that debug port number in IDEA run configuration matches
port number specified in this java-config element. Then execution of this
configuration in debug mode will to stop at breakpoints and you can step.
Alexander.