gpt4 book ai didi

java - Tomcat 上的 Alfresco 部署

转载 作者:行者123 更新时间:2023-11-29 09:22:49 24 4
gpt4 key购买 nike

我正在从源代码构建 Alfresco,并希望将其部署到 Tomcat 上。任何人都可以向我解释一下吗?关于它的信息不足here .

APP_TOMCAT_HOME (can be used to host the Slingshot webapp)

VIRTUAL_TOMCAT_HOME (NOTE: this must be a totally separate installation of Tomcat; it is required for virtualization)

我想 APP_TOMCAT_HOME 可以和 TOMCAT_HOME 在同一个位置,但是虚拟化呢?它是关于什么的?为什么?

我找到了 this thread它就像:

Forget about virtualization server

  • 在这种情况下,构建脚本将内容部署到 ${env.var.that.is.not.set}

我结束了

java.lang.ClassNotFoundException: org.apache.catalina.storeconfig.StoreConfigLifecycleListener

从我在这里读到的Virtualization_Server_FAQ ,我根本不需要它,但是构建脚本有点依赖 VIRTUAL_TOMCAT_HOME 变量,它部署了一些 tomcat 5.x 的东西,比如公共(public)目录和服务器目录

最后我试图找到 this wiki entry 中发生了什么但它也是“断章取义”......

这是我走了多远:

INFO: Initializing Coyote HTTP/1.1 on http-8080
Feb 28, 2011 4:24:49 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 466 ms
Feb 28, 2011 4:24:49 PM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Feb 28, 2011 4:24:49 PM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/6.0.29
Feb 28, 2011 4:24:49 PM org.apache.catalina.startup.HostConfig deployDescriptor
INFO: Deploying configuration descriptor alfresco.xml
Feb 28, 2011 4:24:50 PM org.apache.catalina.core.StandardContext addApplicationListener
INFO: The listener "org.apache.myfaces.webapp.StartupServletContextListener" is already configured for this context. The duplicate definition has been ignored.
16:24:55,574 INFO [alfresco.config.JndiPropertiesFactoryBean] Loading properties file from class path resource [alfresco/repository.properties]
16:24:55,576 INFO [alfresco.config.JndiPropertiesFactoryBean] Loading properties file from class path resource [alfresco/domain/transaction.properties]
16:24:55,619 INFO [alfresco.config.JndiPropertyPlaceholderConfigurer] Loading properties file from class path resource [alfresco/alfresco-shared.properties]
16:24:55,727 INFO [alfresco.config.FixedPropertyPlaceholderConfigurer] Loading properties file from class path resource [alfresco/version.properties]
16:24:55,760 INFO [alfresco.config.FixedPropertyPlaceholderConfigurer] Loading properties file from class path resource [alfresco/domain/cache-strategies.properties]
16:25:07,058 INFO [extensions.webscripts.TemplateProcessorRegistry] Registered template processor Repository Template Processor for extension ftl
16:25:07,061 INFO [extensions.webscripts.ScriptProcessorRegistry] Registered script processor Repository Script Processor for extension js
16:25:14,227 INFO [domain.schema.SchemaBootstrap] Schema managed by database dialect org.hibernate.dialect.MySQLInnoDBDialect.
16:25:14,481 INFO [domain.schema.SchemaBootstrap] No changes were made to the schema.
1 6:25:14,531 INFO [management.subsystems.ChildApplicationContextFactory] Starting 'sysAdmin' subsystem, ID: [sysAdmin, default]
16:25:14,543 INFO [alfresco.config.FixedPropertyPlaceholderConfigurer] Loading properties file from class path resource [alfresco/version.properties]
16:25:14,543 INFO [alfresco.config.JndiPropertyPlaceholderConfigurer] Loading properties file from class path resource [alfresco/alfresco-shared.properties]
16:25:14,544 INFO [alfresco.config.FixedPropertyPlaceholderConfigurer] Loading properties file from class path resource [alfresco/domain/cache-strategies.properties]
16:25:14,554 INFO [management.subsystems.ChildApplicationContextFactory] Startup of 'sysAdmin' subsystem, ID: [sysAdmin, default] complete
java.lang.reflect.InvocationTargetException
Exception in thread "main" Exception in thread "RMI RenewClean-[127.0.0.1:50504]" Exception in thread "RMI RenewClean-[127.0.0.1:50506]" Exception in thread "RMI RenewClean-[127.0.0.1:50502]" Exception in thread "RMI RenewClean-[127.0.0.1:50505]" Exception in thread "RMI RenewClean-[127.0.0.1:50508]" Exception in thread "RMI RenewClean-[127.0.0.1:50501]" Exception in thread "RMI TCP Connection(idle)" Exception in thread "RMI TCP Connection(idle)"

环境:

Alfresco Revision 25908
tomcat 6.0.29
java version "1.6.0_16"
linux x86_64

谢谢

最佳答案

虚拟化服务器是一个定制的 Tomcat 实例,用于运行 Java 应用程序,该应用程序实现了通过 Alfresco 中的 WCM 项目管理的结构化内容的表示层。 ant 脚本提供了一种将自定义应用到标准 Tomcat 发行版以使其能够作为 virtualization server 运行的方法。 .您很可能可以安全地忽略它。

APP_TOMCAT_HOME 应指向将托管 Alfresco Share 的 Tomcat 分发文件夹,而 TOMCAT_HOME 将托管 Alfresco Repository。它们可以是同一台服务器。

我能够重现同样的问题,这似乎是在 Alfresco 部署期间 Tomcat 进程内存不足时发生的。增加内存限制再试一次,例如:

tomcat-6.0.29$ export JAVA_OPTS="-Xmx512m -XX:MaxPermSize=160m"
tomcat-6.0.29$ bin/startup.sh

也看看建议的 JVM settings .

关于java - Tomcat 上的 Alfresco 部署,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5143051/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com