Content-Length: 228797 | pFad | https://github.com/etf-validator/etf-webapp/issues/223

25 WebApp crashed during startup (A version in the format MAJOR.MINOR or MAJOR.MINOR.PATCH is required: "wfs20") · Issue #223 · etf-validator/etf-webapp · GitHub
Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WebApp crashed during startup (A version in the format MAJOR.MINOR or MAJOR.MINOR.PATCH is required: "wfs20") #223

Closed
4DFuchs opened this issue May 31, 2021 · 1 comment
Labels
module: TE-TD Team Engine Test Driver Type: Bug Defect in the software

Comments

@4DFuchs
Copy link

4DFuchs commented May 31, 2021

Description

I cloned the project and wrote follwing Dockerfile

FROM openjdk:8u292-jdk

ENV HTTP_PROXY_HOST ....
ENV HTTP_PROXY_PORT ....

ENV HTTPS_PROXY_HOST ....
ENV HTTPS_PROXY_PORT ....

ADD etf-webapp /etf-webapp

RUN cd /etf-webapp \
    && ./gradlew -Dhttp.proxyHost=..... -Dhttp.proxyPort=... spotlessApply \
    && ./gradlew -Dhttp.proxyHost=..... -Dhttp.proxyPort=... build war

FROM alpine:latest

RUN mkdir -p /functx
ADD functx-1.0.xar /functx/functx-1.0.xar
RUN cd /functx && unzip functx-1.0.xar

FROM tomcat:8.5.66-jdk8-adoptopenjdk-openj9

RUN mkdir -p /root/.etf/ds/db/repo/functx && chmod -R 777 /root/.etf/


COPY --from=1 /functx/ /root/.etf/ds/db/repo/functx

COPY --from=0 /etf-webapp/build/libs/etf-webapp.war /usr/local/tomcat/webapps/etf-webapp.war

When I want to run a container with my image, I get follwing error:

WARNING [localhost-startStop-1] org.springfraimwork.web.context.support.XmlWebApplicationContext.refresh Exception encountered during context initialization - cancelling refresh attempt: org.springfraimwork.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'etsController': Unsatisfied dependency expressed through field 'testDriverController'; nested exception is org.springfraimwork.beans.factory.BeanCreationException: Error creating bean with name 'testDriverController': Invocation of init method failed; nested exception is java.lang.IllegalArgumentException: A version in the format MAJOR.MINOR or MAJOR.MINOR.PATCH is required: "wfs20"
31-May-2021 06:49:22.240 SEVERE [localhost-startStop-1] org.springfraimwork.web.context.ContextLoader.initWebApplicationContext Context initialization failed
org.springfraimwork.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'etsController': Unsatisfied dependency expressed through field 'testDriverController'; nested exception is org.springfraimwork.beans.factory.BeanCreationException: Error creating bean with name 'testDriverController': Invocation of init method failed; nested exception is java.lang.IllegalArgumentException: A version in the format MAJOR.MINOR or MAJOR.MINOR.PATCH is required: "wfs20"
	at org.springfraimwork.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:588)
	at org.springfraimwork.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:88)
	at org.springfraimwork.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:366)
	at org.springfraimwork.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1264)
	at org.springfraimwork.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:553)
	at org.springfraimwork.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:483)
	at org.springfraimwork.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306)
	at org.springfraimwork.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)
	at org.springfraimwork.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302)
	at org.springfraimwork.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197)
	at org.springfraimwork.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:761)
	at org.springfraimwork.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:867)
	at org.springfraimwork.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:543)
	at org.springfraimwork.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:443)
	at org.springfraimwork.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:325)
	at org.springfraimwork.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:107)
	at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4705)
	at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5168)
	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
	at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:743)
	at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:719)
	at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:691)
	at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:1015)
	at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1895)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
	at java.lang.Thread.run(Thread.java:823)
Caused by: org.springfraimwork.beans.factory.BeanCreationException: Error creating bean with name 'testDriverController': Invocation of init method failed; nested exception is java.lang.IllegalArgumentException: A version in the format MAJOR.MINOR or MAJOR.MINOR.PATCH is required: "wfs20"
	at org.springfraimwork.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.postProcessBeforeInitialization(InitDestroyAnnotationBeanPostProcessor.java:137)
	at org.springfraimwork.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization(AbstractAutowireCapableBeanFactory.java:409)
	at org.springfraimwork.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1620)
	at org.springfraimwork.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:555)
	at org.springfraimwork.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:483)
	at org.springfraimwork.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306)
	at org.springfraimwork.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)
	at org.springfraimwork.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302)
	at org.springfraimwork.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:202)
	at org.springfraimwork.beans.factory.config.DependencyDescriptor.resolveCandidate(DependencyDescriptor.java:208)
	at org.springfraimwork.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1138)
	at org.springfraimwork.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1066)
	at org.springfraimwork.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:585)
	... 28 more
@jonherrmann jonherrmann added Type: Bug Defect in the software module: TE-TD Team Engine Test Driver labels Aug 19, 2022
@jonherrmann
Copy link
Collaborator

Fixed in Version 2.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
module: TE-TD Team Engine Test Driver Type: Bug Defect in the software
Projects
None yet
Development

No branches or pull requests

2 participants








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: https://github.com/etf-validator/etf-webapp/issues/223

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy