You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Klaus-Hendrik Wolf <K-...@ifmi.org> on 2001/04/16 16:05:40 UTC

[C2] Problem running from command line

Hi,

I tried to run Cocoon2 from the command line, but because I am quite new to 
cocoon and Java as well, I can't get it running.
Cocoon _is_ working as a servlet.

Although I added all .jar files in the cocoon's /lib directory, I get the 
following error:
C:\temp\cocoon2\xml-cocoon\build\cocoon>java -jar 
C:\temp\cocoon2\xml-cocoon\build\cocoon\cocoon.jar
Exception in thread "main" java.lang.NoClassDefFoundError: 
org/xml/sax/EntityResolver
         at java.lang.ClassLoader.defineClass0(Native Method)
         at java.lang.ClassLoader.defineClass(Unknown Source)
         at java.security.SecureClassLoader.defineClass(Unknown Source)
         at java.net.URLClassLoader.defineClass(Unknown Source)
         at java.net.URLClassLoader.access$100(Unknown Source)
         at java.net.URLClassLoader$1.run(Unknown Source)
         at java.security.AccessController.doPrivileged(Native Method)
         at java.net.URLClassLoader.findClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at java.lang.ClassLoader.loadClassInternal(Unknown Source)

The xalan-2.0.1.jar is in the classpath and i can see the 
org/xml/sax/EntityResolver.class file in it.

Any suggestions?

Thanks in advance!

Happy Easter

   Klaus Hendrik

--

Klaus-Hendrik Wolf

Institute for Medical Informatics
Braunschweig University of Technology
Fallersleber-Tor-Wall 22        Tel: +49-531-391-21 27
38100 Braunschweig      Fax: +49-531-391-21 31
Germany                           http://khw.ifmi.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>


Re: [C2] Problem running from command line

Posted by Giacomo Pati <gi...@apache.org>.
Quoting Klaus-Hendrik Wolf <K-...@ifmi.org>:

> At 18:32 16.04.2001, you wrote:
> 
> >Do a "build dist" first and in the dist dir use the ./run.sh script to
> >run C2 from commandline
> >
> >Giacomo
> 
> Thank you, now it's working ;-)
> But I had to move cocoon.jar to the ./lib directory. (Bug or feature?)

I have to check that out. Normally you don't have to do anything to make it 
work.

Giacomo

---------------------------------------------------------------------
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] Problem running from command line

Posted by Klaus-Hendrik Wolf <K-...@ifmi.org>.
At 18:32 16.04.2001, you wrote:

>Do a "build dist" first and in the dist dir use the ./run.sh script to
>run C2 from commandline
>
>Giacomo

Thank you, now it's working ;-)
But I had to move cocoon.jar to the ./lib directory. (Bug or feature?)

Regards,

   Klaus Hendrik


---------------------------------------------------------------------
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] Problem running from command line

Posted by giacomo <gi...@apache.org>.
Do a "build dist" first and in the dist dir use the ./run.sh script to
run C2 from commandline

Giacomo

On Mon, 16 Apr 2001, Klaus-Hendrik Wolf wrote:

> Hi,
>
> I tried to run Cocoon2 from the command line, but because I am quite new to
> cocoon and Java as well, I can't get it running.
> Cocoon _is_ working as a servlet.
>
> Although I added all .jar files in the cocoon's /lib directory, I get the
> following error:
> C:\temp\cocoon2\xml-cocoon\build\cocoon>java -jar
> C:\temp\cocoon2\xml-cocoon\build\cocoon\cocoon.jar
> Exception in thread "main" java.lang.NoClassDefFoundError:
> org/xml/sax/EntityResolver
>          at java.lang.ClassLoader.defineClass0(Native Method)
>          at java.lang.ClassLoader.defineClass(Unknown Source)
>          at java.security.SecureClassLoader.defineClass(Unknown Source)
>          at java.net.URLClassLoader.defineClass(Unknown Source)
>          at java.net.URLClassLoader.access$100(Unknown Source)
>          at java.net.URLClassLoader$1.run(Unknown Source)
>          at java.security.AccessController.doPrivileged(Native Method)
>          at java.net.URLClassLoader.findClass(Unknown Source)
>          at java.lang.ClassLoader.loadClass(Unknown Source)
>          at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
>          at java.lang.ClassLoader.loadClass(Unknown Source)
>          at java.lang.ClassLoader.loadClassInternal(Unknown Source)
>
> The xalan-2.0.1.jar is in the classpath and i can see the
> org/xml/sax/EntityResolver.class file in it.
>
> Any suggestions?
>
> Thanks in advance!
>
> Happy Easter
>
>    Klaus Hendrik
>
> --
>
> Klaus-Hendrik Wolf
>
> Institute for Medical Informatics
> Braunschweig University of Technology
> Fallersleber-Tor-Wall 22        Tel: +49-531-391-21 27
> 38100 Braunschweig      Fax: +49-531-391-21 31
> Germany                           http://khw.ifmi.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>
>
>
>
>


---------------------------------------------------------------------
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>