You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by guillermodl <gr...@gmail.com> on 2008/03/05 20:00:04 UTC

Re: [ANN] Practical Apache Struts2 Web 2.0 Projects

Im having 1 little problems with Practical Apache Struts2 Web 2.0 Projects
examples
The first one is that even EntityManager do not persist when submiting the
contestants says "detached persist", I have solved it using
entityMgr.merge(event); instead of entityMgr.persist(event);
the second is a problem with tomcat, when debuging(and only runnig the
debbuger, tomcat 5.5) under eclipse, the more strange is that it doesn't
happend if I add a user but creating a envent prints

avax.servlet.ServletException: Error setting expression 'model' with value
'com.fdar.apress.s2.domain.Event@12adac5'
	org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:515)
	..........

causa raíz

Error setting expression 'model' with value
'com.fdar.apress.s2.domain.Event@12adac5' - [unknown location]

com.opensymphony.xwork2.util.OgnlValueStack.setValue(OgnlValueStack.java:171)
................


No object in the CompoundRoot has a publicly accessible property named
'model' (no setter could be found). - [unknown location]
	at
com.opensymphony.xwork2.util.CompoundRootAccessor.setProperty(CompoundRootAccessor.java:68)

......................

but getModel and setModel  are defined in BaseEventAction where interface
ModelDriven is used

I will try tomcat 6 to see if it is that solves, If you already know wath it
is, please, I will be here reading
-- 
View this message in context: http://www.nabble.com/-ANN--Practical-Apache-Struts2-Web-2.0-Projects-tp13863084p15855641.html
Sent from the Struts - User mailing list archive at Nabble.com.


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


Re: [ANN] Practical Apache Struts2 Web 2.0 Projects

Posted by VipKumar <ch...@gmail.com>.
Hi All,

I got the issue resolved using the 

<package name="enterEvent" namespace="/event" extends="base-package">

        <interceptors>
            <interceptor name="flash"
class="com.opensymphony.webwork.interceptor.FlashInterceptor" />
            
            <interceptor-stack name="eventStack">            	
                <interceptor-ref name="scope">
                    Model
                    partialEvent
                    true
                </interceptor-ref>
                <interceptor-ref name="flash"/>
                <interceptor-ref name="paramsPrepareParamsStack"/>
            </interceptor-stack>
        </interceptors>

        <default-interceptor-ref name="eventStack" />

        <action name="addEventFlow"
class="com.fdar.apress.s2.actions.event.BaseEventAction">
            <interceptor-ref name="eventStack">
                start
            </interceptor-ref>
            <result>/WEB-INF/jsp/event/enterEventDetails-input.jsp</result>
        </action>

        <action name="completeEvent"
class="com.fdar.apress.s2.actions.event.BaseEventAction">
            <interceptor-ref name="eventStack">
                end
            </interceptor-ref>
            <result>/WEB-INF/jsp/event/eventReview.jsp</result>
        </action>

         <action name="flashedSelectEventType"
class="com.fdar.apress.s2.actions.event.SelectLocationTypeAction">
             <interceptor-ref name="flash">
                 Retrieve
             </interceptor-ref>
             <interceptor-ref name="eventStack" />
            <result>/WEB-INF/jsp/event/selectLocationType-input.jsp</result>
        </action>

    </package>
    


It the same configuration only thing is there are minor changes here and
there.

Thanks
Vipin
chauhan.vipin@gmail.com

Jim Kiley wrote:
> 
> Are you using the OpenSessionInViewFilter?  If you aren't, you'll want to.
> 
> If you are doing that already, you may be trying to persist when you
> should
> merge.  If you're using Hibernate's API directly, take advantage of
> Hibernate's saveOrUpdate() method, rather than the JPA merge()/persiste()
> methods.
> 
> Jim Kiley
> Technical Consultant
> Summa
> jhkiley@summa-tech.com
> 
> 
> On Mon, Apr 28, 2008 at 3:50 PM, raxden2 <es...@hotmail.com> wrote:
> 
>>
>> HI! i had the same problem, but I have another problem:
>>
>> When i push the button for save Event... throws this exception:
>>
>> excepción
>>
>> javax.servlet.ServletException: javax.persistence.PersistenceException:
>> org.hibernate.PersistentObjectException: detached entity passed to
>> persist:
>> com.fdar.apress.s2.domain.Location
>>
>> 
>> org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:515)
>>
>>
>> org.apache.struts2.dispatcher.FilterDispatcher.doFilter(FilterDispatcher.java:419)
>>
>>
>> com.opensymphony.module.sitemesh.filter.PageFilter.parsePage(PageFilter.java:118)
>>
>>
>> com.opensymphony.module.sitemesh.filter.PageFilter.doFilter(PageFilter.java:52)
>>
>>
>> org.apache.struts2.dispatcher.ActionContextCleanUp.doFilter(ActionContextCleanUp.java:99)
>>
>> causa raíz
>>
>> javax.persistence.PersistenceException:
>> org.hibernate.PersistentObjectException: detached entity passed to
>> persist:
>> com.fdar.apress.s2.domain.Location
>>
>>
>> org.hibernate.ejb.AbstractEntityManagerImpl.throwPersistenceException(AbstractEntityManagerImpl.java:629)
>>
>>
>> org.hibernate.ejb.AbstractEntityManagerImpl.persist(AbstractEntityManagerImpl.java:218)
>>
>>
>> com.fdar.apress.s2.services.EventServiceImpl.create(EventServiceImpl.java:24)
>>
>>
>> com.fdar.apress.s2.actions.event.SaveEventAction.execute(SaveEventAction.java:32)
>>        sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>
>> ..............
>>
>> causa raíz
>>
>> org.hibernate.PersistentObjectException: detached entity passed to
>> persist:
>> com.fdar.apress.s2.domain.Location
>>
>>
>> org.hibernate.event.def.DefaultPersistEventListener.onPersist(DefaultPersistEventListener.java:79)
>>        org.hibernate.impl.SessionImpl.firePersist(SessionImpl.java:609)
>>        org.hibernate.impl.SessionImpl.persist(SessionImpl.java:601)
>>
>>  org.hibernate.engine.CascadingAction$8.cascade(CascadingAction.java:295)
>>        org.hibernate.engine.Cascade.cascadeToOne(Cascade.java:268)
>>        org.hibernate.engine.Cascade.cascadeAssociation(Cascade.java:216)
>>        org.hibernate.engine.Cascade.cascadeProperty(Cascade.java:169)
>>
>> ..........
>>
>> I need help, i don´t know how resolve this.
>>
>>
>> Thanks.
>>
>>
>>
>>
>>
>> Ian Roughley wrote:
>> >
>> > I'm not sure, and I'm only taking an educated guess at it being
>> > OS/platform-dependent (since a JAR that worked for me had problems for
>> > another user).  Unfortunately I can't reproduce the error.  I'm all for
>> > doing the work to fix the problem if someone has the problem and cycles
>> > to work through testing it.
>> >
>> > /Ian
>> >
>> > Dave Newton wrote:
>> >> --- Ian Roughley <ia...@fdar.com> wrote:
>> >>
>> >>> The solution provided to me was to change the scope interceptor
>> >>> reference to use a session value of "Model" rather than "model" - see
>> >>> below.
>> >>>
>> >>>   <interceptor-ref name="scope">
>> >>>     Model
>> >>>     partialEvent
>> >>>   </interceptor-ref>
>> >>>
>> >>
>> >> Hmm, why does that fix it? If it's an OS-dependent issue we should fix
>> it
>> >> for
>> >> real.
>> >>
>> >> Dave
>> >>
>> >>
>> >> ---------------------------------------------------------------------
>> >> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>> >> For additional commands, e-mail: user-help@struts.apache.org
>> >>
>> >>
>> >
>> >
>>
>> --
>> View this message in context:
>> http://www.nabble.com/-ANN--Practical-Apache-Struts2-Web-2.0-Projects-tp13863084p16945872.html
>> Sent from the Struts - User mailing list archive at Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>> For additional commands, e-mail: user-help@struts.apache.org
>>
>>
> 
> 
> -- 
> Jim Kiley
> Technical Consultant | Summa
> [p] 412.258.3346 [m] 412.445.1729
> http://www.summa-tech.com
> 
> 

-- 
View this message in context: http://old.nabble.com/-ANN--Practical-Apache-Struts2-Web-2.0-Projects-tp13863084p26652440.html
Sent from the Struts - User mailing list archive at Nabble.com.


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


Re: [ANN] Practical Apache Struts2 Web 2.0 Projects

Posted by Jim Kiley <jh...@summa-tech.com>.
Are you using the OpenSessionInViewFilter?  If you aren't, you'll want to.

If you are doing that already, you may be trying to persist when you should
merge.  If you're using Hibernate's API directly, take advantage of
Hibernate's saveOrUpdate() method, rather than the JPA merge()/persiste()
methods.

Jim Kiley
Technical Consultant
Summa
jhkiley@summa-tech.com


On Mon, Apr 28, 2008 at 3:50 PM, raxden2 <es...@hotmail.com> wrote:

>
> HI! i had the same problem, but I have another problem:
>
> When i push the button for save Event... throws this exception:
>
> excepción
>
> javax.servlet.ServletException: javax.persistence.PersistenceException:
> org.hibernate.PersistentObjectException: detached entity passed to
> persist:
> com.fdar.apress.s2.domain.Location
>
>  org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:515)
>
>
> org.apache.struts2.dispatcher.FilterDispatcher.doFilter(FilterDispatcher.java:419)
>
>
> com.opensymphony.module.sitemesh.filter.PageFilter.parsePage(PageFilter.java:118)
>
>
> com.opensymphony.module.sitemesh.filter.PageFilter.doFilter(PageFilter.java:52)
>
>
> org.apache.struts2.dispatcher.ActionContextCleanUp.doFilter(ActionContextCleanUp.java:99)
>
> causa raíz
>
> javax.persistence.PersistenceException:
> org.hibernate.PersistentObjectException: detached entity passed to
> persist:
> com.fdar.apress.s2.domain.Location
>
>
> org.hibernate.ejb.AbstractEntityManagerImpl.throwPersistenceException(AbstractEntityManagerImpl.java:629)
>
>
> org.hibernate.ejb.AbstractEntityManagerImpl.persist(AbstractEntityManagerImpl.java:218)
>
>
> com.fdar.apress.s2.services.EventServiceImpl.create(EventServiceImpl.java:24)
>
>
> com.fdar.apress.s2.actions.event.SaveEventAction.execute(SaveEventAction.java:32)
>        sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>
> ..............
>
> causa raíz
>
> org.hibernate.PersistentObjectException: detached entity passed to
> persist:
> com.fdar.apress.s2.domain.Location
>
>
> org.hibernate.event.def.DefaultPersistEventListener.onPersist(DefaultPersistEventListener.java:79)
>        org.hibernate.impl.SessionImpl.firePersist(SessionImpl.java:609)
>        org.hibernate.impl.SessionImpl.persist(SessionImpl.java:601)
>
>  org.hibernate.engine.CascadingAction$8.cascade(CascadingAction.java:295)
>        org.hibernate.engine.Cascade.cascadeToOne(Cascade.java:268)
>        org.hibernate.engine.Cascade.cascadeAssociation(Cascade.java:216)
>        org.hibernate.engine.Cascade.cascadeProperty(Cascade.java:169)
>
> ..........
>
> I need help, i don´t know how resolve this.
>
>
> Thanks.
>
>
>
>
>
> Ian Roughley wrote:
> >
> > I'm not sure, and I'm only taking an educated guess at it being
> > OS/platform-dependent (since a JAR that worked for me had problems for
> > another user).  Unfortunately I can't reproduce the error.  I'm all for
> > doing the work to fix the problem if someone has the problem and cycles
> > to work through testing it.
> >
> > /Ian
> >
> > Dave Newton wrote:
> >> --- Ian Roughley <ia...@fdar.com> wrote:
> >>
> >>> The solution provided to me was to change the scope interceptor
> >>> reference to use a session value of "Model" rather than "model" - see
> >>> below.
> >>>
> >>>   <interceptor-ref name="scope">
> >>>     Model
> >>>     partialEvent
> >>>   </interceptor-ref>
> >>>
> >>
> >> Hmm, why does that fix it? If it's an OS-dependent issue we should fix
> it
> >> for
> >> real.
> >>
> >> Dave
> >>
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> >> For additional commands, e-mail: user-help@struts.apache.org
> >>
> >>
> >
> >
>
> --
> View this message in context:
> http://www.nabble.com/-ANN--Practical-Apache-Struts2-Web-2.0-Projects-tp13863084p16945872.html
> Sent from the Struts - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>


-- 
Jim Kiley
Technical Consultant | Summa
[p] 412.258.3346 [m] 412.445.1729
http://www.summa-tech.com

Re: [ANN] Practical Apache Struts2 Web 2.0 Projects

Posted by joeradtke <jo...@yahoo.com>.
I have solved the persistence problem.

Change EntityManager.persist(event) to

           EntityManager.merge(event)


raxden2 wrote:
> 
> HI! i had the same problem, but I have another problem:
> 
> When i push the button for save Event... throws this exception:
> 
> excepción 
> 
> javax.servlet.ServletException: javax.persistence.PersistenceException:
> org.hibernate.PersistentObjectException: detached entity passed to
> persist: com.fdar.apress.s2.domain.Location
> 
> org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:515)
> 
> org.apache.struts2.dispatcher.FilterDispatcher.doFilter(FilterDispatcher.java:419)
> 
> com.opensymphony.module.sitemesh.filter.PageFilter.parsePage(PageFilter.java:118)
> 
> com.opensymphony.module.sitemesh.filter.PageFilter.doFilter(PageFilter.java:52)
> 
> org.apache.struts2.dispatcher.ActionContextCleanUp.doFilter(ActionContextCleanUp.java:99)
> 
> causa raíz 
> 
> javax.persistence.PersistenceException:
> org.hibernate.PersistentObjectException: detached entity passed to
> persist: com.fdar.apress.s2.domain.Location
> 
> org.hibernate.ejb.AbstractEntityManagerImpl.throwPersistenceException(AbstractEntityManagerImpl.java:629)
> 
> org.hibernate.ejb.AbstractEntityManagerImpl.persist(AbstractEntityManagerImpl.java:218)
> 
> com.fdar.apress.s2.services.EventServiceImpl.create(EventServiceImpl.java:24)
> 
> com.fdar.apress.s2.actions.event.SaveEventAction.execute(SaveEventAction.java:32)
> 	sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 
> ..............
> 
> causa raíz 
> 
> org.hibernate.PersistentObjectException: detached entity passed to
> persist: com.fdar.apress.s2.domain.Location
> 
> org.hibernate.event.def.DefaultPersistEventListener.onPersist(DefaultPersistEventListener.java:79)
> 	org.hibernate.impl.SessionImpl.firePersist(SessionImpl.java:609)
> 	org.hibernate.impl.SessionImpl.persist(SessionImpl.java:601)
> 	org.hibernate.engine.CascadingAction$8.cascade(CascadingAction.java:295)
> 	org.hibernate.engine.Cascade.cascadeToOne(Cascade.java:268)
> 	org.hibernate.engine.Cascade.cascadeAssociation(Cascade.java:216)
> 	org.hibernate.engine.Cascade.cascadeProperty(Cascade.java:169)
> 
> ..........
> 
> I need help, i don´t know how resolve this.
> 
> 
> Thanks.
> 
> 
> 
> 
> 
> Ian Roughley wrote:
>> 
>> I'm not sure, and I'm only taking an educated guess at it being 
>> OS/platform-dependent (since a JAR that worked for me had problems for 
>> another user).  Unfortunately I can't reproduce the error.  I'm all for 
>> doing the work to fix the problem if someone has the problem and cycles 
>> to work through testing it.
>> 
>> /Ian
>> 
>> Dave Newton wrote:
>>> --- Ian Roughley <ia...@fdar.com> wrote:
>>>   
>>>> The solution provided to me was to change the scope interceptor 
>>>> reference to use a session value of "Model" rather than "model" - see
>>>> below.
>>>>
>>>>   <interceptor-ref name="scope">
>>>>     Model
>>>>     partialEvent
>>>>   </interceptor-ref>
>>>>     
>>>
>>> Hmm, why does that fix it? If it's an OS-dependent issue we should fix
>>> it for
>>> real.
>>>
>>> Dave
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>>> For additional commands, e-mail: user-help@struts.apache.org
>>>
>>>   
>> 
>> 
> 
> 

-- 
View this message in context: http://old.nabble.com/-ANN--Practical-Apache-Struts2-Web-2.0-Projects-tp13863084p30573384.html
Sent from the Struts - User mailing list archive at Nabble.com.


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


Re: [ANN] Practical Apache Struts2 Web 2.0 Projects

Posted by raxden2 <es...@hotmail.com>.
HI! i had the same problem, but I have another problem:

When i push the button for save Event... throws this exception:

excepción 

javax.servlet.ServletException: javax.persistence.PersistenceException:
org.hibernate.PersistentObjectException: detached entity passed to persist:
com.fdar.apress.s2.domain.Location
	org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:515)

org.apache.struts2.dispatcher.FilterDispatcher.doFilter(FilterDispatcher.java:419)

com.opensymphony.module.sitemesh.filter.PageFilter.parsePage(PageFilter.java:118)

com.opensymphony.module.sitemesh.filter.PageFilter.doFilter(PageFilter.java:52)

org.apache.struts2.dispatcher.ActionContextCleanUp.doFilter(ActionContextCleanUp.java:99)

causa raíz 

javax.persistence.PersistenceException:
org.hibernate.PersistentObjectException: detached entity passed to persist:
com.fdar.apress.s2.domain.Location

org.hibernate.ejb.AbstractEntityManagerImpl.throwPersistenceException(AbstractEntityManagerImpl.java:629)

org.hibernate.ejb.AbstractEntityManagerImpl.persist(AbstractEntityManagerImpl.java:218)

com.fdar.apress.s2.services.EventServiceImpl.create(EventServiceImpl.java:24)

com.fdar.apress.s2.actions.event.SaveEventAction.execute(SaveEventAction.java:32)
	sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

..............

causa raíz 

org.hibernate.PersistentObjectException: detached entity passed to persist:
com.fdar.apress.s2.domain.Location

org.hibernate.event.def.DefaultPersistEventListener.onPersist(DefaultPersistEventListener.java:79)
	org.hibernate.impl.SessionImpl.firePersist(SessionImpl.java:609)
	org.hibernate.impl.SessionImpl.persist(SessionImpl.java:601)
	org.hibernate.engine.CascadingAction$8.cascade(CascadingAction.java:295)
	org.hibernate.engine.Cascade.cascadeToOne(Cascade.java:268)
	org.hibernate.engine.Cascade.cascadeAssociation(Cascade.java:216)
	org.hibernate.engine.Cascade.cascadeProperty(Cascade.java:169)

..........

I need help, i don´t know how resolve this.


Thanks.





Ian Roughley wrote:
> 
> I'm not sure, and I'm only taking an educated guess at it being 
> OS/platform-dependent (since a JAR that worked for me had problems for 
> another user).  Unfortunately I can't reproduce the error.  I'm all for 
> doing the work to fix the problem if someone has the problem and cycles 
> to work through testing it.
> 
> /Ian
> 
> Dave Newton wrote:
>> --- Ian Roughley <ia...@fdar.com> wrote:
>>   
>>> The solution provided to me was to change the scope interceptor 
>>> reference to use a session value of "Model" rather than "model" - see
>>> below.
>>>
>>>   <interceptor-ref name="scope">
>>>     Model
>>>     partialEvent
>>>   </interceptor-ref>
>>>     
>>
>> Hmm, why does that fix it? If it's an OS-dependent issue we should fix it
>> for
>> real.
>>
>> Dave
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>> For additional commands, e-mail: user-help@struts.apache.org
>>
>>   
> 
> 

-- 
View this message in context: http://www.nabble.com/-ANN--Practical-Apache-Struts2-Web-2.0-Projects-tp13863084p16945872.html
Sent from the Struts - User mailing list archive at Nabble.com.


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


Re: [ANN] Practical Apache Struts2 Web 2.0 Projects

Posted by Ian Roughley <ia...@fdar.com>.
I'm not sure, and I'm only taking an educated guess at it being 
OS/platform-dependent (since a JAR that worked for me had problems for 
another user).  Unfortunately I can't reproduce the error.  I'm all for 
doing the work to fix the problem if someone has the problem and cycles 
to work through testing it.

/Ian

Dave Newton wrote:
> --- Ian Roughley <ia...@fdar.com> wrote:
>   
>> The solution provided to me was to change the scope interceptor 
>> reference to use a session value of "Model" rather than "model" - see
>> below.
>>
>>   <interceptor-ref name="scope">
>>     <param name="session">Model</param>
>>     <param name="key">partialEvent</param>
>>   </interceptor-ref>
>>     
>
> Hmm, why does that fix it? If it's an OS-dependent issue we should fix it for
> real.
>
> Dave
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>   

Re: [ANN] Practical Apache Struts2 Web 2.0 Projects

Posted by Dave Newton <ne...@yahoo.com>.
--- Ian Roughley <ia...@fdar.com> wrote:
> The solution provided to me was to change the scope interceptor 
> reference to use a session value of "Model" rather than "model" - see
> below.
> 
>   <interceptor-ref name="scope">
>     <param name="session">Model</param>
>     <param name="key">partialEvent</param>
>   </interceptor-ref>

Hmm, why does that fix it? If it's an OS-dependent issue we should fix it for
real.

Dave


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


Re: [ANN] Practical Apache Struts2 Web 2.0 Projects

Posted by Ian Roughley <ia...@fdar.com>.
There have been cases (unfortunately not with myself or the tech 
reviewer, otherwise it would have been corrected) when the same error 
message (No object in the CompoundRoot has a publicly accessible 
property named 'model' (no setter could be found). - [unknown location]) 
has been displayed.  I believe it may be based on OS.

The solution provided to me was to change the scope interceptor 
reference to use a session value of "Model" rather than "model" - see below.

  <interceptor-ref name="scope">
    <param name="session">Model</param>
    <param name="key">partialEvent</param>
  </interceptor-ref>

/Ian

-- 
Ian Roughley
>From Down & Around, Inc.
Consulting * Training / Mentoring * Agile Process * Open Source
web: http://www.fdar.com - email: ian@fdar.com



guillermodl wrote:
> Im having 1 little problems with Practical Apache Struts2 Web 2.0 Projects
> examples
> The first one is that even EntityManager do not persist when submiting the
> contestants says "detached persist", I have solved it using
> entityMgr.merge(event); instead of entityMgr.persist(event);
> the second is a problem with tomcat, when debuging(and only runnig the
> debbuger, tomcat 5.5) under eclipse, the more strange is that it doesn't
> happend if I add a user but creating a envent prints
>
> avax.servlet.ServletException: Error setting expression 'model' with value
> 'com.fdar.apress.s2.domain.Event@12adac5'
> 	org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:515)
> 	..........
>
> causa raíz
>
> Error setting expression 'model' with value
> 'com.fdar.apress.s2.domain.Event@12adac5' - [unknown location]
>
> com.opensymphony.xwork2.util.OgnlValueStack.setValue(OgnlValueStack.java:171)
> ................
>
>
> No object in the CompoundRoot has a publicly accessible property named
> 'model' (no setter could be found). - [unknown location]
> 	at
> com.opensymphony.xwork2.util.CompoundRootAccessor.setProperty(CompoundRootAccessor.java:68)
>
> ......................
>
> but getModel and setModel  are defined in BaseEventAction where interface
> ModelDriven is used
>
> I will try tomcat 6 to see if it is that solves, If you already know wath it
> is, please, I will be here reading
>   

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