Integrate jsf, jboss and jasper reports

Hi there!
I've a problem with integration jboss with jasper reports and jsf. Which jasper classes do I have to place on a server and what jboss files do I need to configure? How can I run jasper report from the jsf page? Any information on this subject will be very usefull.
Thanx for help in advance.
Adam

Unless I have totally misunderstood your question, I think you have posted this question in the wrong forum. This forum is dedicated to developer questions about JSR 208 (Java Business Integration), a specification from the JCP that describes a service-oriented integration architecture. In this realm, integration means getting separate applications and messaging systems to interoperate, when they were never designed to do so. Your question sounds like you want to install particular technologies into jboss; this is a very different use of the term "integration".

Similar Messages

  • Opening new web page using servlet and jasper report. ?

    Hello,
    I am developing one small web application and implementing jasper report in it. I am using jasper report with servlet. Which is generating one pdf file and displaying in same browser. But I want to open this report in new browser. Which is only display that report window. I am trying it. response.setContentType("application/pdf");
                   /response.addHeader("Content-Disposition", "attachment; filename=" // this is basically for downloading pdf file.
                             + request.getParameter("D:/rnext/30-oct-2009/sms/web/jsp/Reports/allstudentsofwholecollege.jasper") + "");
          response.setContentType("application/pdf");
          response.setContentLength(bytes.length);
          servletOutputStream.write(bytes, 0, bytes.length);
          servletOutputStream.flush();
          servletOutputStream.close();In this code it is showing me attachement file of report.
    When I changed the response.addHeader(Content-Disposition", "inline; filename=" // this is basically for downloading pdf file.)
    It is opening in same window. Please help if you can. It is urgent. please help.
    Thanks in advance.
    Manveer

    Use target attribute with link you have placed on you JSP page. [Look Here|http://www.w3schools.com/tags/att_a_target.asp]
    Also remove Content-Disposition header if you want to open file in browser.
    In latest browsers it might be possible you will see new tab opened rather then whole new browser window, This depends on browser settings.

  • Adobe Air and Jasper Report

    I am not sure whether this question belong in this forum..
    But If anyone has used jasperserver with Adobe air please help me..
    I have my application build in Adobe Air and one of the
    feature is to show the reports. I am able to see the report
    properly on adobe air when I pass the url through Iframe. But when
    I pass the URL with Output=pdf or when I click the pdf icon from
    jasper report, opens a new adobe air window with a black screen and
    this happens for all the different exports ie excel.... When I use
    the same application by triggering in IE, Firefox or Google chrome,
    it opens a new window or tab and shows me the pdf version.
    So I need help either to get me the pdf in that new adobe air
    window or open in the users deafult browser that pdf.
    PLEASE HELP ... Please contact me for the screen shots at
    [email protected] as I cannot attach the screen shots.. I REALLY
    NEED HELP SOON

    Does anyone has an application which has a option to open an
    excel file... if yes please contact me at [email protected]

  • Apex and Jasper Report Integration

    Hi all,
    If someone was interested to try another way for pdf generation from an apex application can try our Report Chunker based on Jasper Report and now avaiable to download on :
    [http://sourceforge.net/projects/reportchunker/]
    The latest release includes an APEX DEMO APPLICATION.
    Any feedback will be welcome.
    Edited by: NeOGeO on 23-set-2008 1.28

    A few points here.
    Documentation:
    You need to state what permissions are required.
    eg create table, create sequence, create trigger, read/write directory.
    You should also mention the authentication method you use.
    Fortunately I could figure that out myself.
    Now bearing in mind I am your typical target audience, I have no knowledge of Jasper reports, and very little knowledge of java and xml. So I'm now stuck as I don't know what to use for the xml layout or how to write my report.
    At least provide an example xml layout, a example report and a link to where the reports cab be obtained.
    If we need to have anything on the system before we start (eg jasper reports) then this should also be stated (including minimum required version)
    Thats it. Unfortunately I can't go any further until I know more.

  • Apex and Jasper Reports error

    Hi,
    I try to print an Report using Jasper Report, whenever i try this, i am getting this error:
    ORA-29273: HTTP request failed ORA-06512: at "SYS.UTL_HTTP", line 1029 ORA-24247: network access denied by access control list (ACL).
    I have enabled Network Services but without Success
    any Idee?
    many thanks in advance
    MDK.

    Hi sivadas,
    thanks for reply, i have done it using the code below, but still the same error
    begin
    begin
    dbms_network_acl_admin.drop_acl(
    acl => '/sys/acls/utl_http.xml'
    exception
    when others then null;
    end;
    dbms_network_acl_admin.create_acl(
    acl => '/sys/acls/utl_http.xml',
    description => 'TEST',
    principal => 'FLOWS_030000',
    is_grant => true,
    privilege => 'connect'
    DBMS_NETWORK_ACL_ADMIN.ADD_PRIVILEGE(
    acl => '/sys/acls/utl_http.xml',
    principal => 'FLOWS_030000',
    is_grant => true,
    privilege => 'resolve'
    dbms_network_acl_admin.assign_acl(
    acl => '/sys/acls/utl_http.xml',
    host => 'localhost',
    lower_port => 8080,
    upper_port => 8080
    end;
    any Idee?
    MDK.

  • Jasper report with Struts2 and hibernate.

    Hey all!
    I'm new to Struts2, Hibernate and jasper report. I want to make a report using those tools. Can anybody pls help me by providing a step by step process for it?
    I'm using eclipse Ganymede IDE. And want to view report on page with two search criteria as start date to end date and an option choosing.
    Can any body pls response me for this?

    Yes you can, you'll need to create a new library in JDeveloper with the Jasper reports JARs.
    See: Re: JasperReport with Jdeveloper

  • Jasper reports and bpel?

    Is it possible (somehow) to generate pdf document using jasper reports (or any other framework for that matter) from bpel process?
    Can anybody guide me to any tutorial or something that adresses this kind of "problem"?
    I'm quite a newbie in Oracle BPEL and SOA. Maybe there is already some mechanism for doing this?
    Thanks in advance :)

    I want to generate pdf file based on xml based result from bpel process and save that file to a file system.
    Creating web service for that purpose is, in my opinion, quite elegant solution. I'll go with that for now since I know web service and jasper reports technologies.

  • Jasper report problem in stretch fields

    Hi All
    i am making report in ireport and jasper report, by design and code.
    The height of the fields is not limited , that mean i can put in it a large sentence or a small one. So i use the property "Stretch with overflow" (or textField.setStretchWithOverflow(true); in code )
    the problem that i face is : the report i got is work fine but some tall sentences are splited in more than a page and the problem here that i don't know why it splited when there is a plenty of blank space in the page, when the other sentences is using this blank.
    in the end i am hope that i explain the problem well... so help me please in this issue.
    BEST REGARDS

    So i tried the same in Java.As a stand alone java code? or as a code in your webapp? Please make sure the required jar files are in your web-inf\lib

  • How to generate jasper report and how to integrate jasper report in ADF11g

    Hi All,
    I want to generate jasper report in ADF11g Jdeveloper.and how to integrate jasper report in adf11g.give any link and simple example of jasper report with adf11g.then please help me and send example.
    Thanks&Regards
    Anup

    Ha, that's incredibly useful :-) Of course every response can be simplified to: http://lmgtfy.com/?q=let+me+google+that+for+you
    CM.

  • Call to Jasper Report from a jsf only? Or can v use a jsff page?.

    Hi,
    I am new to JDev and ADF. I have a application using ADF . I have created Jasper reports as well and trying to  Integrate the Reports .
    If i make a call to the Jasper Report with a small dummy application it works.
    But if i do the same from within the application it doesn work.
    Should we make a call to the Jasper Report from a jsf only? Or can v use a jsff page?.
    Waiting for answers. thanks in advance

    Should we make a call to the Jasper Report from a jsf only? Or can v use a jsff page?.
    This usually doesn't matter.
    You will probably need to post some code so we can see how you generate and display report.
    Dario

  • JSF with Jasper Reports

    Hi,
    I am a new bie to JSF and also Jasper Reports.
    I Have created a JSF page where by passing fromDate and toDate from UI passed as a parameter to Jasperreport to generate a report.
    Report is generated as a pdf but my requirement is i want to view the pdf in the browser.
    I used with runReportToPdf(), but with this i dont no how to get the servletConfig whereby in some code i got the code to get the servletConfig and servletContext and passing the .jasper file to convert it as a inputStream or a File.
    I think this is not the proper way to view the things in browser bcoz i want to show the Excel and CSV report also in the browser.
    Could anyone Pls help me in this. Is there any other way to do this.
    My Code:
    <code>
    public void execute()
         try
              FacesContext context = FacesContext.getCurrentInstance();
              Object ObjTest = context.getExternalContext().getSessionMap().get("awardCodeMast");
              AwardCodeMast aObj = (AwardCodeMast)ObjTest;
                        DateFormat df = new SimpleDateFormat("yyyy-MM-dd");
                        Date fromDate1 = aObj.getEffectiveFromDate();
                        String s1 = df.format(fromDate1);
                        System.out.println("#####################"+s1);
              Date toDate1 = aObj.getEffectiveToDate();
              String s2 = df.format(toDate1);
              System.out.println("#####################"+s2);
                        // Started with Jasper Reports
              JasperReport jasperReport;
              JasperPrint jasperPrint;
              JRResultSetDataSource obj;
              JasperDesign jasperDesign;
              JRDataSource jr1;
              String fromDate = s1;
              String toDate = s2;
              Class.forName("com.mysql.jdbc.Driver");
              Connection con1=DriverManager.getConnection("jdbc:mysql://HARUNS-ATHITHI.ITCINFOTECH.COM/pba","root","root");
              Statement stmt1=con1.createStatement();
              Map<String, Serializable> parameters = new HashMap<String, Serializable>();
              parameters.put("fromDate", fromDate);
              parameters.put("toDate", toDate);
              System.out.println("Put...........");
              String ss = context.getExternalContext().getRequestServletPath();
              System.out.println("SS : "+ss+"...............");
              byte[] bytes = null;
              ServletOutputStream outstream = null;
              InputStream reportStream = context.getExternalContext().getResourceAsStream("D:/Acegi Security Framework/Sample_WS1/PBA/WebContent/reports/pdffrmt/AwardCode_report_1.jasper");
              HttpServletResponse response = (HttpServletResponse)context.getExternalContext().getResponse();
              outstream = response.getOutputStream();     
              ExternalContext extContext = context.getExternalContext();
              ServletContext servletContext = (ServletContext) extContext.getContext();
              File reportFile = new File("D:/Acegi Security Framework/Sample_WS1/PBA/WebContent/reports/pdffrmt/AwardCode_report_1.jasper");
              jasperDesign = JasperManager.loadXmlDesign("D:/Acegi Security Framework/Sample_WS1/PBA/WebContent/reports/pdffrmt/AwardCode_report_1.jrxml");
         System.out.println("1..................");
         jasperReport = JasperCompileManager.compileReport(jasperDesign);
         System.out.println("2...................");     
         JasperRunManager.runReportToPdfStream(reportStream, outstream, parameters, con1);
         jasperPrint = JasperFillManager.fillReport(jasperReport, parameters, con1);
         System.out.println("3...............");
         String ss1 = (String)context.getExternalContext().getRequestPathInfo();
         System.out.println(ss1+"............................");
         System.out.println("Report generated....................");
         response.setContentType("application/pdf");
         response.setContentLength(bytes.length);
         System.out.println("Setting content type..................");
         System.out.println("getting output Stream...........");
         response.setContentLength(bytes.length);
         System.out.println("setting the context length...........");
         JasperRunManager.runReportToPdfStream(reportStream, outstream,parameters, con1);
         //outstream.write(bytes);
         System.out.println("writing byte array.............");
         outstream.flush();
         System.out.println("flushing out..............");
         outstream.close();
         ret_sta = "Success";
         }catch(Exception e){System.out.println(e);}
         System.out.println(ret_sta+".....................");
         FacesContext context = FacesContext.getCurrentInstance();
    context.responseComplete();
    </code>
    Kindly help me, i would be very thankful to u.
    Thanks,
    Ambika.

    Hi,
    I want to display a pdf through a web browser. I got it to work with my one report but my other one do not want to work.
    Here is my code.
    public void executeShiftReport(Calendar dateOfReport) {
    try {
    Calendar calMrng = new GregorianCalendar(dateOfReport.get(Calendar.YEAR), dateOfReport.get(Calendar.MONTH), dateOfReport.get(Calendar.DAY_OF_MONTH), 06, 00);
    Date reportDate = dateOfReport.getTime();
    Date dateMrng = calMrng.getTime();
    JasperPrint jasperPrint;
    Connection conn = establishConnection();
    //the paramaters of the report will be saved within the hashmap
    HashMap jasParam = new HashMap();
    jasParam.put("fromDateMorning", new Timestamp(dateMrng.getTime()));
    jasParam.put("Date", reportDate);
    // adds 1 day to the calender to get tomorrows date for night shift ending
    calMrng.add(Calendar.DAY_OF_MONTH, 1);
    Date dateMoreMrng = calMrng.getTime();
    jasParam.put("toDateMorning", new Timestamp(dateMoreMrng.getTime()));
    File file = new File("E:/Projects/BranSystems Internal/BranSupportLog/reports/");
    jasperPrint = JasperFillManager.fillReport(new FileInputStream(new File(file, "morningShift.jasper")), jasParam, conn);
    // JasperExportManager.exportReportToPdf(jasperPrint);
    // JasperExportManager.exportReportToHtmlFile(jasperPrint, "E:/Projects/BranSystems Internal/BranSupportLog/reports/morningShift.html");
    byte[] bytes = JasperExportManager.exportReportToPdf(jasperPrint);
    FacesContext context = FacesContext.getCurrentInstance();
    HttpServletResponse response = (HttpServletResponse) context.getExternalContext().getResponse();
    // let the pdf display in the same window with 'inline',
    response.setHeader("Content-disposition", "inline;filename=morningShift.pdf;");
    response.setContentType("application/pdf");
    response.setContentLength(bytes.length);
    response.getOutputStream().write(bytes);
    response.flushBuffer();
    context.responseComplete();
    } catch (JRException ex) {
    Logger.getLogger(SupportMBean.class.getName()).log(Level.SEVERE, null, ex);
    } catch (FileNotFoundException ex) {
    Logger.getLogger(SupportMBean.class.getName()).log(Level.SEVERE, null, ex);
    } catch (IOException ex) {
    Logger.getLogger(SupportMBean.class.getName()).log(Level.SEVERE, null, ex);
    }

  • JSF - Actuate Reports/Jasper Reports

    Hello,
    I am creating a reporting application using jsf .The report server to be used are Actuate and Jasper.
    I am generating my criteria page(jsf page where user will input criteria for report) dynamically from an xml file.
    The actuate reports are static reports residing on an actuate server. All i need to do is collect the criteria and link the jsp page to the actuate report residing on actuate server.
    I am able to connect to the report using context.redirect(context.encodeActionURL(url)) from my backing bean.
    But the problem is the report opens up in browser but on a different page. i want to embed the report in the jsf page below the criteria displayed.
    How can i achieve this??
    Similar problem i am facing with Jasper reports, i am able to open the jasper report in browser as a pdf, but not able to embed it into my criteria.jsp.
    For jasper reports, i understood that i need to get the repot bytes into a string buffer and use an outputtext to display that.
    I did try that approach, but somehow it doesnt display the proper report, all it displays is <html> tags.
    Any help is appreciated.
    Thanks in advance
    Ashvini

    ra_boy, don't hijack threads.
    Of course you did not read this:
    [http://forums.sun.com/ann.jspa?annID=54]
    or this:
    [http://wikis.sun.com/display/SunForums/Tips]
    Locking.

  • Jasper report on HTML when one image loaded from database and for the other

    How to generate jasper report on HTML when one image loaded from database and for the other we give a image path
    My code
    ByteArrayOutputStream baos = new ByteArrayOutputStream();
              exporter = new JRHtmlExporter();
              exporter.setParameter(JRExporterParameter.JASPER_PRINT, print);
              exporter.setParameter(JRExporterParameter.OUTPUT_STREAM, baos);
              exporter.setParameter(JRHtmlExporterParameter.IMAGES_URI, strImageInputDirectory);
         exporter.setParameter(JRHtmlExporterParameter.IMAGES_DIR_NAME, strImageOutputPath == null ? "." : strImageOutputPath);
         exporter.setParameter(JRHtmlExporterParameter.IS_OUTPUT_IMAGES_TO_DIR, Boolean.TRUE);
         exporter.setParameter(JRHtmlExporterParameter.IS_USING_IMAGES_TO_ALIGN, Boolean.FALSE);
         exporter.setParameter(JRHtmlExporterParameter.IS_WHITE_PAGE_BACKGROUND, Boolean.FALSE);
              exporter.exportReport();
              byte[] bdata = ((ByteArrayOutputStream) baos).toByteArray();
    Can any one help pls
    Message was edited by:
    ameet.au

    hey sorry for posting it in this forum.
    but do u have sample code for making it work.. since i am able to do it on PDF format(image from Database and another stored in the webserver) using
    byte image[] =(byte[]) outData.get("image");
                        ByteArrayInputStream img = new ByteArrayInputStream(image);
                        hmimg.put("P_PARAMV3", img);
    print = JasperFillManager.fillReport(reportFileName, hmimg, jrxmlds);
    bdata= JasperExportManager.exportReportToPdf(print);

  • Integrate Adobe Flex and JBOSS using BlazeDS

    I using this link http://simplyolaf.blogspot.com/2009/07/integrate-adobe-flex-and-jboss-using.html to create Flex Project for Blaze DS. I added the following arguments to the flex compiler: -services "F:/java_WS/iASCUE/WebContent/WEB-INF/flex/services-config.xml" . Can I define relate path? when I put my project on other server it don't work

    Does anybody something know?

  • Problem in debuging jasper reports and ADF

    Hi
    I am using JDeveloper 11.1.2.2.0. Inside I created Fusion Web Application ADF, and on the index page created Go button. Now I created Servlet with doGet methode and conncected it to Go button. It is working OK.
    Now I want to run simple jasper report from servlet. Jasper report is based on empty dataset. Here is servlet code:
    public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
    ServletOutputStream servletOutputStream =response.getOutputStream();
    InputStream reportStream = getServletConfig().getServletContext()
    .getResourceAsStream("C:/Users/myDomain/Desktop/Reporting/ReportPDFPrazan.jasper");
    try
    JasperRunManager.runReportToPdfStream(reportStream,servletOutputStream,null, new JREmptyDataSource());
    response.setContentType(CONTENT_TYPE);
    servletOutputStream.flush();
    servletOutputStream.close();
    catch (JRException e)
    // display stack trace in the browser
    StringWriter stringWriter = new StringWriter();
    PrintWriter printWriter = new PrintWriter(stringWriter);
    e.printStackTrace(printWriter);
    response.setContentType("text/plain");
    response.getOutputStream().print(stringWriter.toString());
    When I hit Go button here what I get:
    java.lang.NullPointerException
         at java.io.ObjectInputStream$PeekInputStream.read(ObjectInputStream.java:2265)
         at java.io.ObjectInputStream$PeekInputStream.readFully(ObjectInputStream.java:2278)
         at java.io.ObjectInputStream$BlockDataInputStream.readShort(ObjectInputStream.java:2749)
         at java.io.ObjectInputStream.readStreamHeader(ObjectInputStream.java:779)
         at java.io.ObjectInputStream.(ObjectInputStream.java:279)
         at net.sf.jasperreports.engine.util.ContextClassLoaderObjectInputStream.(ContextClassLoaderObjectInputStream.java:53)
         at net.sf.jasperreports.engine.util.JRLoader.loadObject(JRLoader.java:214)
         at net.sf.jasperreports.engine.JasperFillManager.fill(JasperFillManager.java:632)
         at net.sf.jasperreports.engine.JasperRunManager.runToPdfStream(JasperRunManager.java:428)
         at net.sf.jasperreports.engine.JasperRunManager.runReportToPdfStream(JasperRunManager.java:849)
         at view.com.lanaco.servlets.PrviServlet.doGet(PrviServlet.java:35)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
    and so on(I can put whole stack if necery)
    I also imported this libraries inside ViewControl project:
         Jasperreports-4.7.1.jar
         Commons-beanutils-1.8.0.jar
         Commons-collections-2.1.1.jar
         Commons-digester-2.1.jar
         Commons-logging-1.1.1.jar
         IText-2.1.7.jar
         Groovy-all-1.7.5.jar
         Poi-3.7-20101029.jar
    Can someone help me with debuging. Please
    Edited by: MarcusO on 2012.10.23 05:18

    I found solution. It should be used like this:
    InputStream reportStream = new FileInputStream(new File("C:/Users/myDomain/Desktop/Reporting/ReportPDFPrazan.jasper"));
    So problem was in input stream. It works fine now.

Maybe you are looking for

  • Fiel Riquered on MIRO, Payment Method

    Some one knows how I can Make the Field Method Payment on MIRO that could be Required?? I was trying make it on FI, but is not the field, and I don´t find it on MM, or only we can make it on OB28? Thanks!

  • Authentication on JBoss

    Hi all, I'm trying to make user's authentication on JBoss 3.0.6. I don't want to specify method permissions on my ejb-jar.xml, because I just want to authenticate users (username and password), any authenticated user has all permissions. But I can't

  • Thread Pool's decreasing application performance

    Hi, In my application, I need to make 10,000 threads for network calls at one instant and release the threads after downloading content. Content downloading of individual thread consumes less than 1min. When I try this using Timer Task and normal Thr

  • Deleting messages from Motorola M

    For some reason, when I delete a thread form my messages the contact name still appears and will not go away even after repeated attempts to delete. It also has the date December 31, 1969 as the date of the text message. Has anyone else had this prob

  • Problems in Reflectin JCO Class

    Hello. I am new to Java but very used to ABAP. To start some experiments in Java I want to check, whether JCO Library is available using Reflection-API. Therefore I wrote the following code:           Class jcoclass;           try {                //