Uploaded image for project: 'Dev - Nexus Repo'
  1. Dev - Nexus Repo
  2. NEXUS-3543

Nexus 1.6.0 does not start in Tomcat when using Java 1.5.0_05

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Duplicate
    • Affects Version/s: 1.6
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      Running in apache tomcat 6.0.26, using Java 1.5.0_05 Nexus 1.6.0 fails to start.

      This is a regression from 1.5.0.

      Upgrading to 1.5.0_22 fixes this issue, but I'm filing this because there may be something we can do to fix this in the guice code.

      com.google.inject.internal.ComputationException: com.google.inject.internal.ComputationException: java.lang.TypeNotPresentException: Type org.codehaus.enunciate.contract.jaxrs.ResourceMethodSignature not present
      	at com.google.inject.internal.MapMaker$StrategyImpl.compute(MapMaker.java:553)
      	at com.google.inject.internal.MapMaker$StrategyImpl.compute(MapMaker.java:419)
      	at com.google.inject.internal.CustomConcurrentHashMap$ComputingImpl.get(CustomConcurrentHashMap.java:2041)
      	at com.google.inject.internal.FailableCache.get(FailableCache.java:46)
      	at com.google.inject.internal.ConstructorInjectorStore.get(ConstructorInjectorStore.java:48)
      	at com.google.inject.internal.ConstructorBindingImpl.initialize(ConstructorBindingImpl.java:120)
      	at com.google.inject.internal.InjectorImpl.initializeJitBinding(InjectorImpl.java:412)
      	at com.google.inject.internal.InjectorImpl.createJustInTimeBinding(InjectorImpl.java:667)
      	at com.google.inject.internal.InjectorImpl.createJustInTimeBindingRecursive(InjectorImpl.java:599)
      	at com.google.inject.internal.InjectorImpl.getJustInTimeBinding(InjectorImpl.java:188)
      	at com.google.inject.internal.InjectorImpl.getBindingOrThrow(InjectorImpl.java:139)
      	at com.google.inject.internal.InjectorImpl.getInternalFactory(InjectorImpl.java:673)
      	at com.google.inject.internal.InjectorImpl.getProviderOrThrow(InjectorImpl.java:787)
      	at com.google.inject.internal.InjectorImpl.getProvider(InjectorImpl.java:820)
      	at com.google.inject.internal.InjectorImpl.getProvider(InjectorImpl.java:781)
      	at com.google.inject.internal.InjectorImpl.getInstance(InjectorImpl.java:833)
      	at org.sonatype.guice.plexus.binders.DeferredProvider.get(DeferredProvider.java:60)
      	at com.google.inject.internal.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:40)
      	at com.google.inject.internal.ProviderToInternalFactoryAdapter$1.call(ProviderToInternalFactoryAdapter.java:43)
      	at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:851)
      	at com.google.inject.internal.ProviderToInternalFactoryAdapter.get(ProviderToInternalFactoryAdapter.java:40)
      	at com.google.inject.Scopes$1$1.get(Scopes.java:64)
      	at com.google.inject.internal.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:40)
      	at com.google.inject.internal.InjectorImpl$4$1.call(InjectorImpl.java:798)
      	at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:851)
      	at com.google.inject.internal.InjectorImpl$4.get(InjectorImpl.java:794)
      	at org.sonatype.guice.plexus.locators.LazyBean.getValue(LazyBean.java:62)
      	at org.sonatype.guice.plexus.binders.PlexusRequirements$RequirementProvider.get(PlexusRequirements.java:207)
      	at org.sonatype.guice.plexus.binders.ProvidedPropertyBinding.injectProperty(ProvidedPropertyBinding.java:50)
      	at org.sonatype.guice.bean.inject.BeanInjector.injectMembers(BeanInjector.java:54)
      	at com.google.inject.internal.MembersInjectorImpl.injectMembers(MembersInjectorImpl.java:119)
      	at com.google.inject.internal.ConstructorInjector.construct(ConstructorInjector.java:89)
      	at com.google.inject.internal.ConstructorBindingImpl$Factory.get(ConstructorBindingImpl.java:198)
      	at com.google.inject.internal.InjectorImpl$4$1.call(InjectorImpl.java:798)
      	at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:851)
      	at com.google.inject.internal.InjectorImpl$4.get(InjectorImpl.java:794)
      	at com.google.inject.internal.InjectorImpl.getInstance(InjectorImpl.java:833)
      	at org.sonatype.guice.plexus.binders.DeferredProvider.get(DeferredProvider.java:60)
      	at com.google.inject.internal.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:40)
      	at com.google.inject.internal.ProviderToInternalFactoryAdapter$1.call(ProviderToInternalFactoryAdapter.java:43)
      	at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:851)
      	at com.google.inject.internal.ProviderToInternalFactoryAdapter.get(ProviderToInternalFactoryAdapter.java:40)
      	at com.google.inject.Scopes$1$1.get(Scopes.java:64)
      	at com.google.inject.internal.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:40)
      	at com.google.inject.internal.InjectorImpl$4$1.call(InjectorImpl.java:798)
      	at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:844)
      	at com.google.inject.internal.InjectorImpl$4.get(InjectorImpl.java:794)
      	at org.sonatype.guice.plexus.locators.LazyBean.getValue(LazyBean.java:62)
      	at org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:191)
      	at org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:177)
      	at org.sonatype.plexus.rest.PlexusServerServlet.createApplication(PlexusServerServlet.java:49)
      	at com.noelios.restlet.ext.servlet.ServerServlet.getApplication(ServerServlet.java:703)
      	at com.noelios.restlet.ext.servlet.ServerServlet.init(ServerServlet.java:818)
      	at javax.servlet.GenericServlet.init(GenericServlet.java:212)
      	at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1173)
      	at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:993)
      	at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4187)
      	at org.apache.catalina.core.StandardContext.start(StandardContext.java:4496)
      	at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
      	at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
      	at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:546)
      	at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:905)
      	at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:740)
      	at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:500)
      	at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1277)
      	at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:321)
      	at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
      	at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
      	at org.apache.catalina.core.StandardHost.start(StandardHost.java:785)
      	at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
      	at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
      	at org.apache.catalina.core.StandardService.start(StandardService.java:519)
      	at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
      	at org.apache.catalina.startup.Catalina.start(Catalina.java:581)
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      	at java.lang.reflect.Method.invoke(Method.java:585)
      	at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
      	at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
      Caused by: com.google.inject.internal.ComputationException: java.lang.TypeNotPresentException: Type org.codehaus.enunciate.contract.jaxrs.ResourceMethodSignature not present
      	at com.google.inject.internal.MapMaker$StrategyImpl.compute(MapMaker.java:553)
      	at com.google.inject.internal.MapMaker$StrategyImpl.compute(MapMaker.java:419)
      	at com.google.inject.internal.CustomConcurrentHashMap$ComputingImpl.get(CustomConcurrentHashMap.java:2041)
      	at com.google.inject.internal.FailableCache.get(FailableCache.java:46)
      	at com.google.inject.internal.MembersInjectorStore.get(MembersInjectorStore.java:63)
      	at com.google.inject.internal.ConstructorInjectorStore.createConstructor(ConstructorInjectorStore.java:59)
      	at com.google.inject.internal.ConstructorInjectorStore.access$000(ConstructorInjectorStore.java:27)
      	at com.google.inject.internal.ConstructorInjectorStore$1.create(ConstructorInjectorStore.java:35)
      	at com.google.inject.internal.ConstructorInjectorStore$1.create(ConstructorInjectorStore.java:31)
      	at com.google.inject.internal.FailableCache$1.apply(FailableCache.java:35)
      	at com.google.inject.internal.MapMaker$StrategyImpl.compute(MapMaker.java:549)
      	... 79 more
      Caused by: java.lang.TypeNotPresentException: Type org.codehaus.enunciate.contract.jaxrs.ResourceMethodSignature not present
      	at sun.reflect.generics.factory.CoreReflectionFactory.makeNamedType(CoreReflectionFactory.java:98)
      	at sun.reflect.generics.visitor.Reifier.visitClassTypeSignature(Reifier.java:107)
      	at sun.reflect.generics.tree.ClassTypeSignature.accept(ClassTypeSignature.java:31)
      	at sun.reflect.annotation.AnnotationParser.parseSig(AnnotationParser.java:351)
      	at sun.reflect.annotation.AnnotationParser.parseAnnotation(AnnotationParser.java:175)
      	at sun.reflect.annotation.AnnotationParser.parseAnnotations2(AnnotationParser.java:69)
      	at sun.reflect.annotation.AnnotationParser.parseAnnotations(AnnotationParser.java:52)
      	at java.lang.reflect.Method.declaredAnnotations(Method.java:676)
      	at java.lang.reflect.Method.getAnnotation(Method.java:663)
      	at com.google.inject.spi.InjectionPoint.getAtInject(InjectionPoint.java:449)
      	at com.google.inject.spi.InjectionPoint.getInjectionPoints(InjectionPoint.java:623)
      	at com.google.inject.spi.InjectionPoint.forInstanceMethodsAndFields(InjectionPoint.java:345)
      	at com.google.inject.internal.MembersInjectorStore.createWithListeners(MembersInjectorStore.java:75)
      	at com.google.inject.internal.MembersInjectorStore.access$000(MembersInjectorStore.java:32)
      	at com.google.inject.internal.MembersInjectorStore$1.create(MembersInjectorStore.java:40)
      	at com.google.inject.internal.MembersInjectorStore$1.create(MembersInjectorStore.java:37)
      	at com.google.inject.internal.FailableCache$1.apply(FailableCache.java:35)
      	at com.google.inject.internal.MapMaker$StrategyImpl.compute(MapMaker.java:549)
      	... 89 more
      Caused by: java.lang.ClassNotFoundException: org.codehaus.enunciate.contract.jaxrs.ResourceMethodSignature
      	at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1516)
      	at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1361)
      	at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
      	at java.lang.Class.forName0(Native Method)
      	at java.lang.Class.forName(Class.java:242)
      	at sun.reflect.generics.factory.CoreReflectionFactory.makeNamedType(CoreReflectionFactory.java:95)
      	... 106 more
      2010-05-26 12:42:24 ERROR [main           ] - o.s.g.p.b.DeferredP~          - Broken implementation: org.sonatype.nexus.rest.NexusApplication
      com.google.inject.ProvisionException: Guice provision errors:
      
      1) Broken implementation: org.sonatype.nexus.rest.status.CommandPlexusResource
        at org.sonatype.guice.plexus.binders.PlexusBindingModule.bindPlexusComponent(PlexusBindingModule.java:113)
        at org.sonatype.guice.plexus.binders.PlexusBindingModule.bindPlexusComponent(PlexusBindingModule.java:113)
        while locating org.sonatype.plexus.rest.resource.ManagedPlexusResource annotated with @javax.inject.Named(value=CommandPlexusResource)
        while locating org.sonatype.nexus.rest.NexusApplication
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned
              Reporter:
              rseddon Rich Seddon
              Last Updated By:
              Peter Lynch
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Date of First Response:

                  tigCommentSecurity.panel-title