0 Replies Latest reply on Mar 7, 2006 5:25 AM by wang haiwen

    use seamHBTOOLS publish ear can't run, fund this error!

    wang haiwen Newbie

      use seamHBtools, then update seam.properties\add seam-jnid.properties\update web.xml\update builder.xml like jboss-seam-beta examples.

      javax.naming.NoInitialContextException: Cannot instantiate class: org.jnp.interf
      aces.LocalOnlyContextFactory [Root exception is java.lang.ClassNotFoundException
      : org.jnp.interfaces.LocalOnlyContextFactory]
      at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:6
      57)
      at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:247
      )
      at javax.naming.InitialContext.init(InitialContext.java:223)
      at javax.naming.InitialContext.(InitialContext.java:197)
      at org.jboss.seam.util.NamingHelper.getInitialContext(NamingHelper.java:
      25)
      at org.jboss.seam.util.NamingHelper.getInitialContext(NamingHelper.java:
      36)
      at org.jboss.seam.util.Transactions.getUserTransaction(Transactions.java
      :32)
      at org.jboss.seam.util.Transactions.isTransactionActive(Transactions.jav
      a:21)
      at org.jboss.seam.jsf.SeamExtendedManagedPersistencePhaseListener.begin(
      SeamExtendedManagedPersistencePhaseListener.java:58)
      at org.jboss.seam.jsf.SeamExtendedManagedPersistencePhaseListener.before
      Phase(SeamExtendedManagedPersistencePhaseListener.java:33)
      at org.apache.myfaces.lifecycle.LifecycleImpl.informPhaseListenersBefore
      (LifecycleImpl.java:520)
      at org.apache.myfaces.lifecycle.LifecycleImpl.restoreView(LifecycleImpl.
      java:105)
      at org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java
      :66)
      at javax.faces.webapp.FacesServlet.service(FacesServlet.java:106)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
      icationFilterChain.java:252)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
      ilterChain.java:173)
      at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFi
      lter.java:96)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
      icationFilterChain.java:202)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
      ilterChain.java:173)
      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV
      alve.java:213)
      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextV
      alve.java:178)
      at org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrinc
      ipalValve.java:54)
      at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(Securit
      yAssociationValve.java:174)
      at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValv
      e.java:74)
      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j
      ava:126)
      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j
      ava:105)
      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal
      ve.java:107)
      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.jav
      a:148)
      at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java
      :868)
      at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.p
      rocessConnection(Http11BaseProtocol.java:663)
      at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpo
      int.java:527)
      at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWor
      kerThread.java:112)
      at java.lang.Thread.run(Thread.java:595)
      Caused by: java.lang.ClassNotFoundException: org.jnp.interfaces.LocalOnlyContext
      Factory
      at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoa
      der.java:1338)
      at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoa
      der.java:1187)
      at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
      at java.lang.Class.forName0(Native Method)
      at java.lang.Class.forName(Class.java:242)
      at com.sun.naming.internal.VersionHelper12.loadClass(VersionHelper12.jav
      a:42)
      at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:6
      54)
      ... 32 more
      18:17:40,734 ERROR [[Faces Servlet]] Servlet.service() for servlet Faces Servlet
      threw exception
      java.lang.IllegalStateException: Could not start transaction
      at org.jboss.seam.jsf.SeamExtendedManagedPersistencePhaseListener.begin(
      SeamExtendedManagedPersistencePhaseListener.java:67)
      at org.jboss.seam.jsf.SeamExtendedManagedPersistencePhaseListener.before
      Phase(SeamExtendedManagedPersistencePhaseListener.java:33)
      at org.apache.myfaces.lifecycle.LifecycleImpl.informPhaseListenersBefore
      (LifecycleImpl.java:520)
      at org.apache.myfaces.lifecycle.LifecycleImpl.restoreView(LifecycleImpl.
      java:105)
      at org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java
      :66)
      at javax.faces.webapp.FacesServlet.service(FacesServlet.java:106)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
      icationFilterChain.java:252)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
      ilterChain.java:173)
      at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFi
      lter.java:96)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
      icationFilterChain.java:202)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
      ilterChain.java:173)
      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV
      alve.java:213)
      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextV
      alve.java:178)
      at org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrinc
      ipalValve.java:54)
      at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(Securit
      yAssociationValve.java:174)
      at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValv
      e.java:74)
      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j
      ava:126)
      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j
      ava:105)
      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal
      ve.java:107)
      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.jav
      a:148)
      at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java
      :868)
      at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.p
      rocessConnection(Http11BaseProtocol.java:663)
      at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpo
      int.java:527)
      at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWor
      kerThread.java:112)
      at java.lang.Thread.run(Thread.java:595)
      Caused by: javax.naming.NoInitialContextException: Cannot instantiate class: org
      .jnp.interfaces.LocalOnlyContextFactory [Root exception is java.lang.ClassNotFou
      ndException: org.jnp.interfaces.LocalOnlyContextFactory]
      at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:6
      57)
      at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:247
      )
      at javax.naming.InitialContext.init(InitialContext.java:223)
      at javax.naming.InitialContext.(InitialContext.java:197)
      at org.jboss.seam.util.NamingHelper.getInitialContext(NamingHelper.java:
      25)
      at org.jboss.seam.util.NamingHelper.getInitialContext(NamingHelper.java:
      36)
      at org.jboss.seam.util.Transactions.getUserTransaction(Transactions.java
      :32)
      at org.jboss.seam.util.Transactions.isTransactionActive(Transactions.jav
      a:21)
      at org.jboss.seam.jsf.SeamExtendedManagedPersistencePhaseListener.begin(
      SeamExtendedManagedPersistencePhaseListener.java:58)
      ... 24 more
      Caused by: java.lang.ClassNotFoundException: org.jnp.interfaces.LocalOnlyContext
      Factory
      at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoa
      der.java:1338)
      at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoa
      der.java:1187)
      at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
      at java.lang.Class.forName0(Native Method)
      at java.lang.Class.forName(Class.java:242)
      at com.sun.naming.internal.VersionHelper12.loadClass(VersionHelper12.jav
      a:42)
      at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:6
      54)
      ... 32 more