Just to be clear I will paste my full web.xml of this root application and
note, the crossdomain.xml is a static file.

<?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>
    <display-name>IODine ROOT</display-name>
    <description>The IODine CRM Web Application</description>

    <context-param>
        <param-name>entityDelegatorName</param-name>
        <param-value>default</param-value>
        <description>The Name of the Entity Delegator to use, defined in
entityengine.xml</description>
    </context-param>
    <context-param>
        <param-name>localDispatcherName</param-name>
        <param-value>iodine-crm</param-value>
        <description>A unique name used to identify/recognize the local
dispatcher for the Service Engine</description>
    </context-param>
    <context-param>
        <param-name>serviceReaderUrls</param-name>
        <param-value>/WEB-INF/services.xml</param-value>
        <description>Configuration File(s) For The Service
Dispatcher</description>
    </context-param>

    <filter>
        <filter-name>ContextFilter</filter-name>
        <display-name>ContextFilter</display-name>
        <filter-class>org.ofbiz.webapp.control.ContextFilter</filter-class>
        <init-param>
            <param-name>disableContextSecurity</param-name>
            <param-value>N</param-value>
        </init-param>
        <init-param>
            <param-name>allowedPaths</param-name>

<param-value>/index.html:/index.jsp:/default.html:/crossdomain.xml:

/default.jsp:/images:/includes/maincss.css</param-value>
        </init-param>
        <init-param>
            <param-name>errorCode</param-name>
            <param-value>403</param-value>
        </init-param>
        <init-param>
            <param-name>redirectPath</param-name>
            <param-value>/control/main</param-value>
        </init-param>
    </filter>
    <filter-mapping>
        <filter-name>ContextFilter</filter-name>
            <url-pattern>/*</url-pattern>
    </filter-mapping>


    <session-config>
        <session-timeout>60</session-timeout> <!-- in minutes -->
    </session-config>

    <welcome-file-list>
        <welcome-file>index.jsp</welcome-file>
        <welcome-file>index.html</welcome-file>
        <welcome-file>index.htm</welcome-file>
        <welcome-file>crossdomain.xml</welcome-file>

    </welcome-file-list>
</web-app>


On Thu, Apr 3, 2008 at 10:18 PM, BJ Freeman <[EMAIL PROTECTED]> wrote:

> you included
>
> <filter-class>org.ofbiz.webapp.control.ContextFilter</filter-class>
> but no control.xml
> not sure how this will work.
>
> Mark Ellul sent the following on 4/3/2008 10:04 AM:
> > HI BJ,
> >
> > I just tried it out, and it seems to work, thanks for your help mate!
> >
> > This goes in your ofbiz-component.xml
> >
> >     <webapp name="my-root"
> >             title="ROOT"
> >             server="default-server"
> >             location="webapp/root"
> >             mount-point="/"
> >             app-bar-display="false"/>
> >
> >
> > And then you put your crossdomain.xml in your webapp/root folder...
> >
> > And then you update the web.xml from a normal one.... if anyone wants
> the
> > whole web.xml let me know!
> >
> >     <filter>
> >         <filter-name>ContextFilter</filter-name>
> >         <display-name>ContextFilter</display-name>
> >
> <filter-class>org.ofbiz.webapp.control.ContextFilter</filter-class>
> >         <init-param>
> >             <param-name>disableContextSecurity</param-name>
> >             <param-value>N</param-value>
> >         </init-param>
> >         <init-param>
> >             <param-name>allowedPaths</param-name>
> >
> > <param-value>/index.html:/index.jsp:/default.html:/crossdomain.xml:
> >
> > /default.jsp:/images:/includes/maincss.css</param-value>
> >         </init-param>
> >         <init-param>
> >             <param-name>errorCode</param-name>
> >             <param-value>403</param-value>
> >         </init-param>
> >         <init-param>
> >             <param-name>redirectPath</param-name>
> >             <param-value>/control/main</param-value>
> >         </init-param>
> >     </filter>
> >     <filter-mapping>
> >         <filter-name>ContextFilter</filter-name>
> >             <url-pattern>/*</url-pattern>
> >     </filter-mapping>
> >
> >
> >     <session-config>
> >         <session-timeout>60</session-timeout> <!-- in minutes -->
> >     </session-config>
> >
> >     <welcome-file-list>
> >         <welcome-file>index.jsp</welcome-file>
> >         <welcome-file>index.html</welcome-file>
> >         <welcome-file>index.htm</welcome-file>
> >         <welcome-file>crossdomain.xml</welcome-file>
> >
> >     </welcome-file-list>
> >
> > Regards
> >
> > Mark
> >
> > On Thu, Apr 3, 2008 at 6:58 PM, BJ Freeman <[EMAIL PROTECTED]> wrote:
> >
> >> Not sure that will work. I may be wrong.
> >> ofbiz works as one application.
> >> application in the hot deploy are not exposed to tomcat directly but
> are
> >> part of ofbiz.
> >>
> >> Mark Ellul sent the following on 4/3/2008 9:45 AM:
> >>> Hi BJ,
> >>>
> >>> well basically If I have a ofbiz installation at www.myofbiz.com I
> need
> >> to
> >>> serve a crossdomain.xml from this address
> >>> http://www.myofbiz.com/crossdomain.xml
> >>>
> >>> I was thinking that I create a web app in my hot deploy that uses / as
> >> its
> >>> context and put the file in there... and allow that as a welcome file
> in
> >> the
> >>> web.xml
> >>>
> >>> Otherwise is there a folder which we can serve files in the root
> context
> >>> from?
> >>>
> >>> Does that make sense?
> >>>
> >>> Thanks and Regards
> >>>
> >>> Mark
> >>>
> >>> On Thu, Apr 3, 2008 at 6:37 PM, BJ Freeman <[EMAIL PROTECTED]>
> wrote:
> >>>
> >>>> not sure how that fits into ofbiz.
> >>>> so can't answer.
> >>>>
> >>>> Mark Ellul sent the following on 4/3/2008 9:23 AM:
> >>>>> Hi BJ,
> >>>>>
> >>>>> Its my own services I have written, using the BlazeDS jars.
> >>>>>
> >>>>> Regards
> >>>>>
> >>>>> Mark
> >>>>>
> >>>>>
> >>>>>
> >>>>> On Thu, Apr 3, 2008 at 5:54 PM, BJ Freeman <[EMAIL PROTECTED]>
> >> wrote:
> >>>>>> are you referring to the ofbiz service engine, services?
> >>>>>>
> >>>>>> Mark Ellul sent the following on 4/3/2008 7:50 AM:
> >>>>>>> Hi,
> >>>>>>>
> >>>>>>> I want to use a crossdomain.xml to allow users from a domain to
> >> access
> >>>>>> my
> >>>>>>> services, where would I put it?
> >>>>>>>
> >>>>>>> Regards
> >>>>>>>
> >>>>>>> Mark
> >>>>>>>
> >>
> >
>
>

Reply via email to