-
1. Re: Caught RuntimeException "JNDIProjectStageDetector didn't implement the Extension interface"
paul_ Feb 15, 2012 7:53 AM (in response to paul_)by the way, i am using a nightly build of JBoss AS 7.1.0, downloaded on February 10th, 16:42:16 (GMT+1)
Also, Seam is in Version 3.1.0-Final and Richfaces is in Version 4.1.0-Final
Maybe this helps..
-
2. Re: Caught RuntimeException "JNDIProjectStageDetector didn't implement the Extension interface"
paul_ Feb 15, 2012 8:54 AM (in response to paul_)Well i did a little research. This is the beginning of the stacktrace:
java.lang.RuntimeException: Service class org.jboss.seam.faces.projectstage.JNDIProjectStageDetector didn't implement the Extension interface
at org.jboss.solder.util.service.ServiceLoader.loadClass(ServiceLoader.java:217)
at org.jboss.solder.util.service.ServiceLoader.loadService(ServiceLoader.java:197)
at org.jboss.solder.util.service.ServiceLoader.loadServiceFile(ServiceLoader.java:169)
at org.jboss.solder.util.service.ServiceLoader.reload(ServiceLoader.java:143)
at org.jboss.solder.util.service.ServiceLoader.iterator(ServiceLoader.java:284)
at org.jboss.seam.faces.projectstage.ProjectStageExtension.detectProjectStage(ProjectStageExtension.java:123)
at org.jboss.seam.faces.projectstage.ProjectStageExtension.processAnnotatedType(ProjectStageExtension.java:65)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
Well, let's have a look at the JNDIProjectStageDetector, it implements ProjectStageDetector.
ProjectStageDetector extends from org.jboss.solder.util.Sortable, which defines an interface only holding a comparator...
So obviously, the JNDIProjectStageDetector indeed does not implement the Extension interface.... or am I missing something?
(I just recognized, this is merely a seam-related problem and actually has nothing to do with richfaces, I will move the topic)
-
3. Re: Caught RuntimeException "JNDIProjectStageDetector didn't implement the Extension interface"
lightguard Feb 15, 2012 5:07 PM (in response to paul_)Try 7.1.0.CR1b or 7.0.2
We haven't seen this before, if it works in those servers then it could be something that's changed in AS.
-
4. Re: Caught RuntimeException "JNDIProjectStageDetector didn't implement the Extension interface"
chkal Feb 16, 2012 1:55 AM (in response to paul_)1 of 1 people found this helpfulThat's a really weird issue. The exception means that the implementation class JNDIProjectStageDetector does not implement the SPI interface ProjectStageDetector. See the loadClass() method here:
I really don't know why this is happening. Perhaps a class loading issue? But this shouldn't happen as both classes (the SPI and the implementation) are loaded from the same archive.
-
5. Re: Caught RuntimeException "JNDIProjectStageDetector didn't implement the Extension interface"
paul_ Feb 16, 2012 9:19 AM (in response to chkal)currently my guess is that I used two imported libs which are already available from the jboss module system.
(also switched back to JBoss 7.1.0 CR1b)
So i got rid of that, but now i'm stuck somewhere else:
"Service class org.jboss.solder.resourceLoader.ClasspathResourceLoader didn't implement the Extension interface"
This slowly gets a bit frustrating..
___________________________________got that also resolved. Now I'm stuck at
https://community.jboss.org/message/650715#650715
"WELD-001408 Unsatisfied dependencies for type FormValidationTypeOverrideExtension"
it's like chasing a ghost..
-
6. Re: Caught RuntimeException "JNDIProjectStageDetector didn't implement the Extension interface"
chkal Feb 16, 2012 2:26 PM (in response to paul_)Nice to you you resolved this strange exception. Could you tell us what you did to fix it? I would be interested to know that!
-
7. Re: Caught RuntimeException "JNDIProjectStageDetector didn't implement the Extension interface"
paul_ Feb 17, 2012 3:10 AM (in response to chkal)can't tell you exactly how I resolved it, though my guess is a redundant dependency being used.
It helped to look at https://docs.jboss.org/author/display/AS71/Developer+Guide#DeveloperGuide-EARClassLoading again and check the 5 projects for redundancies
(The application i'm migrating consists of an EAR packaging 2 EJB Modules and 2 WARs)
I am relatively new to the whole Seam / JBoss / JSF thing so maybe I'm making mistakes which first result in such strange exceptions but become clear with a little reading in the developer guide..