Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » Apache Tomcat »

Re: Cannot access classes in /WEB-INF/lib

Martin Gainty

2006-12-17

Replies:

Andy
The jar i have which contains net.sf.jasperreports.engine.JasperRunManager class is
jasperreports-1.2.8.jar (not jasperreport-1.2.8.jar

Just for safety sake can you re-down load the jar from here
http://sourceforge.net/project/showfiles.php?group_id=36382&package_id=28579&release_id=463655
and copy to WEB-INF/lib
?
Anyone else
Martin --
---------------------------------------------------------------------------
This e-mail message (including attachments, if any) is intended for the use of the individual or entity to which it is addressed and may contain information that is privileged, proprietary , confidential and exempt from disclosure. If you are not the intended recipient, you are notified that any dissemination, distribution or copying of this communication is strictly prohibited.
---------------------------------------------------------------------------
Le présent message électronique (y compris les pièces qui y sont annexées, le cas échéant) s'adresse au destinataire indiqué et peut contenir des renseignements de caractère privé ou confidentiel. Si vous n'êtes pas le destinataire de ce document, nous vous signalons qu'il est strictement interdit de le diffuser, de le distribuer ou de le reproduire.
----- Original Message -----
From: <andy.mcneill@(protected)>
To: <users@(protected)>
Sent: Sunday, December 17, 2006 1:22 PM
Subject: Cannot access classes in /WEB-INF/lib



> Hello
>
> I have a relatively simple servlet which runs the Jasper
> reporting engine. I want this servlet to be easy to deploy so I have
> put the Jasper libraries in the WEB-INF/lib directory so it is
> standalone.
>
> But at runtime I get a Jasper classpath not found exception
> (class net/sf/jasperreports/engine/JasperRunManager)
> The class is in the jasperreport-1.2.8.jar which is in the lib
> directory. But for some reason it is not being picked up.
>
> The class in question is being accessed statically (i.e. a
> static method is being called). Not sure if this makes a difference.
>
> The jdbc library (which is called before Jasper) seems to be
> picked up ok.
>
>
> Any ideas ?
>
> Regards
>
> Andy
>
>
>
> -----Original Message-----
> From: Mcneill,A,Andy,XDT64 R
> Sent: 17 December 2006 18:12
> To: 'users-subscribe@(protected)'
> Subject: Cannot access classes in /WEB-INF/lib
>
> Hello
>
> I have a relatively simple servlet which runs the Jasper
> reporting engine. I want this servlet to be easy to deploy so I have
> put the Jasper libraries in the WEB-INF/lib directory so it is
> standalone.
>
> But at runtime I get a Jasper classpath not found exception
> (class net/sf/jasperreports/engine/JasperRunManager)
> The class is in the jasperreport-1.2.8.jar which is in the lib
> directory. But for some reason it is not being picked up.
>
> The class in question is being accessed statically (i.e. a
> static method is being called). Not sure if this makes a difference.
>
> The jdbc library (which is called before Jasper) seems to be
> picked up ok.
>
>
> Any ideas ?
>
> Regards
>
> Andy
>
>
> Andy Mcneill
>
> Technical architect
> OneIT
> British Telecom
>
> Tel : 07795986910
>
>
©2008 junlu.com - Jax Systems, LLC, U.S.A.