Link got lost:
4) Implemented the JS-Code from here to my html page.
--
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.
Saturday, March 2, 2013
Using Tomcat Websockets with GWT
Hi,
after installing Tomcat, I had a look on the installed examples.
There was a websocket example, a simple chat.
I tried to implement it on my GWT project but I couldnt get it working.
Thats what I did:
1) I copied classes from the example into my gwt server directory:
ChatWebSocketServlet.java (extends WebSocketServlet)
HTMLfilter(does nothing special)
2) Include missing jars into my build path (tomcat-coyote.jar , catalina, tomcat-juli.jar, tomcat-util.jar)
3) Added the following to my web.xml:
<servlet>
<servlet-name>wsChat</servlet-name>
<servlet-class>de.mash.project.server.ChatWebSocketServlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>wsChat</servlet-name>
<url-pattern>/Mash</url-pattern>
</servlet-mapping>
4) Implemented the JS-Code from here to my html page.
I changed the following to fit my needs:
Changed
Chat.connect('ws://' + window.location.host + '/examples/websocket/chat');
to
Chat.connect('ws://' + window.location.host + '/Mash');
in the JS Code.
The problem is, that the connect()-Method doesnt work, and I cant get a socket (I end up in the JS Chat.onerror()-Method).
Im still using the Build-In Jetty for debugging, so I dont got any meaningful error so far.
The one I get from Console is mentioned below. (But its jetty, so Iam not expecting it to work).
I Debuged as Webapp (on external Server):
Then I choose my projects war-folder in apache webapp folder: But didnt got any errormsg in my console log.
Is this the proper way to use tomcat for debugging?
So...
Iam not sure if there is a misstake in my web.xml, a bad connection string on the connect()-Method,
or if Iam totally wrong and its not that easy to get it running...
Any advice, help, suggestions are appreciated.
Regards,
Manuel
ERROR from Jetty: Iam not wondering about this one, since I want to use Tomcat Websockets...
[ERROR] 500 - GET /Mash (127.0.0.1) 1542 bytes
Request headers
Host: 127.0.0.1:8888
User-Agent: Mozilla/5.0 (Windows NT 6.2; WOW64; rv:19.0) Gecko/20100101 Firefox/19.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: de-de,de;q=0.8,en-us;q=0.5,en;q=0.3
Accept-Encoding: gzip, deflate
Sec-WebSocket-Version: 13
Origin: http://127.0.0.1:8888
Sec-WebSocket-Key: ic3d8jm1KWVV8XUqReWg/w==
Connection: keep-alive, Upgrade
Pragma: no-cache
Cache-Control: no-cache
Upgrade: websocket
Response headers
Upgrade: websocket
Connection: upgrade
Sec-WebSocket-Accept: SqklYoNaQUziMNdrvFxooUEH9nA=
Content-Type: text/html; charset=iso-8859-1
Content-Length: 1542
--
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.
after installing Tomcat, I had a look on the installed examples.
There was a websocket example, a simple chat.
I tried to implement it on my GWT project but I couldnt get it working.
Thats what I did:
1) I copied classes from the example into my gwt server directory:
ChatWebSocketServlet.java (extends WebSocketServlet)
HTMLfilter(does nothing special)
2) Include missing jars into my build path (tomcat-coyote.jar , catalina, tomcat-juli.jar, tomcat-util.jar)
3) Added the following to my web.xml:
<servlet>
<servlet-name>wsChat</servlet-name>
<servlet-class>de.mash.project.server.ChatWebSocketServlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>wsChat</servlet-name>
<url-pattern>/Mash</url-pattern>
</servlet-mapping>
4) Implemented the JS-Code from here to my html page.
I changed the following to fit my needs:
Changed
Chat.connect('ws://' + window.location.host + '/examples/websocket/chat');
to
Chat.connect('ws://' + window.location.host + '/Mash');
in the JS Code.
The problem is, that the connect()-Method doesnt work, and I cant get a socket (I end up in the JS Chat.onerror()-Method).
Im still using the Build-In Jetty for debugging, so I dont got any meaningful error so far.
The one I get from Console is mentioned below. (But its jetty, so Iam not expecting it to work).
I Debuged as Webapp (on external Server):
Then I choose my projects war-folder in apache webapp folder: But didnt got any errormsg in my console log.
Is this the proper way to use tomcat for debugging?
So...
Iam not sure if there is a misstake in my web.xml, a bad connection string on the connect()-Method,
or if Iam totally wrong and its not that easy to get it running...
Any advice, help, suggestions are appreciated.
Regards,
Manuel
ERROR from Jetty: Iam not wondering about this one, since I want to use Tomcat Websockets...
[ERROR] 500 - GET /Mash (127.0.0.1) 1542 bytes
Request headers
Host: 127.0.0.1:8888
User-Agent: Mozilla/5.0 (Windows NT 6.2; WOW64; rv:19.0) Gecko/20100101 Firefox/19.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: de-de,de;q=0.8,en-us;q=0.5,en;q=0.3
Accept-Encoding: gzip, deflate
Sec-WebSocket-Version: 13
Origin: http://127.0.0.1:8888
Sec-WebSocket-Key: ic3d8jm1KWVV8XUqReWg/w==
Connection: keep-alive, Upgrade
Pragma: no-cache
Cache-Control: no-cache
Upgrade: websocket
Response headers
Upgrade: websocket
Connection: upgrade
Sec-WebSocket-Accept: SqklYoNaQUziMNdrvFxooUEH9nA=
Content-Type: text/html; charset=iso-8859-1
Content-Length: 1542
--
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.
Re: GWT 2.1 CELL TABLE
Check the content of your .css file.
It could cause Deferred Binding problem.
I ran into the same issue.
After I re-copied CellTable.css into my .css and reran everything was fine.
--
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.
It could cause Deferred Binding problem.
I ran into the same issue.
After I re-copied CellTable.css into my .css and reran everything was fine.
--
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.
Re: A question regarding the Dynamic Host Page's tutorial
On Saturday, March 2, 2013 5:27:12 AM UTC+1, a.toled...@gmail.com wrote:
Hello group,
I have a question regarding this tutorial.
At the end it is illustrated how the servlet/jsp can create a java script variable that contains the email address of the user. This is done in order to save a GWT RPC call that would ask for this value from the browser side to the server when the page loads. I understand the rationale behind this but I wonder if passing the data by a cookie won't be as efficient as the javascript variable but additionally more secured.
Why would it be more secure? I'd even say it'd be *less* secure: the cookie will be sent back to the server with every subsequent request!
BTW, emitting user info into the HTML page is what Google does (for Groups –which is made with GWT–, but also Reader, GMail or Plus, which are made with the Closure tools)
-- 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.
Why doesn't this (AbsolutePanel inside a ScrollPanel) work?
Try absolutePanel.getElement().getStyle().setOverflow(Overflow.AUTO) and get rid of the ScrollPanel. It by default sets overflow to hidden, but it may work.
--
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.
--
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.
GWT and Tomcat realm security
hi
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.
any examples exists about uses gwt and tomcat realm security safely? (form based)
in php i used hash the password in client, hashed in server....
and in jsf is simple with jaas
but i don't know how to use secure login and sesion with gwt, i read about this topic but i don't found any example or high accepted solution.
do you know any sample?
-- 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.
Friday, March 1, 2013
A question regarding the Dynamic Host Page's tutorial
Hello group,
I have a question regarding this tutorial.
At the end it is illustrated how the servlet/jsp can create a java script variable that contains the email address of the user. This is done in order to save a GWT RPC call that would ask for this value from the browser side to the server when the page loads. I understand the rationale behind this but I wonder if passing the data by a cookie won't be as efficient as the javascript variable but additionally more secured.
Thank you for your time,
Assaf
--
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.
I have a question regarding this tutorial.
At the end it is illustrated how the servlet/jsp can create a java script variable that contains the email address of the user. This is done in order to save a GWT RPC call that would ask for this value from the browser side to the server when the page loads. I understand the rationale behind this but I wonder if passing the data by a cookie won't be as efficient as the javascript variable but additionally more secured.
Thank you for your time,
Assaf
--
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.
Subscribe to:
Posts (Atom)