Issue #38 resolved

Tomcat 7.0.19 deployment

Anonymous created an issue

Hi,

I tried to deploy the SCM Manager war on Apache Tomcat 7.0.19 but it failed with the following error in the catalina.log

SEVERE: Exception starting filter guiceFilter com.google.inject.ProvisionException: Guice provision errors:

1) Error injecting constructor, java.lang.NullPointerException at sonia.scm.template.FreemarkerTemplateHandler.<init>(FreemarkerTemplateHandler.java:93) at sonia.scm.template.FreemarkerTemplateHandler.class(FreemarkerTemplateHandler.java:80) while locating sonia.scm.template.FreemarkerTemplateHandler while locating sonia.scm.template.TemplateHandler for parameter 1 at sonia.scm.template.TemplateServlet.<init>(TemplateServlet.java:88) at sonia.scm.template.TemplateServlet.class(TemplateServlet.java:88) while locating sonia.scm.template.TemplateServlet

1 error at com.google.inject.internal.InjectorImpl$4.get(InjectorImpl.java:987) at com.google.inject.internal.InjectorImpl.getInstance(InjectorImpl.java:1009) at com.google.inject.servlet.ServletDefinition.init(ServletDefinition.java:108) at com.google.inject.servlet.ManagedServletPipeline.init(ManagedServletPipeline.java:82) at com.google.inject.servlet.ManagedFilterPipeline.initPipeline(ManagedFilterPipeline.java:102) at com.google.inject.servlet.GuiceFilter.init(GuiceFilter.java:172) at sonia.scm.boot.BootstrapFilter.init(BootstrapFilter.java:134) at org.apache.catalina.core.ApplicationFilterConfig.initFilter(ApplicationFilterConfig.java:273) at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:254) at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:372) at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:98) at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4584) at org.apache.catalina.core.StandardContext$2.call(StandardContext.java:5262) at org.apache.catalina.core.StandardContext$2.call(StandardContext.java:5257) at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source) at java.util.concurrent.FutureTask.run(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source) Caused by: java.lang.NullPointerException at java.io.File.<init>(Unknown Source) at sonia.scm.template.FreemarkerTemplateHandler.<init>(FreemarkerTemplateHandler.java:100) at sonia.scm.template.FreemarkerTemplateHandler$$FastClassByGuice$$33168a0b.newInstance(<generated>) at com.google.inject.internal.cglib.reflect.$FastConstructor.newInstance(FastConstructor.java:40) at com.google.inject.internal.DefaultConstructionProxyFactory$1.newInstance(DefaultConstructionProxyFactory.java:60) at com.google.inject.internal.ConstructorInjector.construct(ConstructorInjector.java:85) at com.google.inject.internal.ConstructorBindingImpl$Factory.get(ConstructorBindingImpl.java:254) at com.google.inject.internal.ProviderToInternalFactoryAdapter$1.call(ProviderToInternalFactoryAdapter.java:46) at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1031) at com.google.inject.internal.ProviderToInternalFactoryAdapter.get(ProviderToInternalFactoryAdapter.java:40) at com.google.inject.Scopes$1$1.get(Scopes.java:65) at com.google.inject.internal.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:40) at com.google.inject.internal.FactoryProxy.get(FactoryProxy.java:54) at com.google.inject.internal.SingleParameterInjector.inject(SingleParameterInjector.java:38) at com.google.inject.internal.SingleParameterInjector.getAll(SingleParameterInjector.java:62) at com.google.inject.internal.ConstructorInjector.construct(ConstructorInjector.java:84) at com.google.inject.internal.ConstructorBindingImpl$Factory.get(ConstructorBindingImpl.java:254) at com.google.inject.internal.ProviderToInternalFactoryAdapter$1.call(ProviderToInternalFactoryAdapter.java:46) at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1031) at com.google.inject.internal.ProviderToInternalFactoryAdapter.get(ProviderToInternalFactoryAdapter.java:40) at com.google.inject.Scopes$1$1.get(Scopes.java:65) at com.google.inject.internal.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:40) at com.google.inject.internal.InjectorImpl$4$1.call(InjectorImpl.java:978) at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1024) at com.google.inject.internal.InjectorImpl$4.get(InjectorImpl.java:974) ... 18 more 4-aug-2011 10:48:12 org.apache.catalina.core.StandardContext startInternal SEVERE: Error filterStart 4-aug-2011 10:48:12 org.apache.catalina.core.StandardContext startInternal SEVERE: Context [] startup failed due to previous errors 4-aug-2011 10:48:13 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads SEVERE: The web application [] appears to have started a thread named [com.google.inject.internal.util.$Finalizer] but has failed to stop it. This is very likely to create a memory leak. 4-aug-2011 10:48:13 org.apache.catalina.startup.HostConfig deployDescriptor

I am running on Windows 7 x64 bit on a 32bit Tomcat 7.0.19 and JDK 1.6.0_25.

Comments (4)

  1. Stephan Oudmaijer

    Thanks man, fast response, thats the way I like it. Seems to work like a charm. I can also login to the webapp.

    Log output:

    INFO: Deploying configuration descriptor ROOT.xml from xyz 4-aug-2011 11:39:58 org.apache.catalina.startup.TaglibUriRule body INFO: TLD skipped. URI: urn:com:sun:jersey:api:view is already defined 4-aug-2011 11:40:00 com.sun.jersey.api.core.PackagesResourceConfig init INFO: Scanning for root resource and provider classes in the packages: sonia.scm 4-aug-2011 11:40:00 com.sun.jersey.api.core.ScanningResourceConfig logClasses INFO: Root resource classes found: class sonia.scm.api.rest.resources.RepositoryResource class sonia.scm.api.rest.resources.PluginResource class sonia.scm.api.rest.resources.SearchResource class sonia.scm.api.rest.resources.ChangePasswordResource class sonia.scm.api.rest.resources.SvnConfigResource class sonia.scm.api.rest.resources.UserResource class sonia.scm.api.rest.resources.ConfigurationResource class sonia.scm.api.rest.resources.GroupResource class sonia.scm.api.rest.resources.HgConfigResource class sonia.scm.api.rest.resources.GitConfigResource class sonia.scm.api.rest.resources.AuthenticationResource 4-aug-2011 11:40:00 com.sun.jersey.api.core.ScanningResourceConfig logClasses INFO: Provider classes found: class sonia.scm.api.rest.ScmSecurityExceptionMapper 4-aug-2011 11:40:00 com.sun.jersey.server.impl.application.WebApplicationImpl _initiate INFO: Initiating Jersey application, version 'Jersey: 1.8 06/24/2011 12:39 PM' 4-aug-2011 11:40:01 com.sun.jersey.guice.spi.container.GuiceComponentProviderFactory getComponentProvider INFO: Binding sonia.scm.api.rest.resources.AuthenticationResource to GuiceInstantiatedComponentProvider 4-aug-2011 11:40:01 com.sun.jersey.guice.spi.container.GuiceComponentProviderFactory getComponentProvider INFO: Binding sonia.scm.api.rest.resources.ChangePasswordResource to GuiceInstantiatedComponentProvider 4-aug-2011 11:40:01 com.sun.jersey.guice.spi.container.GuiceComponentProviderFactory getComponentProvider INFO: Binding sonia.scm.api.rest.resources.ConfigurationResource to GuiceInstantiatedComponentProvider 4-aug-2011 11:40:01 com.sun.jersey.guice.spi.container.GuiceComponentProviderFactory getComponentProvider INFO: Binding sonia.scm.api.rest.resources.GroupResource to GuiceInstantiatedComponentProvider 4-aug-2011 11:40:01 com.sun.jersey.guice.spi.container.GuiceComponentProviderFactory getComponentProvider INFO: Binding sonia.scm.api.rest.resources.PluginResource to GuiceInstantiatedComponentProvider 4-aug-2011 11:40:01 com.sun.jersey.guice.spi.container.GuiceComponentProviderFactory getComponentProvider INFO: Binding sonia.scm.api.rest.resources.RepositoryResource to GuiceInstantiatedComponentProvider 4-aug-2011 11:40:01 com.sun.jersey.guice.spi.container.GuiceComponentProviderFactory getComponentProvider INFO: Binding sonia.scm.api.rest.resources.SearchResource to GuiceInstantiatedComponentProvider 4-aug-2011 11:40:01 com.sun.jersey.guice.spi.container.GuiceComponentProviderFactory getComponentProvider INFO: Binding sonia.scm.api.rest.resources.UserResource to GuiceInstantiatedComponentProvider 4-aug-2011 11:40:01 com.sun.jersey.guice.spi.container.GuiceComponentProviderFactory getComponentProvider INFO: Binding sonia.scm.api.rest.resources.GitConfigResource to GuiceInstantiatedComponentProvider 4-aug-2011 11:40:01 com.sun.jersey.guice.spi.container.GuiceComponentProviderFactory getComponentProvider INFO: Binding sonia.scm.api.rest.resources.HgConfigResource to GuiceInstantiatedComponentProvider 4-aug-2011 11:40:01 com.sun.jersey.guice.spi.container.GuiceComponentProviderFactory getComponentProvider INFO: Binding sonia.scm.api.rest.resources.SvnConfigResource to GuiceInstantiatedComponentProvider

  2. Log in to comment