How can I run a report in a jsp page?

I've made reports using Reports 9i and i want execute these reports from a jsp page.
When i run a report in a jsp page the following error :
Any Advice?
========================
Internal Servlet Error:
javax.servlet.ServletException: oracle/reports/RWException
     at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:508)
     at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
     at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
     at org.apache.tomcat.core.Handler.service(Handler.java:287)
     at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
     at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:806)
     at org.apache.tomcat.core.ContextManager.service(ContextManager.java:752)
     at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:213)
     at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
     at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)
     at java.lang.Thread.run(Thread.java:484)
Root cause:
java.lang.NoClassDefFoundError: oracle/reports/RWException
     at java.lang.Class.getMethods0(Native Method)
     at java.lang.Class.getDeclaredMethods(Class.java:1039)
     at java.beans.Introspector$1.run(Introspector.java:852)
     at java.security.AccessController.doPrivileged(Native Method)
     at java.beans.Introspector.getPublicDeclaredMethods(Introspector.java:850)
     at java.beans.Introspector.getTargetEventInfo(Introspector.java:556)
     at java.beans.Introspector.getBeanInfo(Introspector.java:294)
     at java.beans.Introspector.(Introspector.java:271)
     at java.beans.Introspector.getBeanInfo(Introspector.java:81)
     at org.apache.jasper.compiler.TagCache.setTagHandlerClass(TagCache.java:104)
     at org.apache.jasper.compiler.TagBeginGenerator.init(TagBeginGenerator.java:136)
     at org.apache.jasper.compiler.JspParseEventListener$GeneratorWrapper.init(JspParseEventListener.java:759)
     at org.apache.jasper.compiler.JspParseEventListener.addGenerator(JspParseEventListener.java:138)
     at org.apache.jasper.compiler.JspParseEventListener.handleTagBegin(JspParseEventListener.java:909)
     at org.apache.jasper.compiler.DelegatingListener.handleTagBegin(DelegatingListener.java:194)
     at org.apache.jasper.compiler.Parser$Tag.accept(Parser.java:825)
     at org.apache.jasper.compiler.Parser.parse(Parser.java:1077)
     at org.apache.jasper.compiler.Parser.parse(Parser.java:1042)
     at org.apache.jasper.compiler.Parser.parse(Parser.java:1038)
     at org.apache.jasper.compiler.Compiler.compile(Compiler.java:209)
     at org.apache.jasper.servlet.JspServlet.doLoadJSP(JspServlet.java:612)
     at org.apache.jasper.servlet.JasperLoader12.loadJSP(JasperLoader12.java:146)
     at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:542)
     at org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspServlet.java:258)
     at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:268)
     at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:429)
     at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:500)
     at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
     at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
     at org.apache.tomcat.core.Handler.service(Handler.java:287)
     at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
     at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:806)

Hi Raul
A better option would be to switch to Reports 9i because it natively supports Reports JSP tags. Your JSP then becomes seamless. And much more...
With 6i, you can look at using Reports Servlet.
Regards
Sripathy

Similar Messages

  • How can I run the report for different input values at the same time?

    Reports version: Report Builder 6.0.8.13.1
    Oracle version: Oracle8i Enterprise Edition Release 8.1.7.0.0
    I want to run the same report for different input parameter values and spool each o/p to different file and ftp to a server. For this, as a first step, I am spooling different input values in to a file, reading those values through a loop and calling the report for that input values. Each report run/execution is taking 15 minutes. Total report execution is taking approximately 4 hours (assuming 16 different input values) to complete. So I have to wait 4 hours to see ALL outputs.
    I would like to run the report parallel for ALL the input values and I should be able to see the ALL outputs with in 15 or 16 minutes.
    In my shell script, I added & symbol at the end of the report call to start/run the job in the background. Due to this the control passed to the next step after the report call. At this place I have an ftp command to send the output file to a different server and it is giving error some thing like “o/p file is not available/created yet". This is due to the fact that report writer is NOT yet completely started/initiated or it is NOT completed the spooling.
    How can I run the report at the same time for all the input values and save the time?
    Thanks in advance.
    Kishore.

    Increase the number of server engines running right now it seems there is only one engine running ,increase it to 4 or 6
    and then atleast 4 or 6 reports will run simultaneously.
    For FTPing the output add to your sript to check whether it is locked and if not then only try to ftp .
    Also for more better functionality read the document (chapter 15 ) for 10g reports for its new fuinctionality.
    http://download.oracle.com/docs/cd/B14099_17/bi.1012/b14048/toc.htm
    Thanks
    Subodh

  • How can i run unix script from my apex page

    how can i run unix script from my apex page and take the output of unix script as a hidden variable and display it on the report region of that page

    I had a requirement to run a Fortran program against some data that woudl be extracted from the database after the user set up their filtering criteria and made some additional input. SInce the program was to complex to conver to PL/SQL, we decided to try and invoke it from Apex. This is how I did it.
    1. I followed the steps in Tim Archer's excellent article "Oracle External Procedure to Run Host Commands" (http://www.timarcher.com/?q=node/9). If the link does nto work, google the article's title.
    Using this steps I created a function which accepts any OS command, including calling my own shell scripts, and runs them. I called my PL/SQL function "shell" instead of "USF_RUN_HOST_CMD " as Tim did in his example (step 9).
    2. In Apex,
    a. I created a button to run my shell command. (I named it P2_RUN_SHELL)
    b. I created a PL/SQL process whose source looks as follows:
    shell('/home/ackness/scripts/cr_xcf_file.sh > /tmp/cr_scfp_file.log');
    and which was conditioned on the the button P2_RUN_SHELL.
    It works like a charm.
    Note: since you can run your own scripts using this method, you can encapsulate a series of commands in a UNIX shell script and invoke that script from Apex. This allows you to be able to test or run you commands from the command line as well as Apex and makes it easier to develop/debug/enhance the scripts in the future.
    Ackness

  • How can i run a reports from forms

    Oracle forms 9i
    Hai All
    I am using oracle forms 9i.
    From the forms i need to generate a reports how can i generate a reports from there
    Regards
    Srikkanth.M

    there are hundreds of examples in this forum. Do a search

  • How can I stop the execution on a JSP page and start it again

    Hi
    I am making a program that simulates how to manage transactions when accessing a database by using locks. I have run into a problem and I hope someone has the time to help me.
    When a user does an update the transaction commits and releases its locks when the program executes
    <%stmt.executeUpdate("commit!"); %>
    I need to put a break in to stop the program executing this statement, to illustrate the lock is set correctly.
    I have tried to put in an alert box but this does not prevent the rest of the java code being executed.
    I have tried to use prompt boxes, JavaScript functions, but these functions cannot have any java code in them.
    I have tried using the java.swing JOptionPane boxes but this didn?t work either
    I have tried to get input from the user but I don?t know how to retrieve this data on the same page. (As far as I know you have to use submit and even refresh the page or retrieve it on the next page).
    Does anyone know how I can stop the execution on a JSP page and start it again (on same page)
    Mette

    I already have another client (Tomcat jsp application) running and it throws a SQLException correctly when I don�t put in a commit=true statement and don't close the database connection.
    But the problem is how to get the code above to stop to illustrate I have set this lock.
    I have tried to use the JOptionPane but because my program is running in a web browser I cannot use the JOptionPane dialog box.
    I have tired using an alert box but it executes the commit statement before the alert box is dispayed. So this does not work
    While (i < 2)
    if( i==1)
    %>alert(�The transactions commits when you press Ok�); <% //what it to stop execution here
    else
    stmt.executeUpdate(�commit�);
    I am not using threads so I cannot use the sleep function.
    I am using mysql and have already configured it to detect deadlocks and how long to wait for locks.
    Thanks for your help
    Mette

  • How to call cystal report8 report file from jsp page

    hi guys
    present i am using cystal report8 already i am having ReportViewer.jar and ReportviewerBean.jar files
    using that please send me sample code how to call that report from jsp page..
    and how to pass the parameters from jsp page to crystalreport8 report file.
    it was very urgent task to me..so please send sample code on above topic..
    or send me crystalreport8 API
    thanks
    regards

    Hi,
    I also want to work on crystal report but i dont have the ReportViewerBean.jar and ReportViewer.jar. So, please tell from where will i get those jar files.
    Thanks in advanced.

  • How can I grab NT username from a jsp page?

    I have a requirement to grab the user's NT username using a jsp page.
    I thought about using JAAS NT module samples, but I would need an application running on the client to do this (not a webpage). Then I thought about using an applet, but then read that an applet cannot read the username (not even a signed applet).
    I know that Request.ServerVariables() in ASP and IIS, returns the NT domain and username. I'm using ATG Dynamo and iPlanet. I'm wondering if this can only be done through webserver variables. Would iPlanet have this?
    Thanks for your assistance.
    -AJD

    I can think of no way to accomplish this goal through the JSP/Servlet API. That type of information is not broadcasted via HTTP, so any server-based resource that captures it is probably interfacing with some client application. I know nothing about ASP, but suspect that it is only able to capture the user names by interfacing with some application that is hidden to the client- that is, I doubt it is using HTTP. Some thing will probably have to be installed on the client machine to capture this information.... ...it would seem to me that the only legitimate need for that information would be for authenticating intranet users. Can't each user just be assigned an application ID that is equivelent to their NT ID?

  • How can i display database data in my jsp page?

    actually i m doing a small appliaction of quiz test.
    where i m keeping my question and answers in the database.
    now i want to pull questions from the database and display in the jsp or html page.for each question i m having 4 options 4 them.
    like this user has to answer the question and display the resuklt in the end.
    so how can i do this?
    can i get any example or source code for this from any sites?

    I never tried this... but doesn't the normal html <applet> tag work?

  • How can I display the date on a jsp page??

    Is there anyway to display the current date when someone views a jsp page??? Can I get it from the server or something like that?
    Thx
    Rich

    is there any type of formatting that goes witth
    that.....Most definitely -- check out the java.text.DateFormat object and its cohort java.text.SimpleDateFormat.
    For example, if you wanted to display the current date in MM/DD/YYYY format, you could do the following:
    <%-- This could go somewhere near the top of the JSP %>
    <%
    SimpleDateFormat f = new SimpleDateFormat("MM/dd/yyy");
    %>
    <% And later on, you could have... %>
    <%= f.format(new Date()); %>Note that I've omitted the proper <%import%> directives.
    -Navin

  • How can i execute some code in a jsp page on the same page ? plz read.

    I have made a single JSP Page where in i want to delete users, create users, update table data.
    I have all the UI on the first page. Now i want to write my all JDBC coding on just this single page. I don't want to create 3 separate pages. Can it be done ?

    This is my page !!
    I have 3 separate pages insert.jsp, delete.jsp, update.jsp to implement the jdbc coding. I know that i can get it done by calling a single jsp page using URL rewriting. But i want to code for events on this very page only.
    <%@page language="java"%>
    <%@page import="java.sql.*"%>
    <HTML>
         <BODY>
              <form method=post action="insert.jsp">
                   Username:<input type=text name=username><br>
                   Password:<input type=password name=password><br>
                   <input type=submit>               
              </form>
              <hr>
              <form method=post action="delete.jsp">
                   Username:<input type=text name=username><br>
                   <input type=submit>               
              </form>
              <hr>
              <form method=post action="update.jsp">
                   Username:<input type=text name=username><br>
                   Password:<input type=password name=password><br>
                   <input type=submit>               
              </form>          
         </BODY>
    </HTML>

  • How can I get the "pageContext" object in jsp page?

    Hi everyone:
    I want to get struts's DataSource object in jsp page.So I should get the PageContext object in jsp page.My code is:
    ///////////////////datatest.jsp///////////////////////////////////
         DataSource ds=(DataSource)pageContext.getAttribute(Action.DATA_SOURCE_KEY);
         conn=ds.getConnection();
              stm=conn.createStatement();
              rs=stm.executeQuery(insertsql);
    Is right?But I get the "NullPointerException" error in Tomcat.The connection pool in struts-config.xml is:
    <data-sources>
    <data-source key="mydatasource">
    <set-property property="autoCommit"
    value="false"/>
    <set-property property="description"
    value="MyWebSite Data Source Configuration"/>
    <set-property property="driverClass"
    value="org.gjt.mm.mysql.Driver"/>
    <set-property property="maxCount"
    value="4"/>
    <set-property property="minCount"
    value="2"/>
    <set-property property="password"
    value="qijiashe"/>
    <set-property property="url"
    value="jdbc:mysql://localhost:3306/myweb"/>
    <set-property property="user"
    value="lyo"/>
    </data-source>
    </data-sources>
    I can query the database in servlet.
    I think the method that I get the context is not right.Had someone get the pagecontext in jsp page?help :(

    Sorry I forgot that I had change the code:
    DataSource ds=(DataSource)pageContext.getAttribute(Action.DATA_SOURCE_KEY);
         conn=ds.getConnection();
              stm=conn.createStatement();
              rs=stm.executeQuery(insertsql);
    to the code:
    DataSource ds=(DataSource)pageContext.getAttribute("mydatasource");
         conn=ds.getConnection();
              stm=conn.createStatement();
              rs=stm.executeQuery(insertsql);
    mydatasource is the struts datasource in "struts-config.xml". I couldn't work

  • How can I use java swing class in JSP page design

    I am a new developer in Java server pages. I want to use layout managers available in java swing classes to design the page. Can any body suggest me a way to do this.Is it possible if I do it with servelets.

    So, you want to use layout managers within your JSPs?
    The immediate answer is that "it isn't a good idea". The more considered answer is "tell us what you're up to".
    Are you coding all presentation within a traditional JSP? That is, HTML, customer or library tags and/java scriptlets?
    Or are you building your HTML within your servlets and sending that back to the browser?
    If the first, then you are probably better off either using explicit HTML tables (or the equivalent custom tags) or finding a library that you can use.
    If the second, you can write classes similar to the Swing layout managers that end up being a fancy way of putting elements into an HTML table. We have exactly that in my current environment. I wouldn't recommend rolling your own and I'd tend to leave all that presentation stuff to the JSP.
    In any case, you can't really use the Swing layout managers as they are for an entirely different pradigm.

  • How can i load a applet in a jsp page

    hi ,
    i am chiranjit , i am working in a jsp project . i want to load a applet in a jsp page.previously i had tried this one through <jsp:plugin> but when it goes in cross platform this page unable to load the applet from the serverside.
    if have any solution then pls send the solution in forum.
    thank you.
    chiranjit

    I never tried this... but doesn't the normal html <applet> tag work?

  • How can i call java class file in jsp page

    Hai,
    i wants to call .class file in jsp page.
    my class file is in C:\jsdk\bin.
    Thanks

    I'm not entirely sure what you mean by "calling a class file", but I'm going to assume that you want to do something like the following in your page:
    <%
    MyClass myClass = new MyClass();
    myClass.someMethod();
    %>etc
    If that's the case, then all you have to do is make sure that the class is in the servlet engine's classpath. You'll probably also need to include an appropriate import statement at the top of the page.
    Hope that helps.

  • How do I call a 10g report from a jsp page securly?

    How can I call a report from a jsp page securly? We are migrating from 10g forms to J2EE, and we want to keep using our reports. In forms we were able to do this using a cookie. How can I pass a users credentials to reports without the user having to connect to the database? Single Sign-on isn't an option either.
    Thanks,
    Jim

    Hi Jim,
    If you want to pass the user credentials to the report dynamically, then SSO (Single Sign-On) is the only option I can think of.
    If the user credentials can be hard-coded, then the following 2 solutions are possible:
    1. Use cgicmd.dat file, and write the user credentials in the file.
    2. In your report JSP itself, you could write the following:
    <rw:report id="report" parameters="userid=scott/tiger@mydb">
    Navneet.

Maybe you are looking for

  • V.26 Report is not working in Spanish

    Hi Guys, When I logged into Spanish and I tried to Run report V.26 I am not getting any value but when I ran the V.26 report in English I get the many values. In Same client I tried. Can anybody tells the reson behind the issue?

  • My iphone stopped working for no apparent reason??

    Help!!!! My Iphone has stopped working for no apparent reason... Anyone else experiencing that kind of problem?!? I have the new I phone 4 S havent even had it a year.

  • IWeb Main Page Not Showing

    I've researched to death and tried everything but can't fix this. Recently did a clean install on my iMac and since then iWeb won't work. I have : - Reinstalled from original disc then updated to latest version 3.0.4 - Deleted the com.apple.iWeb.plis

  • Problem itunes after upgrade ios 6

    Hello everyone: After to upgrade to IOS 6 I'm having problems to connect with iTunes Store from my iPad. The message is: Impossible to connect to iTunes Store. For this reason it don't be able to upgrade or buy applications directly in my iPad. I had

  • Hi, Can I use my CC Team account single app subscription to get indesign cs5?

    Hi, Can I use my CC Team account single app subscription to get indesign cs5? I puchased a single app subscription but realized I need an older version, can I deactivate my indesign 2015 and use my monthly subscription to install CS5?