最近在搭建UDDI服务器的时候解决一个BUG。
在根据一篇博客介绍的UDDI的使用教程操作之后,发现最后jUDDI DataSource Validation部分出了问题。jUDDI DataSource Validation的前两个是对的,第三个出错(导致第四个也出错):
DB connection was not acquired. (Cannot create JDBC driver of class '' for connect URL 'null')
最后解决方案是:
在Tomcat/config/context.xml中的<Context></Context>之间添加如下代码:
<Resource name="jdbc/juddiDB" auth="Container"
type="javax.sql.DataSource"
removeAbandoned="true"
removeAbandonedTimeout="30"
maxActive="100"
maxIdle="30"
maxWait="10000"
username="root"
password="admin"
driverClassName="com.mysql.jdbc.Driver"
url="jdbc:mysql://localhost/juddi"/>
其中username和password改成根据自己mysql的设置做更改