Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within Web Services
Search Coderanch
Advance search
Google search
Register / Login
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Jeanne Boyarsky
Ron McLeod
Paul Clapham
Liutauras Vilda
Sheriffs:
paul wheaton
Rob Spoor
Devaka Cooray
Saloon Keepers:
Stephan van Hulst
Tim Holloway
Carey Brown
Frits Walraven
Tim Moores
Bartenders:
Mikalai Zaikin
Forum:
Web Services
WS-Addressing with Axis2 Exception
Toni Black
Greenhorn
Posts: 11
posted 11 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Hi,
i try to enable ws-addressing for a service and get a strange exception. I use tomcat-7.0.27 and axis2-1.6.2. Does someone have an idea what it is?
package wsAddrPack; import javax.jws.WebMethod; import javax.jws.WebService; import javax.xml.ws.Action; import javax.xml.ws.FaultAction; import javax.xml.ws.soap.Addressing; @WebService @Addressing(enabled=true) public class WsAddr { @WebMethod(operationName="greet") @Action(input = "greetInput", output = "greetOutput", fault = { @FaultAction(className = WsAddrGreetFault.class, value = "greetFault") }) public String greet() { return "Hello"; } } class WsAddrGreetFault { }
15.05.2012 12:01:12 org.apache.catalina.core.StandardContext reload INFO: Reloading Context with name [/WsAddr] has started 15.05.2012 12:01:12 org.apache.catalina.loader.WebappClassLoader checkThreadLocalMapForLeaks SCHWERWIEGEND: The web application [/WsAddr] created a ThreadLocal with key of type [org.apache.axiom.util.UIDGenerator$1] (value [org.apache.axiom.util.UIDGenerator$1@7691c0]) and a value of type [long[]] (value [[J@5b02a6]) but failed to remove it when the web application was stopped. Threads are going to be renewed over time to try and avoid a probable memory leak. [WARN] Web application uses org.apache.axis2.transport.http.AxisAdminServlet; please update web.xml to use org.apache.axis2.webapp.AxisAdminServlet instead [INFO] Clustering has been disabled [INFO] Deploying module: addressing-1.6.2 - file:/E:/Programme/apache-tomcat-7.0.27/wtpwebapps/WsAddr/WEB-INF/modules/addressing-1.6.2.mar [INFO] Deploying module: mtompolicy-1.6.2 - file:/E:/Programme/apache-tomcat-7.0.27/wtpwebapps/WsAddr/WEB-INF/modules/mtompolicy-1.6.2.mar [INFO] Deploying module: ping-1.6.2 - file:/E:/Programme/apache-tomcat-7.0.27/wtpwebapps/WsAddr/WEB-INF/modules/ping-1.6.2.mar [INFO] Deploying module: script-1.6.2 - file:/E:/Programme/apache-tomcat-7.0.27/wtpwebapps/WsAddr/WEB-INF/modules/scripting-1.6.2.mar [INFO] Deploying module: soapmonitor-1.6.2 - file:/E:/Programme/apache-tomcat-7.0.27/wtpwebapps/WsAddr/WEB-INF/modules/soapmonitor-1.6.2.mar [INFO] Exception creating Axis Service : null java.lang.NoSuchMethodError: javax.xml.ws.soap.Addressing.responses()Ljavax/xml/ws/soap/AddressingFeature$Responses; at org.apache.axis2.jaxws.server.config.AddressingConfigurator.configure(AddressingConfigurator.java:150) at org.apache.axis2.jaxws.feature.ServerFramework.configure(ServerFramework.java:97) at org.apache.axis2.jaxws.description.impl.EndpointDescriptionImpl.configureWebServiceFeatures(EndpointDescriptionImpl.java:1770) at org.apache.axis2.jaxws.description.impl.EndpointDescriptionImpl.<init>(EndpointDescriptionImpl.java:601) at org.apache.axis2.jaxws.description.impl.ServiceDescriptionImpl.<init>(ServiceDescriptionImpl.java:401) at org.apache.axis2.jaxws.description.impl.ServiceDescriptionImpl.<init>(ServiceDescriptionImpl.java:297) at org.apache.axis2.jaxws.description.impl.DescriptionFactoryImpl.createServiceDescriptionFromDBCMap(DescriptionFactoryImpl.java:255) at org.apache.axis2.jaxws.description.impl.DescriptionFactoryImpl.createServiceDescriptionFromDBCMap(DescriptionFactoryImpl.java:327) at org.apache.axis2.jaxws.description.impl.DescriptionFactoryImpl.createServiceDescription(DescriptionFactoryImpl.java:216) at org.apache.axis2.jaxws.description.DescriptionFactory.createAxisService(DescriptionFactory.java:564) at org.apache.axis2.jaxws.framework.JAXWSDeployer.createAxisService(JAXWSDeployer.java:262) at org.apache.axis2.jaxws.framework.JAXWSDeployer.deployClasses(JAXWSDeployer.java:213) at org.apache.axis2.jaxws.framework.JAXWSDeployer.deployServicesInWARClassPath(JAXWSDeployer.java:107) at org.apache.axis2.jaxws.framework.JAXWSDeployer.init(JAXWSDeployer.java:79) at org.apache.axis2.deployment.DeploymentEngine.initializeDeployers(DeploymentEngine.java:1168) at org.apache.axis2.deployment.DeploymentEngine.setConfigContext(DeploymentEngine.java:1157) at org.apache.axis2.deployment.WarBasedAxisConfigurator.setConfigContext(WarBasedAxisConfigurator.java:349) at org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContext(ConfigurationContextFactory.java:89) at org.apache.axis2.transport.http.AxisServlet.initConfigContext(AxisServlet.java:584) at org.apache.axis2.transport.http.AxisServlet.init(AxisServlet.java:454) at org.apache.axis2.webapp.AxisAdminServlet.init(AxisAdminServlet.java:60) at org.apache.catalina.core.StandardWrapper.initServlet(StandardWrapper.java:1266) at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1185) at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1080) at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:5015) at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5302) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) at org.apache.catalina.core.StandardContext.reload(StandardContext.java:3908) at org.apache.catalina.loader.WebappLoader.backgroundProcess(WebappLoader.java:426) at org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.java:1350) at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1537) at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1547) at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1547) at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1526) at java.lang.Thread.run(Thread.java:662) [INFO] Deploying Web service: version.aar - file:/E:/Programme/apache-tomcat-7.0.27/wtpwebapps/WsAddr/WEB-INF/services/version.aar [WARN] No transportReceiver for org.apache.axis2.transport.http.AxisServletListener found. An instance for HTTP will be configured automatically. Please update your axis2.xml file! 15.05.2012 12:01:13 org.apache.catalina.core.StandardContext reload INFO: Reloading Context with name [/WsAddr] is completed
Don't get me started about those stupid
light bulbs
.
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
Error deploying Axis2 web service created by Maven
Unable to get Web Service running
Facing Problems Running My First WebService
Tomcat Duplicate Deploy
Error deploying Axis2 web service created by Maven
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
More...