При развертывании в Tomcat я получаю это ошибка при именовании пакета javax.*.
Код: Выделить всё
org.apache.catalina.core.StandardContext.loadOnStartup Servlet [JerseyContainer] in web application [/myApplication] threw load() exception
java.lang.ClassNotFoundException: j a v a x . w s . r s . c o r e . F e a t u r e < b r / > a t o r g . a p a c h e . c a t a l i n a . l o a d e r . W e b a p p C l a s s L o a d e r B a s e . l o a d C l a s s ( W e b a p p C l a s s L o a d e r B a s e . j a v a : 1 3 3 2 ) < b r / > a t o r g . a p a c h e . c a t a l i n a . l o a d e r . W e b a p p C l a s s L o a d e r B a s e . l o a d C l a s s ( W e b a p p C l a s s L o a d e r B a s e . j a v a : 1 1 4 4 ) < b r / > a t j a v a . b a s e / j a v a . l a n g . C l a s s L o a d e r . d e f i n e C l a s s 1 ( N a t i v e M e t h o d ) < b r / > a t j a v a . b a s e / j a v a . l a n g . C l a s s L o a d e r . d e f i n e C l a s s ( C l a s s L o a d e r . j a v a : 1 0 2 3 ) < b r / > a t j a v a . b a s e / j a v a . s e c u r i t y . S e c u r e C l a s s L o a d e r . d e f i n e C l a s s ( S e c u r e C l a s s L o a d e r . j a v a : 1 5 0 ) < b r / > a t o r g . a p a c h e . c a t a l i n a . l o a d e r . W e b a p p C l a s s L o a d e r B a s e . f i n d C l a s s I n t e r n a l ( W e b a p p C l a s s L o a d e r B a s e . j a v a : 2 3 0 2 ) < b r / > a t o r g . a p a c h e . c a t a l i n a . l o a d e r . W e b a p p C l a s s L o a d e r B a s e . f i n d C l a s s ( W e b a p p C l a s s L o a d e r B a s e . j a v a : 7 8 7 ) < b r / > a t o r g . a p a c h e . c a t a l i n a . l o a d e r . W e b a p p C l a s s L o a d e r B a s e . l o a d C l a s s ( W e b a p p C l a s s L o a d e r B a s e . j a v a : 1 2 9 6 ) < b r / > a t o r g . a p a c h e . c a t a l i n a . l o a d e r . W e b a p p C l a s s L o a d e r B a s e . l o a d C l a s s ( W e b a p p C l a s s L o a d e r B a s e . j a v a : 1 1 4 4 ) < b r / > a t o r g . g l a s s f i s h . j e r s e y . s e r v e r . R e s o u r c e C o n f i g . s c a n C l a s s e s ( R e s o u r c e C o n f i g . j a v a : 8 9 1 ) < b r / > a t o r g . g l a s s f i s h . j e r s e y . s e r v e r . R e s o u r c e C o n f i g . _ g e t C l a s s e s ( R e s o u r c e C o n f i g . j a v a : 8 7 2 ) < b r / > a t o r g . g l a s s f i s h . j e r s e y . s e r v e r . R e s o u r c e C o n f i g . g e t C l a s s e s ( R e s o u r c e C o n f i g . j a v a : 7 8 1 ) < b r / > a t o r g . g l a s s f i s h . j e r s e y . s e r v e r . R e s o u r c e C o n f i g $ R u n t i m e C o n f i g . & l t ; i n i t & g t ; ( R e s o u r c e C o n f i g . j a v a : 1 2 5 0 ) < b r / > a t o r g . g l a s s f i s h . j e r s e y . s e r v e r . R e s o u r c e C o n f i g $ R u n t i m e C o n f i g . & l t ; i n i t & g t ; ( R e s o u r c e C o n f i g . j a v a : 1 2 2 1 ) < b r / > a t o r g . g l a s s fish.jersey.server.ResourceConfig.createRuntimeConfig(ResourceConfig.java:1218)
at org.glassfish.jersey.server.ApplicationHandler$RuntimeConfigConfigurator.init(ApplicationHandler.java:184)
at org.glassfish.jersey.server.ApplicationHandler.lambda$initialize$0(ApplicationHandler.java:307)
at java.base/java.util.Arrays$ArrayList.forEach(Arrays.java:4266)
at org.glassfish.jersey.server.ApplicationHandler.initialize(ApplicationHandler.java:307)
at org.glassfish.jersey.server.ApplicationHandler.(ApplicationHandler.java:274)
at org.glassfish.jersey.servlet.WebComponent.(WebComponent.java:311)
at org.glassfish.jersey.servlet.ServletContainer.init(ServletContainer.java:154)
at org.glassfish.jersey.servlet.ServletContainer.init(ServletContainer.java:338)
at jakarta.servlet.GenericServlet.init(GenericServlet.java:143)
at jakarta.servlet.http.HttpServlet.init(HttpServlet.java:121)
at org.apache.catalina.core.StandardWrapper.initServlet(StandardWrapper.java:837)
at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:794)
at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:698)
at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4172)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:4458)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:164)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:599)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:571)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:654)
at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:969)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:490)
at org.apache.catalina.startup.HostConfig.check(HostConfig.java:1703)
at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
at java.base/java.lang.reflect.Method.invoke(Method.java:580)
at org.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:264)
at java.management/com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:803)
at java.management/com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:802)
at org.apache.catalina.manager.ManagerServlet.check(ManagerServlet.java:1445)
at org.apache.catalina.manager.HTMLManagerServlet.upload(HTMLManagerServlet.java:251)
at org.apache.catalina.manager.HTMLManagerServlet.doPost(HTMLManagerServlet.java:178)
at jakarta.servlet.http.HttpServlet.service(HttpServlet.java:590)
at jakarta.servlet.http.HttpServlet.service(HttpServlet.java:658)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:195)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:140)
at org.apache.catalina.filters.CsrfPreventionFilter.doFilter(CsrfPreventionFilter.java:428)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:164)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:140)
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:51)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:164)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:140)
at org.apache.catalina.filters.HttpHeaderSecurityFilter.doFilter(HttpHeaderSecurityFilter.java:129)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:164)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:140)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:167)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:90)
Код: Выделить всё
& l t ; m o d e l V e r s i o n & g t ; 4 . 0 . 0 & l t ; / m o d e l V e r s i o n & g t ; < b r / > & l t ; n a m e & g t ; M y A p p l i c a t i o n & l t ; / n a m e & g t ; < b r / > & l t ; a r t i f a c t I d & g t ; m y - a p p l i c a t i o n & l t ; / a r t i f a c t I d & g t ; < b r / > & l t ; p a c k a g i n g & g t ; w a r & l t ; / p a c k a g i n g & g t ; < b r / > & l t ; p a r e n t & g t ; < b r / > & l t ; g r o u p I d & g t ; m y . a p p l i c a t i o n . c o r e & l t ; / g r o u p I d & g t ; < b r / > & l t ; a r t i f a c t I d & g t ; m y - a p p l i c a t i o n & l t ; / a r t i f a c t I d & g t ; < b r / > & l t ; v e r s i o n & g t ; 2 . 0 1 & l t ; / v e r s i o n & g t ; < b r / > & l t ; / p a r e n t & g t ; < b r / > < b r / > & l t ; d e p e n d e n c i e s & g t ; < b r / > & l t ; d e p e n d e n c y & g t ; < b r / > & l t ; g r o u p I d & g t ; o r g . e h c a c h e & l t ; / g r o u p I d & g t ; < b r / > & l t ; a r t i f a c t I d & g t ; e h c a c h e & l t ; / a r t i f a c t I d & g t ; < b r / > & l t ; v e r s i o n & g t ; 3 . 1 0 . 8 & l t ; / v e r s i o n & g t ; < b r / > & l t ; c l a s s i f i e r & g t ; j a k a r t a & l t ; / c l a s s i f i e r & g t ; < b r / > & l t ; / d e p e n d e n c y & g t ; < b r / > & l t ; d e p e n d e n c y & g t ; < b r / > & l t ; g r o u p I d & g t ; o r g . s l f 4 j & l t ; / g r o u p I d & g t ; < b r / > & l t ; a r t i f a c t I d & g t ; s l f 4 j - r e l o a d 4 j & l t ; / a r t i f a c t I d & g t ; < b r / > & l t ; v e r s i o n & g t ; 2 . 0 . 1 3 & l t ; / v e r s i o n & g t ; < b r / > & l t ; s c o p e & g t ; t e s t & l t ; / s c o p e & g t ; < b r / > & l t ; / d e p e n d e n c y & g t ; < b r / > & l t ; d e p e n d e n c y & g t ; < b r / > & l t ; g r o u p I d & g t ; c o m . m y c i l a & l t ; / g r o u p I d & g t ; < b r / > & l t ; a r t i f a c t I d & g t ; l i c e n s e - m a v e n - p l u g i n & l t ; / a r t i f a c t I d & g t ; < b r / > & l t ; v e r s i o n & g t ; 4 . 5 & l t ; / v e r s i o n & g t ; < b r / > & l t ; / d e p e n d e n c y & g t ; < b r / > & l t ; d e p e n d e n c y & g t ; < b r / > & l t ; g r o u p I d & g t ; o r g . h i b e r n a t e . o r m & l t ; / g r o u p I d & g t ; < b r / > & l t ; a r t i f a c t I d & g t ; h i b e r n a t e - j c a c h e & l t ; / a r t i f a c t I d & g t ; < b r / > & l t ; v e r s i o n & g t ; 6 . 5 . 2 . F i n a l & l t ; / v e r s i o n & g t ; < b r / > & l t ; / d e p e n d e n c y & g t ; < b r / > & l t ; d e p e n d e n c y & g t ; < b r / > & l t ; g r o u p I d & g t ; c o m . s u n . x m l . b i n d & l t ; / g r o u p I d & g t ; < b r / > & l t ; a r t i f a c t I d & g t ; j a x b - i m p l & l t ; / a r t i f a c t I d & g t ; < b r / > & l t ; v e r s i o n & g t ; 4 . 0 . 5 & l t ; / v e r s i o n & g t ; < b r / > & l t ; / d e p e n d e n c y & g t ; < b r / > & l t ; d e p e n d e n c y & g t ; < b r / > & l t ; g r o u p I d & g t ; j a k a r t a . x m l . b i n d & l t ; / g r o u p I d & g t ; < b r / > & l t ; a r t i f a c t I d & g t ; j a k a r t a . x m l . b i n d - a p i & l t ; / a r t i f a c t I d & g t ; < b r / > & l t ; v e r s i o n & g t ; 4 . 0 . 2 & l t ; / v e r s i o n & g t ; < b r / > & l t ; / d e p e n d e n c y & g t ; < b r / > & l t ; d e p e n d e n c y & g t ; < b r / > & l t ; g r o u p I d & g t ; j a k a r t a . w s . r s & l t ; / g r o u p I d & g t ; < b r / > & l t ; a r t i f a c t I d & g t ; j a k a r t a . w s . r s - a p i & l t ; / a r t i f a c t I d & g t ; < b r / > & l t ; v e r s i o n & g t ; 3 . 1 . 0 & l t ; / v e r s i o n & g t ; < b r / > & l t ; / d e p e n d e n c y & g t ; < b r / > & l t ; d e p e n d e n c y & g t ; < b r / > & l t ; g r o u p I d & g t ; o r g . g l a s s f i s h . j e r s e y . c o n t a i n e r s & l t ; / g r o u p I d & g t ; < b r / > & l t ; a r t i f a c t I d & g t ; j e r s e y - c o n t a i n e r - s e r v l e t & l t ; / a r t i f a c t I d & g t ; < b r / > & l t ; v e r s i o n & g t ; 3 . 1 . 1 & l t ; / v e r s i o n & g t ; < b r / > & l t ; / d e p e n d e n c y & g t ; < b r / > & l t ; d e p e n d e n c y & g t ; < b r / > & l t ; g r o u p I d & g t ; o r g . g l a s s f i s h . j e r s e y . c o r e & l t ; / g r o u p I d & g t ; < b r / > & l t ; a r t i f a c t I d & g t ; j e r s e y - c l i e n t & l t ; / a r t i f a c t I d & g t ; < b r / > & l t ; v e r s i o n & g t ; 3 . 1 . 1 & l t ; / v e r s i o n & g t ; < b r / > & l t ; / d e p e n d e n c y & g t ; < b r / > & l t ; d e p e n d e n c y & g t ; < b r / > & l t ; g r o u p I d & g t ; j a k a r t a . s e r v l e t . j s p . j s t l & l t ; / g r o u p I d & g t ; < b r / > & l t ; a r t i f a c t I d & g t ; j a k a r t a . s e r v l e t . j s p . j s t l - a p i & l t ; / a r t i f a c t I d & g t ; < b r / > & l t ; v e r s i o n & g t ; 3 . 0 . 0 & l t ; / v e r s i o n & g t ; < b r / > & l t ; / d e p e n d e n c y & g t ; < b r / > & l t ; / d e p e n d e n c i e s & g t ; < b r / > & l t ; b u i l d & g t ; < b r / > & l t ; p l u g i n M a n a g e m e n t & g t ; < b r / > & l t ; p l u g i n s & g t ; < b r / > & l t ; p l u g i n & g t ; < b r / > & l t ; g r o u p I d & g t ; o r g . c o d e h a u s . m o j o & l t ; / g r o u p I d & g t ; < b r / > & l t ; a r t i f a c t I d & g t ; e x e c - m a v e n - p l u g i n & l t ; / a r t i f a c t I d & g t ; < br /> 1.4.0
com.github.eirslett
frontend-maven-plugin
1.7.6
install node and npm
install-node-and-npm
v10.15.3
6.4.1
npm install
npm
install
Код: Выделить всё
Display Name
Description
contextConfigLocation
classpath:/spring-servlet.xml
classpath:/security-app-context.xml
org.springframework.web.context.ContextLoaderListener
org.springframework.web.context.request.RequestContextListener
springSecurityFilterChain
org.springframework.web.filter.DelegatingFilterProxy
cacheControlFilter
my.application.core.CacheControlFilter
springSecurityFilterChain
/*
cacheControlFilter
/*
JerseyContainer
org.glassfish.jersey.servlet.ServletContainer
jersey.config.server.provider.packages
my.application.core.my.application
jersey.config.server.provider.classnames
org.glassfish.jersey.media.multipart.MultiPartFeature
1
JerseyContainer
/rest/*
login.html
Я обновил все пакеты и импортировал в Джакарту, и ни в одном из моих пакетов или кода не упоминается javax, за исключением javax.naming, javax.sql и javax.crypto. Я просмотрел все свои внешние библиотеки в IntelliJ и не нашел ни одного упоминания о javax.
Подробнее здесь: https://stackoverflow.com/questions/787 ... -use-javax