This is probably a very basic question but managing dependencies in java is a nightmare for me. I have a Liferay portelt (Liferay 6.05 deployed on JBoss AS 6) and I am trying to use batik in it. When I reference batik.jar (and possibly some other jars from the distribution) in Eclipse (properties -> build path -> add external jars), IDE says that everything is fine and shows no error.
However, when I deploy my portlet to the server, I get ClassNotFoundException - the portlet doesnt find the jars I referenced earlier. I feel that the problem is that I am only referencing those jars on my local machine and they are not present on the server (they dont get deployed in the WEB-INF/lib directory of the portlet either).
Should I copy those jars somewhere else? Perhpas somewhere in the liferay directory? Or to the directory where JBOSS AS is unpacked?
Thanks for any tips. I will try to make myself clearer if this sounds too confusing...