You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Georgi Kostadinov <ge...@avue.bc.ca> on 2001/04/03 00:36:03 UTC
Could not add component for class: org.apache.cocoon.www.sitemap_xmap
Hello folks,
System:
--------
Cocoon: v2.0
JDK: Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.0-C),
Java HotSpot(TM) Client VM (build 1.3.0-C, mixed mode)
OS: NT4 SP5
Servlet: v2.2
AppServer: Weblogic 5.1 SP6
Symptoms:
-----------
I've updated our application from Cocoon 1.7.4 to Cocoon2. After I
figured out what libraries I need on the Weblogic's classpath, I managed
to envoke the MyServlet (MyServlet extends CocoonServlet). The technique
I am using is the one I used with the Cocoon v1.7.4: extend Cocoon
servlet and wrap the HttpServletRequest in MyRequest to provide the XML
content. I changed the line <map:generators default="request"> in
sitemap.xmap to specify the location of the source. Configuration files
seem to be read correctly and the file
<myWebAppContext>/WEB-INF/_tmp_war/org/apache/cocoon/www/sitemap_xmap.java
is generated (but there is no class file generated)!
Stack Trace of this symptom:
-----------------------------
[myserver] Mon Apr 02 14:53:00 PDT 2001:<I> <WebAppServletContext-ads>
ERROR 57929 [cocoon ] (Thread-40): Error compiling sitemap
[myserver] org.apache.avalon.ComponentManagerException: Could not add
component for class: org.apache.cocoon.www.sitemap_xmap
[myserver] at
org.apache.cocoon.components.language.generator.GeneratorSelector.addGenerator(GeneratorSelector.java:61)
[myserver] at
org.apache.cocoon.components.language.generator.GeneratorSelector.select(GeneratorSelector.java:50)
[myserver] at
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.select(ProgramGeneratorImpl.java:263)
[myserver] at
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.load(ProgramGeneratorImpl.java:219)
[myserver] at org.apache.cocoon.sitemap.Handler.run(Handler.java:173)
[myserver] at java.lang.Thread.run(Thread.java:479)
[myserver]
[myserver] Mon Apr 02 14:53:00 PDT 2001:<I> <WebAppServletContext-ads>
ERROR 57930 [cocoon ] (ExecuteThread-10): Problem with servlet
[myserver] org.apache.cocoon.ProcessingException: The sitemap handler's
sitemap is not available.
[myserver] at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:106)
[myserver] at org.apache.cocoon.Cocoon.process(Cocoon.java:218)
[myserver] at
org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:417)
[myserver] at
com.avuetech.core.reports.AbstractReportServlet.service(AbstractReportServlet.java:67)
[myserver] at
javax.servlet.http.HttpServlet.service(HttpServlet.java:865)
[myserver] at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:123)
[myserver] at
weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImpl.java:761)
[myserver] at
weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImpl.java:708)
[myserver] at
weblogic.servlet.internal.ServletContextManager.invokeServlet(ServletContextManager.java:252)
[myserver] at
weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.java:346)
[myserver] at
weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java:246)
[myserver] at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:135)
What does this mean? Any help is greatly appreciated!
Georgi
---------------------------------------------------------------------
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>