hi, i'm following the mailing list and dug through the archives because of this often found problem: i tried to install cocoon 2 w/ visualage for java and the websphere test environment and gave up at the point where Cocoon would initialize and throw this exception when i requested a page. the files sitemap_xmap.java, sitemap_xmap.class and a inner class are generated in the WEB-INF/work/org/apache/www directory but Cocoon or whatever component is looking for this org\apache\www\sitemap_xmap context seems not to be able to find it. so that's the point where i gave up cocoon w/ VAJ and the WTE. next i installed tomcat 4.0 and cocoon 2 and everything worked fine in the first attempt. i got every example running. so i thought that this might be a websphere specific problem the next thing i did was installing the tomcat test environment for vaj (tomcat 3.2.3), put the cocoon files into the right directories. i didn't import any jars into vaj this time but setup the classpath for the jar files that came with cocoon and changed the parser.jar to zparser.jar and all that other stuff as stated in the cocoon docs so now i'm at the same point. cocoon is initializing, everything seems to be fine, except when i start a request on cocoon i get the same error message "The sitemap handler's sitemap is not available" the sitemap_xmap .java and .classes are generated, but somehow the classloader doesn't find the class files. i tried to import them into vaj, i added the path to the classes to the classpath, but i get the same error message over and over...
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? is there anyone who got cocoon 2 running with vaj and either the wte or tomcat test environment? any idea on how to give cocoon a hint how to find that sitemap? tom here are parts of the cocoon.log files: [cocoon.log, the not vaj & working tomcat test environment version] /Handler: Beginning sitemap regeneration /URLFactoryImpl: Making URL from file:/D:\Apps\IBM\VisualAge for Java\ide\project_resources\Apache_Tomcat_Test_Environment\webapps\cocoon\sitemap.xmap /URLFactoryImpl: Making URL from file:/D:/Apps/IBM/VisualAge for Java/ide/project_resources/Apache_Tomcat_Test_Environment/webapps/cocoon/ /URLFactoryImpl: Making URL from file:/D:\Apps\IBM\VisualAge for Java\ide\project_resources\Apache_Tomcat_Test_Environment\webapps\cocoon\sitemap.xmap /ExcaliburComponentSelector: UnnamedSelector: ComponentSelector could not find the component for hint: org\apache\cocoon\www\sitemap_xmap /GeneratorSelector: Could not access component for hint: org\apache\cocoon\www\sitemap_xmap /ProgramGeneratorImpl: The instance was not accessible from the internal cache. Proceeding. /DefaultComponentFactory: ComponentFactory creating new instance of org.apache.cocoon.www.sitemap_xmap. /DefaultComponentFactory: no logger attribute available, using standard logger /DefaultRoleManager: looking up shorthand parser, returning null /DefaultRoleManager: looking up shorthand hsqldb-server, returning null /DefaultRoleManager: looking up shorthand store, returning null /DefaultRoleManager: looking up shorthand store-janitor, returning null [...] [there are some more looking up statements, but this one seems to be interesting again: ] /DefaultRoleManager: looking up shorthand sitemap, returning null /ExcaliburComponentManager: Looking up component on an uninitialized ComponentManager: org.apache.cocoon.generation.GeneratorSelector /ExcaliburComponentManager: Could not find ComponentHandler, attempting to create one for role: org.apache.cocoon.generation.GeneratorSelector /Handler: Error compiling sitemap java.lang.InternalError: (Ex02) An error has occurred. java.lang.Throwable(java.lang.String) java.lang.Error(java.lang.String) java.lang.VirtualMachineError(java.lang.String) java.lang.InternalError(java.lang.String) java.lang.Class java.lang.ClassLoader.findLoadedClass(java.lang.String) java.lang.Class java.lang.ClassLoader.loadClass(java.lang.String, boolean) java.lang.Class java.lang.ClassLoader.loadClass(java.lang.String) org.apache.avalon.framework.component.Component org.apache.avalon.excalibur.component.ExcaliburComponentManager.lookup(java.lang.String) org.apache.avalon.framework.component.Component org.apache.avalon.excalibur.component.ExcaliburComponentManager.lookup(java.lang.String) void org.apache.cocoon.sitemap.AbstractSitemap.compose(org.apache.avalon.framework.component.ComponentManager) java.lang.Object org.apache.avalon.excalibur.component.DefaultComponentFactory.newInstance() void org.apache.avalon.excalibur.component.ThreadSafeComponentHandler.initialize() void org.apache.cocoon.components.language.generator.GeneratorSelector.addGenerator(org.apache.avalon.framework.component.ComponentManager, java.lang.Object, java.lang.Class) void org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.addCompiledComponent(org.apache.avalon.framework.component.ComponentManager, java.lang.String, java.lang.Class) org.apache.cocoon.components.language.generator.CompiledComponent org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.load(org.apache.avalon.framework.component.ComponentManager, java.lang.String, java.lang.String, java.lang.String, org.apache.cocoon.environment.SourceResolver) void org.apache.cocoon.sitemap.Handler.run() void java.lang.Thread.run() **************************************************** [the working version running on tomcat 4.0] /DefaultComponentFactory: ComponentFactory creating new instance of org.apache.cocoon.components.source.SourceHandlerImpl. /DefaultComponentFactory: no logger attribute available, using standard logger /SourceHandlerImpl: Getting the SourceFactories /Handler: Beginning sitemap regeneration /URLFactoryImpl: Making URL from file:/D:\Apps\Apache\Tomcat-4.0\webapps\cocoon\sitemap.xmap /URLFactoryImpl: Making URL from file:/D:/Apps/Apache/Tomcat-4.0/webapps/cocoon/ /URLFactoryImpl: Making URL from file:/D:\Apps\Apache\Tomcat-4.0\webapps\cocoon\sitemap.xmap /ExcaliburComponentSelector: UnnamedSelector: ComponentSelector could not find the component for hint: org\apache\cocoon\www\sitemap_xmap /GeneratorSelector: Could not access component for hint: org\apache\cocoon\www\sitemap_xmap /ProgramGeneratorImpl: The instance was not accessible from the internal cache. Proceeding. /ProgramGeneratorImpl: The class was not preloaded /ExcaliburComponentSelector: UnnamedSelector: ComponentSelector could not find the component for hint: org\apache\cocoon\www\sitemap_xmap /GeneratorSelector: Could not access component for hint: org\apache\cocoon\www\sitemap_xmap /ProgramGeneratorImpl: Creating resource org.apache.cocoon.www.sitemap_xmap, using generator org.apache.cocoon.components.language.generator.ProgramGeneratorImpl@1d75ee /DefaultComponentFactory: ComponentFactory creating new instance of org.apache.cocoon.components.language.markup.sitemap.SitemapMarkupLanguage. /DefaultComponentFactory: no logger attribute available, using standard logger /DefaultComponentFactory: ComponentFactory creating new instance of org.apache.cocoon.components.xslt.XSLTProcessorImpl. /DefaultComponentFactory: logger attribute is root.xslt /URLFactoryImpl: Making URL from file:/D:\Apps\Apache\Tomcat-4.0\webapps\cocoon\sitemap.xmap /AbstractMarkupLanguage: AbstractMarkupLanguage addLogicsheetToList: logicsheetLocation jar:file:/D:/Apps/Apache/Tomcat-4.0/webapps/cocoon/WEB-INF/lib/cocoon-2.0.jar!/org/apache/cocoon/components/language/markup/sitemap/java/sitemap.xsl, logicsheet instance org.apache.cocoon.components.language.markup.Logicsheet@61eea8 /AbstractMarkupLanguage: AbstractMarkupLanguage addLogicsheetToList: logicsheetName jar:file:/D:/Apps/Apache/Tomcat-4.0/webapps/cocoon/WEB-INF/lib/cocoon-2.0.jar!/org/apache/cocoon/components/language/markup/sitemap/java/sitemap.xsl /JavaLanguage: Attempted to retrieve directory listing of non-directory D:\Apps\JavaSoft\JRE\1.3.0_01\lib\ext /JavaLanguage: Compiling D:\Apps\Apache\Tomcat-4.0\work\localhost\cocoon\cocoon-files\org/apache/cocoon/www\sitemap_xmap.java /DefaultComponentFactory: ComponentFactory creating new instance of org.apache.cocoon.www.sitemap_xmap. /DefaultComponentFactory: no logger attribute available, using standard logger /DefaultRoleManager: looking up shorthand hsqldb-server, returning null [...] [the same as in the other log file, looking up some shorthands.. but then this is the difference] /DefaultRoleManager: looking up shorthand sitemap, returning null /ExcaliburComponentManager: Looking up component on an uninitialized ComponentManager: org.apache.cocoon.generation.GeneratorSelector /ExcaliburComponentManager: Could not find ComponentHandler, attempting to create one for role: org.apache.cocoon.generation.GeneratorSelector /ExcaliburComponentManager: Could not find ComponentHandler, attempting to create one for role: org.apache.cocoon.generation.GeneratorSelector /DefaultComponentFactory: ComponentFactory creating new instance of org.apache.cocoon.sitemap.SitemapComponentSelector. /DefaultComponentFactory: no logger attribute available, using standard logger /ExcaliburComponentSelector: ComponentSelector setting up with root element: /DefaultRoleManager: looking up shorthand , returning null /ThreadSafeComponentHandler: ComponentHandler initialized for: org.apache.cocoon.sitemap.SitemapComponentSelector [...] -- GMX - Die Kommunikationsplattform im Internet. http://www.gmx.net --------------------------------------------------------------------- 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]>