7 Replies Latest reply on Oct 20, 2005 3:49 AM by Viet

    UserTransaction not found in JBP 2.2.0-ALPHA and JBoss AS 4.

    Jacek Laskowski Newbie

      Hi,

      I'm getting the following exception while deploying JBP 2.2.0-ALPHA (today's build) to JBoss AS 4.0.3. Why is that?

      22:34:32,100 INFO [SessionFactoryImpl] Checking 0 named queries
      22:34:32,421 ERROR [JTATransaction] Could not find UserTransaction in JNDI
      javax.naming.NameNotFoundException: UserTransaction not bound
       at org.jnp.server.NamingServer.getBinding(NamingServer.java:514)
       at org.jnp.server.NamingServer.getBinding(NamingServer.java:522)
       at org.jnp.server.NamingServer.getObject(NamingServer.java:528)
       at org.jnp.server.NamingServer.lookup(NamingServer.java:281)
       at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:610)
       at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:701)
       at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:572)
       at javax.naming.InitialContext.lookup(InitialContext.java:351)
       at org.hibernate.transaction.JTATransaction.<init>(JTATransaction.java:60)
       at org.hibernate.transaction.JTATransactionFactory.createTransaction(JTATransactionFactory.java:53)
       at org.hibernate.jdbc.JDBCContext.getTransaction(JDBCContext.java:190)
       at org.hibernate.impl.SessionImpl.getTransaction(SessionImpl.java:1197)
       at org.hibernate.impl.SessionImpl.beginTransaction(SessionImpl.java:1204)
       at org.jboss.portal.core.impl.model.instance.PersistentInstanceContainer.doCheck(PersistentInstanceContainer.java:250)
       at org.jboss.portal.core.impl.model.instance.PersistentInstanceContainer.startService(PersistentInstanceContainer.java:184)
       at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:274)
       at org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:181)
       at org.jboss.portal.common.system.AbstractJBossService.start(AbstractJBossService.java:73)
      


      and when I run /portal/

      22:39:06,355 ERROR [[PortalServletWithPathMapping]] Servlet.service() for servlet PortalServletWithPathMapping threw exception
      java.lang.NullPointerException
       at org.jboss.portal.core.model.portal.DefaultPortalCommandMapper.doMapping(DefaultPortalCommandMapper.java:74)
      


      Jacek