[Hippo-cms7-user] Deploying cms.war in Tomcat

Bart van der Schans b.vanderschans at onehippo.com
Thu Dec 3 12:09:52 CET 2009


Hi Joris,

Probably your repository.xml or workspace.xml is corrupt. They are
located resp. in WEB-INF/classes/org/hippoecm/repository and
repository/workspace/default/workspace.xml. Can you take a look and
check for things like valid xml and line endings?

Bart

On Thu, Dec 3, 2009 at 10:28 AM, Joris Verbogt <joris at mangrove.nl> wrote:
>
> Guys,
>
> When I try to deploy to Tomcat 5.5, I get a repository load error:
>
> ---
> [Fatal Error] :-1:-1: Premature end of file.
> 03.12.2009 10:17:58 ERROR
> [org.hippoecm.repository.RepositoryServlet.init():180] Error while setting
> up JCR repository:
> org.apache.jackrabbit.core.config.ConfigurationException: Configuration file
> syntax error. (Line: -1 Column: -1): Premature end of file.: Premature end
> of fi
> le.
>        at
> org.apache.jackrabbit.core.config.ConfigurationParser.parseXML(ConfigurationParser.java:252)
>        at
> org.apache.jackrabbit.core.config.ConfigurationParser.parseXML(ConfigurationParser.java:221)
>        at
> org.apache.jackrabbit.core.config.RepositoryConfigurationParser.parseWorkspaceConfig(RepositoryConfigurationParser.java:410)
>        at
> org.apache.jackrabbit.core.config.RepositoryConfig.loadWorkspaceConfig(RepositoryConfig.java:379)
>        at
> org.apache.jackrabbit.core.config.RepositoryConfig.init(RepositoryConfig.java:334)
>        at
> org.apache.jackrabbit.core.config.RepositoryConfig.create(RepositoryConfig.java:150)
>        at
> org.apache.jackrabbit.core.config.RepositoryConfig.create(RepositoryConfig.java:123)
>        at
> org.hippoecm.repository.LocalHippoRepository.initializeStartup(LocalHippoRepository.java:296)
>        at
> org.hippoecm.repository.LocalHippoRepository.initialize(LocalHippoRepository.java:274)
>        at
> org.hippoecm.repository.LocalHippoRepository.<init>(LocalHippoRepository.java:153)
>        at
> org.hippoecm.repository.LocalHippoRepository.create(LocalHippoRepository.java:161)
>        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>        at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>        at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>        at java.lang.reflect.Method.invoke(Method.java:616)
>        at
> org.hippoecm.repository.HippoRepositoryFactory.getHippoRepository(HippoRepositoryFactory.java:238)
>        at
> org.hippoecm.repository.RepositoryServlet.init(RepositoryServlet.java:154)
>        at
> org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1139)
>        at
> org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:966)
>        at
> org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3956)
>        at
> org.apache.catalina.core.StandardContext.start(StandardContext.java:4226)
>        at
> org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:760)
>        at
> org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:740)
>        at
> org.apache.catalina.core.StandardHost.addChild(StandardHost.java:544)
>        at
> org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:825)
>        at
> org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:714)
>        at
> org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:490)
>        at
> org.apache.catalina.startup.HostConfig.start(HostConfig.java:1138)
>        at
> org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)
>        at
> org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:120)
>        at
> org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1022)
>        at
> org.apache.catalina.core.StandardHost.start(StandardHost.java:736)
>        at
> org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)
>        at
> org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
>        at
> org.apache.catalina.core.StandardService.start(StandardService.java:448)
>        at
> org.apache.catalina.core.StandardServer.start(StandardServer.java:700)
>        at org.apache.catalina.startup.Catalina.start(Catalina.java:552)
>        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>        at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>        at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>        at java.lang.reflect.Method.invoke(Method.java:616)
>        at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295)
>        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:433)
> 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:246)
>        ... 42 more
> 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:246)
>        at
> org.apache.jackrabbit.core.config.ConfigurationParser.parseXML(ConfigurationParser.java:221)
>        at
> org.apache.jackrabbit.core.config.RepositoryConfigurationParser.parseWorkspaceConfig(RepositoryConfigurationParser.java:410)
>        at
> org.apache.jackrabbit.core.config.RepositoryConfig.loadWorkspaceConfig(RepositoryConfig.java:379)
>        at
> org.apache.jackrabbit.core.config.RepositoryConfig.init(RepositoryConfig.java:334)
>        at
> org.apache.jackrabbit.core.config.RepositoryConfig.create(RepositoryConfig.java:150)
>        at
> org.apache.jackrabbit.core.config.RepositoryConfig.create(RepositoryConfig.java:123)
>        at
> org.hippoecm.repository.LocalHippoRepository.initializeStartup(LocalHippoRepository.java:296)
>        at
> org.hippoecm.repository.LocalHippoRepository.initialize(LocalHippoRepository.java:274)
>        at
> org.hippoecm.repository.LocalHippoRepository.<init>(LocalHippoRepository.java:153)
>        at
> org.hippoecm.repository.LocalHippoRepository.create(LocalHippoRepository.java:161)
>        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>        at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>        at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>        at java.lang.reflect.Method.invoke(Method.java:616)
>        at
> org.hippoecm.repository.HippoRepositoryFactory.getHippoRepository(HippoRepositoryFactory.java:238)
>        at
> org.hippoecm.repository.RepositoryServlet.init(RepositoryServlet.java:154)
>        at
> org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1139)
>        at
> org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:966)
>        at
> org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3956)
>        at
> org.apache.catalina.core.StandardContext.start(StandardContext.java:4226)
>        at
> org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:760)
>        at
> org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:740)
>        at
> org.apache.catalina.core.StandardHost.addChild(StandardHost.java:544)
>        at
> org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:825)
>        at
> org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:714)
>        at
> org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:490)
>        at
> org.apache.catalina.startup.HostConfig.start(HostConfig.java:1138)
>        at
> org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)
>        at
> org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:120)
>        at
> org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1022)
>        at
> org.apache.catalina.core.StandardHost.start(StandardHost.java:736)
>        at
> org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)
>        at
> org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
>        at
> org.apache.catalina.core.StandardService.start(StandardService.java:448)
>        at
> org.apache.catalina.core.StandardServer.start(StandardServer.java:700)
>        at org.apache.catalina.startup.Catalina.start(Catalina.java:552)
>        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>        at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>        at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>        at java.lang.reflect.Method.invoke(Method.java:616)
>        at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295)
>        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:433)
> ---
>
>
> I tried including xalan in the endorsed libs, but no effect. Any hints?
>
> Regards,
>
> Joris Verbogt
> --
> View this message in context: http://n2.nabble.com/Deploying-cms-war-in-Tomcat-tp4105009p4105009.html
> Sent from the Hippo CMS 7 mailing list archive at Nabble.com.
> _______________________________________________
> Hippo-cms7-user mailing list and forums
> http://www.onehippo.org/cms7/support/community.html
>



-- 
Hippo B.V.  -  Amsterdam
Oosteinde 11, 1017 WT, Amsterdam, +31(0)20-5224466

Hippo USA Inc.  -  San Francisco
101 H Street, Suite Q, Petaluma CA, 94952-3329, +1 (707) 773-4646
-----------------------------------------------------------------
http://www.onehippo.com   -  info at onehippo.com
-----------------------------------------------------------------



More information about the Hippo-cms7-user mailing list