组合视图 统一视图 树状图
讨论主题 [ 上一个 | 下一个 ]
toggle
Jon Cruz
Liferay 6.0.6 Tomcat - Shared JARs across numerous portlet WARs
2012年5月17日 下午4:30
答复

Jon Cruz

等级: New Member

帖子: 14

加入日期: 2012年5月17日

最近的帖子

Hello,

I'm using Liferay 6.0.6 Tomcat, and have about 14 portlets that will use the Spring Portlet MVC API.

Right now each portlet contains the same Spring JAR files within their own WEB-INF/lib directory. (In total about 6.5 MB of JARs)

In Liferay JBoss bundle, I could separate those common JARs and place them into a common "lib" directory within the JBoss directory structure.

My portlet WARs then went from about 7MB to 100K.

In trying to do the same with Liferay Tomcat, I've tried placing those common JARs in:

  • lib
  • lib/ext
  • altering the "catalina.properties" shared.loader=${catalina.base}/common,${catalina.base}/common/*.jar and creating the "common" directory within Tomcat


In all efforts, I am getting the same "java.lang.NoClassDefFoundError" and "java.lang.ClassNotFoundException" exceptions.

Has anyone successfully shared common JARs within the Liferay Tomcat bundle?

Thanks,

Jon
Jon Cruz
RE: Liferay 6.0.6 Tomcat - Shared JARs across numerous portlet WARs
2012年5月21日 上午11:28
答复

Jon Cruz

等级: New Member

帖子: 14

加入日期: 2012年5月17日

最近的帖子

No response?

Should I move this message to another Thread? I'd think that this would be a common issue amongst Tomcat Liferay users.

Thanks,

Jon
Jon Cruz
RE: Liferay 6.0.6 Tomcat - Shared JARs across numerous portlet WARs
2012年5月22日 上午9:40
答复

Jon Cruz

等级: New Member

帖子: 14

加入日期: 2012年5月17日

最近的帖子

I couldn't find a way to move this post to another thread, and since there have been no replies, I'll try another topic.

Please see this post for the continuation of this thread.

Thanks.