简体   繁体   English

托管 HIPPO CMS

[英]Hosting HIPPO CMS

I have built my own hippo project based on hippo-maven-archetype.我已经基于 hippo-maven-archetype 构建了我自己的 hippo 项目。 I have prepared the PostgreSQL configuration of repository and created hippo database.我已经准备好了存储库的 PostgreSQL 配置并创建了 hippo 数据库。 Then I've built my app and run it by maven (mvn -Pcargo.run -Drepo.path=storage).然后我构建了我的应用程序并通过 maven (mvn -Pcargo.run -Drepo.path=storage) 运行它。 All is ok, Postgresql repository was initialized successsfully and hippo works.一切正常,Postgresql 存储库已成功初始化并且 hippo 工作正常。

Now I am trying to deploy my project on my Linux server, as described here, using tomcat 8 and java 8. All is ok, except that the repository does not initializing in any way.现在,我正在尝试将我的项目部署在我的 Linux 服务器上,如此处所述,使用 tomcat 8 和 java 8。一切正常,除了存储库没有以任何方式初始化。

Cms Web-page always redirects to localhost/cms/wicket/bookmarkable/org.hippoecm.frontend.NoRepositoryAvailablePage . Cms 网页总是重定向到localhost/cms/wicket/bookmarkable/org.hippoecm.frontend.NoRepositoryAvailablePage At tomcat startup there are no errors, but also there are no messages about bootstrapping the repository .在 tomcat 启动时没有错误,但也没有关于引导存储库的消息 After successful startup, log files contain exception: java.lang.IllegalArgumentException: The resource path [WEB-INF/storage] is not valid启动成功后,日志文件包含异常: java.lang.IllegalArgumentException: The resource path [WEB-INF/storage] is not valid

Tomcat java command prompt (as ps shows:) Tomcat java 命令提示符(如 ps 所示:)

/usr/bin/java -Djava.util.logging.config.file=/opt/apache-tomcat/conf/logging.properties -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -server -Xmx512m -Xms128m -XX:PermSize=128m -Drepo.path=storage -Drepo.config=file:/opt/apache-tomcat/conf/repository.xml -Drepo.bootstrap=true -Dlog4j.configuration=file:/opt/apache-tomcat/conf/log4j.xml -Djava.endorsed.dirs=/opt/apache-tomcat/endorsed -classpath /opt/apache-tomcat/bin/bootstrap.jar:/opt/apache-tomcat/bin/tomcat-juli.jar -Dcatalina.base=/opt/apache-tomcat -Dcatalina.home=/opt/apache-tomcat -Djava.io.tmpdir=/opt/apache-tomcat/temp org.apache.catalina.startup.Bootstrap start /usr/bin/java -Djava.util.logging.config.file=/opt/apache-tomcat/conf/logging.properties -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -server -Xmx512m - Xms128m -XX:PermSize=128m -Drepo.path=storage -Drepo.config=file:/opt/apache-tomcat/conf/repository.xml -Drepo.bootstrap=true -Dlog4j.configuration=file:/opt/apache- tomcat/conf/log4j.xml -Djava.endorsed.dirs=/opt/apache-tomcat/endorsed -classpath /opt/apache-tomcat/bin/bootstrap.jar:/opt/apache-tomcat/bin/tomcat-juli。 jar -Dcatalina.base=/opt/apache-tomcat -Dcatalina.home=/opt/apache-tomcat -Djava.io.tmpdir=/opt/apache-tomcat/temp org.apache.catalina.startup.Bootstrap 启动

Any ideas?有任何想法吗?

It's a best practice to put your repository storage outside of your web application.最佳做法是将存储库存储置于 Web 应用程序之外。 I would advise you to explicitly set the storage location by using the repo.path system property to a full qualified location on the filesystem instead of a relative path like you do now.我建议您使用repo.path系统属性将存储位置显式设置为文件系统上的完全限定位置,而不是像您现在所做的相对路径。 With Tomcat you could specify this in your setenv.sh file by appending the following parameter to your CATALINA_OPTS.使用 Tomcat,您可以通过将以下参数附加到您的 CATALINA_OPTS 来在您的 setenv.sh 文件中指定它。

CATALINA_OPTS="-Xmx1024m -Drepo.path=/opt/cms-storage/"

You also need to take into account that the configured workspace will be extracted to a separate file within this storage directory, so if you change something within the repository.xml you will probably have to change the existing workspace.xml as well.您还需要考虑到配置的工作区将被提取到此存储目录中的一个单独文件中,因此如果您更改 repository.xml 中的某些内容,您可能也必须更改现有的 workspace.xml。 As of version 7.9.7 Hippo supports running the entire stack on Java 8. See the release notes for more information and what has changed.从 7.9.7 版本开始,Hippo 支持在 Java 8 上运行整个堆栈。有关更多信息和更改内容,请参阅发行说明

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM