Re: Can anyone here let me know how to deploy GWT application (gwt 1.7) in tomcat or resin or any external server
What if I (locally) was able to run the server without using tomcat?? (at least seemingly) On Oct 26, 2:50 pm, Yozons Support on Gmail wrote: > If you used the Eclipse plug-in, just copy all of the files in the 'war' to > the webapps folder for Tomcat, then deploy it as normal. > > David > > On Mon, Oct 26, 2009 at 1:48 PM, Darpan Mhatre wrote: > > > > > Hi Folks, > > Can anyone here let me know how to deploy GWT application > > (gwt 1.7) in tomcat or resin or any external web application server. > > The snapshots will be helpful. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en -~--~~~~--~~--~--~---
HTTP RESPONSE Header returning Garbage
I try to make a connection using: Request Headers Accept text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 Accept-Language en-US,en;q=0.8,en-us;q=0.6,fr;q=0.4,fr-fr;q=0.2 Accept-Encoding gzip,deflate Accept-Charset ISO-8859-1,utf-8;q=0.7,*;q=0.7 Keep-Alive 300 Connection keep-alive Content-Typetext/x-gwt-rpc; charset=utf-8 Referer http://www.domain.com.mx/C/votaciones/FA5BF2FC2792E927F4C296EE224A891F.cache.html Content-Length 193 Pragma no-cache Cache-Control no-cache the server response is: ���2�� � �'mx/server/MySQLConnection � �3com/google/gwt/user/ server/rpc/RemoteServiceServlet � �$mx/client/ DBConnection � conn � Ljava/sql/Connection; � url � Ljava/lang/ String; � user � pass � � ()V � Code � � � � � � � �!jdbc:mysql://localhost/votaciones� � � � � � root � � � � � �� � � � � �! � com.mysql.jdbc.Driver #�% �$ � java/lang/Class �&' � forName �%(Ljava/lang/String;)Ljava/ lang/Class; #�) �*�+ � newInstance � ()Ljava/lang/Object; -�/ �. � java/sql/DriverManager �0�1 � getConnection �M(Ljava/lang/String;Ljava/lang/String;Ljava/lang/ String;)Ljava/sql/Connection; �3�5 �4 � java/lang/System �6�7 � err � Ljava/io/PrintStream; �9 � java/lang/ StringBuilder �; � Fail en la Conexion = 8�= � > � (Ljava/lang/String;)V This is only seen using Firebug and I have no idea why, any help?? I am having serious issues deploying the whole project in my remote server and so far I've found nothing to help me with that =S --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en -~--~~~~--~~--~--~---
Uploading my war to the Server
I have finished building my first sort of complex app using GWT I connect to a MySQL DB using my JDBC connector and everything. Now I have one last issue, why can't I use the app when I deploy it on my server? I have to login and using Firebug I see that I get: Firebug's log limit has been reached. %S entries not shown. Preferences POST http://www.expressiondance.com.mx/C/votaciones/67.212.170.186/MySQLConnection POST http://www.expressiondance.com.mx/C/votaciones/67.212.170.186/MySQLConnection 404 Not Found 404 Not Found Not Found The requested URL /C/votaciones/MySQLConnection was not found on this server. I see that it's not finding that file but I can't figure out why since locally it works perfectly =S help please as this is sort of urgent =/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en -~--~~~~--~~--~--~---
Re: GWT and MySQL Connection
I actually managed to connect now, I only have one question left now, why is the "onFailure" from here private class AuthenticationHandler implements AsyncCallback { public void onFailure(Throwable ex) { label.setText("Fail"); System.out.println(ex.getStackTrace ()); } public void onSuccess(User result) { try { label.setText("Success");// + " Pass:: " + result.getPass ().toString() }catch(Exception e) { System.err.println("Fail! = " + e.getStackTrace()); } } } never called or used or anything?? On Oct 21, 8:31 am, Lothar Kimmeringer wrote: > Proxy schrieb: > > > PreparedStatement ps = conn.prepareStatement( > > "SELECT user, pass FROM usuarios WHERE user = \"" + user1 + "\" AND " + > > "pass = \"" + pass + "\"" > > ); > > Using a PreparedStatement is one thing but not using its features > is another. You still can do SQL-injections here allowing you to > login without knowing a username or password. > > As Alvin said, the error-message you get would help to say more. > > Regards, Lothar --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en -~--~~~~--~~--~--~---
Re: GWT and MySQL Connection
The thing is that I get no error whatsoever, I just get a message from the hosted mode: [INFO] 200 - POST /votaciones/MySQLConnection (127.0.0.1) 14 bytes Which since it's 200 means it went ok... and yes I know about the injection but since it's still something I'm doing locally I won't get into that until I get it to work xD haha...=/ On Oct 21, 8:31 am, Lothar Kimmeringer wrote: > Proxy schrieb: > > > PreparedStatement ps = conn.prepareStatement( > > "SELECT user, pass FROM usuarios WHERE user = \"" + user1 + "\" AND " + > > "pass = \"" + pass + "\"" > > ); > > Using a PreparedStatement is one thing but not using its features > is another. You still can do SQL-injections here allowing you to > login without knowing a username or password. > > As Alvin said, the error-message you get would help to say more. > > Regards, Lothar --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en -~--~~~~--~~--~--~---
GWT and MySQL Connection
Hey, I am trying to create a voting system I've got a MySQL DB already up (using WAMP) and I'm using Eclipse Galileo with GWT. I have looked everywhere on how to make this connection and now I am sure I connect to the DB at least, however I am unsure regarding if I actually retrieve anything from it and I can't print anything because it throws me an exception. This is the method that should access the DB: public User authenticateUser(String user1, String pass) { User user = null; try { PreparedStatement ps = conn.prepareStatement( "SELECT user, pass FROM usuarios WHERE user = \"" + user1 + "\" AND " + "pass = \"" + pass + "\"" ); ResultSet result = ps.executeQuery(); while (result.next()) { user = new User(result.getString(2), result.getString(3)); System.out.println(user.getUser().toString()); System.out.println("toy aqui"); } result.close(); ps.close(); } catch (SQLException sqle) { System.err.println("Fail!! = " + sqle.getStackTrace()); } return user; } "conn" is a Connection already made here: public MySQLConnection() { try { Class.forName("com.mysql.jdbc.Driver").newInstance(); conn = DriverManager.getConnection(url, user, pass); } catch (Exception e) { System.err.println("Fail en la Conexion = " + e.getStackTrace ()); } } after this, I use this method which should allow me to access stuff from the newly created object: private class AuthenticationHandler implements AsyncCallback { public void onFailure(Throwable ex) { label.setText("Fail"); System.out.println(ex.getStackTrace()); } public void onSuccess(User result) { try { label.setText("Success");// + " Pass:: " + result.getPass ().toString() }catch(Exception e) { System.err.println("Fail! = " + e.getStackTrace()); } } } The thing is, it doesn't matter if I introduce wrong values for the Query to be made with, (user1 and pass) I get success or fail everytime depending on which I started with. That is, if I tried once and failed, then everytime after I will get "Fail" and if I try and get the write data in I will get "Success" everytime. I don't know why this happens and I am unsure I am performing the query the way it should be done. The only thing I'm 100% sure of is that the DB connection is made, and that if I try to print "result.getUser();" in the last method I placed here, I get an exception. What am I missing or doing incorrectly? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en -~--~~~~--~~--~--~---
Can Eclipse deploy ant and create the build.xml file?
I have been googling for some hours and I haven't been able to find how to configure eclipse so that when I compile a GWT App it creates the respective build.xml, I have ant completely configured and running but I can't manage to do this, I am actually wondering if it can even be done via eclipse, if not, then how do I make it?? since I don't get how the structure of it should be (in order to write it manually) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en -~--~~~~--~~--~--~---
About GQuery
Hey, I'm new to GWT and I was wondering if it's recommended to use GQuery or should I try to stick to pure Java as much as possible? In any case I've seen the wiki for how to use GQuery and I can't find the build.xml file anywhere in my Eclipse Project =/ (Eclipse Galileo) it says I must do this: which will create a bunch of files containing a sample project. Find the build.xml file and edit the section with id="project.class.path" adding If you're using Eclipse, you may also want to edit the .classpath file and add the following: but I can't find the build.xml and I'm unsure if the .classpath it refers to is the one at the beginning of the project (just a .classpath file). Also I was wondering how and where to add the javadoc of GQuery so I can have access to it while developing... thanks for any answer =) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en -~--~~~~--~~--~--~---