Erik, The images folder was in the web root not in WEB-INF/resources and it does work when I move the images there. However the funny thing is that how was it working under JBoss with tomcat integrated so far? But then that's something for you guys to worry about. Thanks ! Kesara.
-----Original Message----- From: Erik Bruchez [mailto:[EMAIL PROTECTED] Sent: Thursday, September 25, 2003 7:19 PM To: OXF Users Subject: Re: Resorce Problem The root directory of the WebAppResourceManager WEB-INF/resources. Are your images, etc. somewhere under that directory in your WAR? -Erik Kesara Kudalugodaarachchi wrote: > 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 > > > ------------------------------------------------------------------------ > > <?xml version="1.0" ?> > <!DOCTYPE web-app > PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" > "http://java.sun.com/dtd/web-app_2_3.dtd"> > > <web-app> > <context-param> > <param-name>oxf.resources.factory</param-name> > > <param-value>org.orbeon.oxf.resources.PriorityResourceManagerFactory</param-value> > </context-param> > <context-param> > <param-name>oxf.resources.webapp.rootdir</param-name> > <param-value>/WEB-INF/resources</param-value> > </context-param> > <context-param> > <param-name>oxf.resources.priority.1</param-name> > <param-value>org.orbeon.oxf.resources.WebAppResourceManagerFactory</param-value> > </context-param> > <context-param> > <param-name>oxf.resources.priority.2</param-name> > > <param-value>org.orbeon.oxf.resources.ClassLoaderResourceManagerFactory</param-value> > </context-param> > <context-param> > <param-name>oxf.properties</param-name> > <param-value>oxf:/config/properties.xml</param-value> > </context-param> > > <servlet> > <servlet-name>struts</servlet-name> > > <servlet-class>com.arasys.client.framework.struts.ArasysActionServlet</servlet-class> > <init-param> > <param-name>config</param-name> > <param-value>/WEB-INF/struts-config.xml</param-value> > </init-param> > <init-param> > <param-name>debug</param-name> > <param-value>10</param-value> > </init-param> > <init-param> > <param-name>mapping</param-name> > <param-value>org.apache.struts.action.RequestActionMapping</param-value> > </init-param> > > <!--init-param> > <param-name>isVirtualWebappRelative</param-name> > <param-value>1</param-value> > </init-param--> > <load-on-startup>1</load-on-startup> > </servlet> > > <servlet> > <servlet-name>oxf</servlet-name> > <servlet-class>org.orbeon.oxf.servlet.ProcessorServlet</servlet-class> > > <!--init-param> > <param-name>isVirtualWebappRelative</param-name> > <param-value>1</param-value> > </init-param--> > <load-on-startup>1</load-on-startup> > </servlet> > > <servlet-mapping> > <servlet-name>struts</servlet-name> > <url-pattern>/</url-pattern> > </servlet-mapping> > > <servlet-mapping> > <servlet-name>struts</servlet-name> > <url-pattern>*.do</url-pattern> > </servlet-mapping> > > <servlet-mapping> > <servlet-name>oxf</servlet-name> > <url-pattern>*.xpl</url-pattern> > </servlet-mapping> > > <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> > > <ejb-ref> > <ejb-ref-name>ejb/webtest/AdminSession</ejb-ref-name> > <ejb-ref-type>Session</ejb-ref-type> > <home>com.arasys.server.admin.AdminManagerHome</home> > <remote>com.arasys.server.admin.AdminManager</remote> > </ejb-ref> > </web-app> > > > ------------------------------------------------------------------------ > > _______________________________________________ > oxf-users mailing list > [EMAIL PROTECTED] > http://mail.orbeon.com/mailman/listinfo/oxf-users _______________________________________________ oxf-users mailing list [EMAIL PROTECTED] http://mail.orbeon.com/mailman/listinfo/oxf-users _______________________________________________ oxf-users mailing list [EMAIL PROTECTED] http://mail.orbeon.com/mailman/listinfo/oxf-users
