Topic
8 replies Latest Post - ‏2012-02-24T11:13:48Z by SteveKinder
SystemAdmin
SystemAdmin
126 Posts
ACCEPTED ANSWER

Pinned topic SCA component with Spring Implementation.

‏2011-08-04T06:07:31Z |
Hi,

Please help me with the issue I am facing while trying to deploy my SCA component with Spring implementation.

I have created my first sample application for SCA component with Spring implementation using the tutorial at below :-

http://publib.boulder.ibm.com/infocenter/radhelp/v8/index.jsp?topic=/com.ibm.sca.tools.doc/tutorials/spring/sca_spring_abstract.html

However while trying to deploy it as a BLA on WAS, I am not able to start this BLA and getting the exception as below :-

04/08/11 01:21:05:132 VET 00000038 SCAContainerC I CWSOA0011I: The Service Component Architecture (SCA) composite in the Weather application is stopping.
04/08/11 01:21:05:101 VET 00000038 SystemErr R java.lang.reflect.InvocationTargetException
04/08/11 01:21:05:101 VET 00000038 SystemErr R at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
04/08/11 01:21:05:101 VET 00000038 SystemErr R at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:60)
04/08/11 01:21:05:101 VET 00000038 SystemErr R at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
04/08/11 01:21:05:101 VET 00000038 SystemErr R at java.lang.reflect.Method.invoke(Method.java:611)
04/08/11 01:21:05:101 VET 00000038 SystemErr R at org.apache.tuscany.sca.implementation.spring.invocation.SpringContextStub.start(SpringContextStub.java:101)
04/08/11 01:21:05:101 VET 00000038 SystemErr R at org.apache.tuscany.sca.implementation.spring.invocation.SpringImplementationProvider.start(SpringImplementationProvider.java:78)
04/08/11 01:21:05:101 VET 00000038 SystemErr R at org.apache.tuscany.sca.core.assembly.CompositeActivatorImpl.start(CompositeActivatorImpl.java:649)
04/08/11 01:21:05:101 VET 00000038 SystemErr R at org.apache.tuscany.sca.core.assembly.CompositeActivatorImpl.start(CompositeActivatorImpl.java:565)
04/08/11 01:21:05:101 VET 00000038 SystemErr R at com.ibm.ws.soa.sca.runtime.impl.DomainCompositeHelper.startComposites(DomainCompositeHelper.java:212)
04/08/11 01:21:05:101 VET 00000038 SystemErr R at com.ibm.ws.soa.sca.runtime.impl.SCAContainerComponentImpl.startComposite(SCAContainerComponentImpl.java:391)
04/08/11 01:21:05:101 VET 00000038 SystemErr R at com.ibm.ws.soa.sca.admin.runtime.tuscany.SCATuscanyRuntimeHandlerImpl.startModule(SCATuscanyRuntimeHandlerImpl.java:181)
04/08/11 01:21:05:101 VET 00000038 SystemErr R at com.ibm.ws.soa.sca.admin.runtime.impl.SCARuntimeImpl.start(SCARuntimeImpl.java:453)
04/08/11 01:21:05:101 VET 00000038 SystemErr R at com.ibm.ws.soa.sca.admin.runtime.impl.SCARuntimeImpl.start(SCARuntimeImpl.java:583)
04/08/11 01:21:05:101 VET 00000038 SystemErr R at com.ibm.ws.runtime.component.CompositionUnitMgrImpl.start(CompositionUnitMgrImpl.java:441)
04/08/11 01:21:05:101 VET 00000038 SystemErr R at com.ibm.ws.runtime.component.CompositionUnitImpl.start(CompositionUnitImpl.java:123)
04/08/11 01:21:05:101 VET 00000038 SystemErr R at com.ibm.ws.runtime.component.CompositionUnitMgrImpl.start(CompositionUnitMgrImpl.java:384)
04/08/11 01:21:05:101 VET 00000038 SystemErr R at com.ibm.ws.runtime.component.CompositionUnitMgrImpl.startCompositionUnit(CompositionUnitMgrImpl.java:655)
04/08/11 01:21:05:101 VET 00000038 SystemErr R at com.ibm.ws.runtime.component.CompositionUnitMgrImpl.startCompositionUnit(CompositionUnitMgrImpl.java:617)
04/08/11 01:21:05:101 VET 00000038 SystemErr R at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
04/08/11 01:21:05:101 VET 00000038 SystemErr R at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:60)
04/08/11 01:21:05:101 VET 00000038 SystemErr R at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
04/08/11 01:21:05:101 VET 00000038 SystemErr R at java.lang.reflect.Method.invoke(Method.java:611)
04/08/11 01:21:05:101 VET 00000038 SystemErr R at sun.reflect.misc.Trampoline.invoke(MethodUtil.java:49)
04/08/11 01:21:05:101 VET 00000038 SystemErr R at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
04/08/11 01:21:05:101 VET 00000038 SystemErr R at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:60)
04/08/11 01:21:05:101 VET 00000038 SystemErr R at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
04/08/11 01:21:05:101 VET 00000038 SystemErr R at java.lang.reflect.Method.invoke(Method.java:611)
04/08/11 01:21:05:101 VET 00000038 SystemErr R at sun.reflect.misc.MethodUtil.invoke(MethodUtil.java:256)
04/08/11 01:21:05:101 VET 00000038 SystemErr R at javax.management.modelmbean.RequiredModelMBean.invokeMethod(RequiredModelMBean.java:1085)
04/08/11 01:21:05:101 VET 00000038 SystemErr R at javax.management.modelmbean.RequiredModelMBean.invoke(RequiredModelMBean.java:966)
04/08/11 01:21:05:101 VET 00000038 SystemErr R at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:848)
04/08/11 01:21:05:101 VET 00000038 SystemErr R at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:773)
04/08/11 01:21:05:101 VET 00000038 SystemErr R at com.ibm.ws.management.AdminServiceImpl$1.run(AdminServiceImpl.java:1332)
04/08/11 01:21:05:101 VET 00000038 SystemErr R at com.ibm.ws.security.util.AccessController.doPrivileged(AccessController.java:118)
04/08/11 01:21:05:101 VET 00000038 SystemErr R at com.ibm.ws.management.AdminServiceImpl.invoke(AdminServiceImpl.java:1225)
04/08/11 01:21:05:101 VET 00000038 SystemErr R at com.ibm.ws.management.bla.runtime.ControlOperationHelper.execControlOpViaRuntimeMBean(ControlOperationHelper.java:1046)
04/08/11 01:21:05:101 VET 00000038 SystemErr R at com.ibm.ws.management.bla.runtime.ControlOperationHelper.execControlOpOnLocalServer(ControlOperationHelper.java:533)
04/08/11 01:21:05:101 VET 00000038 SystemErr R at com.ibm.wsspi.management.bla.runtime.CompUnitControlOpDispatcher.dispatchCompUnitControlOpToTarget(CompUnitControlOpDispatcher.java:258)
04/08/11 01:21:05:101 VET 00000038 SystemErr R at com.ibm.wsspi.management.bla.runtime.CompUnitControlOpDispatcher.dispatch(CompUnitControlOpDispatcher.java:181)
04/08/11 01:21:05:101 VET 00000038 SystemErr R at com.ibm.ws.management.bla.steps.StepStartBLA.execute(StepStartBLA.java:157)
04/08/11 01:21:05:101 VET 00000038 SystemErr R at com.ibm.wsspi.management.bla.op.compound.Phase.execute(Phase.java:151)
04/08/11 01:21:05:101 VET 00000038 SystemErr R at com.ibm.wsspi.management.bla.op.compound.CompoundOperation._doPhaseExecute(CompoundOperation.java:102)
04/08/11 01:21:05:101 VET 00000038 SystemErr R at com.ibm.wsspi.management.bla.op.compound.CompoundOperation.doExecute(CompoundOperation.java:85)
04/08/11 01:21:05:101 VET 00000038 SystemErr R at com.ibm.wsspi.management.bla.op.Operation.execute(Operation.java:158)
04/08/11 01:21:05:101 VET 00000038 SystemErr R at com.ibm.wsspi.management.bla.op.compound.CompoundOperation.execute(CompoundOperation.java:68)
04/08/11 01:21:05:101 VET 00000038 SystemErr R at com.ibm.ws.management.bla.commands.ADTCommand$OperationScheduler.run(ADTCommand.java:543)
04/08/11 01:21:05:101 VET 00000038 SystemErr R at java.lang.Thread.run(Thread.java:736)
04/08/11 01:21:05:101 VET 00000038 SystemErr R Caused by: java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
04/08/11 01:21:05:101 VET 00000038 SystemErr R at org.apache.tuscany.sca.implementation.spring.runtime.context.SpringImplementationStub.getURI(SpringImplementationStub.java:65)
04/08/11 01:21:05:101 VET 00000038 SystemErr R at org.apache.tuscany.sca.implementation.spring.runtime.context.SCAParentApplicationContext.getDisplayName(SCAParentApplicationContext.java:114)
04/08/11 01:21:05:101 VET 00000038 SystemErr R at org.springframework.context.support.AbstractApplicationContext.toString(AbstractApplicationContext.java:1302)
04/08/11 01:21:05:101 VET 00000038 SystemErr R at java.lang.String.valueOf(String.java:1512)
04/08/11 01:21:05:101 VET 00000038 SystemErr R at java.lang.StringBuilder.append(StringBuilder.java:191)
04/08/11 01:21:05:101 VET 00000038 SystemErr R at org.springframework.context.support.AbstractApplicationContext.prepareRefresh(AbstractApplicationContext.java:456)
04/08/11 01:21:05:101 VET 00000038 SystemErr R at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:394)
04/08/11 01:21:05:101 VET 00000038 SystemErr R at org.apache.tuscany.sca.implementation.spring.runtime.context.SpringContextTie.start(SpringContextTie.java:101)
04/08/11 01:21:05:101 VET 00000038 SystemErr R ... 47 more
04/08/11 01:21:05:101 VET 00000038 SystemErr R Caused by: java.lang.reflect.InvocationTargetException
04/08/11 01:21:05:101 VET 00000038 SystemErr R at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
04/08/11 01:21:05:101 VET 00000038 SystemErr R at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:60)
04/08/11 01:21:05:101 VET 00000038 SystemErr R at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
04/08/11 01:21:05:101 VET 00000038 SystemErr R at java.lang.reflect.Method.invoke(Method.java:611)
04/08/11 01:21:05:101 VET 00000038 SystemErr R at org.apache.tuscany.sca.implementation.spring.runtime.context.SpringImplementationStub.getURI(SpringImplementationStub.java:62)
04/08/11 01:21:05:101 VET 00000038 SystemErr R ... 54 more
04/08/11 01:21:05:101 VET 00000038 SystemErr R Caused by: java.lang.IllegalStateException: Not yet impl
04/08/11 01:21:05:101 VET 00000038 SystemErr R at org.apache.tuscany.sca.implementation.spring.invocation.SpringImplementationTie.getURI(SpringImplementationTie.java:53)
04/08/11 01:21:05:101 VET 00000038 SystemErr R ... 59 more
04/08/11 01:21:05:164 VET 00000038 FfdcProvider W com.ibm.ws.ffdc.impl.FfdcProvider logIncident FFDC1003I: FFDC Incident emitted on C:\Program Files\IBM\SDP\runtimes\base_v7\profiles\WAS_7_SCA_Profile\logs\ffdc\server1_2cc82cc8_11.08.04_01.21.05.1321574500286573754043.txt com.ibm.ws.soa.sca.admin.runtime.impl.SCARuntimeImpl.start 395
04/08/11 01:21:05:164 VET 00000038 SCARuntimeImp E CWSAM2000E: The Weather composite did not start successfully.
04/08/11 01:21:05:164 VET 00000038 CompositionUn E WSVR0194E: Composition unit WebSphere:cuname=Weather in BLA WebSphere:blaname=SpringSCATutorial failed to start.
04/08/11 01:21:05:195 VET 00000038 DMAdapter I com.ibm.ws.ffdc.impl.DMAdapter getAnalysisEngine FFDC1009I: Analysis Engine using data base: C:\Program Files\IBM\SDP\runtimes\base_v7\profiles\WAS_7_SCA_Profile\properties\logbr\ffdc\adv\ffdcdb.xml
04/08/11 01:21:05:367 VET 00000038 FfdcProvider W com.ibm.ws.ffdc.impl.FfdcProvider logIncident FFDC1003I: FFDC Incident emitted on C:\Program Files\IBM\SDP\runtimes\base_v7\profiles\WAS_7_SCA_Profile\logs\ffdc\server1_2cc82cc8_11.08.04_01.21.05.1646815008529055863002.txt com.ibm.ws.management.AdminServiceImpl.invoke 679
04/08/11 01:21:05:367 VET 00000038 FfdcProvider W com.ibm.ws.ffdc.impl.FfdcProvider logIncident FFDC1003I: FFDC Incident emitted on C:\Program Files\IBM\SDP\runtimes\base_v7\profiles\WAS_7_SCA_Profile\logs\ffdc\server1_2cc82cc8_11.08.04_01.21.05.3677440807674817201316.txt com.ibm.ws.management.bla.runtime.ControlOperationHelper.execControlOpViaRuntimeMBean 1067
04/08/11 01:21:05:382 VET 00000038 CompositionUn A WSVR0190I: Starting composition unit WebSphere:cuname=SpringSharedLibAsset_0001.jar in BLA WebSphere:blaname=SpringSCATutorial.
04/08/11 01:21:05:398 VET 00000038 CompositionUn A WSVR0191I: Composition unit WebSphere:cuname=SpringSharedLibAsset_0001.jar in BLA WebSphere:blaname=SpringSCATutorial started.
04/08/11 01:21:05:398 VET 00000038 StepStartBLA A CWWMH0197E: Problems were encountered while attempting to start business-level application "WebSphere:blaname=SpringSCATutorial". It is possible that the business-level application is not running or is only partially running. Please refer to FFDC log entries for details on any failures which were encountered.
04/08/11 01:21:06:086 VET 00000038 FfdcProvider W com.ibm.ws.ffdc.impl.FfdcProvider logIncident FFDC1003I: FFDC Incident emitted on C:\Program Files\IBM\SDP\runtimes\base_v7\profiles\WAS_7_SCA_Profile\logs\ffdc\server1_2cc82cc8_11.08.04_01.21.05.3986400873857186150550.txt com.ibm.ws.management.bla.commands.ADTCommandOpScheduler.run 546
Updated on 2012-02-24T11:13:48Z at 2012-02-24T11:13:48Z by SteveKinder
  • SystemAdmin
    SystemAdmin
    126 Posts
    ACCEPTED ANSWER

    Re: SCA component with Spring Implementation.

    ‏2011-08-04T20:20:13Z  in response to SystemAdmin
    Hi Anil.

    Really hard to help you out. I tried the tutorial and it is working for me. Can you tell us WAS and RAD versions (assuming you have RAD because of the link)? perhaps attach your project...? Also, I'm seeing that some FFDC logs were generated. That would help as well.

    "Software development has been, is, and will remain fundamentally hard"
    - Grady Booch
    • SystemAdmin
      SystemAdmin
      126 Posts
      ACCEPTED ANSWER

      Re: SCA component with Spring Implementation.

      ‏2011-08-05T05:11:40Z  in response to SystemAdmin
      Hi Victor,

      Thanks for your reply.

      Please find the required details as below :-

      1). Development IDE :- "IBM® Rational® Application Developer™ for WebSphere® Software Version 7.5.5.4 (7.5.5004.RADO7554-I20110615_2319)"

      2). Application Server :- "IBM® WebSphere® Application Server V7 (32-bit) Test Environment Version 7.0.0.17 (2.0.10.WTE7070017-I20110526_1039) alongwith Feature Pack for Service Component Architecture".

      I have followed same steps as mentioned in that tutorial but couldn't make it running. Please find my SpringSharedLibAsset.jar attached herewith and let me know if there is some problem with this jar which is causing this exception.

      Thanks and Regards,
      Anil Kumar
  • SystemAdmin
    SystemAdmin
    126 Posts
    ACCEPTED ANSWER

    Re: SCA component with Spring Implementation.

    ‏2011-08-04T20:48:36Z  in response to SystemAdmin
    Hi AnilKumarFIL

    You can try deploying the Spring sample which is basically the project you will get if you follow the exact same steps of the tutorial. If that is failing then we may need the information requested by Victor
    • SystemAdmin
      SystemAdmin
      126 Posts
      ACCEPTED ANSWER

      Re: SCA component with Spring Implementation.

      ‏2011-08-05T05:19:05Z  in response to SystemAdmin
      Hi Adrian,

      I am using the same sample application, but its failing to get deployed on server. I have provided the required details in reply to Victor's message.
      • SystemAdmin
        SystemAdmin
        126 Posts
        ACCEPTED ANSWER

        Re: SCA component with Spring Implementation.

        ‏2011-08-05T05:21:42Z  in response to SystemAdmin
        Please also find my sample application jar attached herewith.

        Please let me know if I have missed something in this.

        Thanks and Regards,
        Anil Kumar
        • SystemAdmin
          SystemAdmin
          126 Posts
          ACCEPTED ANSWER

          Re: SCA component with Spring Implementation.

          ‏2011-08-05T15:31:31Z  in response to SystemAdmin
          Hello Anil,

          WAS 7.0 do not support Spring framework version 3.x, instead you should use either 2.5.5 or 2.5.6.SEC01 mentioned in the tutorial. You can confirm this information in the following URL http://publib.boulder.ibm.com/infocenter/wasinfo/v7r0/index.jsp?topic=/com.ibm.websphere.soafep.multiplatform.doc/info/ae/ae/tsca_spring_impl.html.

          Please let me know if this fix the problem.
          • naveensach
            naveensach
            1 Post
            ACCEPTED ANSWER

            Re: SCA component with Spring Implementation.

            ‏2012-02-22T16:56:51Z  in response to SystemAdmin
            Spring 3.x supports Hibernate 4, JPA support has been greatly improved, Spring JDBC has been updated, Java 6 is now fully supported, Task Executors have been greatly improved, caching support has been greatly enhanced, I am not even going to mention the Web Tier improvements etc. As a result lack of support for Spring 3.x is becoming a big issue at my current project and I am getting a push back on the use of SCA.

            Are there any plans to support Spring 3.x in near future?

            Is there a way to workaround the Spring version limitation? For example, by creating a Java proxy on top of the spring implementation and using implementation.java (instead of implementation.spring) in the SCA composite. Has anyone tried this?

            Regards,
            Naveen
            • SteveKinder
              SteveKinder
              14 Posts
              ACCEPTED ANSWER

              Re: SCA component with Spring Implementation.

              ‏2012-02-24T11:13:48Z  in response to naveensach
              Naveen,

              We appreciate your articulate, clear statement of why Spring 3.x is important to your SCA strategy, I will open an internal requirement and group that with other similar requirements for better Spring toleration. This is not a promise to deliver additional support, we are just recognizing the expression of your requirement.

              We have had customers use implementation.jee to host their Spring applications. One of the interesting things about this alternative pattern is that it changes the service interaction model from spring beans to JEE components, and the SCA container in WAS doesn't know to look for spring beans. In this model, the version of Spring is not known to SCA and so there may be additional flexibility.

              What we find in most spring applications in WebSphere is that their applications actually relies on the JEE container to provide enterprise QOS, and at the moment at least, we are unable to recognize nested programming model containers --> you either get spring or JEE, but not both. For this reason, when you dispatch a spring bean through an SCA binding using implementation.spring, your business logic is actually given control outside of a JEE container ... which means that there is no JEE context for things like java:\comp namespaces. These are local namespaces provided by the JEE container, not Spring.

              Do you have a timeframe in mind for your current project that you could share, and what release of WAS are you building your project? If you'd rather do so in private, please drop a note to me via email (kinder@us.ibm.com). We look forward to hearing from you.