使用Axis2创建WebService用编写项目的Eclipse可以调用用其他的比如SoapUI调用就提示出错 10
[ERROR]org/apache/ibatis/io/Resourcesjava.lang.NoClassDefFoundError:org/apache/ibatis...
[ERROR] org/apache/ibatis/io/Resources
java.lang.NoClassDefFoundError: org/apache/ibatis/io/Resources
at com.dm.dao.LoginDao.<clinit>(LoginDao.java:21)
at com.dm.service.LoginService.<init>(LoginService.java:13)
at com.dm.test.Mytest.<init>(Mytest.java:12)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at java.lang.Class.newInstance(Unknown Source)
at org.apache.axis2.util.Utils$8.run(Utils.java:768)
at org.apache.axis2.java.security.AccessController.doPrivileged(AccessController.java:132)
private static SqlSessionFactory factory = null;
private static Reader reader;
static {
try {
reader = Resources.getResourceAsReader("mybatis.xml");
factory = new SqlSessionFactoryBuilder().build(reader);
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
} 展开
java.lang.NoClassDefFoundError: org/apache/ibatis/io/Resources
at com.dm.dao.LoginDao.<clinit>(LoginDao.java:21)
at com.dm.service.LoginService.<init>(LoginService.java:13)
at com.dm.test.Mytest.<init>(Mytest.java:12)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at java.lang.Class.newInstance(Unknown Source)
at org.apache.axis2.util.Utils$8.run(Utils.java:768)
at org.apache.axis2.java.security.AccessController.doPrivileged(AccessController.java:132)
private static SqlSessionFactory factory = null;
private static Reader reader;
static {
try {
reader = Resources.getResourceAsReader("mybatis.xml");
factory = new SqlSessionFactoryBuilder().build(reader);
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
} 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询