Author Login
Post Reply
user Digest 15 Jul 2009 19:24:07 -0000 Issue 8753
Topics (messages 200740 through 200762):
Re: JSON Plugin and S:Action
200740 by: Musachy Barroso
200744 by: Chris Pratt
200745 by: Wes Wannemacher
200747 by: Chris Pratt
200748 by: Wes Wannemacher
200749 by: Martin Gainty
200750 by: Musachy Barroso
200758 by: Chris Pratt
Re: Struts2 Action Class and EJB Injection
200741 by: Nathan Schulte
200743 by: Robin Mannering
200752 by: Nathan Schulte
Possible upgrade to xwork 2.1.4
200742 by: David Canos
200746 by: Wes Wannemacher
200754 by: David Canos
Struts2 + JPA - Lazy Initialization During View Generation
200751 by: Nathan Schulte
200755 by: David Canos
200757 by: Nathan Schulte
Initializing Application
200753 by: Balwinder Kumar
200756 by: David Canos
[S2] json plugin + junit plugin
200759 by: Relph,Brian
200761 by: Musachy Barroso
[S2] xwork + spring-test
200760 by: Relph,Brian
200762 by: Musachy Barroso
Administrivia:
---------------------------------------------------------------------
To post to the list, e-mail: user@(protected)
To unsubscribe, e-mail: user-digest-unsubscribe@(protected)
For additional commands, e-mail: user-digest-help@(protected)
----------------------------------------------------------------------

Attachment:
user_200740.ezm (zipped)I think the last release worked with 2.1 right?
musachy
On Wed, Jul 15, 2009 at 5:59 AM, Wes Wannemacher<wesw@(protected):
> On Wed, Jul 15, 2009 at 3:35 AM, Chris Pratt<thechrispratt@(protected):
>> Ok, now I'm totally confused. The documentation at
>> http://cwiki.apache.org/S2PLUGINS/json-plugin.html says that the plug-in
>> required 2.0.6 or greater. It clearly did not support 2.1.2, but it seems
>> to support 2.1.6. Is the documentation wrong, should that say 2.1.6 instead
>> of 2.0.6?
>> (*Chris*)
>>
>
> It is probably not clear in the json plugin docs, but in the move to
> 2.1, the build for the plugin broke. I didn't notice until
> 2.1.3-SNAPSHOT and we made some changes to get it working again.
> Fortunately, the changes were only in unit tests, so you can build it
> by disabling the tests and it should work. If you drop in the jar and
> it doesn't work, let us know and we can figure it out from there.
>
> -Wes
>
> --
> Wes Wannemacher
> Author - Struts 2 In Practice
> Includes coverage of Struts 2.1, Spring, JPA, JQuery, Sitemesh and more
> http://www.manning.com/wannemacher
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>
--
"Hey you! Would you help me to carry the stone?" Pink Floyd

Attachment:
user_200744.ezm (zipped)Yup, the latest jar file works with 2.1.6 (but not 2.1.2 for the record).
(*Chris*)
On Wed, Jul 15, 2009 at 8:11 AM, Musachy Barroso <musachy@(protected):
> I think the last release worked with 2.1 right?
>
> musachy
>
> On Wed, Jul 15, 2009 at 5:59 AM, Wes Wannemacher<wesw@(protected):
> > On Wed, Jul 15, 2009 at 3:35 AM, Chris Pratt<thechrispratt@(protected)>
> wrote:
> >> Ok, now I'm totally confused. The documentation at
> >> http://cwiki.apache.org/S2PLUGINS/json-plugin.html says that the
> plug-in
> >> required 2.0.6 or greater. It clearly did not support 2.1.2, but it
> seems
> >> to support 2.1.6. Is the documentation wrong, should that say 2.1.6
> instead
> >> of 2.0.6?
> >> (*Chris*)
> >>
> >
> > It is probably not clear in the json plugin docs, but in the move to
> > 2.1, the build for the plugin broke. I didn't notice until
> > 2.1.3-SNAPSHOT and we made some changes to get it working again.
> > Fortunately, the changes were only in unit tests, so you can build it
> > by disabling the tests and it should work. If you drop in the jar and
> > it doesn't work, let us know and we can figure it out from there.
> >
> > -Wes
> >
> > --
> > Wes Wannemacher
> > Author - Struts 2 In Practice
> > Includes coverage of Struts 2.1, Spring, JPA, JQuery, Sitemesh and more
> > http://www.manning.com/wannemacher
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: user-unsubscribe@(protected)
> > For additional commands, e-mail: user-help@(protected)
> >
> >
>
>
>
> --
> "Hey you! Would you help me to carry the stone?" Pink Floyd
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>

Attachment:
user_200745.ezm (zipped)On Wed, Jul 15, 2009 at 11:56 AM, Chris Pratt<thechrispratt@(protected):
> Yup, the latest jar file works with 2.1.6 (but not 2.1.2 for the record).
> (*Chris*)
What went wrong in 2.1.2? This intrigues me :)
-Wes
>
> On Wed, Jul 15, 2009 at 8:11 AM, Musachy Barroso <musachy@(protected):
>
>> I think the last release worked with 2.1 right?
>>
>> musachy
>>
--
Wes Wannemacher
Author - Struts 2 In Practice
Includes coverage of Struts 2.1, Spring, JPA, JQuery, Sitemesh and more
http://www.manning.com/wannemacher

Attachment:
user_200747.ezm (zipped)It was in one of my earlier posts, but I was getting this:
java.lang.NoSuchMethodError:
com.opensymphony.xwork2.ActionContext.get(Ljava/lang/String;)Ljava/lang/Object;
at com.googlecode.jsonplugin.JSONResult.execute(JSONResult.java:157)
at
com.opensymphony.xwork2.DefaultActionInvocation.executeResult (
DefaultActionInvocation.java:355)
at
com.opensymphony.xwork2.DefaultActionInvocation.invoke (
DefaultActionInvocation.java:259)
...
(*Chris*)
On Wed, Jul 15, 2009 at 9:01 AM, Wes Wannemacher <wesw@(protected):
> On Wed, Jul 15, 2009 at 11:56 AM, Chris Pratt<thechrispratt@(protected)>
> wrote:
> > Yup, the latest jar file works with 2.1.6 (but not 2.1.2 for the record).
> > (*Chris*)
>
> What went wrong in 2.1.2? This intrigues me :)
>
> -Wes
>
> >
> > On Wed, Jul 15, 2009 at 8:11 AM, Musachy Barroso <musachy@(protected)>
> wrote:
> >
> >> I think the last release worked with 2.1 right?
> >>
> >> musachy
> >>
>
> --
> Wes Wannemacher
> Author - Struts 2 In Practice
> Includes coverage of Struts 2.1, Spring, JPA, JQuery, Sitemesh and more
> http://www.manning.com/wannemacher
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>

Attachment:
user_200748.ezm (zipped)That's weird, now you have me more curious, I don't remember making
changes to get it working in 2.1, other than updating unit tests...
Musachy, do you remember that going from 2.1.2 to 2.1.3? I was using
it with 2.1.3-SNAPSHOT quite a bit, so it must have been something
that changed shortly after the 2.1.2 release...
-Wes
On Wed, Jul 15, 2009 at 12:03 PM, Chris Pratt<thechrispratt@(protected):
> It was in one of my earlier posts, but I was getting this:
>
>
java.lang.NoSuchMethodError:
>
com.opensymphony.xwork2.ActionContext.get(Ljava/lang/String;)Ljava/lang/Object;
> at com.googlecode.jsonplugin.JSONResult.execute(JSONResult.java:157)
> at
>
com.opensymphony.xwork2.DefaultActionInvocation.executeResult (
DefaultActionInvocation.java:355)
> at
>
com.opensymphony.xwork2.DefaultActionInvocation.invoke (
DefaultActionInvocation.java:259)
> ...
>
> (*Chris*)
>
>
> On Wed, Jul 15, 2009 at 9:01 AM, Wes Wannemacher <wesw@(protected):
>
>> On Wed, Jul 15, 2009 at 11:56 AM, Chris Pratt<thechrispratt@(protected)>
>> wrote:
>> > Yup, the latest jar file works with 2.1.6 (but not 2.1.2 for the record).
>> > (*Chris*)
>>
>> What went wrong in 2.1.2? This intrigues me :)
>>
>> -Wes
>>
>> >
>> > On Wed, Jul 15, 2009 at 8:11 AM, Musachy Barroso <musachy@(protected)>
>> wrote:
>> >
>> >> I think the last release worked with 2.1 right?
>> >>
>> >> musachy
>> >>
>>
>> --
>> Wes Wannemacher
>> Author - Struts 2 In Practice
>> Includes coverage of Struts 2.1, Spring, JPA, JQuery, Sitemesh and more
>> http://www.manning.com/wannemacher
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@(protected)
>> For additional commands, e-mail: user-help@(protected)
>>
>>
>
--
Wes Wannemacher
Author - Struts 2 In Practice
Includes coverage of Struts 2.1, Spring, JPA, JQuery, Sitemesh and more
http://www.manning.com/wannemacher

Attachment:
user_200749.ezm (zipped)version ?
Martin Gainty
______________________________________________
Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité
Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen.
Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni.
> Date: Wed, 15 Jul 2009 12:08:50 -0400
> Subject: Re: JSON Plugin and S:Action
> From: wesw@(protected)
> To: user@(protected)
>
> That's weird, now you have me more curious, I don't remember making
> changes to get it working in 2.1, other than updating unit tests...
> Musachy, do you remember that going from 2.1.2 to 2.1.3? I was using
> it with 2.1.3-SNAPSHOT quite a bit, so it must have been something
> that changed shortly after the 2.1.2 release...
>
> -Wes
>
> On Wed, Jul 15, 2009 at 12:03 PM, Chris Pratt<thechrispratt@(protected):
> > It was in one of my earlier posts, but I was getting this:
> >
> >
java.lang.NoSuchMethodError:
> >
com.opensymphony.xwork2.ActionContext.get(Ljava/lang/String;)Ljava/lang/Object;
> > at com.googlecode.jsonplugin.JSONResult.execute(JSONResult.java:157)
> > at
> >
com.opensymphony.xwork2.DefaultActionInvocation.executeResult (
DefaultActionInvocation.java:355)
> > at
> >
com.opensymphony.xwork2.DefaultActionInvocation.invoke (
DefaultActionInvocation.java:259)
> > ...
> >
> > (*Chris*)
> >
> >
> > On Wed, Jul 15, 2009 at 9:01 AM, Wes Wannemacher <wesw@(protected):
> >
> >> On Wed, Jul 15, 2009 at 11:56 AM, Chris Pratt<thechrispratt@(protected)>
> >> wrote:
> >> > Yup, the latest jar file works with 2.1.6 (but not 2.1.2 for the record).
> >> > (*Chris*)
> >>
> >> What went wrong in 2.1.2? This intrigues me :)
> >>
> >> -Wes
> >>
> >> >
> >> > On Wed, Jul 15, 2009 at 8:11 AM, Musachy Barroso <musachy@(protected)>
> >> wrote:
> >> >
> >> >> I think the last release worked with 2.1 right?
> >> >>
> >> >> musachy
> >> >>
> >>
> >> --
> >> Wes Wannemacher
> >> Author - Struts 2 In Practice
> >> Includes coverage of Struts 2.1, Spring, JPA, JQuery, Sitemesh and more
> >> http://www.manning.com/wannemacher
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: user-unsubscribe@(protected)
> >> For additional commands, e-mail: user-help@(protected)
> >>
> >>
> >
>
>
>
> --
> Wes Wannemacher
> Author - Struts 2 In Practice
> Includes coverage of Struts 2.1, Spring, JPA, JQuery, Sitemesh and more
> http://www.manning.com/wannemacher
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
_________________________________________________________________
Insert movie times and more without leaving Hotmail®.
http://windowslive.com/Tutorial/Hotmail/QuickAdd?ocid=TXT_TAGLM_WL_HM_Tutorial_QuickAdd_062009

Attachment:
user_200750.ezm (zipped)yeah, something did change and I think ti was some signature from
Map<String, String> to Map<String, Object> or the other way around.
On Wed, Jul 15, 2009 at 9:08 AM, Wes Wannemacher<wesw@(protected):
> That's weird, now you have me more curious, I don't remember making
> changes to get it working in 2.1, other than updating unit tests...
> Musachy, do you remember that going from 2.1.2 to 2.1.3? I was using
> it with 2.1.3-SNAPSHOT quite a bit, so it must have been something
> that changed shortly after the 2.1.2 release...
>
> -Wes
>
> On Wed, Jul 15, 2009 at 12:03 PM, Chris Pratt<thechrispratt@(protected):
>> It was in one of my earlier posts, but I was getting this:
>>
>>
java.lang.NoSuchMethodError:
>>
com.opensymphony.xwork2.ActionContext.get(Ljava/lang/String;)Ljava/lang/Object;
>> at com.googlecode.jsonplugin.JSONResult.execute(JSONResult.java:157)
>> at
>>
com.opensymphony.xwork2.DefaultActionInvocation.executeResult (
DefaultActionInvocation.java:355)
>> at
>>
com.opensymphony.xwork2.DefaultActionInvocation.invoke (
DefaultActionInvocation.java:259)
>> ...
>>
>> (*Chris*)
>>
>>
>> On Wed, Jul 15, 2009 at 9:01 AM, Wes Wannemacher <wesw@(protected):
>>
>>> On Wed, Jul 15, 2009 at 11:56 AM, Chris Pratt<thechrispratt@(protected)>
>>> wrote:
>>> > Yup, the latest jar file works with 2.1.6 (but not 2.1.2 for the record).
>>> > (*Chris*)
>>>
>>> What went wrong in 2.1.2? This intrigues me :)
>>>
>>> -Wes
>>>
>>> >
>>> > On Wed, Jul 15, 2009 at 8:11 AM, Musachy Barroso <musachy@(protected)>
>>> wrote:
>>> >
>>> >> I think the last release worked with 2.1 right?
>>> >>
>>> >> musachy
>>> >>
>>>
>>> --
>>> Wes Wannemacher
>>> Author - Struts 2 In Practice
>>> Includes coverage of Struts 2.1, Spring, JPA, JQuery, Sitemesh and more
>>> http://www.manning.com/wannemacher
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: user-unsubscribe@(protected)
>>> For additional commands, e-mail: user-help@(protected)
>>>
>>>
>>
>
>
>
> --
> Wes Wannemacher
> Author - Struts 2 In Practice
> Includes coverage of Struts 2.1, Spring, JPA, JQuery, Sitemesh and more
> http://www.manning.com/wannemacher
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>
--
"Hey you! Would you help me to carry the stone?" Pink Floyd

Attachment:
user_200758.ezm (zipped)Yup, I had to change a couple of my helper classes because of that change.
(*Chris*)
On Wed, Jul 15, 2009 at 9:14 AM, Musachy Barroso <musachy@(protected):
> yeah, something did change and I think ti was some signature from
> Map<String, String> to Map<String, Object> or the other way around.
>
> On Wed, Jul 15, 2009 at 9:08 AM, Wes Wannemacher<wesw@(protected):
> > That's weird, now you have me more curious, I don't remember making
> > changes to get it working in 2.1, other than updating unit tests...
> > Musachy, do you remember that going from 2.1.2 to 2.1.3? I was using
> > it with 2.1.3-SNAPSHOT quite a bit, so it must have been something
> > that changed shortly after the 2.1.2 release...
> >
> > -Wes
> >
> > On Wed, Jul 15, 2009 at 12:03 PM, Chris Pratt<thechrispratt@(protected)>
> wrote:
> >> It was in one of my earlier posts, but I was getting this:
> >>
> >>
java.lang.NoSuchMethodError:
> >>
>
com.opensymphony.xwork2.ActionContext.get(Ljava/lang/String;)Ljava/lang/Object;
> >> at
> com.googlecode.jsonplugin.JSONResult.execute(JSONResult.java:157)
> >> at
> >>
>
com.opensymphony.xwork2.DefaultActionInvocation.executeResult (
DefaultActionInvocation.java:355)
> >> at
> >>
>
com.opensymphony.xwork2.DefaultActionInvocation.invoke (
DefaultActionInvocation.java:259)
> >> ...
> >>
> >> (*Chris*)
> >>
> >>
> >> On Wed, Jul 15, 2009 at 9:01 AM, Wes Wannemacher <wesw@(protected)>
> wrote:
> >>
> >>> On Wed, Jul 15, 2009 at 11:56 AM, Chris Pratt<thechrispratt@(protected)>
> >>> wrote:
> >>> > Yup, the latest jar file works with 2.1.6 (but not 2.1.2 for the
> record).
> >>> > (*Chris*)
> >>>
> >>> What went wrong in 2.1.2? This intrigues me :)
> >>>
> >>> -Wes
> >>>
> >>> >
> >>> > On Wed, Jul 15, 2009 at 8:11 AM, Musachy Barroso <musachy@(protected)>
> >>> wrote:
> >>> >
> >>> >> I think the last release worked with 2.1 right?
> >>> >>
> >>> >> musachy
> >>> >>
> >>>
> >>> --
> >>> Wes Wannemacher
> >>> Author - Struts 2 In Practice
> >>> Includes coverage of Struts 2.1, Spring, JPA, JQuery, Sitemesh and more
> >>> http://www.manning.com/wannemacher
> >>>
> >>> ---------------------------------------------------------------------
> >>> To unsubscribe, e-mail: user-unsubscribe@(protected)
> >>> For additional commands, e-mail: user-help@(protected)
> >>>
> >>>
> >>
> >
> >
> >
> > --
> > Wes Wannemacher
> > Author - Struts 2 In Practice
> > Includes coverage of Struts 2.1, Spring, JPA, JQuery, Sitemesh and more
> > http://www.manning.com/wannemacher
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: user-unsubscribe@(protected)
> > For additional commands, e-mail: user-help@(protected)
> >
> >
>
>
>
> --
> "Hey you! Would you help me to carry the stone?" Pink Floyd
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>

Attachment:
user_200741.ezm (zipped)Robin Mannering wrote:
> Is there anybody that is using Struts2 as the 'frontend' to an EJB 3
> 'backend' and what solution do you currently employ.
I am using the described setup, yes. Our solution was to use the mentioned EJB3
plugin and it's @InjectEJB annotation. It works well, I have not had any issues
thus far.
> Wes Wannemacher wrote:
> > Would anyone else be interested in an ObjectFactory based plugin?
> > If so, would any of you also want it to work with Spring?
I am interested in this, particularly for supporting persistence annotations,
like the aforementioned @PersistenceContext. Most of the persistence support
that I have seen for struts, and the questions posted regarding persistence, all
seem to be using application managed persistence. Getting things to work with
CMT would be excellent.

Attachment:
user_200743.ezm (zipped)Can you please tell me how you obtained the EJB plugin and a short
example of using it.
I would prefer to use this if possible.
Nathan Schulte wrote:
> Robin Mannering wrote:
>
>> Is there anybody that is using Struts2 as the 'frontend' to an EJB 3
>> 'backend' and what solution do you currently employ.
>>
>
> I am using the described setup, yes. Our solution was to use the mentioned EJB3
> plugin and it's @InjectEJB annotation. It works well, I have not had any issues
> thus far.
>
>
>> Wes Wannemacher wrote:
>>
>>> Would anyone else be interested in an ObjectFactory based plugin?
>>> If so, would any of you also want it to work with Spring?
>>>
>
> I am interested in this, particularly for supporting persistence annotations,
> like the aforementioned @PersistenceContext. Most of the persistence support
> that I have seen for struts, and the questions posted regarding persistence, all
> seem to be using application managed persistence. Getting things to work with
> CMT would be excellent.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
> ------------------------------------------------------------------------
>
>
> No virus found in this incoming message.
> Checked by AVG - www.avg.com
> Version: 8.5.387 / Virus Database: 270.13.14/2238 - Release Date: 07/14/09 18:03:00
>
>

Attachment:
user_200752.ezm (zipped)Robin Mannering <robin <at> mtndesigns.co.uk> writes:
> Can you please tell me how you obtained the EJB plugin and a short
> example of using it.
>
> I would prefer to use this if possible.
Sorr, I misspoke earlier. I'm actually using the EJB3 JBoss Plugin, from here
http://cwiki.apache.org/S2PLUGINS/ejb3-jboss-plugin.html.
However, browsing the source for the EJB3 Plugin, the annotations and even
classes are named the same, so the following example should still apply;
http://pastebin.com/f7053a2bc.

Attachment:
user_200742.ezm (zipped)hi folks
Currently Struts 2.1.6 is working with xwork 2.1.2 which has some bugs
related to i18n. They are fixed in xwork 2.1.3.
http://jira.opensymphony.com/browse/XW-679
I've check struts jira and i haven't seen any upgrade xwork issue.
It's hard to work in a i18n context while the i18n-interceptor erases the
action context locale.
I don't know if there are related cons upgrading the version of xwork.
Should I create this on Jira?
thankx

Attachment:
user_200746.ezm (zipped)If you are not using REST or the rest plugin, you can use struts
2.1.7, it is not a GA release because there was a missing class in the
rest plugin. Or, you can build 2.1.8-SNAPSHOT. We should be getting an
xwork 2.1.5 release soon and we'll roll a struts 2.1.8 release right
afterwards. If the vote passes, 2.1.8 will be GA.
-Wes
On Wed, Jul 15, 2009 at 11:31 AM, David Canos<davidcanos@(protected):
> hi folks
>
> Currently Struts 2.1.6 is working with xwork 2.1.2 which has some bugs
> related to i18n. They are fixed in xwork 2.1.3.
> http://jira.opensymphony.com/browse/XW-679
>
> I've check struts jira and i haven't seen any upgrade xwork issue.
> It's hard to work in a i18n context while the i18n-interceptor erases the
> action context locale.
>
> I don't know if there are related cons upgrading the version of xwork.
> Should I create this on Jira?
>
> thankx
>
--
Wes Wannemacher
Author - Struts 2 In Practice
Includes coverage of Struts 2.1, Spring, JPA, JQuery, Sitemesh and more
http://www.manning.com/wannemacher

Attachment:
user_200754.ezm (zipped)I resolved writing my own i18n-interceptor.
Firstly I try to get the locale from session, if not I look for in the
request, if not we use the ActionContext by default set up in
struts.properties.
Anyway this is not the xwork 2.1.4 behavior, who looks for locale in
session, and then ActionContext.
Can anyone give me feedback about that?
thank x for your fast answer Wes ;)
2009/7/15 Wes Wannemacher <wesw@(protected)>
> If you are not using REST or the rest plugin, you can use struts
> 2.1.7, it is not a GA release because there was a missing class in the
> rest plugin. Or, you can build 2.1.8-SNAPSHOT. We should be getting an
> xwork 2.1.5 release soon and we'll roll a struts 2.1.8 release right
> afterwards. If the vote passes, 2.1.8 will be GA.
>
> -Wes
>
> On Wed, Jul 15, 2009 at 11:31 AM, David Canos<davidcanos@(protected):
> > hi folks
> >
> > Currently Struts 2.1.6 is working with xwork 2.1.2 which has some bugs
> > related to i18n. They are fixed in xwork 2.1.3.
> > http://jira.opensymphony.com/browse/XW-679
> >
> > I've check struts jira and i haven't seen any upgrade xwork issue.
> > It's hard to work in a i18n context while the i18n-interceptor erases the
> > action context locale.
> >
> > I don't know if there are related cons upgrading the version of xwork.
> > Should I create this on Jira?
> >
> > thankx
> >
>
>
>
> --
> Wes Wannemacher
> Author - Struts 2 In Practice
> Includes coverage of Struts 2.1, Spring, JPA, JQuery, Sitemesh and more
> http://www.manning.com/wannemacher
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>

Attachment:
user_200751.ezm (zipped)I'm currently using Struts2 in a project that is utilizing the Java Persistence
API (JPA, specifically Hibernate) with container managed transactions (CMT). To
access the Persistence layer, a layer was created using SLSBs as "service"
objects which provide simple "<entity_type> get<entity_type>ById( int )" and
"List<<entity_type>> get<entity_type>s()" type methods. The Struts2 Actions use
these beans (by injection (provided by some interceptor, such as the EJB3
Plugin) or a JNDI lookup, it doesn't matter really) to get the instances of the
entities.
Up until now, all of the properties of the entities that were being accessed to
create the view were either eagerly fetched associations, or private members of
the entity. Recently, I have the need to start using lazily fetched
associations (self joins and the like), and need to find a way to extend the
Persistence context through to the view generation.
Although there isn't much need to explain, the error I am receiving is the
following:
ERROR [LazyInitializationException] failed to lazily initialize a collection of
role: <private_member_name>, no session or session was closed
I noticed recently that there was a "Full Hibernate" Plugin that supports
injection of a Session (presumably into an Action?) and will close the Session
after the view generation. This works fine for application managed persistence,
but does not solve the issue of when using CMT (or at least to my knowledge).
Searching the web for solutions to the problem resulted in a suggestion to
create an interceptor (that runs after the Action, but before the view
generation?) that does a JNDI lookup to create an EntityManager (extending the
Persistence Context to the interceptor, I think). I'm not sure what this was
supposed to resolve, but I have not tried this as 1) I'm not sure how to create
such an interceptor and get it to "intercept" at the appropriate time, and 2) I
don't think this would resolve anything, as I don't think this would really
extend the Persistence Context through to the view generation.
How are others resolving this issue and using lazy initialization?
I have a few more ideas as last resorts, but I don't want to taint the
responses, so I will hold onto them for now.
Thanks,
-Nate

Attachment:
user_200755.ezm (zipped)I use a Hibernate.initilize() call in the DAO layer for every object I need
to see in the presentation layer (common jsp files).it avoids Lazy
Initializations without passing Hibernate Proxy around layers.
It works fine for me
2009/7/15 Nathan Schulte <nathan.schulte@(protected)>
> I'm currently using Struts2 in a project that is utilizing the Java
> Persistence
> API (JPA, specifically Hibernate) with container managed transactions
> (CMT). To
> access the Persistence layer, a layer was created using SLSBs as "service"
> objects which provide simple "<entity_type> get<entity_type>ById( int )"
> and
> "List<<entity_type>> get<entity_type>s()" type methods. The Struts2
> Actions use
> these beans (by injection (provided by some interceptor, such as the EJB3
> Plugin) or a JNDI lookup, it doesn't matter really) to get the instances of
> the
> entities.
>
> Up until now, all of the properties of the entities that were being
> accessed to
> create the view were either eagerly fetched associations, or private
> members of
> the entity. Recently, I have the need to start using lazily fetched
> associations (self joins and the like), and need to find a way to extend
> the
> Persistence context through to the view generation.
>
> Although there isn't much need to explain, the error I am receiving is the
> following:
> ERROR [LazyInitializationException] failed to lazily initialize a
> collection of
> role: <private_member_name>, no session or session was closed
>
> I noticed recently that there was a "Full Hibernate" Plugin that supports
> injection of a Session (presumably into an Action?) and will close the
> Session
> after the view generation. This works fine for application managed
> persistence,
> but does not solve the issue of when using CMT (or at least to my
> knowledge).
>
> Searching the web for solutions to the problem resulted in a suggestion to
> create an interceptor (that runs after the Action, but before the view
> generation?) that does a JNDI lookup to create an EntityManager (extending
> the
> Persistence Context to the interceptor, I think). I'm not sure what this
> was
> supposed to resolve, but I have not tried this as 1) I'm not sure how to
> create
> such an interceptor and get it to "intercept" at the appropriate time, and
> 2) I
> don't think this would resolve anything, as I don't think this would really
> extend the Persistence Context through to the view generation.
>
> How are others resolving this issue and using lazy initialization?
>
> I have a few more ideas as last resorts, but I don't want to taint the
> responses, so I will hold onto them for now.
>
> Thanks,
> -Nate
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>

Attachment:
user_200757.ezm (zipped)David Canos <davidcanos <at> gmail.com> writes:
> I use a Hibernate.initilize() call in the DAO layer for every object I need
> to see in the presentation layer (common jsp files).it avoids Lazy
> Initializations without passing Hibernate Proxy around layers.
This was one of my last resort ideas. It completely flies in the face of lazy
initialization, by proactively initializing them. Obviously something I want to
avoid.
There ought to be no need to pass around a hibernate proxy at all, the container
should take care of everything for you, that's the point of CMT. I know there
has to be a proper solution out there, I just have to wait for the right person
to stumble onto the mailing list.
Thanks for letting me know that this method does indeed work though. I have not
tested it myself, but at least I know now that not _all_ hope is lost.
-Nate

Attachment:
user_200753.ezm (zipped)Hi All,
I am trying to develop a framework based on Struts 2, I am finding it
very difficult to decide where to put the code that is generally
called in ActionServlet init method. Any pointer towards this.
Thanks in advance.
Regards,
Balwinder Kumar

Attachment:
user_200756.ezm (zipped)I think Struts 2 uses a Struts2Filter to do the init issues of the each
request
2009/7/15 Balwinder Kumar <balwinder.mca@(protected)>
> Hi All,
>
> I am trying to develop a framework based on Struts 2, I am finding it very
> difficult to decide where to put the code that is generally called in
> ActionServlet init method. Any pointer towards this.
> Thanks in advance.
>
> Regards,
> Balwinder Kumar
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>

Attachment:
user_200759.ezm (zipped)
Is there a reason the json plugin has a compile-time dependency on the junit plugin? Is it just a test dependency perhaps? I would like to exclude the junit plugin from my webapp, but I don't want to break anything down the line.
Brian Relph
----------------------------------------------------------------------
CONFIDENTIALITY NOTICE This message and any included attachments are from Cerner Corporation and are intended only for the addressee. The information contained in this message is confidential and may constitute inside or non-public information under international, federal, or state securities laws. Unauthorized forwarding, printing, copying, distribution, or use of such information is strictly prohibited and may be unlawful. If you are not the addressee, please promptly delete this message and notify the sender of the delivery error by e-mail or you may call Cerner's corporate offices in Kansas City, Missouri, U.S.A at (+1) (816)221-1024.

Attachment:
user_200761.ezm (zipped)The scope is "test", so the dependency won't propagate to your web
app. but yeah, it shouldn't be there, it is probably a copy/paste
error.
musachy
On Wed, Jul 15, 2009 at 11:49 AM, Relph,Brian<Brian.Relph@(protected):
>
> Is there a reason the json plugin has a compile-time dependency on the junit plugin? Is it just a test dependency perhaps? I would like to exclude the junit plugin from my webapp, but I don't want to break anything down the line.
>
> Brian Relph
>
> ----------------------------------------------------------------------
> CONFIDENTIALITY NOTICE This message and any included attachments are from Cerner Corporation and are intended only for the addressee. The information contained in this message is confidential and may constitute inside or non-public information under international, federal, or state securities laws. Unauthorized forwarding, printing, copying, distribution, or use of such information is strictly prohibited and may be unlawful. If you are not the addressee, please promptly delete this message and notify the sender of the delivery error by e-mail or you may call Cerner's corporate offices in Kansas City, Missouri, U.S.A at (+1) (816)221-1024.
>
--
"Hey you! Would you help me to carry the stone?" Pink Floyd

Attachment:
user_200760.ezm (zipped)
Is there a reason xwork has a compile-time dependency on spring-test? Is it just a test dependency perhaps? I would like to exclude spring-test from my webapp, but I don't want to break anything.
Brian Relph
----------------------------------------------------------------------
CONFIDENTIALITY NOTICE This message and any included attachments are from Cerner Corporation and are intended only for the addressee. The information contained in this message is confidential and may constitute inside or non-public information under international, federal, or state securities laws. Unauthorized forwarding, printing, copying, distribution, or use of such information is strictly prohibited and may be unlawful. If you are not the addressee, please promptly delete this message and notify the sender of the delivery error by e-mail or you may call Cerner's corporate offices in Kansas City, Missouri, U.S.A at (+1) (816)221-1024.

Attachment:
user_200762.ezm (zipped)see my answer to the other email, it applies here also, except that in
this case the dependency is needed for the tests.
musachy
On Wed, Jul 15, 2009 at 12:04 PM, Relph,Brian<Brian.Relph@(protected):
>
> Is there a reason xwork has a compile-time dependency on spring-test? Is it just a test dependency perhaps? I would like to exclude spring-test from my webapp, but I don't want to break anything.
>
> Brian Relph
>
> ----------------------------------------------------------------------
> CONFIDENTIALITY NOTICE This message and any included attachments are from Cerner Corporation and are intended only for the addressee. The information contained in this message is confidential and may constitute inside or non-public information under international, federal, or state securities laws. Unauthorized forwarding, printing, copying, distribution, or use of such information is strictly prohibited and may be unlawful. If you are not the addressee, please promptly delete this message and notify the sender of the delivery error by e-mail or you may call Cerner's corporate offices in Kansas City, Missouri, U.S.A at (+1) (816)221-1024.
>
--
"Hey you! Would you help me to carry the stone?" Pink Floyd