cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Berin Loritsch <blorit...@apache.org>
Subject Re: C2.0a5 : java.lang.ClassNotFoundException: org.apache.cocoon.www. sitemap_xmap
Date Thu, 10 May 2001 20:10:37 GMT
Drasko Kokic wrote:
> 
> I have not yet found the reason for this failure ...
> but am glad that it is not happening only in my
> environment :-)

It is always one of three issues:

1) incorrect markup (malformed XML)
2) incorrect java file (does not transform into valid class)
3) classloader issues (tools.jar not in classpath or rt.jar not in classpath for jikes)

If you are using the stock sitemap, then you most likely have a valid
XML file.

If you have not changed anything in the sitemap, or written your own,
then it is unlikely to be an incorrect java file.

Cocoon requires you to place your JDK's tools.jar file in the
classpath if you are using Sun's compiler.  If you are using the
Jikes compiler, then you have to make sure that Jikes is both in
the system's PATH and your JDK's rt.jar file is in the CLASSPATH.

> 
> --- Hope Sean <Sean.Hope@icl.com> wrote:
> > Hi,
> >
> > Installing C2.0a5 on Solaris
> > 2.7/JDK1.3.0/Tomcat3.2.1
> >
> > After configuring as per instructions, I get the
> > error shown below in the
> > log file. I have scoured the mailing lists and this
> > problem has been
> > reported in other versions of C2. However, I can't
> > find any postings
> > explaining what the issue is:
> >
> > DEBUG   22933   [cocoon  ] (Thread-10): Beginning
> > sitemap regeneration
> > DEBUG   22933   [cocoon  ] (Thread-10): Making URL
> > from
> >
> file:/opt/jakarta-tomcat-3.2.1/webapps/cocoon/sitemap.xmap
> > DEBUG   22934   [cocoon  ] (Thread-39):
> > UnnamedSelector: ComponentSelector
> > could not find the component for hint:
> > org/apache/cocoon/www/sitemap_xmap
> > DEBUG   22938   [cocoon  ] (Thread-39): The instance
> > was not accessible,
> > creating it now.
> > DEBUG   22938   [cocoon  ] (Thread-39):
> > ComponentFactory creating new
> > instance of
> >
> org.apache.cocoon.components.language.markup.sitemap.SitemapMarkupLanguage.
> > DEBUG   23006   [cocoon  ] (Thread-39): Holding
> > object in memory. Key:
> >
> jar:file:/opt/jakarta-tomcat-3.2.1/webapps/cocoon/WEB-INF/lib/cocoon-2.0a5.j
> >
> ar!/org/apache/cocoon/components/language/markup/sitemap/java/sitemap.xsl
> > DEBUG   23007   [cocoon  ] (Thread-39): Making URL
> > from
> >
> jar:file:/opt/jakarta-tomcat-3.2.1/webapps/cocoon/WEB-INF/lib/cocoon-2.0a5.j
> >
> ar!/org/apache/cocoon/components/language/markup/sitemap/java/sitemap.xsl
> > DEBUG   23007   [cocoon  ] (Thread-39): Logicsheet
> >
> Used:jar:file:/opt/jakarta-tomcat-3.2.1/webapps/cocoon/WEB-INF/lib/cocoon-2.
> >
> 0a5.jar!/org/apache/cocoon/components/language/markup/sitemap/java/sitemap.x
> > sl
> > WARN    23641   [cocoon  ] (Thread-39): Could not
> > load class for program
> > 'org/apache/cocoon/www/sitemap_xmap'
> > java.lang.ClassNotFoundException:
> > org.apache.cocoon.www.sitemap_xmap
> >         at
> >
> java.net.URLClassLoader$1.run(URLClassLoader.java:200)
> >         at
> > java.security.AccessController.doPrivileged(Native
> > Method)
> >         at
> >
> java.net.URLClassLoader.findClass(URLClassLoader.java:188)
> >         at
> >
> java.lang.ClassLoader.loadClass(ClassLoader.java:297)
> >         at
> >
> java.lang.ClassLoader.loadClass(ClassLoader.java:253)
> >         at
> >
> org.apache.cocoon.components.classloader.ClassLoaderManagerImpl.loadClass(Cl
> > assLoaderManagerImpl.java:57)
> >         at
> >
> org.apache.cocoon.components.language.programming.java.JavaLanguage.loadProg
> > ram(JavaLanguage.java:124)
> >         at
> >
> org.apache.cocoon.components.language.programming.CompiledProgrammingLanguag
> > e.load(CompiledProgrammingLanguage.java:118)
> >         at
> >
> org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.generat
> > eResource(ProgramGeneratorImpl.java:244)
> >         at
> >
> org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.load(Pr
> > ogramGeneratorImpl.java:160)
> >         at
> >
> org.apache.cocoon.sitemap.Handler.run(Handler.java:197)
> >         at java.lang.Thread.run(Thread.java:484)
> >
> > Can anyone help?
> >
> > Thanks,
> >
> > Sean Hope
> >
> >
> ---------------------------------------------------------------------
> > 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:
> > <cocoon-users-unsubscribe@xml.apache.org>
> > For additional commands, e-mail:
> > <cocoon-users-help@xml.apache.org>
> >
> 
> __________________________________________________
> Do You Yahoo!?
> Yahoo! Auctions - buy the things you want at great prices
> http://auctions.yahoo.com/
> 
> ---------------------------------------------------------------------
> 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: <cocoon-users-unsubscribe@xml.apache.org>
> For additional commands, e-mail: <cocoon-users-help@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: <cocoon-users-unsubscribe@xml.apache.org>
For additional commands, e-mail: <cocoon-users-help@xml.apache.org>


Mime
View raw message