cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Saul Rodrigo Zarrate Cárdenas <s-zar...@uniandes.edu.co>
Subject Problem with a logicsheet Please help me!!!!
Date Mon, 25 Nov 2002 17:11:30 GMT
Hello

I have a cocoon version number 2.0.3, a tomcat version number 4.1.12, and a 
j2sdk1.4.0_02

I have a XSP Page with the next code

<?xml version="1.0" encoding="ISO-8859-1"?> 
 
<xsp:page language="java"
   xmlns:xsp="http://apache.org/xsp"
   xmlns:esql="http://apache.org/cocoon/SQL/v2"
   xmlns:xsp-request="http://apache.org/xsp/request/2.0"
   xmlns:util="http://apache.org/xsp/util/2.0"
>  
<page> 
</page>
</xsp:page>

When I tried to load it I don't have any problem

For other side I have the next logicsheet

<xsl:stylesheet 
  xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 
  version="1.0"
  xmlns:xsp="http://apache.org/xsp"
  xmlns:sgcwebxml="http://sgcwebxml.com/xsp/2.0"
>

<xsl:template match="sgcwebxml:obtenerDato">
 <xsp:expr>
  <xsl:value-of select="@dato"/>
 </xsp:expr>
</xsl:template>

</xsl:stylesheet>

The name of the logicsheet is sgcwebxml.xsl and is the CocoonHome/WEB-
INF/classes/sgcwebxml/logicsheets/ directory

In te cocoon.xconf i have the next code into the  <target-language 
name="java"> tag

 <builtin-logicsheet>
   <parameter name="prefix" value="sgcwebxml"/>
   <parameter name="uri" value="http://sgcwebxml.com/xsp/2.0"/>
   <parameter name="href" 
value="resource://sgcwebxml/logicsheets/sgcwebxml.xsl"/>
</builtin-logicsheet>

When I put namespace declaration in my xsp page, something like this

<?xml version="1.0" encoding="ISO-8859-1"?> 
 
<xsp:page language="java"
   xmlns:xsp="http://apache.org/xsp"
   xmlns:esql="http://apache.org/cocoon/SQL/v2"
   xmlns:xsp-request="http://apache.org/xsp/request/2.0"
   xmlns:util="http://apache.org/xsp/util/2.0"
   xmlns:sgcwebxml="http://sgcwebxml.com/xsp/2.0"
>  
<page> 

</page>
</xsp:page>

And I try to load it I have the next problem (the name of the XSP page is 
ingresoDeOpciones.xsp)


Cocoon 2 - Internal server error

-------------------------------------------------------------------------------
-

type fatal

message Language Exception

description org.apache.cocoon.ProcessingException: Language Exception: 
org.apache.cocoon.components.language.LanguageException: Could not load class 
for 
program 'org\apache\cocoon\www\SGCWebXML\logical\moduloDeSeguridad\ingresoDeOpc
iones_xsp' due to a java.lang.ClassNotFoundException: 
org.apache.cocoon.www.SGCWebXML.logical.moduloDeSeguridad.ingresoDeOpciones_xsp

sender org.apache.cocoon.servlet.CocoonServlet

source Cocoon servlet

stack-trace

org.apache.cocoon.ProcessingException: Language Exception: 
org.apache.cocoon.components.language.LanguageException: Could not load class 
for 
program 'org\apache\cocoon\www\SGCWebXML\logical\moduloDeSeguridad\ingresoDeOpc
iones_xsp' due to a java.lang.ClassNotFoundException: 
org.apache.cocoon.www.SGCWebXML.logical.moduloDeSeguridad.ingresoDeOpciones_xsp
	at 
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.createReso
urce(ProgramGeneratorImpl.java:340)
	at 
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.load
(ProgramGeneratorImpl.java:292)
	at org.apache.cocoon.generation.ServerPagesGenerator.setup
(ServerPagesGenerator.java:198)
	at 
org.apache.cocoon.components.pipeline.AbstractEventPipeline.setupPipeline
(AbstractEventPipeline.java:202)
	at org.apache.cocoon.components.pipeline.CachingEventPipeline.setup
(CachingEventPipeline.java:278)
	at 
org.apache.cocoon.components.pipeline.CachingEventPipeline.generateKey
(CachingEventPipeline.java:141)
	at org.apache.cocoon.components.pipeline.CachingStreamPipeline.process
(CachingStreamPipeline.java:317)
	at org.apache.cocoon.www.SGCWebXML.sitemap_xmap.matchN4000FE
(C:\Archivos de programa\Apache Group\Tomcat 4.1
\work\Standalone\localhost\cocoon\cocoon-
files\org/apache/cocoon/www/SGCWebXML\sitemap_xmap.java:1267)
	at org.apache.cocoon.www.SGCWebXML.sitemap_xmap.process(C:\Archivos 
de programa\Apache Group\Tomcat 4.1\work\Standalone\localhost\cocoon\cocoon-
files\org/apache/cocoon/www/SGCWebXML\sitemap_xmap.java:502)
	at org.apache.cocoon.www.SGCWebXML.sitemap_xmap.process(C:\Archivos 
de programa\Apache Group\Tomcat 4.1\work\Standalone\localhost\cocoon\cocoon-
files\org/apache/cocoon/www/SGCWebXML\sitemap_xmap.java:397)
	at org.apache.cocoon.sitemap.Handler.process(Handler.java:224)
	at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:179)
	at org.apache.cocoon.www.sitemap_xmap.matchN4002C9(C:\Archivos de 
programa\Apache Group\Tomcat 4.1\work\Standalone\localhost\cocoon\cocoon-
files\org/apache/cocoon/www\sitemap_xmap.java:3337)
	at org.apache.cocoon.www.sitemap_xmap.process(C:\Archivos de 
programa\Apache Group\Tomcat 4.1\work\Standalone\localhost\cocoon\cocoon-
files\org/apache/cocoon/www\sitemap_xmap.java:2579)
	at org.apache.cocoon.www.sitemap_xmap.process(C:\Archivos de 
programa\Apache Group\Tomcat 4.1\work\Standalone\localhost\cocoon\cocoon-
files\org/apache/cocoon/www\sitemap_xmap.java:2516)
	at org.apache.cocoon.sitemap.Handler.process(Handler.java:224)
	at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:179)
	at org.apache.cocoon.sitemap.SitemapManager.process
(SitemapManager.java:154)
	at org.apache.cocoon.Cocoon.process(Cocoon.java:575)
	at org.apache.cocoon.servlet.CocoonServlet.service
(CocoonServlet.java:999)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter
(ApplicationFilterChain.java:247)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter
(ApplicationFilterChain.java:193)
	at org.apache.catalina.core.StandardWrapperValve.invoke
(StandardWrapperValve.java:260)
	at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNe
xt(StandardPipeline.java:643)
	at org.apache.catalina.core.StandardPipeline.invoke
(StandardPipeline.java:480)
	at org.apache.catalina.core.ContainerBase.invoke
(ContainerBase.java:995)
	at org.apache.catalina.core.StandardContextValve.invoke
(StandardContextValve.java:191)
	at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNe
xt(StandardPipeline.java:643)
	at org.apache.catalina.core.StandardPipeline.invoke
(StandardPipeline.java:480)
	at org.apache.catalina.core.ContainerBase.invoke
(ContainerBase.java:995)
	at org.apache.catalina.core.StandardContext.invoke
(StandardContext.java:2396)
	at org.apache.catalina.core.StandardHostValve.invoke
(StandardHostValve.java:180)
	at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNe
xt(StandardPipeline.java:643)
	at org.apache.catalina.valves.ErrorDispatcherValve.invoke
(ErrorDispatcherValve.java:170)
	at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNe
xt(StandardPipeline.java:641)
	at org.apache.catalina.valves.ErrorReportValve.invoke
(ErrorReportValve.java:172)
	at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNe
xt(StandardPipeline.java:641)
	at org.apache.catalina.core.StandardPipeline.invoke
(StandardPipeline.java:480)
	at org.apache.catalina.core.ContainerBase.invoke
(ContainerBase.java:995)
	at org.apache.catalina.core.StandardEngineValve.invoke
(StandardEngineValve.java:174)
	at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNe
xt(StandardPipeline.java:643)
	at org.apache.catalina.core.StandardPipeline.invoke
(StandardPipeline.java:480)
	at org.apache.catalina.core.ContainerBase.invoke
(ContainerBase.java:995)
	at org.apache.coyote.tomcat4.CoyoteAdapter.service
(CoyoteAdapter.java:223)
	at org.apache.coyote.http11.Http11Processor.process
(Http11Processor.java:405)
	at 
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnecti
on(Http11Protocol.java:380)
	at org.apache.tomcat.util.net.TcpWorkerThread.runIt
(PoolTcpEndpoint.java:508)
	at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run
(ThreadPool.java:533)
	at java.lang.Thread.run(Thread.java:536)
Caused by: org.apache.cocoon.components.language.LanguageException: Could not 
load class for 
program 'org\apache\cocoon\www\SGCWebXML\logical\moduloDeSeguridad\ingresoDeOpc
iones_xsp' due to a java.lang.ClassNotFoundException: 
org.apache.cocoon.www.SGCWebXML.logical.moduloDeSeguridad.ingresoDeOpciones_xsp
	at 
org.apache.cocoon.components.language.programming.java.JavaLanguage.loadProgram
(JavaLanguage.java:186)
	at 
org.apache.cocoon.components.language.programming.CompiledProgrammingLanguage.l
oad(CompiledProgrammingLanguage.java:211)
	at 
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.generateRe
source(ProgramGeneratorImpl.java:388)
	at 
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.createReso
urce(ProgramGeneratorImpl.java:333)
	... 49 more
org.apache.cocoon.components.language.LanguageException: Could not load class 
for 
program 'org\apache\cocoon\www\SGCWebXML\logical\moduloDeSeguridad\ingresoDeOpc
iones_xsp' due to a java.lang.ClassNotFoundException: 
org.apache.cocoon.www.SGCWebXML.logical.moduloDeSeguridad.ingresoDeOpciones_xsp
	at 
org.apache.cocoon.components.language.programming.java.JavaLanguage.loadProgram
(JavaLanguage.java:186)
	at 
org.apache.cocoon.components.language.programming.CompiledProgrammingLanguage.l
oad(CompiledProgrammingLanguage.java:211)
	at 
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.generateRe
source(ProgramGeneratorImpl.java:388)
	at 
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.createReso
urce(ProgramGeneratorImpl.java:333)
	at 
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.load
(ProgramGeneratorImpl.java:292)
	at org.apache.cocoon.generation.ServerPagesGenerator.setup
(ServerPagesGenerator.java:198)
	at 
org.apache.cocoon.components.pipeline.AbstractEventPipeline.setupPipeline
(AbstractEventPipeline.java:202)
	at org.apache.cocoon.components.pipeline.CachingEventPipeline.setup
(CachingEventPipeline.java:278)
	at 
org.apache.cocoon.components.pipeline.CachingEventPipeline.generateKey
(CachingEventPipeline.java:141)
	at org.apache.cocoon.components.pipeline.CachingStreamPipeline.process
(CachingStreamPipeline.java:317)
	at org.apache.cocoon.www.SGCWebXML.sitemap_xmap.matchN4000FE
(C:\Archivos de programa\Apache Group\Tomcat 4.1
\work\Standalone\localhost\cocoon\cocoon-
files\org/apache/cocoon/www/SGCWebXML\sitemap_xmap.java:1267)
	at org.apache.cocoon.www.SGCWebXML.sitemap_xmap.process(C:\Archivos 
de programa\Apache Group\Tomcat 4.1\work\Standalone\localhost\cocoon\cocoon-
files\org/apache/cocoon/www/SGCWebXML\sitemap_xmap.java:502)
	at org.apache.cocoon.www.SGCWebXML.sitemap_xmap.process(C:\Archivos 
de programa\Apache Group\Tomcat 4.1\work\Standalone\localhost\cocoon\cocoon-
files\org/apache/cocoon/www/SGCWebXML\sitemap_xmap.java:397)
	at org.apache.cocoon.sitemap.Handler.process(Handler.java:224)
	at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:179)
	at org.apache.cocoon.www.sitemap_xmap.matchN4002C9(C:\Archivos de 
programa\Apache Group\Tomcat 4.1\work\Standalone\localhost\cocoon\cocoon-
files\org/apache/cocoon/www\sitemap_xmap.java:3337)
	at org.apache.cocoon.www.sitemap_xmap.process(C:\Archivos de 
programa\Apache Group\Tomcat 4.1\work\Standalone\localhost\cocoon\cocoon-
files\org/apache/cocoon/www\sitemap_xmap.java:2579)
	at org.apache.cocoon.www.sitemap_xmap.process(C:\Archivos de 
programa\Apache Group\Tomcat 4.1\work\Standalone\localhost\cocoon\cocoon-
files\org/apache/cocoon/www\sitemap_xmap.java:2516)
	at org.apache.cocoon.sitemap.Handler.process(Handler.java:224)
	at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:179)
	at org.apache.cocoon.sitemap.SitemapManager.process
(SitemapManager.java:154)
	at org.apache.cocoon.Cocoon.process(Cocoon.java:575)
	at org.apache.cocoon.servlet.CocoonServlet.service
(CocoonServlet.java:999)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter
(ApplicationFilterChain.java:247)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter
(ApplicationFilterChain.java:193)
	at org.apache.catalina.core.StandardWrapperValve.invoke
(StandardWrapperValve.java:260)
	at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNe
xt(StandardPipeline.java:643)
	at org.apache.catalina.core.StandardPipeline.invoke
(StandardPipeline.java:480)
	at org.apache.catalina.core.ContainerBase.invoke
(ContainerBase.java:995)
	at org.apache.catalina.core.StandardContextValve.invoke
(StandardContextValve.java:191)
	at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNe
xt(StandardPipeline.java:643)
	at org.apache.catalina.core.StandardPipeline.invoke
(StandardPipeline.java:480)
	at org.apache.catalina.core.ContainerBase.invoke
(ContainerBase.java:995)
	at org.apache.catalina.core.StandardContext.invoke
(StandardContext.java:2396)
	at org.apache.catalina.core.StandardHostValve.invoke
(StandardHostValve.java:180)
	at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNe
xt(StandardPipeline.java:643)
	at org.apache.catalina.valves.ErrorDispatcherValve.invoke
(ErrorDispatcherValve.java:170)
	at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNe
xt(StandardPipeline.java:641)
	at org.apache.catalina.valves.ErrorReportValve.invoke
(ErrorReportValve.java:172)
	at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNe
xt(StandardPipeline.java:641)
	at org.apache.catalina.core.StandardPipeline.invoke
(StandardPipeline.java:480)
	at org.apache.catalina.core.ContainerBase.invoke
(ContainerBase.java:995)
	at org.apache.catalina.core.StandardEngineValve.invoke
(StandardEngineValve.java:174)
	at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNe
xt(StandardPipeline.java:643)
	at org.apache.catalina.core.StandardPipeline.invoke
(StandardPipeline.java:480)
	at org.apache.catalina.core.ContainerBase.invoke
(ContainerBase.java:995)
	at org.apache.coyote.tomcat4.CoyoteAdapter.service
(CoyoteAdapter.java:223)
	at org.apache.coyote.http11.Http11Processor.process
(Http11Processor.java:405)
	at 
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnecti
on(Http11Protocol.java:380)
	at org.apache.tomcat.util.net.TcpWorkerThread.runIt
(PoolTcpEndpoint.java:508)
	at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run
(ThreadPool.java:533)
	at java.lang.Thread.run(Thread.java:536)


request-uri

/cocoon/SGCWebXML/moduloDeSeguridad/ingresoDeOpciones.xsp

path-info

SGCWebXML/moduloDeSeguridad/ingresoDeOpciones.xsp


-------------------------------------------------------------------------------
-


I'm crazy with this error.  Somebody can help me please???

Saul Zarrate Cardenas




---------------------------------------------------------------------
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:     <cocoon-users-unsubscribe@xml.apache.org>
For additional commands, e-mail:   <cocoon-users-help@xml.apache.org>


Mime
View raw message