I tried to put the component in the package org.apache.cocoon.acting
wondering what IllegalAccessException could be, but nothing.

I'm posting the complete java source, subsitemap and the cocoon error.

Thanks,

-----Mensaje original-----
De: Ivan Rubin Ayma 
Enviado el: lunes, 28 de enero de 2002 18:05
Para: [EMAIL PROTECTED]
Asunto: Object X is not a component error


I wrote the simplest component I could and at sitemap-compilation cocoon
keeps on giving me:

Error in sitemap configuration : Object Zeus.core.cocoon.JSessionLogin
is not a Component

Why?

The component:

public class JSessionLogin extends
org.apache.cocoon.acting.ComposerAction implements ThreadSafe {

        public Map act( Redirector redirector, SourceResolver resolver,
Map objectModel, String source, Parameters par )
                  throws Exception {

                return null;
        }
}

It's well compiled and in the right place.

Any hints?

Thanks,

-----Mensaje original-----
De: Vadim Gritsenko [mailto:[EMAIL PROTECTED]]
Enviado el: lunes, 28 de enero de 2002 13:51
Para: [EMAIL PROTECTED]
Asunto: RE: one of those "The sitemap handler's sitemap is not
available" errors


> From: tom blondeau [mailto:[EMAIL PROTECTED]]
> 
> btw. what's the problem with hsqldb. it only works fine if i overwrite
the
> files in the WEB-INF/db with the original files everytime i restart
the
> servlet engine?


Try ServerImpl from the CVS. Should work Ok now.

Vadim



---------------------------------------------------------------------
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: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>


---------------------------------------------------------------------
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: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>

Cocoon 2 - Internal server error

--------------------------------------------------------------------------------

type internal-server-error

message Error in sitemap configuration : Object org.apache.cocoon.acting.JSessionLogin 
is not a Component

description org.apache.avalon.framework.configuration.ConfigurationException: Error in 
sitemap configuration : Object org.apache.cocoon.acting.JSessionLogin is not a 
Component

sender org.apache.cocoon.servlet.CocoonServlet

source Cocoon servlet

request-uri

/cocoon/zeus/

exception

org.apache.avalon.framework.configuration.ConfigurationException: Error in sitemap 
configuration : Object org.apache.cocoon.acting.JSessionLogin is not a Component

path-info

zeus/

stacktrace

org.apache.avalon.framework.configuration.ConfigurationException: Error in sitemap 
configuration : Object org.apache.cocoon.acting.JSessionLogin is not a Component
        at org.apache.cocoon.Cocoon.process(Cocoon.java:509)
        at org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:647)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
        at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)

        at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)

        at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
        at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
        at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
        at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
        at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:201)
        at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
        at 
org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)
        at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
        at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
        at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
        at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2344)
        at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164)
        at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
        at 
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
        at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
        at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
        at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
        at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:462)
        at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
        at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
        at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
        at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:163)
        at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
        at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
        at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
        at 
org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1011)
        at 
org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1106)
        at java.lang.Thread.run(Thread.java:484)


original exception

Original exception : java.lang.IllegalAccessException: Object 
org.apache.cocoon.acting.JSessionLogin is not a Component
        at 
org.apache.cocoon.sitemap.AbstractSitemap.load_component(AbstractSitemap.java:222)
        at 
org.apache.cocoon.www.zeus.sitemap_xmap$Configurer.configActions(sitemap_xmap.java:218)

        at org.apache.cocoon.www.zeus.sitemap_xmap.configure(sitemap_xmap.java:145)
        at 
org.apache.avalon.excalibur.component.DefaultComponentFactory.newInstance(Unknown 
Source)
        at 
org.apache.avalon.excalibur.component.ThreadSafeComponentHandler.initialize(Unknown 
Source)
        at 
org.apache.cocoon.components.language.generator.GeneratorSelector.addGenerator(GeneratorSelector.java:135)

        at 
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.addCompiledComponent(ProgramGeneratorImpl.java:345)

        at 
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.generateResource(ProgramGeneratorImpl.java:323)

        at 
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.createResource(ProgramGeneratorImpl.java:271)

        at 
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.load(ProgramGeneratorImpl.java:188)

        at org.apache.cocoon.sitemap.Handler.run(Handler.java:208)
        at java.lang.Thread.run(Thread.java:484)




--------------------------------------------------------------------------------

Attachment: JSessionLogin.java
Description: JSessionLogin.java

Attachment: sitemap.xmap
Description: sitemap.xmap

---------------------------------------------------------------------
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: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>

Reply via email to