You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jetspeed-user@portals.apache.org by Larry Mitchell <la...@gmail.com> on 2007/04/20 22:22:51 UTC
tutorial issue
Hi
I was trying out the Jetexpress tutorial am I am having some problem.
Here is what I did:
1) I got the resources zip and and put it under a JetspeedTraining
directory.
2) I get the maven repo from blue sunrise and added that to the maven
subdirectory under JetspeedTraining
3) I noticed that the tomcat-express sub dir was missing and put a version
of tomcat 5.5 under it and named it tomcat-express, added the correct users
to tomcat-users.xml
4) created a workspace dir
5) copied the settings.xml.jetexpress to my userhome/.m2/settings.xml and
localized it to where everything was
6) cd-ed to workspace and used the maven archtype to create a jetexpress dir
7) built jetexpress with mvn -P tomcat,min, and no errors in build and I can
see that j2-admin and jetexpress were deployed to tomcat-express/webapps dir
8) went to tomcat-express and started tomcat
9) no significant errors were seen on startup
10) I viewed the tomcat logs and no errors were present
11) navigated to url http://localhost:8080/jetexpress/portal
12 ) I then saw the following incomprehensible error. Any idea what it
means? thanks in advance.
HTTP Status 500 -
*type* Exception report
*message*
*description* *The server encountered an internal error () that prevented it
from fulfilling this request.*
*exception*
javax.servlet.ServletException: Fatal error encountered while
processing portal request:
org.apache.jetspeed.pipeline.PipelineException: Falied to create
capabilitied: We were unable to build a capability map for the agent,
Mozilla/4.0. This might be an indiciation that the capability
database has not been correctly initialized.
org.apache.jetspeed.engine.JetspeedServlet.doGet(JetspeedServlet.java:250)
javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
*root cause*
org.apache.jetspeed.pipeline.PipelineException: Falied to create
capabilitied: We were unable to build a capability map for the agent,
Mozilla/4.0. This might be an indiciation that the capability
database has not been correctly initialized.
org.apache.jetspeed.capabilities.impl.CapabilityValveImpl.invoke(CapabilityValveImpl.java:71)
org.apache.jetspeed.pipeline.JetspeedPipeline$Invocation.invokeNext(JetspeedPipeline.java:166)
org.apache.jetspeed.pipeline.JetspeedPipeline.invoke(JetspeedPipeline.java:145)
org.apache.jetspeed.engine.JetspeedEngine.service(JetspeedEngine.java:214)
org.apache.jetspeed.engine.JetspeedServlet.doGet(JetspeedServlet.java:241)
javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
*root cause*
org.apache.jetspeed.capabilities.UnableToBuildCapabilityMapException:
We were unable to build a capability map for the agent, Mozilla/4.0.
This might be an indiciation that the capability database has not been
correctly initialized.
org.apache.jetspeed.capabilities.impl.JetspeedCapabilities.getCapabilityMap(JetspeedCapabilities.java:264)
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
java.lang.reflect.Method.invoke(Method.java:585)
org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:318)
org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:203)
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:162)
org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:107)
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:185)
org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:209)
$Proxy0.getCapabilityMap(Unknown Source)
org.apache.jetspeed.capabilities.impl.CapabilityValveImpl.invoke(CapabilityValveImpl.java:67)
org.apache.jetspeed.pipeline.JetspeedPipeline$Invocation.invokeNext(JetspeedPipeline.java:166)
org.apache.jetspeed.pipeline.JetspeedPipeline.invoke(JetspeedPipeline.java:145)
org.apache.jetspeed.engine.JetspeedEngine.service(JetspeedEngine.java:214)
org.apache.jetspeed.engine.JetspeedServlet.doGet(JetspeedServlet.java:241)
javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
Re: tutorial issue
Posted by Larry Mitchell <la...@gmail.com>.
Hi David
Thanks for the help.
After you mentioned a database issue as the possible source, I researched it
on the mailing list, tried out a few things. I did not have the path to
derby set properly.
It now works great. Thanks for the the quick response.
Regards
Larry
On 4/20/07, David Sean Taylor <da...@bluesunrise.com> wrote:
>
> I want to preface this by saying that Im rewriting the tutorial with
> Ant....
> Anyway let me see if I can help...'
>
> Did you check the jetspeed.log under webapps/jetexpress/logs/
> jetspeed.log ?
>
> I think the database isn't correctly configured
> Send us your property files
>
> Also make sure you have a jdbc driver in the tomcat path (such as in
> shared/lib)
>
> On Apr 20, 2007, at 10:22 PM, Larry Mitchell wrote:
>
> > Hi
> >
> > I was trying out the Jetexpress tutorial am I am having some problem.
> >
> > Here is what I did:
> >
> > 1) I got the resources zip and and put it under a JetspeedTraining
> > directory.
> >
> > 2) I get the maven repo from blue sunrise and added that to the maven
> > subdirectory under JetspeedTraining
> >
> > 3) I noticed that the tomcat-express sub dir was missing and put a
> > version
> > of tomcat 5.5 under it and named it tomcat-express, added the
> > correct users
> > to tomcat-users.xml
> >
> > 4) created a workspace dir
> >
> > 5) copied the settings.xml.jetexpress to my userhome/.m2/
> > settings.xml and
> > localized it to where everything was
> >
> > 6) cd-ed to workspace and used the maven archtype to create a
> > jetexpress dir
> >
> > 7) built jetexpress with mvn -P tomcat,min, and no errors in build
> > and I can
> > see that j2-admin and jetexpress were deployed to tomcat-express/
> > webapps dir
> >
> > 8) went to tomcat-express and started tomcat
> >
> > 9) no significant errors were seen on startup
> >
> > 10) I viewed the tomcat logs and no errors were present
> >
> > 11) navigated to url http://localhost:8080/jetexpress/portal
> >
> > 12 ) I then saw the following incomprehensible error. Any idea
> > what it
> > means? thanks in advance.
> >
> > HTTP Status 500 -
> >
> > *type* Exception report
> >
> > *message*
> >
> > *description* *The server encountered an internal error () that
> > prevented it
> > from fulfilling this request.*
> >
> > *exception*
> >
> > javax.servlet.ServletException: Fatal error encountered while
> > processing portal request:
> > org.apache.jetspeed.pipeline.PipelineException: Falied to create
> > capabilitied: We were unable to build a capability map for the agent,
> > Mozilla/4.0. This might be an indiciation that the capability
> > database has not been correctly initialized.
> > org.apache.jetspeed.engine.JetspeedServlet.doGet
> > (JetspeedServlet.java:250)
> > javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
> > javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
> >
> > *root cause*
> >
> > org.apache.jetspeed.pipeline.PipelineException: Falied to create
> > capabilitied: We were unable to build a capability map for the agent,
> > Mozilla/4.0. This might be an indiciation that the capability
> > database has not been correctly initialized.
> > org.apache.jetspeed.capabilities.impl.CapabilityValveImpl.invoke
> > (CapabilityValveImpl.java:71)
> >
> org.apache.jetspeed.pipeline.JetspeedPipeline$Invocation.invokeNext
> > (JetspeedPipeline.java:166)
> > org.apache.jetspeed.pipeline.JetspeedPipeline.invoke
> > (JetspeedPipeline.java:145)
> > org.apache.jetspeed.engine.JetspeedEngine.service
> > (JetspeedEngine.java:214)
> > org.apache.jetspeed.engine.JetspeedServlet.doGet
> > (JetspeedServlet.java:241)
> > javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
> > javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
> >
> > *root cause*
> >
> > org.apache.jetspeed.capabilities.UnableToBuildCapabilityMapException:
> > We were unable to build a capability map for the agent, Mozilla/4.0.
> > This might be an indiciation that the capability database has not been
> > correctly initialized.
> >
> > org.apache.jetspeed.capabilities.impl.JetspeedCapabilities.getCapabili
> > tyMap(JetspeedCapabilities.java:264)
> > sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> > sun.reflect.NativeMethodAccessorImpl.invoke
> > (NativeMethodAccessorImpl.java:39)
> > sun.reflect.DelegatingMethodAccessorImpl.invoke
> > (DelegatingMethodAccessorImpl.java:25)
> > java.lang.reflect.Method.invoke(Method.java:585)
> >
> > org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflectio
> > n(AopUtils.java:318)
> >
> > org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoi
> > npoint(ReflectiveMethodInvocation.java:203)
> >
> > org.springframework.aop.framework.ReflectiveMethodInvocation.proceed
> > (ReflectiveMethodInvocation.java:162)
> >
> > org.springframework.transaction.interceptor.TransactionInterceptor.inv
> > oke(TransactionInterceptor.java:107)
> >
> > org.springframework.aop.framework.ReflectiveMethodInvocation.proceed
> > (ReflectiveMethodInvocation.java:185)
> > org.springframework.aop.framework.JdkDynamicAopProxy.invoke
> > (JdkDynamicAopProxy.java:209)
> > $Proxy0.getCapabilityMap(Unknown Source)
> > org.apache.jetspeed.capabilities.impl.CapabilityValveImpl.invoke
> > (CapabilityValveImpl.java:67)
> >
> org.apache.jetspeed.pipeline.JetspeedPipeline$Invocation.invokeNext
> > (JetspeedPipeline.java:166)
> > org.apache.jetspeed.pipeline.JetspeedPipeline.invoke
> > (JetspeedPipeline.java:145)
> > org.apache.jetspeed.engine.JetspeedEngine.service
> > (JetspeedEngine.java:214)
> > org.apache.jetspeed.engine.JetspeedServlet.doGet
> > (JetspeedServlet.java:241)
> > javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
> > javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
>
>
>
Re: tutorial issue
Posted by David Sean Taylor <da...@bluesunrise.com>.
I want to preface this by saying that Im rewriting the tutorial with
Ant....
Anyway let me see if I can help...'
Did you check the jetspeed.log under webapps/jetexpress/logs/
jetspeed.log ?
I think the database isn't correctly configured
Send us your property files
Also make sure you have a jdbc driver in the tomcat path (such as in
shared/lib)
On Apr 20, 2007, at 10:22 PM, Larry Mitchell wrote:
> Hi
>
> I was trying out the Jetexpress tutorial am I am having some problem.
>
> Here is what I did:
>
> 1) I got the resources zip and and put it under a JetspeedTraining
> directory.
>
> 2) I get the maven repo from blue sunrise and added that to the maven
> subdirectory under JetspeedTraining
>
> 3) I noticed that the tomcat-express sub dir was missing and put a
> version
> of tomcat 5.5 under it and named it tomcat-express, added the
> correct users
> to tomcat-users.xml
>
> 4) created a workspace dir
>
> 5) copied the settings.xml.jetexpress to my userhome/.m2/
> settings.xml and
> localized it to where everything was
>
> 6) cd-ed to workspace and used the maven archtype to create a
> jetexpress dir
>
> 7) built jetexpress with mvn -P tomcat,min, and no errors in build
> and I can
> see that j2-admin and jetexpress were deployed to tomcat-express/
> webapps dir
>
> 8) went to tomcat-express and started tomcat
>
> 9) no significant errors were seen on startup
>
> 10) I viewed the tomcat logs and no errors were present
>
> 11) navigated to url http://localhost:8080/jetexpress/portal
>
> 12 ) I then saw the following incomprehensible error. Any idea
> what it
> means? thanks in advance.
>
> HTTP Status 500 -
>
> *type* Exception report
>
> *message*
>
> *description* *The server encountered an internal error () that
> prevented it
> from fulfilling this request.*
>
> *exception*
>
> javax.servlet.ServletException: Fatal error encountered while
> processing portal request:
> org.apache.jetspeed.pipeline.PipelineException: Falied to create
> capabilitied: We were unable to build a capability map for the agent,
> Mozilla/4.0. This might be an indiciation that the capability
> database has not been correctly initialized.
> org.apache.jetspeed.engine.JetspeedServlet.doGet
> (JetspeedServlet.java:250)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
>
> *root cause*
>
> org.apache.jetspeed.pipeline.PipelineException: Falied to create
> capabilitied: We were unable to build a capability map for the agent,
> Mozilla/4.0. This might be an indiciation that the capability
> database has not been correctly initialized.
> org.apache.jetspeed.capabilities.impl.CapabilityValveImpl.invoke
> (CapabilityValveImpl.java:71)
> org.apache.jetspeed.pipeline.JetspeedPipeline$Invocation.invokeNext
> (JetspeedPipeline.java:166)
> org.apache.jetspeed.pipeline.JetspeedPipeline.invoke
> (JetspeedPipeline.java:145)
> org.apache.jetspeed.engine.JetspeedEngine.service
> (JetspeedEngine.java:214)
> org.apache.jetspeed.engine.JetspeedServlet.doGet
> (JetspeedServlet.java:241)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
>
> *root cause*
>
> org.apache.jetspeed.capabilities.UnableToBuildCapabilityMapException:
> We were unable to build a capability map for the agent, Mozilla/4.0.
> This might be an indiciation that the capability database has not been
> correctly initialized.
>
> org.apache.jetspeed.capabilities.impl.JetspeedCapabilities.getCapabili
> tyMap(JetspeedCapabilities.java:264)
> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> sun.reflect.NativeMethodAccessorImpl.invoke
> (NativeMethodAccessorImpl.java:39)
> sun.reflect.DelegatingMethodAccessorImpl.invoke
> (DelegatingMethodAccessorImpl.java:25)
> java.lang.reflect.Method.invoke(Method.java:585)
>
> org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflectio
> n(AopUtils.java:318)
>
> org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoi
> npoint(ReflectiveMethodInvocation.java:203)
>
> org.springframework.aop.framework.ReflectiveMethodInvocation.proceed
> (ReflectiveMethodInvocation.java:162)
>
> org.springframework.transaction.interceptor.TransactionInterceptor.inv
> oke(TransactionInterceptor.java:107)
>
> org.springframework.aop.framework.ReflectiveMethodInvocation.proceed
> (ReflectiveMethodInvocation.java:185)
> org.springframework.aop.framework.JdkDynamicAopProxy.invoke
> (JdkDynamicAopProxy.java:209)
> $Proxy0.getCapabilityMap(Unknown Source)
> org.apache.jetspeed.capabilities.impl.CapabilityValveImpl.invoke
> (CapabilityValveImpl.java:67)
> org.apache.jetspeed.pipeline.JetspeedPipeline$Invocation.invokeNext
> (JetspeedPipeline.java:166)
> org.apache.jetspeed.pipeline.JetspeedPipeline.invoke
> (JetspeedPipeline.java:145)
> org.apache.jetspeed.engine.JetspeedEngine.service
> (JetspeedEngine.java:214)
> org.apache.jetspeed.engine.JetspeedServlet.doGet
> (JetspeedServlet.java:241)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:803)