Java Mailing List Archive

http://www.gg3721.com/

Home » Struts Users Mailing List »

How to place struts2-core.jar outside web-app.war?

Dimitar Vlasev

2008-11-25

Replies: Find Java Web Hosting

Author LoginPost Reply
Hi,
I'm having problem to configure web application enclosed in .ear module.
I'm using Struts 2.0.12 and JBoss 4.2.3 running on java 1.6.

The application is in .war module, which is placed inside .ear module.
[In fact this is small test application for me to get used with the
new features in Struts 2]
When I implemented SessionAware in my test action, I had .ear
deployment exception which said that classloader can't find
org.apache.struts2.interceptor.SessionAware
I can get around this problem if I place the struts2-core.jar outside
the web-app.war but then I have problems referring to /struts-tags in
.jsp files:
<%@(protected)" %>

And I'm not sure whether other problems might appear with this
configuration in future (like using themes which I thing depend on
content in the /templates folder of the struts2-core.jar)

Any ideas how to overcome this obstacle - I mean besides splitting the
struts2-core.jar in two and placing it's parts where needed.

Thank you in advance.

--
===============
Dimitar Vlasev

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@(protected)
For additional commands, e-mail: user-help@(protected)

©2008 gg3721.com - Jax Systems, LLC, U.S.A.