You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Aurélien DEHAY <ad...@zorel.org> on 2005/10/12 22:30:30 UTC

Custom generator problem

Hello all.

I'm trying to develop a custom generator using Rome ( 
https://rome.dev.java.net/ ). I'm just, for the moment, copying the 
FileGenerator.java to my FeedGenerator.java, changing the class name, 
adding:
import com.sun.syndication.feed.synd.*;
import com.sun.syndication.io.*;
to imports, and:

SyndFeedInput feedInput = new SyndFeedInput();
just before the SourceUtil.parse( line.

javac, copying and so on. the test I've made generates me a empty page. 
Just commenting out the SyndFeedInput feedInput = new SyndFeedInput(); 
line and everything works. No error (i'm in debug mode). WTF? I'm really 
annoyed, I'm not a real java dev and I really don't know what could be 
the problem...

I assume all the necessary classes to be in the WEB-INF/lib directory of 
my webapp, as I don't have any class not found errors.

I'm using cocoon 2.1.7 on Tomcat 5.5.9, JDK 1.5.0 on Linux.

If someone could do the test, and tell me what I'm doing wrong, it would 
be wonderful.

Best Regards.
-- 
Aurélien DEHAY

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Re: Custom generator problem

Posted by Aurélien DEHAY <ad...@zorel.org>.
Jorg Heymans wrote:
> Aurélien DEHAY wrote:
> 
>>I'm using cocoon 2.1.7 on Tomcat 5.5.9, JDK 1.5.0 on Linux.
>>
>>If someone could do the test, and tell me what I'm doing wrong, it would
>>be wonderful.
>>
> 
> 
> Could you try with 2.1.8dev? It has much better error logging with the
> new location mechanism.

Ok..... Well.... It works with a fresh 2.1.8-dev install, maybe a 
problem in my jars, indeed. Thank you.

Regards.
-- 
Aurélien DEHAY

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Re: Custom generator problem

Posted by Jorg Heymans <jh...@domek.be>.
Aurélien DEHAY wrote:
> 
> I'm using cocoon 2.1.7 on Tomcat 5.5.9, JDK 1.5.0 on Linux.
> 
> If someone could do the test, and tell me what I'm doing wrong, it would
> be wonderful.
> 

Could you try with 2.1.8dev? It has much better error logging with the
new location mechanism.

Jorg


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org