3 Replies Latest reply on Jan 30, 2008 3:41 AM by Olivier Thierry

    Seam2 integration testing - problem with embedded jboss?

    Piotr Porzucek Newbie

      Hi,

      I'm using Seam 2.0.1.CR1. I set up the embedded jboss and I've encountered a strange exception while running very simple integration test:



      Caused by: org.jboss.seam.InstantiationException: Could not instantiate Seam component: menadzerKont
      a
       at org.jboss.seam.Component.newInstance(Component.java:1970)
       at org.jboss.seam.Component.getInstance(Component.java:1873)
       at org.jboss.seam.Component.getInstance(Component.java:1840)
       at org.jboss.seam.Namespace.getComponentInstance(Namespace.java:55)
       at (...)
       ... 36 more
      Caused by: java.lang.RuntimeException: PROVIDER_URL not provided in jndi.properties. Automatic disc
      overy not implemented yet.
       at org.jboss.naming.JBossRemotingContextFactory.getInitialContext(JBossRemotingContextFactor
      y.java:158)
       at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:667)
       at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:247)
       at javax.naming.InitialContext.init(InitialContext.java:223)
       at javax.naming.InitialContext.<init>(InitialContext.java:197)
       at org.jboss.seam.util.Naming.getInitialContext(Naming.java:37)
       at org.jboss.seam.util.Naming.getInitialContext(Naming.java:50)
       at org.jboss.seam.Component.instantiateSessionBean(Component.java:1287)
       at org.jboss.seam.Component.in
      
      


      I added an entry "java.naming.provider.url" in the jndi.properties but it resulted in other types of exceptions...

      Piotr