Hi all, When I run my service local (localhost) this is not a problem. But allas, I'm trying to run the service on a non-local box. IN the Stub generated from WSDL2Java there is a constructor as such: (note I added some try-catch blocks) public FoundationServicesServerServiceStub(org.apache.axis2.context.Configurati onContext configurationContext, java.lang.String targetEndpoint) throws java.lang.Exception { //To populate AxisService populateAxisService(); populateFaults(); try { //_serviceClient = new org.apache.axis2.client.ServiceClient(configurationContext,_service); ConfigurationContext context = org.apache.axis2.context.ConfigurationContextFactory.createConfiguration ContextFromFileSystem(AXIS2_HOME, null); _serviceClient = new org.apache.axis2.client.ServiceClient(context,_service); //_serviceClient = new org.apache.axis2.client.ServiceClient(configurationContext,_service); } catch (Exception e) { String msg = e.getMessage(); System.out.println(msg); } try { _serviceClient.getOptions().setTo(new org.apache.axis2.addressing.EndpointReference( targetEndpoint)); } catch (Exception e) { String msg = e.getMessage(); System.out.println(msg); }
As I step thought he code, it seams the axis2.xml is being parsed but then out of the blue the following is encountered: DEBUG in builder.StAXOMBuilder.next():lINE:144 - msg=END_ELEMENT: axisconfig:axisconfig DEBUG in engine.Phase.addHandler():lINE:113 - msg=Handler RequestURIBasedDispatcher added to Phase Transport DEBUG in engine.Phase.addHandler():lINE:113 - msg=Handler SOAPActionBasedDispatcher added to Phase Transport DEBUG in engine.Phase.addHandler():lINE:113 - msg=Handler AddressingBasedDispatcher added to Phase Dispatch DEBUG in engine.Phase.addHandler():lINE:113 - msg=Handler SOAPMessageBodyBasedDispatcher added to Phase Dispatch DEBUG in engine.Phase.addHandler():lINE:113 - msg=Handler InstanceDispatcher added to Phase java.lang.NoClassDefFoundError: org/apache/axis2/om/OMXMLParserWrapper at java.lang.Class.getDeclaredConstructors0(Native Method) at java.lang.Class.privateGetDeclaredConstructors(Unknown Source) at java.lang.Class.getConstructor0(Unknown Source) at java.lang.Class.newInstance0(Unknown Source) at java.lang.Class.newInstance(Unknown Source) at org.apache.ws.policy.util.PolicyFactory.getPolicyReader(PolicyFactory.ja va:42) at org.apache.axis2.deployment.DescriptionBuilder.processPolicyElements(Des criptionBuilder.java:406) at org.apache.axis2.deployment.AxisConfigBuilder.populateConfig(AxisConfigB uilder.java:112) at org.apache.axis2.deployment.DeploymentEngine.populateAxisConfiguration(D eploymentEngine.java:751) at org.apache.axis2.deployment.FileSystemConfigurator.getAxisConfiguration( FileSystemConfigurator.java:111) at org.apache.axis2.context.ConfigurationContextFactory.createConfiguration Context(ConfigurationContextFactory.java:35) at org.apache.axis2.context.ConfigurationContextFactory.createConfiguration ContextFromFileSystem(ConfigurationContextFactory.java:84) at com.thomson.west.foundations.soap.FoundationServicesServerServiceStub.<i nit>(FoundationServicesServerServiceStub.java:93) at com.thomson.west.foundations.transport.SoapTransporter.retrieveUnique(So apTransporter.java:176) at com.thomson.west.foundations.transport.TransportBuilder.getApp(Transport Builder.java:268) at com.thomson.west.foundations.FoundationsBuilder.eagerPopulate(Foundation sBuilder.java:157) at com.thomson.west.foundations.FoundationsBuilder.<init>(FoundationsBuilde r.java:116) at com.thomson.west.foundations.security.test.FoundationsSampleSecurityUsea geTestEnv.runApp(FoundationsSampleSecurityUseageTestEnv.java:103) at com.thomson.west.foundations.security.test.FoundationsSampleSecurityUsea geTestEnv.main(FoundationsSampleSecurityUseageTestEnv.java:85) Now this issue goes away IF I include the axis2-core-0.94.jar as well as the axis2-kernel-1.0-RC1.jar in the lib dir of my client app. But why would I need both of these jars? Isn't axis2-kernel-1.0-RC1.jar suppose to replace axis2-core-0.94.jar? Any assistence would be greatly appreciated. Dave Ziebol