6 Replies Latest reply on Oct 22, 2005 8:09 AM by Jason Bradfield

    JBoss Portal 2.0/ 2.0.1RC1 with JBoss AS 4.0.3

    Adam Warski Master

      Hello,
      I'm trying to deploy jboss portal on jboss as 4.0.3, but I didn't succeed yet. Do they work together? During startup, I get the following exceptions (many times):

      21:38:39,035 ERROR [[/jmx-console]] StandardWrapper.Throwable
      java.lang.NullPointerException
      at org.jboss.web.tomcat.security.RunAsListener.instanceEvent(RunAsListener.java:53)
      at org.apache.catalina.util.InstanceSupport.fireInstanceEvent(InstanceSupport.java:239)
      at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1079)
      at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:925)
      at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3857)
      at jrockit.reflect.VirtualNativeMethodInvoker.invoke(Ljava.lang.Object;[Ljava.lang.Object;)Ljava.lang.Object;(Unknown Source)
      at jrockit.reflect.InitialMethodInvoker.invoke(Ljava.lang.Object;[Ljava.lang.Object;)Ljava.lang.Object;(Unknown Source)
      at java.lang.reflect.Method.invoke(Ljava.lang.Object;[Ljava.lang.Object;I)Ljava.lang.Object;(Unknown Source)
      at org.jboss.portal.server.deployment.PortalWebTomcat5App.addCommandServlet(PortalWebTomcat5App.java:169)
      at org.jboss.portal.server.deployment.PortalWebTomcat5App.instrument(PortalWebTomcat5App.java:70)
      at org.jboss.portal.server.deployment.WebAppEnhancer.deploy(WebAppEnhancer.java:28)
      at org.jboss.portal.server.deployment.WebAppIntercepter.handleNotification(WebAppIntercepter.java:137)
      at org.jboss.mx.modelmbean.XMBean.handleNotification(XMBean.java:485)
      at jrockit.reflect.VirtualNativeMethodInvoker.invoke(Ljava.lang.Object;[Ljava.lang.Object;)Ljava.lang.Object;(Unknown Source)
      at java.lang.reflect.Method.invoke(Ljava.lang.Object;[Ljava.lang.Object;I)Ljava.lang.Object;(Unknown Source)
      at org.jboss.mx.notification.NotificationListenerProxy.invoke(NotificationListenerProxy.java:138)
      at $Proxy55.handleNotification(Ljavax.management.Notification;Ljava.lang.Object;)V(Unknown Source)
      at org.jboss.mx.util.JBossNotificationBroadcasterSupport.handleNotification(JBossNotificationBroadcasterSupport.java:112)
      at org.jboss.mx.util.JBossNotificationBroadcasterSupport.sendNotification(JBossNotificationBroadcasterSupport.java:93)
      at org.jboss.deployment.SubDeployerSupport.emitNotification(SubDeployerSupport.java:325)
      at org.jboss.deployment.SubDeployerSupport.start(SubDeployerSupport.java:293)
      at org.jboss.web.AbstractWebContainer.start(AbstractWebContainer.java:416)
      at jrockit.reflect.VirtualNativeMethodInvoker.invoke(Ljava.lang.Object;[Ljava.lang.Object;)Ljava.lang.Object;(Unknown Source)
      21:38:39,036 ERROR [WebAppEnhancer] Cannot instrument the web application
      java.lang.reflect.InvocationTargetException
      at jrockit.reflect.VirtualNativeMethodInvoker.invoke(Ljava.lang.Object;[Ljava.lang.Object;)Ljava.lang.Object;(Unknown Source)
      at jrockit.reflect.InitialMethodInvoker.invoke(Ljava.lang.Object;[Ljava.lang.Object;)Ljava.lang.Object;(Unknown Source)
      at java.lang.reflect.Method.invoke(Ljava.lang.Object;[Ljava.lang.Object;I)Ljava.lang.Object;(Unknown Source)
      at org.jboss.portal.server.deployment.PortalWebTomcat5App.addCommandServlet(PortalWebTomcat5App.java:169)
      at org.jboss.portal.server.deployment.PortalWebTomcat5App.instrument(PortalWebTomcat5App.java:70)
      at org.jboss.portal.server.deployment.WebAppEnhancer.deploy(WebAppEnhancer.java:28)
      at org.jboss.portal.server.deployment.WebAppIntercepter.handleNotification(WebAppIntercepter.java:137)
      at org.jboss.mx.modelmbean.XMBean.handleNotification(XMBean.java:485)
      at jrockit.reflect.VirtualNativeMethodInvoker.invoke(Ljava.lang.Object;[Ljava.lang.Object;)Ljava.lang.Object;(Unknown Source)
      at java.lang.reflect.Method.invoke(Ljava.lang.Object;[Ljava.lang.Object;I)Ljava.lang.Object;(Unknown Source)
      at org.jboss.mx.notification.NotificationListenerProxy.invoke(NotificationListenerProxy.java:138)
      at $Proxy55.handleNotification(Ljavax.management.Notification;Ljava.lang.Object;)V(Unknown Source)
      at org.jboss.mx.util.JBossNotificationBroadcasterSupport.handleNotification(JBossNotificationBroadcasterSupport.java:112)
      at org.jboss.mx.util.JBossNotificationBroadcasterSupport.sendNotification(JBossNotificationBroadcasterSupport.java:93)
      at org.jboss.deployment.SubDeployerSupport.emitNotification(SubDeployerSupport.java:325)
      at org.jboss.deployment.SubDeployerSupport.start(SubDeployerSupport.java:293)
      at org.jboss.web.AbstractWebContainer.start(AbstractWebContainer.java:416)
      at jrockit.reflect.VirtualNativeMethodInvoker.invoke(Ljava.lang.Object;[Ljava.lang.Object;)Ljava.lang.Object;(Unknown Source)
      at java.lang.reflect.Method.invoke(Ljava.lang.Object;[Ljava.lang.Object;I)Ljava.lang.Object;(Unknown Source)
      at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
      at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:118)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
      at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:127)
      at org.jboss.mx.interceptor.DynamicInterceptor.invoke(DynamicInterceptor.java:80)
      Caused by: java.lang.NullPointerException
      at org.jboss.web.tomcat.security.RunAsListener.instanceEvent(RunAsListener.java:53)
      at org.apache.catalina.util.InstanceSupport.fireInstanceEvent(InstanceSupport.java:266)
      at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1128)
      at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:925)
      at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3857)
      at jrockit.reflect.VirtualNativeMethodInvoker.invoke(Ljava.lang.Object;[Ljava.lang.Object;)Ljava.lang.Object;(Unknown Source)
      at jrockit.reflect.InitialMethodInvoker.invoke(Ljava.lang.Object;[Ljava.lang.Object;)Ljava.lang.Object;(Unknown Source)
      at java.lang.reflect.Method.invoke(Ljava.lang.Object;[Ljava.lang.Object;I)Ljava.lang.Object;(Unknown Source)
      at org.jboss.portal.server.deployment.PortalWebTomcat5App.addCommandServlet(PortalWebTomcat5App.java:169)
      at org.jboss.portal.server.deployment.PortalWebTomcat5App.instrument(PortalWebTomcat5App.java:70)
      at org.jboss.portal.server.deployment.WebAppEnhancer.deploy(WebAppEnhancer.java:28)
      at org.jboss.portal.server.deployment.WebAppIntercepter.handleNotification(WebAppIntercepter.java:137)
      at org.jboss.mx.modelmbean.XMBean.handleNotification(XMBean.java:485)
      at jrockit.reflect.VirtualNativeMethodInvoker.invoke(Ljava.lang.Object;[Ljava.lang.Object;)Ljava.lang.Object;(Unknown Source)
      at java.lang.reflect.Method.invoke(Ljava.lang.Object;[Ljava.lang.Object;I)Ljava.lang.Object;(Unknown Source)
      at org.jboss.mx.notification.NotificationListenerProxy.invoke(NotificationListenerProxy.java:138)
      at $Proxy55.handleNotification(Ljavax.management.Notification;Ljava.lang.Object;)V(Unknown Source)
      at org.jboss.mx.util.JBossNotificationBroadcasterSupport.handleNotification(JBossNotificationBroadcasterSupport.java:112)
      at org.jboss.mx.util.JBossNotificationBroadcasterSupport.sendNotification(JBossNotificationBroadcasterSupport.java:93)
      at org.jboss.deployment.SubDeployerSupport.emitNotification(SubDeployerSupport.java:325)
      at org.jboss.deployment.SubDeployerSupport.start(SubDeployerSupport.java:293)
      at org.jboss.web.AbstractWebContainer.start(AbstractWebContainer.java:416)
      at jrockit.reflect.VirtualNativeMethodInvoker.invoke(Ljava.lang.Object;[Ljava.lang.Object;)Ljava.lang.Object;(Unknown Source)
      21:38:39,122 ERROR [URLDeploymentScanner] Incomplete Deployment listing:

      --- MBeans waiting for other MBeans ---
      ObjectName: portal:service=Hibernate
      State: FAILED
      Reason: org.hibernate.exception.GenericJDBCException: Cannot open connection
      I Depend On:
      jboss.jca:service=DataSourceBinding,name=PortalDS
      Depends On Me:
      portal:service=Module,type=User
      portal:service=Module,type=Role
      portal:service=Module,type=Security
      portal:service=ServerManager