[Condition]
intra-mart Accel Platform 2013 Spring
*This event was resolved in intra-mart Accel Platform 2013 Summer.
[Handling methods]
1. Fix setting file
Server restarts in constant intervals when class file or properties file is rewritten if you do not execute this setting.
<web-app xmlns="http://caucho.com/ns/resin" xmlns:resin="urn:java:com.caucho.resin">
<log-handler name="" class="jp.co.intra_mart.common.platform.log.handler.JDKLoggingOverIntramartLoggerHandler"/>
<logger name="debug.com.sun.portal" level="warning" />
<!-- im_service(im_asynchronous) -->
<resource jndi-name="jca/work" type="jp.co.intra_mart.system.asynchronous.impl.executor.work.resin.ResinResourceAdapter" />
… Omitted …
<session-config>
<reuse-session-id>false</reuse-session-id>
<session-timeout>30</session-timeout>
</session-config>
<redeploy-mode>manual</redeploy-mode>
<dependency-check-interval>-1</dependency-check-interval>
</web-app>
2. Create war
“SAStruts Framework on Accel Platform” module is required to use HotDeploy.
Moreover, when using HotDeploy, please set execution environment to set when creating war for “Single test environment”.
3. Setting of web.xml
Edit web.xml after deploying war file created from 2. on resin.
○After defining filter-mapping of s2filter, add definition of hotdeployFilter filter and filter-mapping, and set to validate hotdeploy.
-------
<filter>
<filter-name>hotdeployfilter</filter-name>
<filter-class>org.seasar.framework.container.hotdeploy.HotdeployFilter</filter-class>
</filter>
<filter-mapping>
<filter-name>hotdeployfilter</filter-name>
<url-pattern>/*</url-pattern>
<dispatcher>REQUEST</dispatcher>
<dispatcher>FORWARD</dispatcher>
<dispatcher>INCLUDE</dispatcher>
<dispatcher>ERROR</dispatcher>
</filter-mapping>
-------
○Add following contents as init-palam for definition of AtmosphereServlet.
If you do not execute this setting, the following message will be displayed and HotDeploy will not be valid for displayed class.
“Hot deploy target class (class name) is referred from non-target class and loaded to standard class loader.”
------
<init-param>
<param-name>org.atmosphere.cpr.atmosphereHandlerPath </param-name>
<param-value>/WEB-INF/_classes</param-value>
</init-param>
------
4. Confirm that it is HodDeploy mode when starting server.
Please confirm the following message is displayed in the log during server running.
[INFO] o.s.f.c.f.SingletonS2ContainerFactory - [] Running on [ENV]ut, [DEPLOY MODE]Hot Deploy
*Notes
This is temporary setting to operate Hot Deploy function for 2013 Spring.
-- Target -------------------------------------------------------------------------------------
iAP/Accel Extensions/intra-mart e Builder for Accel Platform/All Updates
-------------------------------------------------------------------------------------------------
FAQID:10