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

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3876493#3876493

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3876493


-------------------------------------------------------
This SF.Net email is sponsored by: NEC IT Guy Games.
Get your fingers limbered up and give it your best shot. 4 great events, 4
opportunities to win big! Highest score wins.NEC IT Guy Games. Play to
win an NEC 61 plasma display. Visit http://www.necitguy.com/?r=20
_______________________________________________
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to