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/16 15:06] – [Some examples] rlunaro | java:hotdeploymenteclipse [2014/06/24 01:01] – rlunaro | ||
---|---|---|---|
Line 25: | Line 25: | ||
So, right-click on MyTest -> properties -> Java Build Path and configure the directory so that the binaries are left in the WEB-INF directory: | So, right-click on MyTest -> properties -> Java Build Path and configure the directory so that the binaries are left in the WEB-INF directory: | ||
- | {{ : | + | {{ : |
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 === | ||
- | Working on it... | + | **Important: |
+ | <code xml> | ||
+ | <Context reloadable=" | ||
+ | </ | ||
- | ~~DISQUS~~ | + | Also, as cited [[http:// |
+ | 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, Tomcat is installed under $TOMCAT_HOME (in my particular case, ''/ | ||
+ | <code shell> | ||
+ | TOMCAT_HOME$ ln -s / | ||
+ | </ | ||
+ | |||
+ | This way, you will have **exactly the same** contents in two places at the same time: in the proper tomcat directory **and** in your eclipse project. | ||
+ | |||
+ | == Put things to start == | ||
+ | |||
+ | Every time you want to run your application the only thing you have to do is: | ||
+ | |||
+ | - Start Tomcat ($TOMCAT_HOME/ | ||
+ | - 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. | ||
+ | |||
+ | == 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: | ||
+ | |||
+ | <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