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