Hi,<br><br>you sure it is still valid?<br><br>as looking at the code in upstream: <br><a 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<T> build(ServiceTarget target) <br>public ServiceBuilder<T> 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"><<a href="mailto:wfink@redhat.com" target="_blank">wfink@redhat.com</a>></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" =><br>
{"jboss.deployment.unit.\"jboss-as-cluster-ha-singleton-ejb.jar\".component.StartupSingleton.START"<br>
=> "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 href="mailto:jboss-as7-dev@lists.jboss.org">jboss-as7-dev@lists.jboss.org</a><br>
<a 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>