Question on GWT1.6

0 views
Skip to first unread message

Pints

unread,
May 15, 2009, 3:32:01 AM5/15/09
to Google Web Toolkit
Hi,

I created the applictaion using Google Plugin and got the default
GreetingService.

On progressing further i changed GreetingService name to Service, as
GreetingService doesn't suits for business applications, and got the
following exception.

java.lang.ClassNotFoundException:
com.edge.app.server.GreetingServiceImpl
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at
com.google.appengine.tools.development.IsolatedAppClassLoader.loadClass
(IsolatedAppClassLoader.java:142)
at java.lang.ClassLoader.loadClass(Unknown Source)
at org.mortbay.util.Loader.loadClass(Loader.java:91)

Obviously somewhere some other configuration has to be done but as of
now i am unable to figure out.

I guess there should be a way to define multiple services as well in
1.6.

Any clues please.

Rohit Vadera

unread,
May 15, 2009, 4:08:41 AM5/15/09
to Google Web Toolkit
Change in web.xml also did the trick.

Alyxandor

unread,
May 15, 2009, 6:14:14 AM5/15/09
to Google Web Toolkit
If you change one file name, you must change all three; Service,
ServiceAsync and ServiceImpl. Then, go to your web.xml in war/WEB-INF
file, and make sure the classnames there have changed as well.

Salvador Diaz

unread,
May 15, 2009, 6:27:38 AM5/15/09
to Google Web Toolkit
There's a handy wizard in Eclipse that does this automatically.

1. Right click in the class you wish to modify. Choose "Refactor >
Rename" from the context menu
2. You should check the options 'Update textual occurrences in
comments and strings' and 'Update fully-qualified named in non-java
text files' (maybe restrict to *.xml)
3. ...
4. Profit !

Of course this will not automatically change the Async nor the
interface name, but it will change the servlet declaration in web.xml

Hope that helps,

Salvador

PS: A screenshot of step 2:
http://bayimg.com/image/fapcoaabl.jpg
Reply all
Reply to author
Forward
0 new messages