jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Firoz Khan <mr.firozk...@gmail.com>
Subject JackrabbitBlog startup problem in tomcat 6.0.28 and jdk 6
Date Mon, 13 Dec 2010 05:24:26 GMT

After adding dependencies jar related to JackrabbitBlog application getting
following error:-

Dec 13, 2010 10:42:16 AM org.apache.catalina.core.StandardContext
loadOnStartup
SEVERE: Servlet /JackrabbitBlog threw load() exception
org.xml.sax.SAXParseException: Premature end of file.
	at
org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown
Source)
	at org.apache.xerces.util.ErrorHandlerWrapper.fatalError(Unknown Source)
	at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
	at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
	at org.apache.xerces.impl.XMLVersionDetector.determineDocVersion(Unknown
Source)
	at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
	at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
	at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
	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:246)
	at
org.apache.jackrabbit.core.config.RepositoryConfigurationParser.parseRepositoryConfig(RepositoryConfigurationParser.java:216)
	at
org.apache.jackrabbit.core.config.RepositoryConfig.create(RepositoryConfig.java:149)
	at
org.apache.jackrabbit.core.config.RepositoryConfig.create(RepositoryConfig.java:91)
	at
org.apache.jackrabbit.core.TransientRepository$2.getRepository(TransientRepository.java:240)
	at
org.apache.jackrabbit.core.TransientRepository.startRepository(TransientRepository.java:261)
	at
org.apache.jackrabbit.core.TransientRepository.login(TransientRepository.java:329)
	at
org.apache.jackrabbit.core.TransientRepository.login(TransientRepository.java:359)
	at com.onjava.blog.util.JackrabbitPlugin.init(JackrabbitPlugin.java:37)
	at
org.apache.struts.action.ActionServlet.initModulePlugIns(ActionServlet.java:839)
	at org.apache.struts.action.ActionServlet.init(ActionServlet.java:332)
	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:4149)
	at
org.apache.catalina.core.StandardContext.start(StandardContext.java:4458)
	at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
	at org.apache.catalina.core.StandardHost.start(StandardHost.java:722)
	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:516)
	at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
	at org.apache.catalina.startup.Catalina.start(Catalina.java:583)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
	at java.lang.reflect.Method.invoke(Unknown Source)
	at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
	at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)



Dependencies jar file list mentioned below:-

activation.jar
ant-1.6.5.jar
antlr-2.7.6.jar
antlr.jar
asm.jar
commons-beanutils-1.7.0.jar
commons-chain-1.2.jar
commons-collections-3.2.jar
commons-digester-1.8.1.jar
commons-fileupload-1.2.1.jar
commons-io-1.3.2.jar
commons-lang-2.3.jar
commons-logging-1.0.4.jar
commons-logging-api-1.1.jar
commons-validator-1.3.1.jar
concurrent.jar
derby.jar
itext-1.3.jar
jackrabbit-api-1.5.0.jar
jackrabbit-core-1.5.0.jar
jackrabbit-jcr-benchmark-1.5.0.jar
jackrabbit-jcr-commons-1.5.0.jar
jackrabbit-spi-1.5.0.jar
jackrabbit-spi-commons-1.5.0.jar
jackrabbit-text-extractors-1.5.0.jar
jakarta-oro.jar
jcr-1.0.jar
jdbc2_0-stdext.jar
junit.jar
log4j-1.2.15.jar
slf4j-api-1.5.2.jar
slf4j-log4j12-1.5.2.jar
struts.jar
xercesImpl-2.8.1.jar
xml-apis-1.3.04.jar
xmlParserAPIs-2.0.2.jar

full stack tarce of web page given below:

javax.servlet.ServletException: javax.jcr.RepositoryException: Invalid
repository configuration: repository.xml: Configuration file syntax error.
(Line: -1 Column: -1): Premature end of file.: Configuration file syntax
error. (Line: -1 Column: -1): Premature end of file.: Premature end of file.
	com.onjava.blog.util.JackrabbitPlugin.init(JackrabbitPlugin.java:64)

org.apache.struts.action.ActionServlet.initModulePlugIns(ActionServlet.java:839)
	org.apache.struts.action.ActionServlet.init(ActionServlet.java:332)
	javax.servlet.GenericServlet.init(GenericServlet.java:212)

org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
	org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
	org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:849)

org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
	org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:454)
	java.lang.Thread.run(Unknown Source)


root cause 

javax.jcr.RepositoryException: Invalid repository configuration:
repository.xml: Configuration file syntax error. (Line: -1 Column: -1):
Premature end of file.: Configuration file syntax error. (Line: -1 Column:
-1): Premature end of file.: Premature end of file.

org.apache.jackrabbit.core.TransientRepository$2.getRepository(TransientRepository.java:246)

org.apache.jackrabbit.core.TransientRepository.startRepository(TransientRepository.java:261)

org.apache.jackrabbit.core.TransientRepository.login(TransientRepository.java:329)

org.apache.jackrabbit.core.TransientRepository.login(TransientRepository.java:359)
	com.onjava.blog.util.JackrabbitPlugin.init(JackrabbitPlugin.java:37)

org.apache.struts.action.ActionServlet.initModulePlugIns(ActionServlet.java:839)
	org.apache.struts.action.ActionServlet.init(ActionServlet.java:332)
	javax.servlet.GenericServlet.init(GenericServlet.java:212)

org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
	org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
	org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:849)

org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
	org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:454)
	java.lang.Thread.run(Unknown Source)


root cause 

org.apache.jackrabbit.core.config.ConfigurationException: Configuration file
syntax error. (Line: -1 Column: -1): Premature end of file.: Premature end
of file.

org.apache.jackrabbit.core.config.ConfigurationParser.parseXML(ConfigurationParser.java:252)

org.apache.jackrabbit.core.config.RepositoryConfigurationParser.parseRepositoryConfig(RepositoryConfigurationParser.java:216)

org.apache.jackrabbit.core.config.RepositoryConfig.create(RepositoryConfig.java:149)

org.apache.jackrabbit.core.config.RepositoryConfig.create(RepositoryConfig.java:91)

org.apache.jackrabbit.core.TransientRepository$2.getRepository(TransientRepository.java:240)

org.apache.jackrabbit.core.TransientRepository.startRepository(TransientRepository.java:261)

org.apache.jackrabbit.core.TransientRepository.login(TransientRepository.java:329)

org.apache.jackrabbit.core.TransientRepository.login(TransientRepository.java:359)
	com.onjava.blog.util.JackrabbitPlugin.init(JackrabbitPlugin.java:37)

org.apache.struts.action.ActionServlet.initModulePlugIns(ActionServlet.java:839)
	org.apache.struts.action.ActionServlet.init(ActionServlet.java:332)
	javax.servlet.GenericServlet.init(GenericServlet.java:212)

org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
	org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
	org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:849)

org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
	org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:454)
	java.lang.Thread.run(Unknown Source)


root cause 

org.xml.sax.SAXParseException: Premature end of file.
	org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown
Source)
	org.apache.xerces.util.ErrorHandlerWrapper.fatalError(Unknown Source)
	org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
	org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
	org.apache.xerces.impl.XMLVersionDetector.determineDocVersion(Unknown
Source)
	org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
	org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
	org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
	org.apache.xerces.parsers.DOMParser.parse(Unknown Source)
	org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown Source)

org.apache.jackrabbit.core.config.ConfigurationParser.parseXML(ConfigurationParser.java:246)

org.apache.jackrabbit.core.config.RepositoryConfigurationParser.parseRepositoryConfig(RepositoryConfigurationParser.java:216)

org.apache.jackrabbit.core.config.RepositoryConfig.create(RepositoryConfig.java:149)

org.apache.jackrabbit.core.config.RepositoryConfig.create(RepositoryConfig.java:91)

org.apache.jackrabbit.core.TransientRepository$2.getRepository(TransientRepository.java:240)

org.apache.jackrabbit.core.TransientRepository.startRepository(TransientRepository.java:261)

org.apache.jackrabbit.core.TransientRepository.login(TransientRepository.java:329)

org.apache.jackrabbit.core.TransientRepository.login(TransientRepository.java:359)
	com.onjava.blog.util.JackrabbitPlugin.init(JackrabbitPlugin.java:37)

org.apache.struts.action.ActionServlet.initModulePlugIns(ActionServlet.java:839)
	org.apache.struts.action.ActionServlet.init(ActionServlet.java:332)
	javax.servlet.GenericServlet.init(GenericServlet.java:212)

org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
	org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
	org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:849)

org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
	org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:454)
	java.lang.Thread.run(Unknown Source)


-- 
View this message in context: http://jackrabbit.510166.n4.nabble.com/JackrabbitBlog-startup-problem-in-tomcat-6-0-28-and-jdk-6-tp3084968p3084968.html
Sent from the Jackrabbit - Users mailing list archive at Nabble.com.

Mime
View raw message