Yeah, it looks as if maybe this is a weblogic thing. I am currently trying to implement this solution to see if it resolves the issue.
-----Original Message----- From: Daniel Kulp [mailto:[email protected]] Sent: Wednesday, May 06, 2009 10:51 AM To: [email protected] Cc: Anthony Smith Subject: Re: java.lang.NoSuchMethodError: exclude The code at that line is just: WebMethod wm = method.getAnnotation(WebMethod.class); if (wm != null) { if (wm.exclude()) { <-------------- HERE return Boolean.FALSE; } else { return Boolean.TRUE; } } Thus, the only way you would get that error is if you are picking up an invalid version of the WebMethod annotation that somehow is missing the "exclude" attribute. I would check the classpath and such for all instances of javax.jws.WebMethod and make sure it's not "ancient" or invalid. Dan On Wed May 6 2009 10:28:40 am Anthony Smith wrote: > I am trying to decipher the follwong StackTrace. Any ideas? > > > > Seems to die here: > > port=service.getAuthZMgmtSvcPort(); > > > > > > Here is the code snippet: > > > > String wsdlUrl = AAWWebConstants.SECURITY_SVC; > > logger.debug("AUTHZ_SVC wsdlUrl -->"+ wsdlUrl); > > logger.debug("empNbr --------->"+ empNbr); > > //SecurityMgmtSvc service = new SecurityMgmtSvc_Impl( > wsdlUrl );; > > //SecurityMgmtSvcPort port; > > AuthZMgmtSvc service = new AuthZMgmtSvc(new URL(wsdlUrl)); > > AuthZMgmtSvcPort port = null; > > String role=null; > > logger.debug("Did we get here?--------->" + > service.toString()); > > port=service.getAuthZMgmtSvcPort(); > > logger.debug("What about here?--------->"); > > > > > > > > 2009-05-06 09:18:44,766 com.fedex.aaw.components.webservice.AAWSecRole > getEmployeeAAWRole DEBUG - AUTHZ_SVC wsdlUrl > -->http://146.18.7.201/AuthZMgmtSvc?WSDL > > 2009-05-06 09:18:44,767 com.fedex.aaw.components.webservice.AAWSecRole > getEmployeeAAWRole DEBUG - empNbr --------->411161 > > 2009-05-06 09:20:17,868 com.fedex.aaw.components.webservice.AAWSecRole > getEmployeeAAWRole DEBUG - Did we get > here?--------->org.tempuri.authzmgmt...@12ed10f > > 2009-05-06 09:20:50,053 > com.fedex.aaw.components.filter.AAWHibernateSessionRequestFilter > doFilter ERROR - Exception occured::::::javax.servlet.ServletException: > EJB Exception: : java.lang.NoSuchMethodError: exclude > > at > org.apache.cxf.jaxws.support.JaxWsServiceConfiguration.isWebMethod(JaxWs > ServiceConfiguration.java:160) > > at > org.apache.cxf.jaxws.support.JaxWsServiceConfiguration.isOperation(JaxWs > ServiceConfiguration.java:181) > > at > org.apache.cxf.service.factory.ReflectionServiceFactoryBean.isValidMetho > d(ReflectionServiceFactoryBean.java:1735) > > at > org.apache.cxf.service.factory.ReflectionServiceFactoryBean.initializeWS > DLOperations(ReflectionServiceFactoryBean.java:561) > > at > org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean.initializeWSDLOpera > tions(JaxWsServiceFactoryBean.java:253) > > at > org.apache.cxf.service.factory.ReflectionServiceFactoryBean.buildService > FromWSDL(ReflectionServiceFactoryBean.java:333) > > at > org.apache.cxf.service.factory.ReflectionServiceFactoryBean.initializeSe > rviceModel(ReflectionServiceFactoryBean.java:437) > > at > org.apache.cxf.service.factory.ReflectionServiceFactoryBean.create(Refle > ctionServiceFactoryBean.java:195) > > at > org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean.create(JaxWsService > FactoryBean.java:164) > > at > org.apache.cxf.frontend.AbstractWSDLBasedEndpointFactory.createEndpoint( > AbstractWSDLBasedEndpointFactory.java:100) > > at > org.apache.cxf.frontend.ClientFactoryBean.create(ClientFactoryBean.java: > 52) > > at > org.apache.cxf.frontend.ClientProxyFactoryBean.create(ClientProxyFactory > Bean.java:102) > > at > org.apache.cxf.jaxws.JaxWsProxyFactoryBean.create(JaxWsProxyFactoryBean. > java:115) > > at > org.apache.cxf.jaxws.ServiceImpl.createPort(ServiceImpl.java:434) > > at > org.apache.cxf.jaxws.ServiceImpl.getPort(ServiceImpl.java:312) > > at > org.apache.cxf.jaxws.ServiceImpl.getPort(ServiceImpl.java:299) > > at javax.xml.ws.Service.getPort(Service.java:92) > > at > org.tempuri.AuthZMgmtSvc.getAuthZMgmtSvcPort(AuthZMgmtSvc.java:62) > > at > com.fedex.aaw.components.webservice.AAWSecRole.getEmployeeAAWRole(AAWSec > Role.java:56) > > at > com.fedex.aaw.components.login.handler.LoginHandler.perform(LoginHandler > .java:78) > > at > com.fedex.aaw.fwk.controller.ejb.CEventProcessor.processEvent(CEventProc > essor.java:119) > > at > com.fedex.aaw.fwk.controller.ejb.CEJBControllerBean.handleEvent(CEJBCont > rollerBean.java:66) > > at > com.fedex.aaw.fwk.controller.ejb.EjbController_zcqwkh_ELOImpl.handleEven > t(EjbController_zcqwkh_ELOImpl.java:62) > > at > com.fedex.aaw.fwk.controller.web.CEJBProxy.handleEvent(CEJBProxy.java:74 > ) > > at > com.fedex.aaw.fwk.controller.web.action.CBaseAction.execute(CBaseAction. > java:85) > > at > org.apache.struts.action.RequestProcessor.processActionPerform(RequestPr > ocessor.java:419) > > at > org.apache.struts.action.RequestProcessor.process(RequestProcessor.java: > 224) > > at > org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196) > > at > org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432) > > at javax.servlet.http.HttpServlet.service(HttpServlet.java:763) > > at javax.servlet.http.HttpServlet.service(HttpServlet.java:856) > > at > weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(St > ubSecurityHelper.java:223) > > > > at > org.apache.struts.action.RequestProcessor.processException(RequestProces > sor.java:523) > > at > org.apache.struts.action.RequestProcessor.processActionPerform(RequestPr > ocessor.java:421) > > at > org.apache.struts.action.RequestProcessor.process(RequestProcessor.java: > 224) > > at > org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196) > > at > org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432) > > at javax.servlet.http.HttpServlet.service(HttpServlet.java:763) > > at javax.servlet.http.HttpServlet.service(HttpServlet.java:856) > > at > weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(St > ubSecurityHelper.java:223) > > at > weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityH > elper.java:125) > > at > weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:2 > 83) > > at > weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26) > > at > weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java: > 42) > > at > com.fedex.aaw.components.filter.AAWHibernateSessionRequestFilter.doFilte > r(AAWHibernateSessionRequestFilter.java:67) > > at > weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java: > 42) > > at > com.fedex.aaw.components.filter.AAWSecurityFilter.doFilter(AAWSecurityFi > lter.java:142) > > at > weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java: > 42) > > at > weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.r > un(WebAppServletContext.java:3243) > > at > weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSu > bject.java:321) > > at > weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121 > ) > > at > weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServ > letContext.java:2003) > > at > weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletCont > ext.java:1909) > > at > weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java > > :1359) > > at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209) > > at weblogic.work.ExecuteThread.run(ExecuteThread.java:181) > > > > 2009-05-06 09:20:50,054 > com.fedex.aaw.components.filter.AAWSecurityFilter doFilter INFO - End > AAWSecurityFilter -- Daniel Kulp [email protected] http://www.dankulp.com/blog
