crossdomain.xml

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
12 messages Options
Reply | Threaded
Open this post in threaded view
|

crossdomain.xml

Mark-2
This post was updated on .
CONTENTS DELETED
The author has deleted this message.
Reply | Threaded
Open this post in threaded view
|

Re: crossdomain.xml

BJ Freeman
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 | Threaded
Open this post in threaded view
|

Re: crossdomain.xml

Mark-2
This post was updated on .
CONTENTS DELETED
The author has deleted this message.
Reply | Threaded
Open this post in threaded view
|

Re: crossdomain.xml

BJ Freeman
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 <[hidden email]> 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 | Threaded
Open this post in threaded view
|

Re: crossdomain.xml

Mark-2
This post was updated on .
CONTENTS DELETED
The author has deleted this message.
Reply | Threaded
Open this post in threaded view
|

Re: crossdomain.xml

BJ Freeman
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 <[hidden email]> 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 <[hidden email]> 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 | Threaded
Open this post in threaded view
|

Re: crossdomain.xml

Mark-2
This post was updated on .
CONTENTS DELETED
The author has deleted this message.
Reply | Threaded
Open this post in threaded view
|

Re: crossdomain.xml

BJ Freeman
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 <[hidden email]> 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 <[hidden email]> 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 <[hidden email]>
>> 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 | Threaded
Open this post in threaded view
|

Re: crossdomain.xml

Mark-2
This post was updated on .
CONTENTS DELETED
The author has deleted this message.
Reply | Threaded
Open this post in threaded view
|

Re: crossdomain.xml

BJ Freeman
I am not clear on your focus.
the original statement was that you wanted to have others use your services.
All that I read on the crossdomain.xml says
1) it is for flash applications to access the website
2) it is not aware of services in ofbiz.

to my knowledge, as limited as it is, says the crossdomain.xml will not
effect exporting ofbiz services used by the service engine.

you may want to investigate further, or I have a lot of reading todo and
would appreciated some links.

Mark Ellul sent the following on 4/4/2008 3:00 AM:

> 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 <[hidden email]> 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 <[hidden email]> 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 <[hidden email]>
>> 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 <[hidden email]>
>>>> 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 | Threaded
Open this post in threaded view
|

Re: crossdomain.xml

rajsaini
In reply to this post by BJ Freeman
I am afraid this is not correct. Every application (containing a
web.xml) is a stand alone application. And to serve the contents from
root context create a ROOT application (i.e. mount the application as
ROOT). Web resources in this application will be served from root context.

Other option is to use Apache Web server fronting the Ofbiz and you can
configure a directory as DocumentRoot in Apache. To access the Ofbiz
application you can use mod_ajp_proxy or mod_jk.

Thanks,

Raj

BJ Freeman 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 <[hidden email]> 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 <[hidden email]> 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 | Threaded
Open this post in threaded view
|

Re: crossdomain.xml

BJ Freeman
I think the important distinction here is what is Web resources.
and the services from the service engine are not exposed as web
resources by using the crossdomain.xml.
I believe that was the original statement.

Raj Saini sent the following on 4/5/2008 9:16 AM:

> I am afraid this is not correct. Every application (containing a
> web.xml) is a stand alone application. And to serve the contents from
> root context create a ROOT application (i.e. mount the application as
> ROOT). Web resources in this application will be served from root context.
>
> Other option is to use Apache Web server fronting the Ofbiz and you can
> configure a directory as DocumentRoot in Apache. To access the Ofbiz
> application you can use mod_ajp_proxy or mod_jk.
>
> Thanks,
>
> Raj
>
> BJ Freeman 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 <[hidden email]> 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 <[hidden email]>
>>>>> 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
>>>>>>>
>>>>>>>            
>>
>>
>>  
>
>
>
>