You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Sven Kuenzler <sv...@gmx.net> on 2001/03/01 11:00:30 UTC

[C2] Current CVS broken?

Hi,

the sample C2 webapp from current CVS seems to be broken. When trying to
access localhost/cocoon, I get the error message "The sitemap handler's
sitemap is not available". Unfortunatly, the cocoon.log does not give a
clue about what could be wrong with the sitemap. Or does it? Any help
appreciated.

(Environment is JBOSS with Tomcat 3.2.1, under which C2 worked until
yesterday.)

  Sven....

DEBUG   176     [cocoon  ] (Thread-16): Using configuration file:
/cocoon.xconf
INFO    177     [cocoon  ] (Thread-16): Reloading from:
file:/home/svenk/uni/is/jboss/tmp/deploy/Default/cocoon.war/web1004/cocoon.xconf
DEBUG   599     [cocoon  ] (Thread-16): New Cocoon object.
DEBUG   599     [cocoon  ] (Thread-16): Using parser:
org.apache.cocoon.components.parser.JaxpParser
DEBUG   713     [cocoon  ] (Thread-16): Creating Repository with this
directory: /home/svenk/uni/is/tomcat/work/localhost_8080%2Fcocoon
DEBUG   715     [cocoon  ] (Thread-16): Classpath =
/home/svenk/uni/is/jboss/tmp/deploy/Default/cocoon.war/web1004/WEB-INF/classes:/home/svenk/uni/is/jboss/tmp/deploy/Default/cocDEBUG  
716     [cocoon  ] (Thread-16): Work directory =
/home/svenk/uni/is/tomcat/work/localhost_8080%2Fcocoon
DEBUG   873     [cocoon  ] (Thread-16): Root configuration: cocoon
DEBUG   873     [cocoon  ] (Thread-16): Configuration version: 2.0
DEBUG   873     [cocoon  ] (Thread-16): Setting up components...
DEBUG   892     [cocoon  ] (Thread-16): Adding component
(org.apache.cocoon.components.parser.Parser =
org.apache.cocoon.components.parser.JaxpParser)
DEBUG   892     [cocoon  ] (Thread-16): Adding component
(org.apache.cocoon.components.language.generator.ProgramGenerator =
org.apache.cocoon.components.language.generator.ProgrDEBUG   1031   
[cocoon  ] (Thread-16): Adding component
(org.apache.cocoon.components.url.URLFactory =
org.apache.cocoon.components.url.URLFactoryImpl)
DEBUG   1071    [cocoon  ] (Thread-16): Adding component
(org.apache.avalon.util.datasource.DataSourceComponentSelector =
org.apache.cocoon.CocoonComponentSelector)
DEBUG   1075    [cocoon  ] (Thread-16): Adding component
(org.apache.avalon.util.pool.PoolController =
org.apache.cocoon.util.ComponentPoolController)
DEBUG   1114    [cocoon  ] (Thread-16): Adding component
(org.apache.cocoon.components.language.programming.ProgrammingLanguageSelector
= org.apache.cocoon.CocoonComponentSelectoDEBUG   1114    [cocoon  ]
(Thread-16): Adding component
(org.apache.cocoon.components.language.markup.MarkupLanguageSelector =
org.apache.cocoon.CocoonComponentSelector)
DEBUG   1114    [cocoon  ] (Thread-16): Adding component
(org.apache.cocoon.components.store.Store =
org.apache.cocoon.components.store.MemoryStore)
DEBUG   1132    [cocoon  ] (Thread-16): Adding component
(org.apache.cocoon.components.classloader.ClassLoaderManager =
org.apache.cocoon.components.classloader.ClassLoaderManageDEBUG  
1186    [cocoon  ] (Thread-16): Setting up the sitemap.
DEBUG   1204    [cocoon  ] (Thread-16): Sitemap location = sitemap.xmap
DEBUG   1343    [cocoon  ] (Thread-16): Getting the URLFactories
DEBUG   1343    [cocoon  ] (Thread-16):         for protocol: resource
org.apache.cocoon.components.url.ResourceURLFactory
DEBUG   1361    [cocoon  ] (Thread-16):         for protocol: context
org.apache.cocoon.components.url.ContextURLFactory
DEBUG   1378    [cocoon  ] (Thread-16): Beginning sitemap regeneration
DEBUG   1378    [cocoon  ] (Thread-16): Making URL from
file:/home/svenk/uni/is/jboss/tmp/deploy/Default/cocoon.war/web1004/sitemap.xmap
DEBUG   1405    [cocoon  ] (Thread-28): CocoonComponentSelector setting
up with root element:
DEBUG   1407    [cocoon  ] (Thread-28): CocoonComponentSelector setting
up with root element: markup-languages
DEBUG   1603    [cocoon  ] (Thread-28): CocoonComponentSelector setting
up with root element: programming-languages
DEBUG   2271    [cocoon  ] (Thread-28): Looking up
org.apache.cocoon.components.classloader.ClassLoaderManager
DEBUG   2271    [cocoon  ] (Thread-28): Setting the parameters
ERROR   2400    [cocoon  ] (Thread-28): CocoonComponentSelector Could
not find component for hint 'org/apache/cocoon/sitemap_xmap'.
DEBUG   2439    [cocoon  ] (Thread-28): The instance was not accessible,
creating it now.
DEBUG   2532    [cocoon  ] (Thread-28): Making URL from
jar:file:/home/svenk/uni/is/jboss/tmp/deploy/Default/cocoon.war/web1004/WEB-INF/lib/cocoon-2.0a4.jar!/org/apache/cocoon/coDEBUG  
2533    [cocoon  ] (Thread-28): Logicsheet
Used:jar:file:/home/svenk/uni/is/jboss/tmp/deploy/Default/cocoon.war/web1004/WEB-INF/lib/cocoon-2.0a4.jar!/org/apache/cocoon/coDEBUG  
3987    [cocoon  ] (Thread-28): Language Exception
org.apache.cocoon.components.language.LanguageException: Error compiling
sitemap_xmap:
Line 0, column 0:
/home/svenk/uni/is/tomcat/work/localhost_8080%2Fcocoon/org/apache/cocoon/sitemap_xmap.java:65:
'}' expected.
  private Map wildcardMatch (
                             ^
Line 0, column 0:
/home/svenk/uni/is/tomcat/work/localhost_8080%2Fcocoon/org/apache/cocoon/sitemap_xmap.java:66:
Type expected.
 
^
 
        at
org.apache.cocoon.components.language.programming.java.JavaLanguage.compile(JavaLanguage.java:201)
        at
org.apache.cocoon.components.language.programming.CompiledProgrammingLanguage.load(CompiledProgrammingLanguage.java:132)
        at
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.generateResource(ProgramGeneratorImpl.java:224)
        at
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.load(ProgramGeneratorImpl.java:162)
        at org.apache.cocoon.sitemap.Handler.run(Handler.java:174)
        at java.lang.Thread.run(Thread.java:484)
ERROR   3987    [cocoon  ] (Thread-28): CocoonComponentSelector Could
not find component for hint
'org/apache/cocoon/sitemap_xmap'.

Re[2]: [C2] Current CVS broken?

Posted by Sandor Spruit <sa...@cs.uu.nl>.
Davanum,

On Thursday, March 01, 2001, 12:18:06 PM, you wrote:

Davanum> Sandor,

Davanum> :) Placing the xalan***.jar in tomcat-3.2.1\lib was a user
Davanum> error right? :)

I guess so: gosh, I didn't now how it ended in tomcat-3.2.1\lib, it
just popped-up there all of a sudden 8-)

Davanum> Sven,
Davanum> Please post the tomcat\webapps\cocoon\webinf\logs\cocoon.log,
Davanum> tomcat\logs\servlet.log and any messages when you run tomcat.

Sandor

-- 
ir A.G.L. Spruit, Utrecht University, the Netherlands
Institute of information and computing sciences
"There is a bit of magic in everything, and then some
loss to even things out" (from: Lou Reed, "Magic and Loss")



Re: [C2] Current CVS broken?

Posted by Sven Kuenzler <sv...@gmx.net>.
> Sven,
> Please post the tomcat\webapps\cocoon\webinf\logs\cocoon.log,
tomcat\logs\servlet.log and any
> messages when you run tomcat.

Actually, there is no problem when running Cocoon with Tomcat stand alone.
There must be a misunderstanding between JBoss and Coocoon, or JBoss and its
embedded Tomcat. I'll try to track this down next week.

    Sven....


Re: [C2] Current CVS broken?

Posted by Davanum Srinivas <di...@yahoo.com>.
Sandor,
:) Placing the xalan***.jar in tomcat-3.2.1\lib was a user error right? :) 

Sven,
Please post the tomcat\webapps\cocoon\webinf\logs\cocoon.log, tomcat\logs\servlet.log and any
messages when you run tomcat.

Thanks,
dims

--- Sandor Spruit <sa...@cs.uu.nl> wrote:
> 
> Sven,
> 
> On Thursday, March 01, 2001, 11:00:30 AM, you wrote:
> 
> Sven> Hi,
> 
> Sven> the sample C2 webapp from current CVS seems to be broken. When trying to
> Sven> access localhost/cocoon, I get the error message "The sitemap handler's
> Sven> sitemap is not available". Unfortunatly, the cocoon.log does not give a
> Sven> clue about what could be wrong with the sitemap. Or does it? Any help
> Sven> appreciated.
> 
> I had this error earlier this week. Quoting from the ten (!) messages
> I exchanged with some Cocoon-dev folks:
> 
> "So the moral of the story is:
> 1. Remove JAXP.JAR and PARSER.JAR from tomcat-3.2.1\lib directory and
> 2. Add ONLY Xerces_1_2_3.jar into tomcat-3.2.1\lib directory."
> 
> I might also be necessary to remove the 'localhost_8080%2FCocoon'
> directory under the Tomcat 'work' directory, and restart Tomcat.
> 
> Hope this helps,
> Sandor
> 
> -- 
> ir A.G.L. Spruit, Utrecht University, the Netherlands
> Institute of information and computing sciences
> "There is a bit of magic in everything, and then some
> loss to even things out" (from: Lou Reed, "Magic and Loss")
> 
> 
> 
> ---------------------------------------------------------------------
> 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>
> 


=====
Davanum Srinivas, JNI-FAQ Manager
http://www.jGuru.com/faq/JNI

__________________________________________________
Do You Yahoo!?
Get email at your own domain with Yahoo! Mail. 
http://personal.mail.yahoo.com/

Re: [C2] Current CVS broken?

Posted by Sandor Spruit <sa...@cs.uu.nl>.
Sven,

On Thursday, March 01, 2001, 11:00:30 AM, you wrote:

Sven> Hi,

Sven> the sample C2 webapp from current CVS seems to be broken. When trying to
Sven> access localhost/cocoon, I get the error message "The sitemap handler's
Sven> sitemap is not available". Unfortunatly, the cocoon.log does not give a
Sven> clue about what could be wrong with the sitemap. Or does it? Any help
Sven> appreciated.

I had this error earlier this week. Quoting from the ten (!) messages
I exchanged with some Cocoon-dev folks:

"So the moral of the story is:
1. Remove JAXP.JAR and PARSER.JAR from tomcat-3.2.1\lib directory and
2. Add ONLY Xerces_1_2_3.jar into tomcat-3.2.1\lib directory."

I might also be necessary to remove the 'localhost_8080%2FCocoon'
directory under the Tomcat 'work' directory, and restart Tomcat.

Hope this helps,
Sandor

-- 
ir A.G.L. Spruit, Utrecht University, the Netherlands
Institute of information and computing sciences
"There is a bit of magic in everything, and then some
loss to even things out" (from: Lou Reed, "Magic and Loss")