0 Replies Latest reply on Dec 4, 2006 7:46 AM by anjana patel

    unable to deploy jboss portal (build created from open sourc

    anjana patel Newbie

      I have created the jboss-portal.sar from open source jboss portal version 2.4. when i try to deploy onn jboss 4.04.GA if fails with following exception

      2006-12-04 16:26:34,055 DEBUG [org.jboss.portal.portlet.container.PortletContainer] Loading portlet class org.jboss.portal.core.portlet.test.BasicPortlet
      2006-12-04 16:26:34,055 DEBUG [org.jboss.portal.portlet.container.PortletContainer] Creating portlet object org.jboss.portal.core.portlet.test.BasicPortlet
      2006-12-04 16:26:34,070 DEBUG [org.jboss.portal.portlet.container.PortletContainer] Created portlet object org.jboss.portal.core.portlet.test.BasicPortlet
      2006-12-04 16:26:34,070 DEBUG [org.jboss.portal.portlet.container.PortletContainer] Initialized portlet object org.jboss.portal.core.portlet.test.BasicPortlet
      2006-12-04 16:26:34,070 DEBUG [org.jboss.portal.core.deployment.jboss.PortletAppDeployment] Looking for the WEB-INF path of samples
      2006-12-04 16:26:34,084 ERROR [org.jboss.portal.core.deployment.jboss.PortletAppDeployment] Error when creating instances
      org.hibernate.HibernateException: Unable to locate current JTA transaction

      i have create the portal-mysql-ds.xml with following entries

      <?xml version="1.0" encoding="UTF-8"?>

      <local-tx-datasource>
      <jndi-name>PortalDS</jndi-name>
      <connection-url>jdbc:mysql://localhost:3306/jbossportal?useServerPrepStmts=false&amp;jdbcCompliantTruncation=false</connection-url>
      <driver-class>org.gjt.mm.mysql.Driver</driver-class>
      <user-name>portal</user-name>
      portalpassword
      </local-tx-datasource>


      the above file is copied into Jboss folder
      \server\default\deploy

      can anyone pls guide what is missiing in my environment