I have a JAR application from which I launch an embedded Jetty server that deploys a WAR file. The WAR file is zipped and lives in the JAR file. When running the app, I get the following error:
Line 23 of StartupServlet:
I've been reading around a bit on the forums and the following doc: http://www.smartclient.com/smartgwtee-latest/javadoc/com/smartgwt/client/docs/StandaloneDataSourceUsage.html
The suggestion for standalone apps seem to be to provide the path to the war directory of the project. In this context, it would be unrealistic to have the webRoot be an absolute path. Is there a way to make this configuration work?
Code:
Exception when loading from __USE_CONTAINER__/proxy/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:255) at com.isomorphic.xml.XML.toDSRecords(XML.java:263) at com.isomorphic.xml.XML.toDSRecords(XML.java:266) at com.isomorphic.datasource.DataSource.<clinit>(DataSource.java:555) at my.app.StartupServlet.init(StartupServlet.java:23)
Code:
22 MyDSGenerator datasourceGenerator = new MyDSGenerator(); 23 DataSource.addDynamicDSGenerator(datasourceGenerator);
The suggestion for standalone apps seem to be to provide the path to the war directory of the project. In this context, it would be unrealistic to have the webRoot be an absolute path. Is there a way to make this configuration work?
Comment