There is no need to add itext to build's

also you need to use exclusion to remove itext 1.3 from your
jasperreport's dependency

-D

On Sat, Nov 22, 2008 at 8:13 PM, traigo <[EMAIL PROTECTED]> wrote:
>
> I added a dependency to build/plugins/jasperreports-maven-plugin/dependencies
> and to build/dependencies:
>        <dependency>
>                <groupId>itext</groupId>
>                <artifactId>itext</artifactId>
>                <version>${itext.version}</version>
>        </dependency>
> Then under properties I added:
>        <itext.version>2.1.4</itext.version>
>
> There wasn't anything in there previously for iText.  Maven was resolving
> dependencies for us and installed 1.3.  It's odd that it installed 1.3, I
> was poking around and found that in the jasper 3.1.0 pom, the dependency for
> iText is version 2.1.0
>                <dependency>
>                        <groupId>com.lowagie</groupId>
>                        <artifactId>itext</artifactId>
>                        <version>2.1.0</version>
>                        <scope>compile</scope>
>                </dependency>
>
>
> Dan Tran wrote:
>>
>> so how did you change itext in your pom?
>>
>> On Sat, Nov 22, 2008 at 7:47 PM, traigo <[EMAIL PROTECTED]> wrote:
>>>
>>> Yes.  We had jasperreports setup and working just fine with pom edited
>>> according to:
>>> http://mojo.codehaus.org/jasperreports-maven-plugin/usage.html
>>>
>>> It compiled our test reports fine.  I started on our first production
>>> report
>>> and everything went fine.  All the data was displayed correctly.  I went
>>> to
>>> style the report (fonts, color, borders, company logo, etc.).  Everything
>>> worked until I got to the logo.  It would compile fine, but error when
>>> the
>>> report was run.  The bug was already logged at jasperforge.
>>> http://jasperforge.org/tracker/index.php?func=detail&aid=2635&group_id=102&atid=612
>>> I commented out the logo, and there was no more error when running the
>>> report.  It would run to HTML with the image and no error.  PDF output is
>>> a
>>> requirement of this.  That's when I tried to upgrade iText myself and
>>> started this whole mess.
>>>
>>>
>>> Dan Tran wrote:
>>>>
>>>> did you configure your jasperreports dependency as suggested at the
>>>> usage
>>>> site?
>>>>
>>>> On Sat, Nov 22, 2008 at 4:54 PM, traigo <[EMAIL PROTECTED]> wrote:
>>>>>
>>>>> I ran mvn install:install-file -DgroupId=itext -DartifactId=itext
>>>>> -Dversion=2.1.4 -Dpackaging=jar -Dfile=iText-2.1.4.jar.  We were on
>>>>> 1.3,
>>>>> but
>>>>> 1.3 causes an error in jasperreports 3 when using an image.  I wasn't
>>>>> able
>>>>> to find anything about how to remove it since everything else worked in
>>>>> 1.3.
>>>>> It should be fixed in 1.3.1 but stupid me went to the most recent
>>>>> stable
>>>>> version rather than just the one needed.  I tried to go backwards but
>>>>> that
>>>>> didn't work either.  Now when I compile I get:
>>>>>
>>>>> [INFO] Scanning for projects...
>>>>> [INFO]
>>>>> ------------------------------------------------------------------------
>>>>> [INFO] Building MAIWO
>>>>> [INFO]    task-segment: [compile]
>>>>> [INFO]
>>>>> ------------------------------------------------------------------------
>>>>> Downloading:
>>>>> http://repo1.maven.org/maven2/jasperreports/jasperreports/3.1.2/jasperreports-3.1.2.pom
>>>>> Downloading:
>>>>> http://static.appfuse.org/repository/jasperreports/jasperreports/3.1.2/jasperreports-3.1.2.pom
>>>>> [WARNING] While downloading itext:itext:1.3.1
>>>>>  This artifact has been relocated to com.lowagie:itext:1.3.1.
>>>>>
>>>>>
>>>>> [WARNING] While downloading itext:itext:1.3.1
>>>>>  This artifact has been relocated to com.lowagie:itext:1.3.1.
>>>>>
>>>>>
>>>>> [INFO] [jasperreports:compile-reports {execution: default}]
>>>>> [INFO] Compiling 2 report design files.
>>>>> [INFO] Compiling report file: test_template.jrxml
>>>>> [FATAL ERROR]
>>>>> org.codehaus.mojo.jasperreports.JasperReportsMojo#execute()
>>>>> caused a linkage error (java.lang.NoClassDefFoundError) and may be
>>>>> out-of-date. Check the realms:
>>>>> [FATAL ERROR] Plugin realm =
>>>>> app0.child-container[org.codehaus.mojo:jasperreports-maven-plugin]
>>>>> urls[0] =
>>>>> file:/home/kyle/.m2/repository/org/codehaus/mojo/jasperreports-maven-plugin/1.0-beta-1/jasperreports-maven-plugin-1.0-beta-1.jar
>>>>> urls[1] =
>>>>> file:/home/kyle/.m2/repository/jasperreports/jasperreports/3.1.2/jasperreports-3.1.2.jar
>>>>> urls[2] =
>>>>> file:/home/kyle/.m2/repository/com/lowagie/itext/1.3.1/itext-1.3.1.jar
>>>>> urls[3] =
>>>>> file:/home/kyle/.m2/repository/org/codehaus/plexus/plexus-utils/1.1/plexus-utils-1.1.jar
>>>>> urls[4] =
>>>>> file:/home/kyle/.m2/repository/org/codehaus/plexus/plexus-compiler-api/1.5.3/plexus-compiler-api-1.5.3.jar
>>>>> [FATAL ERROR] Container realm = plexus.core
>>>>> urls[0] = file:/usr/local/apache-maven-2.0.9/lib/maven-2.0.9-uber.jar
>>>>> [INFO]
>>>>> ------------------------------------------------------------------------
>>>>> [ERROR] FATAL ERROR
>>>>> [INFO]
>>>>> ------------------------------------------------------------------------
>>>>> [INFO] org/apache/commons/digester/Digester
>>>>> org.apache.commons.digester.Digester
>>>>> [INFO]
>>>>> ------------------------------------------------------------------------
>>>>> [INFO] Trace
>>>>> java.lang.NoClassDefFoundError: org/apache/commons/digester/Digester
>>>>>        at
>>>>> net.sf.jasperreports.engine.JasperCompileManager.compileReportToFile(JasperCompileManager.java:115)
>>>>>        at
>>>>> org.codehaus.mojo.jasperreports.JasperReportsMojo.compile(JasperReportsMojo.java:232)
>>>>>        at
>>>>> org.codehaus.mojo.jasperreports.JasperReportsMojo.execute(JasperReportsMojo.java:191)
>>>>>        at
>>>>> org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:451)
>>>>>        at
>>>>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:558)
>>>>>        at
>>>>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:499)
>>>>>        at
>>>>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:478)
>>>>>        at
>>>>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:330)
>>>>>        at
>>>>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:291)
>>>>>        at
>>>>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:142)
>>>>>        at
>>>>> org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:336)
>>>>>        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129)
>>>>>        at org.apache.maven.cli.MavenCli.main(MavenCli.java:287)
>>>>>        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>>>        at
>>>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>>>>>        at
>>>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>>>>>        at java.lang.reflect.Method.invoke(Method.java:597)
>>>>>        at
>>>>> org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
>>>>>        at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
>>>>>        at
>>>>> org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
>>>>>        at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
>>>>> Caused by: java.lang.ClassNotFoundException:
>>>>> org.apache.commons.digester.Digester
>>>>>        at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
>>>>>        at java.security.AccessController.doPrivileged(Native Method)
>>>>>        at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
>>>>>        at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
>>>>>        at
>>>>> org.codehaus.classworlds.RealmClassLoader.loadClassDirect(RealmClassLoader.java:195)
>>>>>        at
>>>>> org.codehaus.classworlds.DefaultClassRealm.loadClass(DefaultClassRealm.java:255)
>>>>>        at
>>>>> org.codehaus.classworlds.DefaultClassRealm.loadClass(DefaultClassRealm.java:274)
>>>>>        at
>>>>> org.codehaus.classworlds.RealmClassLoader.loadClass(RealmClassLoader.java:214)
>>>>>        at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
>>>>>        at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
>>>>>        ... 21 more
>>>>> [INFO]
>>>>> ------------------------------------------------------------------------
>>>>> [INFO] Total time: 4 seconds
>>>>> [INFO] Finished at: Sat Nov 22 18:40:49 CST 2008
>>>>> [INFO] Final Memory: 27M/296M
>>>>> [INFO]
>>>>> ------------------------------------------------------------------------
>>>>> --
>>>>> View this message in context:
>>>>> http://www.nabble.com/Error-compiling-with-jasperreports-after-installing-iText-2.1.4-tp20642199p20642199.html
>>>>> Sent from the Maven - Users mailing list archive at Nabble.com.
>>>>>
>>>>>
>>>>> ---------------------------------------------------------------------
>>>>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>>>>> For additional commands, e-mail: [EMAIL PROTECTED]
>>>>>
>>>>>
>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>>>> For additional commands, e-mail: [EMAIL PROTECTED]
>>>>
>>>>
>>>>
>>>
>>> --
>>> View this message in context:
>>> http://www.nabble.com/Error-compiling-with-jasperreports-after-installing-iText-2.1.4-tp20642199p20642978.html
>>> Sent from the Maven - Users mailing list archive at Nabble.com.
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>>> For additional commands, e-mail: [EMAIL PROTECTED]
>>>
>>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>>
>
> --
> View this message in context: 
> http://www.nabble.com/Error-compiling-with-jasperreports-after-installing-iText-2.1.4-tp20642199p20643118.html
> Sent from the Maven - Users mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to