I use SmartGWT 4.1 PowerEdition for application development
And I want to use Junit4 to test the server logic,
I have read the following link and do all steps
http://www.smartclient.com/smartgwt/...urceUsage.html
Firstly, I found that it cannot load the file "builtinTypes.xml" and I have found this from SmartGWT zip and manually put in "webapp/showcase/sc/system/schema/" and fix the issue...
But when I continue my trial and found the following error
Finally I fix the exception by copy all file in C:\smartgwtpower-4.1d\samples\gae-cloudSQL\war\GAECloud_js\sc\system\schema to my path (not only "builtinTypes.xml")
My question is, is there any more simple and clean method for me to include this file in test scope? (such as any command in gwt.xml <inherits> I can use to include those schema...)?
Thx in advance!
And I want to use Junit4 to test the server logic,
I have read the following link and do all steps
http://www.smartclient.com/smartgwt/...urceUsage.html
Firstly, I found that it cannot load the file "builtinTypes.xml" and I have found this from SmartGWT zip and manually put in "webapp/showcase/sc/system/schema/" and fix the issue...
But when I continue my trial and found the following error
Code:
ISC: Configuring log4j from: file:/C:/workspaces/default/mygwtshowcase/target/classes/log4j.isc.config.xml === 2014-02-19 09:47:54,423 [main] INFO ISCInit - Isomorphic SmartClient/SmartGWT Framework - Initializing === 2014-02-19 09:47:54,432 [main] INFO ConfigLoader - Attempting to load framework.properties from CLASSPATH === 2014-02-19 09:47:54,571 [main] INFO ConfigLoader - Successfully loaded framework.properties from CLASSPATH at location: jar:file:/C:/m2rep/com/smartgwt/isomorphic_core_rpc/4.1d/isomorphic_core_rpc-4.1d.jar!/framework.properties === 2014-02-19 09:47:54,571 [main] INFO ConfigLoader - Attempting to load project.properties from CLASSPATH === 2014-02-19 09:47:54,572 [main] INFO ConfigLoader - Unable to locate project.properties in CLASSPATH === 2014-02-19 09:47:54,579 [main] INFO ConfigLoader - Successfully loaded isc_interfaces.properties from CLASSPATH at location: jar:file:/C:/m2rep/com/smartgwt/isomorphic_core_rpc/4.1d/isomorphic_core_rpc-4.1d.jar!/isc_interfaces.properties === 2014-02-19 09:47:54,579 [main] INFO ConfigLoader - Attempting to load server.properties from CLASSPATH === 2014-02-19 09:47:54,584 [main] INFO ConfigLoader - Successfully loaded server.properties from CLASSPATH at location: file:/C:/workspaces/default/mygwtshowcase/target/test-classes/server.properties === 2014-02-19 09:47:54,593 [main] INFO Logger - Logging system started. === 2014-02-19 09:47:54,596 [main] INFO ISCInit - Using Configured webRoot: C:/workspaces/default/mygwtshowcase/src/main/webapp === 2014-02-19 09:47:54,597 [main] INFO ISCInit - Isomorphic SmartClient/SmartGWT Framework (SNAPSHOT_v9.1d_2013-11-24/PowerEdition Deployment 2013-11-24) - Initialization Complete === 2014-02-19 09:47:54,680 [main] DEBUG XML - Parsed XML from C:\workspaces\default\mygwtshowcase\src\main\webapp\showcase\sc\system\schema\builtinTypes.xml: 10ms === 2014-02-19 09:47:54,728 [main] INFO PoolManager - SmartClient pooling started for 'simpleTypes' objects === 2014-02-19 09:47:54,865 [main] DEBUG XML - Parsed XML from C:\workspaces\default\mygwtshowcase\src\main\webapp\ds\NavigationMenu.ds.xml: 3ms === 2014-02-19 09:47:54,874 [main] WARN BasicDataSource - NavigationMenu: specification of field 'field' invalid: [ { length:"128", name:"menuCode", required:"true", title:"menuCode", type:"text" }, { name:"navigationMenu", type:"Object" } ] === 2014-02-19 09:47:54,874 [main] WARN BasicDataSource - Corrupt DataSource detected - required files under {isomorphicDir}/system/schema may be missing or unreadable. This typically results from skipping installation steps. If using SmartGWT, verify your <inherits> and run a GWT compile. If using SmartClient, verify you have copied the correct folders from Pro or better smartclientSDK. Installation instructions are linked from the QuickStart Guide.
Finally I fix the exception by copy all file in C:\smartgwtpower-4.1d\samples\gae-cloudSQL\war\GAECloud_js\sc\system\schema to my path (not only "builtinTypes.xml")
My question is, is there any more simple and clean method for me to include this file in test scope? (such as any command in gwt.xml <inherits> I can use to include those schema...)?
Thx in advance!