Page 1 of 2 12 LastLast
Results 1 to 10 of 12

Thread: Ext-GWT Tomcat deployment

  1. #1

    Default Ext-GWT Tomcat deployment

    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!

  2. #2
    Sencha User darrellmeyer's Avatar
    Join Date
    May 2007
    Location
    Washington, DC
    Posts
    2,242

    Default

    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.

  3. #3
    Sencha Premium Member
    Join Date
    Apr 2007
    Location
    London, UK
    Posts
    50

    Default For NetBeans

    Could you also include the instructions for NetBeans setup?....

    Thanks in advance.
    No signature.

  4. #4
    Sencha Premium Member
    Join Date
    Oct 2007
    Posts
    129

    Default

    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-...&q=version:1.5


    Scott (pinchhitter on mygwt.net)

  5. #5
    Ext User
    Join Date
    Apr 2008
    Location
    Montreal, QC, CA
    Posts
    2

    Default

    Hi,

    Quote Originally Posted by twosouth View Post
    You will need gwt 1.5 which you can get from .... http://code.google.com/p/google-web-...&q=version:1.5
    You should use GWT from the trunk, milestone 2 is not enough.

    Damien
    Go Habs Go

  6. #6

    Default

    Quote Originally Posted by darrellmeyer View Post
    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???

  7. #7
    Sencha User darrellmeyer's Avatar
    Join Date
    May 2007
    Location
    Washington, DC
    Posts
    2,242

    Default

    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.

  8. #8

    Default

    It is strange but I have the same problem. Here is the Tomcat (6.0.16) log when I open the AsyncTree tab :
    Code:
    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

  9. #9
    Sencha User darrellmeyer's Avatar
    Join Date
    May 2007
    Location
    Washington, DC
    Posts
    2,242

    Default

    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.

  10. #10

    Default

    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

Page 1 of 2 12 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •