Shay Shmeltzer's Oracle Development Tools Tips

  • January 7, 2009

Tomcat Extensions for JDeveloper 11g

Shay Shmeltzer
Director of Product Management - Oracle

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


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 tomcatExtension.zip. Note -for JDeveloper 11.1.2 and onward tomcatExtension_11.1.2.zip)

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:


set CATALINA_HOME=C:\apache-tomcat-6.0.18



set CATALINA_HOME=C:\apache-tomcat-6.0.18





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.



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:

Join the discussion

Comments ( 27 )
  • Jesse Hu Wednesday, January 7, 2009
    That's great. Tomcat is much light-weighted for debugging. Thanks!
  • Edwin Biemond Thursday, January 8, 2009
    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 Sunday, January 25, 2009
    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 Wednesday, January 28, 2009
    Would it run on Linux?
  • Jan Vervecken Monday, February 2, 2009
    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
    Jan Vervecken
  • butty_0 Wednesday, December 16, 2009
    Hi, i have JDeveloper 11g and apache tomcat, i follow all your instructions but... When i go to start apache tomcat and i have a shell that says: Catalina Home variable is not defined correctly, and bla bla bla
  • shay Wednesday, December 16, 2009
    butty_0, make sure you defined this environment variable in the scripts you created to start the server.
    Make sure the script works outside of JDeveloper before you try to start it from inside JDeveloper.
  • Don Thursday, June 17, 2010
    Does this support hot deploy like with the integrated weblogic server? i.e. to make code changes while debugging?
  • João Milani Thursday, December 9, 2010
    Hello Shay, congratulations for your work, really helpful. I wonder if you can offer us a version of that extension to glassfish, because I'm having trouble adapting it. Sincerely, Milani.
  • dcbyron Wednesday, June 8, 2011
    Nice work on JDev! Will this extension be updated, too? I notice it isn't (yet) available through the update facility.
  • guest Saturday, June 11, 2011
    I don't have any option "Tomcat" in Tools>Preferences after installing extension form zip archive.
  • Shay Monday, June 13, 2011

    Guest - not enough details to help you here. Which version of JDeveloper are you using? how did you install the extension? Does it appear in your tools->preferences->extensions?

    DCbyron - I still need to do a little work on the extension to get it to work with the new infrastructure of 11.1.2.

  • guest Wednesday, August 17, 2011

    i download the extensions and i use JDeveloper 11g

    how can i install extentions and add them to Jdeveloper


  • Shay Monday, August 22, 2011

    guest - in general you can use the help->check for update and point to the local zip file - this will install the extension.

    Note that this extension hasn't been updated to support the 11.1.2 version of JDeveloper.

  • Shay Wednesday, August 24, 2011

    Note - the new version for JDeveloper 11.1.2 is now available here - http://blogs.oracle.com/shay/resource/TomcatExtension_11.1.2.zip

    Thanks to John Brock from http://blogs.oracle.com/jdevextensions

  • guest Sunday, August 28, 2011

    Hi~It is a good extension

    I have follow the video but I can not see

    Deploy->webapp->to tomcat

    How to get it?


  • Shay Monday, August 29, 2011

    guest - to get the deploy to tomcat option - first define a connection to a Tomcat server in the "Application Server Navigator".

  • sgj109 Wednesday, September 21, 2011

    Hello Shay,

    Good job on the extension. Is it possible to post the source for the 11.1.2 version of the extension? It looks like the source is posted for the original version of the plugin, but not for the updated version. Thanks.

  • guest Friday, February 15, 2013

    I have managed to set up my and it works!!!

  • guest Tuesday, June 11, 2013


    tomcat server is running in Unix,and jdev is running in windows machine.

    can i debug tomcat in jdev.

    if so how..??

  • guest Tuesday, June 11, 2013


    down vote

    favorite I am a newbie. I am trying to publish procedures which return refcursor as webservice. As webservices do not support ref cursor return type so I chnaged the return type to pl/sql table. I created the jax rpc in Jdeveloper studio and tested it. This runs ok. I need to deploy it on tomcat server and am failing completely. I copied the war file generated by Jdeveloper to the webapps directory in Tomcat and started Tomcat but this didnot work. java.lang.ClassCastException: omsdevconn.MyWebServicetomcatUser cannot be cast to javax.servlet.Servlet

    If someone has done it then can I get the steps for the process to deploy it on Tomcat 6.0.37

    Thanks in advance Subodh

  • shay Tuesday, June 11, 2013

    guests - I think you should be able to get remote debugging working with a tomcat server remotely as long as you define the server and port number correctly.

    guest2 - I'm not sure which class is missing but it seems to be some class loading order on your tomcat server.

  • Alexey Slepov Thursday, October 24, 2013

    Thanks a lot! It happened I had to use JDeveloper to upgrade some java web projects quickly. Your post helped me to solve my issues.

  • guest Tuesday, July 28, 2015

    I have Jdev and I installed the extension from the Jdeveloper Help--> Check for updates and found tomcat extension and it said jdeveloper needs to be restarted for that. After restart, it does not do anything. Couldn't find it in prefreces also. So, i guess it didn't install?

  • guest Wednesday, December 9, 2015

    I have Jdev May I know the extension can be used with it?

  • Monish Sunday, October 15, 2017
    The link "get this version" is not working. How can we get this extension.
  • Shay Monday, October 16, 2017
    Monish - thanks for letting me know about the broken link - they should be fixed now.
Please enter your name.Please provide a valid email address.Please enter a comment.CAPTCHA challenge response provided was incorrect. Please try again.