Integration of jasper with jdev adf

Hello
my version of jdev is 11.1.2.3
and I use Integratedweblogic

I found this link http://sameh-nassar.blogspot.com/2009/10/using-jasper-reports-with-jdeveloper.html#comment-form


I try to incorporate jasper IReport 3.0 with jdev, I add these jar files in my classpath:

1 Commons-digester - 1.7.jar
iText-2 - 1.3.1.jar
3 - jasperreports - 3.0.0.jar
4 - poi - 3.0.1 - final - 20070705.jar
5 jasper-compiler-jdt - 5.5.15.jar


Add in the web.xml file
< resource-ref >
< res-ref-name > java: comp/env/jdbc/gestDS < / res-ref-name >
javax.sql.DataSource < res-type > < / res-type >
Container < res-auth > < / res-auth >
< / resource-ref >

and in my grain of support I add these imports and the method

import java.io.File;
import java.io.FileInputStream;
to import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.InputStream;

import java.sql.Connection;
import java.sql.SQLException;

import java.util.HashMap;
import java.util.Map;

Import javax.naming.InitialContext;
Import javax.naming.NamingException;

import javax.sql.DataSource;

Import net.sf.jasperreports.engine.JRException;
Import net.sf.jasperreports.engine.JasperCompileManager;
Import net.sf.jasperreports.engine.JasperFillManager;
Import net.sf.jasperreports.engine.JasperPrint;
Import net.sf.jasperreports.engine.JasperReport;
Import net.sf.jasperreports.engine.design.JasperDesign;
Import net.sf.jasperreports.engine.xml.JRXmlLoader;
Import net.sf.jasperreports.view.JasperViewer;


Public Sub printReport() throws FileNotFoundException, JRException, NamingException, SQLException, IOException {}
InputStream input = new FileInputStream (new File("c:/yourJasperReport.xml"));)
Design of JasperDesign = JRXmlLoader.load (input);
JasperReport report is JasperCompileManager.compileReport (design);.
Map parameters = new HashMap();
Parameters.put ("jasperParamenterName", "ParameterValue"); Used if you want to pass a parameter to a report of jasper
InitialContext initialContext = new world;
DataSource ds = (DataSource)initialContext.lookup("java:comp/env/jdbc/gestDS"); get your configuration of the application module
Connection Conn = ds.getConnection ();
JasperPrint print = JasperFillManager.fillReport (report, parameters, conn);

JasperViewer.viewReport (impression, true);
}

I add a method when the button is clicked but I've made no reference to printReport()
public String do_print() {}
Add the code in the event here...
Returns a null value.
}

I also add the jar file in my C:\Oracle\MiddleJdev11.1.2.3\jdeveloper\jdev\lib


When I run my application an error pops up:

java.lang.NoClassDefFoundError: net/sf/jasperreports/engine/JRException
at java.lang.Class.getDeclaredMethods0 (Native Method)
at java.lang.Class.privateGetDeclaredMethods(Class.java:2427)
at java.lang.Class.getDeclaredMethods(Class.java:1791)
at oracle.adfinternal.controller.beans.AnnotationUtils.findAnnotatedMethods(AnnotationUtils.java:194)
....

I found in numerous other forums using eclipse or netbeans I have to add these jar files in WEB-INF/lib


Please can you help me because we expect use jasper in our reports


Thank you

Published by: fakhri_tn on November 21, 2012 01:09

you need to check

Dario

Tags: Java

Similar Questions

  • Skins CSS / attractive application / with JDev/ADF/JSF?

    Hello

    I have no experience with CSS or make components look rich and attractive.

    1 is it possible with ease with JDev or any feature ADF/JSF?

    2. If I double click on an item in the window Structure of JDev and go to the tab advanced, I have the possibility of manufacturing components colored/bold/padding etc.. But I have several jspx with several components in them. I can do this in one place where I can criteria (Word to say for a button - "BOLD", color etc) and it will apply to all (buttons) in my application.

    As always, your answers are greatly appreciated.

    Thank you

    Create an xml file called trinidad - skins.xml under the WEB - INF view-controller and place this code.

    
    
    
    lspskin.desktop
    myadfskin
    blafplus-rich.desktop
    /mystyle.css
    
     
    

    Trinidad-config.xml file, add the 3rd threshold.

    
    
    myadfskin
     
    

    create a css file called 'myStyle. CSS"and the use of the styles mentioned on the site of count.

  • Integration of Jasper ADF 12 c reports

    Hello

    I use ADF 12 c, trying to incorporate reports Jasper with ADF page.

    I put Jasper reports JRXML and .jasper files compiled inside ViewController/reports.

    Now, I want to open Jasper report on click of a button.

    I used fileDownloadActionListener and the contentType value application/pdf

    I want to take the reports of the classpath and then print it as a PDF on click of a button.

    How can I do this?

    OK, I solved the error.

    I was passing the name of the subreport to bean also where she was already treated in the main report JRXML:

    I just removed the name of the subreport to bean and it works very well.

    Thank you all!

  • Integration of apex with Jasper

    Hello

    I now use Oracle 11 g with express request and I decided to switch to Oracle 12 c.

    I installed my new environment on a new server and I need to adjust the connection between the database and reports of Jasper in tomcat to be connected to the new database instead of the previous application.

    anyone has an idea where should change the ip address of the apex in tomcat, so I can print from the new application without any problem.

    It is a new problem. I suggest you close this thread open a new thread for your new problem

    I wonder if HIS TEMP. XLIB_LOGS is your table or one of the metadata tables created by opal consulting to support the integration of Jasper using their technique.

    in both cases I don't think that it has nothing to do with the original question that you started this thread.

  • SubVersion with JDev 11.1.2.3

    Hello:

    SubVersion works with JDev 11.1.2.3?

    When I check the updates of SubVersion is not listed. What is the latest version of JDev which will work with SubVersion?
    And where can I download and install the plugin for JDev SubVersion?

    Thanks for the help.

    Please ignore this message... Subversion is already integrated with JDev is this version.

    Thank you

    Published by: 966952 on October 22, 2012 11:28

    JDev 11.1.2.3.0 use SVNKit 1.3.5 Client.
    So the SVN connections should work. Check under 'Tools'-> 'Préférences' node 'Versioning '. There you can set some properties. To connect to an existing SVN server, you must create a connection to SVN under 'View'-> 'Team'-> "Versioning Navigator".

    Timo

  • Need help to unlock the user account HR in the example (rich Web Applications with Oracle ADF development)

    I am very new to Java development and have tried to launch the sample application (Development of Web Applications with Oracle ADF rich) in the start-up, the author of this app has advised developers to unlock the HR user account.

    What I did to connect to Oracle as user = system/password = system and running this SQL command 'ALTER USER HR IDENTIFIED BY NewPwd ACCOUNT UNLOCK"in Sqlplus and with a return code 2.

    Don't code 2: success or failure?

    However, the HR user is always unlocked after issuing this command, and can someone please tell me what I'm doing wrong?

    Thank you.

    Timo,

    Thanks for confirming. The essential difference is that the command must be run as

    SYS AS SYSDBA

    instead of such as SYSTEM

  • Integration of SAP with ERPI overview

    Hello

    I've done the integration of hyperion with EBS. Here are the basic steps I've done.

    1. install ERPI.

    2 - has given the Apps schema and initialized.

    3 - Select the general ledgers.

    4. define mappings according to EBS.

    5 create the rule.

    6 import data from BSE-> hyperion.

    My questions are,

    1 - How to achieve this in SAP?

    2 - steps are almost the same? or different?

    3. how the participation of functional person is necessary?

    4. how knowledge of SAP is necessary?

    5. how many types of cards is there for the integration of the EPRI-SAP?

    6 it is recommended by oracle?

    7 - What other ways I have move given sap in hyperion? can I use informatica?

    Concerning

    What is ERPI or FDMEE?

    (1) integration SAP is documented in the FDMEE Administrator's guide and the Guide of the adapter you can download from the site of bristlecone pines

    (2) integration SAP is completely different. It has different configuration of the side steps ODI. There are also some spots on the side AS creating a user for ODI (JCo connection)

    (3) the FDMEE-SAP adapter configuration is usually performed by a technician because it requires some knowledge of ODI. A functional person would act as soon as the adapter is configured so that it can configure FDMEE with respect to any other source

    (4) generally the core SAP team will configure SAP as required for integration and you don't need really SAP kwnoledge

    5) there are 6 predefined maps (documented in the Administrator's guide). That's FDMEE, to ERPI you will need to go to the latest patch for the 6 I guess

    (6) oracle cannot recommend an adapter because it depends on what you are going to integrate. If you want NEW GL balances, then use the NEWGL adapter.

    (7) Informatica does not hyperion support > = 11.1.2.3 I guess that if you would be able to use it, but you'll have to customize adapter for Hyperion, if you have the version 11.1.2.3 +. This can be done using APIs (for example: HFM API)

    If you are in the previous version you can use but I recommend not to use because it is not supported.

    Another option would be to use autonomous ODI that uses the same approach as adapter FDMEE-SAP from the technical point of view. In deed the SAP-FDMEE adapter uses the KMs ODI - SAP

  • What is the best way to run the report of jasper in the ADF Applications?

    Mr President.

    What is the best way to run the report of jasper in the ADF Applications?

    Concerning

    Tender Hello,

    Check out these links

    Sameh Nassar: Using Jasper report in Application of ADF (detailed)

    https://www.YouTube.com/watch?v=ezX0gdLIhs0

  • ListView component with jDev 12.1.3

    Hi all, I am using the ListView component with jDev 12.1.3. Display data works fine, but when I try to use the operation of setCurrentRowWithKeyValue, I get an error of Houston-35011. Any ideas?

    IN my scenario, I want to show a set of data in a list view. Then I would show the details of the selected record in a second page. I used the same approach to the Table component, but it does not work. Can you please help?

    Thanks in advance,

    Marco

    As I said in the previous answer, place just selection = "single" and selectionListener = "#{bindings." Question1.treeModel.makeCurrent}"on the af:listView component (this will automatically selected in your VO line).

    And af: link button navigate to this page to another.

    If there is still a problem, you need to provide more details about it (because it's probably not related to the selection of lines in the af:listView element).

    Dario

  • Is it possible to use Alta Skin with Jdev 11.1.1.7?

    Hi experts,

    I would like to know if the new skin of Alta is available with Jdev 11.1.1.7

    Best regards

    Jose.

    It is not available in the current 11.1.1.7.0 release. We could get lucky and see it in a later version of the patch.

    Timo

  • Animate cc, the police is both by default when you change the size of the text field. Have integrated a font with the name prjFnt... but once I have change the rating in the design view of the prjFnt goes to the new roman times... what a mistake... don't

    Animate cc, the police is both by default when you change the size of the text field. Have integrated a font with the name prjFnt... but once I have change the rating in the design view of the prjFnt goes to the new roman times... what a mistake... don't have we not no matter what patch

    This problem has been fixed in the latest update to animate CC.

    You can upgrade to animate CC 15.1.0.1.13 creative use of cloud App or via the Help menu > updates.

  • WED ADI error "BY PER_289872_ADI_INTGR_EXISTS: an integrator already exists with this object name.

    Hello

    I try to create a new Integrator, but get the following error when importing to create the Integrator:

    "BY PER_289872_ADI_INTGR_EXISTS: an integrator already exists with this object name.

    I created these several times and it's the first Integrator that I create for this download balance adjustments.

    Any suggestions on what I am doing wrong?

    Thank you.

    Do you get the error even if you use a different name?

    Thank you

    Hussein

  • Development of rich Web Applications with Oracle ADF tutorial

    Oracle JDeveloper 12 c (12.1.2) tutorials - developing rich Web Applications with Oracle ADF

    3.8 step that a change in the Salary field should translate into a auto update, partial trigger, in terms of annual salary after tabbing off the Salary field, but it doesn't. If I do a update for the Salary field and click on the next button, click the back button, I can see the field update of annual salary.

    I use the version of the JDeveloper IDE with the logical Web server and Apache Derby network server - 10.8.2.2.

    Oracle IDE12.1.2.0.40.66.68

    I made all the changes or the steps in the tutorial.

    No idea why the automatic update does not work on my system?

    Thanks in advance for your suggestions!

    Hello

    two suggestions

    1 set the property clientComponent on the field of output annual salary to 'true '. Because the field is an element of output text sometimes what makes a client component helps the update.

    2 obtain the completed application to http://docs.oracle.com/cd/E37547_01/tutorials/tut_rich_app/labs/richclient.zip and check if she works there. If this works it then the problem is in your implementation. But then you have a working example to compare with.

    Frank

  • Where should questions about the JDEV/ADF positions?

    Hello

    Where should questions about the JDEV/ADF positions?

    JDeveloper and ADF or

    JDeveloper and ADF?

    I found there may be some different advantageous:

    https://forums.Oracle.com/message/11109674?TSTART=0#11109674

    Thank you.

    Well, the other forum you mentioned is the Korean equivalent of the English forum.

    You have already discovered, it is not controlled to many users. I didn't know that it exists at all.

    In general it is to you where you ask your questions. All for one here are driven by the community and some employees of the Oracle, you cannot wait has answered all your questions. If you really need to answer you go through paid support.

    A tip for getting help is to provide a well-defined use cases, information relating to your environment and documented code showing what you have already tried.

    Timo

  • Integration of Subversion with JDeveloper 11.1.1.6.0

    Hello

    I'm looking for some plugin for Subversion (SVN) in JDeveloper 11.1.1.6.0.When, I will check the updates in JDeveloper, I can find an extension for monitoring of Subversion, but not a Kit of SVN.
    SVN extension is the version of JDeveloper 10 g. Please help me understand if on installing JDeveloper 11 will cause a problem?
    Or is there another way I can do it.

    Thanks in advance

    It is integrated.

    Google for ADF development Essentials and read the first three articles if you want only some step-by-steps (old)

Maybe you are looking for

  • Sierra Cannon printer drivers

    Hey guys,. Just have reported problems with the printer Canon Pixma line. Since the upgrade to Sierra, questions print PNG files with transparent background. They are generally strained and seem to have a weird mask distributed on them. Sometimes, th

  • Satellite M60-162: problem gambling (game)

    HelloI bought a Satellite M60-162 to use for work and a bit of entertainment (including games).It happens that all types of game, I installed (Medal of honor, C & C Generals, Nba live 2005, MS Flight simulator 2004) breaks down when it is run (just c

  • Wireless connection to NI9191

    He can't make connection Wi - Fi of NI 9191. Wireless on wlan0 mode is not valid. Details: [Arg_TargetInvocationException] see attachments.

  • Can I rely on the use of multiple Wait (ms) in parallel to start things at intervals delayed?

    Hello I'm doing four things in a loop timed hourly fixed after the first.  I did it with a timeout for each created an expectation (ms) I have attached a test VI, which I think is the equivalent of what I have.  This test works VI the way I thought i

  • Detailed help works not

    When I the context help active (pop-up showing) and I try to click on the 'Detailed help' link, nothing happens. That is, I don't get any help from retail