Hi Hari,
On 20 April 2011 21:36, Hari Ramakrishnan <[email protected]> wrote:
> Hi,
>
> I am using iText 1.2 and I am trying to upgrade it to the latest version of
> iText.
>
Note : iText 1.2 is more than 6 years old. You should NOT expect any kind of
compatibility between this obsolete version and the latest one.
> When I am doing so, I get the following error.
>
> java.lang.NoClassDefFoundError: com/itextpdf/text/DocumentException
>
> java.lang.Class.getDeclaredConstructors0(Native Method)
>
> java.lang.Class.privateGetDeclaredConstructors(Class.java:2389)
>
> java.lang.Class.getConstructor0(Class.java:2699)
>
> java.lang.Class.newInstance0(Class.java:326)
>
> java.lang.Class.newInstance(Class.java:308)
>
>
> org.jboss.web.tomcat.service.TomcatInjectionContainer.newInstance(TomcatInjectionContainer.java:264)
>
>
> org.jboss.web.tomcat.service.TomcatInjectionContainer.newInstance(TomcatInjectionContainer.java:256)
>
>
> org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:190)
>
>
> org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:92)
>
>
> org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.process(SecurityContextEstablishmentValve.java:126)
>
>
> org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:70)
>
>
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
>
>
> org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158)
>
>
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:330)
>
> org.apache.coyote.ajp.AjpProcessor.process(AjpProcessor.java:436)
>
>
> org.apache.coyote.ajp.AjpProtocol$AjpConnectionHandler.process(AjpProtocol.java:384)
>
>
> org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
>
> java.lang.Thread.run(Thread.java:619)
>
>
> I read some where that the java version used to compile my application
> should match the java version used to compile the iText. I am not sure if
> that will help solve this problem. I am using JDK 1.6.
>
Current versions of iText work fine with Java 5 and later. However, the
exception you get tends to indicate that some old version of iText is still
in your classpath, instead of the most recent one.
My piece of advice : try to build a standalone version of you application,
fix your classpath, and then run it through an application server. Life will
be far easier...
Cheers,
alexis
------------------------------------------------------------------------------
Benefiting from Server Virtualization: Beyond Initial Workload
Consolidation -- Increasing the use of server virtualization is a top
priority.Virtualization can reduce costs, simplify management, and improve
application availability and disaster protection. Learn more about boosting
the value of server virtualization. http://p.sf.net/sfu/vmware-sfdev2dev
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions
iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples:
http://itextpdf.com/themes/keywords.php