java.lang.RuntimeException: Faild to config jcr repo.

JFrog JIRA | Alex Deschapelles | 9 years ago
  1. 0

    Default artifactory.config.xml does not work. Created artifactory home directory and set the JAVA_OPTS for catalina to point to it. Copied the ect directory from the install to the home directory. Here is the contents of the catalina.out : Aug 16, 2007 4:17:19 PM org.apache.catalina.core.AprLifecycleListener lifecycleEvent INFO: The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: /misc/opt/java/jre/lib/i386/client:/misc/opt/java/jre/lib/i386:/misc/opt/java/jre/../lib/i386 Aug 16, 2007 4:17:19 PM org.apache.coyote.http11.Http11BaseProtocol init INFO: Initializing Coyote HTTP/1.1 on http-8080 Aug 16, 2007 4:17:19 PM org.apache.catalina.startup.Catalina load INFO: Initialization processed in 1025 ms Aug 16, 2007 4:17:19 PM org.apache.catalina.core.StandardService start INFO: Starting service Catalina Aug 16, 2007 4:17:19 PM org.apache.catalina.core.StandardEngine start INFO: Starting Servlet Engine: Apache Tomcat/5.5.15 Aug 16, 2007 4:17:19 PM org.apache.catalina.core.StandardHost start INFO: XML validation disabled Aug 16, 2007 4:17:20 PM org.apache.catalina.startup.HostConfig deployWAR INFO: Deploying web application archive artifactory.war log4j:WARN No appenders could be found for logger (org.apache.catalina.session.ManagerBase). log4j:WARN Please initialize the log4j system properly. 2007-08-16 16:17:21,111 [INFO ] webapp.servlet.ArtifactoryContextConfigurer - Starting Artifactory... 2007-08-16 16:17:21,170 [INFO ] webapp.spring.ArtifactoryWebApplicationContext - Refreshing org.artifactory.webapp.spring.ArtifactoryWebApplicationContext@d05c13: display name [Root WebApplicationContext]; startup date [Thu Aug 16 16:17:21 EDT 2007]; root of context hierarchy 2007-08-16 16:17:21,791 [INFO ] webapp.spring.ArtifactoryWebApplicationContext - Bean factory for application context [org.artifactory.webapp.spring.ArtifactoryWebApplicationContext@d05c13]: org.springframework.beans.factory.support.DefaultListableBeanFactory@dec8b3 2007-08-16 16:17:22,054 [INFO ] repo.spring.CentralConfigFactoryBean - Loading configuration (using '/opt/maven_repository/etc/artifactory.config.xml')... 2007-08-16 16:17:22,055 [INFO ] repo.spring.CentralConfigFactoryBean - Trying to load configuration from url... 2007-08-16 16:17:22,055 [INFO ] repo.spring.CentralConfigFactoryBean - Could not load configuration from url '/opt/maven_repository/etc/artifactory.config.xml'. (no protocol: /opt/maven_repository/etc/artifactory.config.xml). 2007-08-16 16:17:22,055 [INFO ] repo.spring.CentralConfigFactoryBean - Trying to load configuration from regular path file reosurce.... 2007-08-16 16:17:23,271 [INFO ] repo.spring.CentralConfigFactoryBean - Loaded configuration from '/opt/maven_repository/etc/artifactory.config.xml'. [Fatal Error] :-1:-1: Premature end of file. 2007-08-16 16:17:23,367 [ERROR] repo.spring.CentralConfigFactoryBean - Failed to load configuration from '/opt/maven_repository/etc/artifactory.config.xml'. java.lang.RuntimeException: Faild to config jcr repo. at org.artifactory.jcr.JcrHelper.<init>(JcrHelper.java:95) at org.artifactory.repo.CentralConfig.afterPropertiesSet(CentralConfig.java:131) at org.artifactory.repo.spring.CentralConfigFactoryBean.afterPropertiesSet(CentralConfigFactoryBean.java:84) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1175) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1145) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:427) at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:251) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:144) 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:276) at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:360) at org.artifactory.webapp.servlet.ArtifactoryContextConfigurer.contextInitialized(ArtifactoryContextConfigurer.java:45) at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3727) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4162) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524) at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:804) at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:693) at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:472) at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1118) at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:310) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1020) at org.apache.catalina.core.StandardHost.start(StandardHost.java:718) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1012) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442) at org.apache.catalina.core.StandardService.start(StandardService.java:450) at org.apache.catalina.core.StandardServer.start(StandardServer.java:700) at org.apache.catalina.startup.Catalina.start(Catalina.java:551) 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:275) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413) Caused by: org.apache.jackrabbit.core.config.ConfigurationException: Configuration file syntax error.: Premature end of file.: Premature end of file. at org.apache.jackrabbit.core.config.ConfigurationParser.parseXML(ConfigurationParser.java:199) at org.apache.jackrabbit.core.config.RepositoryConfigurationParser.parseWorkspaceConfig(RepositoryConfigurationParser.java:330) at org.apache.jackrabbit.core.config.RepositoryConfig.loadWorkspaceConfig(RepositoryConfig.java:362) at org.apache.jackrabbit.core.config.RepositoryConfig.init(RepositoryConfig.java:317) at org.apache.jackrabbit.core.config.RepositoryConfig.create(RepositoryConfig.java:142) at org.apache.jackrabbit.core.config.RepositoryConfig.create(RepositoryConfig.java:115) at org.artifactory.jcr.JcrHelper.<init>(JcrHelper.java:92) ... 36 more Caused by: org.xml.sax.SAXParseException: Premature end of file. at org.apache.xerces.parsers.DOMParser.parse(Unknown Source) at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown Source) at org.apache.jackrabbit.core.config.ConfigurationParser.parseXML(ConfigurationParser.java:193) ... 42 more 2007-08-16 16:17:23,378 [ERROR] [Catalina].[localhost].[/artifactory] - Exception sending context initialized event to listener instance of class org.artifactory.webapp.servlet.ArtifactoryContextConfigurer 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: Faild to config jcr repo. Caused by: java.lang.RuntimeException: java.lang.RuntimeException: Faild to config jcr repo. at org.artifactory.repo.spring.CentralConfigFactoryBean.afterPropertiesSet(CentralConfigFactoryBean.java:94) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1175) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1145) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:427) at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:251) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:144) 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:276) at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:360) at org.artifactory.webapp.servlet.ArtifactoryContextConfigurer.contextInitialized(ArtifactoryContextConfigurer.java:45) at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3727) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4162) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524) at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:804) at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:693) at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:472) at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1118) at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:310) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1020) at org.apache.catalina.core.StandardHost.start(StandardHost.java:718) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1012) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442) at org.apache.catalina.core.StandardService.start(StandardService.java:450) at org.apache.catalina.core.StandardServer.start(StandardServer.java:700) at org.apache.catalina.startup.Catalina.start(Catalina.java:551) 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:275) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413) Caused by: java.lang.RuntimeException: Faild to config jcr repo. at org.artifactory.jcr.JcrHelper.<init>(JcrHelper.java:95) at org.artifactory.repo.CentralConfig.afterPropertiesSet(CentralConfig.java:131) at org.artifactory.repo.spring.CentralConfigFactoryBean.afterPropertiesSet(CentralConfigFactoryBean.java:84) ... 34 more Caused by: org.apache.jackrabbit.core.config.ConfigurationException: Configuration file syntax error.: Premature end of file.: Premature end of file. at org.apache.jackrabbit.core.config.ConfigurationParser.parseXML(ConfigurationParser.java:199) at org.apache.jackrabbit.core.config.RepositoryConfigurationParser.parseWorkspaceConfig(RepositoryConfigurationParser.java:330) at org.apache.jackrabbit.core.config.RepositoryConfig.loadWorkspaceConfig(RepositoryConfig.java:362) at org.apache.jackrabbit.core.config.RepositoryConfig.init(RepositoryConfig.java:317) at org.apache.jackrabbit.core.config.RepositoryConfig.create(RepositoryConfig.java:142) at org.apache.jackrabbit.core.config.RepositoryConfig.create(RepositoryConfig.java:115) at org.artifactory.jcr.JcrHelper.<init>(JcrHelper.java:92) ... 36 more Caused by: org.xml.sax.SAXParseException: Premature end of file. at org.apache.xerces.parsers.DOMParser.parse(Unknown Source) at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown Source) at org.apache.jackrabbit.core.config.ConfigurationParser.parseXML(ConfigurationParser.java:193) ... 42 more Aug 16, 2007 4:17:23 PM org.apache.catalina.core.StandardContext start SEVERE: Error listenerStart

    JFrog JIRA | 9 years ago | Alex Deschapelles
    java.lang.RuntimeException: Faild to config jcr repo.
  2. 0

    Default artifactory.config.xml does not work. Created artifactory home directory and set the JAVA_OPTS for catalina to point to it. Copied the ect directory from the install to the home directory. Here is the contents of the catalina.out : Aug 16, 2007 4:17:19 PM org.apache.catalina.core.AprLifecycleListener lifecycleEvent INFO: The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: /misc/opt/java/jre/lib/i386/client:/misc/opt/java/jre/lib/i386:/misc/opt/java/jre/../lib/i386 Aug 16, 2007 4:17:19 PM org.apache.coyote.http11.Http11BaseProtocol init INFO: Initializing Coyote HTTP/1.1 on http-8080 Aug 16, 2007 4:17:19 PM org.apache.catalina.startup.Catalina load INFO: Initialization processed in 1025 ms Aug 16, 2007 4:17:19 PM org.apache.catalina.core.StandardService start INFO: Starting service Catalina Aug 16, 2007 4:17:19 PM org.apache.catalina.core.StandardEngine start INFO: Starting Servlet Engine: Apache Tomcat/5.5.15 Aug 16, 2007 4:17:19 PM org.apache.catalina.core.StandardHost start INFO: XML validation disabled Aug 16, 2007 4:17:20 PM org.apache.catalina.startup.HostConfig deployWAR INFO: Deploying web application archive artifactory.war log4j:WARN No appenders could be found for logger (org.apache.catalina.session.ManagerBase). log4j:WARN Please initialize the log4j system properly. 2007-08-16 16:17:21,111 [INFO ] webapp.servlet.ArtifactoryContextConfigurer - Starting Artifactory... 2007-08-16 16:17:21,170 [INFO ] webapp.spring.ArtifactoryWebApplicationContext - Refreshing org.artifactory.webapp.spring.ArtifactoryWebApplicationContext@d05c13: display name [Root WebApplicationContext]; startup date [Thu Aug 16 16:17:21 EDT 2007]; root of context hierarchy 2007-08-16 16:17:21,791 [INFO ] webapp.spring.ArtifactoryWebApplicationContext - Bean factory for application context [org.artifactory.webapp.spring.ArtifactoryWebApplicationContext@d05c13]: org.springframework.beans.factory.support.DefaultListableBeanFactory@dec8b3 2007-08-16 16:17:22,054 [INFO ] repo.spring.CentralConfigFactoryBean - Loading configuration (using '/opt/maven_repository/etc/artifactory.config.xml')... 2007-08-16 16:17:22,055 [INFO ] repo.spring.CentralConfigFactoryBean - Trying to load configuration from url... 2007-08-16 16:17:22,055 [INFO ] repo.spring.CentralConfigFactoryBean - Could not load configuration from url '/opt/maven_repository/etc/artifactory.config.xml'. (no protocol: /opt/maven_repository/etc/artifactory.config.xml). 2007-08-16 16:17:22,055 [INFO ] repo.spring.CentralConfigFactoryBean - Trying to load configuration from regular path file reosurce.... 2007-08-16 16:17:23,271 [INFO ] repo.spring.CentralConfigFactoryBean - Loaded configuration from '/opt/maven_repository/etc/artifactory.config.xml'. [Fatal Error] :-1:-1: Premature end of file. 2007-08-16 16:17:23,367 [ERROR] repo.spring.CentralConfigFactoryBean - Failed to load configuration from '/opt/maven_repository/etc/artifactory.config.xml'. java.lang.RuntimeException: Faild to config jcr repo. at org.artifactory.jcr.JcrHelper.<init>(JcrHelper.java:95) at org.artifactory.repo.CentralConfig.afterPropertiesSet(CentralConfig.java:131) at org.artifactory.repo.spring.CentralConfigFactoryBean.afterPropertiesSet(CentralConfigFactoryBean.java:84) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1175) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1145) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:427) at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:251) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:144) 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:276) at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:360) at org.artifactory.webapp.servlet.ArtifactoryContextConfigurer.contextInitialized(ArtifactoryContextConfigurer.java:45) at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3727) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4162) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524) at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:804) at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:693) at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:472) at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1118) at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:310) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1020) at org.apache.catalina.core.StandardHost.start(StandardHost.java:718) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1012) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442) at org.apache.catalina.core.StandardService.start(StandardService.java:450) at org.apache.catalina.core.StandardServer.start(StandardServer.java:700) at org.apache.catalina.startup.Catalina.start(Catalina.java:551) 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:275) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413) Caused by: org.apache.jackrabbit.core.config.ConfigurationException: Configuration file syntax error.: Premature end of file.: Premature end of file. at org.apache.jackrabbit.core.config.ConfigurationParser.parseXML(ConfigurationParser.java:199) at org.apache.jackrabbit.core.config.RepositoryConfigurationParser.parseWorkspaceConfig(RepositoryConfigurationParser.java:330) at org.apache.jackrabbit.core.config.RepositoryConfig.loadWorkspaceConfig(RepositoryConfig.java:362) at org.apache.jackrabbit.core.config.RepositoryConfig.init(RepositoryConfig.java:317) at org.apache.jackrabbit.core.config.RepositoryConfig.create(RepositoryConfig.java:142) at org.apache.jackrabbit.core.config.RepositoryConfig.create(RepositoryConfig.java:115) at org.artifactory.jcr.JcrHelper.<init>(JcrHelper.java:92) ... 36 more Caused by: org.xml.sax.SAXParseException: Premature end of file. at org.apache.xerces.parsers.DOMParser.parse(Unknown Source) at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown Source) at org.apache.jackrabbit.core.config.ConfigurationParser.parseXML(ConfigurationParser.java:193) ... 42 more 2007-08-16 16:17:23,378 [ERROR] [Catalina].[localhost].[/artifactory] - Exception sending context initialized event to listener instance of class org.artifactory.webapp.servlet.ArtifactoryContextConfigurer 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: Faild to config jcr repo. Caused by: java.lang.RuntimeException: java.lang.RuntimeException: Faild to config jcr repo. at org.artifactory.repo.spring.CentralConfigFactoryBean.afterPropertiesSet(CentralConfigFactoryBean.java:94) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1175) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1145) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:427) at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:251) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:144) 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:276) at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:360) at org.artifactory.webapp.servlet.ArtifactoryContextConfigurer.contextInitialized(ArtifactoryContextConfigurer.java:45) at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3727) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4162) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524) at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:804) at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:693) at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:472) at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1118) at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:310) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1020) at org.apache.catalina.core.StandardHost.start(StandardHost.java:718) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1012) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442) at org.apache.catalina.core.StandardService.start(StandardService.java:450) at org.apache.catalina.core.StandardServer.start(StandardServer.java:700) at org.apache.catalina.startup.Catalina.start(Catalina.java:551) 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:275) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413) Caused by: java.lang.RuntimeException: Faild to config jcr repo. at org.artifactory.jcr.JcrHelper.<init>(JcrHelper.java:95) at org.artifactory.repo.CentralConfig.afterPropertiesSet(CentralConfig.java:131) at org.artifactory.repo.spring.CentralConfigFactoryBean.afterPropertiesSet(CentralConfigFactoryBean.java:84) ... 34 more Caused by: org.apache.jackrabbit.core.config.ConfigurationException: Configuration file syntax error.: Premature end of file.: Premature end of file. at org.apache.jackrabbit.core.config.ConfigurationParser.parseXML(ConfigurationParser.java:199) at org.apache.jackrabbit.core.config.RepositoryConfigurationParser.parseWorkspaceConfig(RepositoryConfigurationParser.java:330) at org.apache.jackrabbit.core.config.RepositoryConfig.loadWorkspaceConfig(RepositoryConfig.java:362) at org.apache.jackrabbit.core.config.RepositoryConfig.init(RepositoryConfig.java:317) at org.apache.jackrabbit.core.config.RepositoryConfig.create(RepositoryConfig.java:142) at org.apache.jackrabbit.core.config.RepositoryConfig.create(RepositoryConfig.java:115) at org.artifactory.jcr.JcrHelper.<init>(JcrHelper.java:92) ... 36 more Caused by: org.xml.sax.SAXParseException: Premature end of file. at org.apache.xerces.parsers.DOMParser.parse(Unknown Source) at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown Source) at org.apache.jackrabbit.core.config.ConfigurationParser.parseXML(ConfigurationParser.java:193) ... 42 more Aug 16, 2007 4:17:23 PM org.apache.catalina.core.StandardContext start SEVERE: Error listenerStart

    JFrog JIRA | 9 years ago | Alex Deschapelles
    java.lang.RuntimeException: Faild to config jcr repo.
  3. 0

    org.xml.sax.SAXParseException: Premature end of file

    Stack Overflow | 5 years ago | Dave
    org.xml.sax.SAXParseException: Premature end of file.
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Problem parsing String to DOM in Java

    Stack Overflow | 5 years ago | Larry
    org.xml.sax.SAXParseException: Premature end of file.
  6. 0

    SAXParseException when invoking web service from web application deployed on web sphere

    Stack Overflow | 4 years ago | user1579389
    org.xml.sax.SAXParseException: Premature end of file.

    33 unregistered visitors
    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.xml.sax.SAXParseException

      Premature end of file.

      at org.apache.xerces.parsers.DOMParser.parse()
    2. Xerces2-j
      DocumentBuilderImpl.parse
      1. org.apache.xerces.parsers.DOMParser.parse(Unknown Source)
      2. org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown Source)
      2 frames
    3. Jackrabbit Core
      RepositoryConfig.create
      1. org.apache.jackrabbit.core.config.ConfigurationParser.parseXML(ConfigurationParser.java:193)
      2. org.apache.jackrabbit.core.config.RepositoryConfigurationParser.parseWorkspaceConfig(RepositoryConfigurationParser.java:330)
      3. org.apache.jackrabbit.core.config.RepositoryConfig.loadWorkspaceConfig(RepositoryConfig.java:362)
      4. org.apache.jackrabbit.core.config.RepositoryConfig.init(RepositoryConfig.java:317)
      5. org.apache.jackrabbit.core.config.RepositoryConfig.create(RepositoryConfig.java:142)
      6. org.apache.jackrabbit.core.config.RepositoryConfig.create(RepositoryConfig.java:115)
      6 frames
    4. org.artifactory.jcr
      JcrHelper.<init>
      1. org.artifactory.jcr.JcrHelper.<init>(JcrHelper.java:92)
      1 frame
    5. org.artifactory.repo
      CentralConfigFactoryBean.afterPropertiesSet
      1. org.artifactory.repo.CentralConfig.afterPropertiesSet(CentralConfig.java:131)
      2. org.artifactory.repo.spring.CentralConfigFactoryBean.afterPropertiesSet(CentralConfigFactoryBean.java:84)
      2 frames
    6. Spring Beans
      DefaultListableBeanFactory.preInstantiateSingletons
      1. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1175)
      2. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1145)
      3. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:427)
      4. org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:251)
      5. org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:144)
      6. org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:248)
      7. org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:160)
      8. org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:276)
      8 frames
    7. Spring Context
      AbstractApplicationContext.refresh
      1. org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:360)
      1 frame
    8. org.artifactory.webapp
      ArtifactoryContextConfigurer.contextInitialized
      1. org.artifactory.webapp.servlet.ArtifactoryContextConfigurer.contextInitialized(ArtifactoryContextConfigurer.java:45)
      1 frame
    9. Glassfish Core
      Catalina.start
      1. org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3727)
      2. org.apache.catalina.core.StandardContext.start(StandardContext.java:4162)
      3. org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759)
      4. org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739)
      5. org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524)
      6. org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:804)
      7. org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:693)
      8. org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:472)
      9. org.apache.catalina.startup.HostConfig.start(HostConfig.java:1118)
      10. org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:310)
      11. org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
      12. org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1020)
      13. org.apache.catalina.core.StandardHost.start(StandardHost.java:718)
      14. org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1012)
      15. org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442)
      16. org.apache.catalina.core.StandardService.start(StandardService.java:450)
      17. org.apache.catalina.core.StandardServer.start(StandardServer.java:700)
      18. org.apache.catalina.startup.Catalina.start(Catalina.java:551)
      18 frames
    10. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      4. java.lang.reflect.Method.invoke(Method.java:585)
      4 frames
    11. Glassfish Core
      Bootstrap.main
      1. org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:275)
      2. org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
      2 frames