TomEE startup problem

Immediately after starting TomEE, a problem occurs:

WARNING: Can't set TomEE ServerEndpointConfig$Configurator
java.lang.NoSuchFieldException: defaultImpl
    at java.lang.Class.getDeclaredField(Class.java:2062)
    at org.apache.tomee.catalina.TomcatWebAppBuilder.forceEEServerEndpointConfigurator(TomcatWebAppBuilder.java:338)
    at org.apache.tomee.catalina.TomcatWebAppBuilder.<init>(TomcatWebAppBuilder.java:284)
    at org.apache.tomee.catalina.TomcatLoader.initialize(TomcatLoader.java:222)
    at org.apache.tomee.catalina.ServerListener.install(ServerListener.java:168)
    at org.apache.tomee.catalina.ServerListener.lifecycleEvent(ServerListener.java:55)
    at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
    at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
    at org.apache.catalina.util.LifecycleBase.setStateInternal(LifecycleBase.java:402)
    at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:110)
    at org.apache.catalina.startup.Catalina.load(Catalina.java:638)
    at org.apache.catalina.startup.Catalina.load(Catalina.java:663)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:483)
    at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:280)
    at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:454)

No other consequences, however, why is this happening? I can provide additional information if necessary.

+4
source share
1 answer

Are you using TomEE c javaee-api-7.0.jarin your TomEE 1.6 / 1.7 lib directory? I started to see the same message as soon as I started trying to use some of the Java EE 7 features, replacing the EE6 jar with EE7.

At the time of this writing, TomEE does not support the Java EE 7 specification (we are probably getting this strange error). However, there is a snapshot of TomEE 2.0 that includes javaee-api-7.0-SNAPSHOT.jar, and the error does not appear in my console when using it.

http://tomee.apache.org/download/tomee-2.0.0-snapshot.html

EE7.

+3

Source: https://habr.com/ru/post/1608941/


All Articles