PDA

View Full Version : Ext-GWT Tomcat deployment



Dariusz
21 Apr 2008, 1:20 AM
GREAT JOB!

Really, ExtJS rocks! :-)

Over the weekend, I tried to work with ExtJS and GWT. To use it in Eclipse was realy easy to set it up and ran my app locally. :) The documentation (http://code.google.com/p/gwt-ext/) is really cool, until I tried to deploy it on my server (Tomcat).

Therefore, I'm very interested to hear, if you are planing to have some tutorials how to deploy an Ext-GWT application on a tomcat server.

Thanks again for your excellent work!

darrellmeyer
21 Apr 2008, 4:03 AM
The Ext GWT distribution includes an explorer.war file that can be easily deployed. You can simply move the war to your tomcat installation under webapps. This is the same way the explorer demo is deployed on the ext server.

New documentation and tutorials will be added to the wiki very soon. This will include tutorials for configuring and using Ext GWT.

Lucian
21 Apr 2008, 5:31 AM
Could you also include the instructions for NetBeans setup?....:D

Thanks in advance.

twosouth
21 Apr 2008, 7:59 AM
Hey Lucian,

I've been using Netbeans with mygwt (now Ext GWT) for about six months and it works great. There is a library that you can load from [tools][libraries] in NB 6.01 (GWT1.4.60). I don't know if there is a 1.5 library but it's really just a matter of proper jar file placement within your project. Place the Ext GWT jars ahead of GWT and you should be good to go.

You will need gwt 1.5 which you can get from .... http://code.google.com/p/google-web-toolkit/downloads/list?can=4&q=version:1.5


Scott (pinchhitter on mygwt.net)

damsca
21 Apr 2008, 8:18 AM
Hi,



You will need gwt 1.5 which you can get from .... http://code.google.com/p/google-web-toolkit/downloads/list?can=4&q=version:1.5

You should use GWT from the trunk, milestone 2 is not enough.

Damien

rollo
17 Jun 2008, 2:02 AM
The Ext GWT distribution includes an explorer.war file that can be easily deployed. You can simply move the war to your tomcat installation under webapps. This is the same way the explorer demo is deployed on the ext server.

But, why does the remote service not work, like asynctree, when i add the explorer.war to my tomcat???

darrellmeyer
17 Jun 2008, 8:47 AM
But, why does the remote service not work, like asynctree, when i add the explorer.war to my tomcat???The explorer.war and mail.war are used on the ext site:

http://extjs.com/explorer
http://extjs.com/mail

So I am not sure why you are having problems. You may need to check your tomcat logs.

zaccret
18 Jun 2008, 9:56 AM
It is strange but I have the same problem. Here is the Tomcat (6.0.16) log when I open the AsyncTree tab :

GRAVE: Exception while dispatching incoming RPC call
com.google.gwt.user.server.rpc.UnexpectedException: Service method 'public abstract java.util.List com.extjs.gxt.samples.explorer.client.FileService.getFolderChildren(com.extjs.gxt.samples.explorer.client.model.FileModel)' threw an unexpected exception: java.lang.NullPointerException
at com.google.gwt.user.server.rpc.RPC.encodeResponseForFailure(RPC.java:360)
at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:546)
at com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServiceServlet.java:163)
at com.google.gwt.user.server.rpc.RemoteServiceServlet.doPost(RemoteServiceServlet.java:85)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
at java.lang.Thread.run(Thread.java:619)
Caused by: java.lang.NullPointerException
at com.extjs.gxt.samples.explorer.server.FileServiceImpl.getFolderChildren(Unknown Source)
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 com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:527)
... 16 more

darrellmeyer
18 Jun 2008, 12:59 PM
I downloaded a fresh copy of tomcat 6.0.16, unzipped it, put the explorer.war in webapps folder, and started tomcat. Everything works fine, including RPC code. This was on Vista with Java 1.6.0.

Have you tried a new tomcat install? If not, give it a try.

zaccret
18 Jun 2008, 10:36 PM
I did the same (on Windows XP) but it still not works. Maybe we don't have the same explorer.war version. When I start the demo, it says "Ext GWT 1.0-beta4" whereas I downloaded the beta5 sdk here : http://extjs.com/products/gxt/download.php

zaccret
22 Jun 2008, 10:07 PM
Now I have the Ext GWT 1.0-rc1b and I still have the same error. I don't understand... :(

sdc
3 Jul 2008, 6:29 AM
http://extjs.com/forum/showthread.php?t=39517