0 Replies Latest reply on Nov 30, 2005 5:49 AM by pedro costa

    install portal

    pedro costa Apprentice

      I've tried to install jboss portal in jboss 4.0.3SP1. But when i try to run jboss portal, it gives me an error. See the output below.
      I know that i haven't created by myself and database entry, but i have some doubts (i've already read the userguide, and i still have this questions):

      Is really necessary to build a DB?
      Is mySQL the default DB engine that jboss uses?
      The new database must be named jbossportal? And, i've to change any xml associated?
      I must have mysql installed? I must run mysql before i run jboss4.0.3SP1?

      I've put all the output to understand better my problem.

      ===============================================================================
      .
       JBoss Bootstrap Environment
      .
       JBOSS_HOME: C:\Program Files\jboss-4.0.3SP1\bin\\..
      .
       JAVA: C:\Program Files\Java\jdk1.5.0_02\bin\java
      .
       JAVA_OPTS: -Dprogram.name=run.bat -Xms128m -Xmx512m
      .
       CLASSPATH: C:\Program Files\Java\jdk1.5.0_02\lib\tools.jar;C:\Program Files\jboss-4.0.3SP1\bin\\run.jar
      .
      ===============================================================================
      .
      10:17:22,065 INFO [Server] Starting JBoss (MX MicroKernel)...
      10:17:22,065 INFO [Server] Release ID: JBoss [Zion] 4.0.3SP1 (build: CVSTag=JBoss_4_0_3_SP1 date=200510231751)
      10:17:22,065 INFO [Server] Home Dir: C:\Program Files\jboss-4.0.3SP1
      10:17:22,065 INFO [Server] Home URL: file:/C:/Program Files/jboss-4.0.3SP1/
      10:17:22,065 INFO [Server] Patch URL: null
      10:17:22,065 INFO [Server] Server Name: default
      10:17:22,065 INFO [Server] Server Home Dir: C:\Program Files\jboss-4.0.3SP1\server\default
      10:17:22,065 INFO [Server] Server Home URL: file:/C:/Program Files/jboss-4.0.3SP1/server/default/
      10:17:22,065 INFO [Server] Server Temp Dir: C:\Program Files\jboss-4.0.3SP1\server\default\tmp
      10:17:22,065 INFO [Server] Root Deployment Filename: jboss-service.xml
      10:17:22,377 INFO [ServerInfo] Java version: 1.5.0_02,Sun Microsystems Inc.
      10:17:22,377 INFO [ServerInfo] Java VM: Java HotSpot(TM) Client VM 1.5.0_02-b09,Sun Microsystems Inc.
      10:17:22,377 INFO [ServerInfo] OS-System: Windows XP 5.1,x86
      10:17:22,938 INFO [Server] Core system initialized
      10:17:24,076 INFO [Log4jService$URLWatchTimerTask] Configuring from URL: resource:log4j.xml
      10:17:25,992 INFO [EJB3Deployer] Default persistence.properties: {hibernate.transaction.flush_before_completion=false, hibernate.jndi.java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces, hibernate.transaction.auto_close_session=false, hibernate.jndi.java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory, hibernate.cache.provider_class=org.hibernate.cache.HashtableCacheProvider, hibernate.transaction.manager_lookup_class=org.hibernate.transaction.JBossTransactionManagerLookup, hibernate.dialect=org.hibernate.dialect.HSQLDialect, hibernate.query.factory_class=org.hibernate.hql.ast.ASTQueryTranslatorFactory, hibernate.hbm2ddl.auto=create-drop, hibernate.connection.datasource=java:/DefaultDS, hibernate.connection.release_mode=after_statement}
      10:17:26,008 INFO [SocketServerInvoker] Invoker started for locator: InvokerLocator [socket://192.168.25.49:3873/0.0.0.0:3873]
      10:17:26,413 INFO [AspectDeployer] Deployed AOP: file:/C:/Program Files/jboss-4.0.3SP1/server/default/deploy/ejb3-interceptors-aop.xml
      10:17:30,340 INFO [WebService] Using RMI server codebase: http://dwprc:8083/
      10:17:30,558 INFO [TreeCache] setting cluster properties from xml to: UDP(ip_mcast=true;ip_ttl=64;loopback=false;mcast_addr=228.1.2.3;mcast_port=45551;mcast_recv_buf_size=80000;mcast_send_buf_size=150000;ucast_recv_buf_size=80000;ucast_send_buf_size=150000):PING(down_thread=false;num_initial_members=3;timeout=2000;up_thread=false):MERGE2(max_interval=20000;min_interval=10000):FD(down_thread=true;shun=true;up_thread=true):VERIFY_SUSPECT(down_thread=false;timeout=1500;up_thread=false):pbcast.NAKACK(down_thread=false;gc_lag=50;max_xmit_size=8192;retransmit_timeout=600,1200,2400,4800;up_thread=false):UNICAST(down_thread=false;min_threshold=10;timeout=600,1200,2400;window_size=100):pbcast.STABLE(desired_avg_gossip=20000;down_thread=false;up_thread=false):FRAG(down_thread=false;frag_size=8192;up_thread=false):pbcast.GMS(join_retry_timeout=2000;join_timeout=5000;print_local_addr=true;shun=true):pbcast.STATE_TRANSFER(down_thread=false;up_thread=false)
      10:17:30,574 INFO [TreeCache] setEvictionPolicyConfig(): [config: null]
      10:17:30,574 WARN [TreeCache] No transaction manager lookup class has been defined. Transactions cannot be used
      10:17:30,605 INFO [TreeCache] interceptor chain is:
      class org.jboss.cache.interceptors.CallInterceptor
      class org.jboss.cache.interceptors.LockInterceptor
      class org.jboss.cache.interceptors.CacheLoaderInterceptor
      class org.jboss.cache.interceptors.UnlockInterceptor
      class org.jboss.cache.interceptors.ReplicationInterceptor
      class org.jboss.cache.interceptors.CacheStoreInterceptor
      10:17:30,605 INFO [TreeCache] cache mode is REPL_SYNC
      10:17:30,838 INFO [STDOUT]
      -------------------------------------------------------
      GMS: address is dwprc:1526
      -------------------------------------------------------
      10:17:32,895 INFO [TreeCache] state could not be retrieved (must be first member in group)
      10:17:32,895 INFO [LRUPolicy] Starting eviction policy using the provider: org.jboss.ejb3.cache.tree.StatefulEvictionPolicy
      10:17:32,895 INFO [LRUPolicy] Starting a eviction timer with wake up interval of (secs) 1
      10:17:32,895 INFO [TreeCache] new cache is null (maybe first member in cluster)
      10:17:32,895 INFO [TreeCache] viewAccepted(): new members: [dwprc:1526]
      10:17:32,958 INFO [TreeCache] setting cluster properties from xml to: UDP(ip_mcast=true;ip_ttl=2;loopback=false;mcast_addr=228.1.2.3;mcast_port=43333;mcast_recv_buf_size=80000;mcast_send_buf_size=150000;ucast_recv_buf_size=80000;ucast_send_buf_size=150000):PING(down_thread=false;num_initial_members=3;timeout=2000;up_thread=false):MERGE2(max_interval=20000;min_interval=10000):FD(down_thread=true;shun=true;up_thread=true):VERIFY_SUSPECT(down_thread=false;timeout=1500;up_thread=false):pbcast.NAKACK(down_thread=false;gc_lag=50;max_xmit_size=8192;retransmit_timeout=600,1200,2400,4800;up_thread=false):UNICAST(down_thread=false;min_threshold=10;timeout=600,1200,2400;window_size=100):pbcast.STABLE(desired_avg_gossip=20000;down_thread=false;up_thread=false):FRAG(down_thread=false;frag_size=8192;up_thread=false):pbcast.GMS(join_retry_timeout=2000;join_timeout=5000;print_local_addr=true;shun=true):pbcast.STATE_TRANSFER(down_thread=false;up_thread=false)
      10:17:32,973 INFO [TreeCache] setEvictionPolicyConfig(): [config: null]
      10:17:34,812 INFO [MailService] Mail Service bound to java:/Mail
      10:17:35,170 INFO [NamingService] Started jndi bootstrap jnpPort=1099, rmiPort=1098, backlog=50, bindAddress=/0.0.0.0, Client SocketFactory=null, Server SocketFactory=org.jboss.net.sockets.DefaultSocketFactory@ad093076
      10:17:35,186 INFO [DefaultPartition] Initializing
      10:17:35,217 INFO [STDOUT]
      -------------------------------------------------------
      GMS: address is dwprc:1529 (additional data: 18 bytes)
      -------------------------------------------------------
      10:17:37,227 INFO [DefaultPartition] Number of cluster members: 1
      10:17:37,227 INFO [DefaultPartition] Other members: 0
      10:17:37,227 INFO [DefaultPartition] Fetching state (will wait for 30000 milliseconds):
      10:17:37,227 INFO [DefaultPartition] New cluster view for partition DefaultPartition (id: 0, delta: 0) : [192.168.25.49:1099]
      10:17:37,227 INFO [DefaultPartition] I am (null) received membershipChanged event:
      10:17:37,227 INFO [DefaultPartition] Dead members: 0 ([])
      10:17:37,227 INFO [DefaultPartition] New Members : 0 ([])
      10:17:37,227 INFO [DefaultPartition] All Members : 1 ([192.168.25.49:1099])
      10:17:37,259 INFO [HANamingService] Started ha-jndi bootstrap jnpPort=1100, backlog=50, bindAddress=/0.0.0.0
      10:17:37,274 INFO [DetachedHANamingService$AutomaticDiscovery] Listening on /0.0.0.0:1102, group=230.0.0.4, HA-JNDI address=192.168.25.49:1100
      10:17:37,383 INFO [TreeCache] interceptor chain is:
      class org.jboss.cache.interceptors.CallInterceptor
      class org.jboss.cache.interceptors.LockInterceptor
      class org.jboss.cache.interceptors.UnlockInterceptor
      class org.jboss.cache.interceptors.ReplicationInterceptor
      10:17:37,383 INFO [TreeCache] cache mode is REPL_SYNC
      10:17:37,399 INFO [STDOUT]
      -------------------------------------------------------
      GMS: address is dwprc:1532
      -------------------------------------------------------
      10:17:39,409 INFO [TreeCache] state could not be retrieved (must be first member in group)
      10:17:39,409 INFO [LRUPolicy] Starting eviction policy using the provider: org.jboss.cache.eviction.LRUPolicy
      10:17:39,409 INFO [LRUPolicy] Starting a eviction timer with wake up interval of (secs) 5
      10:17:39,409 INFO [TreeCache] viewAccepted(): new members: [dwprc:1532]
      10:17:39,409 INFO [TreeCache] new cache is null (maybe first member in cluster)
      10:17:40,250 INFO [Embedded] Catalina naming disabled
      10:17:40,562 INFO [Http11Protocol] Initializing Coyote HTTP/1.1 on http-0.0.0.0-8080
      10:17:40,562 INFO [Catalina] Initialization processed in 265 ms
      10:17:40,562 INFO [StandardService] Starting service jboss.web
      10:17:40,562 INFO [StandardEngine] Starting Servlet Engine: Apache Tomcat/5.5
      10:17:40,593 INFO [StandardHost] XML validation disabled
      10:17:40,624 INFO [Catalina] Server startup in 62 ms
      10:17:40,765 INFO [TomcatDeployer] deploy, ctxPath=/invoker, warUrl=.../deploy/http-invoker.sar/invoker.war/
      10:17:41,061 INFO [WebappLoader] Dual registration of jndi stream handler: factory already defined
      10:17:41,481 INFO [TomcatDeployer] deploy, ctxPath=/webdav, warUrl=.../deploy/jboss-portal.sar/portal-cms.war/
      10:17:41,622 INFO [TomcatDeployer] deploy, ctxPath=/portal-core, warUrl=.../deploy/jboss-portal.sar/portal-core.war/
      10:17:41,777 INFO [TomcatDeployer] deploy, ctxPath=/portal, warUrl=.../deploy/jboss-portal.sar/portal-server.war/
      10:17:41,949 INFO [TomcatDeployer] deploy, ctxPath=/ws4ee, warUrl=.../tmp/deploy/tmp42866jboss-ws4ee-exp.war/
      10:17:42,074 INFO [TomcatDeployer] deploy, ctxPath=/, warUrl=.../deploy/jbossweb-tomcat55.sar/ROOT.war/
      10:17:42,183 INFO [TomcatDeployer] deploy, ctxPath=/jbossmq-httpil, warUrl=.../deploy/jms/jbossmq-httpil.sar/jbossmq-httpil.war/
      10:17:42,292 INFO [TomcatDeployer] deploy, ctxPath=/web-console, warUrl=.../deploy/management/console-mgr.sar/web-console.war/
      10:17:42,899 INFO [TreeCache] setting cluster properties from xml to: UDP(ip_mcast=true;ip_ttl=8;loopback=false;mcast_addr=230.1.2.7;mcast_port=45577;mcast_recv_buf_size=80000;mcast_send_buf_size=150000;ucast_recv_buf_size=80000;ucast_send_buf_size=150000):PING(down_thread=false;num_initial_members=3;timeout=2000;up_thread=false):MERGE2(max_interval=20000;min_interval=10000):FD_SOCK:VERIFY_SUSPECT(down_thread=false;timeout=1500;up_thread=false):pbcast.NAKACK(down_thread=false;gc_lag=50;max_xmit_size=8192;retransmit_timeout=600,1200,2400,4800;up_thread=false):UNICAST(down_thread=false;min_threshold=10;timeout=600,1200,2400;window_size=100):pbcast.STABLE(desired_avg_gossip=20000;down_thread=false;up_thread=false):FRAG(down_thread=false;frag_size=8192;up_thread=false):pbcast.GMS(join_retry_timeout=2000;join_timeout=5000;print_local_addr=true;shun=true):pbcast.STATE_TRANSFER(down_thread=true;up_thread=true)
      10:17:42,899 INFO [TreeCache] interceptor chain is:
      class org.jboss.cache.interceptors.CallInterceptor
      class org.jboss.cache.interceptors.LockInterceptor
      class org.jboss.cache.interceptors.UnlockInterceptor
      class org.jboss.cache.interceptors.ReplicationInterceptor
      10:17:42,899 INFO [TreeCache] cache mode is REPL_ASYNC
      10:17:42,946 INFO [STDOUT]
      -------------------------------------------------------
      GMS: address is dwprc:1536
      -------------------------------------------------------
      10:17:44,956 INFO [TreeCache] viewAccepted(): new members: [dwprc:1536]
      10:17:44,956 INFO [TreeCache] state could not be retrieved (must be first member in group)
      10:17:44,956 INFO [TreeCache] new cache is null (maybe first member in cluster)
      10:17:45,268 INFO [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/jboss-ha-local-jdbc.rar
      10:17:45,377 INFO [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/jboss-ha-xa-jdbc.rar
      10:17:45,471 INFO [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/jboss-local-jdbc.rar
      10:17:45,580 INFO [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/jboss-xa-jdbc.rar
      10:17:45,658 INFO [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/jms/jms-ra.rar
      10:17:45,720 INFO [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/mail-ra.rar
      10:17:46,608 INFO [ConnectionFactoryBindingService] Bound ConnectionManager 'jboss.jca:service=DataSourceBinding,name=DefaultDS' to JNDI name 'java:DefaultDS'
      10:17:46,889 INFO [A] Bound to JNDI name: queue/A
      10:17:46,889 INFO [B] Bound to JNDI name: queue/B
      10:17:46,889 INFO [C] Bound to JNDI name: queue/C
      10:17:46,889 INFO [D] Bound to JNDI name: queue/D
      10:17:46,889 INFO [ex] Bound to JNDI name: queue/ex
      10:17:46,904 INFO [testTopic] Bound to JNDI name: topic/testTopic
      10:17:46,904 INFO [securedTopic] Bound to JNDI name: topic/securedTopic
      10:17:46,904 INFO [testDurableTopic] Bound to JNDI name: topic/testDurableTopic
      10:17:46,920 INFO [testQueue] Bound to JNDI name: queue/testQueue
      10:17:46,967 INFO [UILServerILService] JBossMQ UIL service available at : /0.0.0.0:8093
      10:17:46,998 INFO [DLQ] Bound to JNDI name: queue/DLQ
      10:17:47,138 INFO [ConnectionFactoryBindingService] Bound ConnectionManager 'jboss.jca:service=ConnectionFactoryBinding,name=JmsXA' to JNDI name 'java:JmsXA'
      10:17:47,185 INFO [TomcatDeployer] deploy, ctxPath=/jmx-console, warUrl=.../deploy/jmx-console.war/
      10:17:47,309 ERROR [URLDeploymentScanner] Incomplete Deployment listing:
      
      --- MBeans waiting for other MBeans ---
      ObjectName: portal:service=CMS
       State: CONFIGURED
       I Depend On:
       jboss.cache:service=InvalidationManager
       jboss.jca:service=DataSourceBinding,name=PortalDS
       Depends On Me:
       portal:service=Tree
      
      ObjectName: portal:service=Tree
       State: CONFIGURED
       I Depend On:
       portal:service=CMS
       Depends On Me:
       portal:service=Module,type=Security
      
      ObjectName: portal:service=Hibernate
       State: CONFIGURED
       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
      
      ObjectName: portal:service=Module,type=User
       State: CONFIGURED
       I Depend On:
       portal:service=Hibernate
       Depends On Me:
       portal:service=Module,type=Mail
      
      ObjectName: portal:service=Module,type=Role
       State: CONFIGURED
       I Depend On:
       portal:service=Hibernate
      
      ObjectName: portal:service=Module,type=Security
       State: CONFIGURED
       I Depend On:
       portal:service=Hibernate
       portal:service=Tree
      
      ObjectName: portal:service=Module,type=Mail
       State: CONFIGURED
       I Depend On:
       portal:service=Module,type=User
      
      ObjectName: portal:service=ServerManager
       State: CONFIGURED
       I Depend On:
       portal:service=Hibernate
       portal:service=Configuration
       portal:service=ObjectFactory
       portal:service=ThemeServer
       portal:service=LayoutServer
       Depends On Me:
       portal:service=Deployer,type=PortalWebApp
      
      ObjectName: portal:service=Deployer,type=PortalWebApp
       State: CONFIGURED
       I Depend On:
       jboss.system:service=MainDeployer
       portal:service=ServerManager
       Depends On Me:
       portal:service=Deployer,type=JBoss
       portal:service=Deployer,type=Adapter
      
      ObjectName: portal:service=Deployer,type=JBoss
       State: CONFIGURED
       I Depend On:
       portal:service=Deployer,type=PortalWebApp
      
      ObjectName: portal:service=Deployer,type=Adapter
       State: CONFIGURED
       I Depend On:
       portal:service=Deployer,type=PortalWebApp
       jboss.web:service=WebServer
      
      --- MBEANS THAT ARE THE ROOT CAUSE OF THE PROBLEM ---
      ObjectName: jboss.jca:service=DataSourceBinding,name=PortalDS
       State: NOTYETINSTALLED
       Depends On Me:
       portal:service=CMS
       portal:service=Hibernate
      
      
      10:17:47,356 INFO [Http11Protocol] Starting Coyote HTTP/1.1 on http-0.0.0.0-8080
      10:17:47,481 INFO [ChannelSocket] JK: ajp13 listening on /0.0.0.0:8009
      10:17:47,481 INFO [JkMain] Jk running ID=0 time=0/16 config=null
      10:17:47,496 INFO [Server] JBoss (MX MicroKernel) [4.0.3SP1 (build: CVSTag=JBoss_4_0_3_SP1 date=200510231751)] Started in 25s:415ms
      10:19:23,524 ERROR [[PortalServlet]] Servlet.service() for servlet PortalServlet threw exception
      java.lang.NullPointerException
       at org.jboss.portal.server.servlet.AbstractMainServlet.doGet(AbstractMainServlet.java:68)
       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(Thread.java:595)
      


      Thanks