Jax-ws deployment

I want to create simple (extremly simple) webservice with jax-ws, but there is no good tutorial on internet.
JEE tutorial uses ant with not enough explanation. Can some body explian me step by step jaxws webservice deployment (on tomcat is better) without ANT or any other things.
Thank you

Hi dmshah
Sorry about late answer.
1- With simple compilation line I can deploy my webservice but I read I should create Service Artifact or client Artifacts for it, can you please explain me what is "wsgen" and "wsimport" usage and they differences.
2- Another problem is I need a generic client to execute anyweb service, so creating one client for special webservice for me is meaningless.
In this case should I use "wsimport"?
3- My third question is ok now I compile my Service class(es) use wsgen to create WS artifcats, how can I create war file from it,
I try
war -cf <artifact and class folder>
but it doesn't work because there is no web.xml and...?
in tutorial stay you should create war file. what should be my web.xml and...
:( Sorry really lack of example and documentation stops me in first steps.

Similar Messages

  • Jax-ws deployed in standalone client fails with nullpointerexception

    I have a project which has deployed successfully as a standalone client with deployed jar files wlfullclient.jar, etc. When I add the jax-ws functions that I require, the deployed client fails with a nullpointerexception that is generated from the constructor of the Service class. The project runs successfully within the JDeveloper 11.1.1.5 environment and on a weblogic 10.3 server platform, but fails when I deploy as a standalone client with the wlfullclient.jar. I'm using JDK 1.6.0_24. In testing, the error occurs when I replace the {WLHome}\server\lib\weblogic.jar entry in the classpath with the wlfullclient.jar.
    I tested from another angle by creating my jax-ws functions in a standalone deployment, and it works successfully communicates with the webservices. No additional entries on the classpath besides my deployed jar. I then added to my deployment a simple JMS context lookup:
    Hashtable ht = new Hashtable();
    ht.put(Context.INITIAL_CONTEXT_FACTORY, contextFactoryProvider);
    ht.put(Context.PROVIDER_URL, urlString);
    Context context = new InitialContext(ht);
    This test runs without error in the JDeveloper environment. As soon as I add the wlfullclient.jar in the standalone environment, I get the following exception:
    Exception in thread "main" java.lang.NoClassDefFoundError: com/sun/xml/ws/spi/ProviderImpl
    at java.lang.ClassLoader.defineClass1(Native Method)
    at java.lang.ClassLoader.defineClassCond(ClassLoader.java:630)
    at java.lang.ClassLoader.defineClass(ClassLoader.java:614)
    at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)
    at java.net.URLClassLoader.defineClass(URLClassLoader.java:283)
    at java.net.URLClassLoader.access$000(URLClassLoader.java:58)
    at java.net.URLClassLoader$1.run(URLClassLoader.java:197)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:305)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:246)
    at javax.xml.ws.spi.FactoryFinder.safeLoadClass(FactoryFinder.java:150)
    at javax.xml.ws.spi.FactoryFinder.newInstance(FactoryFinder.java:30)
    at javax.xml.ws.spi.FactoryFinder.find(FactoryFinder.java:90)
    at javax.xml.ws.spi.Provider.provider(Provider.java:83)
    at javax.xml.ws.Service.<init>(Service.java:56)
    Interestingly, there is a class com/sun/xml/internal/ws.spi/ProviderImpl in the {JAVA_HOME}/jre/lib/rt.jar file, and I suppose this is what is used by the jax-ws classes when the wlfullclient.jar is not present on the classpath.
    So, what is it that I am missing in how to get the jax-ws classes and the jms classes to work in the standalone deployment environment (outside of the JDeveloper environment).
    Edited by: user3653687 on Jan 9, 2012 1:38 PM
    Edited by: user3653687 on Jan 9, 2012 2:49 PM

    Here is how I solved this problem to execute the application from a jar file (using Oracle Fusion Middleware 11.1.1.5.0 distribution). The key seems to be to extract the contents of the wseeclient.zip file into the same directory as the wlfullclient.jar and ws.api_1.1.0.0.jar files and then ensure that these 2 jars are on the classpath.
    In JDeveloper, create a project that has the jms/jax-ws classes.
    Put the following text entries to form the classpath (along with other dependent jars, e.g. org.eclipse.persistence...) into a file which will be included in the manifest for the client jar. Be sure to separate entries with a space.
    lib/wlfullclient.jar lib/wseeclient.jar lib\ws.api_1.1.0.0.jar lib\org.eclipse.persistence_1.1.0.0_2-1.jar
    In the Edit Deployment Profile Properties, select Include Manifest File, specify the main class to execute, and Add the classpath file to be included in the manifest.
    Deploy the jar file.
    In a deployment area, create the directory that will contain all the classpath jars (e.g. ./lib).
    Within the directory ./lib, extract all files from wseeclient.zip (found in {weblogic home}/server/lib)
    Copy wlfullclient.jar into the directory ./lib from the {weblogic home}/server/lib
    Copy ws.api_1.1.0.0.jar into the directory ./lib from {oracle middleware home}modules
    Copy org.eclipse.persistence_1.1.0.0_2-1.jar (for jaxb support) itno the directory ./lib from {oracle middleware home}/modules
    Copy the deployed client jar to the deployment area and execute, e.g.:
    java -jar ClientTest.jar myArguments

  • Jdev 11g: Webservice invocation using DII fails

    Hi,
    I am trying to invoke a webservice using DII mechanism.
    Here is the simple java code in a main() method..Just copy paste , build and run.
    package oracle.apps.atk.utils;
    import java.net.MalformedURLException;
    import java.net.URL;
    import javax.xml.rpc.Call;
    import javax.xml.rpc.Service;
    import javax.xml.rpc.JAXRPCException;
    import javax.xml.namespace.QName;
    import javax.xml.rpc.ServiceFactory;
    import javax.xml.rpc.ParameterMode;
    public class DynamicProxyClient {
        public DynamicProxyClient() {
        public static void main(String args[]) {
            try
                *  URL of the web service
                String wsdlURL = "http://www.webservicex.net/stockquote.asmx?WSDL";
                String address = "http://www.webservicex.net/stockquote.asmx";
                String namespaceURI = "http://www.webserviceX.NET";
                String serviceName = "StockQuote";
                String portName = "StockQuoteSoap";
                ServiceFactory factory = ServiceFactory.newInstance();
                * Create an instance of the Service with the given service QName
                Service service = factory.createService(new  QName(serviceName));
                Call call = service.createCall(new QName(portName));
                call.setTargetEndpointAddress(address);
                QName intQName = new QName("http://www.w3.org/2001/XMLSchema", "int");
                 * Set operation name to invoke.
                call.setOperationName(new QName(namespaceURI,"GetQuote"));
                 * Add parameters definitions in the call object.
                call.addParameter("GetQuote", intQName, ParameterMode.IN);
                 * Set definition of the return type.
                call.setReturnType(intQName);
                Object[] inParams = new Object[1];
                inParams[0] = new String("ORACLE");
                //String ipAddress= ((String)call.invoke(inParams));
                call.invoke(inParams);
                //System.out.println("ipAddress = "+ipAddress);
            catch (Exception e)
                e.printStackTrace();
    }The exception thrown is
    javax.xml.rpc.soap.SOAPFaultException: System.Web.Services.Protocols.SoapException: Server did not recognize the value of HTTP Header SOAPAction: .
       at System.Web.Services.Protocols.Soap11ServerProtocolHelper.RouteRequest()
       at System.Web.Services.Protocols.SoapServerProtocol.Initialize()
       at System.Web.Services.Protocols.ServerProtocolFactory.Create(Type type, HttpContext context, HttpRequest request, HttpResponse response, Boolean& abortProcessing)
         at oracle.j2ee.ws.client.StreamingSender._raiseFault(StreamingSender.java:572)
         at oracle.j2ee.ws.client.StreamingSender._sendImpl(StreamingSender.java:414)
         at oracle.j2ee.ws.client.StreamingSender._send(StreamingSender.java:121)
         at oracle.j2ee.ws.client.dii.CallInvokerImpl.doInvoke(CallInvokerImpl.java:99)
         at oracle.j2ee.ws.client.dii.BasicCall.invoke(BasicCall.java:803)
         at oracle.apps.atk.utils.DynamicProxyClient.main(DynamicProxyClient.java:67)

    Hallo Shay,
    Thx for your answer. I have given this a try in JDev 11, but in the "Oracle PL/SQL Java EE Web Service Wizard" there are currently only this two options:
    - J2EE 1.4 with support for JSR181 JAX-RPC (deploy to OC4J 10.1.3 with Java annotations)
    - J2EE 1.4 with support for JSR181MR2 JAX-RPC (deploy to OC4J 11 with Java annotations)
    Only if I choose the WebService Assistent for some POJO it offers "Java EE 1.5, with support for JAX-WS Annotations".
    Is it planned in the final realease of JDev 11 to have JAX-WS also for PL/SQL WebServices?
    Thx a lot for helping

  • Trying to talk RMI from 10.3 to 8.1 thru WebService - Nasty Exception

    Hi All,
    as an aside.. Somehow my account got reset? and i cannot change my username back... how and ever...
    I'm having a meltdown over an issue between a 10.3 Weblogic Server and an 8.1 Weblogic Server
    Bascially I have a JAX-WS 2.0 Web Service running on 10.3, Java 6 , calling into a EJB3 Session Bean, which instantiates an RMI ServiceLocator to another System running EJB 2.1, Java 1.4 on Weblogic 8.1
    As soon as the InitialContext lookup is performed, i get the error below.
    This ONLY happens when calling through the JAX-WS Webserivce. I can retrive records via direct RMI call to the SessionBean just fine.
    Has anyone ANY idea what causes this (is it something to do with JAXWSClassLoaderFactory)? And how i might fix it?
    Alternatively, if there is a way around it.... i'd take that too. I have to stick with exposing this as a webservice though.
    Thanks in advance,
    Mike
    Configuration
    EJB Exception: : weblogic.utils.AssertionError: ***** ASSERTION FAILED *****
    Could not find dynamically generated class: 'merryman.queryservice.GenericQueryService_3n7zjk_HomeImpl_816_WLStub' at
    weblogic.utils.classfile.utils.CodeGenerator.generateClass(CodeGenerator.java:78) at
    weblogic.rmi.internal.StubGenerator.hotCodeGenClass(StubGenerator.java:775) at
    weblogic.rmi.internal.StubGenerator.getStubClass(StubGenerator.java:759) at
    weblogic.rmi.internal.StubGenerator.generateStub(StubGenerator.java:786) at
    weblogic.rmi.internal.StubGenerator.generateStub(StubGenerator.java:779) at
    weblogic.rmi.extensions.StubFactory.getStub(StubFactory.java:74) at
    weblogic.rmi.internal.StubInfo.resolveObject(StubInfo.java:213) at
    weblogic.rmi.internal.StubInfo.readResolve(StubInfo.java:207) at
    sun.reflect.GeneratedMethodAccessor36.invoke(Unknown Source) at
    sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at
    java.lang.reflect.Method.invoke(Method.java:597) at
    java.io.ObjectStreamClass.invokeReadResolve(ObjectStreamClass.java:1061) at
    java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1762) at
    java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329) at
    java.io.ObjectInputStream.readObject(ObjectInputStream.java:351) at weblogic.utils.io.ChunkedObjectInputStream.readObjectFromPreDiabloPeer(ChunkedObjectInputStream.java:221) at weblogic.rjvm.MsgAbbrevInputStream.readObject(MsgAbbrevInputStream.java:562) at weblogic.utils.io.ChunkedObjectInputStream.readObject(ChunkedObjectInputStream.java:193) at
    weblogic.rmi.internal.ObjectIO.readObject(ObjectIO.java:62) at
    weblogic.rjvm.ResponseImpl.unmarshalReturn(ResponseImpl.java:240) at
    weblogic.rmi.cluster.ClusterableRemoteRef.invoke(ClusterableRemoteRef.java:348) at
    weblogic.rmi.cluster.ClusterableRemoteRef.invoke(ClusterableRemoteRef.java:259) at
    weblogic.jndi.internal.ServerNamingNode_1030_WLStub.lookup(Unknown Source) at
    weblogic.jndi.internal.WLContextImpl.lookup(WLContextImpl.java:392) at
    weblogic.jndi.internal.WLContextImpl.lookup(WLContextImpl.java:380) at
    javax.naming.InitialContext.lookup(InitialContext.java:392) at
    sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at
    sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at
    sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at
    java.lang.reflect.Method.invoke(Method.java:597) at
    com.bea.core.repackaged.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:281) at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:187) at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:154) at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:126) at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:114) at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:176) at com.bea.core.repackaged.springframework.jee.spi.MethodInvocationVisitorImpl.visit(MethodInvocationVisitorImpl.java:15) at weblogic.ejb.container.injection.EnvironmentInterceptorCallbackImpl.callback(EnvironmentInterceptorCallbackImpl.java:54) at com.bea.core.repackaged.springframework.jee.spi.EnvironmentInterceptor.invoke(EnvironmentInterceptor.java:30) at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:176) at com.bea.core.repackaged.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:89) at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:176) at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:126) at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:114) at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:176) at com.bea.core.repackaged.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:210)
    at $Proxy119.getRecords(Unknown Source)
    merryman.ejb.session.DbSessionBean_qfyvi8_DbSessionBeanLocalImpl.getRecords(DbSessionBean_qfyvi8_DbSessionBeanLocalImpl.java:470) at merryman.webservice.PortalServices.getRecordsForKey(PortalServices.java:106) at
    sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at
    sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at
    sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at
    java.lang.reflect.Method.invoke(Method.java:597) at
    weblogic.wsee.jaxws.WLSInstanceResolver$WLSInvoker.invoke(WLSInstanceResolver.java:89) at weblogic.wsee.jaxws.WLSInstanceResolver$WLSInvoker.invoke(WLSInstanceResolver.java:71) at
    com.sun.xml.ws.server.InvokerTube$2.invoke(InvokerTube.java:146) at
    com.sun.xml.ws.server.sei.EndpointMethodHandler.invoke(EndpointMethodHandler.java:257) at com.sun.xml.ws.server.sei.SEIInvokerTube.processRequest(SEIInvokerTube.java:93) at
    com.sun.xml.ws.api.pipe.Fiber.__doRun(Fiber.java:598) at com.sun.xml.ws.api.pipe.Fiber._doRun(Fiber.java:557) at
    com.sun.xml.ws.api.pipe.Fiber.doRun(Fiber.java:542) at com.sun.xml.ws.api.pipe.Fiber.runSync(Fiber.java:439) at com.sun.xml.ws.server.WSEndpointImpl$2.process(WSEndpointImpl.java:243) at
    com.sun.xml.ws.transport.http.HttpAdapter$HttpToolkit.handle(HttpAdapter.java:444) at
    com.sun.xml.ws.transport.http.HttpAdapter.handle(HttpAdapter.java:244) at
    com.sun.xml.ws.transport.http.servlet.ServletAdapter.handle(ServletAdapter.java:134) at weblogic.wsee.jaxws.HttpServletAdapter$AuthorizedInvoke.run(HttpServletAdapter.java:272) at
    weblogic.wsee.jaxws.HttpServletAdapter.post(HttpServletAdapter.java:185) at
    weblogic.wsee.jaxws.JAXWSServlet.doPost(JAXWSServlet.java:180) at
    javax.servlet.http.HttpServlet.service(HttpServlet.java:727) at
    weblogic.wsee.jaxws.JAXWSServlet.service(JAXWSServlet.java:64) at
    javax.servlet.http.HttpServlet.service(HttpServlet.java:820) at
    weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227) at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125) at
    weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:292) at
    weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:175) at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3498) at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321) at
    weblogic.security.service.SecurityManager.runAs(Unknown Source) at
    weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2180) at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2086) at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1406) at
    weblogic.work.ExecuteThread.execute(ExecuteThread.java:201) at
    weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
    Caused by: java.lang.ClassNotFoundException: merryman.queryservice.GenericQueryService_3n7zjk_HomeImpl_816_WLStub at
    weblogic.utils.classloaders.GenericClassLoader.findLocalClass(GenericClassLoader.java:283) at
    weblogic.utils.classloaders.GenericClassLoader.findClass(GenericClassLoader.java:256) at weblogic.utils.classloaders.ChangeAwareClassLoader.findClass(ChangeAwareClassLoader.java:54) at
    java.lang.ClassLoader.loadClass(ClassLoader.java:306) at java.lang.ClassLoader.loadClass(ClassLoader.java:251) at weblogic.utils.classloaders.GenericClassLoader.loadClass(GenericClassLoader.java:176) at weblogic.utils.classloaders.ChangeAwareClassLoader.loadClass(ChangeAwareClassLoader.java:35) at weblogic.utils.classloaders.FilteringClassLoader.findClass(FilteringClassLoader.java:82) at weblogic.wsee.util.JAXWSClassLoaderFactory$1.findClass(JAXWSClassLoaderFactory.java:44) at weblogic.utils.classloaders.FilteringClassLoader.loadClass(FilteringClassLoader.java:67) at
    weblogic.utils.classloaders.FilteringClassLoader.loadClass(FilteringClassLoader.java:62) at
    java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319) at java.lang.Class.forName0(Native Method) at
    java.lang.Class.forName(Class.java:247) at weblogic.utils.classloaders.GenericClassLoader.defineCodeGenClass(GenericClassLoader.java:507) at weblogic.utils.classfile.utils.CodeGenerator.generateClass(CodeGenerator.java:73) ... 88 more

    Did any one find the solution or workaround for this?
    I am having a similar scenario,
    jax-ws deployed in 10.3 server calls EJB 2.0 Stateless SessionBean deployed in another 10.3 server.
    Thanks,
    Jey
    Edited by: user8803553 on Jul 27, 2010 6:43 AM
    Edited by: user8803553 on Jul 27, 2010 6:50 AM

  • Problems deploying a JAX-WS webservice on Weblogic 10.3

    Hello Experts,
    I have deveoped a SOAP1.2 over HTTP web service using JAX-WS @WebServiceProvider annotation and am trying to deploy it on Weblogic 10.3
    The jwsc task is successful. However, I get the following exception when deploying it on weblogic 10.3:
    ===========================================================================================
    ####<Feb 16, 2010 12:35:18 PM PST> <Info> <Deployer> <....> <WLS_ManagedServer_1> <[STANDBY] ExecuteThread: '2' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <> <1266352518172> <BEA-149060> <Module OIMTrustedRecon of application OIMTrustedReconEar successfully transitioned from STATE_PREPARED to STATE_NEW on server WLS_ManagedServer_1.>
    ####<Feb 16, 2010 12:35:18 PM PST> <Error> <Deployer> <psharma-lap> <WLS_ManagedServer_1> <[STANDBY] ExecuteThread: '2' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <> <1266352518656> <BEA-149265> <Failure occurred in the execution of deployment request with ID '1266352473562' for task '10'. Error is: 'weblogic.application.ModuleException: [HTTP:101216]Servlet: "weblogic.wsee.async.AsyncResponseBean" failed to preload on startup in Web application: "OIMTrustedRecon".
    com.sun.xml.ws.model.RuntimeModelerException: The web service defined by the class weblogic.wsee.async.AsyncResponseBean does not contain any valid WebMethods.
         at com.sun.xml.ws.model.RuntimeModeler.buildRuntimeModel(RuntimeModeler.java:262)
         at com.sun.xml.ws.server.EndpointFactory.createSEIModel(EndpointFactory.java:322)
         at com.sun.xml.ws.server.EndpointFactory.createEndpoint(EndpointFactory.java:188)
         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 weblogic.wsee.jaxws.JAXWSDeployedServlet.getEndpoint(JAXWSDeployedServlet.java:182)
         at weblogic.wsee.jaxws.JAXWSServlet.registerEndpoint(JAXWSServlet.java:164)
         at weblogic.wsee.jaxws.JAXWSServlet.init(JAXWSServlet.java:51)
         at weblogic.wsee.jaxws.JAXWSDeployedServlet.init(JAXWSDeployedServlet.java:53)
         at javax.servlet.GenericServlet.init(GenericServlet.java:241)
         at weblogic.servlet.internal.StubSecurityHelper$ServletInitAction.run(StubSecurityHelper.java:283)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(Unknown Source)
         at weblogic.servlet.internal.StubSecurityHelper.createServlet(StubSecurityHelper.java:64)
         at weblogic.servlet.internal.StubLifecycleHelper.createOneInstance(StubLifecycleHelper.java:58)
         at weblogic.servlet.internal.StubLifecycleHelper.<init>(StubLifecycleHelper.java:48)
         at weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubImpl.java:521)
         at weblogic.servlet.internal.WebAppServletContext.preloadServlet(WebAppServletContext.java:1893)
         at weblogic.servlet.internal.WebAppServletContext.loadServletsOnStartup(WebAppServletContext.java:1870)
         at weblogic.servlet.internal.WebAppServletContext.preloadResources(WebAppServletContext.java:1790)
         at weblogic.servlet.internal.WebAppServletContext.start(WebAppServletContext.java:2999)
         at weblogic.servlet.internal.WebAppModule.startContexts(WebAppModule.java:1371)
         at weblogic.servlet.internal.WebAppModule.start(WebAppModule.java:468)
         at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:204)
         at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:37)
         at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:60)
         at weblogic.application.internal.flow.ScopedModuleDriver.start(ScopedModuleDriver.java:200)
         at weblogic.application.internal.flow.ModuleListenerInvoker.start(ModuleListenerInvoker.java:117)
         at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:204)
         at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:37)
         at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:60)
         at weblogic.application.internal.flow.StartModulesFlow.activate(StartModulesFlow.java:27)
         at weblogic.application.internal.BaseDeployment$2.next(BaseDeployment.java:635)
         at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:37)
         at weblogic.application.internal.BaseDeployment.activate(BaseDeployment.java:212)
         at weblogic.application.internal.EarDeployment.activate(EarDeployment.java:16)
         at weblogic.application.internal.DeploymentStateChecker.activate(DeploymentStateChecker.java:162)
         at weblogic.deploy.internal.targetserver.AppContainerInvoker.activate(AppContainerInvoker.java:79)
         at weblogic.deploy.internal.targetserver.operations.AbstractOperation.activate(AbstractOperation.java:569)
         at weblogic.deploy.internal.targetserver.operations.ActivateOperation.activateDeployment(ActivateOperation.java:140)
         at weblogic.deploy.internal.targetserver.operations.ActivateOperation.doCommit(ActivateOperation.java:106)
         at weblogic.deploy.internal.targetserver.operations.AbstractOperation.commit(AbstractOperation.java:323)
         at weblogic.deploy.internal.targetserver.DeploymentManager.handleDeploymentCommit(DeploymentManager.java:820)
         at weblogic.deploy.internal.targetserver.DeploymentManager.activateDeploymentList(DeploymentManager.java:1227)
         at weblogic.deploy.internal.targetserver.DeploymentManager.handleCommit(DeploymentManager.java:436)
         at weblogic.deploy.internal.targetserver.DeploymentServiceDispatcher.commit(DeploymentServiceDispatcher.java:163)
         at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.doCommitCallback(DeploymentReceiverCallbackDeliverer.java:181)
         at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.access$100(DeploymentReceiverCallbackDeliverer.java:12)
         at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer$2.run(DeploymentReceiverCallbackDeliverer.java:67)
         at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:516)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
    ===========================================================================================
    Could you please let know if I have done something wrong or am missing something.
    Please let me know if you need more information to help me.
    Many Thanks,
    Pulkit Sharma

    Hi Pulkit,
    If your WebService is not very complex ...then can you please paste it here ...Or can u describe something about your WebService. Like Which kind of methods are there? And Are u using any Asynchronous feature in it?
    If you are not using any Asynchronous feature in your webservice then u can try disabling it by adding "-Dweblogic.wsee.skip.async.response=true"
    Thanks
    Jay SenSharma
    http://jaysensharma.wordpress.com/webservices/ (WebLogic Wonders Are Here)

  • URGENT **** Need help for JAX-RPC Web Service Proxy deploy to OC4J 10.1.3.5

    Hi everyone!
    I’m really new to web services.
    I’m getting a *500 internal server error* while deploying my JAX-RPC web service Proxy to an Oracle AS, in an OC4J, v. 10.1.3.5.0.
    Running my client from my development environment (*jdeveloper 10g, 10.1.3.5.0*) everything functions correctly: from jdeveloper I can contact and use the web service defined by the following endpoint: https://www.medialibrary.it/services/federaMLOL.asmx?WSDL
    I created a "try_ws_client.jsp" file that runs correctly from my local development environment jdeveloper (that uses an embedded oc4j, v. 10.1.3.5.0) but fails when run from the test server (Oracle AS, in an OC4J, v. 10.1.3.5.0), getting, as I mentioned a 500 internal server error, a white page in IE but with FF the message says: The’s an error in the servlet .....
    Here's how I created the ws proxy and how I’m using it to consume the ws I mentioned.
    1. I used the jdeveloper “Create Web Service Proxy” wizard (File > New > Business Tier > Web Services > Web Service Prox) and in the WSDL document URL I put: https://www.medialibrary.it/services/federaMLOL.asmx?WSDL
    2. The operation ended without adding nothing to the web.xml file and creating the proxy files. One of them is: FederaMLOLSoapClient.java that have the WS exposed methods (es: public boolean createUser(String) ) + a “main” method with the example how to use this client to consume the WS.
    public static void main(String[] args) {
    try {
    it.reggiocity.provincia.mlol.proxy.FederaMLOLSoapClient myPort = new it.reggiocity.provincia.mlol.proxy.FederaMLOLSoapClient();
    System.out.println("calling " + myPort.getEndpoint());
    // Add your own code here
    } catch (Exception ex) {
    ex.printStackTrace();
    3. In FederaMLOLSoapClient.java I’ve create the method "tyIt":
    public String tryIt(String username) {
    try {
    it.reggiocity.provincia.mlol.proxy.FederaMLOLSoapClient myPort = new it.reggiocity.provincia.mlol.proxy.FederaMLOLSoapClient();
    if(myPort.createUser(String username)) {
    return “O.K”;
    } else {
    return “K.O”;
    } catch (Exception ex) {
    // logs error
    4. I created my try_ws_client.jsp file that creates FederaMLOLSoapClient object and calls the tryIt method, printing the “OK” or “KO” message.
    <%@ page import="it.reggiocity.provincia.biblioreggiane.*"%>
    <%
    String message = "";
    FederaMLOLSoapClient obj= new FederaMLOLSoapClient( );
    message = obj.tryIt(“AAAAAA70R10H226H”);
    %>
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
    <%@ page contentType="text/html;charset=windows-1252"%>
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=windows-1252"/>
    <title>prova</title>
    </head>
    <body><%=message%></body>
    </html>
    The situation is:
    My try_ws_client.jsp runs correctly from my jdeveloper and the user is created while creating app.ear and deploying it to my Oracle AS/OC4J as mentioned above, I get a 500 Internal Server Error.
    Any idea to find a solution to this problem?
    Please help.
    Take care.
    John M.

    Hi,
    you want to build the Web Service, or you want to consume the Service as a client? If the latter, Web client (ADF?) or Java client?
    Frank

  • Error deploying JAX-RPC war in JBoss

    I am using the JBoss 3.0.3 with Tomcat 4.1.12. After creating a JAX-RPC application I have tried deploying the completed war to JBoss, but get an error saying that Jboss cannot find the:
    com.sun.xml.rpc.server.JAXRPCContextListener. java.lang.ClassNotFoundException
    This class lives in the jaxrpc-ri.jar file, from the jwsdp-1_0_01 distribution (Java Web Services Developer Pack). I've tried copying this jar file to the Jboss lib directory, but it still doesn't get past the error.
    How can install this jar (and/or other JAX-RPC jars) for Jboss to use? See server errors below:
    9:56:31,071 INFO [Engine] WebappLoader[VehicleInfoService]: Deploy class files /WEB-INF/classes/space/jboss/jboss-3.0.3_tomcat-4.1.12/tomcat-4.1.x/work/MainEngine/localhost/VehicleInfoService/WEB-INF/classes
    19:56:31,671 INFO [Engine] ContextConfig[VehicleInfoService]: Added certificates -> request attribute Valve
    19:56:31,852 INFO [EmbeddedCatalinaService41] Using Java2 parent classloader delegation: true
    19:56:31,853 INFO [Engine] StandardManager[VehicleInfoService]: Seeding random number generator class java.security.SecureRandom
    19:56:31,856 INFO [Engine] StandardManager[VehicleInfoService]: Seeding of random number generator has been completed
    19:56:32,141 ERROR [Engine] StandardContext[VehicleInfoService]: Error configuring application listener of class com.sun.xml.rpc.server.http.JAXRPCContextListener
    java.lang.ClassNotFoundException:
    com.sun.xml.rpc.server.http.JAXRPCContextListener
    at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1428)
    at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1274)
    at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3217)
    at org.apache.catalina.core.StandardContext.start(StandardContext.java:3524)
    at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:821)
    at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:807)
    at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:579)
    at org.jboss.web.catalina.EmbeddedCatalinaService41.createWebContext(EmbeddedCatalinaService41.java:427)
    at org.jboss.web.catalina.EmbeddedCatalinaService41.performDeploy(EmbeddedCatalinaService41.java:302)
    at org.jboss.web.AbstractWebContainer.start(AbstractWebContainer.java:300)
    at org.jboss.deployment.MainDeployer.start(MainDeployer.java:802)
    at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:616)
    at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:580)
    at sun.reflect.GeneratedMethodAccessor12.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:324)
    at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
    at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:517)
    at org.jboss.util.jmx.MBeanProxy.invoke(MBeanProxy.java:174)
    at $Proxy4.deploy(Unknown Source)
    at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:427)
    at org.jboss.deployment.scanner.URLDeploymentScanner.scanDirectory(URLDeploymentScanner.java:648)
    at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:499)
    at org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeploymentScanner.java:261)
    at org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:164)
    at sun.reflect.GeneratedMethodAccessor7.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:324)
    at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
    at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:517)
    at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:976)
    at $Proxy0.start(Unknown Source)
    at org.jboss.system.ServiceController.start(ServiceController.java:397)
    at sun.reflect.GeneratedMethodAccessor6.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:324)
    at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
    at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:517)
    at org.jboss.util.jmx.MBeanProxy.invoke(MBeanProxy.java:174)

    Deploy the jax-rpc implementation along with your application.
    The library is found in the Webservices Developers Kit at
    jaxrpc-1.0.3/lib/jaxrpc-ri.jar

  • Deploying JAX-WS web service to weblogic server 9.2

    Hi,
    I want to deploy webservice created with JAX-WS 2.1 RI to BEA Weeblogic Server 9.2. After some research on forums and groups I have:
    sun-jaxws.xml
    <endpoints xmlns="http://java.sun.com/xml/ns/jax-ws/ri/runtime" version="2.0">
    <endpoint name="TSOrganization"
    implementation="service.TsOrganizationImpl"
    url-pattern="/SOA/tsorganization"/>
    </endpoints>
    web.xml
    <web-app version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
    <listener>
    <listener-class>com.sun.xml.ws.transport.http.servlet.WSServletContextListener</listener-class>
    </listener>
    <servlet>
    <servlet-name>TsOrganization</servlet-name>
    <servlet-class>sun.com.xml.ws.transport.http.servlet.WSServlet</servlet-class>
    <load-on-startup>1</load-on-startup>
    </servlet>
    <servlet-mapping>
    <servlet-name>TsOrganization</servlet-name>
    <url-pattern>/SOA/tsorganization</url-pattern>
    </servlet-mapping>
    <session-config>
    <session-timeout>
    30
    </session-timeout>
    </session-config>
    <welcome-file-list>
    <welcome-file>index.jsp</welcome-file>
    </welcome-file-list>
    </web-app>
    weblogic.xml
    <weblogic-web-app xmlns="http://www.bea.com/ns/weblogic/90" xmlns:j2ee="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.bea.com/ns/weblogic/90 http://www.bea.com/ns/weblogic/90/weblogic-web-app.xsd">
    <context-root>/SOA/tsorganization</context-root>
    <container-descriptor>
    <prefer-web-inf-classes>true</prefer-web-inf-classes>
    </container-descriptor>
    </weblogic-web-app>
    weblogic-application.xml
    <weblogic-application xmlns="http://www.bea.com/ns/weblogic/90">
    <application-param>
    <param-name>webapp.encoding.default</param-name>
    <param-value>UTF-8</param-value>
    </application-param>
    <prefer-application-packages>
    <package-name>javax.jws.*</package-name>
    </prefer-application-packages>
    </weblogic-application >
    application.xml
    <application version="1.4" xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/application_1_4.xsd">
    <display-name>TSOrganization</display-name>
    <module>
    <web>
    <web-uri>TsOrganizationWS.war</web-uri>
    <context-root>/SOA/tsorganization</context-root>
    </web>
    </module>
    </application>
    I've included all the libraries from JAX-WS 2.1.3 into WEB-INF/lib in war file, packed it into ear and deployed. When I try to start deployed application I get following error:
    javax.servlet.ServletException: [HTTP:101249][weblogic.servlet.internal.WebAppServletContext@aed2df - appName: 'TSOrganization', name: '/SOA/tsorganization', context-path: '/SOA/tsorganization']: Servlet class sun.com.xml.ws.transport.http.servlet.WSServlet for servlet TsOrganization could not be loaded because the requested class was not found in the classpath . java.lang.ClassNotFoundException: sun.com.xml.ws.transport.http.servlet.WSServlet.
    although the missing class is in jaxws-rt.jar included in WEB-INF/lib folder.
    Any ideas what to try next?

    Ok.. with some help I found the error...
    servlet class is com.sun... and not sun.com :-S
    but everything else is right.. so it can be like reference for deploying jaxws service on weblogic 9.2.

  • Deployment error JAX-WS 2.1 & NetBeans 5.5

    I am using NetBeans 5.5 with the webserver pack to use the JSF technology.
    When I am putting the JAX-WS 2.1 jars in the war, Ik get the following deployment error:
    WEB0100: Loading web module [__JWSappclients:sys.war] in virtual server [server] at [__JWSappclients]
    Exception occured in J2EEC Phase
    com.sun.enterprise.deployment.backend.IASDeploymentException: Error loading deployment descriptors for module [ehip] -- (class: com/sun/xml/ws/model/RuntimeModeler, method: processRpcMethod signature: (Lcom/sun/xml/ws/model/JavaMethodImpl;Ljava/lang/String;Ljavax/jws/WebMethod;Ljava/lang/String;Ljava/lang/reflect/Method;Ljavax/jws/WebService;)V) Incompatible argument to fun��'���'$��'�*�
    at com.sun.enterprise.deployment.backend.Deployer.loadDescriptors(Deployer.java:362)
    at com.sun.enterprise.deployment.backend.ModuleDeployer.loadDescriptors(ModuleDeployer.java:395)
    at com.sun.enterprise.deployment.backend.WebModuleDeployer.deploy(WebModuleDeployer.java:155)
    at com.sun.enterprise.deployment.backend.ModuleDeployer.doRequestFinish(ModuleDeployer.java:160)
    at com.sun.enterprise.deployment.phasing.J2EECPhase.runPhase(J2EECPhase.java:169)
    at com.sun.enterprise.deployment.phasing.DeploymentPhase.executePhase(DeploymentPhase.java:95)
    at com.sun.enterprise.deployment.phasing.PEDeploymentService.executePhases(PEDeploymentService.java:871)
    at com.sun.enterprise.deployment.phasing.PEDeploymentService.deploy(PEDeploymentService.java:266)
    at com.sun.enterprise.deployment.phasing.PEDeploymentService.deploy(PEDeploymentService.java:739)
    at com.sun.enterprise.management.deploy.DeployThread.deploy(DeployThread.java:174)
    at com.sun.enterprise.management.deploy.DeployThread.run(DeployThread.java:210)
    Caused by: java.lang.VerifyError: (class: com/sun/xml/ws/model/RuntimeModeler, method: processRpcMethod signature: (Lcom/sun/xml/ws/model/JavaMethodImpl;Ljava/lang/String;Ljavax/jws/WebMethod;Ljava/lang/String;Ljava/lang/reflect/Method;Ljavax/jws/WebService;)V) Incompatible argument to fun��'���'$��'�*�
    at java.lang.Class.getDeclaredConstructors0(Native Method)
    at java.lang.Class.privateGetDeclaredConstructors(Class.java:2357)
    at java.lang.Class.getConstructors(Class.java:1446)
    at com.sun.enterprise.deployment.annotation.impl.ComponentDefinition.initializeConstructors(ComponentDefinition.java:89)
    at com.sun.enterprise.deployment.annotation.impl.ComponentDefinition.<init>(ComponentDefinition.java:54)
    at com.sun.enterprise.deployment.annotation.impl.JavaEEScanner.getComponentInfo(JavaEEScanner.java:44)
    at com.sun.enterprise.deployment.annotation.impl.AnnotationProcessorImpl.process(AnnotationProcessorImpl.java:159)
    at com.sun.enterprise.deployment.annotation.impl.AnnotationProcessorImpl.process(AnnotationProcessorImpl.java:116)
    at com.sun.enterprise.deployment.archivist.Archivist.processAnnotations(Archivist.java:432)
    at com.sun.enterprise.deployment.archivist.Archivist.readAnnotations(Archivist.java:333)
    at com.sun.enterprise.deployment.archivist.Archivist.readDeploymentDescriptors(Archivist.java:305)
    at com.sun.enterprise.deployment.archivist.Archivist.open(Archivist.java:200)
    at com.sun.enterprise.deployment.archivist.ApplicationArchivist.openArchive(ApplicationArchivist.java:750)
    at com.sun.enterprise.deployment.archivist.ApplicationArchivist.openArchive(ApplicationArchivist.java:731)
    at com.sun.enterprise.deployment.backend.Deployer.loadDescriptors(Deployer.java:327)
    ... 10 more
    I made an ordinary Java test program and that works without a problem.
    What is going on ?
    Regards and thanks for any help.
    Marc

    Can you check if the following helps?
    http://blogs.sun.com/fruitcake/entry/jax_ws_2_1_and

  • Create and deploy jax-rpc ws on weblogic 9.2

    I am finding a solution how to build a simple jax rpc web service using weblogic 9.2 ant tasks. I cant find a task which generate war out of my implementation.
    It have to be JAX-RPC ws (not JAX-WS).
    Please help me, I have been searching for hours yet...(without success)
    Edited by julius4 at 04/07/2008 3:58 AM

    Hi Carmen,
    WLS 8.1 provides a spec compliant, full featured JAX-RPC
    implementation. Mixing the impl can cause unpredictable and unexpected
    results because they share many of the same upper layers, but under the
    covers things can be quite different.
    If you are looking for J2EE 1.4 web service features, stay tuned...we
    are working at flank speed.
    Regards,
    Bruce
    Carmen wrote:
    >
    Hi All :
    I am a beginner and I need help ...!!
    as far as I know , weblogic 8.1 is a J2EE 1.3-compliant application server ..so
    does this mean that I can't deploy Sun's jax-rpc webservice (which is a standard
    way to develop webservices in j2EE 1.4 ) on weblogic 8.1..?
    and If I can't , is there a way to configure weblogic in order to deploy Sun's
    jax-rpc webservice..?
    would you please help me to find the answers..??
    Thanks,

  • JAX-WS SOAPHandler can not deployed in BEA WLS 10.0 - Bug?

    Hi,
    currently I'm trying tp deploy a simple JAX-WS webservice with JAX-WS SOAPHandler in BEA WLS 10.0.
    Therefore I provide a WAR file with the webservice and handler classes.
    The SOAP Handler is defined in the webservice via the @HandlerChain(file="handler.xml")
    My handler.xml looks as follows:
    <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
    <javaee:handler-chains xmlns:javaee="http://java.sun.com/xml/ns/javaee" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    <javaee:handler-chain>
    <javaee:handler> <javaee:handler-class>com.bmw.wss.server.handler.AuthenticationHandler</javaee:handler-class>
    </javaee:handler>
    </javaee:handler-chain>
    </javaee:handler-chains>
    This handlers.xml is in the classpath within the WAR file.
    If i trying to deploy this WAR file I always get the following exception from BEA WLS 10:
    weblogic.application.ModuleException: [HTTP:101216]Servlet: "WSAATestService" failed to preload on startup in Web application: "wsaa-jaxwshandlertest.war".
    java.lang.NullPointerException
    at weblogic.wsee.monitoring.WseeRuntimeMBeanManager.createJaxWsHandlers(WseeRuntimeMBeanManager.java:108)
    at weblogic.wsee.monitoring.WseeRuntimeMBeanManager.createJaxWsPort(WseeRuntimeMBeanManager.java:80)
    at weblogic.wsee.monitoring.WseeRuntimeMBeanManager.createJaxWsMBean(WseeRuntimeMBeanManager.java:57)
    I seems BEA WLS 10 has some problems with the JAX-WS SOAPHandler. I've deployed the same WAR-file on a Glassfish v2 server... without any problems!
    Does anyone already used the JAX-WS handler mechanism in BEA WLS 10? Any ideas?
    Thx.

    Hi,
    thx for your answer. Now I've found the problem. The BEA WLS don't accept null return value of the SOAPHandler method getHeaders(). If I return a dummy object everything wotks fine:
    public Set<QName> getHeaders() {
    return new TreeSet<QName>();
    However I think this behaviour of the BEA WLS 10 is some kind of strange. Why do I have to implement the method getHeaders() if I don't want to use it.
    Sun's Glassfish allows a null return value like expected.

  • Deploying related JAX-RPC endpoints

    Hi,
    I've got some JAX-RPC endpoints that are basically two interfaces to a whole heap of behind the scenes classes that they both share. It seems it's not possible to deploy two endpoints in the same WAR. What would be the recommended way to deploy these so that I only need deploy these classes once, and there will only be one instance of them in the servlet that both interface implementations reference?
    On a similar note, is there a similar practice that could be applied to JSP's, as I have 3 jsp "web sites" that need to be fairly distinct in their deployment, but they share some common jsp's as static includes and some classes. What's the best way to deploy the shared includes and java classes so that they are deployed to the tomcat server once and used by all 3 jsp sites?
    I'm using jwsdp 1.0.01
    Thanks for any help

    I saw this discussion and had come to the same conclusion. However there is more to it.
    If you deploy a service as HTTP secure, then how do you tell the client to get the WSDL? Because the wscompile for the client does not support authentication.
    I tried to put the WSDL on a separate (non-secure) end-point, but it does not seem to work. Even when I define the two endpoints separately in the jaxrpc-ri.xml e.g.
    <webServices
         xmlns="http://java.sun.com/xml/ns/jax-rpc/ri/dd"
         version="1.0"
         targetNamespaceBase="urn:IMEIWS"
         typeNamespaceBase="urn:IMEIWS"
         urlPatternBase="/ws">
         <endpoint
              name="IMEIWebService"
              displayName="IMEI Web Service from Wilabs"
              description="A web service."
    interface="com.wilabs.imeiws.server.IMEIWebServiceInterface"
         implementation="com.wilabs.imeiws.server.IMEIWebServiceImpl"
              port="{urn:IMEIWS}IMEIWebServiceInterfacePort"
              model="/WEB-INF/model.gz"/>
         <endpoint
              name="IMEIWebServiceWSDL"
              displayName="IMEI Web Service WSDL"
              description="A web service to obtain the WSDL."
              interface="com.wilabs.imeiws.wsdl.IMEIWebServiceInterface"
              implementation="com.wilabs.imeiws.wsdl.IMEIWebServiceImpl"
              port="{urn:IMEIWS}IMEIWebServiceWSDLPort"
              model="/WEB-INF/model.gz"/>
         <endpointMapping
              endpointName="IMEIWebService"
              urlPattern="/imeiws"/>
         <endpointMapping
              endpointName="IMEIWebServiceWSDL"
              urlPattern="/wsdl"/>
    </webServices>
    I get only one in the jaxrpc-ri-runtime.xml i.e.:
    name='IMEIWebService'
    interface='com.wilabs.imeiws.server.IMEIWebServiceInterface'
    implementation='com.wilabs.imeiws.server.IMEIWebServiceImpl'
    tie='com.wilabs.imeiws.server.IMEIWebServiceInterface_Tie'
    model='/WEB-INF/model.gz'
    wsdl='/WEB-INF/IMEIWebService.wsdl'
    service='{urn:IMEIWS}IMEIWebService'
    port='{urn:IMEIWS}IMEIWebServiceInterfacePort'
    urlpattern='/imeiws'/>

  • Invoking JAX-RPC service deployed in SunONE7.0 by jdk1.2/1.3 client

    Hi,
    Is it possible to invoke a JAX-RPC service deployed in SunONE7.0 by jdk1.2/1.3 client?. If possible what jars should the client have in order to do this?.
    warm regards,
    Vijay

    I used tha JAX-RPC runtime jars that come with JSWDP and was able to sucessfully run the client on JDK1.3 environment. Is there a solution for JDK1.2 client?

  • Packaging and deploying jax ws (webservice) in multiple servers

    I am a java developer and new to JAX-WS.
    i got one requirement to create a web service using jax-ws, packaging using ant build and deploying it in JBOSS and WEBSPHERE server.
    The process which i followed to create a web service below:
         1) created a web service class using @webservice annotation
         2) created a client side artifacts using wsimport which is provided by Jdk and created a war and deployed it jboss.
         3) wsdl is getting generated while deploying a war using a URI - (http://localhost:8080/mywebapplication/routing?wsdl)
         4) create client class to call the webservice. everything is working fine for me.
    Need your expert input for the following below:
         1) if i write the ant build script to package the client stubs, how i can use wsdl location in wsimport ant task. should i use URI (wsdl="http://localhost:8080/mywebapplication/routing?wsdl") or
    (wsdl="d:/route.wsdl")? which is the best practice?
         2) i want to deploy my webservice in JBOSS and WEBSPHERE in different machine and different port no?
         for e.g
    *     http://ip1:port1/mywebapplication/route?wdl*
    *     http://ip2:port2/mywebapplication/route?wdl*
    *     http://ip3:port3/mywebapplication/route?wdl*
         how to mention dynamic ipaddress and port no while running ant build script?
         how to change the wsdl location and port number in generated wsdl and RoutingService client stubs class dynamically? (dont want to change soad address location manually)
    *     Do i need to use wsgen to generate server stubs?*
    *     Need your inputs in packaging and deploying jax ws in multiple servers.*
    Thanks in advance.

    how to change the wsdl location and port number in generated wsdl and RoutingService client stubs class dynamically? (dont want to change soad address location manually)
    Your client stub should look like that...
    <code>
    @WebServiceClient(name = "MyClientStub", targetNamespace = "http://www.openuri.org/", wsdlLocation = "http://localhost:8080/MyClientStub/MyClientStubProxy/#%7Bhttp%3A%2F%2Fwww.openuri.org%2F%7DMyClientStub?wsdl")
    public class MyClientStub
    extends Service
    public MyClientStub(URL wsdlLocation, QName serviceName) {
    super(wsdlLocation, serviceName);
    </code>
    You can use the constructor above, like that...
    <code>
    URL baseUrl = MyClientStub.class.getResource(".");
    URL url = new URL(baseUrl, "http://your-server:your-port-no/MyClientStub/MyClientStubProxy/#%7Bhttp%3A%2F%2Fwww.openuri.org%2F%7DMyClientStub?wsdl");
         MyClientStub stub = new MyClientStub(url, new QName("http://www.openuri.org/", "MyClientStub");
    </code>

  • JAX-WS Dispatch client deployed in weblogic 10.3.0 sends empty namespace

    We have a weird issue.
    Currently in the production environment we have the below application deployed
    1.     WebService1.war
    2.     WebApp1.war
    3.     WebApp2.war
    Webapp1.war and WebApp2.war invokes WebService1.war and there is no issue in production.
    We have another new webservice2.war component that is going to production soon is deployed in dev and QA environment. After deploying WebService2.war in dev and QA, WebApp1.war started sending empty namespace in the request to Webservice1.war but WebApp2.war which also uses the same web webservice method is sending the proper request. This is how request from WebApp1.war looks like (For security reason I have not given the entire request):
    <env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"><env:Header/><env:Body><GetDetails xmlns="Test"><Info xmlns=""></Info></GetDetails></env:Body></env:Envelope>
    In the above request xmlns is empty and that is an issue because at the service layer the Info object is null and it is throwing NullPointerException.
    Additional Details:
    1.All the above mentioned applications are deployed in Weblogic 10.3.0. WebService1.war was implemented using JAX-WS and created in Bottom Up fashion. WebService2.war is also implemented using JAX-WS and created using wsdl (Top Down webservice).
    WebApp1.war uses JAX-WS dispatch client. And there is no issue when the client is tested as a standalone client from our local machine even when WebService2.war is deployed. WebApp2.war uses stubs created using com.sun.tools.ws.ant.WsImport to invoke the webservice. And there is no issue no matter WebService2.war is deployed or not.
    We dont know how the new webservice2 component can cause webapp1 to send empty namespace in the request to webservice1
    Please let me know if you need any other details. And I would really appreciate your inputs.
    Edited by: user8115570 on Feb 2, 2012 8:01 PM

    Child element should be added like this at the client side.
    SOAPElement message = payload.addChildElement("Info","",targetNameSpace);

Maybe you are looking for

  • Adobe Premiere Pro CC startet nicht

    Hallo, ich habe Adobe Premiere Pro CC installiert. Beim Starten kommt die Meldung "Adobe Premiere Pro CC funktioniert nicht mehr". Die Version 6 funktionierte einwandfrei. Auch Deinstallation / Neustart / Neuinstallation brachte keinen Erfolg. Creati

  • Pages 09 installation problem on Marvericks

    I am trying to get Pages 09 to work on a new Mac Pro running OS X 10.9.2 The new Mac Pro has a clean install (no migration from the old machine) and I am installing iWorks from the original DVD and then updating to version 4.3 (1048) using the instal

  • Change of list printing to ALV grid printing

    Hi everybody I have requirement to convert the following code to Grid display can any body help me out in this. NEW-PAGE PRINT ON       NO DIALOG       LINE-COUNT     58                                                  LINE-SIZE      170             

  • HELP! Blackberry newbie I don't know what I'm doing

    Hello, I'm new to the Blackberry world!  I have had many Palm pda's but have never had so much trouble or problems with them as I have with the BB.  I know it must be something I'm doing because I hear nothing but praise on the BB.  I installed the d

  • Tabbed File Viewing?!?

    I had to reformat at work and now am using Dreamweaver MX 2004 for a lot of things. But I can't figure out for the life of me how I am supposed to view all my files in tabs (as I had done previously.) I quite often have 7-10 different .php or .html f