Hi,
Just an idea.

what would be the impact on using OXF if I remove the following code bit from 
struts.xpl and serve the images, stylesheets and JS files directly?

        <p:when test="contains(/request/request-path, '.css') or 
contains(/request/request-path, '.js') or contains(/request/request-path, '.gif') or 
contains(/request/request-path, '.png')">
            <p:processor uri="oxf/processor/resource-server">
                <p:input name="config" href="aggregate('path', 
#path#xpointer(string(/request/request-path)))"/>
                <p:input name="mime-type" href="oxf:/oxf/mime-types.xml"/>
            </p:processor>
        </p:when>

and of course following mapping from web.xml

   <servlet-mapping>
     <servlet-name>oxf</servlet-name>
     <url-pattern>*.css</url-pattern>
   </servlet-mapping>
   <servlet-mapping>
     <servlet-name>oxf</servlet-name>
     <url-pattern>*.js</url-pattern>
   </servlet-mapping>
   <servlet-mapping>
     <servlet-name>oxf</servlet-name>
     <url-pattern>*.gif</url-pattern>
   </servlet-mapping>
  <servlet-mapping>
    <servlet-name>oxf</servlet-name>
    <url-pattern>*.png</url-pattern>
  </servlet-mapping>


Thanks,
Kesara.

-----Original Message-----
From: Kesara Kudalugodaarachchi 
Sent: Thursday, September 25, 2003 5:55 PM
To: OXF Users
Subject: Resorce Problem


Hi,
I'm trying to create a "WAR" file and launch it in Tomcat 4.1.27 with struts 
integration (oxf version 2.0.2). This war works fine in JBoss with integrated tomcat 
(Now I'm trying to separate the EJB server and Servlet container into two different 
machines)  however my images doesn't appear on the pages now. If i give a url 
(http://localhost:8080/arasys/default/images/imgLoginCurveBottomLeft.gif) for the 
image direct this is what I get. However the tomcat console says 

2003-09-25 17:01:18,268 INFO  org.orbeon.oxf.servlet.ProcessorService  - 
/arasys/default/images/imgLoginCurveBottomLeft.
gif - Timing: 2764 - Cache hits: 7, fault: 14, adds: 15, success rate: 33%
 


I've attached the web.xml. These images do exist in the said folder and I can access 
them when I remove the following mapping  

<servlet-mapping>
     <servlet-name>oxf</servlet-name>
     <url-pattern>*.gif</url-pattern>
   </servlet-mapping>




HTTP Status 404 - 

type Status report
message 
description The requested resource () is not available.

Apache Tomcat/4.1.27
_______________________________________________
oxf-users mailing list
[EMAIL PROTECTED]
http://mail.orbeon.com/mailman/listinfo/oxf-users

Reply via email to