I am running SmartGWTPower Nightly and gwt 2.3. I am unit testing my classes with TestNG and I am getting the following error:
I don't know if this has anything to do with the error but I have this line of code in my Before Class method
Code:
[TestNG] Running: /tmp/testng-eclipse-1449633325/testng-customsuite.xml ISC: Configuring log4j from: file:/my/directory/my/application/war/WEB-INF/classes/log4j.isc.config.xml === 2012-01-02 17:25:09,864 [main] INFO ISCInit - Isomorphic SmartClient Framework - Initializing === 2012-01-02 17:25:09,869 [main] INFO ConfigLoader - Attempting to load framework.properties from CLASSPATH === 2012-01-02 17:25:09,945 [main] INFO ConfigLoader - Successfully loaded framework.properties from CLASSPATH at location: jar:file:/my/directory/my/application/war/WEB-INF/lib/isomorphic_core_rpc.jar!/framework.properties === 2012-01-02 17:25:09,945 [main] INFO ConfigLoader - Attempting to load project.properties from CLASSPATH === 2012-01-02 17:25:09,946 [main] INFO ConfigLoader - Unable to locate project.properties in CLASSPATH === 2012-01-02 17:25:09,948 [main] INFO ConfigLoader - Successfully loaded isc_interfaces.properties from CLASSPATH at location: jar:file:/my/directory/my/application/war/WEB-INF/lib/isomorphic_core_rpc.jar!/isc_interfaces.properties === 2012-01-02 17:25:09,948 [main] INFO ConfigLoader - Attempting to load server.properties from CLASSPATH === 2012-01-02 17:25:09,952 [main] INFO ConfigLoader - Successfully loaded server.properties from CLASSPATH at location: file:/my/directory/my/application/war/WEB-INF/classes/server.properties === 2012-01-02 17:25:09,955 [main] INFO Logger - Logging system started. === 2012-01-02 17:25:09,956 [main] INFO ISCInit - Isomorphic SmartClient Framework (SC_SNAPSHOT-2011-08-02/PowerEdition Deployment 2011-08-02) - Initialization Complete === 2012-01-02 17:25:09,957 [main] INFO ISCInit - No ServletContext available yet - using container IO for now === 2012-01-02 17:25:09,965 [main] INFO PoolManager - SmartClient pooling disabled for 'BubblyDataSource' objects Problem loading builtinTypes.xml Exception when loading from __USE_CONTAINER__/myappname/sc/system/schema/builtinTypes.xml: java.io.IOException: Configured for containerIO, but servletContext not available! You need to install the Init servlet at com.isomorphic.io.ISCFile.<init>(ISCFile.java:139) at com.isomorphic.store.ProcessedFileCache.getObjectFromFile(ProcessedFileCache.java:138) at com.isomorphic.xml.XML.getXMLDocument(XML.java:254) at com.isomorphic.xml.XML.toDSRecords(XML.java:262) at com.isomorphic.xml.XML.toDSRecords(XML.java:265) at com.isomorphic.datasource.DataSource.<clinit>(DataSource.java:544) at com.isomorphic.datasource.PoolableDataSourceFactory.makeUnpooledObject(PoolableDataSourceFactory.java:95) at com.isomorphic.datasource.PoolableDataSourceFactory.makeObject(PoolableDataSourceFactory.java:102) at com.isomorphic.pool.PoolManager.borrowObject(PoolManager.java:82) at com.isomorphic.datasource.DataSourceManager.getDataSource(DataSourceManager.java:81) at my.package.structure.MyClass.createTarget(MyClass.java:182) at my.package.structure.MyClass_WBTest.createTarget(MyClass_WBTest.java:141) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:80) at org.testng.internal.MethodInvocationHelper$1.runTestMethod(MethodInvocationHelper.java:169) at org.springframework.test.context.testng.AbstractTestNGSpringContextTests.run(AbstractTestNGSpringContextTests.java:158) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.testng.internal.MethodInvocationHelper.invokeHookable(MethodInvocationHelper.java:181) at org.testng.internal.Invoker.invokeMethod(Invoker.java:684) at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:883) at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:1208) at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:127) at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:111) at org.testng.TestRunner.privateRun(TestRunner.java:753) at org.testng.TestRunner.run(TestRunner.java:613) at org.testng.SuiteRunner.runTest(SuiteRunner.java:335) at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:330) at org.testng.SuiteRunner.privateRun(SuiteRunner.java:292) at org.testng.SuiteRunner.run(SuiteRunner.java:241) at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52) at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:86) at org.testng.TestNG.runSuitesSequentially(TestNG.java:1169) at org.testng.TestNG.runSuitesLocally(TestNG.java:1094) at org.testng.TestNG.run(TestNG.java:1006) at org.testng.remote.RemoteTestNG.run(RemoteTestNG.java:107) at org.testng.remote.RemoteTestNG.initAndRun(RemoteTestNG.java:199) at org.testng.remote.RemoteTestNG.main(RemoteTestNG.java:170)
Code:
theMockServletContext = new MockServletContext(new FileSystemResourceLoader());
Comment