We are trying to deploy a EAR file with multiple WAR files, but it seem that the "webroot" is only detected once, because when the second WAR file initializes, it says "Isomorphic SmartClient/SmartGWT Framework is already initialized". As a result, the datasource configuration files (*.ds.xml) in the second WAR cannot get loaded because the web root to the second WAR is never detected. It will attempt to load them from the web root of the first WAR.
SmartGWT Version : v8.3p_2013-01-24/PowerEdition Deployment (2013-01-24)
We have also created a sample EAR file to illustrate this issue, and deployed it into a Geronimo 3.0 (geronimo-tomcat7-javaee6) application server. The zipped source for the sample EAR has been attached as "demo.txt", please rename it to "demo.zip" and extract it. Below are the logs:
SmartGWT Version : v8.3p_2013-01-24/PowerEdition Deployment (2013-01-24)
We have also created a sample EAR file to illustrate this issue, and deployed it into a Geronimo 3.0 (geronimo-tomcat7-javaee6) application server. The zipped source for the sample EAR has been attached as "demo.txt", please rename it to "demo.zip" and extract it. Below are the logs:
Code:
ISC: Configuring log4j from: file:/C:/Temp/G3/repository/com/test/test-ear/1.0/test-ear-1.0.ear/test-war-one-1.0-SNAPSHOT.war/WEB-INF/classes/log4j.is c.config.xml === 2013-02-09 01:28:41,483 [d-86] INFO ISCInit - Isomorphic SmartClient/SmartGWT Framework initialization called from com.isomorphic.base.InitListen er === 2013-02-09 01:28:41,484 [d-86] INFO ISCInit - Isomorphic SmartClient/SmartGWT Framework - Initializing === 2013-02-09 01:28:41,490 [d-86] INFO ConfigLoader - Attempting to load framework.properties from CLASSPATH === 2013-02-09 01:28:41,616 [d-86] INFO ConfigLoader - Successfully loaded framework.properties from CLASSPATH at location: jar:file:/C:/Temp/G3/repo sitory/com/test/test-ear/1.0/test-ear-1.0.ear/test-war-one-1.0-SNAPSHOT.war/WEB-INF/lib/isomorphic-core-rpc-3.1p.jar!/framework.properties === 2013-02-09 01:28:41,618 [d-86] INFO ConfigLoader - Attempting to load project.properties from CLASSPATH === 2013-02-09 01:28:41,619 [d-86] INFO ConfigLoader - Unable to locate project.properties in CLASSPATH === 2013-02-09 01:28:41,625 [d-86] INFO ConfigLoader - Successfully loaded isc_interfaces.properties from CLASSPATH at location: jar:file:/C:/Temp/G3 /repository/com/test/test-ear/1.0/test-ear-1.0.ear/test-war-one-1.0-SNAPSHOT.war/WEB-INF/lib/isomorphic-core-rpc-3.1p.jar!/isc_interfaces.properties === 2013-02-09 01:28:41,627 [d-86] INFO ConfigLoader - Attempting to load server.properties from CLASSPATH === 2013-02-09 01:28:41,629 [d-86] INFO ConfigLoader - Successfully loaded server.properties from CLASSPATH at location: file:/C:/Temp/G3/repository/ com/test/test-ear/1.0/test-ear-1.0.ear/test-war-one-1.0-SNAPSHOT.war/WEB-INF/classes/server.properties === 2013-02-09 01:28:41,637 [d-86] INFO Logger - Logging system started. === 2013-02-09 01:28:41,639 [d-86] INFO ISCInit - Isomorphic SmartClient/SmartGWT Framework (v8.3p_2013-01-24/PowerEdition Deployment 2013-01-24) - I nitialization Complete === 2013-02-09 01:28:41,641 [d-86] INFO ISCInit - Auto-detected webRoot - using: C:\Temp\G3\repository\com\test\test-ear\1.0\test-ear-1.0.ear\test-wa r-one-1.0-SNAPSHOT.war === 2013-02-09 01:28:42,791 [d-86] INFO ISCInit - Isomorphic SmartClient/SmartGWT Framework initialization called from com.isomorphic.base.InitListen er === 2013-02-09 01:28:42,792 [d-86] INFO ISCInit - Isomorphic SmartClient/SmartGWT Framework is already initialized
Comment