JSP Debugging with Eclipse 3.2 WTP

I am using OC4J 10.1.3 Standalone and the latest version of Eclipse WTP. Has anybody been able to debug JSP pages with this configuration? I have found a few references to getting remote debugging to work using JDeveloper, but nothing regarding WTP.
I have tried setting the debug <init-param> to class, but the breakpoints are not hit when starting the server in debug mode. I have also set the debug_mode and emit_debuginfo init parameters to true. The development attribute in the orion-web-app element is set to true.
I have tried starting OC4J using the following command:
java -Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=4000 -jar oc4j.jar
and then debugging through Eclipse using a Remote Java Application launcher and connecting to port 4000. Again, no breakpoint is hit even though Eclipse does connect ok to port 4000.
I am trying to debug a simple JSP named index.jsp with a breakpoint on the line <% out.print("Hello, World!"); %>. Nothing fancy.
Do I need to use the JspOjcCompiler compiler even though I am not using JDeveloper? I was not able to get this compiler to work. It was failing with the _index class not found.
Thanks,
Dave

Hi, I didn't get an email notifying me of a response to this. Just happened to check myself.
          But basically you want to point the weblogic server directly to your workspace (src code) so it can detect a change. THis is from our doc below. You may also write an ant script specific to weblogic that redeploys the app and reloads the xml and prop files without restarting the server.
          1.     Start up your Weblogic domain server (i.e., C:\Domains\devDomain\startWebLogic.cmd).
          2.     Go to url, http://localhost:7001/console and log in (weblogic, weblogic).
          3.     On the left menu, click Deployments, then Lock & Edit button above it, and then the Install button in the main panel.
          4.     Change the location to the web folder in your project workspace (C:\Eclipse\workspace\<projectname>\web) Click Next.
          5.     Leave checked the Install this deployment as an application and click Next.
          6.     Put name for Name of deployment. . From here you can click Finish.
          7.     Click Activate Changes. Then check the deployment box and click Start button and Servicing all requests (in Deployments panel). Then click Yes to start it on the next page
          8.     Enter the URL of the application. This example is
          http://localhost:7001/web/index.htm
          The ?web? was the name of the web folder we deployed from. In the future you could name this something different if deploying from this console so the url?s do not conflict.
          Edited by mwooten77 at 01/18/2007 9:34 AM
          Edited by mwooten77 at 01/18/2007 9:35 AM

Similar Messages

  • Debugging with Eclipse Plugin using Weblogic 6.1

    I am having a problem debugging using Eclipse 2.1 and the weblogic server plugin
    provided by this site.
    If I start the server and run the application everything works fine.
    If I put a breakpoint into my code and then run the application I do not see the
    application breaking at all. I am in debug view of Eclipse. The browser just
    hangs and will not respond. I can take the breakpoint off and refresh the browser
    and it works fine again.
    Do I need to have anything special in a configuration file for weblogic to enable
    debugging ?
    Do I need to start the JVM with any special parms. I am currently using the following
    startup options. I have tried a number of configurations on the startup options
    and nothing works.
    -hotspon
    -ms64m
    -mx256m
    -Xdebug
    -Djava.compiler=none
    -Xnoagent
    -Dweblogic.ProductionModeEnabled=false
    I am using Weblogic 6.1 and JDK 1.3.1_09
    Thanks in advance for any help...

    Mark,
    Please post this in the weblogic.developer.interest.general newsgroup
    Thanks
    Raj Alagumalai
    WebLogic Workshop Support
    "Mark Hartnett" <[email protected]> wrote in message
    news:3f57a4a3$[email protected]..
    >
    I am having a problem debugging using Eclipse 2.1 and the weblogic serverplugin
    provided by this site.
    If I start the server and run the application everything works fine.
    If I put a breakpoint into my code and then run the application I do notsee the
    application breaking at all. I am in debug view of Eclipse. The browserjust
    hangs and will not respond. I can take the breakpoint off and refresh thebrowser
    and it works fine again.
    Do I need to have anything special in a configuration file for weblogic toenable
    debugging ?
    Do I need to start the JVM with any special parms. I am currently usingthe following
    startup options. I have tried a number of configurations on the startupoptions
    and nothing works.
    -hotspon
    -ms64m
    -mx256m
    -Xdebug
    -Djava.compiler=none
    -Xnoagent
    -Dweblogic.ProductionModeEnabled=false
    I am using Weblogic 6.1 and JDK 1.3.1_09
    Thanks in advance for any help...

  • OC4J debug with Eclipse

    I been trying to debug a oc4j application with eclipse but so far I can only see variables like
    ' this IndexAction,
    arg0 ActionMapping,
    arg1 null,
    arg2 EvermindHttpServletRequest,
    arg3 EvermindHttpServletResponse' ,
    I did setup Ant compile to create an *.ear in debug.
    classpath="${libclasspath};${build}/${classes}" debug="true"
         debuglevel="lines, vars, source"/>
    Also, I cannot place a watch file in any variable.
    Is there a configuration that I need to do with the java compile or OC4J to be able to see the content of the variables.
    Thank you
    P.S. with Jdev I'm able to debug with the embedeed-OC4J but the config of the \j2ee\home\config\*.xml files are totally different.

    Starting oas server with this command, -Xdebug -Xrunjdwp:transport=dt_shmem,server=y,suspend=n,address=4000,
    Eclipse debugger cannot connect anymore but apparently dt_shmem is used for windows machines and dt_socked for unix.
    Any hints would be greatly appreciated.

  • Jsp debugging in eclipse wtp

    i'm using wtp eclipse and oc4j 10.
    I'm unable to debug jsp. I run the server with the debug option but
    the breakpoints in the jsp are ignored. please help.

    Nope the value is interpreted by the debugger, it's
    the value of the Integer in the array. The addElement
    method is a void.yes, i guess that's what I tried to express that it's the value of the integer in the array -> Integer(1), Integer(2), Integer(3), right?
    fFull.addElement(new Integer(1));
    fFull.addElement(new Integer(2));
    fFull.addElement(new Integer(3));

  • Problem launching a jsp page with eclipse and tomcat

    Hi,
    I have just started using eclipse and tomcat for creating dynamic web pages. I tried to launch a jsp page after starting the tomcat server with the URL: http://locahost:8080/HelloWorld/, an error page was displayed as below:
    HTTP Status 404 -/
    type Status report
    message /_
    description The requested resource (-) is not available
    Apache Tomcat/5.5.17
    I didn't get any error at the console and when i just typed http://localhost, a pop up menu saying that the connection was refused when attempting to contact localhost.
    I'm not sure what is the problem here. Could it be the permssion to the localhost is not granted by the system as the eclipse IDE is running using linux?
    Hope someone can help.
    Thanks.

    http://www-128.ibm.com/developerworks/library/os-ectom/

  • Debugging with Eclipse CDT

    Hi,
    I've successfully configured the CDT to point to Flascc toolchain and it actually produces a 3.0 MB air executable (yay). (Though I don't know how to replase O3 switch with -O4 switch and also don't know how to change the name of the output file to Out.swf in case of -emit-swf. help/hints appreciated)
    I tried to configure flascc gdb with CDT (local app debugging) but failed. Can anyone tell how to configure CDT to debug swf files ? Local, attached or remote debugging, anying please ? I am using Mac OSX.

    I was once able to get FlasCC gdb working within Eclipse on a Mac.  I'm not sure if that will work with an AIR executable.
    These were the rough instructions of how I got debugging setup.  Your mileage may vary and you may need to make some changes based on how your project is setup.
    When debugging using FlasCC GDB you need to set an environment variable called FLASCC_GDB_RUNTIME that points to the application to launch the SWF with. This will either be a standalone Flash Player Debugger or a browser that has a Flash Player Debugger plugin.
    To set this variable in Eclipse:
    Right Click the Project > Properties
    C/C++ Build > Environment
    Click Add
    Name: FLASCC_GDB_RUNTIME
    Value: /Users/path/to/runtimes/player/11.1/mac/Flash Player Debugger.app
    Next create a new debug configuration:
    Click the "Green Bug Button Down Arrow"
    Click Debug Configurations...
    Create a new "C/C++ Attach to Application" configuration
    Set the "C/C++ Application:" field to your SWF using the Browse button
    Select the Debugger tab
    Change the "GDB debugger:" field to point to the gdb in your alchemy build using the Browse button
    Click Debug
    Click New...
    Select the SWF file
    At this point the debugger view should take over and show what appears to be a source not found error. Ignore this error by pressing the green continue button.You should now be broken at main.If you are using Windows you may need to add a path mapping so CDT knows how to map /cygdrive/c/ style paths to native C:/ style paths:
    In your Debug Configuration go to the Source tab
    Click Add...
    Choose Path Mapping and click OK
    Click Add
    Set the Compilation Path to the Cygwin style path to your source drive (/cygdrive/c/)
    Set the Local file system path to the Windows style path to your source drive (C:/)
    Note: Recent versions of Eclipse may have broken this workflow, so you may need to try an older build of Eclipse.
    Note: Debugging is not supported on projector executables, only on SWFs running in the standalone Flash Player Debugger or in a browser that has the Flash Player Debugger installed.

  • Remote debugging with Eclipse and WS7

    Any idea how I can set this up?
    Thanks

    Not true. You can do it through Eclipse with settings set in the server.xml <jvm> tag. I know because I asked this quetion a few years ago and implented the information.
    Why am I asking again. Well I lost the e-mail with the information (Heh the inbox got full and I dumped old e-mails) Now I'm collecting old tips to keep just in case I run across the problem again. Not every company moves on to the last technology. Some hang on to some out dated stuff.
    Thanks for the suggestion I know of NetBeans and think its one of many great IDE tools.

  • Debugging with eclipse

    anyone can point me to a document or how to do this...
    i get the remote debugging all set, but it never gets to any breakpoint...
    any clues would be appreciated.
    thanks

    There are several things that could be off:
    1. Make sure your code is built with 'debug="true"'.
    2. Verify the server startup uses the JVM args that you expect, like setting the
    "dt_socket" port to the port you expect.
    3. Do the remote attachment to the same port.
    4. Mount filesystems at the package root, not elsewhere.
    "nik" <[email protected]> wrote:
    >
    anyone can point me to a document or how to do this...
    i get the remote debugging all set, but it never gets to any breakpoint...
    any clues would be appreciated.
    thanks

  • Remote debuging with Eclipse and Sun WebServer 7

    Does any have an Idea how this can be done?
    Thanks

    This is not the right forum for this question. The right forum might be http://forum.java.sun.com/forum.jspa?forumID=759

  • Jsp-debugging: breakpoints wont work!

    hi,
    i am trying to enable jsp-debugging with eclipse 3, lomboz 3.0.0 and tomcat 5.5.4 (both working
    as an eclipse plugin).
    What happens so far is:
    i write an jsp using lomboz, the jsp is converted to a servlet and stored / copied to a folder
    called j2src in the eclipse workspace (the folder j2src is created by lomboz).
    if i now call the url http://localhost:8080/mywebmodule/jsptest.jsp the jsp is executed faultless
    and in the j2src-folder the corresponding class file appears.
    so, everything works fine, the problem that i now have, is that i can set breakpoints for debugging
    purposes in eclipse in the generated servlet-file under j2src, but this breakpoints are simply ignored, which means the
    servlet is fully executed regardless of where i set the breakpoints, and i really dont get it why, since
    my tomcat works completely in the eclipse workspace.
    do i have to configure the tomcat to enable jsp-debugging?
    i thought i had already done so, here is my deployment descriptor:
    <?xml version='1.0' encoding='utf-8'?>
    <Context docBase="E:\development\tutorial\eclipse_3\eclipse\workspace\testproject2\testmodulezwei" path="/testmodule" reloadable="true" workDir="E:\development\tutorial\eclipse_3\eclipse\workspace\testproject2\j2src" debug="0"/>
    here is what i inserted into the web.xml (in the conf-directory):
    <servlet>
    <servlet-name>jsp</servlet-name>
    <servlet-class>org.apache.jasper.servlet.JspServlet</servlet-class>
    <init-param>
    <param-name>classdebuginfo</param-name>
    <param-value>true</param-value>
    </init-param>
    <init-param>
    <param-name>fork</param-name>
    <param-value>false</param-value>
    </init-param>
    <init-param>
    <param-name>xpoweredBy</param-name>
    <param-value>false</param-value>
    </init-param>
    <load-on-startup>3</load-on-startup>
    </servlet>
    any ideas / suggestions?.......i am out of ideas right now....
    thx in advance, timo

    If you're using a debugger in a JSP or servlet, I'd say you're really in trouble.
    I never use a debugger like that for servlets or JSPs. If I have problems I depend on the logger to help me out. Just log statements until you narrow the problem down.
    This might be "clumsy", but it works even in those cases where you don't have a debugger available (like on a client's installation site).
    If your servlet or JSP is doing so much stuff that you have to debug, I'd say they're both doing too much. JSPs are for display; servlets for control. Complex business logic belongs in POJOs that you can debug or EJBs.
    Maybe you should rethink your design.
    %

  • Remote Debugging w/Eclipse Transport Error

    I am requesting help on a problem I am encountering using remote debugging with eclipse and Weblogic 8.1.2. I have successfully used remote debugging in the past with other application servers, but I have been unsuccessful with Weblogic 8.1.
    I have set the remote debugging options both on the weblogic start script as well as configured eclipse to connect to the port that was defined in the startup script (See Below). When I start the remote debugger within eclipse and it seems to connect properly. Once I set a break point or remove a break point, weblogic generates a "Transport error, error code = -1" and stops the debugger with in Eclipse.
    At this point I am at a loss of what is causing this error. I would appreciate any help on this issue.
    Operating System: WindowsXP Pro
    Weblogic Version: 8.1.2
    Eclipse 3.2
    JDK 1.4.2
    JAVA_OPTS: =-Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,address=7777,server=y,suspend=n
    Thanks!
    Rafael Salazar

    Interesting. I tried it and it works. you might want to check your Eclipse port number. In addition try netstat -a to see if port 1044 is active.
    This one might also help: http://www.jacoozi.com/index.php?option=com_content&task=view&id=119&Itemid=134
    Let me know if you have any questions.

  • Can't get JSP debugging to work with WebLogic 6.0 and Eclipse 2.1.1

    Is native JSP debugging supported in WebLogic 6.0? If so, what are
              the steps involved in getting it to work? I'm in debug mode and my
              servlets will catch at my breakpoints but the JSP pages' breakpoints
              are ignored. I am using compliance level 1.3 and a JRE 1.3. I tried
              to start WebLogic with the 1.4.2 JRE but I get an exception error on
              the WLS JDK name" field. What am I missing here?
              Thanks!
              

    I appear to have solved it, but it is not clear to me why.
    I created a jar file of the required classes, and placed it in the same directory as the jsp file. My jsp code then looked like:
    <jsp:plugin type="applet" code="nz.astarte.ganttapplet.GanttApplet"
    codebase="."
    archive="GanttApplet.jar"
    jreversion="1.3.1"
    width="400" height="175">
    <jsp:fallback>
    Plugin support could not be determined
    </jsp:fallback>
    </jsp:plugin>
    This works fine. However I would expect to be able to move the jar file to some other directory, so that the jar file and jsp files are separated. I spent hours trying to work out why it wouldn't work when I had the jar
    file in WEB-INF/classes (under the jsp file directory) and had codebase="WEB-INF/classes/". In the end I put the jar file into a directory I defined separately called wotnot and defined codebase="wotnot/"
    Now it works. However I still think I should be able to have the jar file anywhere, including WEB-INF/classes and would love for someone to tell me why not!
    Thanks, Andrew

  • Debugging JSP with Eclipse

    Hi, how to connect to Oracle Database 9i R2 with Eclipse?

    Hi, I didn't get an email notifying me of a response to this. Just happened to check myself.
              But basically you want to point the weblogic server directly to your workspace (src code) so it can detect a change. THis is from our doc below. You may also write an ant script specific to weblogic that redeploys the app and reloads the xml and prop files without restarting the server.
              1.     Start up your Weblogic domain server (i.e., C:\Domains\devDomain\startWebLogic.cmd).
              2.     Go to url, http://localhost:7001/console and log in (weblogic, weblogic).
              3.     On the left menu, click Deployments, then Lock & Edit button above it, and then the Install button in the main panel.
              4.     Change the location to the web folder in your project workspace (C:\Eclipse\workspace\<projectname>\web) Click Next.
              5.     Leave checked the Install this deployment as an application and click Next.
              6.     Put name for Name of deployment. . From here you can click Finish.
              7.     Click Activate Changes. Then check the deployment box and click Start button and Servicing all requests (in Deployments panel). Then click Yes to start it on the next page
              8.     Enter the URL of the application. This example is
              http://localhost:7001/web/index.htm
              The ?web? was the name of the web folder we deployed from. In the future you could name this something different if deploying from this console so the url?s do not conflict.
              Edited by mwooten77 at 01/18/2007 9:34 AM
              Edited by mwooten77 at 01/18/2007 9:35 AM

  • OEPE 12.1.2.1 with Eclipse (Kepler) M2E and M2E-WTP and Seam 2 problem

    I've a JEE project with Maven 3.0.5  and JBoss Seam 2.3. I've some problems in Weblogic 12.1.2 application deployments with Eclipse.
    If I deploy the application as virtual application (split_src and .beabuild.txt), the .beabuild.txt includes the directories:
    C\:/FundeWeb/2.0/workspace/fundeweb2/web/target/m2e-wtp/web-resources = web_fundeweb2  (m2e-wtp project generated resources)
    C\:/FundeWeb/2.0/workspace/fundeweb2/web/src/main/webapp = web_fundeweb2 (project web resources)
    That's produces the next error (Multiple WEB-INF/ejb-jar.xml found):
    <01-ago-2013 14H07' CEST> <Error> <Deployer> <BEA-149265> <Failure occurred in the execution of deployment request with ID "1375358874432" for task "1". Error is: "weblogic.application.ModuleException: Multiple WEB-INF/ejb-jar.xml found. [weblogic.servlet.internal.WarSource@19d4f67, weblogic.servlet.internal.WarSource@c7fd40]"
    weblogic.application.ModuleException: Multiple WEB-INF/ejb-jar.xml found. [weblogic.servlet.internal.WarSource@19d4f67, weblogic.servlet.internal.WarSource@c7fd40]
      at weblogic.ejb.container.deployer.EjbModuleExtensionFactory.create(EjbModuleExtensionFactory.java:26)
      at weblogic.application.internal.ExtensibleModuleWrapper.createModuleExtensions(ExtensibleModuleWrapper.java:264)
      at weblogic.application.internal.ExtensibleModuleWrapper.initDrivenObjectArray(ExtensibleModuleWrapper.java:232)
      at weblogic.application.internal.ExtensibleModuleWrapper.prepare(ExtensibleModuleWrapper.java:107)
      at weblogic.application.internal.flow.ModuleListenerInvoker.prepare(ModuleListenerInvoker.java:100)
      Truncated. see log file for complete stacktrace
    If I deploy the aplication in Weblogic Console with the split_src, with only the web/target/m2e-wtp/web-resources, the applications deploy succesfully.
    If I deploy de application as exploded archive, the jboss-seam.jar file isn't included in the WEB-INF/lib folder. The others jboss-seam-xxxx.jar files are included.
    In the virtual application deployments, I think that the OEPE integration with M2E and M2E-WTP, there are include only the m2e-wtp folders.

    Hi Subash,
    I tried the same installer on a 32bit machine and was able to run without any issues.
    I did however come across a few users jdeveloper users who had similar issues with the jdev installer and the following workaround seems to have solved the issue for them. coudl you try the same and let us know if that helped ?
    1. Extract "oepe-12.1.2.1-kepler-installer-win32.exe" file into C:\oepe-12.1.2.1-kepler-installer-win32
    2. In cmd go to C:\oepe-12.1.2.1-kepler-installer-win32
    3. Execute follow command:
       C:\PROGRA~1\Java\jdk1.6.0_31\bin\java.exe ( path to your JDK)  -jar install/modules/ora-launcher.jar DISKCNT=1 JRE_COMPONENT=oracle.jdk,oracle.jre
    thanks
    Raj

  • How to debug a bean in JSP page with JBX???

    How to debug a bean in JSP page with JBX???
    i have a bean within a JSP page. i wanna find out how do they varibles work and changes of them values.
    are there some ways or tools to get the situations of them in visual way? just like when i debug VB program,i can get the situations in immediately window.

    help me !!!!!!!!!!!!!!!!!!!!!!!!!!!!!

Maybe you are looking for

  • Where can I find a tutorial to Excel features like using drop down tables and other little known features

    Using data from a table in an external sheet can be done but is tricky.  I would like to find rules supporting this feature.  Also, I'd like to find discussions of other little known features to improve and add sophistication to custom spreadsheets

  • Problem with  VL02n

    Hi, all I have problem with print outbound del. , when printing have message :Error in address output(name not filed). this is happend for several issues not for all, some are printable.

  • Printing Low-Res in InDesign

    hi there! I'm trying to print a file directly from InDesign with lo-res settings. I'd like to use it for quick review (content only) so that images do not need to be high quality. I remember in QuarkXPress you could reduce the lpi when printing and t

  • No enough space for downloads?

    i am going to download CS6 on a desktop, then i receive the error message, " no enough space, review the requirement? Amany

  • Loading applet from host

    Hi, my problem isn't pure programming but it's about applets. I've started blog with all my projects. i thought that puting applet on it will be easy but it's no. I cant upload files to blogs host, so i've done that: allpets are on my host - for exam