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

Reply via email to