Exception DefaultDevelopmentModeDetector didn't implement the Extension

Splash Forums PrettyFaces Users Exception DefaultDevelopmentModeDetector didn't implement the Extension

Tagged: 

This topic contains 8 replies, has 2 voices, and was last updated by  Christian Kaltepoth 4 years, 6 months ago.

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #18977

    y.morjane
    Member

    Suddenly started to receive exception which block some resources of my web application:

    java.lang.RuntimeException: Service class com.ocpsoft.pretty.faces.config.reload.DefaultDevelopmentModeDetector didn’t implement the Extension interface

    at com.ocpsoft.pretty.faces.util.ServiceLoader.loadClass(ServiceLoader.java:254)

    at com.ocpsoft.pretty.faces.util.ServiceLoader.loadService(ServiceLoader.java:226)

    at com.ocpsoft.pretty.faces.util.ServiceLoader.loadServiceFile(ServiceLoader.java:187)

    at com.ocpsoft.pretty.faces.util.ServiceLoader.reload(ServiceLoader.java:152)

    at com.ocpsoft.pretty.faces.util.ServiceLoader.iterator(ServiceLoader.java:339)

    at com.ocpsoft.pretty.faces.config.reload.PrettyConfigReloader.isDevelopmentModeActive(PrettyConfigReloader.java:120)

    at com.ocpsoft.pretty.faces.config.reload.PrettyConfigReloader.onNewRequest(PrettyConfigReloader.java:68)

    at com.ocpsoft.pretty.PrettyFilter.doFilter(PrettyFilter.java:76)

    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)

    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)

    at cz.boza.motoforza.system.RendererFilter.doFilter(RendererFilter.java:241)

    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)

    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)

    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:224)

    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:185)

    at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)

    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:151)

    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:100)

    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)

    at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:929)

    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:405)

    at org.apache.coyote.ajp.AjpAprProcessor.process(AjpAprProcessor.java:185)

    at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:515)

    at org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.run(AprEndpoint.java:1773)

    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)

    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)

    at java.lang.Thread.run(Thread.java:722)

    My application is reachable under two domains but this exception is thrown only under one domain. very strange.

    I use PrettyFaces 3.3.3 with JSF 1.2 and ICEfaces 1.8.3

    #23196

    Seems like a classpath problem. Could you please check which PrettyFaces JAR files you have on your classpath?

    #23197

    y.morjane
    Member

    Possibly, but it throws this exception only when I access my webapp from specific domain. If access same app from another domain everything is allright. As far as I can see there is only one prettyfaces jar on my classpath.

    #23198

    This exception actually means that com.ocpsoft.pretty.faces.config.reload.DefaultDevelopmentModeDetector cannot be cast to com.ocpsoft.pretty.faces.spi.DevelopmentModeDetector. This shouldn’t fail unless there are some classloading issues. This could for example happen if the interface has been loaded by a different classloader than the implementation.

    Do you package your app as an WAR or EAR?

    #23199

    y.morjane
    Member

    I use Tomcat 7 so I package my app as WAR.

    #23200

    And you included all the JARs in the WAR and don’t manually copied them to Tomcat’s lib directory?

    #23201

    y.morjane
    Member

    Exactly. But I have defined <Alias> for my application in tomcat config of <Host> for my webapp so that this app is accesible from two domains. This exception is thrown only when I access my web app from one particular domain.

    #23202

    y.morjane
    Member

    Ok I solved my problem. By mistake there were two host configured on one web app. So the application was loaded twice from same place and this most probablly caused the problem.

    Thank you very much for your prompt help.

    #23203

    Great you got it working. :)

Viewing 9 posts - 1 through 9 (of 9 total)

You must be logged in to reply to this topic.

Comments are closed.