Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is difference between web.xml and weblogic.xml

Recently I started working in Weblogic server. I was trying to add runtime environment when I added a weblogic.xml has been added by default. I searched over Internet for differences but I am still confused. Can anybody tell in details ?

like image 692
Rajeev Avatar asked Jun 04 '14 09:06

Rajeev


People also ask

What is web xml WebLogic?

The DefaultWebApp/WEB-INF/weblogic. xml file is the WebLogic-specific deployment descriptor file that defines how named resources in the web. xml file are mapped to resources residing elsewhere in WebLogic Server. This file is also used to define JSP and HTTP session attributes.

Where is web xml in WebLogic?

If you are using WebLogic as your application server, there are certain values in the weblogic. xml file, located in the /WEB-INF directory of the TeamConnect .

Where do I put WebLogic application xml?

The file is located in the META-INF subdirectory of the application archive.

What is the use of web xml file?

web. xml defines mappings between URL paths and the servlets that handle requests with those paths. The web server uses this configuration to identify the servlet to handle a given request and call the class method that corresponds to the request method.


2 Answers

The web.xml file provides configuration and deployment information for the Web components that comprise a Web application. Examples of Web components are servlet parameters, servlet and JavaServer Pages (JSP) definitions, and Uniform Resource Locators (URL) mappings. This is located in the WEB-INF directory.

Weblogic.xml is the configuration file for all the applications lying in the domain created. It lies in the META-INF directory and contains parameters such as auth-filter, charset-params, container-descriptor, context-root, description etc..

See this link.. https://in.answers.yahoo.com/question/index?qid=20081108233649AAMb2ks

Hope this will help you..

like image 187
Suseendran Kandasamy Avatar answered Oct 01 '22 03:10

Suseendran Kandasamy


Web.xml is specific to Web applications (e.g. servlets) while weblogic.xml applies to all applications. Additionally, you need to put in weblogic.xml all settings that are vendor-specific. An example is connecting a security role with the actual user or group:

<security-role-assignment>
    <role-name>AdminRole</role-name>
    <principal-name>Fred</principal-name>
    <principal-name>Ted</principal-name>
</security-role-assignment>

Namely, Java EE does not specify how this mapping should be achieved. In Glassfish it is performed through glassfish-web.xml file, in Tomcat through tomcat-users.xml. One way or another, you need an additional deployment descriptor for a such task.

See also:

  • weblogic.xml Deployment Descriptor Elements
like image 33
Miljen Mikic Avatar answered Oct 01 '22 03:10

Miljen Mikic