首页 > 代码库 > Netbeans 中部署运行Webservice出错
Netbeans 中部署运行Webservice出错
错误如下
at java.lang.StackTraceElement
at public java.lang.StackTraceElement[] java.lang.Throwable.getStackTrace()
at java.lang.Throwable
at java.lang.Exception
at java.sql.SQLException
at private java.sql.SQLException wsdb.jaxws.SQLExceptionBean.nextException
at wsdb.jaxws.SQLExceptionBean
原因
Web Method 一般不抛出异常,如果要抛出异常,必须自己定义异常的处理方式
去掉抛出异常,
加上try catch
问题解决!
Also see:
http://stackoverflow.com/questions/7232331/unable-to-create-jaxbcontext-creating-my-wsdl/24482215#24482215
声明:以上内容来自用户投稿及互联网公开渠道收集整理发布,本网站不拥有所有权,未作人工编辑处理,也不承担相关法律责任,若内容有误或涉及侵权可进行投诉: 投诉/举报 工作人员会在5个工作日内联系你,一经查实,本站将立刻删除涉嫌侵权内容。