Solution After jbuilder running Tomcat, the confedment server 8080.xml file automatically disappeared

xiaoxiao2021-03-06  42

When you create a J2EE WEP Application using JBuilder9, JB will automatically create a server 8080.xml file in the Tomcat directory of the source. This file is regenerated each time after starting Tomcat, and the Tomcat is automatically disappeared. Therefore, it is useless to configure the connection pool, etc. Looking at the Note of the second line of Server8080.xml:

If you want to manually configure server8080.xml, you can delete the second line, I can delete it, the result is closed, I have disappeared, search for N multi-page online, have to change Tomcat launch parameters, I tried It's still not. I saw Tomcat / conf / server8080.xml that I did before. I tried to change the server8080.xml below my example, add a line Save, close Tomcat, confed by confed, and Server8080.xml file is also. Here is the remelted Server8080.xml file. In fact, change the server8080.xml file slightly. I Just test, I want to find a way to let server8080.xml files do not automatically disappear after turning off tomcat, so I don't have data sources in Server8080.xml. Solving this problem with a typical Server8080.xml file similar to it.

Maybe this problem is too simple in the eyes of other netizens, I have not found a better way, and I will remember so much. I will find a better way in the future.

factory org.apache.commons.dbcp.basicdataasourcefactory driverclassname com.microsoft.jdbc.sqlserver . SQLSERVERDRIVER URL jdbc: Microsoft: SQLServer: //127.0.0.1: 1433; DatabaseName = xx < Parameter> username sa password maxactive < / Name> 30 <

转载请注明原文地址:https://www.9cbs.com/read-54333.html

New Post(0)