Re: error trying to use TextParserGenerator

2003-03-26 Thread Neil Davies


Is there a detailed exception in the logs under WEB-INF/logs/*.log ?
(Perhaps you must set the log level higher)
With this exception I can only draw the conclusion, that the generator
have problems with the configuration within the components section.
Stephan.

Okay. I have looked at the error.log file, I meant to mention this in my 
last email but I sent it without realising I hadn't, and it mentioned a 
ClassNotFoundException on the TextParserGenerator. I have looked in the 
sitemap.xmap in the jakara-home/webapps/cocoon directory and there is no 
mention of a TextParserGenerator in there, which must be causing the 
problem.

I am using Cocoon 2.0.4, which is the latest version I think. Is the 
TextParserGenerator included with this? The other generators work 
without any bother.

Can anyone point me in the direction of some information on this 
subject? I have looked at the user-documentation on the 
TextParserGenerator online.

Here is the error-report if it is of any help:

ERROR   (2003-03-26) 17:24.25:543   [core.manager] (/cocoon/eadcairs) 
Thread-10/Handler: Error compiling sitemap
org.apache.avalon.framework.configuration.ConfigurationException: Error 
in sitemap configuration : org.apache.cocoon.generation.TextParserGenerator
   at 
org.apache.cocoon.www.file_.C_.jakarta_tomcat.webapps.cocoon.c2.eadcairs.sitemap_xmap.configure(C:\jakarta-tomcat\work\Standalone\localhost\cocoon\cocoon-files\org/apache/cocoon/www/file_/C_/jakarta_tomcat/webapps/cocoon/c2/eadcairs\sitemap_xmap.java:148)
   at 
org.apache.avalon.excalibur.component.DefaultComponentFactory.newInstance(DefaultComponentFactory.java:264)
   at 
org.apache.avalon.excalibur.component.ThreadSafeComponentHandler.initialize(ThreadSafeComponentHandler.java:98)
   at 
org.apache.cocoon.components.language.generator.GeneratorSelector.addGenerator(GeneratorSelector.java:187)
   at 
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.createResource(ProgramGeneratorImpl.java:357)
   at 
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.load(ProgramGeneratorImpl.java:312)
   at org.apache.cocoon.sitemap.Handler.run(Handler.java:267)
   at java.lang.Thread.run(Thread.java:536)
Caused by: java.lang.ClassNotFoundException: 
org.apache.cocoon.generation.TextParserGenerator
at 
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1428)
   at 
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1274)
   at org.apache.cocoon.util.ClassUtils.loadClass(ClassUtils.java:88)
   at 
org.apache.cocoon.sitemap.AbstractSitemap.load_component(AbstractSitemap.java:263)
   at 
org.apache.cocoon.www.file_.C_.jakarta_tomcat.webapps.cocoon.c2.eadcairs.sitemap_xmap$Configurer.configGenerators(C:\jakarta-tomcat\work\Standalone\localhost\cocoon\cocoon-files\org/apache/cocoon/www/file_/C_/jakarta_tomcat/webapps/cocoon/c2/eadcairs\sitemap_xmap.java:170)
   at 
org.apache.cocoon.www.file_.C_.jakarta_tomcat.webapps.cocoon.c2.eadcairs.sitemap_xmap.configure(C:\jakarta-tomcat\work\Standalone\localhost\cocoon\cocoon-files\org/apache/cocoon/www/file_/C_/jakarta_tomcat/webapps/cocoon/c2/eadcairs\sitemap_xmap.java:126)
   at 
org.apache.avalon.excalibur.component.DefaultComponentFactory.newInstance(DefaultComponentFactory.java:264)
   at 
org.apache.avalon.excalibur.component.ThreadSafeComponentHandler.initialize(ThreadSafeComponentHandler.java:98)
   at 
org.apache.cocoon.components.language.generator.GeneratorSelector.addGenerator(GeneratorSelector.java:187)
   at 
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.createResource(ProgramGeneratorImpl.java:357)
   at 
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.load(ProgramGeneratorImpl.java:312)
   at org.apache.cocoon.sitemap.Handler.run(Handler.java:267)
   at java.lang.Thread.run(Thread.java:536)

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


Re: error trying to use TextParserGenerator

2003-03-26 Thread Stephan Michels

On Wed, 26 Mar 2003, Neil Davies wrote:

> Apologies if this has been answered previously but I'm a relative
> newbie to Cocoon2.
>
> I have a structured text file which is exported from a database
> (non SQL, a complete mess so there's no chance of using standard xsl
> logic to extract data) and need to convert it into ead-xml.
>
> I am trying to see if I am capable of doing this using a
> TextParserGenerator to get it into an XML format that I can manipulate
> into ead. Unfortunately I keep getting the following Internal Server
> Error:
>
> type fatal
> message Error in sitemap configuration : 
> org.apache.cocoon.generation.TextParserGenerator
> description
> org.apache.avalon.framework.configuration.ConfigurationException: Error
> in sitemap configuration :
> org.apache.cocoon.generation.TextParserGenerator
> sender org.apache.cocoon.servlet.CocoonServlet
> source Cocoon servlet
>
> Here's the bulk of the sitemap:
>
> http://apache.org/cocoon/sitemap/1.0";>
> 
>   
>   src="org.apache.cocoon.generation.TextParserGenerator"/>
> 
> -- other components --
> 
> 
> 
> 
> 
>   
>   
> 
> 
> 
> 
> 
> 
>
> If the grammer file would be helpful I'll post it, but I'll try and keep this 
> minimal for now.

Is there a detailed exception in the logs under WEB-INF/logs/*.log ?
(Perhaps you must set the log level higher)

With this exception I can only draw the conclusion, that the generator
have problems with the configuration within the components section.

Stephan.


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



error trying to use TextParserGenerator

2003-03-26 Thread Neil Davies




Apologies if this has been answered previously but I'm a relative newbie to Cocoon2.

I have a structured text file which is exported from a database (non SQL, a complete mess so there's no chance of using standard xsl logic to extract data) and need to convert it into ead-xml.

I am trying to see if I am capable of doing this using a TextParserGenerator to get it into an XML format that I can manipulate into ead. Unfortunately I keep getting the following Internal Server Error:

type fatal
message Error in sitemap configuration : org.apache.cocoon.generation.TextParserGenerator
description org.apache.avalon.framework.configuration.ConfigurationException: Error in sitemap configuration : org.apache.cocoon.generation.TextParserGenerator
sender org.apache.cocoon.servlet.CocoonServlet
source Cocoon servlet

Here's the bulk of the sitemap:

"http://apache.org/cocoon/sitemap/1.0">

	


-- other components --





		
		







If the grammer file would be helpful I'll post it, but I'll try and keep this minimal for now.

Thanks.