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

Guild_Wars_2 Guild_Wars_2 墨衍会员 · AI 创作全网分发 墨衍智能分发 通过墨衍一键同步至各平台 可同步平台 CSDN微信公众号微博知乎掘金百家号博客园抖音小红书 你的文章也可以这样分发 墨衍会员 ¥399起/年,写一次发全网 我也要 + 加入社区
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到底在哪?完全没头绪,找不到!
...全文
评论 2
收藏 已收藏
分享
返回顶部