Topic
2 replies Latest Post - ‏2010-06-07T21:25:57Z by Rohit_R
Rohit_R
Rohit_R
24 Posts
ACCEPTED ANSWER

Pinned topic SCA Component with WS binding fails to start in ND environment

‏2010-05-20T22:48:56Z |
We are trying to use SCA web service binding and have been able to get the sample application working in a standalone single server environment. But when the same sca application is deployed on a managed node in a network deployment the SCA application fails to start.

The composite file is as below

<?xml version=
"1.0" encoding=
"UTF-8"?> <composite xmlns=
"http://www.osoa.org/xmlns/sca/1.0" targetNamespace=
"http://mts.aps.aci.com/audit" xmlns:auditns=
"http://mts.aps.aci.com/audit" xmlns:wsdli=
"http://www.w3.org/2004/08/wsdl-instance" name=
"AuditCompositeDaoScaWS"> <component name=
"AppAuditServiceSpringScaWSComponent"> <implementation.spring location=
"META-INF/spring/application-context.xml"/> <service name=
"AppAuditService"> <interface.java interface=
"com.aci.aps.mts.audit.AppAuditService"/> <binding.ws/> </service> </component> </composite>


The exception thrown is

[5/20/10 17:59:46:696 EDT] 00000000 ContainerHelp E   WSVR0501E: Error creating component com.ibm.ws.runtime.component.CompositionUnitMgrImpl@4fb44fb4 com.ibm.ws.exception.RuntimeWarning: org.apache.tuscany.sca.core.assembly.ActivationException: java.lang.IllegalArgumentException at com.ibm.ws.soa.sca.admin.runtime.impl.SCARuntimeImpl.start(SCARuntimeImpl.java:421) at com.ibm.ws.soa.sca.admin.runtime.impl.SCARuntimeImpl.start(SCARuntimeImpl.java:494) at com.ibm.ws.runtime.component.CompositionUnitMgrImpl.start(CompositionUnitMgrImpl.java:439) at com.ibm.ws.runtime.component.CompositionUnitImpl.start(CompositionUnitImpl.java:123) at com.ibm.ws.runtime.component.CompositionUnitMgrImpl.start(CompositionUnitMgrImpl.java:382) at com.ibm.ws.runtime.component.CompositionUnitMgrImpl.access$300(CompositionUnitMgrImpl.java:110) at com.ibm.ws.runtime.component.CompositionUnitMgrImpl$CUInitializer.run(CompositionUnitMgrImpl.java:949) at com.ibm.wsspi.runtime.component.WsComponentImpl$_AsynchInitializer.run(WsComponentImpl.java:349) at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1550) Caused by: org.apache.tuscany.sca.core.assembly.ActivationException: java.lang.IllegalArgumentException at org.apache.tuscany.sca.core.assembly.CompositeActivatorImpl.activate(CompositeActivatorImpl.java:1002) at com.ibm.ws.soa.sca.runtime.impl.DomainCompositeHelper.startComposites(DomainCompositeHelper.java:199) at com.ibm.ws.soa.sca.runtime.impl.SCAContainerComponentImpl.startComposite(SCAContainerComponentImpl.java:391) at com.ibm.ws.soa.sca.admin.runtime.tuscany.SCATuscanyRuntimeHandlerImpl.startModule(SCATuscanyRuntimeHandlerImpl.java:168) at com.ibm.ws.soa.sca.admin.runtime.impl.SCARuntimeImpl.start(SCARuntimeImpl.java:387) ... 8 more Caused by: java.lang.IllegalArgumentException at java.net.URI.create(URI.java:854) at org.apache.tuscany.sca.binding.ws.axis2.Axis2ServiceProvider.computeWASActualURI(Axis2ServiceProvider.java:580) at org.apache.tuscany.sca.binding.ws.axis2.Axis2ServiceProvider.<init>(Axis2ServiceProvider.java:314) at org.apache.tuscany.sca.binding.ws.axis2.Axis2ServiceBindingProvider.<init>(Axis2ServiceBindingProvider.java:151) at org.apache.tuscany.sca.binding.ws.axis2.Axis2BindingProviderFactory.createServiceBindingProvider(Axis2BindingProviderFactory.java:117) at org.apache.tuscany.sca.binding.ws.axis2.Axis2BindingProviderFactory.createServiceBindingProvider(Axis2BindingProviderFactory.java:65) at org.apache.tuscany.sca.core.assembly.CompositeActivatorImpl.addServiceBindingProvider(CompositeActivatorImpl.java:516) at org.apache.tuscany.sca.core.assembly.CompositeActivatorImpl.activate(CompositeActivatorImpl.java:878) at org.apache.tuscany.sca.core.assembly.CompositeActivatorImpl.activate(CompositeActivatorImpl.java:994) ... 12 more Caused by: java.net.URISyntaxException: Expected scheme name at index 0: :
//:/AppAuditServiceSpringScaWSComponent/AppAuditService at java.net.URI$Parser.fail(URI.java:2821) at java.net.URI$Parser.failExpecting(URI.java:2827) at java.net.URI$Parser.parse(URI.java:3016) at java.net.URI.<init>(URI.java:590) at java.net.URI.create(URI.java:852) ... 20 more


It seems like the server is unable to generate an endpoint for the Web Service. While deploying we chose to deploy with virtual host as 'Default Host'.

We would really appreciate some help here.

Thanks
Rohit
Updated on 2010-06-07T21:25:57Z at 2010-06-07T21:25:57Z by Rohit_R
  • Tom.Seelbach
    Tom.Seelbach
    11 Posts
    ACCEPTED ANSWER

    Re: SCA Component with WS binding fails to start in ND environment

    ‏2010-06-03T23:12:13Z  in response to Rohit_R
    Rohit_R,
    This looks familiar and it may be that the Virtual Host needs to be setup for the server. If you add additional servers with  unique ports, WebSphere does not automatically configure the Virtual Host for the server. Specifically WebSphere does not add the host alias ports to a Virtual Host.  You can go to Environment->Virtual hosts and add a new host alias for each of the ports used by the new server. 

    hope this helps.
    Tom
    • Rohit_R
      Rohit_R
      24 Posts
      ACCEPTED ANSWER

      Re: SCA Component with WS binding fails to start in ND environment

      ‏2010-06-07T21:25:57Z  in response to Tom.Seelbach
      Tom,
      setting up the host alias of the server's port did indeed fix the problem.
      Thanks
      Rohit