serverを停止した際、以下のエラーが発生します。
起動時はエラーは発生しません。
ParameterizedMessageへのパスも通っています。
どうすればエラーが消えるでしょうか?
環境
eclipse 4.5(Mars)
tomcat 6
java 6
log4j 2.3
2016/05/19 11:45:07 org.apache.coyote.http11.Http11Protocol pause 情報: Coyote HTTP/1.1を http-8080 で一時停止します 2016/05/19 11:45:08 org.apache.catalina.core.StandardService stop 情報: サービス Catalina を停止します 2016/05/19 11:45:08 org.apache.catalina.core.ApplicationContext log 情報: Destroying Spring FrameworkServlet 'appServlet' [16/05/19 11:45:08.362] INFO - Closing WebApplicationContext for namespace 'appServlet-servlet': startup date [Thu May 19 11:44:56 JST 2016]; parent: Root WebApplicationContext [16/05/19 11:45:08.363] INFO - Destroying singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@b27c38: defining beans [mvcContentNegotiationManager,org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping#0,org.springframework.format.support.FormattingConversionServiceFactoryBean#0,org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter#0,org.springframework.web.servlet.handler.MappedInterceptor#0,org.springframework.web.servlet.mvc.method.annotation.ExceptionHandlerExceptionResolver#0,org.springframework.web.servlet.mvc.annotation.ResponseStatusExceptionResolver#0,org.springframework.web.servlet.mvc.support.DefaultHandlerExceptionResolver#0,org.springframework.web.servlet.handler.BeanNameUrlHandlerMapping,org.springframework.web.servlet.mvc.HttpRequestHandlerAdapter,org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter,org.springframework.web.servlet.resource.ResourceHttpRequestHandler#0,org.springframework.web.servlet.handler.SimpleUrlHandlerMapping#0,org.thymeleaf.spring3.view.ThymeleafViewResolver#0,engine,resolver,org.mybatis.spring.mapper.MapperScannerConfigurer#0,transactionManager,org.springframework.aop.config.internalAutoProxyCreator,org.springframework.transaction.annotation.AnnotationTransactionAttributeSource#0,org.springframework.transaction.interceptor.TransactionInterceptor#0,org.springframework.transaction.config.internalTransactionAdvisor,messageSource,validator,customAuthenticationProvider,myFirstAspect,errorController,homeController,loginController,authController,entryUtil,entryUtil2,menuController,torihikisakiRegistController,torihikisakiController,torihikisakiServiceImpl,org.springframework.context.annotation.internalConfigurationAnnotationProcessor,org.springframework.context.annotation.internalAutowiredAnnotationProcessor,org.springframework.context.annotation.internalRequiredAnnotationProcessor,org.springframework.context.annotation.internalCommonAnnotationProcessor,org.springframework.context.annotation.ConfigurationClassPostProcessor.importAwareProcessor,torihikisakiMapper]; parent: org.springframework.beans.factory.support.DefaultListableBeanFactory@169dd64 [16/05/19 11:45:08.374] INFO - Closing Root WebApplicationContext: startup date [Thu May 19 11:44:53 JST 2016]; root of context hierarchy [16/05/19 11:45:08.375] INFO - Destroying singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@169dd64: defining beans [org.springframework.security.filterChains,org.springframework.security.filterChainProxy,org.springframework.security.web.PortMapperImpl#0,org.springframework.security.web.PortResolverImpl#0,org.springframework.security.config.authentication.AuthenticationManagerFactoryBean#0,org.springframework.security.authentication.ProviderManager#0,org.springframework.security.web.context.HttpSessionSecurityContextRepository#0,org.springframework.security.web.authentication.session.CompositeSessionAuthenticationStrategy#0,org.springframework.security.web.savedrequest.HttpSessionRequestCache#0,org.springframework.security.access.vote.AffirmativeBased#0,org.springframework.security.web.access.intercept.FilterSecurityInterceptor#0,org.springframework.security.web.access.DefaultWebInvocationPrivilegeEvaluator#0,org.springframework.security.authentication.AnonymousAuthenticationProvider#0,org.springframework.security.web.authentication.www.BasicAuthenticationEntryPoint#0,org.springframework.security.web.authentication.UsernamePasswordAuthenticationFilter#0,org.springframework.security.userDetailsServiceFactory,org.springframework.security.web.DefaultSecurityFilterChain#0,org.springframework.security.authentication.DefaultAuthenticationEventPublisher#0,org.springframework.security.authenticationManager,customAuthenticationProvider,customUserMapper,sqlSessionFactory,dataSource,org.springframework.security.access.expression.method.DefaultMethodSecurityExpressionHandler#0,org.springframework.security.access.method.DelegatingMethodSecurityMetadataSource#0,org.springframework.security.access.vote.AffirmativeBased#1,org.springframework.security.access.intercept.aopalliance.MethodSecurityInterceptor#0,org.springframework.security.methodSecurityMetadataSourceAdvisor,org.springframework.aop.config.internalAutoProxyCreator,webExpressionHandler]; root of factory hierarchy 2016/05/19 11:45:08 org.apache.catalina.core.ApplicationContext log 情報: Closing Spring root WebApplicationContext 2016/05/19 11:45:08 org.apache.coyote.http11.Http11Protocol destroy 情報: Coyote HTTP/1.1を http-8080 で停止します Exception in thread "pool-1-thread-1" java.lang.NoClassDefFoundError: org/apache/logging/log4j/message/ParameterizedMessage at org.apache.logging.log4j.message.ParameterizedMessageFactory.newMessage(ParameterizedMessageFactory.java:47) at org.apache.logging.log4j.spi.AbstractLogger.logMessage(AbstractLogger.java:737) at org.apache.logging.log4j.spi.AbstractLogger.logIfEnabled(AbstractLogger.java:708) at org.apache.logging.log4j.spi.AbstractLogger.error(AbstractLogger.java:314) at org.apache.logging.log4j.core.util.DefaultShutdownCallbackRegistry.run(DefaultShutdownCallbackRegistry.java:77) at java.lang.Thread.run(Thread.java:662) Caused by: java.lang.ClassNotFoundException: org.apache.logging.log4j.message.ParameterizedMessage at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1680) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1526) ... 6 more
(補足)
log4j 1.2を使用していた際は、このようなエラーは発生しませんでした。
log4j 2.3にしたら、出るようになりました。
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。