• 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

JasperReport on-the-fly compile inside EAR

 
Ranch Hand
Posts: 88
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

I've been trying many things, but I'm unable to compile reports inside an EAR file. The invoker class and the report are inside a JAR file, which is inside an EAR file. I want to compile the report (and caching it), but the compiler cannot find JasperReports classes. It can't find my business classes either.

I don't want to replicate all jars outside the ear so I can reference them in the classpath. I think a relative classpath is necessary, or some way we can select the ClassLoader to be used by the compiler.

Any help is appreciated.
Thanks
 
Eiji Seki
Ranch Hand
Posts: 88
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Just answering my own question about JasperReport on-the-fly compile inside EAR (application server, app serv):
Although in the lastest versions of the jasperreport jar the jdt-compile.jar is no longer a mandatory dependency, it is necessary if you want to do that, since it is the only compiler that does not need classpath information, using the current ClassLoader instead.
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic