build.xml and ofbiz-component.xml

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

build.xml and ofbiz-component.xml

Monisha
1)What is the use of build.xml and ofbiz-component.xml?
2)Why are they put in WEB-INF folder?


Thanks and Regards
Monisha Veerwani
Reply | Threaded
Open this post in threaded view
|

Re: build.xml and ofbiz-component.xml

rajsaini
Where did you find build.xml and ofbiz-componet.xml in the WEB-INF
folder? They suppose to in the root of your component. build.xml is a
ant build file and ofbiz-compoent.xml is OFbiz component meta data file.

Thanks,

Raj

On 12/08/10 22:54, Monisha wrote:
> 1)What is the use of build.xml and ofbiz-component.xml?
> 2)Why are they put in WEB-INF folder?
>
>
> Thanks and Regards
> Monisha Veerwani
>
>    

Reply | Threaded
Open this post in threaded view
|

Re: build.xml and ofbiz-component.xml

Monisha
I m Sorry !!
There was a typing mistake.
Actually I was asking Why controller.xml and web.xml are put in WEB-INF folder?
Reply | Threaded
Open this post in threaded view
|

Re:controller.xml and web.xml was build.xml and ofbiz-component.xml

BJ Freeman
web.xml is part of tomcat structure
http://tomcat.apache.org/tomcat-4.1-doc/appdev/deployment.html
http://tomcat.apache.org/tomcat-5.5-doc/appdev/web.xml.txt

unlike the declaration in the web.xml of standard tomcat for the control
servlet, ofbiz has there own and it looks for the controller in WEB-INF
This is where I put it since it is part of each webapp and is WEB-INF
used individually for each webapp.

     <servlet>
         <servlet-name>ControlServlet</servlet-name>
         <display-name>ControlServlet</display-name>
         <description>Main Control Servlet</description>
 
<servlet-class>org.ofbiz.webapp.control.ControlServlet</servlet-class>
         <load-on-startup>1</load-on-startup>
     </servlet>
     <servlet-mapping>
         <servlet-name>ControlServlet</servlet-name>
         <url-pattern>/control/*</url-pattern>
     </servlet-mapping>

Monisha sent the following on 8/12/2010 11:09 AM:
>
> I m Sorry !!
> There was a typing mistake.
> Actually I was asking Why controller.xml and web.xml are put in WEB-INF
> folder?
Reply | Threaded
Open this post in threaded view
|

Re: controller.xml and web.xml was build.xml and ofbiz-component.xml

BJ Freeman
apologize left out one word
This is where I would put it

BJ Freeman sent the following on 8/12/2010 11:39 AM:

> web.xml is part of tomcat structure
> http://tomcat.apache.org/tomcat-4.1-doc/appdev/deployment.html
> http://tomcat.apache.org/tomcat-5.5-doc/appdev/web.xml.txt
>
> unlike the declaration in the web.xml of standard tomcat for the control
> servlet, ofbiz has there own and it looks for the controller in WEB-INF
> This is where I put it since it is part of each webapp and is WEB-INF
> used individually for each webapp.
>
> <servlet>
> <servlet-name>ControlServlet</servlet-name>
> <display-name>ControlServlet</display-name>
> <description>Main Control Servlet</description>
>
> <servlet-class>org.ofbiz.webapp.control.ControlServlet</servlet-class>
> <load-on-startup>1</load-on-startup>
> </servlet>
> <servlet-mapping>
> <servlet-name>ControlServlet</servlet-name>
> <url-pattern>/control/*</url-pattern>
> </servlet-mapping>
>
> Monisha sent the following on 8/12/2010 11:09 AM:
>>
>> I m Sorry !!
>> There was a typing mistake.
>> Actually I was asking Why controller.xml and web.xml are put in WEB-INF
>> folder?
>
Reply | Threaded
Open this post in threaded view
|

Re: build.xml and ofbiz-component.xml

rajsaini
In reply to this post by Monisha
controller.xml is the file which has request mapping and view mappings.
web.xml is descriptor for a web application and this suppose to be in
WEB-INF folder. To know why it is there you will need to go through the
servlet specifications.

Thanks,

Raj

On 12/08/10 23:39, Monisha wrote:
> I m Sorry !!
> There was a typing mistake.
> Actually I was asking Why controller.xml and web.xml are put in WEB-INF
> folder?
>