RESOLVED: custom generator not working on a fresh install

2003-02-11 Thread peter riegersperger
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

if anyone's interested:
the problem was that my jar-file was in tomcat/common/lib and 
cocoon/WEB-INF/lib.
removing it from common/lib helped. apparently, cocoon was using the jar-file 
from /common/lib and was unable to find its own classes afterwards.

what remains a miracle is that on our development server, i need the jar-file 
in both locations.

thanks for your help,

rick


- -- 
|-
| peter riegersperger  [EMAIL PROTECTED]
|-
| ein windows switcher tagebuch:
| http://forum.subnet.at/viewforum.php?f=22
|-
| subnet
| platform for media art and experimental technologies
|-
| http://www.subnet.at/
|-
| muehlbacherhofweg 5 // 5020 salzburg // austria
|-
| fon/fax +43/662/842 897
|- 
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.0.7 (GNU/Linux)

iD8DBQE+STHLIMP39JYOy9IRAjQqAKD23wasxa9Auw5aaREnrNyIBYtK+ACbBj3Z
/EOi1ZzM/qOvAMu4fH9rghM=
=MKGg
-END PGP SIGNATURE-


-
Please check that your question  has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faq/index.html

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail:   [EMAIL PROTECTED]




Re: custom generator not working on a fresh install

2003-02-10 Thread peter riegersperger
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

hi again!

nobody any idea? i'm getting desperate here, so any hint/pointer/tip would be 
very very welcome!

thanks,

rick



On Friday 07 February 2003 22:52, peter riegersperger wrote:
 Hi all!

 We reactivated a Cocoon-based project that I haven't touched for a while,
 and I try to get Cocoon (and that project) running on my notebook.
 Included in this project is a custom generator, and this seems to be a bit
 of a problem.

 On the development server, all is running fine, but as soon as I add the
 custom generator to the sitemap on my notebook, I get the following error:

 org.apache.cocoon.ProcessingException: Error compiling sitemap:
 java.lang.NoClassDefFoundError:
 org/apache/cocoon/generation/AbstractGenerator

 Our custom generator extends AbstractGenerator, but why can't Cocoon find
 it? On our server, there's no problem with the custom generator.
 (The rest of cocoon is running excellent, as is everything else I modified.
 It's just the mention of the generator)

 The server is running on cocoon-2.0.3, I'm using 2.0.4 (Source
 distribution) on my notebook.
 All in all, I'm running:
 Linux
 Tomcat 4.0.4
 Cocoon 2.0.4 (the source distribution)
 j2sdk1.4.1_01

 First, I built Cocoon with
 ./build.sh  -Dinclude.webapp.libs=yes -Dinstall.war=$TOMCAT_HOME/webapps
 webapp

 Then, I copied it to /tomcat/webapps

 I copied the following files to tomcat/common/lib:
 xalan-2.3.1.jar
 xercesImpl-2.0.0.jar
 these two where present:
 xercesImpl.jar
 xmlParserAPIs.jar

 I copied the following files to jdk1.4-home/jre/endorsed:
 xalan-2.3.1.jar
 xercesImpl-2.0.0.jar
 xml-apis.jar

 The jar with our custom generator is in
 cocoon/WEB-INF/lib
 and
 tomcat/common/lib

 I've been fiddling around with this the whole day, and obviously I've
 forgotten something.

 I hope anyone can help me, and that this mail makes any sense (after 13
 hours of copying, deleting and modifying files on a 12-screen),

 rick

 ps: In my desperation, I even tried copying the complete cocoon-directory
 from our server, but the error is exactly the same.

- -- 
|-
| peter riegersperger  [EMAIL PROTECTED]
|-
| ein windows switcher tagebuch:
| http://forum.subnet.at/viewforum.php?f=22
|-
| subnet
| platform for media art and experimental technologies
|-
| http://www.subnet.at/
|-
| muehlbacherhofweg 5 // 5020 salzburg // austria
|-
| fon/fax +43/662/842 897
|- 
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.0.7 (GNU/Linux)

iD8DBQE+SBTuIMP39JYOy9IRAkpDAKDEfKf1C8XyBEd600yRj2YxZTx+twCgtKJ1
iMyuvq4cyWUL+Pn5xjqj+bY=
=/mC5
-END PGP SIGNATURE-


-
Please check that your question  has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faq/index.html

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail:   [EMAIL PROTECTED]




Re: AW: custom generator not working on a fresh install

2003-02-10 Thread peter riegersperger
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Monday 10 February 2003 23:06, Jan Harms wrote:
 DonĀ“t panic  ;-)

too late. I managed to not pass out, but if i didn't have KMahjongg, i'd be in 
real trouble ;)

 have you tried to call the java VM with the -verbose:class option? You
 will have to modify the tomcat startup skripts for that. With this option
 you can see which classes are actually loaded (and from where).

when i do this, the startup process stops somewhwere in the jre. is this 
normal?

 Are the cocoon classes loaded?

i suppose, because cocoon is running fine.

What if you use a FileGenerator (inherits
 from AbstractGenerator), does that work? 

yes, that works fine.

Which classes does your Generator
 import? You could try to write a simple CustomGenerator which does nothing.
 Just inherit from AbstractGenerator and see if it gets loaded...

MyGenerator  extends AbstractGenerator

i've just created a TestGenerator extends AbstractGenerator, and this one 
works (meaning: the sitemap compiles).

can there be a problem with imports?
the TestGenerator imports:
import java.io.IOException;
import org.apache.cocoon.ProcessingException;
import org.apache.cocoon.generation.AbstractGenerator;
import org.xml.sax.SAXException;

and MyGenerator imports a lot more classes.

is it possible that cocoon isn't missing the AbstractGenerator, but something 
else? i'll dig into this, i was so focused on AbstractGenerator that this 
actually never came to my mind.

thanks, that definitely helped!

rick


- -- 
|-
| peter riegersperger  [EMAIL PROTECTED]
|-
| ein windows switcher tagebuch:
| http://forum.subnet.at/viewforum.php?f=22
|-
| subnet
| platform for media art and experimental technologies
|-
| http://www.subnet.at/
|-
| muehlbacherhofweg 5 // 5020 salzburg // austria
|-
| fon/fax +43/662/842 897
|- 
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.0.7 (GNU/Linux)

iD8DBQE+SCtmIMP39JYOy9IRAl4eAJ9wDOFdO0fLljYfynZ8cBLl7UlMNwCgyCC3
U62S0rSaPkAcPx6jrKkQYAE=
=uG0E
-END PGP SIGNATURE-


-
Please check that your question  has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faq/index.html

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail:   [EMAIL PROTECTED]




Re: custom generator not working on a fresh install

2003-02-08 Thread peter riegersperger
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Friday 07 February 2003 22:52, peter riegersperger wrote:
[..]
 The server is running on cocoon-2.0.3, I'm using 2.0.4 (Source
 distribution) on my notebook.
 All in all, I'm running:
 Linux
 Tomcat 4.0.4
 Cocoon 2.0.4 (the binary distribution) -- !!!
 j2sdk1.4.1_01

sorry. I'm using the _source_ distribution (not binary!)

rick

- -- 
|-
| peter riegersperger  [EMAIL PROTECTED]
|-
| ein windows switcher tagebuch:
| http://forum.subnet.at/viewforum.php?f=22
|-
| subnet
| platform for media art and experimental technologies
|-
| http://www.subnet.at/
|-
| muehlbacherhofweg 5 // 5020 salzburg // austria
|-
| fon/fax +43/662/842 897
|- 
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.0.7 (GNU/Linux)

iD8DBQE+ROGRIMP39JYOy9IRAmE5AJ9cXSstP4qNiIEGHpYCQ+l192n4sACgxmEO
vBf2Mxxl3ixGbRhnZ5RPdAI=
=V5CC
-END PGP SIGNATURE-


-
Please check that your question  has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faq/index.html

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail:   [EMAIL PROTECTED]




custom generator not working on a fresh install

2003-02-07 Thread peter riegersperger
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi all!

We reactivated a Cocoon-based project that I haven't touched for a while, and 
I try to get Cocoon (and that project) running on my notebook.
Included in this project is a custom generator, and this seems to be a bit of 
a problem.

On the development server, all is running fine, but as soon as I add the 
custom generator to the sitemap on my notebook, I get the following error:

org.apache.cocoon.ProcessingException: Error compiling sitemap: 
java.lang.NoClassDefFoundError: 
org/apache/cocoon/generation/AbstractGenerator

Our custom generator extends AbstractGenerator, but why can't Cocoon find it? 
On our server, there's no problem with the custom generator.
(The rest of cocoon is running excellent, as is everything else I modified. 
It's just the mention of the generator)

The server is running on cocoon-2.0.3, I'm using 2.0.4 (Source distribution) 
on my notebook.
All in all, I'm running:
Linux
Tomcat 4.0.4
Cocoon 2.0.4 (the binary distribution)
j2sdk1.4.1_01

First, I built Cocoon with
./build.sh  -Dinclude.webapp.libs=yes -Dinstall.war=$TOMCAT_HOME/webapps 
webapp

Then, I copied it to /tomcat/webapps

I copied the following files to tomcat/common/lib:
xalan-2.3.1.jar
xercesImpl-2.0.0.jar
these two where present:
xercesImpl.jar
xmlParserAPIs.jar

I copied the following files to jdk1.4-home/jre/endorsed:
xalan-2.3.1.jar
xercesImpl-2.0.0.jar
xml-apis.jar

The jar with our custom generator is in
cocoon/WEB-INF/lib
and
tomcat/common/lib

I've been fiddling around with this the whole day, and obviously I've 
forgotten something.

I hope anyone can help me, and that this mail makes any sense (after 13 hours 
of copying, deleting and modifying files on a 12-screen),

rick

ps: In my desperation, I even tried copying the complete cocoon-directory from 
our server, but the error is exactly the same.

- -- 
|-
| peter riegersperger  [EMAIL PROTECTED]
|-
| ein windows switcher tagebuch:
| http://forum.subnet.at/viewforum.php?f=22
|-
| subnet
| platform for media art and experimental technologies
|-
| http://www.subnet.at/
|-
| muehlbacherhofweg 5 // 5020 salzburg // austria
|-
| fon/fax +43/662/842 897
|- 
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.0.7 (GNU/Linux)

iD8DBQE+RCqZIMP39JYOy9IRAprvAJ0VZEyUTXWrsZyf7fu2xYFLgQTY4wCgnMjo
8a1+kufRaUL4Jgv2FwizdCk=
=mXC4
-END PGP SIGNATURE-


-
Please check that your question  has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faq/index.html

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail:   [EMAIL PROTECTED]