Hi Sumit,

Thank you very much for your help. I have solved the problem by following
the .war file structure created by NetBean GWT4NB so I'm not sure whether
the errors you pointed out are the only problems or not. Have you ever used
GWT4NB? It supports editing RPC calls very well.

Thank you very much,
Cuong
On Mon, Oct 6, 2008 at 2:45 AM, Sumit Chandel <[EMAIL PROTECTED]>wrote:

> Hi Duc Cuong,
> How's it going with this? Did you manage to get the DynaTable sample
> application working with your Tomcat server?
>
> I remember you reached out to me by email, and at that time I had the
> following suggestions:
>
>    - The <servlet-class> element is misspelled as <servlet-lass>
>
>    - Did you remember to make sure the .class file for the
>    CalendarServiceImpl class made it through to the WEB-INF/classes folder?
>
> Did double-checking those two points help out?
>
> Thanks,
>  -Sumit Chandel
>
> On Wed, Oct 1, 2008 at 4:41 AM, Duc Cuong <[EMAIL PROTECTED]> wrote:
>
>>
>> Hi everybody,
>>
>> I am trying to deploy the Dynamic Table example ( the example that
>> goes along with Google Web Toolkit 1.5 installation package) on the
>> Tomcat servlet container 6.0.18.
>>
>> I have followed every step in the "Example Deployment with Tomcat"
>> section in the online Google Web Toolkit 1.5 Developer's Guide, which
>> are:
>> - Make a folder DynaTable
>> - Put all the files in the www/ folder of the DynaTable project to the
>> folder DynaTable above.
>> - In the DynaTable, make the sub-folder WEB-INF and then in the WEB-
>> INF create other two sub-folder "classes" and "lib".
>> - Put the servlet of the project in the "classes" folder (of course
>> along with the folders corresponding to the package containing this
>> servlet).
>> - Put the gwt-servlet.jar in the "lib" folder.
>> - Create an web.xml file and put it in the WEB-INF folder, whose
>> content is as follows:
>>
>> <?xml version="1.0" encoding="UTF-8"?>
>> <web-app xmlns="http://java.sun.com/xml/ns/j2ee";
>>    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
>>    xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
>> http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd";
>>    version="2.4">
>>
>>        <servlet>
>>                <servlet-name>CalendarService</servlet-name>
>>                <servlet-
>> lass>com.google.gwt.sample.dynatable.server.SchoolCalendarServiceImpl
>>                </servlet-class>
>>        </servlet>
>>
>>        <servlet-mapping>
>>                <servlet-name>CalendarService</servlet-name>
>>                <url-pattern>/calendar</url-pattern>
>>        </servlet-mapping>
>>
>> </web-app>
>>
>> *Please note that the value of <url-pattern> is exactly the same as
>> the URL defined by ServiceDefTarget.setServiceEntryPoint().
>>
>> This is the result I have received so far:
>> - I can access to the DynaTable.html via URL
>> http://localhost:8080/DynaTable/DynaTable.html
>> - However, once the page is loaded, "An RPC server could not be
>> reached" dialog appears, showing that an RPC call has not been
>> through.
>> - When I tried to access to the servlet directly through the URL ,
>> this is what I received in the Tomcat's log file:
>>
>> Sep 30, 2008 9:25:52 PM org.apache.catalina.core.StandardWrapperValve
>> invoke
>> SEVERE: Allocate exception for servlet CalendarService
>> java.lang.ClassNotFoundException:
>> com.google.gwt.sample.dynatable.server.SchoolCalendarServiceImpl
>>        at
>>
>> org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:
>> 1387)
>>        at
>>
>> org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:
>> 1233)
>>        at
>> org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:
>> 1094)
>>        at
>> org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:
>> 808)
>>        at
>>
>> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:
>> 129)
>>        at
>>
>> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:
>> 191)
>>        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:
>> 845)
>>        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)
>>
>> *Please note that I have run normal servlets (which use javax.servlet)
>> on this Tomcat successfully, so problems relating to this container's
>> configuration and installation should be eliminated. Problems occur
>> only when I try the gwt servlet.
>>
>> Can you help me figure out what the problem is?
>>
>> By the way, I notice that I can try this DynaTable online through
>> http://gwt.google.com/samples/DynaTable/DynaTable.html. Therefore,
>> this example must be deployed on a servlet container of some sorts.
>> Can the Google Web Toolkit team give me the .war file of the DynaTable
>> deployment?
>>
>> Thank you very very much.
>>
>>
>>
>>
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to