So i'm trying to run DSS in a tomcat container. Upon booting up the image it runs into the following exception:
tomcat | 2021-06-17 09:45:49,643 INFO | main | o.s.w.c.support.AnnotationConfigWebApplicationContext | Registering annotated classes: [class eu.europa.esig.dss.web.config.DSSBeanConfig] tomcat | 2021-06-17 09:45:49,771 INFO | main | o.s.context.annotation.ConfigurationClassParser | Properties location [classpath:dss-custom.properties] not resolvable: class path resource [dss-custom.properties] cannot be opened because it does not exist tomcat | 2021-06-17 09:45:49,783 WARN | main | o.s.w.c.support.AnnotationConfigWebApplicationContext | Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanDefinitionStoreException: Failed to process import candidates for configuration class [eu.europa.esig.dss.web.config.DSSBeanConfig]; nested exception is java.lang.IllegalStateException: Failed to introspect annotated methods on class eu.europa.esig.dss.web.config.CXFConfig tomcat | 2021-06-17 09:45:49,797 ERROR | main | org.springframework.web.context.ContextLoader | Context initialization failed tomcat | org.springframework.beans.factory.BeanDefinitionStoreException: Failed to process import candidates for configuration class [eu.europa.esig.dss.web.config.DSSBeanConfig]; nested exception is java.lang.IllegalStateException: Failed to introspect annotated methods on class eu.europa.esig.dss.web.config.CXFConfig tomcat | at org.springframework.context.annotation.ConfigurationClassParser.processImports(ConfigurationClassParser.java:621) tomcat | at org.springframework.context.annotation.ConfigurationClassParser.doProcessConfigurationClass(ConfigurationClassParser.java:304) tomcat | at org.springframework.context.annotation.ConfigurationClassParser.processConfigurationClass(ConfigurationClassParser.java:247) tomcat | at org.springframework.context.annotation.ConfigurationClassParser.parse(ConfigurationClassParser.java:200) tomcat | at org.springframework.context.annotation.ConfigurationClassParser.parse(ConfigurationClassParser.java:169) tomcat | at org.springframework.context.annotation.ConfigurationClassPostProcessor.processConfigBeanDefinitions(ConfigurationClassPostProcessor.java:308) tomcat | at org.springframework.context.annotation.ConfigurationClassPostProcessor.postProcessBeanDefinitionRegistry(ConfigurationClassPostProcessor.java:228) tomcat | at org.springframework.context.support.PostProcessorRegistrationDelegate.invokeBeanDefinitionRegistryPostProcessors(PostProcessorRegistrationDelegate.java:272) tomcat | at org.springframework.context.support.PostProcessorRegistrationDelegate.invokeBeanFactoryPostProcessors(PostProcessorRegistrationDelegate.java:92) tomcat | at org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:687) tomcat | at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:525) tomcat | at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:443) tomcat | at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:325) tomcat | at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:107) tomcat | at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4714) tomcat | at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5172) tomcat | at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183) tomcat | at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:717) tomcat | at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:690) tomcat | at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:692) tomcat | at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1184) tomcat | at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1925) tomcat | at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515) tomcat | at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264) tomcat | at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75) tomcat | at java.base/java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:118) tomcat | at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:1094) tomcat | at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:476) tomcat | at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1611) tomcat | at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:319) tomcat | at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:123) tomcat | at org.apache.catalina.util.LifecycleBase.setStateInternal(LifecycleBase.java:423) tomcat | at org.apache.catalina.util.LifecycleBase.setState(LifecycleBase.java:366) tomcat | at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:936) tomcat | at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:829) tomcat | at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183) tomcat | at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1384) tomcat | at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1374) tomcat | at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264) tomcat | at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75) tomcat | at java.base/java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:140) tomcat | at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:909) tomcat | at org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:262) tomcat | at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183) tomcat | at org.apache.catalina.core.StandardService.startInternal(StandardService.java:433) tomcat | at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183) tomcat | at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:930) tomcat | at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183) tomcat | at org.apache.catalina.startup.Catalina.start(Catalina.java:772) tomcat | at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) tomcat | at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) tomcat | at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) tomcat | at java.base/java.lang.reflect.Method.invoke(Method.java:566) tomcat | at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:342) tomcat | at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:473) tomcat | Caused by: java.lang.IllegalStateException: Failed to introspect annotated methods on class eu.europa.esig.dss.web.config.CXFConfig tomcat | at org.springframework.core.type.StandardAnnotationMetadata.getAnnotatedMethods(StandardAnnotationMetadata.java:163) tomcat | at org.springframework.context.annotation.ConfigurationClassParser.retrieveBeanMethodMetadata(ConfigurationClassParser.java:385) tomcat | at org.springframework.context.annotation.ConfigurationClassParser.doProcessConfigurationClass(ConfigurationClassParser.java:319) tomcat | at org.springframework.context.annotation.ConfigurationClassParser.processConfigurationClass(ConfigurationClassParser.java:247) tomcat | at org.springframework.context.annotation.ConfigurationClassParser.processImports(ConfigurationClassParser.java:611) tomcat | ... 54 common frames omitted tomcat | Caused by: java.lang.NoClassDefFoundError: javax/xml/ws/Endpoint tomcat | at java.base/java.lang.Class.getDeclaredMethods0(Native Method) tomcat | at java.base/java.lang.Class.privateGetDeclaredMethods(Class.java:3166) tomcat | at java.base/java.lang.Class.getDeclaredMethods(Class.java:2309) tomcat | at org.springframework.core.type.StandardAnnotationMetadata.getAnnotatedMethods(StandardAnnotationMetadata.java:152) tomcat | ... 58 common frames omitted tomcat | Caused by: java.lang.ClassNotFoundException: javax.xml.ws.Endpoint tomcat | at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1364) tomcat | at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1187) tomcat | ... 62 common frames omitted tomcat | 17-Jun-2021 09:45:49.810 SEVERE [main] org.apache.catalina.core.StandardContext.startInternal One or more listeners failed to start. Full details will be found in the appropriate container log file tomcat | 17-Jun-2021 09:45:49.811 SEVERE [main] org.apache.catalina.core.StandardContext.startInternal Context [/dss] startup failed due to previous errors tomcat | 17-Jun-2021 09:45:49.898 INFO [main] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory [/usr/local/tomcat/webapps/dss] has finished in [4,111] ms
So i'm trying to run DSS in a tomcat container. Upon booting up the image it runs into the following exception:
tomcat | 2021-06-17 09:45:49,643 INFO | main | o.s.w.c.support.AnnotationConfigWebApplicationContext | Registering annotated classes: [class eu.europa.esig.dss.web.config.DSSBeanConfig] tomcat | 2021-06-17 09:45:49,771 INFO | main | o.s.context.annotation.ConfigurationClassParser | Properties location [classpath:dss-custom.properties] not resolvable: class path resource [dss-custom.properties] cannot be opened because it does not exist tomcat | 2021-06-17 09:45:49,783 WARN | main | o.s.w.c.support.AnnotationConfigWebApplicationContext | Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanDefinitionStoreException: Failed to process import candidates for configuration class [eu.europa.esig.dss.web.config.DSSBeanConfig]; nested exception is java.lang.IllegalStateException: Failed to introspect annotated methods on class eu.europa.esig.dss.web.config.CXFConfig tomcat | 2021-06-17 09:45:49,797 ERROR | main | org.springframework.web.context.ContextLoader | Context initialization failed tomcat | org.springframework.beans.factory.BeanDefinitionStoreException: Failed to process import candidates for configuration class [eu.europa.esig.dss.web.config.DSSBeanConfig]; nested exception is java.lang.IllegalStateException: Failed to introspect annotated methods on class eu.europa.esig.dss.web.config.CXFConfig tomcat | at org.springframework.context.annotation.ConfigurationClassParser.processImports(ConfigurationClassParser.java:621) tomcat | at org.springframework.context.annotation.ConfigurationClassParser.doProcessConfigurationClass(ConfigurationClassParser.java:304) tomcat | at org.springframework.context.annotation.ConfigurationClassParser.processConfigurationClass(ConfigurationClassParser.java:247) tomcat | at org.springframework.context.annotation.ConfigurationClassParser.parse(ConfigurationClassParser.java:200) tomcat | at org.springframework.context.annotation.ConfigurationClassParser.parse(ConfigurationClassParser.java:169) tomcat | at org.springframework.context.annotation.ConfigurationClassPostProcessor.processConfigBeanDefinitions(ConfigurationClassPostProcessor.java:308) tomcat | at org.springframework.context.annotation.ConfigurationClassPostProcessor.postProcessBeanDefinitionRegistry(ConfigurationClassPostProcessor.java:228) tomcat | at org.springframework.context.support.PostProcessorRegistrationDelegate.invokeBeanDefinitionRegistryPostProcessors(PostProcessorRegistrationDelegate.java:272) tomcat | at org.springframework.context.support.PostProcessorRegistrationDelegate.invokeBeanFactoryPostProcessors(PostProcessorRegistrationDelegate.java:92) tomcat | at org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:687) tomcat | at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:525) tomcat | at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:443) tomcat | at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:325) tomcat | at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:107) tomcat | at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4714) tomcat | at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5172) tomcat | at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183) tomcat | at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:717) tomcat | at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:690) tomcat | at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:692) tomcat | at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1184) tomcat | at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1925) tomcat | at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515) tomcat | at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264) tomcat | at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75) tomcat | at java.base/java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:118) tomcat | at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:1094) tomcat | at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:476) tomcat | at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1611) tomcat | at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:319) tomcat | at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:123) tomcat | at org.apache.catalina.util.LifecycleBase.setStateInternal(LifecycleBase.java:423) tomcat | at org.apache.catalina.util.LifecycleBase.setState(LifecycleBase.java:366) tomcat | at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:936) tomcat | at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:829) tomcat | at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183) tomcat | at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1384) tomcat | at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1374) tomcat | at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264) tomcat | at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75) tomcat | at java.base/java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:140) tomcat | at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:909) tomcat | at org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:262) tomcat | at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183) tomcat | at org.apache.catalina.core.StandardService.startInternal(StandardService.java:433) tomcat | at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183) tomcat | at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:930) tomcat | at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183) tomcat | at org.apache.catalina.startup.Catalina.start(Catalina.java:772) tomcat | at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) tomcat | at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) tomcat | at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) tomcat | at java.base/java.lang.reflect.Method.invoke(Method.java:566) tomcat | at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:342) tomcat | at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:473) tomcat | Caused by: java.lang.IllegalStateException: Failed to introspect annotated methods on class eu.europa.esig.dss.web.config.CXFConfig tomcat | at org.springframework.core.type.StandardAnnotationMetadata.getAnnotatedMethods(StandardAnnotationMetadata.java:163) tomcat | at org.springframework.context.annotation.ConfigurationClassParser.retrieveBeanMethodMetadata(ConfigurationClassParser.java:385) tomcat | at org.springframework.context.annotation.ConfigurationClassParser.doProcessConfigurationClass(ConfigurationClassParser.java:319) tomcat | at org.springframework.context.annotation.ConfigurationClassParser.processConfigurationClass(ConfigurationClassParser.java:247) tomcat | at org.springframework.context.annotation.ConfigurationClassParser.processImports(ConfigurationClassParser.java:611) tomcat | ... 54 common frames omitted tomcat | Caused by: java.lang.NoClassDefFoundError: javax/xml/ws/Endpoint tomcat | at java.base/java.lang.Class.getDeclaredMethods0(Native Method) tomcat | at java.base/java.lang.Class.privateGetDeclaredMethods(Class.java:3166) tomcat | at java.base/java.lang.Class.getDeclaredMethods(Class.java:2309) tomcat | at org.springframework.core.type.StandardAnnotationMetadata.getAnnotatedMethods(StandardAnnotationMetadata.java:152) tomcat | ... 58 common frames omitted tomcat | Caused by: java.lang.ClassNotFoundException: javax.xml.ws.Endpoint tomcat | at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1364) tomcat | at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1187) tomcat | ... 62 common frames omitted tomcat | 17-Jun-2021 09:45:49.810 SEVERE [main] org.apache.catalina.core.StandardContext.startInternal One or more listeners failed to start. Full details will be found in the appropriate container log file tomcat | 17-Jun-2021 09:45:49.811 SEVERE [main] org.apache.catalina.core.StandardContext.startInternal Context [/dss] startup failed due to previous errors tomcat | 17-Jun-2021 09:45:49.898 INFO [main] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory [/usr/local/tomcat/webapps/dss] has finished in [4,111] ms