struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dimitar Vlasev" <vlase...@gmail.com>
Subject Re: How to place struts2-core.jar outside web-app.war?
Date Tue, 25 Nov 2008 12:18:07 GMT
Thank you very much Nils,
you've spotted the problem - the action class was packed in a .jar
file which was outside the .war module.
When I placed it in the .war everything worked smoothly.

Best regards,

On Tue, Nov 25, 2008 at 1:14 PM, Nils-Helge Garli Hegvik
<nilsga@gmail.com> wrote:
> You'll probably save yourself a lot of troubles putting the jar files
> inside the WEB-INF/lib folder of your war. What was your structure
> like when it didn't work? Was your actions in your war file as well?
>
> Nils-H
>
> On Tue, Nov 25, 2008 at 12:09 PM, Dimitar Vlasev <vlasevdr@gmail.com> wrote:
>> 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:
>> <%@ taglib prefix="s" uri="/struts-tags" %>
>>
>> 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@struts.apache.org
>> For additional commands, e-mail: user-help@struts.apache.org
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>



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

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message