cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jeroen Reijn" <j.re...@hippo.nl>
Subject RE: Resource Not Found
Date Mon, 05 Mar 2007 23:17:55 GMT
No you do not have to change anything in the cocoon.xconf in order for this to work.
 
Have you read the Wiki about JBoss deployment [1]? I think it's a bit outdated, but i'm not
sure.
 
I'm very curious if you even get the Cocoon welcome page if you access http://localhost:8080/
or http://localhost:8080/cl/
If not Cocoon is not mounted on the root or the cl context, so you will have to figure out
on what context cocoon is running.
If you get the welcome page or found out what context cocoon is running on, you could edit
the sitemap.xmap and add a mount for the cl pattern (or any other pattern), to mount it to
a subsitemap. You can then handle all requests to /cl/someurl in the subsitemap.
 
I'm off for the night.
 
[1] http://wiki.apache.org/cocoon/JBossDeployment

	-----Oorspronkelijk bericht----- 
	Van: Caly.leeAnn [mailto:callyliang@gmail.com] 
	Verzonden: ma 5-3-2007 23:48 
	Aan: users@cocoon.apache.org 
	CC: 
	Onderwerp: RE: Resource Not Found
	
	


	Thank you for your reply.
	
	How and where should I mount Cocoon to the cl context?
	
	I tried <welcome-file-list>  <welcome-file></welcome-file>
	</welcome-file-list>, I still got the same error.
	
	Do I have to set up anything in cocoon.xconf? I just use the one that comes
	with the cocoon 2.1 src under the webapp directory.
	
	
	
	Jeroen Reijn wrote:
	>
	> Hi Caly.leeAnn,
	> 
	> let's try to pinpoint the problem a bit more.
	> 
	> There could be a couple of things that can go wrong.
	> 
	> First of all did you try to run the cocoon distro inside JBOSS with
	> succes?
	> You're trying to call the url "/cl/index.html". Did you mount cocoon at
	> the cl context or is it at the root context? If so, what does your main
	> sitemap or mount-table tell you about the cl mapping?
	> 
	> I've no experience with JBOSS, but it I was working on an issue with
	> Weblogic the other day when I noticed that you will need to have the
	> welcome-files defined in the web.xml for the default cocoon checkout to
	> work appropriate. Cocoon is matching for a non-index specific urls by
	> default, so you could try to add the following snippet to your web.xml and
	> see if that helps anything.
	> 
	> <welcome-file-list>
	>   <welcome-file></welcome-file>
	> </welcome-file-list>
	>
	> Regards,
	> 
	> Jeroen Reijn
	> 
	>
	>       -----Oorspronkelijk bericht-----
	>       Van: Caly.leeAnn [mailto:callyliang@gmail.com]
	>       Verzonden: ma 5-3-2007 22:09
	>       Aan: users@cocoon.apache.org
	>       CC:
	>       Onderwerp: Resource Not Found
	>      
	>      
	>
	>
	>       I am trying to learn Cocoon by setting up a very simple project and
	> deploy
	>       cl.war to ${JBOSS_HOME}/server/default. And I have the follow error when
	> I
	>       access http://localhost:8080/cl/index.html:
	>      
	>       Resource Not Found
	>       Message: Resource Not Found
	>      
	>       Description: The requested resource "/cl/index.html" could not be found
	>       Sender: org.apache.cocoon.servlet.CocoonServlet
	>      
	>       Source: Cocoon Servlet
	>      
	>       Apache Cocoon 2.1.10
	>      
	>       And I have the follow error when I access
	>       http://localhost:8080/cl/index1.html:
	>       Description: The requested resource "/cl/index1.html" could not be found
	>      
	>       I have cocoon.xconf and logkit.xconf defined and sitemap.xmap is like:
	>       <?xml version="1.0" encoding="UTF-8"?>
	>       <map:sitemap xmlns:map="http://apache.org/cocoon/sitemap/1.0">
	>      
	>        <map:components>
	>        </map:components>
	>      
	>         <map:pipelines>
	>           <map:pipeline>
	>             <map:match pattern="cl/index.html">
	>               <map:read src="cl/index.html"/>
	>             </map:match>
	>      
	>           <map:match pattern="index1.html">
	>               <map:generate src="eindex.html"/>
	>               <map:serialize type="html"/>
	>             </map:match>
	>      
	>              </map:pipeline>
	>         </map:pipelines>
	>       </map:sitemap>
	>      
	>       The following is what I define for Cocoon in web.xml
	>        <servlet>
	>           <servlet-name>Cocoon</servlet-name>
	>           <display-name>Cocoon</display-name>
	>           <description>Cocoon</description>
	>         
	>         
	> <servlet-class>org.apache.cocoon.servlet.CocoonServlet</servlet-class>
	>         
	>           <init-param>
	>             <param-name>init-classloader</param-name>
	>             <param-value>false</param-value>
	>           </init-param>
	>       
	>           <init-param>
	>             <param-name>configurations</param-name>
	>             <param-value>/WEB-INF/cocoon.xconf</param-value>
	>           </init-param>
	>      
	>           <init-param>
	>             <param-name>logkit-config</param-name>
	>             <param-value>/WEB-INF/logkit.xconf</param-value>
	>           </init-param>
	>      
	>      
	>           <init-param>
	>             <param-name>servlet-logger</param-name>
	>             <param-value>access</param-value>
	>           </init-param>
	>      
	>           <init-param>
	>             <param-name>cocoon-logger</param-name>
	>             <param-value>core</param-value>
	>           </init-param>
	>         
	>           <init-param>
	>             <param-name>log-level</param-name>
	>             <param-value>WARN</param-value>
	>           </init-param>
	>      
	>          <init-param>
	>             <param-name>forbidden-deprecation-level</param-name>
	>             <param-value>ERROR</param-value>
	>           </init-param>
	>       
	>           <init-param>
	>             <param-name>allow-reload</param-name>
	>             <param-value>no</param-value>
	>           </init-param>
	>      
	>           <init-param>
	>             <param-name>load-class</param-name>
	>             <param-value>
	>               <!-- For parent ComponentManager sample:
	>               org.apache.cocoon.samples.parentcm.Configurator -->
	>               <!-- For IBM WebSphere:
	>               com.ibm.servlet.classloader.Handler -->
	>             </param-value>
	>           </init-param>
	>      
	>           <init-param>
	>             <param-name>enable-uploads</param-name>
	>             <param-value>false</param-value>
	>           </init-param>
	>      
	>           <init-param>
	>             <param-name>autosave-uploads</param-name>
	>             <param-value>true</param-value>
	>           </init-param>
	>      
	>           <init-param>
	>             <param-name>overwrite-uploads</param-name>
	>             <param-value>rename</param-value>
	>           </init-param>
	>      
	>           <init-param>
	>             <param-name>upload-max-size</param-name>
	>             <param-value>102400</param-value>
	>           </init-param>
	>      
	>           <init-param>
	>             <param-name>show-cocoon-version</param-name>
	>             <param-value>true</param-value>
	>           </init-param>
	>      
	>           <init-param>
	>             <param-name>manage-exceptions</param-name>
	>             <param-value>true</param-value>
	>           </init-param>
	>      
	>           <init-param>
	>             <param-name>enable-instrumentation</param-name>
	>             <param-value>false</param-value>
	>           </init-param>
	>      
	>           <init-param>
	>             <param-name>instrumentation-config</param-name>
	>             <param-value>/WEB-INF/instrumentation.xconf</param-value>
	>           </init-param>
	>      
	>           <init-param>
	>             <param-name>container-encoding</param-name>
	>             <param-value>ISO-8859-1</param-value>
	>           </init-param>
	>      
	>           <init-param>
	>             <param-name>form-encoding</param-name>
	>             <param-value>ISO-8859-1</param-value>
	>           </init-param>
	>      
	>           <load-on-startup>1</load-on-startup>
	>         </servlet>
	>      
	>        <servlet-mapping>
	>           <servlet-name>Cocoon</servlet-name>
	>           <url-pattern>*.html</url-pattern>
	>         </servlet-mapping>
	>      
	>       Any advice of how to solve this problem will be appreicated! Thank you.
	>      
	>      
	>       --
	>       View this message in context:
	> http://www.nabble.com/Resource-Not-Found-tf3351736.html#a9320605
	>       Sent from the Cocoon - Users mailing list archive at Nabble.com.
	>      
	>      
	>       ---------------------------------------------------------------------
	>       To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
	>       For additional commands, e-mail: users-help@cocoon.apache.org
	>      
	>      
	>
	>
	>
	
	--
	View this message in context: http://www.nabble.com/Resource-Not-Found-tf3351736.html#a9322448
	Sent from the Cocoon - Users mailing list archive at Nabble.com.
	
	
	---------------------------------------------------------------------
	To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
	For additional commands, e-mail: users-help@cocoon.apache.org
	
	

Mime
View raw message