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:[EMAIL PROTECTED] 
        Verzonden: ma 5-3-2007 22:09 
        Aan: [email protected] 
        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: [EMAIL PROTECTED]
        For additional commands, e-mail: [EMAIL PROTECTED]
        
        

Reply via email to