你好我的TomEE Plume中有两次部署战争,但是没有明显的运行,我也不知道为什么会这样。
主配置.properties:
engine.name=corp-000
# The class name for the JDBC Driver
db.driver=org.hsqldb.jdbcDriver
# The JDBC URL used to connect to the database
db.url=jdbc:jdbc:hsqldb:hsql://localhost:9001/db1
# The user to login as who can create and update tables
db.user=sa
# The password for the user to login as
db.password=
registration.url=
sync.url=http://localhost:8080/symmetricNodoPadre/corp-000/sync
# Do not change these for running the demo
group.id=corp
external.id=000
# Don't muddy the waters with purge logging
job.purge.period.time.ms=7200000
# This is how often the routing job will be run in milliseconds
job.routing.period.time.ms=5000
# This is how often the push job will be run.
job.push.period.time.ms=10000
# This is how often the pull job will be run.
job.pull.period.time.ms=10000
# Kick off initial load
initial.load.create.first=true
我的奴隶配置.properties
engine.name=$(hostName)
# The class name for the JDBC Driver
db.driver=org.hsqldb.jdbcDriver
# The JDBC URL used to connect to the database
db.url=jdbc:jdbc:hsqldb:hsql://localhost:9002/db2
# The user to login as who can create and update tables
db.user=sa
# The password for the user to login as
db.password=
# The HTTP URL of the root node to contact for registration
registration.url=http://localhost:8080/symmetricNodoPadre/corp-000/sync
# Do not change these for running --the demo
group.id=store
external.id=$(hostName)
# This is how often the routing job will be run in milliseconds
job.routing.period.time.ms=5000
# This is how often the push job will be run.
job.push.period.time.ms=10000
# This is how often the pull job will be run.
job.pull.period.time.ms=10000
和web.xml
<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
version="2.5">
<display-name>SymmetricDS</display-name>
<context-param>
<param-name>autoStart</param-name>
<param-value>true</param-value>
</context-param>
<!-- To turn on multi server mode in a war deployment uncomment this. The engines directory
is controlled by -Dsymmetric.engines.dir=/path/to/dir. The default value is "engines"
<context-param>
<param-name>multiServerMode</param-name>
<param-value>true</param-value>
</context-param>
-->
<!-- To specify the name of the properties file to use in a war deployment uncomment this. -->
<context-param>
<param-name>singleServerPropertiesFile</param-name>
<param-value>/symmetricNodoPadre/WEB-INF/classes/symmetric.properties</param-value>
</context-param>
<!-- In order to use extension points defined in an existing spring context turn this setting on
<context-param>
<param-name>useWebApplicationContext</param-name>
<param-value>true</param-value>
</context-param>
-->
<context-param>
<param-name>deploymentType</param-name>
<param-value>server</param-value>
</context-param>
<context-param>
<param-name>contextClass</param-name>
<param-value>
org.springframework.web.context.support.AnnotationConfigWebApplicationContext
</param-value>
</context-param>
<context-param>
<param-name>contextConfigLocation</param-name>
<param-value>org.jumpmind.symmetric.web.rest</param-value>
</context-param>
<listener>
<listener-class>org.jumpmind.symmetric.web.SymmetricContextListener</listener-class>
</listener>
<listener>
<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
</listener>
<servlet>
<servlet-name>SymmetricServlet</servlet-name>
<servlet-class>org.jumpmind.symmetric.web.SymmetricServlet</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet>
<servlet-name>rest</servlet-name>
<servlet-class>
org.springframework.web.servlet.DispatcherServlet
</servlet-class>
<init-param>
<param-name>contextClass</param-name>
<param-value>
org.springframework.web.context.support.AnnotationConfigWebApplicationContext
</param-value>
</init-param>
<init-param>
<param-name>contextConfigLocation</param-name>
<param-value>org.jumpmind.symmetric.web.rest</param-value>
</init-param>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>SymmetricServlet</servlet-name>
<url-pattern>/sync/*</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>rest</servlet-name>
<url-pattern>/api/*</url-pattern>
</servlet-mapping>
</web-app>
在奴隶Web.xml中显然我把另一条路径表示为symmetricNodoHijo / WEB-INF / classes / symmetric.properties