Hi!
I'm actually trying to deploy my very first GWT Project StockWatcher,
just like in the tutorial i found on googles website.
I can deploy my .war to the tomcat and visit the page. But when it
comes to servlets, the server is throwing exceptions.
So here is the code, i copied everything from the tutorial, so its
pretty much the same code, so i only will post here the intersting
parts:
in the stockwatcher.gwt.xml i mapped the servlet like this:
<servlet path="/stockPrices"
class="com.google.gwt.sample.stockwatcher.server.StockPriceServiceImpl" /
>
I dont know why its "/stockPrice" and where this is leading to. But in
the tutorial there is one more file with this "strange" value:
StockPriceService.java in the .client package:
@RemoteServiceRelativePath("stockPrices")
So what i am actually doing here? I cant get through, why i post his.
The tutorial does not make this clear, imo.
Whats so ever: i run the project in eclipse: it works.
I compile the project: it works.
Now i try to create a .war file, first i copy all the files in /www/
myproject.something/ to another folder. In that folder i create a WEB-
INF with classes (inside no other folders, just the
StockPriceServiceImpl.class) and the lib (inside gwt-servlet.jar). And
here comes the web.xml (correctly saved in WEB-INF):
<servlet>
<servlet-name>StockPriceService</servlet-name>
<servlet-
class>com.google.gwt.sample.stockwatcher.server.StockPriceServiceImpl</
servlet-class>
</servlet>
<!-- Standard Action Servlet Mapping -->
<servlet-mapping>
<servlet-name>StockPriceService</servlet-name>
<url-pattern>/stockPrices</url-pattern>
</servlet-mapping>
</web-app>
So the url-pattern is just the same, as it is in the .gwt.xml file "/
stockPrices". And the servlet-class
"com.google.gwt.sample.stockwatcher.server.StockPriceServiceImpl" is
just the same as you would find it in my project ... (but the .class
file is directly saved in the /classes/StockPriceServiceImpl.class -
this is correctly folder? )
But when i deploy the .war file to tomcat. It just cant find the
servlet. I get "HTTP Status 404 - Servlet StockPriceServiceImpl is not
available" message. .... :(
Maybe the Tomcat is wrong configured? Any help?? Please.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---