-
1. Re: Seam PDF issue
goku2 Sep 17, 2007 7:25 AM (in response to nemya)Thsi problem is beacuse the itext-2.0.x.jar is not on the classpath.
Place this file(is inside your project´s lib) inside your JBoss AS sever/default/lib folder (if your using the default).
That wil solve the problem.
But the thing is.. is this a simple bug in the build.xml? It should include this file in the deployed .war o .ear
:D -
2. Re: Seam PDF issue
nemya Sep 17, 2007 7:45 AM (in response to nemya)Thanks
the problem was the text-2.0.x.jar missing in the JBoss AS sever/default/lib folder. -
3. Re: Seam PDF issue
norman.richards Sep 17, 2007 9:22 AM (in response to nemya)You would normally put the JAR in your WAR, but putting it in JBoss lib dir is fine.
-
4. Re: Seam PDF issue
goku2 Sep 17, 2007 9:36 AM (in response to nemya)Yes, thats the normal thing to do but the deploy task in build.xml provided by seam setup doesn't add this jar.
For example
$ ant deploy
Creates a .war in the dist folder and copies the data source xml and this .war inside the deploy folder of your jboss as.
The thing is that the .war doesn't contains itext-2.0.x.jar in the lib folder.
You can solve this adding
inside the war task in your build.xml
Like this<copy todir="${war.dir}/WEB-INF/lib"> <fileset dir="${lib.dir}"> <include name="ajax4jsf*.jar" /> <include name="richfaces*.jar" /> <include name="oscache*.jar" /> <include name="jsf-facelets.jar" /> <include name="jboss-seam-*.jar" /> <exclude name="jboss-seam-gen.jar" /> <include name="drools-*.jar"/> <include name="janino-*.jar"/> <include name="itext-*.jar"/> <include name="antlr-*.jar"/> <include name="commons-jci-*.jar"/> <include name="stringtemplate-*.jar"/> </fileset> </copy>