cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Peter Schwenke <pe...@bluetoad.com.au>
Subject [HELP]Exception JspGenerator.generate()
Date Wed, 20 Mar 2002 00:32:55 GMT
I haven't played with this, but I see you can set your JSP Engine in
cocoon.xconf. 

  <!-- JSP Engine:
    The JspGenerator selects a JSPEngine component. The JSPEngine component
    launches a JSP servlet engine of your servlet container, feeds the
    HttpRequest into the JSP servlet engine, and pipes the jsp response as
    SAX events into Cocoon2. The JSP page is specified by the HttpRequest.
    This way you can continue to use your JSP pages. Your migration from JSP
    to XSP may be done step by step. You may specify your JSP pages either as
    JSP scriptlets or as JSP-XML. But keep in mind that your JSP output should
    be valid XML.
  -->
  <jsp-engine logger="core.jsp-engine">
    <parameter name="servlet-class" value="org.apache.jasper.servlet.JspServlet"/>
    <parameter name="servlet-name" value="*.jsp"/>
  </jsp-engine>

I checked the source and this is used by JSPEngineImpl.java.

                                                                     ...Peter
laou@ifrance.com writes:
 > Description:org.apache.cocoon.ProcessingException: Exception
 > JspGenerator.generate(): java.lang.ClassNotFoundException:
 > org.apache.jasper.servlet.JspServlet
 > 
 > Hi,
 > 
 > I am trying to produce XML out of using JSP with Cocoon 2 and
 > JspGenerator. It works with tomcat 3.2 but when i try to do this with
 > visual age, i have the following error : 
 > Original exception : java.lang.ClassNotFoundException:
 > org.apache.jasper.servlet.JspServlet 
 > java.lang.Throwable(java.lang.String) 
 > java.lang.Exception(java.lang.String) 
 > java.lang.ClassNotFoundException(java.lang.String) 
 > java.lang.Class java.net.URLClassLoader.findClass(java.lang.String) 
 > java.lang.Class java.lang.ClassLoader.loadClass(java.lang.String,
 > boolean) 
 > java.lang.Class java.lang.ClassLoader.loadClass(java.lang.String) 
 > byte []
 > org.apache.cocoon.components.jsp.JSPEngineImpl.executeJSP(java.lang.Stri
 > ng, javax.servlet.http.HttpServletRequest,
 > javax.servlet.http.HttpServletResponse, javax.servlet.ServletContext) 
 > void org.apache.cocoon.generation.JspGenerator.generate() 
 > boolean
 > org.apache.cocoon.components.pipeline.CachingEventPipeline.process(org.a
 > pache.cocoon.environment.Environment) 
 > boolean
 > org.apache.cocoon.components.pipeline.CachingStreamPipeline.process(org.
 > apache.cocoon.environment.Environment) 
 > boolean
 > org.apache.cocoon.www.sitemap_xmap.matchN10452(org.apache.cocoon.sitemap
 > .SitemapRedirector, org.apache.cocoon.environment.Environment,
 > org.apache.cocoon.components.pipeline.StreamPipeline,
 > org.apache.cocoon.components.pipeline.EventPipeline, boolean,
 > java.util.List) 
 > boolean
 > org.apache.cocoon.www.sitemap_xmap.process(org.apache.cocoon.environment
 > .Environment, org.apache.cocoon.components.pipeline.StreamPipeline,
 > org.apache.cocoon.components.pipeline.EventPipeline, boolean) 
 > boolean
 > org.apache.cocoon.www.sitemap_xmap.process(org.apache.cocoon.environment
 > .Environment) 
 > boolean
 > org.apache.cocoon.sitemap.Handler.process(org.apache.cocoon.environment.
 > Environment) 
 > boolean
 > org.apache.cocoon.sitemap.Manager.invoke(org.apache.avalon.framework.com
 > ponent.ComponentManager, org.apache.cocoon.environment.Environment,
 > java.lang.String, java.lang.String, boolean, boolean) 
 > boolean
 > org.apache.cocoon.sitemap.SitemapManager.process(org.apache.cocoon.envir
 > onment.Environment) 
 > boolean
 > org.apache.cocoon.Cocoon.process(org.apache.cocoon.environment.Environme
 > nt) 
 > void
 > org.apache.cocoon.servlet.CocoonServlet.service(javax.servlet.http.HttpS
 > ervletRequest, javax.servlet.http.HttpServletResponse) 
 > void
 > javax.servlet.http.HttpServlet.service(javax.servlet.ServletRequest,
 > javax.servlet.ServletResponse) 
 > void
 > org.apache.tomcat.core.ServletWrapper.handleRequest(org.apache.tomcat.co
 > re.Request, org.apache.tomcat.core.Response) 
 > void
 > org.apache.tomcat.core.ContextManager.service(org.apache.tomcat.core.Req
 > uest, org.apache.tomcat.core.Response) 
 > void
 > org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(o
 > rg.apache.tomcat.service.TcpConnection, java.lang.Object []) 
 > void org.apache.tomcat.service.TcpConnectionThread.run() 
 > void java.lang.Thread.run() 
 > 
 > after a hard  work, i installed the library in Visual age without
 > success.
 > Now i just the servlet.jar, webserver.jar, xml.jar, xml-apis.jar,
 > jasper.jar in the library of tomcat 3.2 and the other jar are in the
 > webapps of cocoon (Cf. cocoon.war 2)
 > 
 > Thanks in advance for any advice!
 > Loic Gourmelon 
 > 
 > 
 >  
 > ______________________________________________________________________________
 > ifrance.com, l'email gratuit le plus complet de l'Internet !
 > vos emails depuis un navigateur, en POP3, sur Minitel, sur le WAP...
 > http://www.ifrance.com/_reloc/email.emailif
 > 
 > 
 > 
 > ---------------------------------------------------------------------
 > Please check that your question has not already been answered in the
 > FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
 > 
 > To unsubscribe, e-mail: <cocoon-users-unsubscribe@xml.apache.org>
 > For additional commands, e-mail: <cocoon-users-help@xml.apache.org>

---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.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