2011-02-28 88 views
2

我正在從源代碼構建Alfresco並希望將其部署到Tomcat上。可以請任何人向我解釋這一點?沒有足夠的信息關於它hereTomcat上的Alfresco部署

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,它是這樣的:

忘掉虛擬化服務器

  • 在這種情況下,構建腳本部署的東西到$ {env.var.that.is .not.set}

我結束了

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

從我讀這裏Virtualization_Server_FAQ,我不需要它了,但構建腳本上VIRTUAL_TOMCAT_HOME變量有點兒數,並將其部署一些tomcat的5.x的東西,如常見的服務器目錄

最後我試圖找到什麼是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 

謝謝

回答

0

虛擬化服務器是用於運行實現通過一個露天WCM項目管理的結構化內容的表示層的Java應用程序定製的Tomcat實例。 ant腳本提供了一種將自定義應用於標準Tomcat分配的方法,以使其可以作爲virtualization server工作。很可能你可以放心地忽略它。

APP_TOMCAT_HOME應該指向將舉辦露天的份額,而TOMCAT_HOME將舉辦露天倉庫Tomcat的分發文件夾。他們可以是同一臺服務器。

我能夠重現與在Alfresco部署期間Tomcat進程內存不足時出現的問題相似的問題。再次嘗試增加內存限制,例如:

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

還看看建議的JVM settings

+0

謝謝skuro,我增加了內存,沒有它我不會去java.lang.reflect.InvocationTargetException的問題...我放棄了...我寧願堅持長耳老虎和liferay ...我從未見過如此混亂的部署,以及缺乏關於這個重要軟件的重要事情......這個口徑的軟件。 – lisak 2011-03-05 20:50:22

+0

我將特定類的記錄器設置爲TRACE模式,但我無法找出問題所在,所有內容在安裝腳本的alfresco包中都顯示爲... – lisak 2011-03-05 20:52:50

+0

這真的很奇怪,它不適合你,我從昨天開始嘗試使用HEAD,它工作得很好,在增加可用內存到應用程序服務器之後異常消失。在一個側面說明中,我同意Alfresco可以讓開發人員更輕鬆地引導他們的代碼。 – skuro 2011-03-07 12:15:44