Java web project under the classes folder class and WEB-INF/lib in the jar class file Loading Order, web-infjar
To publish to weblogic, you can configure it in WebContent \ WEB-INF \ weblogic. xml.
The configuration is as follows:
<? Xml version = "1.0" encoding = "UTF-8"?>
<Weblogic-web-app xmlns = "http://www.bea.com/ns/weblogic/90"
Xmlns: xsi = "http://www.w3.org/2001/XMLSchema-instance"
Xsi: schemaLocation = "http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd http://www.bea.com/ns/weblogic/90http://www.bea.com/ns/weblogic/90/weblogic-web-app.xsd">
<Container-descriptor>
<! -- After modifying the JVAV class, the JVAV class does not automatically restart. In debug mode, the logic of the modification method does not need to be restarted. However, changing the method parameters can only be used after restart. -->
<Servlet-reload-check-secs>-1 </servlet-reload-check-secs>
<! -- <Resource-reload-check-secs>-1 </resource-reload-check-secs>
<! -- Web-inf/classes is better than lib loading -->
<Prefer-web-inf-classes> true </prefer-web-inf-classes> -->
</Container-descriptor>
<! -- URL root path -->
<Context-root> </context-root>
<Jsp-descriptor>
<! -- View (Debug) the java source file \ servers \ AdminServer \ tmp \ _ WL_user \ webapp \ XXX \ jsp_servlet \ _ JSP \ _ compiled by jsp -->
<Keepgenerated> true </keepgenerated>
<! -- Do not restart the service to automatically load the modified JSP -->
<Page-check-seconds> 1 </page-check-seconds>
</Jsp-descriptor>
</Weblogic-web-app>
-----------------------------------------------------------------
Classloader loading sequence when Tomcat is started
Overview of Tomcat class loading priorities
1. The first is the jar file under $ JAVA_HOME/jre/lib/ext.
2. jar and class files in the environment variable CLASSPATH.
3. $ CATALINA_HOME/common/classes class file.
4. $ CATALINA_HOME/commons/endorsed jar file.
5. $ CATALINA_HOME/commons/i18n.
6. $ CATALINA_HOME/common/lib.
(Jar files such as the JDBC Driver can be placed here, so that the JDBC Driver cannot be found after the data source is configured in server. xml .)
7. $ CATALINA_HOME/server/classes class file.
8. $ CATALINA_HOME/server/lib.
9. $ CATALINA_BASE/shared/classes class file.
10. $ CATALINA_BASE/shared/lib.
11. Their specific webapp/WEB-INF/classes under the class file.
12. Their specific webapp/WEB-INF/lib jar files