4 Replies Latest reply on Nov 10, 2006 12:40 AM by thanvi

    JBoss Portal Installation Problems

    danial79

      Environment -
      Windows XP SP1
      Java Version 1.5.0_06

      JBoss version -
      JBoss - 4.0.3SP1
      JBoss Forums - 2.0.1RC1

      JBoss Portal version - Binaries
      JBoss Portal - 2.0.1RC1

      Database used with version number -
      MySQL Server 4.1

      JDBC connector -
      mysql-connector-java-3.1.12

      Problems
      I got the HTTP Status 500 error when running the portal on http://localhost:8080/portal and I got the HTTP Status 404 - /web-console/ error when running the webconsole on http://localhost:8080/web-console/. And on the trace log, it stated that hibernate was failed to register.

      The exception was..
      java.lang.IllegalStateException: Cannot get portal server
      org.jboss.portal.server.servlet.AbstractMainServlet.getContainer(AbstractMainServlet.java:54)
      org.jboss.portal.server.servlet.AbstractMainServlet.doGet(AbstractMainServlet.java:67)
      javax.servlet.http.HttpServlet.service(HttpServlet.java:697)
      javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
      org.jboss.portal.core.servlet.TransactionFilter.doFilter(TransactionFilter.java:79)
      org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:81)


      Trace Log

      org.jboss.deployment.DeploymentInfo@69384203 { url=file:/C:/JBoss/server/default
      /deploy/jboss-portal.sar/ }
      deployer: org.jboss.deployment.SARDeployer@18941f7
      status: Deployment FAILED reason: - nested throwable: (java.lang.reflect.Undec
      laredThrowableException)
      state: FAILED
      watch: file:/C:/JBoss/server/default/deploy/jboss-portal.sar/META-INF/jboss-se
      rvice.xml
      altDD: null
      lastDeployed: 1137695699046
      lastModified: 1136504338843
      mbeans:

      org.jboss.deployment.DeploymentInfo@c665f830 { url=file:/C:/JBoss/server/default
      /deploy/portal-mysql-ds.xml }
      deployer: org.jboss.deployment.XSLSubDeployer@1702c48
      status: Deployment FAILED reason: create operation failed for package file:/C:
      /JBoss/server/default/deploy/portal-mysql-ds.xml; - nested throwable: (javax.man
      agement.InstanceNotFoundException: portal:service=Hibernate is not registered.)
      state: FAILED
      watch: file:/C:/JBoss/server/default/deploy/portal-mysql-ds.xml
      altDD: null
      lastDeployed: 1137695718765
      lastModified: 1137695718750
      mbeans:
      jboss.jca:service=LocalTxCM,name=PortalDS (state not available)
      jboss.jca:service=ManagedConnectionPool,name=PortalDS (state not available)
      jboss.jca:service=ManagedConnectionFactory,name=PortalDS (state not availabl
      e)
      jboss.jca:service=DataSourceBinding,name=PortalDS (state not available)
      jboss.jca:service=NoTxCM,name=NoTxPortalDS (state not available)
      jboss.jca:service=ManagedConnectionPool,name=NoTxPortalDS (state not availab
      le)
      jboss.jca:service=ManagedConnectionFactory,name=NoTxPortalDS (state not avai
      lable)
      jboss.jca:service=DataSourceBinding,name=NoTxPortalDS (state not available)

      org.jboss.deployment.DeploymentInfo@91d57e04 { url=file:/C:/JBoss/server/default
      /deploy/portal-forums.ear/portal-forums.sar/ }
      deployer: org.jboss.deployment.SARDeployer@18941f7
      status: Deployment FAILED reason: No ClassLoaders found for: org.jboss.portal.
      core.hibernate.SessionFactoryBinder; - nested throwable: (java.lang.ClassNotFoun
      dException: No ClassLoaders found for: org.jboss.portal.core.hibernate.SessionFa
      ctoryBinder)
      state: FAILED
      watch: file:/C:/JBoss/server/default/deploy/portal-forums.ear/portal-forums.sa
      r/META-INF/jboss-service.xml
      altDD: null
      lastDeployed: 1137695719468
      lastModified: 1136504355468
      mbeans:

      org.jboss.deployment.DeploymentInfo@91d74f80 { url=file:/C:/JBoss/server/default
      /deploy/portal-forums.ear/portal-forums.war/ }
      deployer: MBeanProxyExt[jboss.web:service=WebServer]
      status: null
      state: INITIALIZED
      watch: file:/C:/JBoss/server/default/deploy/portal-forums.ear/portal-forums.wa
      r/WEB-INF/web.xml
      altDD: null
      lastDeployed: 1137695719546
      lastModified: 1136504355328
      mbeans:

      org.jboss.deployment.DeploymentInfo@baf7dede { url=file:/C:/JBoss/server/default
      /deploy/portal-forums.ear/ }
      deployer: org.jboss.deployment.EARDeployer@18b8914
      status: Deployment FAILED reason: No ClassLoaders found for: org.jboss.portal.
      core.hibernate.SessionFactoryBinder; - nested throwable: (java.lang.ClassNotFoun
      dException: No ClassLoaders found for: org.jboss.portal.core.hibernate.SessionFa
      ctoryBinder)
      state: FAILED
      watch: file:/C:/JBoss/server/default/deploy/portal-forums.ear/META-INF/applica
      tion.xml
      altDD: null
      lastDeployed: 1137695719546
      lastModified: 1136504355468
      mbeans:

      I can't figure out what is the missing part in the installation by myself. Please help.

      Thanks in advance.




        • 1. Re: JBoss Portal Installation Problems
          danial79

          After I started the MySQL service..

          This is the trace log which I have formatted for easy reading.


          org.jboss.deployment.DeploymentInfo@69384203 { url=file:/C:/JBoss/server/default/deploy/jboss-portal.sar/ }
          deployer: org.jboss.deployment.SARDeployer@18941f7
          status: Deployment FAILED reason: - nested throwable: (java.lang.reflect.UndeclaredThrowableException)
          state: FAILED
          watch: file:/C:/JBoss/server/default/deploy/jboss-portal.sar/META-INF/jboss-service.xml
          altDD: null
          lastDeployed: 1137705113187
          lastModified: 1136504338843
          mbeans:


          org.jboss.deployment.DeploymentInfo@c665f830 { url=file:/C:/JBoss/server/default/deploy/portal-mysql-ds.xml }
          deployer: org.jboss.deployment.XSLSubDeployer@198e8b4
          status: Deployment FAILED reason: create operation failed for package file:/C:/JBoss/server/default/deploy/portal-mysql-ds.xml;
          nested throwable: (javax.management.InstanceNotFoundException: portal:service=Hibernate is not registered.)
          state: FAILED
          watch: file:/C:/JBoss/server/default/deploy/portal-mysql-ds.xml
          altDD: null
          lastDeployed: 1137705132250
          lastModified: 1137705132234
          mbeans:
          jboss.jca:service=LocalTxCM,name=PortalDS (state not available)
          jboss.jca:service=ManagedConnectionPool,name=PortalDS (state not available)
          jboss.jca:service=ManagedConnectionFactory,name=PortalDS (state not available)
          jboss.jca:service=DataSourceBinding,name=PortalDS (state not available)
          jboss.jca:service=NoTxCM,name=NoTxPortalDS (state not available)
          jboss.jca:service=ManagedConnectionPool,name=NoTxPortalDS (state not available)
          jboss.jca:service=ManagedConnectionFactory,name=NoTxPortalDS (state not available)
          jboss.jca:service=DataSourceBinding,name=NoTxPortalDS (state not available)


          org.jboss.deployment.DeploymentInfo@91d57e04 { url=file:/C:/JBoss/server/default/deploy/portal-forums.ear/portal-forums.sar/ }
          deployer: org.jboss.deployment.SARDeployer@18941f7
          status: Deployment FAILED reason: No ClassLoaders found for: org.jboss.portal.core.hibernate.SessionFactoryBinder;
          nested throwable: (java.lang.ClassNotFoundException: No ClassLoaders found for: org.jboss.portal.core.hibernate.SessionFactoryBinder)
          state: FAILED
          watch: file:/C:/JBoss/server/default/deploy/portal-forums.ear/portal-forums.sar/META-INF/jboss-service.xml
          altDD: null
          lastDeployed: 1137705133187
          lastModified: 1136504355468
          mbeans:

          org.jboss.deployment.DeploymentInfo@91d74f80 { url=file:/C:/JBoss/server/default/deploy/portal-forums.ear/portal-forums.war/ }
          deployer: MBeanProxyExt[jboss.web:service=WebServer]
          status: null
          state: INITIALIZED
          watch: file:/C:/JBoss/server/default/deploy/portal-forums.ear/portal-forums.war/WEB-INF/web.xml
          altDD: null
          lastDeployed: 1137705133218
          lastModified: 1136504355328
          mbeans:

          org.jboss.deployment.DeploymentInfo@baf7dede { url=file:/C:/JBoss/server/default/deploy/portal-forums.ear/ }
          deployer: org.jboss.deployment.EARDeployer@18b8914
          status: Deployment FAILED reason: No ClassLoaders found for: org.jboss.portal.core.hibernate.SessionFactoryBinder;
          nested throwable: (java.lang.ClassNotFoundException: No ClassLoaders found for: org.jboss.portal.core.hibernate.SessionFactoryBinder)
          state: FAILED
          watch: file:/C:/JBoss/server/default/deploy/portal-forums.ear/META-INF/application.xml
          altDD: null
          lastDeployed: 1137705133218
          lastModified: 1136504355468
          mbeans:

          13:12:14,328 INFO [Http11Protocol] Starting Coyote HTTP/1.1 on http-0.0.0.0-8080
          13:12:14,500 INFO [ChannelSocket] JK: ajp13 listening on /0.0.0.0:8009
          13:12:14,531 INFO [JkMain] Jk running ID=0 time=0/63 config=null
          13:12:14,531 INFO [Server] JBoss (MX MicroKernel) [4.0.3SP1 (build: CVSTag=JBoss_4_0_3_SP1 date=200510231751)]
          Started in 30s:563ms
          13:13:29,734 ERROR [CoreServlet] javax.management.InstanceNotFoundException: portal:service=ServerManager is not registered.
          13:13:29,734 ERROR [[PortalServlet]] Servlet.service() for servlet PortalServlet threw exceptionjava.lang.IllegalStateException:
          Cannot get portal server at org.jboss.portal.server.servlet.AbstractMainServlet.getContainer(AbstractMainServlet.java:54)
          at org.jboss.portal.server.servlet.AbstractMainServlet.doGet(AbstractMainServlet.java:67)
          at javax.servlet.http.HttpServlet.service(HttpServlet.java:697)
          at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
          at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
          at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
          at org.jboss.portal.core.servlet.TransactionFilter.doFilter(TransactionFilter.java:79)
          at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
          at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
          at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:81)
          at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
          at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
          at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
          at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
          at org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrincipalValve.java:39)
          at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:159)
          at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:407)
          at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:59)
          at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
          at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
          at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
          at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
          at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
          at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
          at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
          at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
          at java.lang.Thread.run(Unknown Source)

          • 2. Re: JBoss Portal Installation Problems

            Do you have the 'portal-ds.xml' under server/default/deploy? If you have it, then did you configure it correctly?

            • 3. Re: JBoss Portal Installation Problems

              I also cannot install the forums.

              I have jboss-portal 2.4.0-CR1, and have downloaded forums from http://labs.jboss.com/file-access/default/members/portletswap/downloads/portlets/collaborate/jboss-forums-2.2.1RC1.zip

              I have done a cp -r of the .ear directory to server/default/deploy, which is what I assume we are meant to do (there are no instructions).

              I get the following error:

              2006-07-18 12:09:58,771 DEBUG [org.jboss.deployment.SARDeployer] create operation failed for package file:/E:/products/jboss-portal/jboss-portal-2.4.0-CR1/server/default/deploy/portal-forums.ear/portal-forums.sar/
              org.jboss.deployment.DeploymentException: no protocol: org/jboss/portal/core/hibernate/SessionFactoryBinder.xml; - nested throwable: (java.net.MalformedURLException: no protocol: org/jboss/portal/core/hibernate/SessionFactoryBinder.xml)
               at org.jboss.system.ServiceConfigurator.install(ServiceConfigurator.java:196)
              


              I will try again using stable portal and stable forums

              • 4. Re: JBoss Portal Installation Problems
                thanvi

                Hi

                We too are facing the same the problem. If you have found the problem, can u share the same with us.