...
Info | ||||
---|---|---|---|---|
| ||||
I use the Sysdeo.com tomcat launcher plugin, which lets you reload specific webapp context aside from just start stop and restart tomcat from the IDE (log output goes to the eclipse console). It is available here: http://www.sysdeo.com/eclipse/tomcatPlugin.html If you do this too, add the following as two seperate parameters to the JVM settings for starting tomcat (Window->Preferences->Tomcat->JVM Settings):
|
- Start tomcat using
..or using the tomcat pluginCode Block catalina.sh jpda start
- Inside eclipse select Run->debug....select Remote Java Application and click 'New...'
- Give the new debug config a name like 'Testing'
- Set the host and port (default on tomcat is 8000), choose an eclipse project by using the browse button
- source locations should be already be set to project source locations, so shouldn't need to change anything
- Checkmark the 'Allow temination of remote VM'
- click close and save changes
Test it out
- Open the src/java/org/sakaiproject/portal/varuna/VarunaServlet.java file in the portal module and scroll to the doGet() method
- double-click in the left margin (or use another method) to set a break-point near the beginning of the method
- select Run->Debug... and select the newly created debug config.
- change to the debug perspective if it does not happen automagically.
- switch to a browser and login into to the sakai instance
...
to resume the thread rightclick the highlighted (paused) thread in the upper-left panel of the debug perspective and select Resume from the context menu. Alternatively, select the thread and press the F8 key. Remember the breakpoint will stop the server everytime until the breakpoint is cleared (double-click it) or eclipse stops running.
JSP plugin
A common problem with JSP/HTML editor plugins is SWT library issues. This is from a myeclipse faq (#9) (http://myeclipseide.com/enterpriseworkbench/help/index.jsp?topic=/com.genuitec.myeclipse.doc/html/quickstarts/htmleditor/index.html):
Note |
---|
this fixes startup problems with 'no more handles' msgs along with the exception spewage in the log file (<workspace>/.metadata/.log) shown in the error dialog. |
Info |
---|
Why isn't there a Preview tab on Linux? / Why doesn't the Web Browser view work in Linux? *
|
... but don't do all that. I just created the /etc/gre.conf file and for the path I used '/usr/lib/firefox-1.0.2' ... but you can also use anu mozilla 1.6+ path like RHWS 4's /usr/lib/mozilla-1.7.8