4 Replies Latest reply on May 5, 2005 11:30 AM by Robert J. Sanford, Jr.

    Two Errors...

    Robert J. Sanford, Jr. Newbie

      I have done the following...

      1 - Built the PostgreSQL DDL for the Portal according to the build instructions. Ran the DDL against PostgreSQL as well as the SQL to get the initial users and roles into the db. All worked hunky-dory-dandy.

      2 - Updated portal-ds.xml to read as follows.

      <?xml version="1.0" encoding="UTF-8"?>
      <datasources>
       <local-tx-datasource>
       <jndi-name>PortalDS</jndi-name>
       <connection-url>jdbc:postgresql://localhost/jbossportal</connection-url>
       <driver-class>org.postgresql.Driver</driver-class>
       <user-name>portal</user-name>
       <password>portalpassword</password>
       </local-tx-datasource>
      </datasources>
      


      3 - Deployed the xml file, unzipped the CMS content to server/default/data per the instructions, deployed the .sar file.

      4 - Restarted JBoss.

      5 - try to hit the portal/index.html and get an exception. In the log it reads...

      2005-05-04 14:09:37,984 ERROR [org.jboss.web.localhost.Engine] StandardWrapperValve[PortalServlet]: Servlet.service() for servlet PortalServlet threw exception
      org.jboss.portal.common.transaction.NestedException: java.lang.NullPointerException
       at org.jboss.portal.common.transaction.Transactions.requiresNew(Transactions.java:81)
       at org.jboss.portal.core.servlet.TransactionFilter.doFilter(TransactionFilter.java:74)
       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:186)
       at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
       at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:75)
       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:186)
       at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
       at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
       at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
       at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
       at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)
       at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)
       at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
       at org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrincipalValve.java:66)
       at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
       at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:150)
       at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
       at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:462)
       at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
       at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:54)
       at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
       at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
       at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
       at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
       at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118)
       at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
       at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
       at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
       at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
       at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
       at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
       at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
       at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
       at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
       at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
       at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
       at java.lang.Thread.run(Thread.java:595)
      Caused by: java.lang.NullPointerException
       at org.jboss.portal.server.servlet.AbstractMainServlet.doGet(AbstractMainServlet.java:52)
       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:237)
       at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
       at org.jboss.portal.core.servlet.TransactionFilter$1.run(TransactionFilter.java:78)
       at org.jboss.portal.common.transaction.Transactions.requiresNew(Transactions.java:75)
       ... 36 more
      


      I'm figuring I've misconfigured something in there but I don't know what. Any ideas?


      The second error is when I try to generate the DDL for the forums. I get the forums directory from the source .zip and copy it to be a peer of the core directory under the portal source. I then run the build and get the following results...

      C:\apps\jboss-portal-2.0-beta1-src\forums>build ddl
      Executing C:\apps\jboss-portal-2.0-beta1-src\forums\..\tools\bin\ant.bat -logge
      r org.apache.tools.ant.NoBannerLogger ddl
      Buildfile: build.xml
      
      _buildmagic:init:
      Trying to override old definition of task property
      
      BUILD FAILED
      file:C:/apps/jboss-portal-2.0-beta1-src/forums/../tools/etc/buildfragments/build
      magic.ent:116: Reference dbunit.dbunit.classpath not found.
      
      Total time: 1 second
      Press any key to continue . . .
      


      I'm obviously missing something in my classpath but there wasn't anything in the install doc that said it depends on DBUnit or a specific version of Ant. What am I missing?

      Many thanks!

      rjsjr

        • 1. Re: Two Errors...
          Robert J. Sanford, Jr. Newbie

          Oh yeah... I forgot system info...

          1 - JBoss 4.0.1sp1
          2 - Java 1.5.0_01
          3 - PostgreSQL 8.0.?

          All of my other apps that are using that install, including PostgreSQL, are working properly...

          rjsjr

          • 2. Re: Two Errors...
            Robert J. Sanford, Jr. Newbie

            Complete shutdown followed by re-start and I see the following exception stack trace when JBoss is trying to deploy the portal.

            rjsjr


            2005-05-04 16:59:39,703 INFO [net.sf.hibernate.cfg.SettingsFactory] Use scrollable result sets: true
            2005-05-04 16:59:39,703 INFO [net.sf.hibernate.cfg.SettingsFactory] Use JDBC3 getGeneratedKeys(): false
            2005-05-04 16:59:39,703 INFO [net.sf.hibernate.cfg.SettingsFactory] Optimize cache for minimal puts: false
            2005-05-04 16:59:39,703 INFO [net.sf.hibernate.cfg.SettingsFactory] Query language substitutions: {}
            2005-05-04 16:59:39,703 INFO [net.sf.hibernate.cfg.SettingsFactory] cache provider: net.sf.hibernate.cache.TreeCacheProvider
            2005-05-04 16:59:39,703 INFO [net.sf.hibernate.cfg.Configuration] instantiating and configuring caches
            2005-05-04 16:59:39,703 DEBUG [net.sf.hibernate.cfg.Configuration] instantiating cache org.jboss.portal.core.impl.preferences.MappedPreferenceSet
            2005-05-04 16:59:39,718 WARN [org.jboss.system.ServiceController] Problem starting service portal:service=Hibernate
            java.lang.NoClassDefFoundError: org/jboss/cache/TransactionManagerLookup
             at net.sf.hibernate.cache.TreeCacheProvider.buildCache(TreeCacheProvider.java:14)
             at net.sf.hibernate.cfg.Configuration.configureCaches(Configuration.java:1130)
             at net.sf.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:790)
             at org.jboss.hibernate.jmx.Hibernate.buildSessionFactory(Hibernate.java:583)
             at org.jboss.hibernate.jmx.Hibernate.startService(Hibernate.java:551)
             at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:272)
             at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:222)
             at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)
             at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
             at java.lang.reflect.Method.invoke(Method.java:585)
             at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:144)
             at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
             at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
             at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:249)
             at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:642)
             at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:891)
             at $Proxy0.start(Unknown Source)
             at org.jboss.system.ServiceController.start(ServiceController.java:416)
             at org.jboss.system.ServiceController.start(ServiceController.java:438)
             at org.jboss.system.ServiceController.start(ServiceController.java:438)
             at org.jboss.system.ServiceController.start(ServiceController.java:438)
             at org.jboss.system.ServiceController.start(ServiceController.java:438)
             at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
             at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
             at java.lang.reflect.Method.invoke(Method.java:585)
             at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:144)
             at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
             at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
             at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:249)
             at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:642)
             at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
             at $Proxy4.start(Unknown Source)
             at org.jboss.deployment.SARDeployer.start(SARDeployer.java:261)
             at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
             at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
             at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
             at java.lang.reflect.Method.invoke(Method.java:585)
             at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:144)
             at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
             at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
             at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:249)
             at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:642)
             at org.jboss.mx.util.JMXInvocationHandler.invoke(JMXInvocationHandler.java:272)
             at $Proxy55.start(Unknown Source)
             at org.jboss.deployment.XSLSubDeployer.start(XSLSubDeployer.java:228)
             at org.jboss.deployment.MainDeployer.start(MainDeployer.java:964)
             at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:775)
             at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:738)
             at sun.reflect.GeneratedMethodAccessor66.invoke(Unknown Source)
             at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
             at java.lang.reflect.Method.invoke(Method.java:585)
             at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:144)
             at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
             at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:122)
             at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
             at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:131)
             at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
             at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:249)
             at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:642)
             at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
             at $Proxy8.deploy(Unknown Source)
             at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:305)
             at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:481)
             at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:204)
             at org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeploymentScanner.java:277)
             at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:272)
             at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:222)
             at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)
             at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
             at java.lang.reflect.Method.invoke(Method.java:585)
             at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:144)
             at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
             at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
             at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:249)
             at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:642)
             at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:891)
             at $Proxy0.start(Unknown Source)
             at org.jboss.system.ServiceController.start(ServiceController.java:416)
             at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
             at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
             at java.lang.reflect.Method.invoke(Method.java:585)
             at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:144)
             at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
             at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
             at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:249)
             at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:642)
             at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
             at $Proxy4.start(Unknown Source)
             at org.jboss.deployment.SARDeployer.start(SARDeployer.java:261)
             at org.jboss.deployment.MainDeployer.start(MainDeployer.java:964)
             at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:775)
             at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:738)
             at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:722)
             at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
             at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
             at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
             at java.lang.reflect.Method.invoke(Method.java:585)
             at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:144)
             at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
             at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:122)
             at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
             at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:131)
             at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
             at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:249)
             at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:642)
             at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
             at $Proxy5.deploy(Unknown Source)
             at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:413)
             at org.jboss.system.server.ServerImpl.start(ServerImpl.java:310)
             at org.jboss.Main.boot(Main.java:162)
             at org.jboss.Main$1.run(Main.java:423)
             at java.lang.Thread.run(Thread.java:595)
            2005-05-04 16:59:39,718 DEBUG [org.jboss.system.ServiceController] starting service jboss.jca:service=DataSourceBinding,name=PortalDS
            2005-05-04 16:59:39,718 DEBUG [org.jboss.system.ServiceController] Ignoring start request for service: jboss.jca:service=DataSourceBinding,name=PortalDS
            2005-05-04 16:59:39,734 DEBUG [org.jboss.deployment.MainDeployer] End deployment start on package: portal-ds.xml
            2005-05-04 16:59:39,734 DEBUG [org.jboss.deployment.MainDeployer] Deployed package: file:/C:/fcInfrastructure/jboss-4.0.1/server/default/deploy/portal-ds.xml
            


            • 3. Re: Two Errors...
              Roy Russo Master

              This looks like a cache problem. Did you copy the cache, remoting, and jgroups jars over to /default/lib ?

              • 4. Re: Two Errors...
                Robert J. Sanford, Jr. Newbie

                Ummmmm...

                I got the binary distribution and deployed it according to the instructions for the binary distribution. I load up the .pdf User Guide and search for "jgroups" and I find it...

                Under the section on installing from SOURCE. I didn't read those instructions because I was installing from binary.

                The only reason I have the source is to build the DDL for PostgreSQL and so I read the DDL instructions.

                Okay, I deploy the .jar files to default/lib and re-start and...

                It worked! Life is good for now.

                I still need to know what to do to build the forums. How do I resolve the missing dbunit classpath that I specified?

                Thanks!

                rjsjr

                PS - Please update the PDF doc to reflect that the portal needs those .jar files installed...