tomcat发布jsp
tomcat发布网站 为什么发布以后访问不了数据库了,server.xml配置如下
<Host name="192.168.0.54" appBase="C:\Users\one\Desktop\xx\xx\xx"
unpackWARs="true" autoDeploy="true">
<!-- SingleSignOn valve, share authentication between web applications
Documentation at: /docs/config/valve.html -->
<!--
<Valve className="org.apache.catalina.authenticator.SingleSignOn" />
-->
<!-- Access log processes all example.
Documentation at: /docs/config/valve.html
Note: The pattern used is equivalent to using pattern="common" -->
<Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs"
prefix="localhost_access_log." suffix=".txt"
pattern="%h %l %u %t "%r" %s %b" resolveHosts="false"/>
<Context reloadable="true" crossContext="true" path="" docBase="doc"/>
</Host>
[解决办法]