You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by hyl <al...@hbt.com.tw> on 2002/02/26 10:10:15 UTC
Cocoon2.0.1 with weblogic6.1sp1
Does anyone have success with using cocoon/JSP under weblogic6.1sp1.
I had met the following problem.
First I copy bea\wlserver6.1\lib\weblogic.jar and j2ee.jar to the cocoon/lib/core and build cocoon.
After I build cocoon,I could find the JSPEngineImplWLS the cocoon.jar.
It's fine,I have the alternative JSPEngineImplNamedDispatcherInclude.
So I follow the manual http://xml.apache.org/cocoon/userdocs/generators/jsp-generator.html to add my.roles
ps: the page has a typo JSPEngineImplNamedDispa"c"tcherInclude . Dispatcher not Dispactcher.
And add the following to WEB-INF/web.xml
---------------------------
<servlet-mapping>
<servlet-name>Cocoon2</servlet-name>
<url-pattern>*.jsp</url-pattern>
</servlet-mapping>
---------------------------
Then I restart my weblogic and access the jsp example of cocoon http://127.0.0.1:7001/cocoon/jsp/hello
And I got the error message as following:
The org.apache.cocoon.www.sitemap_xmap notifies that org.apache.cocoon.ProcessingException says:
ServletException in JspGenerator.generate()
More precisely:
org.apache.cocoon.ProcessingException: ServletException in JspGenerator.generate()
org.apache.cocoon.ProcessingException: ServletException in JspGenerator.generate()
at org.apache.cocoon.generation.JspGenerator.generate(JspGenerator.java:87)
at org.apache.cocoon.components.pipeline.CachingEventPipeline.process(CachingEventPipeline.java:209)
at org.apache.cocoon.components.pipeline.CachingStreamPipeline.process(CachingStreamPipeline.java:355)
at org.apache.cocoon.www.sitemap_xmap.matchN10462(sitemap_xmap.java:5751)
at org.apache.cocoon.www.sitemap_xmap.process(sitemap_xmap.java:2935)
at org.apache.cocoon.www.sitemap_xmap.process(sitemap_xmap.java:2432)
at org.apache.cocoon.sitemap.Handler.process(Handler.java:180)
at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:127)
at org.apache.cocoon.sitemap.SitemapManager.process(SitemapManager.java:144)
at org.apache.cocoon.Cocoon.process(Cocoon.java:582)
at org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:795)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:265)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:200)
at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:2456)
at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2039)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
Now I adapte a temporary solution.
<map:match pattern="*.html">
<map:act type="request">
<map:parameter name="parameters" value="true"/>
<map:generate src="http://localhost:7001/cocoon/jsp/{../1}.jsp{requestQuery}"/>
</map:act>
<map:transform src="../stylesheets/htmlbasepage.xsl"/>
<map:serialize type="html"/>
</map:match>
Could somebody give me a hand?