ChingsChen 2017-08-22 13:52 采纳率: 26.7%
浏览 713

关于tomcat配置文件的问题

修改了配置文件server.xml,在host节点中添加了以下代码:
<!--设置虚拟路径-->

<!--name:a name for data-source;auth:someone who control the data-source; type:the type of database-->


<!--settings of factory-->

factory
org.apache.commons.dbcp.BasicDataSourceFactory

<!--set the drive of database,which was put on the directory 'common/lib' or
the directory lib of your website in-->

driverClassName
com.mysql.jdbc.Driver

<!--set the url-->

url
jdbc:mysql://localhost:3306;DatabaseName=users

<!--input the username of your databases-->

username
root

<!--input the password of your databases-->

password


<!--set the max count of activated connections-->

maxActive
20

<!--set the max count of free connections-->

maxIdle
10

<!--set the longest time of customer's waiting-->

maxWait
-1



保存后启动tomcat直接闪退,无法启动成功,连个报错都没,是我的XML写错了吗,求指教

  • 写回答

1条回答

  • vvvvip用户 2017-08-23 01:58
    关注
    评论

报告相同问题?

悬赏问题

  • ¥15 c程序不知道为什么得不到结果
  • ¥40 复杂的限制性的商函数处理
  • ¥15 程序不包含适用于入口点的静态Main方法
  • ¥15 素材场景中光线烘焙后灯光失效
  • ¥15 请教一下各位,为什么我这个没有实现模拟点击
  • ¥15 执行 virtuoso 命令后,界面没有,cadence 启动不起来
  • ¥50 comfyui下连接animatediff节点生成视频质量非常差的原因
  • ¥20 有关区间dp的问题求解
  • ¥15 多电路系统共用电源的串扰问题
  • ¥15 slam rangenet++配置