Jump to content
Changes to the Jaspersoft community edition download ×

Jasper in WebServer (Tomcat)


Recommended Posts

By: Adrian Jetzer - tripletuned

Jasper in WebServer (Tomcat)

2003-03-09 23:52

Hi there!

 

I've found some postings about this topic, but I couldn't find a good solution.

 

I try to run Jasper in a Tomcat server. I access Jasper via a WebService (JAX-RPC). The problem is, that Jasper can't find it's own classes.

 

(Package dori.jasper.engine not found in import.

import dori.jasper.engine.*;)

 

I'm able to run the whole thing, when I set the property:

 

System.setProperty("jasper.reports.compile.class.path", "c:/JavaLib/jasperreports-0.4.5.jar");

 

But I'm not satisfied with that. I want, that Jasper Recognize it's classLoader automaticly, so that I don't need the command above. Something like:

 

JasperManager.setClassLoader(this.getClassLoader) .... Or something like this.

 

Greetings,

Adrian

 

 

 

 

By: Teodor Danciu - teodord

RE: Jasper in WebServer (Tomcat)

2003-03-13 13:27

 

Hi,

 

It is not really about JasperReports not finding

its own classes, but rather about supplying the

the Java compiler with the correct classpath it

needs in order to compile the report expression class.

 

If you place JasperReports in the classpath of the

JVM instance that compiles the reports, you won't

need to use the "jasper.reports.compile.class.path"

system property as the engine uses the

"java.class.path" system property by default.

 

I hope this helps.

Teodor

Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...