You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Drasko Kokic <dr...@yahoo.com> on 2001/05/10 22:33:19 UTC

Re: [C2.0a5] java.lang.ClassNotFoundException: org.apache.cocoon.www. sitemap_xmap

Thanks Berin!

Since the very same setup (Tomcat 3.2.1 + Cocoon
2.0a4) works under WinNT, I am assuming that the
problem is around the tools.jar !!!

I am using uncustomised version of Tomcat 3.2.1 which
on start reports that the CLASSPATH contains
/usr/java/lib/tools.jar (the file exists!)

Do I need to do anything more?  Should I copy the
tools.jar into the WEB-INF/lib ?!

Thanks for your help
Drasko

--- Berin Loritsch <bl...@apache.org> wrote:
> 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 <Se...@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
> > >
> > >



__________________________________________________
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: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>


Re: [C2.0a5] java.lang.ClassNotFoundException: org.apache.cocoon.www. sitemap_xmap

Posted by Drasko Kokic <dr...@yahoo.com>.
Bugger @#%&�$%

Still the same error ... I am wondering if it is
possible to have it on SUN JDK 1.3.0 at all (giacomo
wrote earlier that JDK 1.2.2 is needed)

I need this to work ... how can I get into nitty
gritty details ... would you (anybody) have any C2
developers documentation to jump-start me?!  I am
browsing thru the source code with my TogetherJ 5.0
and feel very lost :-(

Help
Drasko

--- Berin Loritsch <bl...@apache.org> wrote:
> Drasko Kokic wrote:
> > 
> > Do I need to do anything more?  Should I copy the
> > tools.jar into the WEB-INF/lib ?!
> 
> Yes.  That also makes your solution completely
> portable.
> If you were to move that archive with the tools.jar
> in WEB-INF/lib, then it would work when installed on
a
> system with only a JRE.
> 
> > 
> > Thanks for your help
> > Drasko
> > 
> > --- Berin Loritsch <bl...@apache.org> wrote:
> > > 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 <Se...@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
> 
=== message truncated ===


__________________________________________________
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: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>


Re: [C2.0a5] java.lang.ClassNotFoundException: org.apache.cocoon.www. sitemap_xmap

Posted by Berin Loritsch <bl...@apache.org>.
Drasko Kokic wrote:
> 
> Thanks Berin!
> 
> Since the very same setup (Tomcat 3.2.1 + Cocoon
> 2.0a4) works under WinNT, I am assuming that the
> problem is around the tools.jar !!!
> 
> I am using uncustomised version of Tomcat 3.2.1 which
> on start reports that the CLASSPATH contains
> /usr/java/lib/tools.jar (the file exists!)
> 
> Do I need to do anything more?  Should I copy the
> tools.jar into the WEB-INF/lib ?!

Yes.  That also makes your solution completely portable.
If you were to move that archive with the tools.jar in
WEB-INF/lib, then it would work when installed on a system
with only a JRE.

> 
> Thanks for your help
> Drasko
> 
> --- Berin Loritsch <bl...@apache.org> wrote:
> > 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 <Se...@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
> > > >
> > > >
> 
> __________________________________________________
> 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: <co...@xml.apache.org>
> For additional commands, e-mail: <co...@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: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>