Project: bamboo
Issue BAM-9387: Bamboo does not start on OpenJDK 7
Captcha depends on SUN packages. {noformat} 2011-08-01 11:06:01,314 INFO [main] [BrokerService] ActiveMQ JMS Message Broker (bamboo, ID:barnard.local-62860-1312160747729-0:1) stopped 2011-08-01 11:06:01,316 INFO [main] [ConfigurableLocalSessionFactoryBean] Closing Hibernate SessionFactory 2011-08-01 11:06:01,320 ERROR [main] [ContextLoader] Context initialization failed org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'imageCaptchaService' defined in class path resource [applicationContextCaptcha.xml]: Cannot resolve reference to bean 'captchaEngine' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'captchaEngine' defined in class path resource [applicationContextCaptcha.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [com.atlassian.bamboo.captcha.AtlassianGimpyEngine]: Constructor threw exception; nested exception is java.lang.NoClassDefFoundError: com/sun/image/codec/jpeg/ImageFormatException Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'captchaEngine' defined in class path resource [applicationContextCaptcha.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [com.atlassian.bamboo.captcha.AtlassianGimpyEngine]: Constructor threw exception; nested exception is java.lang.NoClassDefFoundError: com/sun/image/codec/jpeg/ImageFormatException Caused by: org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [com.atlassian.bamboo.captcha.AtlassianGimpyEngine]: Constructor threw exception; nested exception is java.lang.NoClassDefFoundError: com/sun/image/codec/jpeg/ImageFormatException Caused by: java.lang.NoClassDefFoundError: com/sun/image/codec/jpeg/ImageFormatException java.lang.Class.forName0(Native Method) java.lang.Class.forName(Class.java:186) com.octo.captcha.image.gimpy.GimpyFactory.class$(GimpyFactory.java:30) com.octo.captcha.image.gimpy.GimpyFactory.(GimpyFactory.java:30) com.atlassian.bamboo.captcha.AtlassianGimpyEngine.buildInitialFactories(AtlassianGimpyEngine.java:59) com.octo.captcha.engine.image.ListImageCaptchaEngine.(ListImageCaptchaEngine.java:24) com.atlassian.bamboo.captcha.AtlassianGimpyEngine.(AtlassianGimpyEngine.java:28) sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57) sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) java.lang.reflect.Constructor.newInstance(Constructor.java:525) org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:85) org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:61) org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:752) org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:717) org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:386) org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:249) org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:155) org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:246) org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:160) org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:267) org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:110) org.springframework.beans.factory.support.ConstructorResolver.resolveConstructorArguments(ConstructorResolver.java:389) org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:120) org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:795) org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:713) org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:386) org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:249) org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:155) org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:246) org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:160) org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:291) org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:352) org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:245) org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:188) org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:49) com.atlassian.spring.container.ContainerContextLoaderListener.contextInitialized(ContainerContextLoaderListener.java:32) org.eclipse.jetty.server.handler.ContextHandler.startContext(ContextHandler.java:633) org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:228) org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1160) org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:576) org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:492) org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:55) org.eclipse.jetty.server.handler.HandlerWrapper.doStart(HandlerWrapper.java:93) org.eclipse.jetty.server.Server.doStart(Server.java:243) org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:55) com.atlassian.bamboo.server.Server.main(Server.java:77) Caused by: java.lang.ClassNotFoundException: com.sun.image.codec.jpeg.ImageFormatException java.net.URLClassLoader$1.run(URLClassLoader.java:366) java.net.URLClassLoader$1.run(URLClassLoader.java:355) java.security.AccessController.doPrivileged(Native Method) java.net.URLClassLoader.findClass(URLClassLoader.java:354) java.lang.ClassLoader.loadClass(ClassLoader.java:423) sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308) java.lang.ClassLoader.loadClass(ClassLoader.java:356)	... 47 more 2011-08-01 11:06:01,326 WARN [main] [log] Failed startup of context WebAppContext@2ba42999@2ba42999/bamboo,file:/Users/jdumay/code/bamboo/components/bamboo-web-app/src/main/webapp/,/Users/jdumay/code/bamboo/components/bamboo-web-app/src/main/webapp org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'imageCaptchaService' defined in class path resource [applicationContextCaptcha.xml]: Cannot resolve reference to bean 'captchaEngine' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'captchaEngine' defined in class path resource [applicationContextCaptcha.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [com.atlassian.bamboo.captcha.AtlassianGimpyEngine]: Constructor threw exception; nested exception is java.lang.NoClassDefFoundError: com/sun/image/codec/jpeg/ImageFormatException Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'captchaEngine' defined in class path resource [applicationContextCaptcha.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [com.atlassian.bamboo.captcha.AtlassianGimpyEngine]: Constructor threw exception; nested exception is java.lang.NoClassDefFoundError: com/sun/image/codec/jpeg/ImageFormatException Caused by: org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [com.atlassian.bamboo.captcha.AtlassianGimpyEngine]: Constructor threw exception; nested exception is java.lang.NoClassDefFoundError: com/sun/image/codec/jpeg/ImageFormatException Caused by: java.lang.NoClassDefFoundError: com/sun/image/codec/jpeg/ImageFormatException java.lang.Class.forName0(Native Method) java.lang.Class.forName(Class.java:186) com.octo.captcha.image.gimpy.GimpyFactory.class$(GimpyFactory.java:30) com.octo.captcha.image.gimpy.GimpyFactory.(GimpyFactory.java:30) com.atlassian.bamboo.captcha.AtlassianGimpyEngine.buildInitialFactories(AtlassianGimpyEngine.java:59) com.octo.captcha.engine.image.ListImageCaptchaEngine.(ListImageCaptchaEngine.java:24) com.atlassian.bamboo.captcha.AtlassianGimpyEngine.(AtlassianGimpyEngine.java:28) sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57) sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) java.lang.reflect.Constructor.newInstance(Constructor.java:525) org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:85) org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:61) org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:752) org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:717) org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:386) org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:249) org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:155) org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:246) org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:160) org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:267) org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:110) org.springframework.beans.factory.support.ConstructorResolver.resolveConstructorArguments(ConstructorResolver.java:389) org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:120) org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:795) org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:713) org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:386) org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:249) org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:155) org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:246) org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:160) org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:291) org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:352) org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:245) org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:188) org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:49) com.atlassian.spring.container.ContainerContextLoaderListener.contextInitialized(ContainerContextLoaderListener.java:32) org.eclipse.jetty.server.handler.ContextHandler.startContext(ContextHandler.java:633) org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:228) org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1160) org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:576) org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:492) org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:55) org.eclipse.jetty.server.handler.HandlerWrapper.doStart(HandlerWrapper.java:93) org.eclipse.jetty.server.Server.doStart(Server.java:243) org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:55) com.atlassian.bamboo.server.Server.main(Server.java:77) Caused by: java.lang.ClassNotFoundException: com.sun.image.codec.jpeg.ImageFormatException java.net.URLClassLoader$1.run(URLClassLoader.java:366) java.net.URLClassLoader$1.run(URLClassLoader.java:355) java.security.AccessController.doPrivileged(Native Method) java.net.URLClassLoader.findClass(URLClassLoader.java:354) java.lang.ClassLoader.loadClass(ClassLoader.java:423) sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308) java.lang.ClassLoader.loadClass(ClassLoader.java:356)	... 47 more 2011-08-01 11:06:01,343 INFO [main] [log] Started SelectChannelConnector@0.0.0.0:9087 **************************************************************** * * * You can see Bamboo by visiting http://localhost:9087/bamboo * * **************************************************************** {noformat}
Story points: 5