You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Sebastien SACARD <se...@kelkoo.com> on 2002/05/30 14:22:57 UTC

missing classes ?

Hi,

I'm trying to run cocoon from the command line, like this :
/usr/java/jdk/bin/java -classpath ../WEB-INF/lib/cocoon-2.0.2.jar 
org.apache.cocoon.Main -c../WEB-INF/lib -d. -w./work -l/work/cocoon.log 
-uINFO index.html

and it appears that classes are missing fromt the packages extracted 
from the cocoon.war I just downloaded (cocoon-2.0.2) . So I added them 
in the classpath :
../WEB-INF/lib/avalon-excalibur-scratchpad-20020212.jar:/opt/public/jserv/libexec/servlet-2.0-plus.jar 
(for excalibur/xml/Parser and javax classes)

questions :
 - why do I need to add them in the classpath whereas the packages are 
defined in the context directory (-c attribute ?). It seems that adding 
in the context is not enough. According to the Main class code, Cocoon 
load all the classes present in the context directory.

- I can't find this class in any package : 
org/apache/xml/resolver/tools/CatalogResolver. Can someone tell me in 
which package  I can access it ?

Thanks

-- 
#############################################################
Sébastien Sacard
Kelkoo.com - R&D team
Phone: +(33) 4 76 29 73 51
Email: Sebastien.Sacard@kelkoo.com
Aim : KelkooXIII
#############################################################



---------------------------------------------------------------------
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: missing classes ?

Posted by Vadim Gritsenko <va...@verizon.net>.
> From: Sebastien SACARD [mailto:sebastien.sacard@kelkoo.com]
> 
> Hi,
> 
> I'm trying to run cocoon from the command line, like this :
> /usr/java/jdk/bin/java -classpath ../WEB-INF/lib/cocoon-2.0.2.jar
> org.apache.cocoon.Main -c../WEB-INF/lib -d. -w./work
-l/work/cocoon.log
> -uINFO index.html
> 
> and it appears that classes are missing fromt the packages extracted
> from the cocoon.war I just downloaded (cocoon-2.0.2) . So I added them
> in the classpath :
> ../WEB-INF/lib/avalon-excalibur-scratchpad-
> 20020212.jar:/opt/public/jserv/libexec/servlet-2.0-plus.jar
> (for excalibur/xml/Parser and javax classes)
> 
> questions :
>  - why do I need to add them in the classpath whereas the packages are
> defined in the context directory (-c attribute ?). It seems that
adding
> in the context is not enough. According to the Main class code, Cocoon
> load all the classes present in the context directory.

Main does *not* load any classes. These lines in the run.bat are for
reason:

set CP=%JAVA_HOME%\lib\tools.jar;%COCOON_WORK%
for %%i in (%COCOON_LIB%\core\*.jar) do call appendcp.bat %%i
for %%i in (%COCOON_LIB%\optional\*.jar) do call appendcp.bat %%i
for %%i in (.\build\cocoon\*.jar) do call appendcp.bat %%i


> - I can't find this class in any package :
> org/apache/xml/resolver/tools/CatalogResolver. Can someone tell me in
> which package  I can access it ?

xml-cocoon203\lib\optional\resolver-20020130.jar

Vadim


> Thanks
> 
> --
> #############################################################
> Sébastien Sacard
> Kelkoo.com - R&D team
> Phone: +(33) 4 76 29 73 51
> Email: Sebastien.Sacard@kelkoo.com
> Aim : KelkooXIII
> #############################################################
> 
> 
> 
> ---------------------------------------------------------------------
> 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>