java:hotdeploymenteclipse
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
java:hotdeploymenteclipse [2014/05/17 20:08] – rlunaro | java:hotdeploymenteclipse [2014/05/19 09:41] – rlunaro | ||
---|---|---|---|
Line 74: | Line 74: | ||
=== Jboss 5 and Windows XP === | === Jboss 5 and Windows XP === | ||
- | Working | + | Assumed you have the configuration of your project as described before, the only thing you have to do is create the symbolic link. |
+ | |||
+ | For this example, I've have my Jboss installation under '' | ||
+ | |||
+ | To make the symbolic link you need first to install '' | ||
+ | |||
+ | After installing, you should issue a command like this: | ||
+ | |||
+ | < | ||
+ | junction " | ||
+ | </ | ||
+ | |||
+ | == Start the business == | ||
+ | |||
+ | The only thing you have to do to start the application is the following: | ||
+ | |||
+ | * Please, before of everything, remove all the " | ||
+ | * Start the Jboss application server, manually, '' | ||
+ | * Start your eclipse application: | ||
+ | |||
+ | == Debugging == | ||
+ | |||
+ | **You can also debug your application.** To do so, edit the file '' | ||
+ | |||
+ | < | ||
+ | rem # Sample JPDA settings for remote socket debugging | ||
+ | set " | ||
+ | </ | ||
+ | |||
+ | This will make Jboss to hear from the port 8000 for debugging interruptions. Who will interrupt JBoss?? Properly configured, eclipse will do. | ||
+ | |||
+ | In your eclipse click on run -> debug configurations. Under " | ||
+ | |||
+ | {{: | ||
+ | |||
+ | Configure | ||
+ | |||
+ | {{: | ||
+ | |||
+ | Whenever you want to debug your application you only have to start the remote debug option you have created. This will make your application to stop in the step points you have set. | ||
=== Tomcat 6 and Linux === | === Tomcat 6 and Linux === | ||
Line 92: | Line 131: | ||
Every time you want to run your application the only thing you have to do is: | Every time you want to run your application the only thing you have to do is: | ||
- | - Start Tomcat | + | - Start Tomcat |
- Start eclipse (Remember!!!! **Don' | - Start eclipse (Remember!!!! **Don' | ||
And that's it, because everytime you make a change in a class, or in a web page, it will be reflected automatically in tomcat. | And that's it, because everytime you make a change in a class, or in a web page, it will be reflected automatically in tomcat. | ||
+ | == Debug: Things you have to do the first time == | ||
+ | You can debug your application, | ||
+ | < | ||
+ | -Xrunjdwp: | ||
+ | </ | ||
+ | I've opened the file '' | ||
+ | <code shell> | ||
+ | if [ -z " | ||
+ | JAVA_OPTS=" | ||
+ | else | ||
+ | JAVA_OPTS=" | ||
+ | fi | ||
+ | < | ||
+ | and added the following: | ||
- | ~~DISQUS~~ | + | <code shell> |
+ | JAVA_OPTS=" | ||
+ | if [ -z " | ||
+ | JAVA_OPTS=" | ||
+ | else | ||
+ | JAVA_OPTS=" | ||
+ | fi | ||
+ | </ | ||
+ | |||
+ | And start Tomcat. | ||
+ | |||
+ | **For debug in eclipse,** open the "Debug configurations..." | ||
+ | |||
+ | {{ : | ||
+ | |||
+ | And select " | ||
+ | |||
+ | {{ : | ||
+ | |||
+ | And fill it with the following data: | ||
+ | |||
+ | {{ : | ||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | ~~DISQUS~~ | ||
java/hotdeploymenteclipse.txt · Last modified: 2022/12/02 22:02 by 127.0.0.1