NoClassDefFoundError: org/apache/tomcat/InstanceManager when using myfaces with wildfly

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

NoClassDefFoundError: org/apache/tomcat/InstanceManager when using myfaces with wildfly

DevNews
Hallo,

I deploy my application (myfaces2.2.8, richfaces4.5.17, tomahawk21.1.1.14) to an wildfly 11

I see this Exception on starttup of my application:

Caused by: java.lang.NoClassDefFoundError: org/apache/tomcat/InstanceManager
at org.apache.myfaces.config.annotation.Tomcat7AnnotationLifecycleProvider.initManager(Tomcat7AnnotationLifecycleProvider.java:132)
at org.apache.myfaces.config.annotation.Tomcat7AnnotationLifecycleProvider.postConstruct(Tomcat7AnnotationLifecycleProvider.java:81)
at org.apache.myfaces.config.ManagedBeanBuilder.buildManagedBean(ManagedBeanBuilder.java:213)
at org.apache.myfaces.el.unified.resolver.ManagedBeanResolver.createManagedBean(ManagedBeanResolver.java:333)
at org.apache.myfaces.el.unified.resolver.ManagedBeanResolver.getValue(ManagedBeanResolver.java:296)
at javax.el.CompositeELResolver.getValue(CompositeELResolver.java:188)
at org.apache.myfaces.el.unified.resolver.FacesCompositeELResolver.getValue(FacesCompositeELResolver.java:169)
at org.apache.myfaces.el.VariableResolverImpl.resolveVariable(VariableResolverImpl.java:65)


What to do?

Thanks Georg



Tel:
E-Mail: [hidden email]
Internet: https://www.safir-wid.de

safir Wirtschaftsinformationsdienst GmbH
Sitz der Gesellschaft: Möllendorffstr.49, 10367 Berlin
Geschäftsführer: Thilo Kind
Registergericht: Amtsgericht Berlin Charlottenburg, HRB 66681
USt-ID: DE 193584747




--
This email was Malware checked by UTM 9. http://www.sophos.com
Reply | Threaded
Open this post in threaded view
|

Re: NoClassDefFoundError: org/apache/tomcat/InstanceManager when using myfaces with wildfly

Thomas Andraschko-4
I think you can set something like:

    <context-param>

<param-name>org.apache.myfaces.config.annotation.LifecycleProvider</param-name>

<param-value>org.apache.myfaces.config.annotation.NoInjectionAnnotationLifecycleProvider</param-value>
    </context-param>

<https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail>
Virenfrei.
www.avast.com
<https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail>
<#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>

Am Fr., 16. Aug. 2019 um 13:13 Uhr schrieb DevNews <[hidden email]>:

> Hallo,
>
> I deploy my application (myfaces2.2.8, richfaces4.5.17, tomahawk21.1.1.14)
> to an wildfly 11
>
> I see this Exception on starttup of my application:
>
> Caused by: java.lang.NoClassDefFoundError:
> org/apache/tomcat/InstanceManager
> at
> org.apache.myfaces.config.annotation.Tomcat7AnnotationLifecycleProvider.initManager(Tomcat7AnnotationLifecycleProvider.java:132)
> at
> org.apache.myfaces.config.annotation.Tomcat7AnnotationLifecycleProvider.postConstruct(Tomcat7AnnotationLifecycleProvider.java:81)
> at
> org.apache.myfaces.config.ManagedBeanBuilder.buildManagedBean(ManagedBeanBuilder.java:213)
> at
> org.apache.myfaces.el.unified.resolver.ManagedBeanResolver.createManagedBean(ManagedBeanResolver.java:333)
> at
> org.apache.myfaces.el.unified.resolver.ManagedBeanResolver.getValue(ManagedBeanResolver.java:296)
> at javax.el.CompositeELResolver.getValue(CompositeELResolver.java:188)
> at
> org.apache.myfaces.el.unified.resolver.FacesCompositeELResolver.getValue(FacesCompositeELResolver.java:169)
> at
> org.apache.myfaces.el.VariableResolverImpl.resolveVariable(VariableResolverImpl.java:65)
>
>
> What to do?
>
> Thanks Georg
>
>
>
> Tel:
> E-Mail: [hidden email]
> Internet: https://www.safir-wid.de
>
> safir Wirtschaftsinformationsdienst GmbH
> Sitz der Gesellschaft: Möllendorffstr.49, 10367 Berlin
> Geschäftsführer: Thilo Kind
> Registergericht: Amtsgericht Berlin Charlottenburg, HRB 66681
> USt-ID: DE 193584747
>
>
>
>
> --
> This email was Malware checked by UTM 9. http://www.sophos.com
>
Reply | Threaded
Open this post in threaded view
|

AW: NoClassDefFoundError: org/apache/tomcat/InstanceManager when using myfaces with wildfly

DevNews
Hallo Thomas,

with this contxt parameter it works!
Thank You!

Georg





Tel:
E-Mail: [hidden email]
Internet: https://www.safir-wid.de

safir Wirtschaftsinformationsdienst GmbH
Sitz der Gesellschaft: Möllendorffstr.49, 10367 Berlin
Geschäftsführer: Thilo Kind
Registergericht: Amtsgericht Berlin Charlottenburg, HRB 66681
USt-ID: DE 193584747



-----Ursprüngliche Nachricht-----
Von: Thomas Andraschko <[hidden email]>
Gesendet: Freitag, 16. August 2019 17:55
An: MyFaces Discussion <[hidden email]>
Betreff: Re: NoClassDefFoundError: org/apache/tomcat/InstanceManager when using myfaces with wildfly

I think you can set something like:

    <context-param>

<param-name>org.apache.myfaces.config.annotation.LifecycleProvider</param-name>

<param-value>org.apache.myfaces.config.annotation.NoInjectionAnnotationLifecycleProvider</param-value>
    </context-param>

<https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail>
Virenfrei.
www.avast.com
<https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail>
<#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>

Am Fr., 16. Aug. 2019 um 13:13 Uhr schrieb DevNews <[hidden email]>:

> Hallo,
>
> I deploy my application (myfaces2.2.8, richfaces4.5.17,
> tomahawk21.1.1.14) to an wildfly 11
>
> I see this Exception on starttup of my application:
>
> Caused by: java.lang.NoClassDefFoundError:
> org/apache/tomcat/InstanceManager
> at
> org.apache.myfaces.config.annotation.Tomcat7AnnotationLifecycleProvide
> r.initManager(Tomcat7AnnotationLifecycleProvider.java:132)
> at
> org.apache.myfaces.config.annotation.Tomcat7AnnotationLifecycleProvide
> r.postConstruct(Tomcat7AnnotationLifecycleProvider.java:81)
> at
> org.apache.myfaces.config.ManagedBeanBuilder.buildManagedBean(ManagedB
> eanBuilder.java:213)
> at
> org.apache.myfaces.el.unified.resolver.ManagedBeanResolver.createManag
> edBean(ManagedBeanResolver.java:333)
> at
> org.apache.myfaces.el.unified.resolver.ManagedBeanResolver.getValue(Ma
> nagedBeanResolver.java:296) at
> javax.el.CompositeELResolver.getValue(CompositeELResolver.java:188)
> at
> org.apache.myfaces.el.unified.resolver.FacesCompositeELResolver.getVal
> ue(FacesCompositeELResolver.java:169)
> at
> org.apache.myfaces.el.VariableResolverImpl.resolveVariable(VariableRes
> olverImpl.java:65)
>
>
> What to do?
>
> Thanks Georg
>
>
>
> Tel:
> E-Mail: [hidden email]
> Internet: https://www.safir-wid.de
>
> safir Wirtschaftsinformationsdienst GmbH Sitz der Gesellschaft:
> Möllendorffstr.49, 10367 Berlin
> Geschäftsführer: Thilo Kind
> Registergericht: Amtsgericht Berlin Charlottenburg, HRB 66681
> USt-ID: DE 193584747
>
>
>
>
> --
> This email was Malware checked by UTM 9. http://www.sophos.com
>

--
This email was Malware checked by UTM 9. http://www.sophos.com