궁금증이 있어서 메일 드립니다.
tomcat기본페이지는 잘뜨는데 /ngrinder-controller-3.3 할시에는 404가 발생하네요.. 권한문제라고 일반적인 톰캣 오류라고 하셨는데 해결방법이 이해가 안되서 문의 드립니다. 루트안에 war를 해도 그렇고 루트밖에서 war를 풀어도 그러네요.. 답변 부탁드립니다.. root@ip-192-168-10-91:/var/lib/tomcat7/webapps# ll total 12 drwxrwxr-x 3 tomcat7 tomcat7 4096 Mar 10 08:30 ./ drwxr-xr-x 6 root root 4096 Mar 10 08:03 ../ drwxr-xr-x 4 root root 4096 Mar 10 08:30 ROOT/ ==================/var/log/tomcat7/catalina.out========================= Mar 11, 2014 1:08:36 AM org.apache.coyote.AbstractProtocol pause INFO: Pausing ProtocolHandler ["http-bio-8080"] Mar 11, 2014 1:08:36 AM org.apache.catalina.core.StandardService stopInternal INFO: Stopping service Catalina Mar 11, 2014 1:08:36 AM org.apache.coyote.AbstractProtocol stop INFO: Stopping ProtocolHandler ["http-bio-8080"] Mar 11, 2014 1:08:36 AM org.apache.coyote.AbstractProtocol destroy INFO: Destroying ProtocolHandler ["http-bio-8080"] Mar 11, 2014 1:08:42 AM org.apache.coyote.AbstractProtocol init INFO: Initializing ProtocolHandler ["http-bio-8080"] Mar 11, 2014 1:08:42 AM org.apache.catalina.startup.Catalina load INFO: Initialization processed in 3400 ms Mar 11, 2014 1:08:42 AM org.apache.catalina.core.StandardService startInternal INFO: Starting service Catalina Mar 11, 2014 1:08:42 AM org.apache.catalina.core.StandardEngine startInternal INFO: Starting Servlet Engine: Apache Tomcat/7.0.26 Mar 11, 2014 1:08:42 AM org.apache.catalina.startup.HostConfig deployDirectory INFO: Deploying web application directory /var/lib/tomcat7/webapps/ROOT Mar 11, 2014 1:08:47 AM org.apache.coyote.AbstractProtocol start INFO: Starting ProtocolHandler ["http-bio-8080"] Mar 11, 2014 1:08:47 AM org.apache.catalina.startup.Catalina start INFO: Server startup in 4681 ms =================/etc/default/tomcat7================================== # Run Tomcat as this user ID. Not setting this or leaving it blank will use the # default of tomcat7. TOMCAT7_USER=tomcat7 # Run Tomcat as this group ID. Not setting this or leaving it blank will use # the default of tomcat7. TOMCAT7_GROUP=tomcat7 # The home directory of the Java development kit (JDK). You need at least # JDK version 1.5. If JAVA_HOME is not set, some common directories for # OpenJDK, the Sun JDK, and various J2SE 1.5 versions are tried. #JAVA_HOME=/usr/lib/jvm/openjdk-6-jdk # You may pass JVM startup parameters to Java here. If unset, the default # options will be: -Djava.awt.headless=true -Xmx128m -XX:+UseConcMarkSweepGC # # Use "-XX:+UseConcMarkSweepGC" to enable the CMS garbage collector (improved # response time). If you use that option and you run Tomcat on a machine with # exactly one CPU chip that contains one or two cores, you should also add # the "-XX:+CMSIncrementalMode" option. JAVA_OPTS="-Djava.awt.headless=true -Xmx128m -XX:+UseConcMarkSweepGC" # To enable remote debugging uncomment the following line. # You will then be able to use a java debugger on port 8000. #JAVA_OPTS="${JAVA_OPTS} -Xdebug -Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=n" # Java compiler to use for translating JavaServer Pages (JSPs). You can use all # compilers that are accepted by Ant's build.compiler property. #JSP_COMPILER=javac # Use the Java security manager? (yes/no, default: no) #TOMCAT7_SECURITY=no # Number of days to keep logfiles in /var/log/tomcat7. Default is 14 days. #LOGFILE_DAYS=14 # Location of the JVM temporary directory # WARNING: This directory will be destroyed and recreated at every startup ! #JVM_TMP=/tmp/tomcat7-temp # If you run Tomcat on port numbers that are all higher than 1023, then you # do not need authbind. It is used for binding Tomcat to lower port numbers. # NOTE: authbind works only with IPv4. Do not enable it when using IPv6. # (yes/no, default: no) #AUTHBIND=no ========================/server.xml============================ <?xml version='1.0' encoding='utf-8'?> <Server port="8005" shutdown="SHUTDOWN"> <Listener className="org.apache.catalina.core.JasperListener" /> <Listener className="org.apache.catalina.core.JreMemoryLeakPreventionListener" /> <Listener className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener" /> <Listener className="org.apache.catalina.core.ThreadLocalLeakPreventionListener" /> <GlobalNamingResources> <Resource name="UserDatabase" auth="Container" type="org.apache.catalina.UserDatabase" description="User database that can be updated and saved" factory="org.apache.catalina.users.MemoryUserDatabaseFactory" pathname="conf/tomcat-users.xml" /> </GlobalNamingResources> <Service name="Catalina"> <Connector port="8080" protocol="HTTP/1.1" connectionTimeout="20000" URIEncoding="UTF-8" redirectPort="8443" /> <Engine name="Catalina" defaultHost="localhost"> <Realm className="org.apache.catalina.realm.LockOutRealm"> <Realm className="org.apache.catalina.realm.UserDatabaseRealm" resourceName="UserDatabase"/> </Realm> <Host name="localhost" appBase="webapps" unpackWARs="true" autoDeploy="true"> <Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs" prefix="localhost_access_log." suffix=".txt" pattern="%h %l %u %t "%r" %s %b" /> </Host> </Engine> </Service> </Server> ================================================================ |
Administrator
|
war는 압축을 푸실필요 없이 webapps 폴더에 위치시키면 됩니다. 예를 들어 ngrinder-controller-3.3.war 라는 파일명으로 webapps 폴더에 위치시키시면 브라우저로 접근하실 때는 http://localhost:8080/ngrinder-controller-3-3 으로 접근하실 수가 있습니다. 만악 ROOT.war 라는 파일명으로 변경 시키시면 http://localhost:8080 으로 접근하실 수 있습니다. 2014-03-11 10:36 GMT+09:00 ngrinder [via ngrinder] <[hidden email]>: 궁금증이 있어서 메일 드립니다. |
http://54.215.212.118:8080 <-- 이건 되구요
http://54.215.212.118:8080/ngrinder-controller-3.3 <-- 이건 안되구요 예전에 다른 분이 똑같은 이슈 제기한거 같구요. http://ngrinder.642.n7.nabble.com/404-error-displayed-for-nGrinder-controller-which-is-installed-in-Ubuntu-12-10-td380.html service tomcat7 restart할시에 아래 에러가 발생하는데요... 권한때문에 파일을 못만드는건가요? ========tail -f /var/log/tomcat7/catalina.out============================== Mar 11, 2014 4:46:15 AM org.apache.coyote.AbstractProtocol pause INFO: Pausing ProtocolHandler ["http-bio-8080"] Mar 11, 2014 4:46:15 AM org.apache.catalina.core.StandardService stopInternal INFO: Stopping service Catalina Mar 11, 2014 4:46:15 AM org.apache.catalina.util.LifecycleBase stop INFO: The stop() method was called on component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/ngrinder-controller-3.3]] after stop() had already been called. The second call will be ignored. Mar 11, 2014 4:46:15 AM org.apache.coyote.AbstractProtocol stop INFO: Stopping ProtocolHandler ["http-bio-8080"] Mar 11, 2014 4:46:15 AM org.apache.coyote.AbstractProtocol destroy INFO: Destroying ProtocolHandler ["http-bio-8080"] Mar 11, 2014 4:46:20 AM org.apache.coyote.AbstractProtocol init INFO: Initializing ProtocolHandler ["http-bio-8080"] Mar 11, 2014 4:46:20 AM org.apache.catalina.startup.Catalina load INFO: Initialization processed in 3385 ms Mar 11, 2014 4:46:20 AM org.apache.catalina.core.StandardService startInternal INFO: Starting service Catalina Mar 11, 2014 4:46:20 AM org.apache.catalina.core.StandardEngine startInternal INFO: Starting Servlet Engine: Apache Tomcat/7.0.26 Mar 11, 2014 4:46:20 AM org.apache.catalina.startup.HostConfig deployWAR INFO: Deploying web application archive /var/lib/tomcat7/webapps/ngrinder-controller-3.3.war Mar 11, 2014 4:46:21 AM org.apache.catalina.loader.WebappClassLoader validateJarFile INFO: validateJarFile(/var/lib/tomcat7/webapps/ngrinder-controller-3.3/WEB-INF/lib/jsp-api-2.1.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: javax/el/Expression.class Mar 11, 2014 4:46:21 AM org.apache.catalina.loader.WebappClassLoader validateJarFile INFO: validateJarFile(/var/lib/tomcat7/webapps/ngrinder-controller-3.3/WEB-INF/lib/servlet-api-2.5-20081211.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/Servlet.class Mar 11, 2014 4:46:21 AM org.apache.catalina.loader.WebappClassLoader validateJarFile INFO: validateJarFile(/var/lib/tomcat7/webapps/ngrinder-controller-3.3/WEB-INF/lib/servlet-api-2.5.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/Servlet.class Mar 11, 2014 4:46:24 AM org.apache.catalina.startup.TaglibUriRule body INFO: TLD skipped. URI: http://www.springframework.org/security/tags is already defined 04:46:25,606 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Could NOT find resource [logback.groovy] 04:46:25,606 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Could NOT find resource [logback-test.xml] 04:46:25,607 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Found resource [logback.xml] at [file:/var/lib/tomcat7/webapps/ngrinder-controller-3.3/WEB-INF/classes/logback.xml] 04:46:25,608 |-WARN in ch.qos.logback.classic.LoggerContext[default] - Resource [logback.xml] occurs multiple times on the classpath. 04:46:25,608 |-WARN in ch.qos.logback.classic.LoggerContext[default] - Resource [logback.xml] occurs at [file:/var/lib/tomcat7/webapps/ngrinder-controller-3.3/WEB-INF/classes/logback.xml] 04:46:25,608 |-WARN in ch.qos.logback.classic.LoggerContext[default] - Resource [logback.xml] occurs at [jar:file:/var/lib/tomcat7/webapps/ngrinder-controller-3.3/WEB-INF/lib/grinder-core-3.9.1.jar!/logback.xml] 04:46:25,977 |-INFO in ch.qos.logback.classic.joran.action.ConfigurationAction - debug attribute not set 04:46:25,982 |-ERROR in ch.qos.logback.core.util.ContextUtil@74133879 - Failed to get local hostname java.net.UnknownHostException: ip-192-168-10-91: ip-192-168-10-91 at java.net.UnknownHostException: ip-192-168-10-91: ip-192-168-10-91 at at java.net.InetAddress.getLocalHost(InetAddress.java:1461) at at ch.qos.logback.core.util.ContextUtil.getLocalHostName(ContextUtil.java:32) at at ch.qos.logback.core.util.ContextUtil.addHostNameAsProperty(ContextUtil.java:41) at at ch.qos.logback.classic.joran.action.ConfigurationAction.begin(ConfigurationAction.java:48) at at ch.qos.logback.core.joran.spi.Interpreter.callBeginAction(Interpreter.java:276) at at ch.qos.logback.core.joran.spi.Interpreter.startElement(Interpreter.java:148) at at ch.qos.logback.core.joran.spi.Interpreter.startElement(Interpreter.java:130) at at ch.qos.logback.core.joran.spi.EventPlayer.play(EventPlayer.java:50) at at ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:147) at at ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:133) at at ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:96) at at ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:55) at at ch.qos.logback.classic.util.ContextInitializer.configureByResource(ContextInitializer.java:75) at at ch.qos.logback.classic.util.ContextInitializer.autoConfig(ContextInitializer.java:148) at at org.slf4j.impl.StaticLoggerBinder.init(StaticLoggerBinder.java:84) at at org.slf4j.impl.StaticLoggerBinder.<clinit>(StaticLoggerBinder.java:54) at at org.slf4j.LoggerFactory.bind(LoggerFactory.java:128) at at org.slf4j.LoggerFactory.performInitialization(LoggerFactory.java:108) at at org.slf4j.LoggerFactory.getILoggerFactory(LoggerFactory.java:279) at at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:252) at at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:265) at at net.sf.ehcache.constructs.web.ShutdownListener.<clinit>(ShutdownListener.java:52) at at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57) at at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at at java.lang.reflect.Constructor.newInstance(Constructor.java:534) at at java.lang.Class.newInstance(Class.java:374) at at org.apache.catalina.core.DefaultInstanceManager.newInstance(DefaultInstanceManager.java:125) at at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4715) at at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5273) at at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) at at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:895) at at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:871) at at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:615) at at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:958) at at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1599) at at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) at at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) at at java.util.concurrent.FutureTask.run(FutureTask.java:166) at at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1146) at at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at at java.lang.Thread.run(Thread.java:701) 04:46:25,982 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - About to instantiate appender of type [ch.qos.logback.core.ConsoleAppender] 04:46:25,992 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - Naming appender as [console] 04:46:26,115 |-INFO in ch.qos.logback.core.joran.action.NestedComplexPropertyIA - Assuming default type [ch.qos.logback.classic.encoder.PatternLayoutEncoder] for [encoder] property 04:46:26,229 |-INFO in ch.qos.logback.classic.joran.action.LoggerAction - Setting level of logger [org.ngrinder.infra.logger.CoreLogger] to INFO 04:46:26,229 |-INFO in ch.qos.logback.classic.joran.action.LoggerAction - Setting additivity of logger [org.ngrinder.infra.logger.CoreLogger] to false 04:46:26,229 |-INFO in ch.qos.logback.core.joran.action.AppenderRefAction - Attaching appender named [console] to Logger[org.ngrinder.infra.logger.CoreLogger] 04:46:26,231 |-INFO in ch.qos.logback.classic.joran.action.LevelAction - ROOT level set to INFO 04:46:26,231 |-INFO in ch.qos.logback.core.joran.action.AppenderRefAction - Attaching appender named [console] to Logger[ROOT] 04:46:26,257 |-INFO in ch.qos.logback.classic.joran.JoranConfigurator@52e4b5b9 - Registering current configuration as safe fallback point 2014-03-11 04:46:26,284 INFO ContextLoader.java:272 : Root WebApplicationContext: initialization started 2014-03-11 04:46:26,679 INFO AbstractApplicationContext.java:495 : Refreshing Root WebApplicationContext: startup date [Tue Mar 11 04:46:26 UTC 2014]; root of context hierarchy 2014-03-11 04:46:26,841 INFO XmlBeanDefinitionReader.java:315 : Loading XML bean definitions from class path resource [applicationContext.xml] 2014-03-11 04:46:27,543 INFO ClassPathScanningCandidateComponentProvider.java:209 : JSR-330 'javax.inject.Named' annotation found and supported for component scanning 2014-03-11 04:46:30,972 INFO XmlBeanDefinitionReader.java:315 : Loading XML bean definitions from class path resource [applicationContext-springdata.xml] 2014-03-11 04:46:38,733 INFO XmlBeanDefinitionReader.java:315 : Loading XML bean definitions from class path resource [applicationContext-security.xml] 2014-03-11 04:46:39,385 INFO SpringSecurityCoreVersion.java:33 : You are running with Spring Security Core 3.1.0.RELEASE 2014-03-11 04:46:39,394 INFO SecurityNamespaceHandler.java:57 : Spring Security 'config' module version is 3.1.0.RELEASE 2014-03-11 04:46:39,546 INFO GlobalMethodSecurityBeanDefinitionParser.java:146 : Expressions were enabled for method security but no SecurityExpressionHandler was configured. All hasPermision() expressions will evaluate to false. 2014-03-11 04:46:39,876 INFO HttpSecurityBeanDefinitionParser.java:229 : Checking sorted filter chain: [Root bean: class [org.springframework.security.web.context.SecurityContextPersistenceFilter]; scope=; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null, order = 300, Root bean: class [org.springframework.security.web.authentication.www.BasicAuthenticationFilter]; scope=; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null, order = 1200, Root bean: class [org.springframework.security.web.savedrequest.RequestCacheAwareFilter]; scope=; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null, order = 1300, Root bean: class [org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter]; scope=; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null, order = 1400, Root bean: class [org.springframework.security.web.authentication.AnonymousAuthenticationFilter]; scope=; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null, order = 1700, Root bean: class [org.springframework.security.web.session.SessionManagementFilter]; scope=; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null, order = 1800, Root bean: class [org.springframework.security.web.access.ExceptionTranslationFilter]; scope=; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null, order = 1900, <org.springframework.security.web.access.intercept.FilterSecurityInterceptor#0>, order = 2000] 2014-03-11 04:46:40,293 INFO HttpSecurityBeanDefinitionParser.java:229 : Checking sorted filter chain: [Root bean: class [org.springframework.security.web.context.SecurityContextPersistenceFilter]; scope=; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null, order = 300, Root bean: class [org.springframework.security.web.authentication.logout.LogoutFilter]; scope=; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null, order = 400, <pluggablePreAuthFilter>, order = 600, <ngrinderUserPasswordAuthenticationFilter>, order = 800, <basicProcessingFilter>, order = 1200, Root bean: class [org.springframework.security.web.savedrequest.RequestCacheAwareFilter]; scope=; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null, order = 1300, Root bean: class [org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter]; scope=; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null, order = 1400, Root bean: class [org.springframework.security.web.authentication.rememberme.RememberMeAuthenticationFilter]; scope=; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null, order = 1600, Root bean: class [org.springframework.security.web.authentication.AnonymousAuthenticationFilter]; scope=; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null, order = 1700, Root bean: class [org.springframework.security.web.session.SessionManagementFilter]; scope=; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null, order = 1800, Root bean: class [org.springframework.security.web.access.ExceptionTranslationFilter]; scope=; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null, order = 1900, <org.springframework.security.web.access.intercept.FilterSecurityInterceptor#1>, order = 2000] 2014-03-11 04:46:40,353 INFO XmlBeanDefinitionReader.java:315 : Loading XML bean definitions from class path resource [applicationContext-ehcache.xml] 2014-03-11 04:46:40,833 INFO XmlBeanDefinitionReader.java:315 : Loading XML bean definitions from class path resource [applicationContext-task.xml] 2014-03-11 04:46:41,121 INFO XmlBeanDefinitionReader.java:315 : Loading XML bean definitions from class path resource [applicationContext-external.xml] 2014-03-11 04:46:41,364 INFO XmlBeanDefinitionReader.java:315 : Loading XML bean definitions from class path resource [applicationContext-message.xml] 2014-03-11 04:46:43,989 INFO AutowiredAnnotationBeanPostProcessor.java:139 : JSR-330 'javax.inject.Inject' annotation found and supported for autowiring 2014-03-11 04:46:44,591 INFO AbstractApplicationContext.java:1350 : Bean 'springContext' of type [class org.ngrinder.infra.spring.SpringContext] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying) 2014-03-11 04:46:44,595 INFO Config.java:115 : nGrinder is starting... 2014-03-11 04:46:44,598 INFO Config.java:310 : nGrinder home directory:/usr/share/tomcat7/.ngrinder. 2014-03-11 04:46:44,603 INFO Config.java:341 : nGrinder ex home directory:/usr/share/tomcat7/.ngrinder_ex. 2014-03-11 04:46:44,648 INFO DefaultSingletonBeanRegistry.java:433 : Destroying singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@6e033953: defining beans [perfTestController,monitorInfoStore,agentManager,perfTestServiceConfig,perfTestRunnable,tagService,consoleManager,fileEntryController,svnDavServlet,fileEntryRepository,jythonScriptHandler,groovyScriptHandler,nullScriptHandler,groovyMavenProjectScriptHandler,scriptHandlerFactory,scriptValidationService,fileEntryService,regionService,modelAspect,httpContainerContext,userSignUpController,userController,userService,userContext,monitorManagerController,agentManagerController,monitorDownloadController,agentDownloadController,localAgentService,agentPackageService,agentManagerServiceConfig,periodicWorkingAgentCheckService,announcementService,systemConfigService,devController,logMonitorController,announcementController,systemConfigController,scriptConsoleController,svnHttpBasicEntryPoint,pluggablePreAuthFilter,ngrinderUserDetailsService,defaultLoginPlugin,userSwitchPermissionVoter,ngrinderAuthenticationProvider,pluggableServletFilter,jnlpDownloadServlet,databaseUpdater,DBInit,clusterConfigurationVerifier,classPathInit,internalAsyncTaskService,scheduledTaskService,transactionService,securityConfig,userMessageSource,dynamicCacheConfig,databaseConfig,config,applicationListenerBean,springContext,pluginManager,periodicCollectDataToGAService,homeController,homeService,org.springframework.context.annotation.internalConfigurationAnnotationProcessor,org.springframework.context.annotation.internalAutowiredAnnotationProcessor,org.springframework.context.annotation.internalRequiredAnnotationProcessor,org.springframework.context.annotation.internalCommonAnnotationProcessor,org.springframework.context.annotation.internalPersistenceAnnotationProcessor,userRepository,perfTestRepository,tagRepository,agentManagerRepository,org.springframework.data.repository.core.support.RepositoryInterfaceAwareBeanPostProcessor#0,org.springframework.dao.annotation.PersistenceExceptionTranslationPostProcessor#0,org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor#0,org.springframework.aop.config.internalAutoProxyCreator,org.springframework.transaction.annotation.AnnotationTransactionAttributeSource#0,org.springframework.transaction.interceptor.TransactionInterceptor#0,org.springframework.transaction.config.internalTransactionAdvisor,org.springframework.security.access.expression.method.DefaultMethodSecurityExpressionHandler#0,org.springframework.security.access.method.DelegatingMethodSecurityMetadataSource#0,org.springframework.security.access.vote.AffirmativeBased#0,org.springframework.security.access.intercept.aopalliance.MethodSecurityInterceptor#0,org.springframework.security.methodSecurityMetadataSourceAdvisor,reflectionSaltSource,svnAccessDecisionManager,org.springframework.security.filterChains,org.springframework.security.filterChainProxy,org.springframework.security.web.PortMapperImpl#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.SessionFixationProtectionStrategy#0,org.springframework.security.web.savedrequest.HttpSessionRequestCache#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.userDetailsServiceFactory,org.springframework.security.web.DefaultSecurityFilterChain#0,authenticatedVoter,accessDecisionManager,ngrinderUserPasswordAuthenticationFilter,loginLogAuthenticationSuccessHandler,simpleUrlAuthenticationFailureHandler,authenticationProcessingFilterEntryPoint,org.springframework.security.web.DefaultSecurityFilterChain#1,org.springframework.security.web.DefaultSecurityFilterChain#2,org.springframework.security.web.DefaultSecurityFilterChain#3,org.springframework.security.web.DefaultSecurityFilterChain#4,org.springframework.security.web.DefaultSecurityFilterChain#5,org.springframework.security.web.DefaultSecurityFilterChain#6,org.springframework.security.web.DefaultSecurityFilterChain#7,org.springframework.security.web.DefaultSecurityFilterChain#8,org.springframework.security.web.DefaultSecurityFilterChain#9,org.springframework.security.web.DefaultSecurityFilterChain#10,org.springframework.security.web.DefaultSecurityFilterChain#11,org.springframework.security.web.DefaultSecurityFilterChain#12,org.springframework.security.web.DefaultSecurityFilterChain#13,basicProcessingFilter,httpBasicAuthenticationEntryPoint,org.springframework.security.web.PortMapperImpl#1,org.springframework.security.config.authentication.AuthenticationManagerFactoryBean#1,org.springframework.security.authentication.ProviderManager#1,org.springframework.security.web.context.HttpSessionSecurityContextRepository#1,org.springframework.security.web.authentication.session.SessionFixationProtectionStrategy#1,org.springframework.security.web.savedrequest.HttpSessionRequestCache#1,org.springframework.security.web.access.intercept.FilterSecurityInterceptor#1,org.springframework.security.web.access.DefaultWebInvocationPrivilegeEvaluator#1,org.springframework.security.authentication.AnonymousAuthenticationProvider#1,org.springframework.security.web.authentication.rememberme.TokenBasedRememberMeServices#0,org.springframework.security.authentication.RememberMeAuthenticationProvider#0,org.springframework.security.web.DefaultSecurityFilterChain#14,delegatingAuthenticationEntryPoint,rememberMeServices,ngrinderPreAuthProvider,org.springframework.security.authentication.DefaultAuthenticationEventPublisher#0,org.springframework.security.authenticationManager,org.springframework.cache.annotation.AnnotationCacheOperationSource#0,org.springframework.cache.interceptor.CacheInterceptor#0,org.springframework.cache.config.internalCacheAdvisor,org.springframework.context.annotation.internalAsyncAnnotationProcessor,org.springframework.context.annotation.internalScheduledAnnotationProcessor,myExecutor,myScheduler,localScriptTestDriveService,messageSource,org.springframework.context.annotation.ConfigurationClassPostProcessor$ImportAwareBeanPostProcessor#0,org.springframework.scheduling.annotation.SchedulingConfiguration#0,org.springframework.transaction.annotation.ProxyTransactionManagementConfiguration#0,transactionAttributeSource,transactionInterceptor,perfTestService,agentManagerService,shaPasswordEncoder,cacheManager,dataSource,emf,transactionManager]; root of factory hierarchy 2014-03-11 04:46:44,748 ERROR ContextLoader.java:307 : Context initialization failed org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.dao.annotation.PersistenceExceptionTranslationPostProcessor#0': Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'databaseConfig': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private org.ngrinder.infra.config.Config org.ngrinder.infra.config.DatabaseConfig.config; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'config': Invocation of init method failed; nested exception is org.ngrinder.common.exception.NGrinderRuntimeException: Fail to copy files from /var/lib/tomcat7/webapps/ngrinder-controller-3.3/WEB-INF/classes/ngrinder_home_template at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:527) ~[spring-beans-3.1.0.RELEASE.jar:3.1.0.RELEASE] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456) ~[spring-beans-3.1.0.RELEASE.jar:3.1.0.RELEASE] at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:294) ~[spring-beans-3.1.0.RELEASE.jar:3.1.0.RELEASE] at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:225) ~[spring-beans-3.1.0.RELEASE.jar:3.1.0.RELEASE] at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:291) ~[spring-beans-3.1.0.RELEASE.jar:3.1.0.RELEASE] at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197) ~[spring-beans-3.1.0.RELEASE.jar:3.1.0.RELEASE] at org.springframework.context.support.AbstractApplicationContext.registerBeanPostProcessors(AbstractApplicationContext.java:728) ~[spring-context-3.1.0.RELEASE.jar:3.1.0.RELEASE] at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:449) ~[spring-context-3.1.0.RELEASE.jar:3.1.0.RELEASE] at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:384) ~[spring-web-3.1.0.RELEASE.jar:3.1.0.RELEASE] at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:283) ~[spring-web-3.1.0.RELEASE.jar:3.1.0.RELEASE] at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:111) ~[spring-web-3.1.0.RELEASE.jar:3.1.0.RELEASE] at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4779) ~[tomcat-catalina-7.0.26.jar:7.0.26] at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5273) ~[tomcat-catalina-7.0.26.jar:7.0.26] at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) ~[tomcat-catalina-7.0.26.jar:7.0.26] at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:895) ~[tomcat-catalina-7.0.26.jar:7.0.26] at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:871) ~[tomcat-catalina-7.0.26.jar:7.0.26] at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:615) ~[tomcat-catalina-7.0.26.jar:7.0.26] at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:958) ~[tomcat-catalina-7.0.26.jar:7.0.26] at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1599) ~[tomcat-catalina-7.0.26.jar:7.0.26] at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) ~[na:1.6.0_30] at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) ~[na:1.6.0_30] at java.util.concurrent.FutureTask.run(FutureTask.java:166) ~[na:1.6.0_30] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1146) ~[na:1.6.0_30] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) ~[na:1.6.0_30] at java.lang.Thread.run(Thread.java:701) ~[na:1.6.0_30] Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'databaseConfig': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private org.ngrinder.infra.config.Config org.ngrinder.infra.config.DatabaseConfig.config; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'config': Invocation of init method failed; nested exception is org.ngrinder.common.exception.NGrinderRuntimeException: Fail to copy files from /var/lib/tomcat7/webapps/ngrinder-controller-3.3/WEB-INF/classes/ngrinder_home_template at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:287) ~[spring-beans-3.1.0.RELEASE.jar:3.1.0.RELEASE] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1106) ~[spring-beans-3.1.0.RELEASE.jar:3.1.0.RELEASE] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:517) ~[spring-beans-3.1.0.RELEASE.jar:3.1.0.RELEASE] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456) ~[spring-beans-3.1.0.RELEASE.jar:3.1.0.RELEASE] at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:294) ~[spring-beans-3.1.0.RELEASE.jar:3.1.0.RELEASE] at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:225) ~[spring-beans-3.1.0.RELEASE.jar:3.1.0.RELEASE] at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:291) ~[spring-beans-3.1.0.RELEASE.jar:3.1.0.RELEASE] at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193) ~[spring-beans-3.1.0.RELEASE.jar:3.1.0.RELEASE] at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:353) ~[spring-beans-3.1.0.RELEASE.jar:3.1.0.RELEASE] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1015) ~[spring-beans-3.1.0.RELEASE.jar:3.1.0.RELEASE] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:911) ~[spring-beans-3.1.0.RELEASE.jar:3.1.0.RELEASE] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:485) ~[spring-beans-3.1.0.RELEASE.jar:3.1.0.RELEASE] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456) ~[spring-beans-3.1.0.RELEASE.jar:3.1.0.RELEASE] at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:294) ~[spring-beans-3.1.0.RELEASE.jar:3.1.0.RELEASE] at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:225) ~[spring-beans-3.1.0.RELEASE.jar:3.1.0.RELEASE] at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:291) ~[spring-beans-3.1.0.RELEASE.jar:3.1.0.RELEASE] at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193) ~[spring-beans-3.1.0.RELEASE.jar:3.1.0.RELEASE] at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:284) ~[spring-beans-3.1.0.RELEASE.jar:3.1.0.RELEASE] at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193) ~[spring-beans-3.1.0.RELEASE.jar:3.1.0.RELEASE] at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:284) ~[spring-beans-3.1.0.RELEASE.jar:3.1.0.RELEASE] at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197) ~[spring-beans-3.1.0.RELEASE.jar:3.1.0.RELEASE] at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeansOfType(DefaultListableBeanFactory.java:400) ~[spring-beans-3.1.0.RELEASE.jar:3.1.0.RELEASE] at org.springframework.beans.factory.BeanFactoryUtils.beansOfTypeIncludingAncestors(BeanFactoryUtils.java:275) ~[spring-beans-3.1.0.RELEASE.jar:3.1.0.RELEASE] at org.springframework.dao.support.PersistenceExceptionTranslationInterceptor.detectPersistenceExceptionTranslators(PersistenceExceptionTranslationInterceptor.java:139) ~[spring-tx-3.1.0.RELEASE.jar:3.1.0.RELEASE] at org.springframework.dao.support.PersistenceExceptionTranslationInterceptor.<init>(PersistenceExceptionTranslationInterceptor.java:79) ~[spring-tx-3.1.0.RELEASE.jar:3.1.0.RELEASE] at org.springframework.dao.annotation.PersistenceExceptionTranslationAdvisor.<init>(PersistenceExceptionTranslationAdvisor.java:70) ~[spring-tx-3.1.0.RELEASE.jar:3.1.0.RELEASE] at org.springframework.dao.annotation.PersistenceExceptionTranslationPostProcessor.setBeanFactory(PersistenceExceptionTranslationPostProcessor.java:103) ~[spring-tx-3.1.0.RELEASE.jar:3.1.0.RELEASE] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeAwareMethods(AbstractAutowireCapableBeanFactory.java:1475) ~[spring-beans-3.1.0.RELEASE.jar:3.1.0.RELEASE] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1443) ~[spring-beans-3.1.0.RELEASE.jar:3.1.0.RELEASE] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519) ~[spring-beans-3.1.0.RELEASE.jar:3.1.0.RELEASE] ... 24 common frames omitted Caused by: org.springframework.beans.factory.BeanCreationException: Could not autowire field: private org.ngrinder.infra.config.Config org.ngrinder.infra.config.DatabaseConfig.config; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'config': Invocation of init method failed; nested exception is org.ngrinder.common.exception.NGrinderRuntimeException: Fail to copy files from /var/lib/tomcat7/webapps/ngrinder-controller-3.3/WEB-INF/classes/ngrinder_home_template at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:506) ~[spring-beans-3.1.0.RELEASE.jar:3.1.0.RELEASE] at org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:87) ~[spring-beans-3.1.0.RELEASE.jar:3.1.0.RELEASE] at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:284) ~[spring-beans-3.1.0.RELEASE.jar:3.1.0.RELEASE] ... 53 common frames omitted Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'config': Invocation of init method failed; nested exception is org.ngrinder.common.exception.NGrinderRuntimeException: Fail to copy files from /var/lib/tomcat7/webapps/ngrinder-controller-3.3/WEB-INF/classes/ngrinder_home_template at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.postProcessBeforeInitialization(InitDestroyAnnotationBeanPostProcessor.java:135) ~[spring-beans-3.1.0.RELEASE.jar:3.1.0.RELEASE] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization(AbstractAutowireCapableBeanFactory.java:394) ~[spring-beans-3.1.0.RELEASE.jar:3.1.0.RELEASE] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1448) ~[spring-beans-3.1.0.RELEASE.jar:3.1.0.RELEASE] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519) ~[spring-beans-3.1.0.RELEASE.jar:3.1.0.RELEASE] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456) ~[spring-beans-3.1.0.RELEASE.jar:3.1.0.RELEASE] at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:294) ~[spring-beans-3.1.0.RELEASE.jar:3.1.0.RELEASE] at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:225) ~[spring-beans-3.1.0.RELEASE.jar:3.1.0.RELEASE] at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:291) ~[spring-beans-3.1.0.RELEASE.jar:3.1.0.RELEASE] at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193) ~[spring-beans-3.1.0.RELEASE.jar:3.1.0.RELEASE] at org.springframework.beans.factory.support.DefaultListableBeanFactory.findAutowireCandidates(DefaultListableBeanFactory.java:848) ~[spring-beans-3.1.0.RELEASE.jar:3.1.0.RELEASE] at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:790) ~[spring-beans-3.1.0.RELEASE.jar:3.1.0.RELEASE] at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:707) ~[spring-beans-3.1.0.RELEASE.jar:3.1.0.RELEASE] at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:478) ~[spring-beans-3.1.0.RELEASE.jar:3.1.0.RELEASE] ... 55 common frames omitted Caused by: org.ngrinder.common.exception.NGrinderRuntimeException: Fail to copy files from /var/lib/tomcat7/webapps/ngrinder-controller-3.3/WEB-INF/classes/ngrinder_home_template at org.ngrinder.common.util.ExceptionUtils.processException(ExceptionUtils.java:53) ~[ngrinder-core-3.3.jar:na] at org.ngrinder.common.model.Home.copyFrom(Home.java:122) ~[Home.class:na] at org.ngrinder.infra.config.Config.copyDefaultConfigurationFiles(Config.java:269) ~[Config.class:na] at org.ngrinder.infra.config.Config.init(Config.java:119) ~[Config.class:na] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.6.0_30] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) ~[na:1.6.0_30] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.6.0_30] at java.lang.reflect.Method.invoke(Method.java:622) ~[na:1.6.0_30] at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleElement.invoke(InitDestroyAnnotationBeanPostProcessor.java:346) ~[spring-beans-3.1.0.RELEASE.jar:3.1.0.RELEASE] at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleMetadata.invokeInitMethods(InitDestroyAnnotationBeanPostProcessor.java:299) ~[spring-beans-3.1.0.RELEASE.jar:3.1.0.RELEASE] at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.postProcessBeforeInitialization(InitDestroyAnnotationBeanPostProcessor.java:132) ~[spring-beans-3.1.0.RELEASE.jar:3.1.0.RELEASE] ... 67 common frames omitted java.io.IOException: Destination '/usr/share/tomcat7/.ngrinder/database.conf' directory cannot be created at org.apache.commons.io.FileUtils.copyFile(FileUtils.java:777) ~[commons-io-2.0.1.jar:2.0.1] at org.apache.commons.io.FileUtils.copyFileToDirectory(FileUtils.java:706) ~[commons-io-2.0.1.jar:2.0.1] at org.apache.commons.io.FileUtils.copyFileToDirectory(FileUtils.java:670) ~[commons-io-2.0.1.jar:2.0.1] at org.ngrinder.common.model.Home.copyFrom(Home.java:112) ~[Home.class:na] at org.ngrinder.infra.config.Config.copyDefaultConfigurationFiles(Config.java:269) ~[Config.class:na] at org.ngrinder.infra.config.Config.init(Config.java:119) ~[Config.class:na] Mar 11, 2014 4:46:44 AM org.apache.catalina.core.StandardContext startInternal SEVERE: Error listenerStart Mar 11, 2014 4:46:44 AM org.apache.catalina.core.StandardContext startInternal SEVERE: Context [/ngrinder-controller-3.3] startup failed due to previous errors Mar 11, 2014 4:46:44 AM org.apache.catalina.startup.HostConfig deployDirectory INFO: Deploying web application directory /var/lib/tomcat7/webapps/ROOT Mar 11, 2014 4:46:47 AM org.apache.coyote.AbstractProtocol start INFO: Starting ProtocolHandler ["http-bio-8080"] Mar 11, 2014 4:46:47 AM org.apache.catalina.startup.Catalina start INFO: Server startup in 26658 ms =========================================================================== |
jar가 loaded가 안된건 찾았네요..
전 tomcat7 을 패키지로 설치했구요.. INFO: validateJarFile(/var/lib/tomcat7/webapps/ngrinder-controller-3.3/WEB-INF/lib/jsp-api-2.1.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: javax/el/Expression.class Mar 11, 2014 6:14:44 AM org.apache.catalina.loader.WebappClassLoader validateJarFile INFO: validateJarFile(/var/lib/tomcat7/webapps/ngrinder-controller-3.3/WEB-INF/lib/servlet-api-2.5-20081211.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/Servlet.class Mar 11, 2014 6:14:44 AM org.apache.catalina.loader.WebappClassLoader validateJarFile INFO: validateJarFile(/var/lib/tomcat7/webapps/ngrinder-controller-3.3/WEB-INF/lib/servlet-api-2.5.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/Servlet.class Mar 11, 2014 6:14:45 AM org.apache.catalina.startup.TaglibUriRule body 아래 경로가 기본 tomcat7의 lib를 등록하는것인데 jdk서 사용하는 jar를 ngrilnder.war 파일을 풀었을시에 jar파일이 중복되서 생긴거구요.. 해당 파일의 위치는 요기입니다. #ll /usr/share/tomcat7/lib/ lrwxrwxrwx 1 root root 33 Apr 1 2013 jsp-api.jar -> ../../java/tomcat-jsp-api-2.2.jar lrwxrwxrwx 1 root root 37 Apr 1 2013 servlet-api.jar -> ../../java/tomcat-servlet-api-3.0.jar |
이런 에러들은 도데체 왜나오는거죠? 07:53:23,245 |-ERROR in ch.qos.logback.core.util.ContextUtil@68be77ef - Failed to get local hostname java.net.UnknownHostException: ip-192-168-10-91: ip-192-168-10-91 Error creating bean with name 'databaseConfig': Injection of autowired dependencies failed; nested exception is org.springfra private org.ngrinder.infra.config.Config org.ngrinder.infra.config.DatabaseConfig.config; nested exception is org.springframework.beans.factory.BeanCreationException: Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'databaseConfig': Injection of autowired dependencies failed; nested eCould not autowire field: private org.ngrinder.infra.config.Config org.ngrinder.infra.config.DatabaseConfig.config; nested exception is org.springframework.beans.factorcation of init method failed; nested exception is org.ngrinder.common.exception.NGrinderRuntimeException: Fail to copy files from /var/lib/tomcat7/webapps/ngrinder-cont |
Administrator
|
죄송하지만... 유령과 대화하는 기분이네요. ㅎㅎ. (아이디 익명 / 어떤 용도로 사용하는지 밝히지 않아,..)
2014-03-11 16:55 GMT+09:00 ngrinder [via ngrinder] <[hidden email]>:
|
계속 자문자답하네요/
용도는 EC2환경에서 부하 테스트를 하는 중이구요.. 문제점은 간단했네요.. 패키지로 tomcat7을 설치하고 난 이후에 tomcat7이 패키지로 설치할시에는 설치 파일 경로가 소스로 설치한것과 달리 경로가 달라지는데 아래 경로 하위 디렉토리에 .ngrinder/ .ngrinder_ex/ 디렉토리가 생성이 안되서 생겼던 에러 같네요. sudo chown tomcat7:tomcat7 /usr/share/tomcat7 명령어를 주고 해결했습니다. |
Free forum by Nabble | Edit this page |