<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">I'm able to reproduce it.<br>
      <br>
      If I compile against 7.1.1.Final (root pom.xml)<br>
      Deploy will fail with the 'Method not found'.<br>
      If I change to 7.2.0.Alpha1-SNAPSHOT it will work<br>
      If I change back to verify it with 7.1.1 it will fail again.<br>
      <br>
      I only change this, nothing else (I promise)<br>
      <br>
      I'm not sure what the reason is, but it will be a very nasty
      problem for developers :(<br>
      Any thoughts (or better solutions) about this?<br>
      <br>
      Wolf<br>
      <br>
      <br>
      On 07/18/2012 04:38 PM, Wolf-Dieter Fink wrote:<br>
    </div>
    <blockquote cite="mid:5006CA7B.8090806@redhat.com" type="cite">
      <meta content="text/html; charset=ISO-8859-1"
        http-equiv="Content-Type">
      <div class="moz-cite-prefix"><br>
        <br>
        My code is<br>
        &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; ServiceController&lt;String&gt; controller = singleton<b>.build(CurrentServiceContainer.getServiceContainer())</b><br>
        &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;
        .addDependency(ServerEnvironmentService.SERVICE_NAME,
        ServerEnvironment.class, service.env)<br>
        &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; .install();<br>
        CurrentServiceContainer is:<br>
        &nbsp;&nbsp;&nbsp; &nbsp;&nbsp; public static ServiceContainer getServiceContainer()<br>
        &nbsp;&nbsp; &nbsp;&nbsp;&nbsp; {<br>
        &nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; return serviceContainer;<br>
        &nbsp;&nbsp; &nbsp;&nbsp;&nbsp; }<br>
        And ServiceContainer:<br>
        &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; 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&#382; 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>
            &nbsp; &nbsp; &nbsp;at<br>
org.jboss.as.quickstarts.cluster.hasingleton.service.ejb.StartupSingleton.startup(StartupSingleton.java:62)<br>
            &nbsp; &nbsp; &nbsp;at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
            Method)<br>
            [rt.jar:1.6.0_22]<br>
            &nbsp; &nbsp; &nbsp;at<br>
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)<br>
            [rt.jar:1.6.0_22]<br>
            &nbsp; &nbsp; &nbsp;at<br>
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)<br>
            [rt.jar:1.6.0_22]<br>
            &nbsp; &nbsp; &nbsp;at java.lang.reflect.Method.invoke(Method.java:616)
            [rt.jar:1.6.0_22]<br>
            &nbsp; &nbsp; &nbsp;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>
            &nbsp; &nbsp; &nbsp;at<br>
org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)<br>
            [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]<br>
            &nbsp; &nbsp; &nbsp;at<br>
org.jboss.invocation.WeavedInterceptor.processInvocation(WeavedInterceptor.java:53)<br>
            [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]<br>
            &nbsp; &nbsp; &nbsp;at<br>
org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)<br>
            [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]<br>
            &nbsp; &nbsp; &nbsp;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>
            &nbsp; &nbsp; &nbsp;at<br>
org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)<br>
            [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]<br>
            &nbsp; &nbsp; &nbsp;at<br>
org.jboss.invocation.WeavedInterceptor.processInvocation(WeavedInterceptor.java:53)<br>
            [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]<br>
            &nbsp; &nbsp; &nbsp;at<br>
org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)<br>
            [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]<br>
            &nbsp; &nbsp; &nbsp;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>
            &nbsp; &nbsp; &nbsp;at<br>
org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)<br>
            [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]<br>
            &nbsp; &nbsp; &nbsp;at<br>
org.jboss.as.ejb3.tx.CMTTxInterceptor.invokeInOurTx(CMTTxInterceptor.java:227)<br>
            &nbsp; &nbsp; &nbsp;... 20 more<br>
            <br>
            15:55:17,013 INFO &nbsp;[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>
            &nbsp; &nbsp; &nbsp;Caused by: java.lang.IllegalStateException: JBAS011048:
            Failed to<br>
            construct component instance<br>
            &nbsp; &nbsp; &nbsp;Caused by: javax.ejb.EJBException: Unexpected Error<br>
            &nbsp; &nbsp; &nbsp;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>
    </blockquote>
    <br>
  </body>
</html>