Thursday, June 6, 2013

Re: can't launch via servlet

i don't see any 404, if i inspect the script nocache.js it shows me the html code?

I've that error in the console too : "Uncaught SyntaxError: Unexpected token < "



I made more tests and it seems that the issue come from the servlet mapping, when the mapping is "/", the GWT part doesn't exist.

When the mapping is "/something" there is no issue (the nocache.js is the expected javascript)


If i ask http://localhost:8080/WebApplication3/myServletMapping i have the gwt part
But if i ask the same and i declare another servlet in the web.xml whose mapping is "/", it doesn't work.

Strange...


Le jeudi 6 juin 2013 10:19:09 UTC+2, Hélène Czaja a écrit :
Hi,

i'm not a beginner but i can't solve this problem :

I have a jsp which include my gwt script :
        <meta name='gwt:module' content='org.yournamehere.Main=org.yournamehere.Main'>
        <title>JSP Page</title>
        <script type="text/javascript"  src="org.yournamehere.Main/org.yournamehere.Main.nocache.js"></script>


When i launch the jsp via a <welcome-file>myjsp.jsp</welcome-file> in web.xml it's OK : 


But when i declare a servlet in web.xml to launch the jsp, the jsp is launched but the gwt part is empty.

Could you help me? I google my issue and doesn't find anything...

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

No comments:

Post a Comment