3 Replies Latest reply on Jul 25, 2007 11:53 AM by Stephen More

    JBoss Portal 2.6 - org.hibernate.HibernateException

    Stephen More Newbie

      I am brand new to JBOSS, and I am trying to get the portal running.

      I executed:
      ./run.sh --host=x.x.x.x

      But ran into the following errors:

      15:31:56,069 ERROR [STDERR] org.jboss.portal.portlet.container.PortletInitializationException: The portlet CMSAdminPortlet threw a portlet exception during init

      15:31:56,105 ERROR [STDERR] Caused by: javax.portlet.PortletException: Authorization Service not found

      15:32:00,764 ERROR [URLDeploymentScanner] Incomplete Deployment listing:

      --- MBeans waiting for other MBeans ---
      ObjectName: portal:service=Hibernate
      State: FAILED
      Reason: java.lang.RuntimeException: Couldn't connect to file:/var/jboss-portal-2.6/server/default/deploy/jboss-portal.sar/conf/hibernate/user/setup.txt within 1 seconds. Check your connection parameters or the URL.
      I Depend On:
      jboss.jca:service=DataSourceBinding,name=PortalDS
      Depends On Me:
      portal:service=Module,type=IdentityServiceController

      --- MBEANS THAT ARE THE ROOT CAUSE OF THE PROBLEM ---
      ObjectName: portal:service=Hibernate
      State: FAILED
      Reason: java.lang.RuntimeException: Couldn't connect to file:/var/jboss-portal-2.6/server/default/deploy/jboss-portal.sar/conf/hibernate/user/setup.txt within 1 seconds. Check your connection parameters or the URL.
      I Depend On:
      jboss.jca:service=DataSourceBinding,name=PortalDS
      Depends On Me:
      portal:service=Module,type=IdentityServiceController


      15:32:04,277 INFO [Server] JBoss (MX MicroKernel) [4.0.5.GA (build: CVSTag=Branch_4_0 date=200610162339)] Started in 3m:41s:812ms

      http://localhost:8080/ seems to work,
      but http://localhost:8080/portal throws org.hibernate.HibernateException: Unable to locate current JTA transaction

      Shouldn't jboss-portal-2.6-bundled.zip run right out of the box ?

        • 1. Re: JBoss Portal 2.6 - org.hibernate.HibernateException
          Thomas Heute Master

          It does work out of the box.
          You must have file access troubles or port conflicts, or network issues. With the provided data it's hard to tell.

          Does the running user have read access to: file:/var/jboss-portal-2.6/server/default/deploy/jboss-portal.sar/conf/hibernate/user/setup.txt ?

          • 2. Re: JBoss Portal 2.6 - org.hibernate.HibernateException
            Stephen More Newbie

            Yes, the running user can see that file just fine.

            jboss-portal-2.4.2-bundled.zip started up just fine.

            Here is the full stack trace from 2.6

            2007-07-24 15:31:56,069 ERROR [STDERR] org.jboss.portal.portlet.container.PortletInitializationException: The portlet CMSAdminPortlet threw a portlet exception during init
            2007-07-24 15:31:56,071 ERROR [STDERR] at org.jboss.portal.portlet.impl.jsr168.PortletContainerImpl.start(PortletContainerImpl.java:260)
            2007-07-24 15:31:56,071 ERROR [STDERR] at org.jboss.portal.portlet.impl.container.PortletApplicationContextImpl.startPortletApplication(PortletApplicationContextImpl.java:130)
            2007-07-24 15:31:56,072 ERROR [STDERR] at org.jboss.portal.portlet.deployment.jboss.PortletAppDeployment.start(PortletAppDeployment.java:153)
            2007-07-24 15:31:56,072 ERROR [STDERR] at org.jboss.portal.core.deployment.jboss.PortletAppDeployment.start(PortletAppDeployment.java:94)
            2007-07-24 15:31:56,072 ERROR [STDERR] at org.jboss.portal.server.deployment.jboss.DeploymentContext.start(DeploymentContext.java:99)
            2007-07-24 15:31:56,072 ERROR [STDERR] at org.jboss.portal.server.deployment.jboss.PortalDeploymentInfoContext.add(PortalDeploymentInfoContext.java:84)
            2007-07-24 15:31:56,073 ERROR [STDERR] at org.jboss.portal.server.deployment.jboss.ServerDeployer.registerFactory(ServerDeployer.java:134)
            2007-07-24 15:31:56,073 ERROR [STDERR] at org.jboss.portal.server.deployment.jboss.AbstractDeploymentFactory.registerFactory(AbstractDeploymentFactory.java:113)
            2007-07-24 15:31:56,073 ERROR [STDERR] at org.jboss.portal.server.deployment.jboss.AbstractDeploymentFactory.start(AbstractDeploymentFactory.java:152)
            2007-07-24 15:31:56,074 ERROR [STDERR] at org.jboss.portal.portlet.deployment.jboss.PortletAppDeploymentFactory.start(PortletAppDeploymentFactory.java:219)
            2007-07-24 15:31:56,074 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            2007-07-24 15:31:56,074 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
            2007-07-24 15:31:56,074 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            2007-07-24 15:31:56,074 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:585)
            2007-07-24 15:31:56,075 ERROR [STDERR] at org.jboss.portal.jems.as.system.JBossServiceModelMBean$ServiceMixin.execute(JBossServiceModelMBean.java:488)
            2007-07-24 15:31:56,075 ERROR [STDERR] at org.jboss.portal.jems.as.system.JBossServiceModelMBean$ServiceMixin.startService(JBossServiceModelMBean.java:454)
            2007-07-24 15:31:56,075 ERROR [STDERR] at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
            2007-07-24 15:31:56,076 ERROR [STDERR] at org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:196)
            2007-07-24 15:31:56,076 ERROR [STDERR] at org.jboss.portal.jems.as.system.JBossServiceModelMBean$6.invoke(JBossServiceModelMBean.java:376)
            2007-07-24 15:31:56,076 ERROR [STDERR] at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
            2007-07-24 15:31:56,076 ERROR [STDERR] at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
            2007-07-24 15:31:56,076 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
            2007-07-24 15:31:56,077 ERROR [STDERR] at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
            2007-07-24 15:31:56,077 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
            2007-07-24 15:31:56,077 ERROR [STDERR] at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
            2007-07-24 15:31:56,077 ERROR [STDERR] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
            2007-07-24 15:31:56,078 ERROR [STDERR] at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:995)
            2007-07-24 15:31:56,078 ERROR [STDERR] at $Proxy0.start(Unknown Source)
            2007-07-24 15:31:56,078 ERROR [STDERR] at org.jboss.system.ServiceController.start(ServiceController.java:417)
            2007-07-24 15:31:56,078 ERROR [STDERR] at org.jboss.system.ServiceController.start(ServiceController.java:435)
            2007-07-24 15:31:56,079 ERROR [STDERR] at org.jboss.system.ServiceController.start(ServiceController.java:435)
            2007-07-24 15:31:56,079 ERROR [STDERR] at org.jboss.system.ServiceController.start(ServiceController.java:435)
            2007-07-24 15:31:56,079 ERROR [STDERR] at org.jboss.system.ServiceController.start(ServiceController.java:435)
            2007-07-24 15:31:56,079 ERROR [STDERR] at org.jboss.system.ServiceController.start(ServiceController.java:435)
            2007-07-24 15:31:56,080 ERROR [STDERR] at org.jboss.system.ServiceController.start(ServiceController.java:435)
            2007-07-24 15:31:56,080 ERROR [STDERR] at org.jboss.system.ServiceController.start(ServiceController.java:435)
            2007-07-24 15:31:56,080 ERROR [STDERR] at org.jboss.system.ServiceController.start(ServiceController.java:435)
            2007-07-24 15:31:56,080 ERROR [STDERR] at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
            2007-07-24 15:31:56,080 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            2007-07-24 15:31:56,081 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:585)
            2007-07-24 15:31:56,081 ERROR [STDERR] at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
            2007-07-24 15:31:56,081 ERROR [STDERR] at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
            2007-07-24 15:31:56,081 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
            2007-07-24 15:31:56,082 ERROR [STDERR] at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
            2007-07-24 15:31:56,082 ERROR [STDERR] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
            2007-07-24 15:31:56,082 ERROR [STDERR] at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
            2007-07-24 15:31:56,082 ERROR [STDERR] at $Proxy4.start(Unknown Source)
            2007-07-24 15:31:56,083 ERROR [STDERR] at org.jboss.deployment.SARDeployer.start(SARDeployer.java:302)
            2007-07-24 15:31:56,083 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            2007-07-24 15:31:56,083 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
            2007-07-24 15:31:56,083 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            2007-07-24 15:31:56,083 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:585)
            2007-07-24 15:31:56,084 ERROR [STDERR] at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
            2007-07-24 15:31:56,084 ERROR [STDERR] at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
            2007-07-24 15:31:56,084 ERROR [STDERR] at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
            2007-07-24 15:31:56,085 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
            2007-07-24 15:31:56,085 ERROR [STDERR] at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
            2007-07-24 15:31:56,085 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
            2007-07-24 15:31:56,085 ERROR [STDERR] at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
            2007-07-24 15:31:56,085 ERROR [STDERR] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
            2007-07-24 15:31:56,086 ERROR [STDERR] at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
            2007-07-24 15:31:56,086 ERROR [STDERR] at $Proxy173.start(Unknown Source)
            2007-07-24 15:31:56,086 ERROR [STDERR] at org.jboss.deployment.XSLSubDeployer.start(XSLSubDeployer.java:197)
            2007-07-24 15:31:56,086 ERROR [STDERR] at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)
            2007-07-24 15:31:56,087 ERROR [STDERR] at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)
            2007-07-24 15:31:56,087 ERROR [STDERR] at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
            2007-07-24 15:31:56,087 ERROR [STDERR] at sun.reflect.GeneratedMethodAccessor117.invoke(Unknown Source)
            2007-07-24 15:31:56,087 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            2007-07-24 15:31:56,088 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:585)
            2007-07-24 15:31:56,088 ERROR [STDERR] at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
            2007-07-24 15:31:56,088 ERROR [STDERR] at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
            2007-07-24 15:31:56,088 ERROR [STDERR] at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
            2007-07-24 15:31:56,089 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
            2007-07-24 15:31:56,089 ERROR [STDERR] at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
            2007-07-24 15:31:56,089 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
            2007-07-24 15:31:56,089 ERROR [STDERR] at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
            2007-07-24 15:31:56,090 ERROR [STDERR] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
            2007-07-24 15:31:56,090 ERROR [STDERR] at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
            2007-07-24 15:31:56,090 ERROR [STDERR] at $Proxy8.deploy(Unknown Source)
            2007-07-24 15:31:56,090 ERROR [STDERR] at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:421)
            2007-07-24 15:31:56,091 ERROR [STDERR] at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:634)
            2007-07-24 15:31:56,091 ERROR [STDERR] at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:263)
            2007-07-24 15:31:56,091 ERROR [STDERR] at org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeploymentScanner.java:336)
            2007-07-24 15:31:56,092 ERROR [STDERR] at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
            2007-07-24 15:31:56,092 ERROR [STDERR] at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
            2007-07-24 15:31:56,092 ERROR [STDERR] at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)
            2007-07-24 15:31:56,092 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            2007-07-24 15:31:56,093 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:585)
            2007-07-24 15:31:56,093 ERROR [STDERR] at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
            2007-07-24 15:31:56,093 ERROR [STDERR] at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
            2007-07-24 15:31:56,093 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
            2007-07-24 15:31:56,094 ERROR [STDERR] at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
            2007-07-24 15:31:56,094 ERROR [STDERR] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
            2007-07-24 15:31:56,094 ERROR [STDERR] at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
            2007-07-24 15:31:56,094 ERROR [STDERR] at $Proxy0.start(Unknown Source)
            2007-07-24 15:31:56,095 ERROR [STDERR] at org.jboss.system.ServiceController.start(ServiceController.java:417)
            2007-07-24 15:31:56,095 ERROR [STDERR] at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
            2007-07-24 15:31:56,095 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            2007-07-24 15:31:56,095 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:585)
            2007-07-24 15:31:56,096 ERROR [STDERR] at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
            2007-07-24 15:31:56,096 ERROR [STDERR] at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
            2007-07-24 15:31:56,096 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
            2007-07-24 15:31:56,097 ERROR [STDERR] at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
            2007-07-24 15:31:56,097 ERROR [STDERR] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
            2007-07-24 15:31:56,097 ERROR [STDERR] at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
            2007-07-24 15:31:56,097 ERROR [STDERR] at $Proxy4.start(Unknown Source)
            2007-07-24 15:31:56,097 ERROR [STDERR] at org.jboss.deployment.SARDeployer.start(SARDeployer.java:302)
            2007-07-24 15:31:56,098 ERROR [STDERR] at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)
            2007-07-24 15:31:56,098 ERROR [STDERR] at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)
            2007-07-24 15:31:56,098 ERROR [STDERR] at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
            2007-07-24 15:31:56,098 ERROR [STDERR] at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:766)
            2007-07-24 15:31:56,099 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            2007-07-24 15:31:56,099 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
            2007-07-24 15:31:56,099 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            2007-07-24 15:31:56,099 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:585)
            2007-07-24 15:31:56,100 ERROR [STDERR] at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
            2007-07-24 15:31:56,100 ERROR [STDERR] at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
            2007-07-24 15:31:56,100 ERROR [STDERR] at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
            2007-07-24 15:31:56,100 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
            2007-07-24 15:31:56,101 ERROR [STDERR] at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
            2007-07-24 15:31:56,101 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
            2007-07-24 15:31:56,101 ERROR [STDERR] at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
            2007-07-24 15:31:56,101 ERROR [STDERR] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
            2007-07-24 15:31:56,102 ERROR [STDERR] at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
            2007-07-24 15:31:56,102 ERROR [STDERR] at $Proxy5.deploy(Unknown Source)
            2007-07-24 15:31:56,102 ERROR [STDERR] at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:482)
            2007-07-24 15:31:56,102 ERROR [STDERR] at org.jboss.system.server.ServerImpl.start(ServerImpl.java:362)
            2007-07-24 15:31:56,103 ERROR [STDERR] at org.jboss.Main.boot(Main.java:200)
            2007-07-24 15:31:56,103 ERROR [STDERR] at org.jboss.Main$1.run(Main.java:490)
            2007-07-24 15:31:56,103 ERROR [STDERR] at java.lang.Thread.run(Thread.java:595)
            2007-07-24 15:31:56,105 ERROR [STDERR] Caused by: javax.portlet.PortletException: Authorization Service not found
            2007-07-24 15:31:56,105 ERROR [STDERR] at org.jboss.portal.core.cms.ui.admin.CMSAdminPortlet.init(CMSAdminPortlet.java:128)
            2007-07-24 15:31:56,106 ERROR [STDERR] at org.jboss.portlet.JBossPortlet.init(JBossPortlet.java:356)
            2007-07-24 15:31:56,106 ERROR [STDERR] at org.jboss.portal.portlet.impl.jsr168.PortletContainerImpl.initPortlet(PortletContainerImpl.java:359)
            2007-07-24 15:31:56,106 ERROR [STDERR] at org.jboss.portal.portlet.impl.jsr168.PortletContainerImpl.start(PortletContainerImpl.java:233)
            2007-07-24 15:31:56,106 ERROR [STDERR] ... 129 more
            
            


            • 3. [SOLVED] Re: JBoss Portal 2.6 - org.hibernate.HibernateExcep
              Stephen More Newbie

              I found the problem:

              My environment already had JAVA_OPTS=-server.

              Once I removed this environment variable, the portal started with no problem.