« Update 1 for JDeveloper 11g is Out | Main | Declarative Extension building for JDeveloper with the extension.xml »

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)
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.

Comments (5)

Jesse Hu:

That's great. Tomcat is much light-weighted for debugging. Thanks!

Hi Shay,

I heard some rumours that Oracle has some ideas to open source adf and adf bc else there is no need to use tomcat. WLS is really the best and you get the ADF runtime license with WLS for free.

thanks Edwin

Madhukar:

Sweet, I am downloading Jdeveloper and having the extension will help as I want to run the project I am developing in Tomcat (being light weight). Thanks.

Adeel Ansari:

Would it run on Linux?

Jan Vervecken:

hi Shay

Looks like the support matrix has changed regarding Tomcat support by JDeveloper 11g.
See also this forum message http://forums.oracle.com/forums/message.jspa?messageID=3251034#3251034

regards
Jan Vervecken

Post a comment

(If you haven't left a comment here before, you may need to be approved by the site owner before your comment will appear. Until then, it won't appear on the entry. Thanks for waiting.)