<html>
  <head>
    <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix"><br>
      <br>
      My code is<br>
              ServiceController&lt;String&gt; controller = singleton<b>.build(CurrentServiceContainer.getServiceContainer())</b><br>
                     
      .addDependency(ServerEnvironmentService.SERVICE_NAME,
      ServerEnvironment.class, service.env)<br>
                      .install();<br>
      CurrentServiceContainer is:<br>
             public static ServiceContainer getServiceContainer()<br>
             {<br>
               return serviceContainer;<br>
             }<br>
      And ServiceContainer:<br>
              public interface ServiceContainer extends <b>ServiceTarget</b>,
      ServiceRegistry {<br>
      <br>
      <br>
      So it looks valid for me, also I did not see a change of the
      methods signature.<br>
      <br>
      Wolf<br>
      <br>
      On 07/18/2012 04:25 PM, Tomaž Cerar wrote:<br>
    </div>
    <blockquote
cite="mid:CAMquZP5gG5sdpetTth7OFxCSOE8sQNQjxxM6EVfzMLVpiPmXyg@mail.gmail.com"
      type="cite">Hi,<br>
      <br>
      you sure it is still valid?<br>
      <br>
      as looking at the code in upstream: <br>
      <a moz-do-not-send="true"
href="https://github.com/jbossas/jboss-as/blob/master/clustering/singleton/src/main/java/org/jboss/as/clustering/singleton/SingletonService.java#L83">https://github.com/jbossas/jboss-as/blob/master/clustering/singleton/src/main/java/org/jboss/as/clustering/singleton/SingletonService.java#L83</a><br>
      you have two build methods and none of them take ServiceContainer<br>
      <br>
      you have:<br>
      <br>
      public ServiceBuilder&lt;T&gt; build(ServiceTarget target) <br>
      public ServiceBuilder&lt;T&gt; build(ServiceTarget target, String
      container)<br>
      <br>
      it seems that it was changed in begining of this month...<br>
      <br>
      --<br>
      tomaz<br>
      <br>
      <br>
      <br>
      <br>
      <div class="gmail_quote">On Wed, Jul 18, 2012 at 4:13 PM,
        Wolf-Dieter Fink <span dir="ltr">&lt;<a moz-do-not-send="true"
            href="mailto:wfink@redhat.com" target="_blank">wfink@redhat.com</a>&gt;</span>
        wrote:<br>
        <blockquote class="gmail_quote" style="margin:0 0 0
          .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
          <br>
          my SingeltonService will run in EAP6 and AS7.1 but the start
          will fail<br>
          in the current upstream (the service.jar is compiled against
          7.1.1.Final<br>
          maven dependencies)<br>
          I did not understand the error ATM because the method
          signature is still<br>
          valid.<br>
          My service is packed as a jar without any org.jboss classes in
          it.<br>
          <br>
          Any idea whats wrong?<br>
          <br>
          Wolf<br>
          <br>
          <br>
          Caused by: java.lang.NoSuchMethodError:<br>
org.jboss.as.clustering.singleton.SingletonService.build(Lorg/jboss/msc/service/ServiceContainer;)Lorg/jboss/msc/service/ServiceBuilder;<br>
               at<br>
org.jboss.as.quickstarts.cluster.hasingleton.service.ejb.StartupSingleton.startup(StartupSingleton.java:62)<br>
               at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
          Method)<br>
          [rt.jar:1.6.0_22]<br>
               at<br>
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)<br>
          [rt.jar:1.6.0_22]<br>
               at<br>
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)<br>
          [rt.jar:1.6.0_22]<br>
               at java.lang.reflect.Method.invoke(Method.java:616)
          [rt.jar:1.6.0_22]<br>
               at<br>
org.jboss.as.ee.component.ManagedReferenceLifecycleMethodInterceptorFactory$ManagedReferenceLifecycleMethodInterceptor.processInvocation(ManagedReferenceLifecycleMethodInterceptorFactory.java:130)<br>
          [jboss-as-ee-7.2.0.Alpha1-SNAPSHOT.jar:7.2.0.Alpha1-SNAPSHOT]<br>
               at<br>
org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)<br>
          [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]<br>
               at<br>
org.jboss.invocation.WeavedInterceptor.processInvocation(WeavedInterceptor.java:53)<br>
          [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]<br>
               at<br>
org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)<br>
          [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]<br>
               at<br>
org.jboss.as.ee.component.ManagedReferenceInterceptorFactory$ManagedReferenceInterceptor.processInvocation(ManagedReferenceInterceptorFactory.java:95)<br>
          [jboss-as-ee-7.2.0.Alpha1-SNAPSHOT.jar:7.2.0.Alpha1-SNAPSHOT]<br>
               at<br>
org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)<br>
          [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]<br>
               at<br>
org.jboss.invocation.WeavedInterceptor.processInvocation(WeavedInterceptor.java:53)<br>
          [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]<br>
               at<br>
org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)<br>
          [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]<br>
               at<br>
org.jboss.as.ee.component.NamespaceContextInterceptor.processInvocation(NamespaceContextInterceptor.java:50)<br>
          [jboss-as-ee-7.2.0.Alpha1-SNAPSHOT.jar:7.2.0.Alpha1-SNAPSHOT]<br>
               at<br>
org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)<br>
          [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]<br>
               at<br>
org.jboss.as.ejb3.tx.CMTTxInterceptor.invokeInOurTx(CMTTxInterceptor.java:227)<br>
               ... 20 more<br>
          <br>
          15:55:17,013 INFO  [org.jboss.as.server]
          (management-handler-thread - 2)<br>
          JBAS015870: Deploy of deployment
          "jboss-as-cluster-ha-singleton-ejb.jar"<br>
          was rolled back with failure message {"JBAS014671: Failed
          services" =&gt;<br>
{"jboss.deployment.unit.\"jboss-as-cluster-ha-singleton-ejb.jar\".component.StartupSingleton.START"<br>
          =&gt; "org.jboss.msc.service.StartException in service<br>
jboss.deployment.unit.\"jboss-as-cluster-ha-singleton-ejb.jar\".component.StartupSingleton.START:<br>
          java.lang.IllegalStateException: JBAS011048: Failed to
          construct<br>
          component instance<br>
               Caused by: java.lang.IllegalStateException: JBAS011048:
          Failed to<br>
          construct component instance<br>
               Caused by: javax.ejb.EJBException: Unexpected Error<br>
               Caused by: java.lang.NoSuchMethodError:<br>
org.jboss.as.clustering.singleton.SingletonService.build(Lorg/jboss/msc/service/ServiceContainer;)Lorg/jboss/msc/service/ServiceBuilder;"}}<br>
          <br>
          _______________________________________________<br>
          jboss-as7-dev mailing list<br>
          <a moz-do-not-send="true"
            href="mailto:jboss-as7-dev@lists.jboss.org">jboss-as7-dev@lists.jboss.org</a><br>
          <a moz-do-not-send="true"
            href="https://lists.jboss.org/mailman/listinfo/jboss-as7-dev"
            target="_blank">https://lists.jboss.org/mailman/listinfo/jboss-as7-dev</a><br>
        </blockquote>
      </div>
      <br>
    </blockquote>
    <br>
    <br>
    <pre class="moz-signature" cols="72">-- 
Red Hat GmbH
Technopark II, Building 1
Werner-von-Siemens-Ring 11-15
85630 Grasbrunn
Germany

Email: <a class="moz-txt-link-abbreviated" href="mailto:wfink@redhat.com">wfink@redhat.com</a>
________________________________________________________________________
Handelsregister: Amtsgericht Muenchen HRB 153243
Geschaeftsfuehrer: Mark Hegarty, Charlie Peters, Michael Cunningham, Charles Cachera
</pre>
  </body>
</html>