Debug jsp on 9ias

We need to debug a deployed jsp that uses java beans. It works fine in jdeveloper but we get null pointer exceptions when deployed and accessed via internet explorer. Strangely, it seems not to happen when we use netscape.
The jsp/java beans app is in jdevleoper 9.0.3.1 (windows 2000).
I have deployed the application to Oracle 9ias java edition (9.0.3) on Red Hat Linux.
I know how to modify the project settings in jdeveloper for remote debugging.
I have set the oc4j_home oc4j container properties to "debug mode" and "emit debug info" on 9ias server through the enterprise manager web site.
when I start debug mode in jdeveloper I am prompted for the host name and port number for the remote debug session. What port do I use ? Do I need to do something to start 9ias at a certain port ?
Jgalt

Try this JavaOne presentation:
http://servlet.java.sun.com/javaone/javaone2000/event.jsp?eventId=1569&trackId=7&eventType=TS&ts=1025021896743
Starting at slide 12, there are technical details on configuring Apache/JServ for remote debugging of JSPs. If you want to use JDev9i for debugging Apache/JServ, you'll need to substitute updated jars for the jars that are shown in the slides.

Similar Messages

  • How to debug jsp program

    Thanks,
    I havenot used Oracle before I know that
    you could debug JSP in Visual Age for Java,
    but where could we debug jsp code,
    thanks,
    null

    You can debug JSPs and Servlets in JDeveloper locally in the IDE itself, or remotely.
    To debug locally within JDeveloper, simply place breakpoints anywhere in the source code and choose Run | Debug from the main menu. The JSP is run using Oracle's Web-to-Go server.
    Remote debugging requires a little more setup. See the online help for more information.

  • Debugging JSPs using Visual Cafe

              I am using WL 5.1 and trying to figure out how to debug JSPs using Visual Cafe 4.0.(Enterprise Edition). The JSP file is running fine if I use plain "javac" for compilation. If I change the compiler to include -g option (for debug), I get the following error.
              Thu Aug 31 15:46:37 CDT 2000:<E> <ServletContext-General> Servlet failed with Exception
              java.lang.NumberFormatException: error=2
              at java.lang.Integer.parseInt(Integer.java:409)
              at java.lang.Integer.parseInt(Integer.java:458)
              at weblogic.servlet.jsp.JspStub.compilePage JspStub.java:303)
              at weblogic.servlet.jsp.JspStub.prepareServlet(JspStub.java:174)
              at weblogic.servlet.jsp.JspStub.checkForReload(JspStub.java:92)
              at weblogic.servlet.internal.ServletStubImpl.getServlet(ServletStubImpl.
              java:168)
              at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
              pl.java:99)
              at weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletCon
              textImpl.java:742)
              at weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletCon
              textImpl.java:686)
              at weblogic.servlet.internal.ServletContextManager.invokeServlet(Servlet
              ContextManager.java:247)
              at weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.jav
              a:361)
              at weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java:261)
              at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
              weblogic.properties
              weblogic.httpd.initArgs.*.jsp=\
                        pageCheckSeconds=1,\
                        compileCommand=C:/VisualCafeEE/java2/bin/javac.exe -g,\
                        workingDir=C:/weblogic/myserver/classfiles,\
                        verbose=true
              If I don't use -g option, the page gets displayed correctly. Any help would be appreciated.
              Thanks
              Sree Pillai
              

    assuming you are running on Windows, you can use a .cmd file with the
              following command in it
              javac -g %*
              if you name it c:/java/bin/javac.cmd, then replace the line with
              compileCommand=C:/java/bin/javac.cmd,\
              Barry
              Sree <[email protected]> wrote in message
              news:[email protected]...
              >
              > I am using WL 5.1 and trying to figure out how to debug JSPs using Visual
              Cafe 4.0.(Enterprise Edition). The JSP file is running fine if I use plain
              "javac" for compilation. If I change the compiler to include -g option (for
              debug), I get the following error.
              >
              > Thu Aug 31 15:46:37 CDT 2000:<E> <ServletContext-General> Servlet failed
              with Exception
              > java.lang.NumberFormatException: error=2
              > at java.lang.Integer.parseInt(Integer.java:409)
              > at java.lang.Integer.parseInt(Integer.java:458)
              > at weblogic.servlet.jsp.JspStub.compilePage JspStub.java:303)
              > at weblogic.servlet.jsp.JspStub.prepareServlet(JspStub.java:174)
              > at weblogic.servlet.jsp.JspStub.checkForReload(JspStub.java:92)
              > at
              weblogic.servlet.internal.ServletStubImpl.getServlet(ServletStubImpl.
              > java:168)
              > at
              weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
              > pl.java:99)
              > at
              weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletCon
              > textImpl.java:742)
              > at
              weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletCon
              > textImpl.java:686)
              > at
              weblogic.servlet.internal.ServletContextManager.invokeServlet(Servlet
              > ContextManager.java:247)
              > at
              weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.jav
              > a:361)
              > at
              weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java:261)
              >
              > at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
              >
              >
              >
              > weblogic.properties
              > -------
              > weblogic.httpd.initArgs.*.jsp=\
              > pageCheckSeconds=1,\
              > compileCommand=C:/VisualCafeEE/java2/bin/javac.exe -g,\
              > workingDir=C:/weblogic/myserver/classfiles,\
              > verbose=true
              > --------------
              >
              >
              > If I don't use -g option, the page gets displayed correctly. Any help
              would be appreciated.
              >
              > Thanks
              > Sree Pillai
              

  • Debug JSP/JDeveloper 3.1

    I am trying to use JDeveloper 3.0 to debug JSP pages. The pages call each other through standard link tags ( <a href=myjsp.jsp...)
    I can debug a single jsp page but not the linked to pages. Can this be done in 3.0?
    If not.. when is JDeveloper 3.1 expected??
    Thanks,
    Dave
    null

    This is possible in JDeveloper 3.0
    For example create
    A.jsp which has a link to B.jsp as
    <P><% out.println("Hello World"); %></P>
    Call second JSP
    Place a break point on out.println
    B.jsp has
    <P><% out.println("Hello World"); %></P>
    place a breakpoint on this line
    Run A.jsp in the debug mode and when you see the html page rendered in browser click on the link which calls B.jsp and this will stop at the breakpoint place in B.jsp
    raghu
    null

  • Can I debug jsp in eclipse ?

    I am using wtp eclipse and I want to debug jsp please guide me how to ?

    Yes, just the same way as you do with normal Java classes. Run the server in debug modus and put breakpoints in the source file.
    But do you have business logic (scriptlets?) in your JSP then? I'd to put them in separate Java classes (Servlet, Bean, DAO, Utility, etc). It will greatly ease unit testing and debugging (and also maintenance!).

  • IDE for debugging JSPs?...

    Please help, anyone know of a good IDE for debugging JSPs? are there any
              that may be freeware?
              

    Try converting the .jsp files to Java files then compiling to .class files
              and deploying as Servlets. Then you can easily debug with any debugger
              supporting WL.
              Peace,
              Cameron Purdy
              Tangosol, Inc.
              http://www.tangosol.com
              +1.617.623.5782
              WebLogic Consulting Available
              "Manoj" <[email protected]> wrote in message
              news:3b02fe33$[email protected]..
              > Please help, anyone know of a good IDE for debugging JSPs? are there
              any
              > that may be freeware?
              >
              >
              

  • Debugging jsp in eclipse 3.2

    --i have eclipse 3.2 ,i want to debug jsp page .
    --how will i do it.                                                                                                                                                                                           

    Design your application so that there is little that needs to be tested or debugged from within the JSP?

  • Debug JSP file

    Hi,
    Is there any tool to debug the JSP files? I want to debug my JSP how to do it? Please clarify.
    Thanks.

    gimbal2 wrote:
    ramp wrote:
    But then there are millions of already written jsps out there already and to debug those, I use MyEclipse. It needs a paid license though.A license that needs to be renewed yearly, right?
    Yes, 30$ or thereabouts. I do not have to pay for it though ;)
    I wouldn't pay for a tool just to be able to debug JSPs though ;) I'll just work with System.out or a logger to trace where stuff goes wrong.We used to do that before we convinced the management that we work for that it really saves huge time (money and productivity)
    Its a life saver for us :). The jsps are sometimes 500 lines long (no dont kill me, I did not write those. Just have to maintain them :( ) and I shudder to think of those dark days where we kept adding incremental sysouts, then do a build and watch the stack trace. Sometimes the server did not pick up the jsp changes and a restart was needed ( more shudder :) )
    ram.
    Edit: Just wanted to add that it needs some setup and is not for the faint hearted

  • Problems with jsp on 9iAS

    Hello
    I'm having trouble inserting rows in a table with a jsp page, I have many jsp pages that retrieves data from my tables,
    but when I make an insert page I have this error.
    oracle.jsp.provider.JspCompileException: Errores de compilacisn:d:\oracle\aplicaciones\pozos\_pages\_pozos\\_COMET.javad:\oracle\aplicaciones\pozos\_pages\_pozos\_COMET.java:171: Method encodeRedirectURL(java.lang.String) not found in interface javax.servlet.http.HttpServletResponse.
    response.sendRedirect(response.encodeRedirectURL("sel_consulta.html"));
    ^
    1 error
    In the server is installed the Oracle 9iAS with the apache engine.
    [email protected]

    Per the software download page for IAS...
    There is NO CERTIFIED IAS version for WIN 2000 yet.

  • Debugging JSP with standalone OC4J

    Hi All,
    I am trying to debug a JSP using JDeveloper 10.1.3.2 on standalone OC4J 10.1.3.2 . I find that it is not stopping at the breakpoints I have set. My settings in the global-web-application.xml are as follows
    <servlet>
    <servlet-name>JDevOJSP</servlet-name>
    <servlet-class>oracle.jsp.runtimev2.JspServlet</servlet-class>
    <init-param>
         <param-name>check_page_scope</param-name>
         <param-value>true</param-value>
    </init-param>
    <init-param>
         <param-name>debug_mode</param-name>
         <param-value>true</param-value>
    </init-param>
    <init-param>
         <param-name>developer_mode</param-name>
         <param-value>true</param-value>
    </init-param>
    <init-param>
         <param-name>encode_to_java</param-name>
         <param-value>true</param-value>
    </init-param>
    <init-param>     
         <param-name>emit_debuginfo</param-name>     
         <param-value>true</param-value>     
    </init-param>     
    <init-param>
         <param-name>jspjavacompiler</param-name>     
         <param-value>oracle.jdevimpl.jsp.JspOjcCompiler</param-value>
    </init-param>     
    <init-param>     
         <param-name>jspcompiler</param-name>
         <param-value>oracle.jdevimpl.jsp.JspOjcCompiler</param-value>     
    </init-param>
    <load-on-startup>0</load-on-startup>
    </servlet>
    However when I try accessing the JSP(test.jsp) from the browser, I get an error saying _test.class is not found.
    I verified this by checking under the application-deployments folder and I found that the .java & .class files are not created under the persistence\_pages folder.
    So I changed the entry in global-web-application.xml as follows to get the .java & .class files generated
    <servlet>
         <servlet-name>JDevOJSP</servlet-name>
         <servlet-class>oracle.jsp.runtimev2.JspServlet</servlet-class>
    </servlet>
    Once they are generated, I reverted the setting back to as it was before and tried to debug the JSP. But still it does not find the break points
    I have jdev-rt.jar,xmlparserv2.jar,ojc.jar & jdev-remote.jar in <OC4J_HOME>/lib folder.
    I am starting OC4J with OJVM option debug mode listening to port 4000 and I have configured my project in JDeveloper for remote debugging.Please let me know where I am going wrong.
    Thanks in advance,
    Prasanna

    http://blogs.oracle.com/shay/2005/10/24#a55

  • How to debug JSP in JDeveloper

    I want to debug a JSP page in JDeveloper. I have put break point in jsp page, but when called from browser, control does not stop at break point in JSP. Please suggest, how to debug a JSP page in JDeveloper

    You might use logging, log4j or standard jdk , <c:out> or even good old scriptlets <% ..%>and out.println(); to display the values of the variables that interest you.
    Consult for instance chapter 14 of Beginning JSP, by Wrox, or any other equivalent.
    NA
    [http://nickaiva.blogspot.com/]

  • How to Debug JSP in Websphere 3.5 ?? Urgent

    Hi,
    can somebody help me debuuging JSP in Websphere Application server 3.5 .Remember I dont have
    Websphere Studio or any other tool.any help in this regard is appreciated.
    Thanks
    Jack

    In most cases, you can debug an application by using the old standby of printing status lines after each significant chunk of code. For example, you can always output the page's parameters to make sure you've received what you think you've received.
    In the cases that Java throws an exception, you can make a rough guess as to what the problem is, based on the exception. A NumberFormatException usually occurs when you try to convert a letter into a number. The original intent would be to take a string "10" and convert that into the integer 10. SQL Exceptions are a little more vague, but again, you can at least narrow down the problem.
    Specific debuggers, while nice to have, are not really necessary. Through experience, and trial and error, you will eventually discover (and remember) the most common kinds of errors and how to avoid them.
    As a general rule, until you become proficient, always code a little chunk of the application at a time, and test that chunk to make sure it's working properly. It's far easier to track down a bug if you know it's somewhere in a dozen lines of code that you wrote that morning.
    If you are using Internet Explorer, you may want to confirm that Explorer is not giving you "friendly error messages". You can check this in the tools->internet options->advanced dialog box. By default, IE hides specific error messages, including JSP errors, because Microsoft rightly feels that your grandmother would just get confused.

  • JSP on 9ias?

    Is it possible to write JSP with custom Javabeans on 9ias? If yes, how should I set up the classpath to the classes I create to be used with JSP? Where am I suppose to store the JSP? Do I need to download any additional things for the JSP?
    Thanks

    For JSP you don't need to install anything else.9i AS will be enough to work with JSP.Notice that your JSP file must be loaded into
    <ias_home>\apache\apache\htdocs
    write the JSP commands into a notepad file and save as with the extension jsp and to your browser's URL write
    http:\\<host_name>\<your jsp file>
    I hope this helps to you.
    Regards...

  • Debugging jsp dynpage

    I wish to debug a JSP dynpage project.
    For that I selected Debug perspective and then Create Manage and Run Configuarations. There I selected Remote Java application.
    I get a message "Failed to connect to remote VM. Connection refused".
    I entered localhost and 5000 as port. Is there any problem with it?

    Hello Prem,
    You should start your J2EE-Server in Debug mode to be able to debug:
    Steps to follow to start J2EE-Server in Debug mode
    1. Run ConfigTool "configtool.bat" which is under path "C:\usr\sap\J2E\JC00\j2ee\configtool\configtool.bat"
    2. In ConfigTool goto -->
    cluster-data>instance_ID*****>server_ID******
    then on the right details-window, goto Tab "Debug".
    Select the check box "Debuggable" and Check box "Enable debug mode" and set a "Debug port" generally 50021.
    Now restart server and try connecting to the remote VM with your Debug port.
    Greetings,
    Praveen Gudapati

  • Jdveloper, Debugging JSP doesnt  work

    Hi,
    i am using jdeveloper 9.0.4.2.0 , jdk 1.4.2_03
    Until yesterday it was possible to set breakpoints in a JSP-Site (let us call it myJSP.jsp). The debugger stopped erverytime at a breakpoint when archiving it.
    But now it doesnt work any more, that means, the debugger even doenst jumps into the JSP-Site-Sourcecode, instead it jumps to the stub-file belonging to the JSP-Site ( _myJSP.JAVA).
    What have i to do to get the former behavior of the debugger?
    please help
    bye

    Is the debug param set to true?

Maybe you are looking for

  • How to configure the rc.conf for a HUAWEI E220 modem

    Hello. I configured my HUAWEI E220 after the instructions in the wiki, and it's working well. BUT, I can't connect to the internet. I think that is because i didn't made any modifications at the network configurations in the rc.conf file. I don't kno

  • Authorization in portal to add BI documents

    Dear all, I created a BW web template and included the standard web item for single document. Our users shall be able to create a new or edit the exitsing document. This works with my authorizations - SAP_ALL in ABAP and Super Administration (pcd:por

  • Color (how do I find the "name or number" associated with a color

    I am asking someone to help me make a Photoshop copy of the presentation that I have built in Keynote. He asked me for the color "alphanumeric" related to the colors I have used in my presentation to make sure that it perfectly matches but I can't se

  • OSX - SCEP Agent - Where does it get updates from?

    Really simple question that I simply cannot find an answer to. Where does the OSX version of the System Center Endpoint Protection agent download it's updates from? For Windows clients we have it set to get updates from SCCM and then failback to Micr

  • Mass Updates of Actions in Contracts

    Hi, We would like to know how can we do a mass update on service contracts to update the new action definition in item actions tab. There are around 400,000 contracts which already has old actions based on the Schedule & Start conditions, but we want