Jump to content
Changes to the Jaspersoft community edition download ×

Problem using the webapp sample.


2004 IR Help

Recommended Posts

By: Annonygmouse - annonygmouse

Problem using the webapp sample.

2005-08-24 03:22

 

I've download the jasperreports project and have successfully compiled the webapp with Eclipse 3.1 and deployed it on a jboss 3.2.6 on a windows environment (WXP).

Unfortunatelly when I try to compile the report the following error appears:

 

java.lang.IllegalAccessError: tried to access field

org.apache.commons.digester.Digester.log from class

org.apache.commons.digester.SetNestedPropertiesRule$AnyChildRule

at

org.apache.commons.digester.SetNestedPropertiesRule$AnyChildRule.body(SetNestedPropertiesRule.java:393)

at

org.apache.commons.digester.Rule.body(Rule.java:240)

at

org.apache.commons.digester.Digester.endElement(Digester.java:1028)

at

org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown

Source)

at

org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(Unknown

Source)

at

org.apache.xerces.impl.dtd.XMLDTDValidator.emptyElement(Unknown

Source)

at

org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(Unknown

Source)

at

org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown

Source)

at

org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown

Source)

at

org.apache.xerces.parsers.XML11Configuration.parse(Unknown

Source)

at

org.apache.xerces.parsers.XML11Configuration.parse(Unknown

Source)

at org.apache.xerces.parsers.XMLParser.parse(Unknown

Source)

at

org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown

Source)

at

org.apache.commons.digester.Digester.parse(Digester.java:1567)

at

net.sf.jasperreports.engine.xml.JRXmlLoader.loadXML(JRXmlLoader.java:225)

at

net.sf.jasperreports.engine.xml.JRXmlLoader.load(JRXmlLoader.java:209)

at

net.sf.jasperreports.engine.xml.JRXmlLoader.load(JRXmlLoader.java:163)

at

net.sf.jasperreports.engine.xml.JRXmlLoader.load(JRXmlLoader.java:147)

at

net.sf.jasperreports.engine.JasperCompileManager.compileReportToFile(JasperCompileManager.java:81)

at

org.apache.jsp.jsp.compile_jsp._jspService(compile_jsp.java:62)

at

org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)

at

javax.servlet.http.HttpServlet.service(HttpServlet.java:810)

at

org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)

at

org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)

at

org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)

at

javax.servlet.http.HttpServlet.service(HttpServlet.java:810)

at

org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)

at

org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)

at

org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:75)

at

org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:186)

at

org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)

at

org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)

at

org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)

at

org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)

at

org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)

at

org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)

at

org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)

at

org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrincipalValve.java:66)

at

org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)

at

org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:158)

at

org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)

at

org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)

at

org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)

at

org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)

at

org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118)

at

org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)

at

org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)

at

org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)

at

org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)

at

org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)

at

org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)

at

org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)

at

org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)

at

org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)

at

org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)

at

org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)

at java.lang.Thread.run(Thread.java:534)

 

Any hint of what I'm doing wrong?

I've also tried the CVS version of the sample with equal result...

 

Thanks in advance.

Yours.

 

Sebastiஊ

 

 

 

 

By: Annonygmouse - annonygmouse

RE: Problem using the webapp sample.

2005-08-25 23:27

 

Found it, it is a problem with the commons library version.

Inside the war in WEB-INF/lib there are the libraries with the good version, but the jboss's classloader loads the tomcat's commons library.

 

In order for the sample to work I had to add the file jboss-web.xml to the WEB-INF folder with the following content:

<?xml version="1.0" encoding="UTF-8"?>

<!DOCTYPE jboss-web

PUBLIC "-//JBoss//DTD Web Application 2.3//EN"

"http://www.jboss.org/j2ee/dtds/jboss-web_3_0.dtd">

<jboss-web>

<class-loading>

<loader-repository>

es.caib.jasper-webapp:loader=jasper-webapp.war

</loader-repository>

</class-loading>

</jboss-web>

 

Sebastiஊ

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...