Re: "java.lang.NoClassDefFoundError: org/apache/struts2/util/ObjectFactoryDestroyable"

2010-05-17 Thread hernan gonzalez
You are doing a "hot deploy" of your full webapplication inside a
Tomcat tree, without restarting it ? If that's the case, I'm not much
surprised, hot deploys are rather fragile with respect to class
loading issues in my experience. I restart Tomcat in each deploy.

On Mon, May 17, 2010 at 5:11 PM, Emi Lu  wrote:
> In my ant. build.xml file, I have classpath lib included shown as the
> following:
>
>
>   
>                
>                        
>                
>                
>              
>            
>   
>   ---. ${libraries} include struts-core.jar (webapp/WEB-INF/lib/)
>
>
>        
>      Compile the source files
>           
>              
>           
>        
>
> Still not find the solution why I have to re-start tomcat after I do ant
> -property build.xml
>
> Thanks a lot!
> --
> Lu Ying
>
>
>
>
>
>> if your going to run your struts application (out of container) then you
>> will need struts-core-.jar on CLASSPATH e.g.
>>
>> 
>> org.easymock
>> easymock
>> 2.0
>> 
>> 1.5
>> 1.5
>>
>> classpath=$STRUTS2_HOME/core/target/struts2-core-2.1.8.jar;%CLASSPATH%
>> 
>> test
>> 
>>
>> 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: Mon, 17 May 2010 14:50:47 -0400
>>  > From: em...@encs.concordia.ca
>>  > To: mrc...@yahoo.com
>>  > CC: user@struts.apache.org; mgai...@hotmail.com
>>  > Subject: Re: "java.lang.NoClassDefFoundError:
>> org/apache/struts2/util/ObjectFactoryDestroyable"
>>  >
>>  > Hi Rebecca, Martin,
>>  >
>>  > > Could you be having something going crazy with your build scripts
>> or something where the struts core jar isn't getting put in the right
>> spot?
>>  >
>>  >
>>  > >> check to see if struts2-core-.jar is located in
>>  > YourWebApp/WEB-INF/lib
>>  >
>>  > Yes. it is there.
>>  >
>>  > Tomcat 6.0, jdk1.6, ant-1.6.2.
>>  >
>>  > If I restart tomcat, the error is gone.
>>  >
>>  > The error is shown only when I re-install source codes and did not
>>  > reload tomcat.
>>  >
>>  > Some possible places that I should pay special attention? I am using
>> ant
>>  > 1.6.2. Could this cause some potential problems? How come restart
>>  > tomcat, errors are gone?
>>  >
>>  > Thanks a lot!
>>  > --
>>  > Lu Ying
>>  >
>>  >
>>  >
>>  > >
>>  > >
>>  > > - Original Message 
>>  > > From: Emi Lu
>>  > > To: user@struts.apache.org
>>  > > Sent: Mon, May 17, 2010 10:48:38 AM
>>  > > Subject: "java.lang.NoClassDefFoundError:
>> org/apache/struts2/util/ObjectFactoryDestroyable"
>>  > >
>>  > > Good morning List,
>>  > >
>>  > > Using struts2.1.8.1, when I reinstall my application, I always got
>> the following errors "java.lang.NoClassDefFoundError:
>> org/apache/struts2/util/ObjectFactoryDestroyable"
>>  > >
>>  > > But in struts.jar does contain this class.
>>  > >
>>  > > Could someone help and tell me what cause the problem?
>>  > >
>>  > > Thanks a lot
>>  > > --
>>  > > Lu Ying
>>  > >
>>  > >
>>  > >
>>  > >
>>  > > SEVERE: Exception invoking periodic operation:
>>  > > java.lang.NoClassDefFoundError:
>> org/apache/struts2/util/ObjectFactoryDestroyable
>>  > > at
>> org.apache.struts2.dispatcher.Dispatcher.cleanup(Dispatcher.java:265)
>>  > > at
>>
>> org.apache.struts2.dispatcher.FilterDispatcher.destroy(FilterDispatcher.java:233)
>>  > > at
>>
>> org.apache.catalina.core.ApplicationFilterConfig.release(ApplicationFilterConfig.java:357)
>>  > > at
>>
>> org.apache.catalina.core.StandardContext.filterStop(StandardContext.java:3873)
>>  > > at
>> org.apache.catalina.core.StandardContext.stop(StandardContext.java:4605)
>>  > > at
>> org.apache.catalina.core.StandardContext.reload(StandardContext.java:3222)
>>  > > at
>>
>> org.apache.catalina.loader.WebappLoader.backgroundProcess(WebappLoader.java:403)
>>  > > at
>>
>> org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.java:1309)
>>  > > at
>>
>> org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.

RE: "java.lang.NoClassDefFoundError: org/apache/struts2/util/ObjectFactoryDestroyable"

2010-05-17 Thread Martin Gainty

there must be a translation problem here..

put your struts-core .jar ON the classpath e.g.

SET CLASSPATH=struts2-core-.jar;$CLASSPATH
export CLASSPATH 

?
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: Mon, 17 May 2010 16:03:23 -0400
> From: em...@encs.concordia.ca
> To: user@struts.apache.org
> CC: hgonza...@gmail.com
> Subject: Re: "java.lang.NoClassDefFoundError: 
> org/apache/struts2/util/ObjectFactoryDestroyable"
> 
> 
> > Are you placing your struts jars in the tomcat lib directory ?
> 
> No.
> 
> jar files are saved under webapp/WEB-INF/lib/ directory.
> 
> 
> > If so, try removing from there and placing them inside the war (web 
> > application)
> 
> I do not use war to deploy the web application. I am using ant to 
> install complied codes.
> 
> 
> Tried may online docs, still did not find any solution. The confusing 
> part for me is that:
> 
> I do not make any changes, just restart tomcat6, everything works fine. 
> Otherwise, got "org/apache/struts2/util/ObjectFactoryDestroyable" error.
> 
> Thanks a lot!
> --
> Lu Ying
> 
> 
> 
> 
> 
> >
> > On Mon, May 17, 2010 at 4:16 PM, Emi Lu  wrote:
> >> The most similar question I could find is:
> >>
> >> https://issues.apache.org/jira/browse/WW-2921
> >>
> >> But did not find any solutions?
> >>
> >> Someone knows the solution?
> >>
> >> Thanks a lot!
> >> --
> >> Lu Ying
> >>
> >>
> >>
> >>
> >>
> >> On 05/17/2010 02:50 PM, Emi Lu wrote:
> >>>
> >>> Hi Rebecca, Martin,
> >>>
>  Could you be having something going crazy with your build scripts or
>  something where the struts core jar isn't getting put in the right spot?
> >>>
> >>>
> >>>   >>  check to see if struts2-core-.jar is located in
> >>> YourWebApp/WEB-INF/lib
> >>>
> >>> Yes. it is there.
> >>>
> >>> Tomcat 6.0, jdk1.6, ant-1.6.2.
> >>>
> >>> If I restart tomcat, the error is gone.
> >>>
> >>> The error is shown only when I re-install source codes and did not
> >>> reload tomcat.
> >>>
> >>> Some possible places that I should pay special attention? I am using ant
> >>> 1.6.2. Could this cause some potential problems? How come restart
> >>> tomcat, errors are gone?
> >>>
> >>> Thanks a lot!
> >>> --
> >>> Lu Ying
> >>>
> >>>
> >>>
> 
> 
>  - Original Message 
>  From: Emi Lu
>  To: user@struts.apache.org
>  Sent: Mon, May 17, 2010 10:48:38 AM
>  Subject: "java.lang.NoClassDefFoundError:
>  org/apache/struts2/util/ObjectFactoryDestroyable"
> 
>  Good morning List,
> 
>  Using struts2.1.8.1, when I reinstall my application, I always got the
>  following errors "java.lang.NoClassDefFoundError:
>  org/apache/struts2/util/ObjectFactoryDestroyable"
> 
>  But in struts.jar does contain this class.
> 
>  Could someone help and tell me what cause the problem?
> 
>  Thanks a lot
>  --
>  Lu Ying
> 
> 
> 
> 
>  SEVERE: Exception invoking periodic operation:
>  java.lang.NoClassDefFoundError:
>  org/apache/struts2/util/ObjectFactoryDestroyable
>  at org.apache.struts2.dispatcher.Dispatcher.cleanup(Dispatcher.java:265)
>  at
> 
>  org.apache.struts2.dispatcher.FilterDispatcher.destroy(FilterDispatcher.java:233)
> 
>  at
> 
>  org.apache.catalina.core.ApplicationFilterConfig.release(ApplicationFilterConfig.java:357)
> 
>  at
> 
>  org.apache.catalina.core.StandardContext.filterStop(StandardContext.java:3873)
> 
>  at
>  org.apache.catalina.core.StandardContext.stop(StandardContext.java:4605)
>  at
> 
>  org.apache.catalina.core.StandardContext.reload(StandardContext.java:3222)
> 
>  at
> 
>  org.apache.catalina.loader.WebappLoader.backgroundProcess(WebappLoader.java:403)
> 
>  at
> 
>  org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.java:1309)
> 
>  at
> 
>  org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.proc

Re: "java.lang.NoClassDefFoundError: org/apache/struts2/util/ObjectFactoryDestroyable"

2010-05-17 Thread Emi Lu
In my ant. build.xml file, I have classpath lib included shown as the 
following:



   




  

   
   ---. ${libraries} include struts-core.jar (webapp/WEB-INF/lib/)



  Compile the source files
   
  
   


Still not find the solution why I have to re-start tomcat after I do ant 
-property build.xml


Thanks a lot!
--
Lu Ying






if your going to run your struts application (out of container) then you
will need struts-core-.jar on CLASSPATH e.g.


org.easymock
easymock
2.0

1.5
1.5
classpath=$STRUTS2_HOME/core/target/struts2-core-2.1.8.jar;%CLASSPATH%

test


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: Mon, 17 May 2010 14:50:47 -0400
 > From: em...@encs.concordia.ca
 > To: mrc...@yahoo.com
 > CC: user@struts.apache.org; mgai...@hotmail.com
 > Subject: Re: "java.lang.NoClassDefFoundError:
org/apache/struts2/util/ObjectFactoryDestroyable"
 >
 > Hi Rebecca, Martin,
 >
 > > Could you be having something going crazy with your build scripts
or something where the struts core jar isn't getting put in the right spot?
 >
 >
 > >> check to see if struts2-core-.jar is located in
 > YourWebApp/WEB-INF/lib
 >
 > Yes. it is there.
 >
 > Tomcat 6.0, jdk1.6, ant-1.6.2.
 >
 > If I restart tomcat, the error is gone.
 >
 > The error is shown only when I re-install source codes and did not
 > reload tomcat.
 >
 > Some possible places that I should pay special attention? I am using ant
 > 1.6.2. Could this cause some potential problems? How come restart
 > tomcat, errors are gone?
 >
 > Thanks a lot!
 > --
 > Lu Ying
 >
 >
 >
 > >
 > >
 > > - Original Message 
 > > From: Emi Lu
 > > To: user@struts.apache.org
 > > Sent: Mon, May 17, 2010 10:48:38 AM
 > > Subject: "java.lang.NoClassDefFoundError:
org/apache/struts2/util/ObjectFactoryDestroyable"
 > >
 > > Good morning List,
 > >
 > > Using struts2.1.8.1, when I reinstall my application, I always got
the following errors "java.lang.NoClassDefFoundError:
org/apache/struts2/util/ObjectFactoryDestroyable"
 > >
 > > But in struts.jar does contain this class.
 > >
 > > Could someone help and tell me what cause the problem?
 > >
 > > Thanks a lot
 > > --
 > > Lu Ying
 > >
 > >
 > >
 > >
 > > SEVERE: Exception invoking periodic operation:
 > > java.lang.NoClassDefFoundError:
org/apache/struts2/util/ObjectFactoryDestroyable
 > > at
org.apache.struts2.dispatcher.Dispatcher.cleanup(Dispatcher.java:265)
 > > at
org.apache.struts2.dispatcher.FilterDispatcher.destroy(FilterDispatcher.java:233)
 > > at
org.apache.catalina.core.ApplicationFilterConfig.release(ApplicationFilterConfig.java:357)
 > > at
org.apache.catalina.core.StandardContext.filterStop(StandardContext.java:3873)
 > > at
org.apache.catalina.core.StandardContext.stop(StandardContext.java:4605)
 > > at
org.apache.catalina.core.StandardContext.reload(StandardContext.java:3222)
 > > at
org.apache.catalina.loader.WebappLoader.backgroundProcess(WebappLoader.java:403)
 > > at
org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.java:1309)
 > > at
org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1601)
 > > at
org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1610)
 > > at
org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1610)
 > > at
org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1590)
 > > at java.lang.Thread.run(Thread.java:619)
 > >
 > > -
 > > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
 > > For additional commands, e-mail: user-h...@struts.apache.org
 > >
 > >
 > >
 >


The New Busy think 9 to 5 is 

Re: "java.lang.NoClassDefFoundError: org/apache/struts2/util/ObjectFactoryDestroyable"

2010-05-17 Thread Ty Connell
Greetings,

Reading the jira issue below, it seems that the developers believe this to
be a Tomcat classloader issue.  I know little (read: nothing) about
classloaders, but a few observations I have using Google-fu:

1) Classloaders in Tomcat are "twitchy", and you may be stuck with this
behavior.  Unless of course you want to master Tomcat classloaders.
2) Servlet.jar missing or in 2 places can cause issues.
3) Struts core jar file in 2 places can cause issues.

This looks like this is happening during a cleanup op (i.e., after you have
re-deployed) so maybe it's trying to use a class it *thinks* it has but
which has already been removed?

I'm curious - any reason why you are not deploying using a war file?  It
might be interesting to see what happens if you deploy it that way.

-Ty



On Mon, May 17, 2010 at 3:16 PM, Emi Lu  wrote:

> The most similar question I could find is:
>
> https://issues.apache.org/jira/browse/WW-2921
>
> But did not find any solutions?
>
> Someone knows the solution?
>
> Thanks a lot!
> --
> Lu Ying
>
>
>
>
>
> On 05/17/2010 02:50 PM, Emi Lu wrote:
>
>> Hi Rebecca, Martin,
>>
>>  Could you be having something going crazy with your build scripts or
>>> something where the struts core jar isn't getting put in the right spot?
>>>
>>
>>
>>  >> check to see if struts2-core-.jar is located in
>> YourWebApp/WEB-INF/lib
>>
>> Yes. it is there.
>>
>> Tomcat 6.0, jdk1.6, ant-1.6.2.
>>
>> If I restart tomcat, the error is gone.
>>
>> The error is shown only when I re-install source codes and did not
>> reload tomcat.
>>
>> Some possible places that I should pay special attention? I am using ant
>> 1.6.2. Could this cause some potential problems? How come restart
>> tomcat, errors are gone?
>>
>> Thanks a lot!
>> --
>> Lu Ying
>>
>>
>>
>>
>>>
>>> - Original Message 
>>> From: Emi Lu
>>> To: user@struts.apache.org
>>> Sent: Mon, May 17, 2010 10:48:38 AM
>>> Subject: "java.lang.NoClassDefFoundError:
>>> org/apache/struts2/util/ObjectFactoryDestroyable"
>>>
>>> Good morning List,
>>>
>>> Using struts2.1.8.1, when I reinstall my application, I always got the
>>> following errors "java.lang.NoClassDefFoundError:
>>> org/apache/struts2/util/ObjectFactoryDestroyable"
>>>
>>> But in struts.jar does contain this class.
>>>
>>> Could someone help and tell me what cause the problem?
>>>
>>> Thanks a lot
>>> --
>>> Lu Ying
>>>
>>>
>>>
>>>
>>> SEVERE: Exception invoking periodic operation:
>>> java.lang.NoClassDefFoundError:
>>> org/apache/struts2/util/ObjectFactoryDestroyable
>>> at org.apache.struts2.dispatcher.Dispatcher.cleanup(Dispatcher.java:265)
>>> at
>>>
>>> org.apache.struts2.dispatcher.FilterDispatcher.destroy(FilterDispatcher.java:233)
>>>
>>> at
>>>
>>> org.apache.catalina.core.ApplicationFilterConfig.release(ApplicationFilterConfig.java:357)
>>>
>>> at
>>>
>>> org.apache.catalina.core.StandardContext.filterStop(StandardContext.java:3873)
>>>
>>> at
>>> org.apache.catalina.core.StandardContext.stop(StandardContext.java:4605)
>>> at
>>>
>>> org.apache.catalina.core.StandardContext.reload(StandardContext.java:3222)
>>>
>>> at
>>>
>>> org.apache.catalina.loader.WebappLoader.backgroundProcess(WebappLoader.java:403)
>>>
>>> at
>>>
>>> org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.java:1309)
>>>
>>> at
>>>
>>> org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1601)
>>>
>>> at
>>>
>>> org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1610)
>>>
>>> at
>>>
>>> org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1610)
>>>
>>> at
>>>
>>> org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1590)
>>>
>>> at java.lang.Thread.run(Thread.java:619)
>>>
>>> -
>>> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
>>> For additional commands, e-mail: user-h...@struts.apache.org
>>>
>>>
>>>
>>>
>>
>> -
>> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
>> For additional commands, e-mail: user-h...@struts.apache.org
>>
>
>
> -
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
>
>


Re: "java.lang.NoClassDefFoundError: org/apache/struts2/util/ObjectFactoryDestroyable"

2010-05-17 Thread Emi Lu



Are you placing your struts jars in the tomcat lib directory ?


No.

jar files are saved under webapp/WEB-INF/lib/ directory.



If so, try removing from there and placing them inside the war (web application)


I do not use war to deploy the web application. I am using ant to 
install complied codes.



Tried may online docs, still did not find any solution. The confusing 
part for me is that:


I do not make any changes, just restart tomcat6, everything works fine. 
Otherwise, got "org/apache/struts2/util/ObjectFactoryDestroyable" error.


Thanks a lot!
--
Lu Ying







On Mon, May 17, 2010 at 4:16 PM, Emi Lu  wrote:

The most similar question I could find is:

https://issues.apache.org/jira/browse/WW-2921

But did not find any solutions?

Someone knows the solution?

Thanks a lot!
--
Lu Ying





On 05/17/2010 02:50 PM, Emi Lu wrote:


Hi Rebecca, Martin,


Could you be having something going crazy with your build scripts or
something where the struts core jar isn't getting put in the right spot?



  >>  check to see if struts2-core-.jar is located in
YourWebApp/WEB-INF/lib

Yes. it is there.

Tomcat 6.0, jdk1.6, ant-1.6.2.

If I restart tomcat, the error is gone.

The error is shown only when I re-install source codes and did not
reload tomcat.

Some possible places that I should pay special attention? I am using ant
1.6.2. Could this cause some potential problems? How come restart
tomcat, errors are gone?

Thanks a lot!
--
Lu Ying






- Original Message 
From: Emi Lu
To: user@struts.apache.org
Sent: Mon, May 17, 2010 10:48:38 AM
Subject: "java.lang.NoClassDefFoundError:
org/apache/struts2/util/ObjectFactoryDestroyable"

Good morning List,

Using struts2.1.8.1, when I reinstall my application, I always got the
following errors "java.lang.NoClassDefFoundError:
org/apache/struts2/util/ObjectFactoryDestroyable"

But in struts.jar does contain this class.

Could someone help and tell me what cause the problem?

Thanks a lot
--
Lu Ying




SEVERE: Exception invoking periodic operation:
java.lang.NoClassDefFoundError:
org/apache/struts2/util/ObjectFactoryDestroyable
at org.apache.struts2.dispatcher.Dispatcher.cleanup(Dispatcher.java:265)
at

org.apache.struts2.dispatcher.FilterDispatcher.destroy(FilterDispatcher.java:233)

at

org.apache.catalina.core.ApplicationFilterConfig.release(ApplicationFilterConfig.java:357)

at

org.apache.catalina.core.StandardContext.filterStop(StandardContext.java:3873)

at
org.apache.catalina.core.StandardContext.stop(StandardContext.java:4605)
at

org.apache.catalina.core.StandardContext.reload(StandardContext.java:3222)

at

org.apache.catalina.loader.WebappLoader.backgroundProcess(WebappLoader.java:403)

at

org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.java:1309)

at

org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1601)

at

org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1610)

at

org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1610)

at

org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1590)

at java.lang.Thread.run(Thread.java:619)

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






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



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









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



Re: "java.lang.NoClassDefFoundError: org/apache/struts2/util/ObjectFactoryDestroyable"

2010-05-17 Thread hernan gonzalez
Are you placing your struts jars in the tomcat lib directory ?
If so, try removing from there and placing them inside the war (web application)

On Mon, May 17, 2010 at 4:16 PM, Emi Lu  wrote:
> The most similar question I could find is:
>
> https://issues.apache.org/jira/browse/WW-2921
>
> But did not find any solutions?
>
> Someone knows the solution?
>
> Thanks a lot!
> --
> Lu Ying
>
>
>
>
>
> On 05/17/2010 02:50 PM, Emi Lu wrote:
>>
>> Hi Rebecca, Martin,
>>
>>> Could you be having something going crazy with your build scripts or
>>> something where the struts core jar isn't getting put in the right spot?
>>
>>
>>  >> check to see if struts2-core-.jar is located in
>> YourWebApp/WEB-INF/lib
>>
>> Yes. it is there.
>>
>> Tomcat 6.0, jdk1.6, ant-1.6.2.
>>
>> If I restart tomcat, the error is gone.
>>
>> The error is shown only when I re-install source codes and did not
>> reload tomcat.
>>
>> Some possible places that I should pay special attention? I am using ant
>> 1.6.2. Could this cause some potential problems? How come restart
>> tomcat, errors are gone?
>>
>> Thanks a lot!
>> --
>> Lu Ying
>>
>>
>>
>>>
>>>
>>> - Original Message 
>>> From: Emi Lu
>>> To: user@struts.apache.org
>>> Sent: Mon, May 17, 2010 10:48:38 AM
>>> Subject: "java.lang.NoClassDefFoundError:
>>> org/apache/struts2/util/ObjectFactoryDestroyable"
>>>
>>> Good morning List,
>>>
>>> Using struts2.1.8.1, when I reinstall my application, I always got the
>>> following errors "java.lang.NoClassDefFoundError:
>>> org/apache/struts2/util/ObjectFactoryDestroyable"
>>>
>>> But in struts.jar does contain this class.
>>>
>>> Could someone help and tell me what cause the problem?
>>>
>>> Thanks a lot
>>> --
>>> Lu Ying
>>>
>>>
>>>
>>>
>>> SEVERE: Exception invoking periodic operation:
>>> java.lang.NoClassDefFoundError:
>>> org/apache/struts2/util/ObjectFactoryDestroyable
>>> at org.apache.struts2.dispatcher.Dispatcher.cleanup(Dispatcher.java:265)
>>> at
>>>
>>> org.apache.struts2.dispatcher.FilterDispatcher.destroy(FilterDispatcher.java:233)
>>>
>>> at
>>>
>>> org.apache.catalina.core.ApplicationFilterConfig.release(ApplicationFilterConfig.java:357)
>>>
>>> at
>>>
>>> org.apache.catalina.core.StandardContext.filterStop(StandardContext.java:3873)
>>>
>>> at
>>> org.apache.catalina.core.StandardContext.stop(StandardContext.java:4605)
>>> at
>>>
>>> org.apache.catalina.core.StandardContext.reload(StandardContext.java:3222)
>>>
>>> at
>>>
>>> org.apache.catalina.loader.WebappLoader.backgroundProcess(WebappLoader.java:403)
>>>
>>> at
>>>
>>> org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.java:1309)
>>>
>>> at
>>>
>>> org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1601)
>>>
>>> at
>>>
>>> org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1610)
>>>
>>> at
>>>
>>> org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1610)
>>>
>>> at
>>>
>>> org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1590)
>>>
>>> at java.lang.Thread.run(Thread.java:619)
>>>
>>> -
>>> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
>>> For additional commands, e-mail: user-h...@struts.apache.org
>>>
>>>
>>>
>>
>>
>> -
>> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
>> For additional commands, e-mail: user-h...@struts.apache.org
>
>
> -
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
>
>



-- 
Hernán J. González
http://hjg.com.ar/

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



Re: "java.lang.NoClassDefFoundError: org/apache/struts2/util/ObjectFactoryDestroyable"

2010-05-17 Thread Emi Lu

The most similar question I could find is:

https://issues.apache.org/jira/browse/WW-2921

But did not find any solutions?

Someone knows the solution?

Thanks a lot!
--
Lu Ying





On 05/17/2010 02:50 PM, Emi Lu wrote:

Hi Rebecca, Martin,


Could you be having something going crazy with your build scripts or
something where the struts core jar isn't getting put in the right spot?



 >> check to see if struts2-core-.jar is located in
YourWebApp/WEB-INF/lib

Yes. it is there.

Tomcat 6.0, jdk1.6, ant-1.6.2.

If I restart tomcat, the error is gone.

The error is shown only when I re-install source codes and did not
reload tomcat.

Some possible places that I should pay special attention? I am using ant
1.6.2. Could this cause some potential problems? How come restart
tomcat, errors are gone?

Thanks a lot!
--
Lu Ying






- Original Message 
From: Emi Lu
To: user@struts.apache.org
Sent: Mon, May 17, 2010 10:48:38 AM
Subject: "java.lang.NoClassDefFoundError:
org/apache/struts2/util/ObjectFactoryDestroyable"

Good morning List,

Using struts2.1.8.1, when I reinstall my application, I always got the
following errors "java.lang.NoClassDefFoundError:
org/apache/struts2/util/ObjectFactoryDestroyable"

But in struts.jar does contain this class.

Could someone help and tell me what cause the problem?

Thanks a lot
--
Lu Ying




SEVERE: Exception invoking periodic operation:
java.lang.NoClassDefFoundError:
org/apache/struts2/util/ObjectFactoryDestroyable
at org.apache.struts2.dispatcher.Dispatcher.cleanup(Dispatcher.java:265)
at
org.apache.struts2.dispatcher.FilterDispatcher.destroy(FilterDispatcher.java:233)

at
org.apache.catalina.core.ApplicationFilterConfig.release(ApplicationFilterConfig.java:357)

at
org.apache.catalina.core.StandardContext.filterStop(StandardContext.java:3873)

at
org.apache.catalina.core.StandardContext.stop(StandardContext.java:4605)
at
org.apache.catalina.core.StandardContext.reload(StandardContext.java:3222)

at
org.apache.catalina.loader.WebappLoader.backgroundProcess(WebappLoader.java:403)

at
org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.java:1309)

at
org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1601)

at
org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1610)

at
org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1610)

at
org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1590)

at java.lang.Thread.run(Thread.java:619)

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






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



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



Re: "java.lang.NoClassDefFoundError: org/apache/struts2/util/ObjectFactoryDestroyable"

2010-05-17 Thread Emi Lu

Hi Rebecca, Martin,


Could you be having something going crazy with your build scripts or something 
where the struts core jar isn't getting put in the right spot?



>> check to see if struts2-core-.jar is located in 
YourWebApp/WEB-INF/lib


Yes. it is there.

Tomcat 6.0, jdk1.6, ant-1.6.2.

If I restart tomcat, the error is gone.

The error is shown only when I re-install source codes and did not 
reload tomcat.


Some possible places that I should pay special attention? I am using ant 
1.6.2. Could this cause some potential problems? How come restart 
tomcat, errors are gone?


Thanks a lot!
--
Lu Ying






- Original Message 
From: Emi Lu
To: user@struts.apache.org
Sent: Mon, May 17, 2010 10:48:38 AM
Subject: "java.lang.NoClassDefFoundError: 
org/apache/struts2/util/ObjectFactoryDestroyable"

Good morning List,

Using struts2.1.8.1, when I reinstall my application, I always got the following errors 
"java.lang.NoClassDefFoundError: 
org/apache/struts2/util/ObjectFactoryDestroyable"

But in struts.jar does contain this class.

Could someone help and tell me what cause the problem?

Thanks a lot
--
Lu Ying




SEVERE: Exception invoking periodic operation:
java.lang.NoClassDefFoundError: org/apache/struts2/util/ObjectFactoryDestroyable
at org.apache.struts2.dispatcher.Dispatcher.cleanup(Dispatcher.java:265)
at 
org.apache.struts2.dispatcher.FilterDispatcher.destroy(FilterDispatcher.java:233)
at 
org.apache.catalina.core.ApplicationFilterConfig.release(ApplicationFilterConfig.java:357)
at 
org.apache.catalina.core.StandardContext.filterStop(StandardContext.java:3873)
at org.apache.catalina.core.StandardContext.stop(StandardContext.java:4605)
at org.apache.catalina.core.StandardContext.reload(StandardContext.java:3222)
at 
org.apache.catalina.loader.WebappLoader.backgroundProcess(WebappLoader.java:403)
at 
org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.java:1309)
at 
org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1601)
at 
org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1610)
at 
org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1610)
at 
org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1590)
 at java.lang.Thread.run(Thread.java:619)

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






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



Re: "java.lang.NoClassDefFoundError: org/apache/struts2/util/ObjectFactoryDestroyable"

2010-05-17 Thread Rebecca Case
Could you be having something going crazy with your build scripts or something 
where the struts core jar isn't getting put in the right spot?


- Original Message 
From: Emi Lu 
To: user@struts.apache.org
Sent: Mon, May 17, 2010 10:48:38 AM
Subject: "java.lang.NoClassDefFoundError: 
org/apache/struts2/util/ObjectFactoryDestroyable"

Good morning List,

Using struts2.1.8.1, when I reinstall my application, I always got the 
following errors "java.lang.NoClassDefFoundError: 
org/apache/struts2/util/ObjectFactoryDestroyable"

But in struts.jar does contain this class.

Could someone help and tell me what cause the problem?

Thanks a lot
--
Lu Ying




SEVERE: Exception invoking periodic operation:
java.lang.NoClassDefFoundError: org/apache/struts2/util/ObjectFactoryDestroyable
at org.apache.struts2.dispatcher.Dispatcher.cleanup(Dispatcher.java:265)
at 
org.apache.struts2.dispatcher.FilterDispatcher.destroy(FilterDispatcher.java:233)
at 
org.apache.catalina.core.ApplicationFilterConfig.release(ApplicationFilterConfig.java:357)
at 
org.apache.catalina.core.StandardContext.filterStop(StandardContext.java:3873)
at org.apache.catalina.core.StandardContext.stop(StandardContext.java:4605)
at org.apache.catalina.core.StandardContext.reload(StandardContext.java:3222)
at 
org.apache.catalina.loader.WebappLoader.backgroundProcess(WebappLoader.java:403)
at 
org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.java:1309)
at 
org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1601)
at 
org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1610)
at 
org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1610)
at 
org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1590)
at java.lang.Thread.run(Thread.java:619)

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


  

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



"java.lang.NoClassDefFoundError: org/apache/struts2/util/ObjectFactoryDestroyable"

2010-05-17 Thread Emi Lu

Good morning List,

Using struts2.1.8.1, when I reinstall my application, I always got the 
following errors "java.lang.NoClassDefFoundError: 
org/apache/struts2/util/ObjectFactoryDestroyable"


But in struts.jar does contain this class.

Could someone help and tell me what cause the problem?

Thanks a lot
--
Lu Ying




SEVERE: Exception invoking periodic operation:
java.lang.NoClassDefFoundError: 
org/apache/struts2/util/ObjectFactoryDestroyable

at org.apache.struts2.dispatcher.Dispatcher.cleanup(Dispatcher.java:265)
at 
org.apache.struts2.dispatcher.FilterDispatcher.destroy(FilterDispatcher.java:233)
at 
org.apache.catalina.core.ApplicationFilterConfig.release(ApplicationFilterConfig.java:357)
at 
org.apache.catalina.core.StandardContext.filterStop(StandardContext.java:3873)

at org.apache.catalina.core.StandardContext.stop(StandardContext.java:4605)
at 
org.apache.catalina.core.StandardContext.reload(StandardContext.java:3222)
at 
org.apache.catalina.loader.WebappLoader.backgroundProcess(WebappLoader.java:403)
at 
org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.java:1309)
at 
org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1601)
at 
org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1610)
at 
org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1610)
at 
org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1590)

at java.lang.Thread.run(Thread.java:619)

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



Re: Online docs messed up

2010-05-17 Thread Lukasz Lenart
2010/5/14 nuwan chandrasoma :
> I also noticed that, i think the wiki .css is messed up,

It's because of new Confluence and auto export plugin :-(
I can restore the previous version of the css file but it looks like
everyday a new export is generated :P


Regards
-- 
Łukasz
http://www.lenart.org.pl/
Kapituła Javarsovia 2010
http://javarsovia.pl

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



Re: Manipulating Strings with Struts²

2010-05-17 Thread Lukasz Lenart
2010/5/17 Michaël JERUSALMI :
> I'm working on a Java Web App under Struts², and i'm having trouble using the 
> taglib s:if.
> I have a test , but instead of writing a test like this  test="string == myValue">,
> I'd like to write something like this :  test="string.contains(myValue)"> , or using a substring function
> Do such functions exist ? How to use it ?

Yes, with OGNL, please check that tutorial:
http://www.roseindia.net/struts/struts2/struts2controltags/if-else.shtml


Regards
-- 
Łukasz
http://www.lenart.org.pl/
Kapituła Javarsovia 2010
http://javarsovia.pl

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



Manipulating Strings with Struts²

2010-05-17 Thread Michaël JERUSALMI

Hi everyone,

I'm working on a Java Web App under Struts², and i'm having trouble using the 
taglib s:if.
I have a test , but instead of writing a test like this ,
I'd like to write something like this :  
, or using a substring function
Do such functions exist ? How to use it ?
Thanks for your help.

Michael
  
_
Installez gratuitement les nouvelles Emoch'ticones !
http://www.ilovemessenger.fr/emoticones/telecharger-emoticones-emochticones.aspx

Re: Help, struts 2.1.8 with Struts 2 Full Hibernate Plugin 2.1.3 GA

2010-05-17 Thread Dale Newfield

On 5/16/10 6:50 PM, Fabio Perfetti wrote:

Oh! sorry...but i resolved!! all day trying and the problem was that i
allocat the dipendenteDao in the method, but i must allocate it as an
attribute of action.
So i put in the action

private DipendenteDAO dipendenteDao = new DipendenteService();

and i resolved!!

Thanks all


Typically you want more separation.  You want the DAO layer interacting 
directly with the database, you want the service layer doing business 
logic, and you want the web layer to connect the web pages with the 
business logic.  So I wouldn't suggest having any action directly 
utilizing DAOs, and I wouldn't suggest that you ever make the service 
layer and the DAO layer synonymous, both of which you appear to be doing...


-Dale


2010/5/16 Dale Newfield mailto:d...@newfield.org>>

On 5/16/10 1:13 PM, Fabio Perfetti wrote:

Hi! I am having problems with struts 2.1.8 and the plugin for
integrate
hibernate.


java.lang.NullPointerException
at

it.tesina.model.DipendenteService.getByUsername(DipendenteService.java:42)


public Dipendente getByUsername(String username){
Dipendente dipendente = null;
try{
System.out.println(session);
String queryString = "from Dipendente where USERNAME = :username";
Query query = session.createQuery(queryString);
System.out.println(query);
query.setString("username", username);
Object queryResult = query.uniqueResult();
dipendente = (Dipendente) queryResult;
} catch (Exception e) {
e.printStackTrace();
}
return dipendente;
}



So which of those lines is #42?

If I had to guess I'd say it's the session.createQuery() call if you
aren't getting your session initialized correctly...what's the
println show?

-Dale





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



Re: Struts2 + Authorization

2010-05-17 Thread RogerV


Fabio Perfetti wrote:
> 
> Hi all, anyone can suggest me how implement a simple authorization
> process?
> I looked for Shiro but i am looking for something simple simple
> simple...an
> interceptor?
> 
> Have a nice day
> 
> 

I'd suggest that you take a look at Spring Security. It can be
simple,simple,simple but has the ability to scale up to flexible,flexible,
flexible and complex,complex,complex. The added advantage is that it is
designed as a specialist security module and (unless you do something
stupid) all/most of the "gotchas" present in rolling your own are taken care
of.

Regards
-- 
View this message in context: 
http://old.nabble.com/Struts2-%2B-Authorization-tp28581556p28582091.html
Sent from the Struts - User mailing list archive at Nabble.com.


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



Re: Struts2 + Authorization

2010-05-17 Thread Frans Thamura
try to see my cimande project

www.sf.net/projects/cimande

we have interceptor for security

we try to extend the security to share one injection using spring

we also can replace the databse user with LDAP

but we still need big work to make it cool

esp afer see roller's code vrsion 5
-- 
Frans Thamura
Meruvian.
Experiential Tempation of Java and Enterprise OpenSource

Meruvian jTechnopreneur Program (S1) telah hadir, Dapatkan benefit bagi SMK
yang melakukan mapping SKKD, dg program beasiswa dari Gunadarma

Mobile: +6287885901958
Blog & Profile: http://frans.thamura.info

We provide services to migrate your apps to Java (web), in amazing fast and
reliable.


On Mon, May 17, 2010 at 5:15 PM, Fabio Perfetti wrote:

> Hi all, anyone can suggest me how implement a simple authorization process?
> I looked for Shiro but i am looking for something simple simple simple...an
> interceptor?
>
> Have a nice day
>


Struts2 + Authorization

2010-05-17 Thread Fabio Perfetti
Hi all, anyone can suggest me how implement a simple authorization process?
I looked for Shiro but i am looking for something simple simple simple...an
interceptor?

Have a nice day


Re: More action in one view

2010-05-17 Thread Fabio Perfetti
Thanks a lot!! this is what i want! :D
Know i have other problem, but i will open new thread!
Thanks all!!


2010/5/17 Paweł Wielgus 

> Hi Fabio,
> using session for storing such data is ok,
> so after putting a dipendente object into a session under key
> "loggedDipendiente"
> You can call it on jsp like this: (extra space is added!)
>
> < s:property value="%{#session.loggedDipendiente.firstName.nome}" />
>
> Mabe only #session.loggedDipendiente.firstName.nome will work too,
> you have to try it.
>
> Best greetings,
> Paweł Wielgus.
>
>
>
> 2010/5/14 Fabio Perfetti :
> > Hi all, i am a newbie of struts. Before to start i want to say sorry for
> my
> > bad english. I looked for any forum/blogs in my language (italian) :(
> > I am developing a project for a university course.
> >
> > the first page is a login form, if the login success i have to show the
> > index of a nurse or a doctor. It depends from the account.
> > For do this i used a interceptor and all work...
> >
> > Now i want that every page show the information about the worker, for
> > example the name, the surname and the id.
> > At the same time i want to do other action for example search patient,
> > insert new, open a new medical record about a patient ... but any page
> must
> > show the information of the nurse!
> >
> > How can i do? The principal problem is choose the action class.
> >
> > Thanks
> > Fabio Perfetti
> >
>
> -
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
>
>


Re: More action in one view

2010-05-17 Thread Paweł Wielgus
Hi Fabio,
using session for storing such data is ok,
so after putting a dipendente object into a session under key
"loggedDipendiente"
You can call it on jsp like this: (extra space is added!)

< s:property value="%{#session.loggedDipendiente.firstName.nome}" />

Mabe only #session.loggedDipendiente.firstName.nome will work too,
you have to try it.

Best greetings,
Paweł Wielgus.



2010/5/14 Fabio Perfetti :
> Hi all, i am a newbie of struts. Before to start i want to say sorry for my
> bad english. I looked for any forum/blogs in my language (italian) :(
> I am developing a project for a university course.
>
> the first page is a login form, if the login success i have to show the
> index of a nurse or a doctor. It depends from the account.
> For do this i used a interceptor and all work...
>
> Now i want that every page show the information about the worker, for
> example the name, the surname and the id.
> At the same time i want to do other action for example search patient,
> insert new, open a new medical record about a patient ... but any page must
> show the information of the nurse!
>
> How can i do? The principal problem is choose the action class.
>
> Thanks
> Fabio Perfetti
>

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