11 Replies Latest reply on Jun 14, 2007 10:20 AM by guru_fordy

    Jboss Portal Install Problems

    guru_fordy

      Hey there. I am very new to Jboss but my company is evaluating it as a possibility for use. I have set up a VPC with the following things installed:

      Windows XP Pro running on a VPC
      2.6 CR2 downloaded with AS packaged.
      SQL Server 2000
      JDBC Connector Version 1.1.15.01.101 downloaded from Microsoft

      Installed everything as the help file said but am getting an error when accessing http://localhost:8080/portal.

      type Exception report
      
      message
      
      description The server encountered an internal error () that prevented it from fulfilling this request.
      
      exception
      
      javax.servlet.ServletException: Servlet execution threw an exception
       org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:81)
      
      
      root cause
      
      java.lang.NoClassDefFoundError: org/apache/commons/httpclient/HttpMethod
       org.jboss.portal.server.servlet.PortalServlet.service(PortalServlet.java:274)
       javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
       org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:81)


      And this is from the log files:

      2007-06-11 10:34:30,500 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/portal].[PortalServletWithPathMapping]] Servlet.service() for servlet PortalServletWithPathMapping threw exception
      java.lang.NoClassDefFoundError: org/apache/commons/httpclient/HttpMethod
       at org.jboss.portal.server.servlet.PortalServlet.service(PortalServlet.java:274)
       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.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)


      Any ideas?

        • 1. Re: Jboss Portal Install Problems
          guru_fordy

          My guess was DB connection in the portal-sqlserver-ds.xml.

          Its currently set as:

          <datasources>
           <local-tx-datasource>
           <jndi-name>jbossportal</jndi-name>
           <connection-url>jdbc:jtds:sqlserver://localhost:1433;tds=8.0;lastupdatecount=true</connection-url>
           <driver-class>net.sourceforge.jtds.jdbc.Driver</driver-class>
           <user-name>admin</user-name>
           <password>admin</password>
           </local-tx-datasource>
          </datasources>
          
          


          • 2. Re: Jboss Portal Install Problems
            peterj

            The missing class file is in the server/default/lib/commons-httpclient.jar file. It should be picked up automatically.

            I haven't tried running JBoss on a VPC, so I am not sure if that has any bearing on the problem, but I do recall all kinds of weird disk-related issues when I used VPC for another task. Could you try running on a regular XP box? Installing JBoss does not do anything to your registry - it just creates a directory on your hard drive. As long as the ports are free, it should run fine. When you want to uninstall it, just remove the install directory.

            Oh, and for SQL Server, you might want to use the jTDS driver from http://jtds.sourceforge.net/. Some of my colleagues set up the portal to run with SQL Server and they used this driver.

            • 3. Re: Jboss Portal Install Problems
              guru_fordy

              Thanks for the advice Peter. Out of coincedence I tried the driver you reccomended last night but with no success :(

              I have re-downloaded jboss-portal-2.4.2 and jboss-4.2.0.GA for the SA to give it one last shot on the VPC. The only reason I am using the VPC is I can distribute it to others to play with, but, will give in if it doesn't work!

              • 4. Re: Jboss Portal Install Problems
                guru_fordy

                Ok I just reinstalled as per my post above. Didn't get it working but not the same issue and it took a lot longer to load this time which sounds about right.

                Here is the reported error off http://localhost:8080/portal:

                HTTP Status 500 -
                
                --------------------------------------------------------------------------------
                
                type Exception report
                
                message
                
                description The server encountered an internal error () that prevented it from fulfilling this request.
                
                exception
                
                javax.servlet.ServletException: org.jboss.portal.common.invocation.InvocationException: Cannot invoke with a null interceptor[]
                 org.jboss.portal.server.servlet.PortalServlet.process(PortalServlet.java:315)
                 org.jboss.portal.server.servlet.PortalServlet.doGet(PortalServlet.java:173)
                 javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
                 javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
                 org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
                
                
                root cause
                
                org.jboss.portal.common.invocation.InvocationException: Cannot invoke with a null interceptor[]
                 org.jboss.portal.common.invocation.Invocation.invoke(Invocation.java:157)
                 org.jboss.portal.server.servlet.PortalServlet.process(PortalServlet.java:295)
                 org.jboss.portal.server.servlet.PortalServlet.doGet(PortalServlet.java:173)
                 javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
                 javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
                 org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
                
                
                note The full stack trace of the root cause is available in the JBossWeb/2.0.0.GA logs.
                


                And the log file:

                2007-06-12 10:58:25,524 ERROR [org.jboss.portal.server.servlet.PortalServlet] Invocation exception
                org.jboss.portal.common.invocation.InvocationException: Cannot invoke with a null interceptor[]
                 at org.jboss.portal.common.invocation.Invocation.invoke(Invocation.java:157)
                 at org.jboss.portal.server.servlet.PortalServlet.process(PortalServlet.java:295)
                 at org.jboss.portal.server.servlet.PortalServlet.doGet(PortalServlet.java:173)
                 at javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
                 at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
                 at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
                 at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
                 at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
                 at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
                 at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
                 at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
                 at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
                 at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179)
                 at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:433)
                 at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
                 at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
                 at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
                 at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:156)
                 at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
                 at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:241)
                 at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
                 at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:580)
                 at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
                 at java.lang.Thread.run(Thread.java:595)
                2007-06-12 10:58:25,534 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/portal].[PortalServletWithPathMapping]] Servlet.service() for servlet PortalServletWithPathMapping threw exception
                org.jboss.portal.common.invocation.InvocationException: Cannot invoke with a null interceptor[]
                 at org.jboss.portal.common.invocation.Invocation.invoke(Invocation.java:157)
                 at org.jboss.portal.server.servlet.PortalServlet.process(PortalServlet.java:295)
                 at org.jboss.portal.server.servlet.PortalServlet.doGet(PortalServlet.java:173)
                 at javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
                 at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
                 at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
                 at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
                 at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
                 at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
                 at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
                 at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
                 at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
                 at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179)
                 at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:433)
                 at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
                 at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
                 at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
                 at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:156)
                 at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
                 at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:241)
                 at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
                 at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:580)
                 at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
                 at java.lang.Thread.run(Thread.java:595)
                2007-06-12 10:58:27,196 DEBUG [com.arjuna.ats.arjuna.logging.arjLogger] Periodic recovery - first pass <Tue, 12 Jun 2007 10:58:27>
                2007-06-12 10:58:27,196 DEBUG [com.arjuna.ats.arjuna.logging.arjLogger] StatusModule: first pass
                2007-06-12 10:58:27,196 DEBUG [com.arjuna.ats.txoj.logging.txojLoggerI18N] [com.arjuna.ats.internal.txoj.recovery.TORecoveryModule_3] - TORecoveryModule - first pass
                2007-06-12 10:58:27,196 DEBUG [com.arjuna.ats.jta.logging.loggerI18N] [com.arjuna.ats.internal.jta.recovery.info.firstpass] Local XARecoveryModule - first pass
                


                • 5. Re: Jboss Portal Install Problems
                  peterj

                  Regarding using VPC to redistribute - you can do that with JBoss AS without VPC. I simply zip up my working JBossAS directory, move the zip file elsewhere, unzip it, and run it. As long as the other PC has Java installed, I'm set to go. By the way, I usually do this to transfer a working JBossAS to either my laptop at home (running either XP or Fedora Core) or to my Linux PC at work.

                  By the way, which JVM are you using? If 1.6, try 1.5. None of the JBossAS's are qualified with 1.6 at this time.

                  • 6. Re: Jboss Portal Install Problems
                    guru_fordy

                    Just took Jboss completely off my VPC and dropped it onto my computer as you said. Worked well until the same error message popped up d'oh! At least I don't have to use that VPC anymore :)

                    With the JVM I am using 1.60_01 according to Sun. Where can I get 1.5 from as I am going round in circles trying to find it on Sun's site?

                    • 7. Re: Jboss Portal Install Problems
                      peterj

                      Yes, Sun does hide older releases fairly well. On the Java SE downloads page, http://java.sun.com/javase/downloads/index.jsp look for the "Previous Releases" just under the Downloads tab.

                      • 8. Re: Jboss Portal Install Problems
                        guru_fordy

                        Just installed jdk-1_5_0_12 but got the same error :(

                        • 9. Re: Jboss Portal Install Problems
                          mputz

                          There are still some outstanding issues regarding JBoss Portal on JBoss AS 4.2, such as:
                          http://jira.jboss.org/jira/browse/JBPORTAL-1309 or
                          http://jira.jboss.org/jira/browse/JBPAPP-59

                          You said you want to evaluate JBoss Portal. In that case I'd suggest to follow the easy way to get started by downloading JBoss Portal 2.6.CR2 with embedded AS, as you might have done already, according to your first post. Try to start it up, it should work out-of-the-box with the embedded Hypersonic db. If this works you can go ahead and
                          - install it on VPC and
                          - switch the db to use something else then hsqldb

                          • 10. Re: Jboss Portal Install Problems
                            guru_fordy

                            Just spoke to a colleague and he got the 2.6 CR2 embedded version working fine on his machine (same network).

                            • 11. Re: Jboss Portal Install Problems
                              guru_fordy

                              Just spoke to a colleague who has the embedded version running on his machine on the same network. That is however a out of the box version and we need to know how it all works lol. Its a good start though :-)