Heins, Hendrik wrote:
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 .
Sorry bout that. I run with MySQL here, and always forget about the hassles of using HSQLDB (the default).
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
Thats an INFO message
/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>"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><
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>"
</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>
Follow the instructions here, as the live deployment requirements for Fusion are the same as for J2: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.
http://portals.apache.org/jetspeed-2/getting-started.html
specifically steps 2 and 3
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)
Sounds like a problem in J1 and not Fusion specifically...
CapabilityMap cm = CapabilityMapFactory.getCapabilityMap( req.getHeader("User-Agent") );
not really sure whats up there, any other stack traces in the log file?
-- David Sean Taylor Bluesunrise Software [EMAIL PROTECTED] [office] +01 707 773 4646 [mobile] +01 707 529 9194
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]