OAS server-side JSP debugging

Hi All
Is there a way to do the OAS server side JSP debugging using JDeveloper or other tools?
ka
null

Hi
The pdf file only mentioned 4 ways to do that but didn't include the details on how to do it. Appreciate if you could you tell me more precisely on how to do it with OAS?
ka
null

Similar Messages

  • Server-Side Development/Debugging???

    I've been devloping JSP/Servlets and Beans for over a year now and have never been completely happy with my development environment. Currently, I'm using a text editor, .bat scripts for builds and system.out.println() for debugging. I'm looking into emacs as the editor, ant for the builds, but am unclear on a good approach for debugging server-side applications. Any suggestions?
    -thanks

    You can get development environments that allow you to debug servlets and JSPs, but I don't know of any that are free like your current setup. I'm using VisualAge for Java (Enterprise Edition), which debugs those things quite nicely, but I'm glad that I didn't have to pay for it myself. There are more products you could look at besides VAJ.

  • Does apex support any server side JSP or PHP?

    I have the folowing script that is used to save flash files as images. I am hoping there is some way to make these serverside calls from within apex.
    <%@ page import="java.io.OutputStream"%>
    <%@ page import="java.awt.Color"%>
    <%@ page import="java.awt.Graphics"%>
    <%@ page import="java.awt.image.BufferedImage"%>
    <%@ page import="javax.imageio.ImageIO"%>
    <%
         //Decoded data from charts.
         String data="";
         //Rows of color values.
         String[] rows;
         //Width and height of chart.
         int width=0;
         int height=0;
         //Default background color of the chart
         String bgcolor="";
         Color bgColor;
         //Get the width and height from form
         try{
              width = Integer.parseInt(request.getParameter("width"));
              height = Integer.parseInt(request.getParameter("height"));     
         catch(Exception e){
              //If the width and height have not been given, we cannot create the image.
              out.print("Image width/height not provided.");
              out.close();
         if(width==0 || height==0){
              //If the width and height are less than 1, we cannot create the image.
              out.print("Image width/height not provided.");
              out.close();
         //Get background color from request and set default
         bgcolor =request.getParameter("bgcolor");
         if (bgcolor==null || bgcolor=="" || bgcolor==null){
                   bgcolor = "FFFFFF";
         //Convert background color to color object     
         bgColor = new Color(Integer.parseInt(bgcolor,16));
         //Get image data  from request
         data = request.getParameter("data");
         if(data==null){
              //If image data not provided.
              out.print("Image Data not supplied.");
              out.close();
         try{
              //Parse data
              rows = new String[height+1];
              rows = data.split(";");
              //Bitmap to store the chart.
              //Reference to graphics object - gr
              BufferedImage chart = new BufferedImage(width,height,BufferedImage.TYPE_3BYTE_BGR);
              Graphics gr = chart.createGraphics();
              gr.setColor(bgColor);
              gr.fillRect(0,0,width,height);     
              String c;
              int r;
              int ri = 0;
              for (int i=0; i<rows.length; i++){
                   //Split individual pixels.               
                   String[] pixels = rows.split(",");               
                   //Set horizontal row index to 0
                   ri = 0;
                   for (int j=0; j<pixels.length; j++){                    
                        //Now, if it's not empty, we process it                    
                        //Split the color and repeat factor
                        String[] clrs = pixels[j].split("_");     
                        //Reference to color
                        c = clrs[0];
                        r = Integer.parseInt(clrs[1]);
                        //If color is not empty (i.e. not background pixel)
                        if (c!=null && c.length()>0 && c!=""){          
                             if (c.length()<6){
                                  //If the hexadecimal code is less than 6 characters, pad with 0
                                  StringBuffer str = new StringBuffer(c);
                                  int strLength = str.length();
                                  for ( int p = c.length()+1; p <= 6 ; p ++ ) {
                                            str.insert( 0, "0" );
                                  //Assing the new padded string
                                  c = str.toString();
                             for (int k=1; k<=r; k++){     
                                  //Draw each pixel
                                  gr.setColor(new Color(Integer.parseInt(c,16)));
                                  gr.fillRect(ri, i,1,1);
                                  //Increment horizontal row count
                                  ri++;                              
                        }else{
                             //Just increment horizontal index
                             ri = ri + r;
              //Returns the image
              response.setContentType("image/jpeg");
              response.addHeader("Content-Disposition", "attachment; filename=\"FusionCharts.jpg\"");
              OutputStream os = response.getOutputStream();
              ImageIO.write(chart, "jpeg", os);
              os.close();
         }catch(Exception e){
              //IF the image data is mal-formatted.
              out.print("Image data is not in proper format.");
              out.close();
    %>

    NO, APEX does NOT support running jsp or PHP scripts..
    Thank you,
    Tony Miller
    Webster, TX

  • Server Side SSL

    Hi,
    I'm trying to create a JSP than use the SSL technology,
    I create the certificate and configurates the web server,
    is needed write some additiona code in the server side (JSP) ???

    you have to set some policies,i.e some system properties, using
    System.setProperty(). Let's take below lines of code, usually placed in the top lines of code..... and as global variables in the JSP page.
    System.setProperty("java.protocol.handler.pkgs","com.sun.net.ssl.internal.www.protocol");
              java.security.Security.addProvider(new com.sun.net.ssl.internal.ssl.Provider());
              System.setProperty("javax.net.debug","all");
    And you need to set trust store for the own keystore, if it is trusted. and if you have anonymous class for that, no need to set this property.
    try... now the jsp works out....
    all the best

  • ***URGENT*** What Server side objec should we develop and deplot to OAS?

    Helo,
    I use Jdev3.1 as my Java IDE.
    I have to develop a server side java objects that will be deploy to OAS 4.0.8. My server side java objects will wait for client calls then perform certain business logics depending on each call? Please give me some advises about what type of java object should I develop.
    From JDev help doc,I read about Application Module, EJB, Business Component, JSP..I am new to JDev and Java so I don't really undestand about the relationship between these copmponent, and what should be used since they seem to do the same thing. Please help, I have to submit a proposal next week. Thank you very much in advance.
    Vivian

    Yes, I'm parsing some XML data files. The full stack trace follows.
    javax.xml.parsers.FactoryConfigurationError: Provider <HTML> could
    not be instantiated: java.lang.SecurityException: class "<HTML>"'s
    signer information does not match signer information of other classes
    in the same package
    at javax.xml.parsers.DocumentBuilderFactory.newInstance (DocumentBuilderFactory.java:99)
    at XMLHandlerStrippedDown.<init>(XMLHandlerStrippedDown.java)
    at onlinequestion.init(onlinequestion.java)
    at sun.applet.AppletPanel.run(AppletPanel.java:353)
    at java.lang.Thread.run(Thread.java:552)
    javax.xml.parsers.FactoryConfigurationError: Provider <HTML> could
    not be instantiated: java.lang.SecurityException: class "<HTML>"'s
    signer information does not match signer information of other classes
    in the same package
    at javax.xml.parsers.DocumentBuilderFactory.newInstance (DocumentBuilderFactory.java:99)
    at XMLHandlerStrippedDown.<init>(XMLHandlerStrippedDown.java)
    at onlinequestion.init(onlinequestion.java)
    at sun.applet.AppletPanel.run(AppletPanel.java:353)
    at java.lang.Thread.run(Thread.java:552)

  • What is the difference between jsp :include and server side include

    what is the difference between jsp :include and server side include(request dispatcher include method)????
    i understand that both request dispatcher include method and jsp:include take dynamic data,so when would one use request dispatcher include and when jsp:include.
    Is the usage interchangeable?i believe jsp include is used only for jsp/html but include directive can be used to include servlets ,jsp and html....correct me if i m wrong and
    do suggest if u hav ny other diff in this context...

    The difference really is: in what format do you want your inclusions? If your environment has many Java developers and only a few designers that focus mainly on, say, Flash, that might push you more towards the server-side include() directive. Or, if you have a large set of pages that receive dynamic content that is displayed in a consistent fashion (such as a workflow header area on a page).
    If, on the other hand, you have more web designers, there may be a greater desire to deal in markup rather than Java code. Java developers themselves might prefer to view markup (JSP) that more resembles the eventual output than something occuring in Java code.
    Finally, there are considerations of tiering. While it is totally possible to (and I have previously) implement 'view classes' that render markup or generate layout templates, JSP's offer, IMO, a subtle, psychological advantage. By forcing a developer to work in a different format, markup versus Java source, the separation on view from controller and model becomes a bit easier. It is still possible to make mistakes, but if a developer at some point notices, "Wait, I'm in a JSP, should I be importing a java.sql class?", then the choice to use JSP includes has paid off in spades.
    - Saish

  • Handle exception on server side and display a customized jsp error page

    Hi,
    I am developing a java/j2EE web application using servlet, jsp, ejb3 with JBOSS and ECLIPSE.
    Two cases can occur on the server side :
    1) either I have not an expected result in a method and in this case I want to display an error page (a JSP page I suppose) with a personnalized error message
    2) or I have an exception thrown and I want to display the exception message in the former JSP page
    I don't know how to cope with this problem of personnalized error message (or the message of a thrown exception) with a JSP page.
    Does anybody can help me ? Thank you
    Edited by: xflamant on Jun 20, 2009 10:51 AM

    For the case of an unknown Error, simply use a default error page.
    The redirection to this page can be accomplished by inserting folowing code into your web.xml:
         <error-page>
            <exception-type>java.lang.Throwable</exception-type>
            <location>/WEB-INF/jsp/error.jsp</location>       
        </error-page>Known exception can be caught via a try-catch block.
    Then simply dispatch to the page you want displayed an add an attribute containing the error message to the response object.
    This attribute can then be used in the target page to diplay the error.

  • Weirdness involving IE, JSP, data scraping and server-side redirecting

    I have a JSP script that validates inputted data. Upon successful input, it will
    1) set a cookie
    2) Do a data scrape to a URL that points to a servlet that performs server-side actions based upon query string data that is formed from your input
    3) Redirect back to itself to ensure cookie availablity and further actions.
    If you run this script on Netscape or Firefox, all is well.
    If you run this script on IE, while [2] works, it seems to be performing [2] twice, because the actions are duplicated (the actions in [2] consist of placing info into flat files so you can see what is going on).
    Does IE have a problem with data scraping + server-side redirection (I am using response.sendRedirect()) that I don't know about?
    Thanx
    Phil

    Agoston_Bejo wrote:
    The problem is that right after having logged in, while you're still in the filter, the beans managed by JSF haven't been put into any scope yet. (The faces servlet hasn't been called yet, so it hasn't had the chance to instantiate the managed beans, put them into the appropriate scopes etc.) So it is request scoped? Just create one yourself. I however don't see any benefit/reason for having the logged in user in the request scope ..

  • JSP in place of server side includes

    I would like to know what is a server side include and why is it that JSP is preferred to server side includes.

    SSI is used to paste external parts into static HTML Pages and only for simple
    things (not for programs, database accesses,..)
    JSP is much better, because you can use a rich toolkit (JDK), can manipulate the HTTP-answer in more flexible manner as SSI, and all advantgaes of JAVA.
    Regards,
    Geri

  • Debug server side action script

    Hi, I want to debug the server side action scripts code, such as set the breakpoint, display the local variables in run time, etc. The trace() is not that efficient. Does anyone suggest a better debug tool for server side action scription? Thanks,
    Regards,
    erwin

    I am using the flash media server. The admin console can view the log/status. What about setting the breakpoint and displaying the local variables? Thanks,

  • PageMethod response returning whole page, unable to debug the server side method

    Hello Guys,
    I am unable to debug my method written on server side when a call is send to it through jquery using page method.
    In response , I get the whole page.
    code:
    ASPX page:
    PageMethods.MyMethod(p1, p2, function(response){
    ASPX.CS
    [System.Web.Services.WebMethod()]
    [System.Web.Script.Services.ScriptMethod()]
    publicstaticstringMyMethod(stringp1,
    stringp2){
    //Updating database
    I did ScriptModule entry in web.config, enabled tracing,have ScriptManager and EnablePageMethods is set to true.
    Still the server side method is not getting called.
    please help.
    Ng_TechFreak

    Hi Ng_TechFreak,
    For ASP.NET questions please post in
    ASP.NET forum where you'll get better help.
    Thanks for your understanding.
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • SSI (Server Side Include)

    Hi folks.
    I have installed J2EE SDK 1.4_03 and I'm interested in using it to develop my personal website locally on my PC. At a later date I wish to upload it to a paid web host.
    The reason I have chosen to run a server rather than just accessing html files directly from my hard-drive is because I would like to utilize SSI (Server Side Include). That's really all. I'm not really interested in doing anything too interactive between the viewer and the server! Not yet anyway.
    I have found various information online but nothing is working. I'm sure there is information that I am missing or something further I need to do to actually initiate it. The information I have found says to un-comment the various section in the file default-web.xml located in this folder c:\Sun\AppServer\domains\domain1\config for this to be activated globally. Below is a copy and pasted chuck of text that I have un-commented within this file..
    Secondly I'm putting my test html pages in the folder C:\Sun\AppServer\domains\domain1\docroot using the include syntax that I have found all over the net such as <!--#ECHO var="DATE_LOCAL" --> & others.
    I can not get the thing to work. I'm guessing there is more to it. For a start... am I putting my html pages in the correct folder for this to work? And Is there something I need to do to activate the ssi servlet? The only reason I'm putting my test pages in this folder is because the page at http://localhost:8080 says that I can overwrite the index file to replace it. Is this the correct place for this?
    Also this class has me thinking... org.apache.catalina.servlets.SsiInvokerServlet Am I suppose to download this separately and put it somewhere? If so where is it? And where do I put it? I am horribly confused and I can not find any further information on this.
    If anyone could help me out on this topic I'd really appreciate it. btw, I'm a beginner in this area... I'd really just like to server html pages with ssi features at this point. Nothing more. The server seems to be working.
    Thanks,
    Tane
    <servlet>
    <servlet-name>ssi</servlet-name>
    <servlet-class>org.apache.catalina.servlets.SsiInvokerServlet</servlet-class>
    <init-param>
    <param-name>buffered</param-name>
    <param-value>1</param-value>
    </init-param>
    <init-param>
    <param-name>debug</param-name>
    <param-value>0</param-value>
    </init-param>
    <init-param>
    <param-name>expires</param-name>
    <param-value>666</param-value>
    </init-param>
    <init-param>
    <param-name>isVirtualWebappRelative</param-name>
    <param-value>0</param-value>
    </init-param>
    <init-param>
    <param-name>ignoreUnsupportedDirective</param-name>
    <param-value>1</param-value>
    </init-param>
    <load-on-startup>4</load-on-startup>
    </servlet>

    You can always use jsp:include or Apache tiles or something similar. I have not used SSI in a while, but you may want to check out those technologies, as they offer more than simply includes.
    - Saish

  • Xml parser on O8i server side

    Hi,
    I am having problems using xml parser 2.0.2.0.0 from JSP. In my
    case a simple SQLJ procedure takes a string representation of an
    xml document. DOMParser.parse() method throws an exception with
    the message body of 'null'. Since this is server side java I am
    unable to debug it. Does anyone experienced this or have a cure.
    Thanks a lot,
    vad...
    null

    If you are attempting to parse a
    document inside 8i which has a
    DTD with a SYSTEM identifier that
    is a URL, this is one case that I
    know can cause a java.lang.SecurityException
    because it is not, by default, allowed
    for any user inside the database to
    open an aribtrary URL or URLConnection.
    In particular, when the Oracle XML Parser
    attempts to read the DTD (even in non-validating
    mode it must read the DTD to see if there
    are default attribute values specified there)
    it will get a security violation.
    If you GRANT JAVASYSPRIV TO YOURUSER it
    works as expected.
    Steve Muench
    Oracle XML Team
    http://technet.oracle.com
    Oracle Technology Network
    null

  • OC4J JSP Debugging not working for all the jsps

    Hi,
    Initially I was not able to debug jsps using Eclipse and OC4J. The jsp debugging started working once I made the below changes:
    1) global-web-application.xml is modified
    Changed the attribute development="true" in orion-web-app
    Added the below init param for the JspServlet
    <init-param>
    <param-name>debug</param-name>
    <param-value>class</param-value>
    </init-param>
    If the jsps are present in a sub directory under the webcontent none of the breakpoints are working. I am still be able to view the jsp pages on the browser.
    Tools: Oracle 10g Application Server Standalone version(10.1.3.5.0), JDK5, Windows XP, Eclipse Indigo
    Project Structure:
    Test (Eclipse Dynamic Web Project)
    -WebContent
    Sample.jsp ( Breakpoints are working)
    -subF (Folder)
    SubSample.jsp (Breakpoints are not working)
    -WEB-INF
    web.xml
    Debugging worked for http://localhost:8888/Test/Sample.jsp
    Debugging not working for http://localhost:8888/Test/subF/SubSample.jsp
    Any help is highly appreciated.
    Regards
    Danny

    This tells there is not enough main memory (not disk space) for the program to run.
    - You can look the dump in ST22, it will have suggestions on increasing the ROLLAREA??, you can forward that to Basis.
    - Most likely you will not have any more memory to assign so the above may not be feasible. Try to rework your query so it works with less data.

  • Server side function not get called after dispatching cairngorm event second time on same page

    Hi All,
    I am facing a urgent issue regarding cairngorm event. Actually my page contain 3 button add,delete,save
    and  clicking of any button I do the respected functionality. For ex:
    I click the add button & on clicking of add button I fire a cairngorm evnt & after getting response from server side that the record is added
    I displayed a message that the record is added & update the data source.
    After addition of the record , with out going to other page if I perform the same functionaly(Like adding another record) on same page the cairngorm
    event not call the server side function  -  after debugging I find out that cairngorm event  reach to the corresponding excutecommand function & called that function  but it is not calling my server side function & I also din't get any error message .
    I dont know why  the server side function not get called?. similarly if I try for delete or update case the same things happend. Only for the first time it works properly but not for the second  time.
    Could any of  you please tell me why the cairngorm event not calling the server side function.
    Thank you for your kind assistance.
    Regards,
    Ujjwal

    Okay, well I think I've worked out the problem.
    In ASP.NET we would typically bind repeating controls such as DataLists and Repeaters manually using <i>Control</i>.DataBind(), because we're usually using a separate class library containing collections for our objects. Seems the SAP Table control doesn't like this approach.
    I changed the code so that the databinding is specified on the control, and call the Page's DataBind() method and it all worked fine.
    One tip: because the collection I used to bind to is in a separate class library, I receieved a <i>BC306523: Reference required to assembly MyAssemblyName...</i> message, even though I had a reference to the assembly in my project and the DLL is being properly deployed. To fix this, you must include the following directive at the top of the component's ASCX file:
    <%@ Assembly Name="AssemblyName" %>

Maybe you are looking for

  • Using DYNP_VALUES_UPDATE with a Maintenance View

    Hi, I am using a maintenance view to insert values into a table. When user creates a new entry, based on the value provided for a field,I need to fill a read-only field. In PAI, when user enters a value for one field, I am using FM 'DYNP_GET_STEPL' t

  • Using Pagination, but Defaulting initial page to display all results

    Ok, I've inherited a JSF application that uses pagination to display results in a table. There's an enhancement request to initially display all the results of a table yet allow end users to "go into pagination mode." I've looked all over the web and

  • Acrobat Review Tracker: Can I export Tracker details?

    Hello, I frequently send out and join a variety of PDF reviews in my day to day activities at work. The Adobe Review Tracker allows me to see the various reviews I'm participating in with details regarding the review names, number of reviewers, and n

  • PLEASE HELP! Itunes will NOT open

    I've seen many posts with people saying their itunes will not open and gives an error message that says it has encountered a problem and has to close. Mine started doing this a couple days ago, and I believe it might have been after I updated either

  • Error cf with deserializeJSON

    Hi everyone, I have a problem while using the function deserializeJSON. I have a request looking like this : Request: {   'config': {   'bgSubtractor': {   'config': {   'learningRate': 1e-06,                                                     'mogH