Uploaded image for project: 'Tuscany'
  1. Tuscany
  2. TUSCANY-2154

demos/alert-aggregator-webapp still uses package ant target and startup failure

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • Java-SCA-1.2
    • Java-SCA-1.2
    • Java SCA Demos
    • None
    • WinXP SP2, IBM JDK5, Tomcat 6.0.13

    Description

      Firstly this demo still relies on the "package" ant target. We should replace this with "compile" which all other samples & demos use

      Secondly, on start up, the webapp fails and reports the following in the tomcat log (this looks to be the same problem as https://issues.apache.org/jira/browse/TUSCANY-2151)

      SEVERE: Exception starting filter tuscany
      org.osoa.sca.ServiceRuntimeException: java.lang.reflect.InvocationTargetException
      at org.apache.tuscany.sca.host.embedded.SCADomain.createNewInstance(SCADomain.java:264)
      at org.apache.tuscany.sca.host.embedded.SCADomain.newInstance(SCADomain.java:82)
      at org.apache.tuscany.sca.host.webapp.WebAppServletHost.init(WebAppServletHost.java:215)
      at org.apache.tuscany.sca.host.webapp.TuscanyServletFilter.init(TuscanyServletFilter.java:50)
      at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:275)
      at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:397)
      at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:108)
      at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:3693)
      at org.apache.catalina.core.StandardContext.start(StandardContext.java:4340)
      at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
      at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
      at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)
      at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:825)
      at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:714)
      at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:490)
      at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1138)
      at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)
      at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
      at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
      at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)
      at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
      at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
      at org.apache.catalina.core.StandardService.start(StandardService.java:516)
      at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
      at org.apache.catalina.startup.Catalina.start(Catalina.java:566)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:615)
      at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
      at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
      Caused by: java.lang.reflect.InvocationTargetException
      at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
      at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:67)
      at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
      at java.lang.reflect.Constructor.newInstance(Constructor.java:521)
      at org.apache.tuscany.sca.host.embedded.SCADomain.createNewInstance(SCADomain.java:246)
      ... 30 more
      Caused by: java.lang.NoClassDefFoundError: javax.wsdl.extensions.ExtensionSerializer
      at java.lang.J9VMInternals.verifyImpl(Native Method)
      at java.lang.J9VMInternals.verify(J9VMInternals.java:66)
      at java.lang.J9VMInternals.initialize(J9VMInternals.java:127)
      at java.lang.Class.forNameImpl(Native Method)
      at java.lang.Class.forName(Class.java:163)
      at org.apache.tuscany.sca.extensibility.ServiceDeclaration.loadClass(ServiceDeclaration.java:63)
      at org.apache.tuscany.sca.contribution.resolver.DefaultModelResolverExtensionPoint.getResolver(DefaultModelResolverExtensionPoint.java:65)
      at org.apache.tuscany.sca.contribution.resolver.ExtensibleModelResolver.getModelResolverInstance(ExtensibleModelResolver.java:107)
      at org.apache.tuscany.sca.contribution.resolver.ExtensibleModelResolver.addModel(ExtensibleModelResolver.java:130)
      at org.apache.tuscany.sca.contribution.service.impl.ContributionServiceImpl.processReadPhase(ContributionServiceImpl.java:407)
      at org.apache.tuscany.sca.contribution.service.impl.ContributionServiceImpl.addContribution(ContributionServiceImpl.java:339)
      at org.apache.tuscany.sca.contribution.service.impl.ContributionServiceImpl.contribute(ContributionServiceImpl.java:161)
      at org.apache.tuscany.sca.host.embedded.impl.DefaultSCADomain.addContribution(DefaultSCADomain.java:272)
      at org.apache.tuscany.sca.host.embedded.impl.DefaultSCADomain.init(DefaultSCADomain.java:152)
      at org.apache.tuscany.sca.host.embedded.impl.DefaultSCADomain.<init>(DefaultSCADomain.java:109)
      at org.apache.tuscany.sca.host.webapp.WebSCADomain.<init>(WebSCADomain.java:41)

      Attachments

        Activity

          People

            Unassigned Unassigned
            simonslaws Simon Laws
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: