<filter> <filter-name>container</filter-name> <filter-class>com.opensymphony.webwork.lifecycle.RequestLifecycleFilter</filter-class> </filter>
<filter-mapping> <filter-name>container</filter-name> <url-pattern>/*</url-pattern> </filter-mapping>
<listener> <listener-class>com.opensymphony.webwork.lifecycle.SessionLifecycleListener</listener-class> </listener>
M
Samuel Mota wrote:
Hi,
I'm not getting my application component initialized correctly ... indeed it is not being initialized (neither incorrectly:) ...
At web.xml the listener is present: <listener>
<listener-class>com.opensymphony.webwork.lifecycle.ApplicationLifecycleListener</listener-class> </listener>
At components.xml I've registered my component: <component> <scope>application</scope> <class>br.com.netset.netwalki.components.LocalSessionFactory</class> <enabler>br.com.netset.netwalki.components.LocalSessionFactoryAware</enabler> </component>
The default constructor of my component is this: public LocalSessionFactory() { if(cfg==null || sf==null) { try { cfg = new Configuration(); cfg.addClass(User.class); sf = cfg.buildSessionFactory(); //TODO: Tratar e logar corretamente as Exceptions } catch (MappingException e) { e.printStackTrace(); } catch (HibernateException e) { e.printStackTrace(); } } }
And finally I've registered the Component Interceptor for my action: <interceptor-ref name="component"/>
What am I missing?
Thanks
+ Samuel G. Mota + [EMAIL PROTECTED] + 55 (11) 4417 7093 + Business Application Dpt. + Netset Servi�os em Tecnologia + a Hypercom Company + http://www.hypercom.com
------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Opensymphony-webwork mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork
------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Opensymphony-webwork mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork
