-
1. Using common classes across different portlets
ndkhoiits Apr 27, 2011 2:55 AM (in response to shaipai)Do you mean some classes in war files are using a common library, and you'were putting lib into your war file?
I'm wondering that why you don't put the common library in TOMCAT/lib instead of in the war file if it's used by others
-
2. Using common classes across different portlets
kien_nguyen Apr 27, 2011 3:01 AM (in response to ndkhoiits)Are you using Maven for managing your project?
I think you can use Maven or Ant for this to manage dependencies and you simple configure parent pom.xml to make auto-build for all projects with one command .
-
3. Using common classes across different portlets
shaipai May 2, 2011 6:44 AM (in response to ndkhoiits)Thanks everyone for your time to respond to my query. It helped. I put the common jar in \server\default\deploy\gatein.ear\lib. It worked. But is this the correct place ?.
-
4. Using common classes across different portlets
trong.tran May 2, 2011 10:53 PM (in response to shaipai)this really depends on Web Application Server specification and your kind of packaging/deployment ( For instance, Tomcat & JBoss are not the same ). So I think you should refer to the specific Web Application Server documentation, to see its file system management and loading mechanism.
-
5. Using common classes across different portlets
hoang_to May 4, 2011 6:51 AM (in response to shaipai)Check the link for documentation on class/resource loading mechanism in Tomcat
http://tomcat.apache.org/tomcat-6.0-doc/class-loader-howto.html