You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Dave Smith <da...@candata.com> on 2001/07/25 15:36:20 UTC
Problems with C2 beta 2
When deploying the cocoon.war file I get the following error ...
Could not configure Cocoon environment
org.xml.sax.SAXNotSupportedException: Property:
http://xml.org/sax/properties/lexical-handler
+ at
org.apache.crimson.parser.XMLReaderImpl.setProperty(XMLReaderImpl.java:248)
+ at
org.apache.cocoon.components.parser.JaxpParser.parse(JaxpParser.java:67)
+ at org.apache.cocoon.Cocoon.configure(Cocoon.java:216)
+ at org.apache.cocoon.Cocoon.initialize(Cocoon.java:160)
+ at
org.apache.cocoon.servlet.CocoonServlet.createCocoon(CocoonServlet.java:634)
+ at
org.apache.cocoon.servlet.CocoonServlet.init(CocoonServlet.java:164)
+ at
com.mortbay.Jetty.Servlet.ServletHolder.getServlet(ServletHolder.java:306)
+ at
com.mortbay.Jetty.Servlet.ServletHolder.initialize(ServletHolder.java:194)
+ at
com.mortbay.Jetty.Servlet.ServletHandler.start(ServletHandler.java:185)
+ at com.mortbay.HTTP.HandlerContext.start(HandlerContext.java:1053)
+ at
com.mortbay.Jetty.Servlet.WebApplicationContext.start(WebApplicationContext.java:330)
+ at com.mortbay.HTTP.HttpServer.start(HttpServer.java:127)
+ at com.mortbay.Jetty.Server.main(Server.java:226)
I checked the archives and there was a reference to a similar problem in
the xalan parser but it was supposedly fixed in November of last year.
I am running jetty 3.1R6 on linux 2.2.18 with Blackdown JDK 1.3
---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
To unsubscribe, e-mail: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>
Re: Problems with C2 beta 2
Posted by Dave Smith <da...@candata.com>.
Berin Loritsch wrote:
> Dave Smith wrote:
>
>>When deploying the cocoon.war file I get the following error ...
>>
>
> This is due to an incorrectly versioned JAXP parser (you want JAXP 1.1
> compliance). You have two alternatives: get Jetty to use Xerces, or
> get Cocoon to use Xerces.
>
> There are instructions in the cocoon.xconf file to use Xerces directly.
>
>
Followed the directions in cocoon.xconf and it works great. Maybee a FAQ
item?
---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
To unsubscribe, e-mail: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>
Re: Problems with C2 beta 2
Posted by Berin Loritsch <bl...@apache.org>.
Dave Smith wrote:
>
> Ok now I am getting ...
>
> Error compiling sitemap
> + javax.xml.transform.TransformerFactoryConfigurationError:
> java.lang.ClassNotFoundException:
> org.apache.xalan.processor.TransformerFactoryImpl
> + at
> javax.xml.transform.TransformerFactory.newInstance(TransformerFactory.java:121)
> + at
> org.apache.cocoon.components.language.markup.Logicsheet.getTransformerFactory(Logicsheet.java:78)
> + at
> org.apache.cocoon.components.language.markup.Logicsheet.setInputSource(Logicsheet.java:95)
> + at
> org.apache.cocoon.components.language.markup.AbstractMarkupLanguage.createLogicsheet(AbstractMarkupLanguage.java:182)
> + at
> org.apache.cocoon.components.language.markup.AbstractMarkupLanguage.configure(AbstractMarkupLanguage.java:113)
> + at
> org.apache.avalon.excalibur.component.DefaultComponentFactory.newInstance(DefaultComponentFactory.java:108)
> + at
> org.apache.avalon.excalibur.component.DefaultComponentHandler.get(DefaultComponentHandler.java:92)
> + at
> org.apache.avalon.excalibur.component.ExcaliburComponentSelector.select(ExcaliburComponentSelector.java:246)
> + at
> org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.load(ProgramGeneratorImpl.java:176)
> + at org.apache.cocoon.sitemap.Handler.run(Handler.java:204)
> + at java.lang.Thread.run(Thread.java:484)
> +
>
> Now according the the FAQ it means it can not find the xalan parser...
> but is it not in the war file? How do I tell jetty to look at it?
Consult your Jetty documentation. They may have a different location
than the servlet specified location.
Alternatively, try changing the initial property
<init-param>
<param-name>init-classloader</param-name>
<param-value>false</param-value>
</init-param>
To use the value "true". This will have Cocoon load up all the necessary
jars in it's own classloader (not required in all environments).
>
> Berin Loritsch wrote:
> > Dave Smith wrote:
> >
> >>When deploying the cocoon.war file I get the following error ...
> >>
> >
> > This is due to an incorrectly versioned JAXP parser (you want JAXP 1.1
> > compliance). You have two alternatives: get Jetty to use Xerces, or
> > get Cocoon to use Xerces.
> >
> > There are instructions in the cocoon.xconf file to use Xerces directly.
> >
> >
> >
>
> ---------------------------------------------------------------------
> Please check that your question has not already been answered in the
> FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
>
> To unsubscribe, e-mail: <co...@xml.apache.org>
> For additional commands, e-mail: <co...@xml.apache.org>
Re: Problems with C2 beta 2
Posted by Dave Smith <da...@candata.com>.
Ok now I am getting ...
Error compiling sitemap
+ javax.xml.transform.TransformerFactoryConfigurationError:
java.lang.ClassNotFoundException:
org.apache.xalan.processor.TransformerFactoryImpl
+ at
javax.xml.transform.TransformerFactory.newInstance(TransformerFactory.java:121)
+ at
org.apache.cocoon.components.language.markup.Logicsheet.getTransformerFactory(Logicsheet.java:78)
+ at
org.apache.cocoon.components.language.markup.Logicsheet.setInputSource(Logicsheet.java:95)
+ at
org.apache.cocoon.components.language.markup.AbstractMarkupLanguage.createLogicsheet(AbstractMarkupLanguage.java:182)
+ at
org.apache.cocoon.components.language.markup.AbstractMarkupLanguage.configure(AbstractMarkupLanguage.java:113)
+ at
org.apache.avalon.excalibur.component.DefaultComponentFactory.newInstance(DefaultComponentFactory.java:108)
+ at
org.apache.avalon.excalibur.component.DefaultComponentHandler.get(DefaultComponentHandler.java:92)
+ at
org.apache.avalon.excalibur.component.ExcaliburComponentSelector.select(ExcaliburComponentSelector.java:246)
+ at
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.load(ProgramGeneratorImpl.java:176)
+ at org.apache.cocoon.sitemap.Handler.run(Handler.java:204)
+ at java.lang.Thread.run(Thread.java:484)
+
Now according the the FAQ it means it can not find the xalan parser...
but is it not in the war file? How do I tell jetty to look at it?
Berin Loritsch wrote:
> Dave Smith wrote:
>
>>When deploying the cocoon.war file I get the following error ...
>>
>
> This is due to an incorrectly versioned JAXP parser (you want JAXP 1.1
> compliance). You have two alternatives: get Jetty to use Xerces, or
> get Cocoon to use Xerces.
>
> There are instructions in the cocoon.xconf file to use Xerces directly.
>
>
>
---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
To unsubscribe, e-mail: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>
Re: Problems with C2 beta 2
Posted by Berin Loritsch <bl...@apache.org>.
Dave Smith wrote:
>
> When deploying the cocoon.war file I get the following error ...
This is due to an incorrectly versioned JAXP parser (you want JAXP 1.1
compliance). You have two alternatives: get Jetty to use Xerces, or
get Cocoon to use Xerces.
There are instructions in the cocoon.xconf file to use Xerces directly.
>
> Could not configure Cocoon environment
>
> org.xml.sax.SAXNotSupportedException: Property:
> http://xml.org/sax/properties/lexical-handler
> + at
> org.apache.crimson.parser.XMLReaderImpl.setProperty(XMLReaderImpl.java:248)
> + at
> org.apache.cocoon.components.parser.JaxpParser.parse(JaxpParser.java:67)
> + at org.apache.cocoon.Cocoon.configure(Cocoon.java:216)
> + at org.apache.cocoon.Cocoon.initialize(Cocoon.java:160)
> + at
> org.apache.cocoon.servlet.CocoonServlet.createCocoon(CocoonServlet.java:634)
> + at
> org.apache.cocoon.servlet.CocoonServlet.init(CocoonServlet.java:164)
> + at
> com.mortbay.Jetty.Servlet.ServletHolder.getServlet(ServletHolder.java:306)
> + at
> com.mortbay.Jetty.Servlet.ServletHolder.initialize(ServletHolder.java:194)
> + at
> com.mortbay.Jetty.Servlet.ServletHandler.start(ServletHandler.java:185)
> + at com.mortbay.HTTP.HandlerContext.start(HandlerContext.java:1053)
> + at
> com.mortbay.Jetty.Servlet.WebApplicationContext.start(WebApplicationContext.java:330)
> + at com.mortbay.HTTP.HttpServer.start(HttpServer.java:127)
> + at com.mortbay.Jetty.Server.main(Server.java:226)
>
> I checked the archives and there was a reference to a similar problem in
> the xalan parser but it was supposedly fixed in November of last year.
>
> I am running jetty 3.1R6 on linux 2.2.18 with Blackdown JDK 1.3
>
> ---------------------------------------------------------------------
> Please check that your question has not already been answered in the
> FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
>
> To unsubscribe, e-mail: <co...@xml.apache.org>
> For additional commands, e-mail: <co...@xml.apache.org>
AW: Problems with C2 beta 2
Posted by Jorn Heid <he...@fh-heilbronn.de>.
I think I can remeber such a problem with Resin.
I think it's because of different XML libs. Try to replace those libs from
Jetty with the ones from Cocoon (after making a backup ;).
Hope, this helps.
JOERN_HEID
-----Ursprungliche Nachricht-----
Von: Dave Smith [mailto:dave.smith@candata.com]
Gesendet: Mittwoch, 25. Juli 2001 15:36
An: cocoon-users@xml.apache.org
Betreff: Problems with C2 beta 2
When deploying the cocoon.war file I get the following error ...
Could not configure Cocoon environment
org.xml.sax.SAXNotSupportedException: Property:
http://xml.org/sax/properties/lexical-handler
+ at
org.apache.crimson.parser.XMLReaderImpl.setProperty(XMLReaderImpl.java:248)
+ at
org.apache.cocoon.components.parser.JaxpParser.parse(JaxpParser.java:67)
+ at org.apache.cocoon.Cocoon.configure(Cocoon.java:216)
+ at org.apache.cocoon.Cocoon.initialize(Cocoon.java:160)
+ at
org.apache.cocoon.servlet.CocoonServlet.createCocoon(CocoonServlet.java:634)
+ at
org.apache.cocoon.servlet.CocoonServlet.init(CocoonServlet.java:164)
+ at
com.mortbay.Jetty.Servlet.ServletHolder.getServlet(ServletHolder.java:306)
+ at
com.mortbay.Jetty.Servlet.ServletHolder.initialize(ServletHolder.java:194)
+ at
com.mortbay.Jetty.Servlet.ServletHandler.start(ServletHandler.java:185)
+ at com.mortbay.HTTP.HandlerContext.start(HandlerContext.java:1053)
+ at
com.mortbay.Jetty.Servlet.WebApplicationContext.start(WebApplicationContext.
java:330)
+ at com.mortbay.HTTP.HttpServer.start(HttpServer.java:127)
+ at com.mortbay.Jetty.Server.main(Server.java:226)
I checked the archives and there was a reference to a similar problem in
the xalan parser but it was supposedly fixed in November of last year.
I am running jetty 3.1R6 on linux 2.2.18 with Blackdown JDK 1.3
---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
To unsubscribe, e-mail: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>
---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
To unsubscribe, e-mail: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>