Weblogic启动CXF项目的小问题,求指导!!!

Guild_Wars_2 2014-12-02 10:24:45
Weblogic启动项目报错如下:

Caused By: com.sun.xml.bind.v2.runtime.IllegalAnnotationsException: 2 counts of IllegalAnnotationExceptions
Class has two properties of the same name "arg0"
this problem is related to the following location:
at public java.lang.String com.XXX.service.jaxws_asm.LoginCheck.getArg0()
at com.XXX.service.jaxws_asm.LoginCheck
this problem is related to the following lacation:
at private java.lang.String com.XXX.service.jaxws_asm.LoginCheck.arg0
at com.XXX.service.jaxws_asm.LoginCheck
Class has two properties of the same name "arg1"
this problem is related to the following location:
at public java.lang.String com.XXX.service.jaxws_asm.LoginCheck.getArg1()
at com.XXX.service.jaxws_asm.LoginCheck
this problem is related to the following lacation:
at private java.lang.String com.XXX.service.jaxws_asm.LoginCheck.arg1
at com.XXX.service.jaxws_asm.LoginCheck

报错中方法代码如下:

openLDAPConnection();
String[] baseDNs = LDAPConnectionServlet.baseDN;
if (baseDNs != null && baseDNs.length > 0) {
String requestDN = null;
SearchRequest searchRequest = null;
List<SearchResultEntry> list = null;
for (String baseDN : baseDNs) {
requestDN = LDAPConnectionServlet.loginNameRDN + userName + ","
+ baseDN;
try {
searchRequest = new SearchRequest(requestDN,
SearchScope.SUB, "(" + LDAPConnectionServlet.filter
+ ")");
searchRequest.addControl(new SubentriesRequestControl());
SearchResult searchResult = conn.search(searchRequest);
list = searchResult.getSearchEntries();
if (list != null && list.size() == 1) {
closeLDAPConnection();
return password.equals(list.get(0).getAttributeValue("userPassword"));
}
} catch (LDAPException e) {
closeLDAPConnection();
}
}
}
closeLDAPConnection();
return false;

代码就这么多了,问题是报错里所提的arg0和arg1到底在哪?完全没头绪,找不到!
...全文
106 2 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
业余草 2014-12-02
  • 打赏
  • 举报
回复
Weblogic 好久都没有用了,顶你,祝你好运!!!!!
Guild_Wars_2 2014-12-02
  • 打赏
  • 举报
回复
格式复制了没修改,请无视代码格式规范问题,寻求大神帮忙解决!!谢谢

5,657

社区成员

发帖
与我相关
我的任务
社区描述
Web开发应用服务器相关讨论专区
社区管理员
  • 应用服务器社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧