Debug JSP

When I'm debugging some JSP's, sometimes I get the message "Unable to Find Source File for Package com.evermind.server.http, filename ServletRequestDispatcher.java".
How I can avoid this?
Julio Peñuela Gil
Barcelona University
*************************

It's harmless, this is part of the Application Server's code. Just don't step into the request objects.
Rob

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

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

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

  • How to debug JSP?

    I'm a starter at JSP. I have JBuilder, websphere (both are trial edition), and J2EE installed on my computer.
    How can I debug a JSP page?
    Thanks

    Well well, i say, i have not heard of any program you can use to debug your jsp. The only method i used is, placing numerous "System.out.println" before/in/after every loops, conditions and those statements that yields a result.

  • Debugging JSPs and inspecting variables

    I've got the debugger running in a jsp, the breakpoints trigger but I can't inspect/watch/view any variables - it just prints up a question mark. This makes the debugger a bit pointless.
    I used to be able to see them, and I've looked all through the project properties - run debug settings but nothing stands out. I'm putting the breakpoint in the .jsp file - I've tried it in the _java file and it doesn't trigger.
    I'm on jdeveloper 10.1.3.1.0.3984 /windows xp sp2/jdk 1.5
    Anyone know how to get this back working? It works fine in normal java files

    Same problem I've been hoping for an answer to in my thread at http://technet.oracle.com:89/ubb/Forum2/HTML/006620.html -- I'd really like to see someone from Oracle comment on this as these problems developing jsps in JDeveloper are a huge problem. That's what's keeping me using JBuilder right now.

Maybe you are looking for

  • Help reqd to display the form output  without print preview

    Hi all, I did one gate pass form and i want to view the form in my selection screen or output screen(just in monitor) as a display by giving one t-code. i.e, we can view the form thru Print preview...the same preview, i want to display after i give m

  • SBO Mailer Error - The specified resource type cannot be found in the image file

    Hi Experts, I have created an alert in SBO and selected email and internal option for same. I get internal message however email is not getting delivered, I checked the Event Viewer of Windows and below error is shown for SBOMail. The description for

  • How do I  save project and update changes in MAC and extternal drive

    I make music on my IMAC> I have an extrenal hard drive for extra storage and backup. Say I make Song A and save it onto my docs in the Mac.....how do I create a backup of that project to be placed in the exteranl drive, and in future sessions, I will

  • Recommend an Home Media Setup Using iTunes

    Perhaps someone could point me in the right direction--an article or discussion that might give me some direction regarding setting up an "ideal" iTunes media server/client setup in my home. Right now, I have a MacBook Pro with a 320GB hard drive tha

  • How to change IMAQ ROI color while adjusting handles

    I have an application where a user must draw a rotated rectangle box around an object.  I'm using an color overlay to highlight the box, but when the user is adjusting the roi handles, the box color becomes gray.  The images i'm working with are gray