Возникла такая проблема: понадобилось поднять JCommune и Poulpe на домашнем компе (винда). Скачал и поставил Джаву, Томкэт, Мускул. Взял из repo.jtalks.org готовые сборки JCommune и Poulpe. Подредактировал конфиг-файлы. Но Poulpe запускается нормально, а вот вместо JCommune - 404 ошибка. Хотя действия с ними проводил идентичные. Томкэт пробовал 6 и 7.
Конфиг:
jcommune.xml
<?xml version='1.0' encoding='utf-8'?> <!-- The file should be used to configure JCommune, like its database access, mail passwords, etc. --> <!-- This file should be placed into $TOMCAT_HOME/conf/Catalina/localhost folder and its name should be the same --> <!-- as the name of war file. E.g. if the war file is 'jcommune.war', then this file should be 'jcommune.xml' --> <Context> <WatchedResource>WEB-INF/web.xml</WatchedResource> <!--database configuration, change user, password and database name if you need--> <Environment name="JCOMMUNE_DB_USER" value="root" type="java.lang.String"/> <Environment name="JCOMMUNE_DB_PASSWORD" value="" type="java.lang.String"/> <Environment name="JCOMMUNE_DB_URL" type="java.lang.String" value="jdbc:mysql://localhost/jtalks02?characterEncoding=UTF-8"/> <!-- SMTP server that's used to send mails to the end user (e.g. during registration) --> <!-- Please, don't use these credentials if possible (and don't use it for bad things ;)), --> <!-- but if you want just to quickly try the app or you're a part of dev team, feel free to use these credentials --> <Environment name="SMTP_HOST" value="smtp.mail.ru" type="java.lang.String"/> <Environment name="SMTP_PORT" value="25" type="java.lang.String"/> <Environment name="MAIL_USERNAME" value="jtalks@inbox.ru" type="java.lang.String"/> <Environment name="MAIL_PASSWORD" value="javatalks" type="java.lang.String"/> <!-- You'll need this configuration to be in $TOMCAT_HOME/conf only if you need to run Poulpe together with JCommune --> <!-- Note, that if you really need this, ehcache configuration should have the same port as Poulpe ehcache configuration. --> <!--Environment name="EH_CACHE_CONFIG" value="file:/home/tomcat/app/tomcat-uat/conf/jcommune.ehcache.xml" type="java.lang.String" /--> </Context>
Для сравнения poulpe.xml
<?xml version='1.0' encoding='utf-8'?> <!-- The file should be used to configure the app, like its database access, mail passwords, etc. --> <!-- It should be placed into $TOMCAT_HOME/conf/Catalina/localhost folder and its name should be the same --> <!-- as the name of war file. E.g. if the war file is 'poulpe.war', then this file should be 'poulpe.xml' --> <Context> <WatchedResource>WEB-INF/web.xml</WatchedResource> <!--database configuration, change user, password and database name if you need--> <Environment name="POULPE_DB_USER" value="root" type="java.lang.String"/> <Environment name="POULPE_DB_PASSWORD" value="" type="java.lang.String"/> <Environment name="POULPE_DB_URL" type="java.lang.String" value="jdbc:mysql://localhost/jtalks02?characterEncoding=UTF-8"/> <!--This is a cache configuration file, it's required because JCommune and Poulpe are using shared distributed cache to communicate with updates. Thus, uncomment it if you need both Poulpe and JCommune running together at the same time. It should be similar to this config: https://github.com/jtalks-org/poulpe/blob/master/poulpe-model/src/main/resources/org/jtalks/poulpe/model/entity/ehcache.xml The port inside of this file might require changing to the same as JCommune uses. Or vice versa--> <!-- <Environment name="EH_CACHE_CONFIG" value="/home/someuser/soft/apache-tomcat/conf/poulpe.ehcache.xml" type="java.lang.String" /> --> </Context>
Вот логи:
jcommune-bulk.log - http://pastebin.com/A5zfcc2c
jcommune-application.log - http://pastebin.com/CQHdguww