无法将AXIS2 Web服务与mysql DB连接。获得以下问题

无法将AXIS2 Web服务与mysql DB连接。获得以下问题,mysql,web-services,soapui,Mysql,Web Services,Soapui,当我从soapui工具触发soap请求时,我得到了这个消息 Using JAVA_HOME C:\Program Files (x86)\Java\jdk1.8.0 Using AXIS2_HOME C:\Shrikanth\WebServices_Training\axis2-1.6.2\bin\.. [INFO] [SimpleAxisServer] Starting [INFO] [SimpleAxisServer] Using the Axis2 RepositoryC:\Sh

当我从soapui工具触发soap请求时,我得到了这个消息

Using JAVA_HOME    C:\Program Files (x86)\Java\jdk1.8.0
Using AXIS2_HOME   C:\Shrikanth\WebServices_Training\axis2-1.6.2\bin\..
[INFO] [SimpleAxisServer] Starting
[INFO] [SimpleAxisServer] Using the Axis2 RepositoryC:\Shrikanth\WebServices_Tra
ining\axis2-1.6.2\bin\..\repository
[SimpleAxisServer] Using the Axis2 RepositoryC:\Shrikanth\WebServices_Training\a
xis2-1.6.2\bin\..\repository
[SimpleAxisServer] Using the Axis2 Configuration FileC:\Shrikanth\WebServices_Tr
aining\axis2-1.6.2\bin\..\conf\axis2.xml
[INFO] Clustering has been disabled
[INFO] Deploying module: addressing-1.6.2 - file:/C:/Shrikanth/WebServices_Train
ing/axis2-1.6.2/bin/../repository/modules/addressing-1.6.2.mar
[INFO] Deploying module: metadataExchange-1.6.2 - file:/C:/Shrikanth/WebServices
_Training/axis2-1.6.2/bin/../repository/modules/mex-1.6.2.mar
[INFO] Deploying module: mtompolicy-1.6.2 - file:/C:/Shrikanth/WebServices_Train
ing/axis2-1.6.2/bin/../repository/modules/mtompolicy-1.6.2.mar
[INFO] Deploying module: ping-1.6.2 - file:/C:/Shrikanth/WebServices_Training/ax
is2-1.6.2/bin/../repository/modules/ping-1.6.2.mar
[INFO] Deploying module: script-1.6.2 - file:/C:/Shrikanth/WebServices_Training/
axis2-1.6.2/bin/../repository/modules/scripting-1.6.2.mar
[INFO] Deploying module: soapmonitor-1.6.2 - file:/C:/Shrikanth/WebServices_Trai
ning/axis2-1.6.2/bin/../repository/modules/soapmonitor-1.6.2.mar
[INFO] Deploying Web service: EmployeePortal.aar - file:/C:/Shrikanth/WebService
s_Training/axis2-1.6.2/bin/../repository/services/EmployeePortal.aar
[INFO] Deploying Web service: version.aar - file:/C:/Shrikanth/WebServices_Train
ing/axis2-1.6.2/bin/../repository/services/version.aar
[INFO] Listening on port 8082
[INFO] [SimpleAxisServer] Started
[SimpleAxisServer] Started
org.apache.axis2.deployment.DeploymentClassLoader@1440df3
3306
com.sample.reservation.exception.StorageException: Can not get the data base con
neciton
        at com.sample.reservation.database.Storage.getConnection(Storage.java:21
2)
        at com.sample.reservation.database.Storage.getEmployeeDetails(Storage.ja
va:89)
        at com.sample.reservation.database.Storage.addEmployee(Storage.java:34)
        at com.sample.reservation.EmployeeManagementService.addEmployee(Employee
ManagementService.java:36)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:483)
        at org.apache.axis2.rpc.receivers.RPCUtil.invokeServiceClass(RPCUtil.jav
a:212)
        at org.apache.axis2.rpc.receivers.RPCMessageReceiver.invokeBusinessLogic
(RPCMessageReceiver.java:117)
        at org.apache.axis2.receivers.AbstractInOutMessageReceiver.invokeBusines
sLogic(AbstractInOutMessageReceiver.java:40)
        at org.apache.axis2.receivers.AbstractMessageReceiver.receive(AbstractMe
ssageReceiver.java:114)
        at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:181)
        at org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostReq
uest(HTTPTransportUtils.java:172)
        at org.apache.axis2.transport.http.HTTPWorker.service(HTTPWorker.java:30
7)
        at org.apache.axis2.transport.http.server.AxisHttpService.doService(Axis
HttpService.java:281)
        at org.apache.axis2.transport.http.server.AxisHttpService.handleRequest(
AxisHttpService.java:187)
        at org.apache.axis2.transport.http.server.HttpServiceProcessor.run(HttpS
erviceProcessor.java:82)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.
java:1142)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor
.java:617)
        at java.lang.Thread.run(Thread.java:744)
Caused by: java.sql.SQLException: Unknown initial character set index '255' rece
ived from server. Initial client character set can be forced via the 'characterE
ncoding' property.
        at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1056)
        at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:957)
        at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:927)
        at com.mysql.jdbc.ConnectionImpl.configureClientCharacterSet(ConnectionI
mpl.java:1681)
        at com.mysql.jdbc.ConnectionImpl.initializePropsFromServer(ConnectionImp
l.java:3422)
        at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2046)
        at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:729)
        at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

        at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstruct
orAccessorImpl.java:62)
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingC
onstructorAccessorImpl.java:45)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:408)
        at com.mysql.jdbc.Util.handleNewInstance(Util.java:406)
        at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:302)
        at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java
:283)
        at java.sql.DriverManager.getConnection(DriverManager.java:664)
        at java.sql.DriverManager.getConnection(DriverManager.java:247)
        at com.sample.reservation.database.Storage.getConnection(Storage.java:20
6)
        ... 20 more
使用JAVA\u HOME C:\Program Files(x86)\JAVA\jdk1.8.0
使用AXIS2\u HOME C:\Shrikanth\WebServices\u Training\AXIS2-1.6.2\bin\。。
[信息][SimpleAxisServer]正在启动
[INFO][SimpleAxisServer]使用Axis2存储库C:\Shrikanth\WebServices\u Tra
ining\axis2-1.6.2\bin\..\repository
[SimpleAxisServer]使用Axis2存储库C:\Shrikanth\WebServices\u Training\a
xis2-1.6.2\bin\..\repository
[SimpleAxisServer]使用Axis2配置文件c:\Shrikanth\WebServices\u Tr
aining\axis2-1.6.2\bin\..\conf\axis2.xml
[信息]已禁用群集
[信息]部署模块:寻址-1.6.2-文件:/C:/Shrikanth/WebServices\u列车
ing/axis2-1.6.2/bin/./repository/modules/addressing-1.6.2.mar
[信息]部署模块:metadataExchange-1.6.2-文件:/C:/Shrikanth/WebServices
_培训/axis2-1.6.2/bin//存储库/模块/mex-1.6.2.mar
[信息]部署模块:mtompolicy-1.6.2-文件:/C:/Shrikanth/WebServices\u Train
ing/axis2-1.6.2/bin/./repository/modules/mtompolicy-1.6.2.mar
[信息]部署模块:ping-1.6.2-文件:/C:/Shrikanth/WebServices\u Training/ax
is2-1.6.2/bin/。/repository/modules/ping-1.6.2.mar
[信息]部署模块:script-1.6.2-文件:/C:/Shrikanth/WebServices\u培训/
axis2-1.6.2/bin/./repository/modules/scripting-1.6.2.mar
[信息]部署模块:soapmonitor-1.6.2-文件:/C:/Shrikanth/WebServices\u-Trai
ning/axis2-1.6.2/bin/。/repository/modules/soapmonitor-1.6.2.mar
[信息]部署Web服务:EmployeePortal.aar-文件:/C:/Shrikanth/WebService
s_Training/axis2-1.6.2/bin//repository/services/EmployeePortal.aar
[信息]部署Web服务:version.aar-file:/C:/Shrikanth/WebServices\u Train
ing/axis2-1.6.2/bin/./repository/services/version.aar
[信息]正在侦听端口8082
[INFO][SimpleAxisServer]已启动
[SimpleAxisServer]已启动
org.apache.axis2.deployment。DeploymentClassLoader@1440df3
3306
com.sample.reservation.exception.StorageException:无法获取数据库con
内西顿
位于com.sample.reservation.database.Storage.getConnection(Storage.java:21
2)
在com.sample.reservation.database.Storage.getEmployeeDetails(Storage.ja)上
弗吉尼亚州:89)
位于com.sample.reservation.database.Storage.addEmployee(Storage.java:34)
在com.sample.reservation.EmployeeManagementService.addEmployee(雇员
ManagementService.java:36)
在sun.reflect.NativeMethodAccessorImpl.invoke0(本机方法)处
在sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl。
爪哇:62)
在sun.reflect.DelegatingMethodAccessorImpl.invoke(delegatingmethodaccess
sorImpl.java:43)
位于java.lang.reflect.Method.invoke(Method.java:483)
位于org.apache.axis2.rpc.receivers.RPCUtil.invokeServiceClass(RPCUtil.jav
a:212)
位于org.apache.axis2.rpc.receivers.RPCMessageReceiver.invokeBusinessLogic
(RPCMessageReceiver.java:117)
位于org.apache.axis2.receivers.AbstractInOutMessageReceiver.invokeBusines
sLogic(AbstractInOutMessageReceiver.java:40)
位于org.apache.axis2.receivers.AbstractMessageReceiver.receive(AbstractMe
ssageReceiver.java:114)
在org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:181)上
位于org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostReq
uest(HTTPTransportUtils.java:172)
位于org.apache.axis2.transport.http.HTTPWorker.service(HTTPWorker.java:30
7)
位于org.apache.axis2.transport.http.server.AxisHttpService.doService(Axis
HttpService.java:281)
位于org.apache.axis2.transport.http.server.AxisHttpService.handleRequest(
AxisHttpService.java:187)
位于org.apache.axis2.transport.http.server.HttpServiceProcessor.run(HttpS
erviceProcessor.java:82)
位于java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor。
爪哇:1142)
位于java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor
.java:617)
运行(Thread.java:744)
原因:java.sql.SQLException:未知的初始字符集索引“255”rece
从服务器上下载。初始客户端字符集可以通过“characterE”强制
“编码”属性。
位于com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1056)
位于com.mysql.jdbc.SQLError.createSQLException(SQLError.java:957)
位于com.mysql.jdbc.SQLError.createSQLException(SQLError.java:927)
在com.mysql.jdbc.ConnectionImpl.configureClientCharacterSet(ConnectionI)上
mpl.java:1681)
位于com.mysql.jdbc.ConnectionImpl.initializePropsFromServer(ConnectionImp
l、 爪哇:3422)
位于com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2046)
位于com.mysql.jdbc.ConnectionImpl(ConnectionImpl.java:729)
JDBC4Connection.(JDBC4Connection.java:46)
位于sun.reflect.NativeConstructorAccessorImpl.newInstance0(本机方法)
在sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstruct
orAccessorImpl.java:62)
在sun.reflect.delegatingConstructor或AccessorImpl.newInstance(DelegatingC
onstructorAccessorImpl.java:45)
位于java.lang.reflect.Constructor.newInstance(Constructor.java:408)
位于com.mysql.jdbc.Util.HandleneInstance(Util.java:406)
位于com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:302)
位于com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java
:283)
位于java.sql.DriverManager.getConnection(DriverManager.java:664)
位于java.sql.DriverManager.getConnection(DriverManager.java:247)
位于com.sample.reservation.database.Storage.getConnection(Storage.java:20
6)
... 20多

您能用web服务实现的代码更新您的问题吗?看看这个