Wednesday Jan 07, 2009

Tomcat Extensions for JDeveloper 11g

I'm proud to introduce the Tomcat extension for JDeveloper (which can be used for other servers too*).

tomcat001.gif


Here is a little video of the extension at work.

This extension will let you start/stop and start in debug mode an external server such as Tomcat directly from inside JDeveloper.
You can then use the regular one-click deploy and remote debug to run/debug your application on that server.

To install the extension just use help->check for update from inside JDeveloper 11g. (or get it from Here. Note -for JDeveloper 11.1.2 and onward get this version)
Then go into Tools->Preferences->Tomcat and insert the names of 3 bat files that will start/stop/and start debug your server.
An example of these files on my machines are:

mystart.bat

set CATALINA_HOME=C:\apache-tomcat-6.0.18
C:\apache-tomcat-6.0.18\bin\startup.bat

myshutdown.bat

set CATALINA_HOME=C:\apache-tomcat-6.0.18
C:\apache-tomcat-6.0.18\bin\shutdown.bat

mystartdbg.bat

SET JPDA_ADDRESS=4000
SET JPDA_TRANSPORT=dt_socket
SET CATALINA_HOME=C:\apache-tomcat-6.0.18
C:\apache-tomcat-6.0.18\bin\catalina jpda start

I built this extension mostly as another sample for extension development capabilities. I'll post another blog entry highlighting some of the things it shows about extension development. You can download a JDeveloper project with the source for the extension from here - feel free to improve it (especially the Tomcat icons).

*While the extension is called the tomcat extension, you can use it for any other server that you can invoke with bat files - just point to them in the tomcat preferences.

Enjoy,
Shay

P.S. - looking for tips on getting ADF 11g to work on Tomcat see Dana's blog, and this OTN Thread.

Here is the video showing the extension in action:

About

me
I'm a Director of Product Management for the Oracle Java Development Tools.
Follow me:
Search

Archives
« April 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today