Bug in JDev documentation re: debugging servlets

This is in the document titled "Using the Servlet Debugger Class" found in the JDeveloper electronic documentation.
I'll quote the first bit:
"You can use the ServletDebugger class to tailor the debugging environment to your servlets. Using the ServletDebugger class, you can specify:
the JDeveloper root directory
which servlet's to register with the JDeveloper web server. The servlets you specify will appear in the Servlet Launcher.
the document root directory for the integrated web server
the starting URL for the Servlet Launcher
the JDeveloper web server port
URL arguments
To configure the debug environment:
For an HTTP servlet or for any servlet created outside of the JDeveloper environment, import the following package in your servlet's Java file:
import oracle.jdeveloper.servlet.*;"
Whoops, this last part is wrong. It should instead be "import oracle.jdeveloper.debugger.*;" I could not get it to compile with the first one, but the 2nd one worked fine.
-- Alex
null

Alex,
Thanks for pointing this out.
This has been fixed for the JDeveloper 3.1 documentation.
Thanks,
-John
null

Similar Messages

  • Please vote for documentation on using servlets in ColdFusion

    There is at present little to no documentation on using servlets directly in ColdFusion 10. The little documentation there is, is wrong. Please vote for the bug report.

    27-Oct-200702:06 AM
    weera wrote:
    Voted..
    And I hope it will be come true..
    Thank you at least for upcoming Eseries models.
    Abdullah Ibn Hamad Al-Marri AKA Awesome
    Arab Portal
    Phones: Waiting for E9x with Scheduled SMS on it, and 9300i features..

  • Debugging Servlet with JBuilder 6

    Does anyone know how to debug a servlet with JBuilder version 6?
    I have created the servlet without the wizard.
    Thanks.
    -Amar

    You can use ServletExecDebugger from NewAtlanta.
    You can download ServletExecDebugger at
    http://www.newatlanta.com/products/servletexec/download.jsp
    1. Extract ServletExecDebugger files to your local folder
    2. Import ServletExecDebugger.jar file into you JBuilder
    workspace
    3. There will be ServletExecDebuggerMain.java file
    Import that also.
    4. Set ClassPath, Project Path , etc and off you go.
    ServletExecDebugger comes with good documentation
    for a free debugger.
    I have been using it for sometime now (in both JBuilder and Visual Age) and find it relatively simple to setup and good for debugging servlets.
    You cannot debug JSPs that much easier though !
    Hope this helps..
    KD

  • Debuging  servlet on weblogic

    I am trying to learn to debug servlet on weblogic . In one of the site it is written as
    Locate startWSL.cmd and add the following variable DEBUG_OPTS:
    set DEBUG_OPTS = -Xdebug -Xrunjdwp:transport= dt_socket,address=1044,server=y,suspend=n
    I am confused with this .Please tell me why is this necessary for debugging.
    Thank you

    Java uses the Java Platform Debugger Architecture to define how a Java debugger connects to a running Java application for the purpose of debugging that application. To enable an application for debugging, you have to add some parameters to the command line to specify a few things, like what transport will be used to transfer data, and if a socket-based transport, what port number should be used. Once you define those parameters on the command line and the application is running, you can specify the port number in the debug configuration of your debugger to make a connection to that running application.
    You can read more about the various debugging-related command line options on the following page, which is just part of the larger JPDA documentation:
    [http://java.sun.com/javase/6/docs/technotes/guides/jpda/conninv.html]
    If you peruse the documentation for your favorite debugger, you can find information about connecting to remote Java applications, and it should give you similar information.

  • Debugging servlet/JSPs ??

    What IDE would you use to debug Servlet/JSPs ? I think that JBuilder can
    only debug Servlets. What about VisualCafe, VisualAge ?
    Olivier
    [olivier.vcf]

    Currently it is a bug in JDeveloper 3.1.x. We will be fixing it.
    raghu

  • {Q} Debuging Servlets with VCafe 4.0 using WebLogic as WEB server

    Hi,
              I am trying to set up VCafe 4.0 to debug servlets deployed on WebLogic 5.1.
              I don't have any problem with default servlet debugging, but I don't know
              how to tell VCafe that my WEB Server isWebLogic. Any ideas?
              Greg Mirsky
              

    What edition of VCafe is required?
              Enterprise, Professional or standard. I am now using JBuilder and anyone has
              experience comparing it with VCafe.
              Jonathan
              Don Reamey wrote:
              > Start the EJB Server from within Cafe ( you must have an EJB project open),
              > also have your servlet project open.
              >
              > Once the EJB server has been started from with in Cafe, select attach to
              > process from the file menu.
              >
              > Attach to your server and set a break point in your sevlet.
              >
              > Go to the browser of your choice and run your application as normal.
              >
              > The break point should get hit and you can start stepping.
              >
              > The same procedure works for JSP's as long as you have the
              > keepgenerated=true.
              >
              > Don Reamey
              > www.ibexone.com
              >
              > "Greg Mirsky" <[email protected]> wrote in message
              > news:[email protected]..
              > > Hi,
              > > I am trying to set up VCafe 4.0 to debug servlets deployed on WebLogic
              > 5.1.
              > > I don't have any problem with default servlet debugging, but I don't know
              > > how to tell VCafe that my WEB Server isWebLogic. Any ideas?
              > > Greg Mirsky
              > >
              > >
              > >
              

  • A bug in UML documentation in SJSE 8.1

    Hi!
    Is There a bug in UML documentation in SJSE 8.1?
    When I write some text in editor, it insert ENTER and Blanck lines in my text.
    What is hapend? What am I doing?
    Thanks!

    Hi,
    Is There a bug in UML documentation in SJSE 8.1?
    When I write some text in editor, it insert ENTER and
    Blanck lines in my text. Could you please be more specific? What is an action which causes insertion
    of Enter and Blank lines? Is it after Save? Or after reopen of project? Or
    after/before something else? It would be valuable if you provide an example of
    your text before your action and after it.

  • Does WLS support Debugging Servlets with JBuilder 3 ?

    I have read all the news groups and it appears that WLS 4.5.1 does not
    support debugging Servlets with Jbuilder 3.0.
    I am using the trial version, does this matter ?
    Or should I just buy another web server ?
    Joe

    I think below documents will be helpful to you.
    http://docs.oracle.com/cd/E23943_01/apirefs.1111/e13952/taskhelp/webservices/webservicesecurity/CreateDefaultWSSConfig.html
    This document tell you that you can attach a weblogic webservice configuration using weblogic admin console.
    After creating this configuration you need to updated this configuration as per the steps given under :
    Use X.509 certificates to establish identity
    Thanks,
    sandeep

  • Debug servlet in Visual Cafe 4.0

     

    I mean "Can cafe 4.0 debug Servlet"
    James C <[email protected]> wrote in message
    news:88hb3c$ms$[email protected]..
    Can anyone confirm that you can set and actually HIT break point in cafe
    4.0? We're considering getting 4.0 and would like to know it works beforewe
    switch.
    Thanks.
    James

  • Debugging servlets using jdb

    Hello friends, can anyone please help me in debugging servlets using jdb. I am using tomcat as the web server. Thanks

    http://developer.java.sun.com/developer/onlineTraining/Programming/JDCBook/servlet.html

  • Is there any bug in the documentation??

    hi guyes,
    i am refering "Oracle® Data Guard Concepts and Administration 10g Release 2 (10.2) B14239-05 August 2008" to configure physical standby database on my same host having my primary database.
    i told you it was my worst experience using any oracle documentation.
    i am using oracle 10g R2,and followd all procedure to configure physical standby database,but i think there are some bugs in this document.
    1. they have told to create controlfile for the stadby database but didnt ask to edit controlfile for new path of datafiles.
    2.they have ask to copy all primary datafiles to stdby location,but when you try to open standby database,it dosent match the path of stdby datafile due to same controlfile.
    these and there are many bugs are in this document.
    they ask to edit tnsnames.ora file but dosent provide the procedure to do so.
    i mean this is not the complete guide to follow.
    a hopeless thing
    is this a bug???
    thanks and regards
    VD

    vikrant dixit wrote:
    hi guyes,
    i am refering "Oracle® Data Guard Concepts and Administration 10g Release 2 (10.2) B14239-05 August 2008" to configure physical standby database on my same host having my primary database.
    i told you it was my worst experience using any oracle documentation.
    i am using oracle 10g R2,and followd all procedure to configure physical standby database,but i think there are some bugs in this document.I'm assuming that you specifically mean Section 3.2 Step-by-Step Instructions for Creating a Physical Standby Database
    1. they have told to create controlfile for the stadby database but didnt ask to edit controlfile for new path of datafiles.That isn't required if you follow the step by step guide since the example uses the DB_FILE_NAME_CONVERT and LOG_FILE_NAME_CONVERT database initialisation parameters. In particular see step2 and Example 3.5
    2.they have ask to copy all primary datafiles to stdby location,but when you try to open standby database,it dosent match the path of stdby datafile due to same controlfile.
    these and there are many bugs are in this document.If you have followed the steps as described in the document you won't get the errors that you describe above. You'll also note in the backup and recovery guides there is a similar example for database duplication on the same host which also uses the file_name convert parameters. If you still require help it might be useful to list the precise error and what you have set the relevant parameters to.
    they ask to edit tnsnames.ora file but dosent provide the procedure to do so.They do however, directly in the step by step guide, refer to the relevant manual - the Net Services adminsitrators guide - that contains a section http://max00994:7777/docs/db10gr2/network.102/b14212/naming.htm#sthref700 on managing net service names, if you'd read it you'll see that there are 3 different tools that you could use and that the exact steps to follow depend on your environment, given this complexity it isn't unreasonable in my view to link you directly to where the information can be found rather than to include the best part of an entire chapter on service naming in the middle of a step-by-step guide.
    i mean this is not the complete guide to follow.This particular guide does deal with standby configuration, complete with practical examples that do in fact work when followed diligently, I should know I've followed them previously on more than one occasion. It doesn't of course deal with underlying subject matter that is referenced elsewhere. I don't know what Oracle's target audience is for this book, but wouldn't think it unreasonable to assume that a dba considering building a dataguard installation was already familiar with Oracle SQLNet (it would certainly be required knowledge in my book).
    a hopeless thing
    is this a bug???As the documentation works as written I wouldn't consider it a bug. I don't personally like the particular names that Oracle have chosen for their examples, primarily because I don't like the idea of naming database services after physical location in a standby environment. You can however, if you have a support contract, log bugs against the documentation and Oracle do correct the bugs - though unfortunately in the next release of the docs and not online.
    Niall Litchfield
    Oracle DBA
    http://www.orawin.info/

  • Debugging servlets in JDeveloper

    Folks !
    I just noticed that at least JDeveloper 3.2.3 doesn't let you debug a servlet that is not directly derived from HttpServlet. That is if I have a servlet class A derived from a Class B which then derives from HttpServlet, I only get to debug Class B and not Class A. This is a very stupid restriction (confirms my perception of these IDEs being toys). I am hoping JDeveloper 9i can handle debugging servlet derived from another class which in turn is derived from HttpServlet. can 9i users pl. confirm that ?
    Also, given current restriction of JDeveloper 3.2.3 what option do I have other than upgrading to 9i (which I hope doen't have this problem) ? Remore debugging using JDPA ?
    thanks for your help.
    regards,
    -Sanjay Kumar

    Folks !
    I just noticed that at least JDeveloper 3.2.3 doesn't let you debug a servlet that is not directly derived from HttpServlet. That is if I have a servlet class A derived from a Class B which then derives from HttpServlet, I only get to debug Class B and not Class A. This is a very stupid restriction (confirms my perception of these IDEs being toys). I am hoping JDeveloper 9i can handle debugging servlet derived from another class which in turn is derived from HttpServlet. can 9i users pl. confirm that ?
    Also, given current restriction of JDeveloper 3.2.3 what option do I have other than upgrading to 9i (which I hope doen't have this problem) ? Remore debugging using JDPA ?
    thanks for your help.
    regards,
    -Sanjay Kumar

  • Remote Debugging Servlet  on JDev 10g

    How do we setup JDeveloper 10g for Remote Debugging for Servlet? We have Oracle Application Server 10g with OC4J containier. I know we need to start OC4J in debug mode, but don't know hot to do it. Jdeveloper and OracleAS is new to me.
    Thanks in Advance!
    Madan

    Please refer
    Re: Remote debugging with OC4J

  • BUG in JDev 9033? Also see thread: BC4JContext in Servlets

    When I was trying to enter the properties for the Action element in struts config file, I could not do so using the Struts Configuration Editor dialog box...and I think that was why the properties got skipped.
    Here is the problem (I am using JDeveloper v9033):
    1] Right click struts-config and choose Edit Struts-Config.
    2] Click on Action Mappings element in the list box
    3] Select one of the Action Mappings (or enter a new one)
    4] Click on the properties tab. At this point if click on Add a new row is added. The property column contains a drop down list box and won't let me enter values such as "application", "viewobject", "releasemode"...All I see in the list are "applicationConfig", "attribute", "forward", "include", etc...
    To get around this problem I entered the 3 elements that I mentioned bypassing the Config Editor dialog box.
    Is this a bug? or do I need to use it in a different fashion????

    The source was removed from the released product when the datatags were deprecated in the 10.1.3 release, but are still available as part of the complete ADF source code bundle you can request through Worldwide Support on Metalink.
    That said, I just diff-ed the source of that class from the 10.1.2.2 release with the ones from the 10.1.3.0 and 10.1.3.1 release and the source is identical, so you can use the version from 10.1.2 that you have if that is the quickest path to the finish line for you.

  • Debugging servlets

    I'm using JDev 3.0 and I'm trying to debug my servlet. I have 2 problems:
    1) Netscape is supposed to appear with the Servlet Launcher page, but doesn't. I have to run webapprunner.html by hand in order to launch my servlet.
    2) Yesterday I was able to set breakpoints and step through the code, but today I see the popup:
    Cannot debug project with Target JDK 'java version "JDK1.2.2_JDeveloper'" can only debug with Target JDK 'java version "JDK1.1.8_JDeveloper'"
    The project was created to use JDK1.2.2 so I've been able to debug with it before.
    bob

    Hi,
    The servlet launcher problem might be caused by a network router. We try to locate your IP address when we launch Web-to-Go.
    Make sure when you start JDeveloper that you start it in 1.2 mode. The target JDK and the JDK you start JDev in must match for the debugger to work properly.
    Laura

Maybe you are looking for