Hi there,
Sorry, I am not sure if this is a bug, that's why I am posting
this here:
Using the latest code from cvs (2.1 dev) I tried out all
samples.
The following does not work for me:
o search (Lucene)
o tutorial
o protected area
o poi samples
Everytime I try to execute one of these I get a
stacktrace.
The interesting thing is the top of the stack looks always
like:
java.lang.NullPointerException
at org.apache.cocoon.components.source.impl.ContextSourceFactory.getSource(ContextSourceFactory.java:105) at org.apache.excalibur.source.impl.SourceResolverImpl.resolveURI(SourceResolverImpl.java:266) at org.apache.cocoon.components.CocoonComponentManager.resolveURI(CocoonComponentManager.java:279) at org.apache.cocoon.environment.AbstractEnvironment.resolveURI(AbstractEnvironment.java:430) at org.apache.cocoon.environment.AbstractEnvironment.resolveURI(AbstractEnvironment.java:420) at org.apache.cocoon.environment.AbstractEnvironment.resolve(AbstractEnvironment.java:361) Further analysis revealed Cocoon was not able to
resolve:
(in the case of search:)
'context://stylesheets/dynamic-page2html.xsl' in context
'file:/C:/eclipseworkspace/test/webapp/search/'
(in the case of protected area sample:)
'context://protected/descriptors/params.xml' in context
'file:/C:/eclipseworkspace/test/webapp/protected/'
(in the case of poi samples:) 'context://stylesheets/simple-samples2html.xsl' in context 'file:/C:/eclipseworkspace/test/webapp/samples/poi/' when invoking the tutorial I
get
java.io.FileNotFoundException: C:\eclipseworkspace\test\webapp\common\style\xsl\html\error2html.xsl (The system cannot find the path specified) which should be found in C:\eclipseworkspace\test\webapp\SAMPLES\common\style\xsl\html\error2html.xsl
I am always crashing in ContextSourceFactory.getSource(String,
Map)
When executing the
following:
envContext = (Context)this.context.get(Constants.CONTEXT_ENVIRONMENT_CONTEXT);
context is always null.
Looks to me the "context://" defined components are not
getting resolved correctly.
I wonder what's going on here.
Everything else including JDBC runs fine.
thanks,
Horst (XP, JDK1.4, Tomcat 4.0.4-b2, C2.1-dev)
PS: Complete stacktraces are available on
request.
|
- RE: ContextSourceFactory problem Horst Rutter
- RE: ContextSourceFactory problem Carsten Ziegeler
- Re: ContextSourceFactory problem Horst Rutter