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

Similar Messages

  • {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
              > >
              > >
              > >
              

  • 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

  • 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 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

  • 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

  • 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

  • Problem with debug servlet Eclipse 3 tomcat 5

    I have configured Eclipse 3 with Tomcat 5.0.28 and tomcatPulginV3
    but, I have problem to debug my servlet
    I have error message
    help me it is urgent
    Failed to connect to remote VM. Connection refused.
    java.net.ConnectException: Connection refused: connect
    java.net.PlainSocketImpl.socketConnect(Native Method)
    java.net.PlainSocketImpl.doConnect(Unknown Source)
    java.net.PlainSocketImpl.connectToAddress(Unknown Source)
    java.net.PlainSocketImpl.connect(Unknown Source)
    java.net.Socket.connect(Unknown Source)
    java.net.Socket.connect(Unknown Source)
    java.net.Socket.<init>(Unknown Source)
    java.net.Socket.<init>(Unknown Source)
    org.eclipse.jdi.internal.connect.SocketTransportImpl.attach(SocketTransportImpl.java:47)
    org.eclipse.jdi.internal.connect.SocketAttachingConnectorImpl.attach(SocketAttachingConnectorImpl.java:103)
    org.eclipse.jdt.internal.launching.SocketAttachConnector.connect(SocketAttachConnector.java:131)
    org.eclipse.jdt.internal.launching.JavaRemoteApplicationLaunchConfigurationDelegate.launch(JavaRemoteApplicationLaunchConfigurationDelegate.java:75)
    org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:569)
    org.eclipse.debug.internal.ui.DebugUIPlugin.buildAndLaunch(DebugUIPlugin.java:788)
    org.eclipse.debug.internal.ui.DebugUIPlugin$6.run(DebugUIPlugin.java:955)
    org.eclipse.core.internal.jobs.Worker.run(Worker.java:66)Thanks

    Check your packages which you are importing....

  • Debug servlet failed after Enable Enterprise Application Profiler

    1. run IDE
    2. Enable Enterprise Application Profiler of AS in Runtime tab
    3. restart the AS server in debug model
    4. create web module includes jsp & servlet
    5. new a breakpoint in servlet codes
    6. debug it by click Debug-> Star Session-> Run in Debugger
    result:
    1. debug failed
    2. if you Disable Enterprise Application Profiler and restart the AS, debug successfully
    Did you meet the same issue before?
    thanks,

    Hi
    Are you checking with latest updates. IF not, please connect to update center and update the IDE. The update has fixes for Profiler.
    Thanks
    Srinivas

  • Debugging Servlet Code

    Hi There
    Is there any IDE that supports single steeping through tthe servlet and jsp code at runtime so as to debug the web appln in a better way
    Thanks
    Mum

    The short answer is most of them.
    Visual Age
    JBuilder
    Forte....

  • 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

  • How to debug servlet?

    I coding a servlet but when I debug it I meet the following
    problem:
    I change the .java file and compile it again and put
    the .class file to the servlet path,but the old servlet
    is still running until I restart the web server. Anybody
    has experience can tell me some better way to reflash
    the servlet?

    When in doubt, go to the source.
    http://jakarta.apache.org/tomcat/tomcat-3.2-doc/uguide/tomcat_ug.html
    go to this page they find "reload"
    If you need more info and you can't find it just reply and I'll try and help.
    Hope that helps.
    Luke.

Maybe you are looking for

  • My MacBook Pro is not switching on and my charging light is very dim green

    Hey ! My MacBook Pro is not switching on. I was trying to charge my iPhone through the lead attached to the MacBook. I suppose the iPhone charging lead might not be a original. Hence it kept saying that this accessory will not work. So I took it out.

  • *Currency Conversion created in BW BEX query not working in BO report:*

    Hi, We have created a key figure with currency conversion and working fine in BEX when I execute that query. But when created a BO universe and WEBI report on that query, I am getting following error. "MDX query failed to execute with Error". Can any

  • Poor I/O Performance on Solaris - v1.4.1_01

    Does anyone have any comments on the following? It's an I/O analysis done to determine which Java methods might be used to replace an existing C++ platform-specific file re-compression subsystem. The system has to handle up to 200,000 files per day (

  • Need Urgent Help - Low-Qual images in inDesign

    If someone could help me soon that would be great. Im trying to make a photo book in inDesign, landscape, 10x8. I scanned film negatives, they're very large files (3000+px x 2200+px). When I place it into inDesign, the image looks fine on the page, u

  • ESS/MSS Standard workflow not triggered....

    Hi Experts,          I have small doubt, but why can't I solve this I does't know? Kindly some one help me on this issue. Scenario as follows...         I have copied the standard loan workflow "WS18900041" to my custom workflow. So, Here when I appl