org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'centralConfig' defined in ServletContext resource [/WEB-INF/applicationContext.xml]: Invocation of init method failed; nested exception is java.lang.RuntimeException: java.lang.RuntimeException: Failed to read object from stream.: java.lang.RuntimeException: java.lang.RuntimeException: Failed to read object from stream. at org.artifactory.repo.spring.CentralConfigFactoryBean.afterPropertiesSet (CentralConfigFactoryBean.java:94)

JFrog JIRA | Yoav Landman | 9 years ago
  1. 0

    2007-07-03 16:51:58,404 [ERROR] repo.spring.CentralConfigFactoryBean - Failed to load configuration from '/home/jetty/artifactory-1.2.5-SNAPSHOT/etc/artifactory.config.xml'. java.lang.RuntimeException: Failed to read object from stream. at org.artifactory.config.jaxb.JaxbHelper.read (JaxbHelper.java:98) at org.artifactory.repo.spring.CentralConfigFactoryBean.afterPropertiesSet(CentralConfigFactoryBean.java:82) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods (AbstractAutowireCapableBeanFactory.java:1202) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1172) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean (AbstractAutowireCapableBeanFactory.java:428) at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:251) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton (DefaultSingletonBeanRegistry.java:156) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:248) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean (AbstractBeanFactory.java:160) at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:284) at org.springframework.context.support.AbstractApplicationContext.refresh (AbstractApplicationContext.java:352) at org.artifactory.webapp.servlet.ArtifactoryContextConfigurer.contextInitialized(ArtifactoryContextConfigurer.java:45) at org.mortbay.jetty.handler.ContextHandler.startContext (ContextHandler.java:530) at org.mortbay.jetty.servlet.Context.startContext(Context.java:135) at org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1218) at org.mortbay.jetty.handler.ContextHandler.doStart (ContextHandler.java:500) at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:448) at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:40) at org.mortbay.jetty.handler.HandlerCollection.doStart (HandlerCollection.java:147) at org.mortbay.jetty.handler.ContextHandlerCollection.doStart(ContextHandlerCollection.java:161) at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:40) at org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:147) at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:40) at org.mortbay.jetty.handler.HandlerWrapper.doStart (HandlerWrapper.java:117) at org.mortbay.jetty.Server.doStart(Server.java:220) at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:40) at org.artifactory.standalone.main.Main.main (Main.java:47) Caused by: java.lang.LinkageError: JAXB 2.0 API is being loaded from the bootstrap classloader, but this RI (from jar:file:/tmp/Jetty_0_0_0_0_8081_artifactory.war__artifactory__6u9e4o/webapp/WEB-INF/lib/jaxb- impl-2.1.3.jar!/com/sun/xml/bind/v2/model/impl/ModelBuilder.class) needs 2.1 API. Use the endorsed directory mechanism to place jaxb-api.jar in the bootstrap classloader. (See http://java.sun.com/j2se/1.5.0/docs/guide/standards/) at com.sun.xml.bind.v2.model.impl.ModelBuilder.<clinit>(ModelBuilder.java:136) at com.sun.xml.bind.v2.runtime.JAXBContextImpl.getTypeInfoSet (JAXBContextImpl.java:406) at com.sun.xml.bind.v2.runtime.JAXBContextImpl.<init>(JAXBContextImpl.java:270) at com.sun.xml.bind.v2.ContextFactory.createContext(ContextFactory.java:103) at com.sun.xml.bind.v2.ContextFactory.createContext(ContextFactory.java:81) 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:597) at javax.xml.bind.ContextFinder.newInstance (ContextFinder.java:210) at javax.xml.bind.ContextFinder.find(ContextFinder.java:368) at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:574) at javax.xml.bind.JAXBContext.newInstance (JAXBContext.java:522) at org.artifactory.config.jaxb.JaxbHelper.read(JaxbHelper.java:80) ... 26 more 2007-07-03 16:51:58.528::WARN: Failed startup of context org.mortbay.jetty.webapp.WebAppContext@e0d5eb7{ /artifactory,jar:file:/home/jetty/artifactory-1.2.5-SNAPSHOT/webapps/artifactory.war!/} org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'centralConfig' defined in ServletContext resource [/WEB-INF/applicationContext.xml]: Invocation of init method failed; nested exception is java.lang.RuntimeException: java.lang.RuntimeException: Failed to read object from stream. Caused by: java.lang.RuntimeException: java.lang.RuntimeException: Failed to read object from stream. at org.artifactory.repo.spring.CentralConfigFactoryBean.afterPropertiesSet (CentralConfigFactoryBean.java:94) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1202) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean (AbstractAutowireCapableBeanFactory.java:1172) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:428) at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject (AbstractBeanFactory.java:251) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:156) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean (AbstractBeanFactory.java:248) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:160) at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons (DefaultListableBeanFactory.java:284) at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:352) at org.artifactory.webapp.servlet.ArtifactoryContextConfigurer.contextInitialized (ArtifactoryContextConfigurer.java:45) at org.mortbay.jetty.handler.ContextHandler.startContext(ContextHandler.java:530) at org.mortbay.jetty.servlet.Context.startContext(Context.java:135) at org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1218) at org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:500) at org.mortbay.jetty.webapp.WebAppContext.doStart (WebAppContext.java:448) at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:40) at org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:147) at org.mortbay.jetty.handler.ContextHandlerCollection.doStart (ContextHandlerCollection.java:161) at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:40) at org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:147) at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:40) at org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:117) at org.mortbay.jetty.Server.doStart(Server.java:220) at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:40) at org.artifactory.standalone.main.Main.main(Main.java:47) Caused by: java.lang.RuntimeException: Failed to read object from stream. at org.artifactory.config.jaxb.JaxbHelper.read(JaxbHelper.java:98) at org.artifactory.repo.spring.CentralConfigFactoryBean.afterPropertiesSet(CentralConfigFactoryBean.java:82) ... 25 more Caused by: java.lang.LinkageError: JAXB 2.0 API is being loaded from the bootstrap classloader, but this RI (from jar:file:/tmp/Jetty_0_0_0_0_8081_artifactory.war__artifactory__6u9e4o/webapp/WEB-INF/lib/jaxb-impl-2.1.3.jar!/com/sun/xml/bind/v2/model/impl/ModelBuilder.class ) needs 2.1 API. Use the endorsed directory mechanism to place jaxb-api.jar in the bootstrap classloader. (See http://java.sun.com/j2se/1.5.0/docs/guide/standards/ ) at com.sun.xml.bind.v2.model.impl.ModelBuilder.<clinit>(ModelBuilder.java:136) at com.sun.xml.bind.v2.runtime.JAXBContextImpl.getTypeInfoSet(JAXBContextImpl.java:406) at com.sun.xml.bind.v2.runtime.JAXBContextImpl .<init>(JAXBContextImpl.java:270) at com.sun.xml.bind.v2.ContextFactory.createContext(ContextFactory.java:103) at com.sun.xml.bind.v2.ContextFactory.createContext(ContextFactory.java:81) 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:597) at javax.xml.bind.ContextFinder.newInstance(ContextFinder.java:210) at javax.xml.bind.ContextFinder.find(ContextFinder.java:368) at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:574) at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:522) at org.artifactory.config.jaxb.JaxbHelper.read(JaxbHelper.java:80) ... 26 more 2007-07-03 16:51:58.531::WARN: Nested in org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'centralConfig' defined in ServletContext resource [/WEB-INF/applicationContext.xml]: Invocation of init method failed; nested exception is java.lang.RuntimeException: java.lang.RuntimeException: Failed to read object from stream.: java.lang.RuntimeException: java.lang.RuntimeException: Failed to read object from stream. at org.artifactory.repo.spring.CentralConfigFactoryBean.afterPropertiesSet (CentralConfigFactoryBean.java:94) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1202) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean (AbstractAutowireCapableBeanFactory.java:1172) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:428) at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject (AbstractBeanFactory.java:251) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:156) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean (AbstractBeanFactory.java:248) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:160) at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons (DefaultListableBeanFactory.java:284) at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:352) at org.artifactory.webapp.servlet.ArtifactoryContextConfigurer.contextInitialized (ArtifactoryContextConfigurer.java:45) at org.mortbay.jetty.handler.ContextHandler.startContext(ContextHandler.java:530) at org.mortbay.jetty.servlet.Context.startContext(Context.java:135) at org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1218) at org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:500) at org.mortbay.jetty.webapp.WebAppContext.doStart (WebAppContext.java:448) at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:40) at org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:147) at org.mortbay.jetty.handler.ContextHandlerCollection.doStart (ContextHandlerCollection.java:161) at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:40) at org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:147) at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:40) at org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:117) at org.mortbay.jetty.Server.doStart(Server.java:220) at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:40) at org.artifactory.standalone.main.Main.main(Main.java:47) Caused by: java.lang.RuntimeException: Failed to read object from stream. at org.artifactory.config.jaxb.JaxbHelper.read(JaxbHelper.java:98) at org.artifactory.repo.spring.CentralConfigFactoryBean.afterPropertiesSet(CentralConfigFactoryBean.java:82) ... 25 more Caused by: java.lang.LinkageError: JAXB 2.0 API is being loaded from the bootstrap classloader, but this RI (from jar:file:/tmp/Jetty_0_0_0_0_8081_artifactory.war__artifactory__6u9e4o/webapp/WEB-INF/lib/jaxb-impl-2.1.3.jar!/com/sun/xml/bind/v2/model/impl/ModelBuilder.class ) needs 2.1 API. Use the endorsed directory mechanism to place jaxb-api.jar in the bootstrap classloader. (See http://java.sun.com/j2se/1.5.0/docs/guide/standards/ ) at com.sun.xml.bind.v2.model.impl.ModelBuilder.<clinit>(ModelBuilder.java:136) at com.sun.xml.bind.v2.runtime.JAXBContextImpl.getTypeInfoSet(JAXBContextImpl.java:406) at com.sun.xml.bind.v2.runtime.JAXBContextImpl .<init>(JAXBContextImpl.java:270) at com.sun.xml.bind.v2.ContextFactory.createContext(ContextFactory.java:103) at com.sun.xml.bind.v2.ContextFactory.createContext(ContextFactory.java:81) 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:597) at javax.xml.bind.ContextFinder.newInstance(ContextFinder.java:210) at javax.xml.bind.ContextFinder.find(ContextFinder.java:368) at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:574) at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:522) at org.artifactory.config.jaxb.JaxbHelper.read(JaxbHelper.java:80) ... 26 more 2007-07-03 16:51:58.547::INFO: Started SelectChannelConnector@0.0.0.0:8081 2007-07-03 16:51:58.547::INFO: AJP13 is not a secure protocol. Please protect port 8010 2007-07-03 16:51:58.548::INFO: Started Ajp13SocketConnector@0.0.0.0:8010

    JFrog JIRA | 9 years ago | Yoav Landman
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'centralConfig' defined in ServletContext resource [/WEB-INF/applicationContext.xml]: Invocation of init method failed; nested exception is java.lang.RuntimeException: java.lang.RuntimeException: Failed to read object from stream.: java.lang.RuntimeException: java.lang.RuntimeException: Failed to read object from stream. at org.artifactory.repo.spring.CentralConfigFactoryBean.afterPropertiesSet (CentralConfigFactoryBean.java:94)
  2. 0

    org.springframework.transaction.jta.WebLogicJtaTransactionManager Spring - WebLogic 11g - Webservice

    Coderanch | 7 years ago | thomas davis
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'creditAssessmentTaskMgmtService' defined in ServletContext resource [/WEB-INF/classes/creditAssessmentRequest-spring.xml]: Invocation of init method failed; nested exception is java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
  3. 0

    error in websphere8.5.5.7 when trying to deploy spring war file with java1.7

    Stack Overflow | 7 months ago | Meena
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'entityManagerFactoryBean' defined in ServletContext resource [/WEB-INF/spring-config.xml]: Invocation of init method failed; nested exception is java.lang.RuntimeException: Trying to instanciate interface javax.persistence.ColumnResult with unknown elements
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    質問!ITmedia - Struts、Spring、iBATISについて

    co.jp | 3 months ago
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sqlMapClient' defined in class path resource [applicationContext.xml]: Invocation of init method failed; nested exception is org.springframework.core.NestedIOException: Failed to parse config resource: ServletContext resource [/WEB-INF/conf/sqlMapConfig.xml]; nested exception is com.ibatis.common.xml.NodeletException: Error parsing XML. Cause: java.lang.RuntimeException: Error parsing XPath '/sqlMapConfig/sqlMap'. Cause: java.io.IOException: Could not find resource jp/co/best/app/dao/map/test_SqlMap.xml
  6. 0

    TeamCity Failure to Start: OutOfMemoryError: GC overhead limit exceeded

    YouTrack | 5 years ago
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'buildServerConfigurator' defined in ServletContext resource [/WEB-INF/buildServerConfigurator.xml]: Invocation of init method failed; nested exception is java.lang.RuntimeException: Failed to load TeamCity configuration. Error processing query result by jetbrains.buildServer.serverSide.impl.query.VcsModificationsSelector$1@f22456 params:[], query: 'SELECT h.MODIFICATION_ID, h.USER_NAME, h.DESCRIPTION, h.CHANGE_DATE, h.VCS_ROOT_ID, h.VERSION, h.DISPLAY_VERSION, h.CHANGES_COUNT, h.REGISTER_DATE FROM vcs_history h'

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. org.springframework.beans.factory.BeanCreationException

      Error creating bean with name 'centralConfig' defined in ServletContext resource [/WEB-INF/applicationContext.xml]: Invocation of init method failed; nested exception is java.lang.RuntimeException: java.lang.RuntimeException: Failed to read object from stream.: java.lang.RuntimeException: java.lang.RuntimeException: Failed to read object from stream. at org.artifactory.repo.spring.CentralConfigFactoryBean.afterPropertiesSet (CentralConfigFactoryBean.java:94)

      at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods()
    2. Spring Beans
      AbstractAutowireCapableBeanFactory.invokeInitMethods
      1. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1202)
      1 frame