I am trying to get a SeamTest running which uses a JBPM process,
but I get an exception when I try to retrieve a SEAM component with:

   @Override
            protected void invokeApplication() {
                Register c = (Register) Component.getInstance("register", true);
            }

The component appears in the ApplicationContext and all init messages
look ok. Once I try to work with it I get:

org.jboss.seam.InstantiationException: Could not instantiate Seam component
...
Caused by: javax.naming.NamingException: Local server is not initialized
        at 
org.jnp.interfaces.LocalOnlyContextFactory.getInitialContext(LocalOnlyContextFactory.java:45)
        at javax.naming.spi.NamingManager.getInitialContext(Unknown Source)
        at javax.naming.InitialContext.getDefaultInitCtx(Unknown Source)
        at javax.naming.InitialContext.init(Unknown Source)
        at javax.naming.InitialContext.(Unknown Source)
        at 
org.jboss.seam.util.NamingHelper.getInitialContext(NamingHelper.java:25)


When I comment out the JBPM init parameters from "initServletContext" then the 
SEAM components can be used again, but then I cannot test methods annotated 
with @CreateProcess. Hmm, would be nice to hear some comments... 
My initialization routine is:

  @Override
    public void initServletContext(Map initParams) {
     
        initParams.put(Init.COMPONENT_CLASSES, "org.jboss.seam.core.Ejb");
        initParams.put(Init.JNDI_PATTERN, "#{ejbName}/local");

        initParams.put(Init.COMPONENT_CLASSES, "org.jboss.seam.core.Jbpm");
        initParams.put(Jbpm.PROCESS_DEFINITIONS,
                "register.par/processdefinition.xml");
    }





View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3935580#3935580

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3935580


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to