cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <DNew...@datixinc.com>
Subject XSP and Cocoon
Date Tue, 11 Dec 2001 15:46:40 GMT
I am trying to use xsp to generate a dynamic xml page that can be changed
on fly from request information and java classes.
I have an xml file and an xsl file.
The xml file consists of:


<?xml version="1.0" encoding="UTF-8"?>

<xsp:logic>
     com.datix.xmlwriter.XmlWriter write = new XmlWriter();
     String xmlcontent = write.writeXml("dnewman", "SimpleForm");
     out.print(xmlcontent);
</xsp:logic>

This simply would call the class and print out the generated xml.
Well when run to produce a html page from an xml and xsl file i get a
error.
I have no idea what is causing this. Im assumin its the <xsp:logic> tag but
maybe not.
Im new to cocoon and xsp and xml so I am at a loss. And there isnt much
docs on this.

Any help would be great,

Thanks,

dave
dnewman@datixinc.com
                                                                                         
                           
 org.apache.cocoon.ProcessingException: Could not read resource file:/home/cocoon/tomcat/webapps/cocoon/xsptest.xsp:

 org.xml.sax.SAXParseException: The namespace prefix "xsp" was not declared.             
                           
            at org.apache.cocoon.generation.FileGenerator.generate(FileGenerator.java:115)
                          
            at org.apache.cocoon.components.pipeline.CachingEventPipeline.process(CachingEventPipeline.java:210)
    
            at org.apache.cocoon.components.pipeline.CachingStreamPipeline.process(CachingStreamPipeline.java:359)
  
            at org.apache.cocoon.www.sitemap_xmap.wildcardMatchN40028E(sitemap_xmap.java:3559)
                      
            at org.apache.cocoon.www.sitemap_xmap.process(sitemap_xmap.java:2551)        
                           
            at org.apache.cocoon.www.sitemap_xmap.process(sitemap_xmap.java:2312)        
                           
            at org.apache.cocoon.sitemap.Handler.process(Handler.java:163)               
                           
            at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:114)                
                           
            at org.apache.cocoon.Cocoon.process(Cocoon.java:514)                         
                           
            at org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:592)   
                           
            at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)              
                           
            at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404)  
                           
            at org.apache.tomcat.core.Handler.service(Handler.java:286)                  
                           
            at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)    
                           
            at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:797)
                       
            at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)    
                           
            at                                                                           
                           
 org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:210)
             
            at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416) 
                           
            at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498)
                           
            at java.lang.Thread.run(Thread.java:484)                                     
                           
 org.xml.sax.SAXParseException: The namespace prefix "xsp" was not declared.             
                           
            at org.apache.cocoon.components.parser.JaxpParser.error(JaxpParser.java:169) 
                           
            at org.apache.xerces.framework.XMLParser.reportError(XMLParser.java:1232)    
                           
            at                                                                           
                           
 org.apache.xerces.validators.common.XMLValidator.bindNamespacesToElementAndAttributes(XMLValidator.java:2622)
      
            at org.apache.xerces.validators.common.XMLValidator.callStartElement(XMLValidator.java:1152)
            
            at                                                                           
                           
 org.apache.xerces.framework.XMLDocumentScanner$ContentDispatcher.dispatch(XMLDocumentScanner.java:938)
             
            at org.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentScanner.java:381)
                
            at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1081)          
                           
            at org.apache.cocoon.components.parser.JaxpParser.parse(JaxpParser.java:100) 
                           
            at org.apache.cocoon.components.source.URLSource.toSAX(URLSource.java:327)   
                           
            at org.apache.cocoon.generation.FileGenerator.generate(FileGenerator.java:109)
                          
            at org.apache.cocoon.components.pipeline.CachingEventPipeline.process(CachingEventPipeline.java:210)
    
            at org.apache.cocoon.components.pipeline.CachingStreamPipeline.process(CachingStreamPipeline.java:359)
  
            at org.apache.cocoon.www.sitemap_xmap.wildcardMatchN40028E(sitemap_xmap.java:3559)
                      
            at org.apache.cocoon.www.sitemap_xmap.process(sitemap_xmap.java:2551)        
                           
            at org.apache.cocoon.www.sitemap_xmap.process(sitemap_xmap.java:2312)        
                           
            at org.apache.cocoon.sitemap.Handler.process(Handler.java:163)               
                           
            at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:114)                
                           
            at org.apache.cocoon.Cocoon.process(Cocoon.java:514)                         
                           
            at org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:592)   
                           
            at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)              
                           
            at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404)  
                           
            at org.apache.tomcat.core.Handler.service(Handler.java:286)                  
                           
            at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)    
                           
            at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:797)
                       
            at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)    
                           
            at                                                                           
                           
 org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:210)
             
            at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416) 
                           
            at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498)
                           
            at java.lang.Thread.run(Thread.java:484)                                     
                           
                                                                                         
                           
                                                                                         
                           





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


Mime
View raw message