• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Pentaho 3.5 for java developers + problem

 
Ranch Hand
Posts: 61
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello!
I have read de book pentaho 3.5 for java developers, and it is very good. However, I am having a problem trying to include my reports in a web application.
I followed step by step everything mentioned in the book, and this problem its shown

Estado HTTP 404 - /report/

type Informe de estado

mensaje /report/

descripción El recurso requerido (/report/) no está disponible.

Description: The resource required(/report/) is not available

I will describe what i have done


First of all, I imported all the libraries from pentaho report designer 3.5.

Then I created an index.html.


Then, i build my java servlet


Fourtly, I created a folder in the web-inf directory called data, and there I put my report reporte1.prpt

Finally I wrote my web.xml file


When I run my application, the index page is shown, and the error ocurrs when I click on Generate PDF Report link
I noticed that the link goes to /report/, but there is no folder o file called report.
How can I solve this problem?
Any suggestion?

Thank You
 
author
Posts: 37
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello, you should either map your servlet url to report, or change the link in your HTML page to your defined controller/ServletPrimero url.

Glad you liked the book! Good luck!

Will
 
matias casal
Ranch Hand
Posts: 61
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Yes, it is what i ve done now
My code is


But with that and error 500 happens saying that cant find the resource report.
However, I tried to create a new folder name report, and there i put the files and folders from de folder report-viewer in the biserver 3.5
The error 500 and 400 dont appear now, but when i click on view pdf report, after loading a seconds, an error label from pentaho appears ( without a name).
I think that i am near the solution, but there is something i m missing

my new html is


Thank you for answering
If you know how to solve my problem, you are welcome
 
today's feeble attempt to support the empire
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic