We currently use GWT and those apps are compiled using gwt-maven plugin and injected into jetty container.
I solved a lot of my problem by looking at the forums.
1st one was Mavenization
For this I have a proxy bound for pulling in dependencies
For this I followed the instructions on
http://confluence.bytesource.net/dis...GWT+EE+project
The following are the dependencies in my eclipse project pom
Now all I am trying to do is recreate this example in our environment to see if the whole framework gels with our maven/build/embedded jetty world.
http://www.smartclient.com/smartgwte...mple_custom_ds
The following is my server.properties.
Notice I removed _AUTODETECT_ for this but it didn't help.
We use a Java program to launch the GWtDevMode service as means for a custom Dev Mode. When that launches, the deve mode launches fine.
But on executing the entry page, I see following on the server side
and this on firebug
I am attaching a pic of the project structure (sideways due to your forum limit). As you can see the server.properties is right where you want it to be. So I believe its finding it but something else is awry.
Unless I am missing a very subtle detail, I think this now needs your set of eyes to helps me resolve this. We would like to purchase enterprise license if all works out fine. I have not been able to even start with the SmartGWTUI and play with other options, so this is delaying our evaluation window.
I solved a lot of my problem by looking at the forums.
1st one was Mavenization
For this I have a proxy bound for pulling in dependencies
For this I followed the instructions on
http://confluence.bytesource.net/dis...GWT+EE+project
The following are the dependencies in my eclipse project pom
Code:
<dependency> <groupId>com.smartgwt</groupId> <artifactId>smartgwt</artifactId> </dependency> <dependency> <groupId>com.isomorphic</groupId> <artifactId>isomorphic.core-rpc</artifactId> <version>3.1</version> </dependency> <dependency> <groupId>com.isomorphic</groupId> <artifactId>isomorphic.tools</artifactId> <version>3.1</version> </dependency> <dependency> <groupId>commons-jxpath</groupId> <artifactId>commons-jxpath</artifactId> <version>1.3</version> </dependency> <dependency> <groupId>com.smartgwtee</groupId> <artifactId>smartgwtee</artifactId> <version>3.1</version> </dependency> <dependency> <groupId>isc.org.apache</groupId> <artifactId>isc-jakarta-oro</artifactId> <version>2.0.6</version> </dependency>
http://www.smartclient.com/smartgwte...mple_custom_ds
The following is my server.properties.
Code:
webRoot: adminui/adminui.smartcomponentui gwtModuleName: adminui.smartcomponentui isomorphicPathRootRelative: $gwtModuleName/sc sql.defaultDatabase: HSQLDB sql.HSQLDB.database.type: hsqldb sql.HSQLDB.interface.type: driverManager sql.HSQLDB.driver: org.hsqldb.jdbcDriver sql.HSQLDB.driver.url: jdbc:hsqldb:hsql://localhost/smartgwtee project.datasources: $webRoot/ds project.ui: $webRoot/shared/ui project.apps: $webRoot/shared/app
We use a Java program to launch the GWtDevMode service as means for a custom Dev Mode. When that launches, the deve mode launches fine.
But on executing the entry page, I see following on the server side
Code:
Problem loading builtinTypes.xml Exception when loading from __USE_CONTAINER__/isomorphic/system/schema/builtinTypes.xml: java.lang.NullPointerException at com.isomorphic.io.ISCFile.lastModified(ISCFile.java:419) at com.isomorphic.store.ProcessedFileCache.getObjectFromFile(ProcessedFileCache.java:140) at com.isomorphic.xml.XML.getXMLDocument(XML.java:286) at com.isomorphic.xml.XML.toDSRecords(XML.java:294) at com.isomorphic.xml.XML.toDSRecords(XML.java:298) at com.isomorphic.xml.XML.toDSRecords(XML.java:301) at com.isomorphic.datasource.DataSource.<clinit>(DataSource.java:581) at com.isomorphic.datasource.PoolableDataSourceFactory.makeUnpooledObject(PoolableDataSourceFactory.java:119) at com.isomorphic.datasource.PoolableDataSourceFactory.makeObject(PoolableDataSourceFactory.java:127) at com.isomorphic.pool.PoolManager.borrowObject(PoolManager.java:94) at com.isomorphic.datasource.DataSourceManager.getDataSource(DataSourceManager.java:89) at com.isomorphic.datasource.DataSourceManager.getDataSource(DataSourceManager.java:83) at com.isomorphic.servlet.DataSourceLoader.processRequest(DataSourceLoader.java:126) at com.isomorphic.servlet.DataSourceLoader.doGet(DataSourceLoader.java:94) at javax.servlet.http.HttpServlet.service(HttpServlet.java:693) at com.isomorphic.servlet.BaseServlet.service(BaseServlet.java:152) at javax.servlet.http.HttpServlet.service(HttpServlet.java:806) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:511) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:401) at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216) at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182) at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:766) at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:450) at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:230) at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114) at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152) at org.mortbay.jetty.Server.handle(Server.java:326) at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:542) at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:928) at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:549) at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:212) at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404) at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:410) at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:582)
Code:
<BR>BaseServlet Global Exception<BR> <PRE> javax.servlet.ServletException: javax.servlet.jsp.JspException: Unable to load DataSource for ID: connectords at com.isomorphic.servlet.DataSourceLoader.processRequest(DataSourceLoader.java:128) at com.isomorphic.servlet.DataSourceLoader.doGet(DataSourceLoader.java:94) at javax.servlet.http.HttpServlet.service(HttpServlet.java:693) at com.isomorphic.servlet.BaseServlet.service(BaseServlet.java:152) at javax.servlet.http.HttpServlet.service(HttpServlet.java:806) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:511) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:401) at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216) at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182) .....
Unless I am missing a very subtle detail, I think this now needs your set of eyes to helps me resolve this. We would like to purchase enterprise license if all works out fine. I have not been able to even start with the SmartGWTUI and play with other options, so this is delaying our evaluation window.
Comment