if use rename-to in gwt.xml, then cannot run

191 views
Skip to first unread message

tong123123

unread,
Feb 9, 2012, 5:35:59 AM2/9/12
to Google Web Toolkit
in gwt.xml
<module rename-to='als'>

and in service, write a function
@RemoteServiceRelativePath("search")

then in web.xml
<servlet-mapping>
<url-pattern>/als/test</url-pattern>
</servlet-mapping>

compile, als folder under war
run>
the application cannot be run.

then delete the rename-to attribute
in web.xml, servlet-mapping,
use
<url-pattern>/com.ha.als.ALS/test</url-pattern>

delete the als folder under war
compile
a new com.ha.als.ALS folder is created under war
run>
everything is normal!!!

why the rename-to attribute cannot function properly?

Jens

unread,
Feb 9, 2012, 5:47:50 AM2/9/12
to google-we...@googlegroups.com
You also have to update your host html page which references your <module-name>.nocache.js file. 

-- J.


tong123123

unread,
Feb 9, 2012, 5:57:58 AM2/9/12
to Google Web Toolkit
Great!! this solve the problem!!

thanks
Reply all
Reply to author
Forward
0 new messages