Hi!

>How did you build everything?
>Recommend these steps:
>1. Build J2 (maven allClean allBuild)
>2. Build Fusion from fusion directory (maven clean jar:install)
>3. Build J1 with the fusion flag on  (maven clean war, maven deploy))

Yes, there was something wrong with building. Now JS1.6/Fusion is running.
But there are still some problems.

I couldn't follow your recommenadtion exactly, because building stoped 
withou a running HSQLDB . So here is what I did :

In J2 directory :
1. maven start.test.server 
2. maven allClean allBuild
3. shutting down the HSQLDB server
In Fusion directory .
4. maven clean jar:install
In J1 directory:
5. maven clean war
6. maven db.fusion.start (in Fusion directory)
7. maven deploy
8. When I start the portal now I get an exception saying something like "cannot 
create JDBC driver of class '' for connect URL 'null'"
  I assume this is because of the file "jetspeed.xml" that seems to contain the 
required information is not found under ${tomcat.home}/conf/Catalina/localhost -
    so I moved it there and then it worked !

So now I got a running portal. When I deploy portlet-application the following 
error occurs :

 INFO: Loading portlet application from web archive 
/home/hheins/tomcat/webapps/jetspeed/WEB-INF/deploy/myapp.war
 INFO: Application id not defined in portlet.xml so using war name myapp
 INFO: Preparing to (re) deploy portlet app "myapp"
 INFO: Deploying portlet applicaion WAR myapp.war
 INFO: Portlet application deployment target directory is 
/home/hheins/tomcat/webapps/jetspeed/..//myapp
Writing out infused web.xml for myapp
 INFO: Did not load extended metadata as it most likely does not exist.  
java.io.FileNotFoundException: Unable to locate file or path 
/home/hheins/tomcat/webapps/jetspeed/../myapp/WEB-INF/jetspeed-portlet.xml
 INFO: Loading web.xml into memory....
 INFO: Saving the portlet.xml in the registry...
 INFO: Committing registry changes...
 INFO: FileSystem deployment done.
 INFO: Saving the portlet.xml in the J1 registry...
 INFO: Attempting to find media entry with mimetype text/html
 INFO: Found media entry html that matches mimetype text/html
Writing registry: HelloWorld
 INFO: Attempting to find media entry with mimetype text/html
 INFO: Found media entry html that matches mimetype text/html
Writing registry: IncludeAFile
ERROR: org.apache.jetspeed.deployment.DeploymentException: Error (re)deploying 
portlet app: org.apache.jetspeed.tools.pamanager.PortletApplicationException: 
Catalina container action failed, "<html><head><title>Apache Tomcat/5.0.28 - 
Error report</title><style><!--H1 
{font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:22px;}
 H2 
{font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:16px;}
 H3 
{font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:14px;}
 BODY {font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;} 
B {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;} P 
{font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-size:12px;}A
 {color : black;}A.name {color : black;}HR {color : #525D76;}--></style> 
</head><body><h1>HTTP Status 401 - </h1><HR size="1" 
noshade="noshade"><p><b>type</b> Status report</p><p><b>message</b> 
<u></u></p><p><b>description</b> <u>This request requires HTTP authentication 
().</u></p><HR size="1" noshade="noshade"><h3>Apache 
Tomcat/5.0.28</h3></body></html>"
org.apache.jetspeed.deployment.DeploymentException: Error (re)deploying portlet 
app: org.apache.jetspeed.tools.pamanager.PortletApplicationException: Catalina 
container action failed, "<html><head><title>Apache Tomcat/5.0.28 - Error 
report</title><style><!--H1 
{font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:22px;}
 H2 
{font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:16px;}
 H3 
{font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:14px;}
 BODY {font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;} 
B {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;} P 
{font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-size:12px;}A
 {color : black;}A.name {color : black;}HR {color : #525D76;}--></style> 
</head><body><h1>HTTP Status 401 - </h1><HR size="1" 
noshade="noshade"><p><b>type</b> Status report</p><p><b>message</b> 
<u></u></p><p><b>description</b> <u>This request requires HTTP authentication 
().</u></p><HR size="1" noshade="noshade"><h3>Apache 
Tomcat/5.0.28</h3></body></html>"
        at 
org.apache.jetspeed.deployment.impl.DeployPortletAppEventListener.doDeploy(DeployPortletAppEventListener.java:302)
        at 
org.apache.jetspeed.deployment.impl.DeployPortletAppEventListener.invokeDeploy(DeployPortletAppEventListener.java:165)
        at 
org.apache.jetspeed.deployment.impl.StandardDeploymentManager.dispatch(StandardDeploymentManager.java:304)
        at 
org.apache.jetspeed.deployment.impl.StandardDeploymentManager.fireDeploymentEvent(StandardDeploymentManager.java:195)
        at 
org.apache.jetspeed.deployment.impl.StandardDeploymentManager$FileSystemScanner.run(StandardDeploymentManager.java:458)
Caused by: org.apache.jetspeed.tools.pamanager.PortletApplicationException: 
Catalina container action failed, "<html><head><title>Apache Tomcat/5.0.28 - 
Error report</title><style><!--H1 
{font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:22px;}
 H2 
{font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:16px;}
 H3 
{font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:14px;}
 BODY {font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;} 
B {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;} P 
{font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-size:12px;}A
 {color : black;}A.name {color : black;}HR {color : #525D76;}--></style> 
</head><body><h1>HTTP Status 401 - </h1><HR size="1" 
noshade="noshade"><p><b>type</b> Status report</p><p><b>message</b> 
<u></u></p><p><b>description</b> <u>This request requires HTTP authentication 
().</u></p><HR size="1" noshade="noshade"><h3>Apache 
Tomcat/5.0.28</h3></body></html>"
        at 
org.apache.jetspeed.fusion.tools.pamanager.FusionAppServerPAM.checkResponse(FusionAppServerPAM.java:279)
        at 
org.apache.jetspeed.fusion.tools.pamanager.FusionAppServerPAM.deploy(FusionAppServerPAM.java:82)
        at 
org.apache.jetspeed.deployment.impl.DeployPortletAppEventListener.doDeploy(DeployPortletAppEventListener.java:262)
        ... 4 more
ERROR: Error deploying 
/home/hheins/tomcat/webapps/jetspeed/WEB-INF/deploy/myapp.war
 INFO: Loading portlet application from web archive 
/home/hheins/tomcat/webapps/jetspeed/WEB-INF/deploy/myapp.war
 INFO: Application id not defined in portlet.xml so using war name myapp
 INFO: Portlet application "myapp" already been registered.  Skipping initial 
deployment.
 INFO: Adding 
file:/home/hheins/tomcat/webapps/jetspeed/../myapp/WEB-INF/classes/ to class 
path.


The portlets work after deployment, but when I restart Tomcat the portal start 
page is showing this :


java.lang.NullPointerException
        at 
org.apache.jetspeed.util.parser.DefaultJetspeedParameterParser.setRequest(DefaultJetspeedParameterParser.java:88)
        at 
org.apache.turbine.services.rundata.DefaultTurbineRunData.getParameters(DefaultTurbineRunData.java:493)
        at org.apache.turbine.Turbine.doGet(Turbine.java:472)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
        at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
        at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
        at 
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:704)
        at 
org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:474)
        at 
org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:409)
        at 
org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:312)
        at 
org.apache.jasper.runtime.PageContextImpl.doForward(PageContextImpl.java:670)
        at 
org.apache.jasper.runtime.PageContextImpl.forward(PageContextImpl.java:637)
        at org.apache.jsp.index_jsp._jspService(index_jsp.java:44)
        at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
        at 
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)
        at 
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
        at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
        at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
        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.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:534)

I am not sure if my building steps where right...
Please advice.

Thanks in advance
Hendrik Heins

      

Reply via email to