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
posted
0
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
Bartender
Joined: Oct 04, 2006
Posts: 2193
posted
0
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
posted
0
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: 35223
7
posted
0
"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.
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://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to
run our stuff on 16 servers instead of 3.