aspose file tools*
The moose likes Web Services and the fly likes Help regarding Security Header Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Web Services
Bookmark "Help regarding Security Header" Watch "Help regarding Security Header" New topic
Author

Help regarding Security Header

somia razzaq
Ranch Hand

Joined: Jan 26, 2010
Posts: 44
Hi All
I am using Metro. I am getting error of no security header found. The fault soap message is given below . Please help me if i am missing some configurations.
[b]
====[com.sun.xml.ws.assembler.server:response]====
<?xml version="1.0" ?>
<S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/">
<S:Body>
<S:Fault xmlns:ns3="http://www.w3.org/2003/05/soap-envelope" xmlns="">
<faultcode>S:Server</faultcode>
<faultstring>Cannot validate request </faultstring>
<detail>
<ns2:exception xmlns:ns2="http://jax-ws.dev.java.net/" class="javax.xml.ws.WebServiceException" note="To disable this feature, set com.sun.xml.ws.fault.SOAPFaultBuilder.disableCaptureStackTrace system property to false">
<message>Cannot validate request </message>
<ns2:stackTrace>
<ns2:frame class="com.sun.enterprise.webservice.CommonServerSecurityPipe" file="CommonServerSecurityPipe.java" line="175" method="processRequest"></ns2:frame>
<ns2:frame class="com.sun.enterprise.webservice.CommonServerSecurityPipe" file="CommonServerSecurityPipe.java" line="129" method="process"></ns2:frame>
<ns2:frame class="com.sun.xml.ws.api.pipe.helper.PipeAdapter" file="PipeAdapter.java" line="115" method="processRequest"></ns2:frame>
<ns2:frame class="com.sun.xml.ws.api.pipe.Fiber" file="Fiber.java" line="595" method="__doRun"></ns2:frame>
<ns2:frame class="com.sun.xml.ws.api.pipe.Fiber" file="Fiber.java" line="554" method="_doRun"></ns2:frame>
<ns2:frame class="com.sun.xml.ws.api.pipe.Fiber" file="Fiber.java" line="539" method="doRun"></ns2:frame>
<ns2:frame class="com.sun.xml.ws.api.pipe.Fiber" file="Fiber.java" line="436" method="runSync"></ns2:frame>
<ns2:frame class="com.sun.xml.ws.server.WSEndpointImpl$2" file="WSEndpointImpl.java" line="243" method="process"></ns2:frame>
<ns2:frame class="com.sun.xml.ws.transport.http.HttpAdapter$HttpToolkit" file="HttpAdapter.java" line="444" method="handle"></ns2:frame>
<ns2:frame class="com.sun.xml.ws.transport.http.HttpAdapter" file="HttpAdapter.java" line="244" method="handle"></ns2:frame>
<ns2:frame class="com.sun.xml.ws.transport.http.servlet.ServletAdapter" file="ServletAdapter.java" line="135" method="handle"></ns2:frame>
<ns2:frame class="com.sun.enterprise.webservice.JAXWSServlet" file="JAXWSServlet.java" line="159" method="doPost"></ns2:frame>
<ns2:frame class="javax.servlet.http.HttpServlet" file="HttpServlet.java" line="738" method="service"></ns2:frame>
<ns2:frame class="javax.servlet.http.HttpServlet" file="HttpServlet.java" line="831" method="service"></ns2:frame>
<ns2:frame class="org.apache.catalina.core.ApplicationFilterChain" file="ApplicationFilterChain.java" line="411" method="servletService"></ns2:frame>
<ns2:frame class="org.apache.catalina.core.ApplicationFilterChain" file="ApplicationFilterChain.java" line="317" method="internalDoFilter"></ns2:frame>
<ns2:frame class="org.apache.catalina.core.ApplicationFilterChain" file="ApplicationFilterChain.java" line="198" method="doFilter"></ns2:frame>
<ns2:frame class="org.netbeans.modules.web.monitor.server.MonitorFilter" file="MonitorFilter.java" line="390" method="doFilter"></ns2:frame>
<ns2:frame class="org.apache.catalina.core.ApplicationFilterChain" file="ApplicationFilterChain.java" line="230" method="internalDoFilter"></ns2:frame>
<ns2:frame class="org.apache.catalina.core.ApplicationFilterChain" file="ApplicationFilterChain.java" line="198" method="doFilter"></ns2:frame>
<ns2:frame class="org.apache.catalina.core.StandardWrapperValve" file="StandardWrapperValve.java" line="288" method="invoke"></ns2:frame>
<ns2:frame class="org.apache.catalina.core.StandardContextValve" file="StandardContextValve.java" line="271" method="invokeInternal"></ns2:frame>
<ns2:frame class="org.apache.catalina.core.StandardContextValve" file="StandardContextValve.java" line="202" method="invoke"></ns2:frame>
<ns2:frame class="org.apache.catalina.core.StandardPipeline" file="StandardPipeline.java" line="632" method="doInvoke"></ns2:frame>
<ns2:frame class="org.apache.catalina.core.StandardPipeline" file="StandardPipeline.java" line="577" method="doInvoke"></ns2:frame>
<ns2:frame class="com.sun.enterprise.web.WebPipeline" file="WebPipeline.java" line="94" method="invoke"></ns2:frame>
<ns2:frame class="org.apache.catalina.core.StandardHostValve" file="StandardHostValve.java" line="206" method="invoke"></ns2:frame>
<ns2:frame class="org.apache.catalina.core.StandardPipeline" file="StandardPipeline.java" line="632" method="doInvoke"></ns2:frame>
<ns2:frame class="org.apache.catalina.core.StandardPipeline" file="StandardPipeline.java" line="577" method="doInvoke"></ns2:frame>
<ns2:frame class="org.apache.catalina.core.StandardPipeline" file="StandardPipeline.java" line="571" method="invoke"></ns2:frame>
<ns2:frame class="org.apache.catalina.core.ContainerBase" file="ContainerBase.java" line="1080" method="invoke"></ns2:frame>
<ns2:frame class="org.apache.catalina.core.StandardEngineValve" file="StandardEngineValve.java" line="150" method="invoke"></ns2:frame>
<ns2:frame class="org.apache.catalina.core.StandardPipeline" file="StandardPipeline.java" line="632" method="doInvoke"></ns2:frame>
<ns2:frame class="org.apache.catalina.core.StandardPipeline" file="StandardPipeline.java" line="577" method="doInvoke"></ns2:frame>
<ns2:frame class="org.apache.catalina.core.StandardPipeline" file="StandardPipeline.java" line="571" method="invoke"></ns2:frame>
<ns2:frame class="org.apache.catalina.core.ContainerBase" file="ContainerBase.java" line="1080" method="invoke"></ns2:frame>
<ns2:frame class="org.apache.coyote.tomcat5.CoyoteAdapter" file="CoyoteAdapter.java" line="272" method="service"></ns2:frame>
<ns2:frame class="com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask" file="DefaultProcessorTask.java" line="637" method="invokeAdapter"></ns2:frame>
<ns2:frame class="com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask" file="DefaultProcessorTask.java" line="568" method="doProcess"></ns2:frame>
<ns2:frame class="com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask" file="DefaultProcessorTask.java" line="813" method="process"></ns2:frame>
<ns2:frame class="com.sun.enterprise.web.connector.grizzly.DefaultReadTask" file="DefaultReadTask.java" line="341" method="executeProcessorTask"></ns2:frame>
<ns2:frame class="com.sun.enterprise.web.connector.grizzly.DefaultReadTask" file="DefaultReadTask.java" line="263" method="doTask"></ns2:frame>
<ns2:frame class="com.sun.enterprise.web.connector.grizzly.DefaultReadTask" file="DefaultReadTask.java" line="214" method="doTask"></ns2:frame>
<ns2:frame class="com.sun.enterprise.web.portunif.PortUnificationPipeline$PUTask" file="PortUnificationPipeline.java" line="380" method="doTask"></ns2:frame>
<ns2:frame class="com.sun.enterprise.web.connector.grizzly.TaskBase" file="TaskBase.java" line="265" method="run"></ns2:frame>
<ns2:frame class="com.sun.enterprise.web.connector.grizzly.ssl.SSLWorkerThread" file="SSLWorkerThread.java" line="106" method="run"></ns2:frame>
</ns2:stackTrace>
<ns2:cause class="com.sun.enterprise.security.jauth.AuthException" note="To disable this feature, set com.sun.xml.ws.fault.SOAPFaultBuilder.disableCaptureStackTrace system property to false">
<message>Message does not conform to configured policy [ TimestampPolicy(S) SignaturePolicy(P) ]: No Security Header found</message>
<ns2:stackTrace>
<ns2:frame class="com.sun.xml.wss.provider.ServerSecurityAuthModule" file="ServerSecurityAuthModule.java" line="110" method="validateRequest"></ns2:frame>
<ns2:frame class="com.sun.enterprise.security.jmac.config.GFServerConfigProvider$GFServerAuthContext" file="GFServerConfigProvider.java" line="1179" method="validateRequest"></ns2:frame>
<ns2:frame class="com.sun.ent
erprise.webservice.CommonServerSecurityPipe" file="CommonServerSecurityPipe.java" line="168" method="processRequest"></ns2:frame>
<ns2:frame class="com.sun.enterprise.webservice.CommonServerSecurityPipe" file="CommonServerSecurityPipe.java" line="129" method="process"></ns2:frame>
<ns2:frame class="com.sun.xml.ws.api.pipe.helper.PipeAdapter" file="PipeAdapter.java" line="115" method="processRequest"></ns2:frame>
<ns2:frame class="com.sun.xml.ws.api.pipe.Fiber" file="Fiber.java" line="595" method="__doRun"></ns2:frame>
<ns2:frame class="com.sun.xml.ws.api.pipe.Fiber" file="Fiber.java" line="554" method="_doRun"></ns2:frame>
<ns2:frame class="com.sun.xml.ws.api.pipe.Fiber" file="Fiber.java" line="539" method="doRun"></ns2:frame>
<ns2:frame class="com.sun.xml.ws.api.pipe.Fiber" file="Fiber.java" line="436" method="runSync"></ns2:frame>
<ns2:frame class="com.sun.xml.ws.server.WSEndpointImpl$2" file="WSEndpointImpl.java" line="243" method="process"></ns2:frame>
<ns2:frame class="com.sun.xml.ws.transport.http.HttpAdapter$HttpToolkit" file="HttpAdapter.java" line="444" method="handle"></ns2:frame>
<ns2:frame class="com.sun.xml.ws.transport.http.HttpAdapter" file="HttpAdapter.java" line="244" method="handle"></ns2:frame>
<ns2:frame class="com.sun.xml.ws.transport.http.servlet.ServletAdapter" file="ServletAdapter.java" line="135" method="handle"></ns2:frame>
<ns2:frame class="com.sun.enterprise.webservice.JAXWSServlet" file="JAXWSServlet.java" line="159" method="doPost"></ns2:frame>
<ns2:frame class="javax.servlet.http.HttpServlet" file="HttpServlet.java" line="738" method="service"></ns2:frame>
<ns2:frame class="javax.servlet.http.HttpServlet" file="HttpServlet.java" line="831" method="service"></ns2:frame>
<ns2:frame class="org.apache.catalina.core.ApplicationFilterChain" file="ApplicationFilterChain.java" line="411" method="servletService"></ns2:frame>
<ns2:frame class="org.apache.catalina.core.ApplicationFilterChain" file="ApplicationFilterChain.java" line="317" method="internalDoFilter"></ns2:frame>
<ns2:frame class="org.apache.catalina.core.ApplicationFilterChain" file="ApplicationFilterChain.java" line="198" method="doFilter"></ns2:frame>
<ns2:frame class="org.netbeans.modules.web.monitor.server.MonitorFilter" file="MonitorFilter.java" line="390" method="doFilter"></ns2:frame>
<ns2:frame class="org.apache.catalina.core.ApplicationFilterChain" file="ApplicationFilterChain.java" line="230" method="internalDoFilter"></ns2:frame>
<ns2:frame class="org.apache.catalina.core.ApplicationFilterChain" file="ApplicationFilterChain.java" line="198" method="doFilter"></ns2:frame>
<ns2:frame class="org.apache.catalina.core.StandardWrapperValve" file="StandardWrapperValve.java" line="288" method="invoke"></ns2:frame>
<ns2:frame class="org.apache.catalina.core.StandardContextValve" file="StandardContextValve.java" line="271" method="invokeInternal"></ns2:frame>
<ns2:frame class="org.apache.catalina.core.StandardContextValve" file="StandardContextValve.java" line="202" method="invoke"></ns2:frame>
<ns2:frame class="org.apache.catalina.core.StandardPipeline" file="StandardPipeline.java" line="632" method="doInvoke"></ns2:frame>
<ns2:frame class="org.apache.catalina.core.StandardPipeline" file="StandardPipeline.java" line="577" method="doInvoke"></ns2:frame>
<ns2:frame class="com.sun.enterprise.web.WebPipeline" file="WebPipeline.java" line="94" method="invoke"></ns2:frame>
<ns2:frame class="org.apache.catalina.core.StandardHostValve" file="StandardHostValve.java" line="206" method="invoke"></ns2:frame>
<ns2:frame class="org.apache.catalina.core.StandardPipeline" file="StandardPipeline.java" line="632" method="doInvoke"></ns2:frame>
<ns2:frame class="org.apache.catalina.core.StandardPipeline" file="StandardPipeline.java" line="577" method="doInvoke"></ns2:frame>
<ns2:frame class="org.apache.catalina.core.StandardPipeline" file="StandardPipeline.java" line="571" method="invoke"></ns2:frame>
<ns2:frame class="org.apache.catalina.core.ContainerBase" file="ContainerBase.java" line="1080" method="invoke"></ns2:frame>
<ns2:frame class="org.apache.catalina.core.StandardEngineValve" file="StandardEngineValve.java" line="150" method="invoke"></ns2:frame>
<ns2:frame class="org.apache.catalina.core.StandardPipeline" file="StandardPipeline.java" line="632" method="doInvoke"></ns2:frame>
<ns2:frame class="org.apache.catalina.core.StandardPipeline" file="StandardPipeline.java" line="577" method="doInvoke"></ns2:frame>
<ns2:frame class="org.apache.catalina.core.StandardPipeline" file="StandardPipeline.java" line="571" method="invoke"></ns2:frame>
<ns2:frame class="org.apache.catalina.core.ContainerBase" file="ContainerBase.java" line="1080" method="invoke"></ns2:frame>
<ns2:frame class="org.apache.coyote.tomcat5.CoyoteAdapter" file="CoyoteAdapter.java" line="272" method="service"></ns2:frame>
<ns2:frame class="com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask" file="DefaultProcessorTask.java" line="637" method="invokeAdapter"></ns2:frame>
<ns2:frame class="com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask" file="DefaultProcessorTask.java" line="568" method="doProcess"></ns2:frame>
<ns2:frame class="com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask" file="DefaultProcessorTask.java" line="813" method="process"></ns2:frame>
<ns2:frame class="com.sun.enterprise.web.connector.grizzly.DefaultReadTask" file="DefaultReadTask.java" line="341" method="executeProcessorTask"></ns2:frame>
<ns2:frame class="com.sun.enterprise.web.connector.grizzly.DefaultReadTask" file="DefaultReadTask.java" line="263" method="doTask"></ns2:frame>
<ns2:frame class="com.sun.enterprise.web.connector.grizzly.DefaultReadTask" file="DefaultReadTask.java" line="214" method="doTask"></ns2:frame>
<ns2:frame class="com.sun.enterprise.web.portunif.PortUnificationPipeline$PUTask" file="PortUnificationPipeline.java" line="380" method="doTask"></ns2:frame>
<ns2:frame class="com.sun.enterprise.web.connector.grizzly.TaskBase" file="TaskBase.java" line="265" method="run"></ns2:frame>
<ns2:frame class="com.sun.enterprise.web.connector.grizzly.ssl.SSLWorkerThread" file="SSLWorkerThread.java" line="106" method="run"></ns2:frame>
</ns2:stackTrace>
</ns2:cause>
</ns2:exception>
</detail>
</S:Fault>
</S:Body>
</S:Envelope>

Thanks
Ivan Krizsan
Ranch Hand

Joined: Oct 04, 2006
Posts: 2198
    
    1
Hi!
If the server cannot validate a request, then perhaps the problem is on the client side?
Have you tried to use, for instance, soapUI or some other way to send a request to the service?
Is there any case in which the request is processed as expected?
If so, then I would suggest taking a look at the request sent by the current client and the request that is processed without errors using a packet sniffer.
Note that, in order for a client to be able to understand WS-Policy in a WSDL and send requests conforming to the policies, you may need the following Metro libraries:
• webservices-api.jar
• webservices-extra-api.jar
• webservices-extra.jar
• webservices-rt.jar
• webservices-tools.jar
Just including the libraries on the client side is sufficient.
Best wishes!
somia razzaq
Ranch Hand

Joined: Jan 26, 2010
Posts: 44
Ivan Krizsan wrote:Hi!
If the server cannot validate a request, then perhaps the problem is on the client side?
Have you tried to use, for instance, soapUI or some other way to send a request to the service?
Is there any case in which the request is processed as expected?
If so, then I would suggest taking a look at the request sent by the current client and the request that is processed without errors using a packet sniffer.
Note that, in order for a client to be able to understand WS-Policy in a WSDL and send requests conforming to the policies, you may need the following Metro libraries:
• webservices-api.jar
• webservices-extra-api.jar
• webservices-extra.jar
• webservices-rt.jar
• webservices-tools.jar
Just including the libraries on the client side is sufficient.
Best wishes!


Hi
First of all thanks for reply. I have included the metro libraries on client side but again i am getting the error message as

At Server


java.lang.UnsupportedClassVersionError: UnsupportedClassVersionError: Class com.sun.ejb.containers.TimerBean_2100919770_ConcreteImpl has unsupported major or minor version numbers, which are greater than those found in the Java Runtime Environment version 1.5.0_22
at com.sun.enterprise.loader.EJBClassLoader.findClass(EJBClassLoader.java:690)
at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
at com.sun.ejb.containers.BaseContainer.<init>(BaseContainer.java:423)
at com.sun.ejb.containers.EntityContainer.<init>(EntityContainer.java:246)
at com.sun.ejb.containers.TimerBeanContainer.<init>(TimerBeanContainer.java:72)
at com.sun.ejb.containers.ContainerFactoryImpl.createContainer(ContainerFactoryImpl.java:550)
at com.sun.enterprise.server.AbstractLoader.loadEjbs(AbstractLoader.java:536)
at com.sun.enterprise.server.ApplicationLoader.doLoad(ApplicationLoader.java:188)
at com.sun.enterprise.server.TomcatApplicationLoader.doLoad(TomcatApplicationLoader.java:126)
at com.sun.enterprise.server.AbstractLoader.load(AbstractLoader.java:244)
at com.sun.enterprise.server.AbstractManager.loadOneSystemApp(AbstractManager.java:393)
at com.sun.enterprise.server.ondemand.SystemAppLoader.loadSystemApps(SystemAppLoader.java:124)
at com.sun.enterprise.server.ondemand.EjbServiceGroup.loadSystemApps(EjbServiceGroup.java:183)
at com.sun.enterprise.server.ondemand.EjbServiceGroup.start(EjbServiceGroup.java:141)
at com.sun.enterprise.server.ondemand.ServiceGroup$1.run(ServiceGroup.java:193)
at java.security.AccessController.doPrivileged(Native Method)
at com.sun.enterprise.server.ondemand.ServiceGroup.startChildren(ServiceGroup.java:190)
at com.sun.enterprise.server.ondemand.MainServiceGroup.start(MainServiceGroup.java:58)
at com.sun.enterprise.server.ondemand.ServerEntryListenerImpl.notifyEntry(ServerEntryListenerImpl.java:85)
at com.sun.enterprise.server.ondemand.entry.ServerEntryHelper.sendEvent(ServerEntryHelper.java:75)
at com.sun.enterprise.server.ondemand.entry.ServerEntryHelper.generateJndiEntryContext(ServerEntryHelper.java:52)
at com.sun.enterprise.naming.SerialContext.generateEntryContext(SerialContext.java:339)
at com.sun.enterprise.naming.SerialContext.lookup(SerialContext.java:365)
at javax.naming.InitialContext.lookup(InitialContext.java:351)
at com.sun.xml.ws.tx.common.TransactionManagerImpl.jndiLookup(TransactionManagerImpl.java:87)
at com.sun.xml.ws.tx.common.TransactionManagerImpl.<init>(TransactionManagerImpl.java:105)
at com.sun.xml.ws.tx.common.TransactionManagerImpl.<clinit>(TransactionManagerImpl.java:62)
at com.sun.xml.ws.tx.common.Util.isJTAAvailable(Util.java:71)
at com.sun.xml.ws.assembler.PipelineAssemblerFactoryImpl$WsitPipelineAssembler.isTransactionsEnabled(PipelineAssemblerFactoryImpl.java:445)
at com.sun.xml.ws.assembler.PipelineAssemblerFactoryImpl$WsitPipelineAssembler.createServer(PipelineAssemblerFactoryImpl.java:296)
at com.sun.xml.ws.api.pipe.TubelineAssemblerFactory$TubelineAssemblerAdapter.createServer(TubelineAssemblerFactory.java:140)
at com.sun.xml.ws.server.WSEndpointImpl.<init>(WSEndpointImpl.java:152)
at com.sun.xml.ws.server.EndpointFactory.createEndpoint(EndpointFactory.java:217)
at com.sun.xml.ws.api.server.WSEndpoint.create(WSEndpoint.java:467)
at com.sun.xml.ws.api.server.WSEndpoint.create(WSEndpoint.java:510)
at com.sun.enterprise.webservice.JAXWSServlet.registerEndpoint(JAXWSServlet.java:398)
at com.sun.enterprise.webservice.JAXWSServlet.doInit(JAXWSServlet.java:252)
at com.sun.enterprise.webservice.JAXWSServlet.init(JAXWSServlet.java:113)
at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1178)
at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:832)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:197)
at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:271)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:202)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:632)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:577)
at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:94)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:206)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:632)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:577)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:571)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1080)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:150)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:632)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:577)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:571)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1080)
at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:272)
at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.invokeAdapter(DefaultProcessorTask.java:637)
at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.doProcess(DefaultProcessorTask.java:568)
at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.process(DefaultProcessorTask.java:813)
at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.executeProcessorTask(DefaultReadTask.java:341)
at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:263)
at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:214)
at com.sun.enterprise.web.portunif.PortUnificationPipeline$PUTask.doTask(PortUnificationPipeline.java:380)
at com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:265)
at com.sun.enterprise.web.connector.grizzly.ssl.SSLWorkerThread.run(SSLWorkerThread.java:106)



At Client

Exception in thread "main" java.lang.NoSuchMethodError: com.sun.xml.ws.api.pipe.ClientTubeAssemblerContext.getPortInfo()Lcom/sun/xml/ws/api/client/WSPortInfo;
at com.sun.xml.ws.assembler.ClientTubelineAssemblyContext.<init>(ClientTubelineAssemblyContext.java:74)
at com.sun.xml.ws.assembler.TubelineAssemblerFactoryImpl$MetroTubelineAssembler.createClient(TubelineAssemblerFactoryImpl.java:103)
at com.sun.xml.ws.client.WSServiceDelegate.createPipeline(WSServiceDelegate.java:411)
at com.sun.xml.ws.client.WSServiceDelegate.createEndpointIFBaseProxy(WSServiceDelegate.java:572)
at com.sun.xml.ws.client.WSServiceDelegate.getPort(WSServiceDelegate.java:320)
at com.sun.xml.ws.client.WSServiceDelegate.getPort(WSServiceDelegate.java:302)
at com.sun.xml.ws.client.WSServiceDelegate.getPort(WSServiceDelegate.java:295)
at javax.xml.ws.Service.getPort(Service.java:92)
at pqr.TimewsService.getTimewsPort(TimewsService.java:58)
at time_client.Main.main(Main.java:29)


Ivan Krizsan
Ranch Hand

Joined: Oct 04, 2006
Posts: 2198
    
    1
Hi!
The UnsupportedClassVersionError exception is caused by some code (see exception) being compiled by a newer version of the Java compiler while the version of the runtime is older.
Make sure that all parts of your project are compiled with the same version as the JDK you are using.
Best wishes!
somia razzaq
Ranch Hand

Joined: Jan 26, 2010
Posts: 44
Ivan Krizsan wrote:Hi!
The UnsupportedClassVersionError exception is caused by some code (see exception) being compiled by a newer version of the Java compiler while the version of the runtime is older.
Make sure that all parts of your project are compiled with the same version as the JDK you are using.
Best wishes!


Hi
I am using metro 1.4.jar at service side and included metro 2.0 libraries as you asked at client side. I am using netbeans 6.1, glassfish v2 and JDK 1.6. But still i am getting the "nomethodmatch" exception. After this, I have tried to add metro 2.0 libraries at server side also instead of using metro 1.4.jar. But now i am getting the following error while deploying the service. Please help, now what i do.

Start registering the project's server resources
Finished registering server resources
moduleID=hl7
deployment started : 0%
Deploying application in domain failed; Error loading deployment descriptors for module [hl7] -- wsdl file WEB-INF/wsdl/wsat.wsdl does not exist for web service WSATCoordinator
Deployment error:
The module has not been deployed.
See the server log for details.
at org.netbeans.modules.j2ee.deployment.devmodules.api.Deployment.deploy(Deployment.java:163)
at org.netbeans.modules.j2ee.ant.Deploy.execute(Deploy.java:104)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
at sun.reflect.GeneratedMethodAccessor57.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:105)
at org.apache.tools.ant.Task.perform(Task.java:348)
at org.apache.tools.ant.Target.execute(Target.java:357)
at org.apache.tools.ant.Target.performTasks(Target.java:385)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1329)
at org.apache.tools.ant.Project.executeTarget(Project.java:1298)
at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
at org.apache.tools.ant.Project.executeTargets(Project.java:1181)
at org.apache.tools.ant.module.bridge.impl.BridgeImpl.run(BridgeImpl.java:277)
at org.apache.tools.ant.module.run.TargetExecutor.run(TargetExecutor.java:460)
at org.netbeans.core.execution.RunClassThread.run(RunClassThread.java:151)
Caused by: The module has not been deployed.
at org.netbeans.modules.j2ee.deployment.devmodules.api.Deployment.deploy(Deployment.java:157)
... 16 more
BUILD FAILED (total time: 17 seconds)

Thanks

Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42601
    
  65
"wsdl file WEB-INF/wsdl/wsat.wsdl does not exist " seems very specific. I'd start by looking into where this file name is specified, and whether it's where it should be and is readable.


Ping & DNS - my free Android networking tools app
somia razzaq
Ranch Hand

Joined: Jan 26, 2010
Posts: 44
Ulf Dittmer wrote:"wsdl file WEB-INF/wsdl/wsat.wsdl does not exist " seems very specific. I'd start by looking into where this file name is specified, and whether it's where it should be and is readable.


Hi
This wsat.wsdl does not exist in my project. Actually my service was deploying without error, only when i added metro 2.0 jar files like webservice-api, webservice-rt, webservice-tools jar files then this error come. I have removed these jar files but again i am getting the same error. What i do.
Thanks
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Help regarding Security Header