on 08-21-2008 8:46 PM
Hi all!
We are migrating one of our web applications to SAP Web AS (Netweaver CE SR5) but we are facing one problem with finding an external library (Jasper Report).
Our web application uses Spring and Hibernate and works fine in Tomcat 5.5 or higher.
The problem is that the package net.sf.jasperreports.engine cannot be found (stack below) despite the jasper report jar is included inside the WEB-INF/lib dir of our WAR.
Our application´s structure is as follows:
cpl.ear
cpl.ear/lib (hibernate´s and other thirdy party jars)
cpl.ear/Cockpit_oracle9_3_5_0.war
cpl.ear/Cockpit_oracle9_3_5_0.war/WEB-INF/lib/jasperreports-1.3.1.jar
Does any body know why the application can´t find the jasper report packages?
Thanks and regards.
Ballock.
##############################################################################################
#1.5 #001EC91DBA01002200000002000007900096BE50A0E2AB09#1219343345836#/System/Server/WebRequests#JavaEE/cpl#com.sap.engine.services.servlets_jsp.server.application.WebEvents#Guest#916####88ee30106eff11dd8e03001ec91dba01#Application ##0#0#Warning#1#com.sap.engine.services.servlets_jsp.server.application.WebEvents#Plain###Error occured in invoking event "contextInitialized()" on listener class org.springframework.web.context.ContextLoaderListener.
The error is: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'service.load.report' defined in class path resource : Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class : Constructor threw exception; nested exception is java.lang.IllegalStateException: net.sf.jasperreports.engine.JRException: Errors were encountered when compiling report expressions class file:
C:
usr
sap
CE1
J00
j2ee
cluster
server0
loadReport_1219343342726_788986.java:4: package net.sf.jasperreports.engine does not exist
import net.sf.jasperreports.engine.*;
^
C:
usr
sap
CE1
J00
j2ee
cluster
server0
loadReport_1219343342726_788986.java:5: package net.sf.jasperreports.engine.fill does not exist
import net.sf.jasperreports.engine.fill.*;
^
C:
usr
sap
CE1
J00
j2ee
cluster
server0
loadReport_1219343342726_788986.java:14: package net.sf.jasperreports.engine does not exist
import net.sf.jasperreports.engine.*;
^
C:
usr
sap
CE1
J00
j2ee
cluster
server0
loadReport_1219343342726_788986.java:15: package net.sf.jasperreports.engine.data does not exist
import net.sf.jasperreports.engine.data.*;
^
C:
usr
sap
CE1
J00
j2ee
cluster
server0
loadReport_1219343342726_788986.java:21: cannot find symbol
symbol: class JREvaluator
public class loadReport_1219343342726_788986 extends JREvaluator
^
C:
usr
sap
CE1
J00
j2ee
cluster
server0
loadReport_1219343342726_788986.java:28: cannot find symbol
symbol : class JRFillParameter
location: class loadReport_1219343342726_788986
private JRFillParameter parameter_REPORT_RESOURCE_BUNDLE = null;
^
C:
usr
sap
CE1
J00
j2ee
cluster
server0
loadReport_1219343342726_788986.java:29: cannot find symbol
symbol : class JRFillParameter
location: class loadReport_1219343342726_788986
private JRFillParameter parameter_REPORT_CLASS_LOADER = null;
(...)
Obs.: The stack above is just a part of the total error log
Edited by: Ballock on Aug 21, 2008 9:46 PM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I also tried to move the jasperreports-1.3.1.jar file to the cpl.ear/lib dir but the problem still happened.
Please, does anybody know how to deal with this problem?
Thanks and regards.
Ballock.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
88 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.