Re: GWT + MySQL

2015-08-15 Thread Vaibhav Shukla
Hi Greg,
Finally I found someone who has been working on MySQL in GWT. I am working 
on a project that involves both. But I am kind of stuck with the similar 
issue. Can send a sample example to better understanding of GWT and MySQL. 
I am using GWT-RPC.

On Tuesday, November 30, 2010 at 10:14:47 PM UTC+5:30, Greg Dougherty wrote:
>
> I've used MySQL in just about every GWT app I've written, so it's 
> quite possible to use it.  Including during development running Jetty. 
>
> 1: All JDBC calls MUST come from the server.  The client code can NOT 
> see any jar files, ever. 
>
> 2: You can NOT reference com.mysql.jdbc.Driver, or any other package 
> that comes from a jar file, in any class that will end up in the 
> client.  It doesn't matter if that code is only called from the 
> server.  Any class that imports anything from a jar file (or from any 
> of the classes that aren't on the client use whitelist) MUST be in the 
> server package. 
>
> My guess is that you have one or more classes in *.shared that are 
> importing com.mysql.jdbc.Driver.  Move those classes to *.server, or 
> move all the MySQL functionality out of them and into classes that are 
> in *.server. 
>
> Greg 
>
> On Nov 30, 2:54 am, mgm  wrote: 
> > I am having the same issue.. I am using MySQL on the server side 
> > (server source package only) and there is the run-time error of: 
> > 
> >   java.lang.ClassNotFoundException: com.mysql.jdbc.Driver 
> > 
> > I do have the mysql package (mysql-connector-java.jar) in the eclipse 
> > class path (in Project / Properties / Java Build Path) and still it 
> > does not work. 
> > 
> > Does anyone know how to configure correctly? perhaps there are other 
> > settings to make... 
> > 
> > thanks 
> > Gabor 
> > 
> > On Nov 5, 2:23 pm, Ross McKinnon  wrote: 
> > 
> > > Hi there, 
> > 
> > > I've spent numerous hours this week trying to get my existing GWT 
> > > application to connect with an existing MySQL database with no luck. 
> > 
> > > I've created my code to connect to the database using JDBC and is kept 
> > > in the server package to ensure it remains as java code.  Also i have 
> > > included the mySQL jar file in the build path for the project but 
> > > still get an error 
> > 
> > > java.lang.ClassNotFoundException:com.mysql.jdbc.Driver... 
> > 
> > > I have tried numerous ways of getting the database and have ran out of 
> > > ideas now so thought I would consult the experts to see if any kind 
> > > person can lend a hang.. 
> > 
> > > Thanks for any help, 
> > 
> > > Ross

-- 
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+unsubscr...@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.
For more options, visit https://groups.google.com/d/optout.


Re: good gwt mysql hosting

2014-09-23 Thread Michael Joyner
 I use Afterburst for unlimited bandwidth and edicated ram allocation VPS
with Tomcat myself. $15.00/month

On 09/23/2014 03:12 AM, .tet.suo.mei.ster. wrote:

just look around for a root-server ( self managed ) wich starts around
10-20eurobugs. put a debian on it, install sun-java and tomcat7 and enjoy.
there is no magic within. if you need some managed one, tell.

-- 
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+unsubscr...@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.
For more options, visit https://groups.google.com/d/optout.


Re: good gwt mysql hosting

2014-09-23 Thread Michael Joyner
 I use Afterburst for unlimited bandwidth and dedicated ram allocation VPS
with Tomcat myself (hosted in Germany).
http://www.afterburst.com/unmetered-vps

On 09/23/2014 03:12 AM, .tet.suo.mei.ster. wrote:

just look around for a root-server ( self managed ) wich starts around
10-20eurobugs. put a debian on it, install sun-java and tomcat7 and enjoy.
there is no magic within. if you need some managed one, tell.

-- 
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+unsubscr...@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.
For more options, visit https://groups.google.com/d/optout.


Re: good gwt mysql hosting

2014-09-23 Thread Michael Joyner
I use Afterburst for unlimited bandwidth and dedicated ram allocation 
VPS with Tomcat myself (hosted in Germany). 
http://www.afterburst.com/unmetered-vps


On 09/23/2014 03:12 AM, .tet.suo.mei.ster. wrote:
just look around for a root-server ( self managed ) wich starts around 
10-20eurobugs. put a debian on it, install sun-java and tomcat7 and 
enjoy. there is no magic within. if you need some managed one, tell.




--
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+unsubscr...@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.
For more options, visit https://groups.google.com/d/optout.


Re: good gwt mysql hosting

2014-09-23 Thread .tet.suo.mei.ster.
just look around for a root-server ( self managed ) wich starts around
10-20eurobugs. put a debian on it, install sun-java and tomcat7 and enjoy.
there is no magic within. if you need some managed one, tell.

2014-09-22 12:12 GMT+02:00 anna amat :

>
> Can anyone suggest me a good hosting that supports gwt and mysql?
> I'm with mochahost now but it's not acceptable how incredibly slow it is.
> also their support group is not of much help.
>
> Thanks,
> Anna.
>
> --
> 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+unsubscr...@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.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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+unsubscr...@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.
For more options, visit https://groups.google.com/d/optout.


Re: good gwt mysql hosting

2014-09-22 Thread anna amat
Thanks Joe,

It's just that I've had a very bad experience with Mochahost. You don't
know want you get until you try it, though I guess it's my fault for trying
to go too cheap This time I wanted to choose a hosting with a little
bit more of criteria...

Anna.

2014-09-22 18:53 GMT+02:00 Joseph Lust :

> Just about any host. Nothing special needed for GWT. If you're using a
> Java backend, then you'll need a host that can support a war/ear deployment
> or get your own VPS. I usually use AWS, but you could do Digital Ocean or
> DreamHost too. Just Google for hosting.
>
> Joe
>
> --
> 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+unsubscr...@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.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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+unsubscr...@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.
For more options, visit https://groups.google.com/d/optout.


Re: good gwt mysql hosting

2014-09-22 Thread Joseph Lust
Just about any host. Nothing special needed for GWT. If you're using a Java 
backend, then you'll need a host that can support a war/ear deployment or 
get your own VPS. I usually use AWS, but you could do Digital Ocean or 
DreamHost too. Just Google for hosting.

Joe

-- 
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+unsubscr...@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.
For more options, visit https://groups.google.com/d/optout.


good gwt mysql hosting

2014-09-22 Thread anna amat
Can anyone suggest me a good hosting that supports gwt and mysql?
I'm with mochahost now but it's not acceptable how incredibly slow it is.
also their support group is not of much help.

Thanks,
Anna.

-- 
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+unsubscr...@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.
For more options, visit https://groups.google.com/d/optout.


Re: GWT + MySql

2012-03-19 Thread Andy Stevko
Objectify works really well for me to query within GAE and return DTOs to
GWT.
http://code.google.com/p/objectify-appengine/wiki/ObjectifyWithGWT


On Mon, Mar 19, 2012 at 10:17 AM, Lothar Kimmeringer wrote:

> Am 19.03.2012 14:42, schrieb vijay Rana Bhat:
> > if anyone have a demo program to connect the database from gwt please
> > mail me
>
> since the db-connection needs to happen on the server-side of your
> GWT-application, you can use every jdbc-example being done with
> MySQL out there as reference.
>
>
> 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.
>
>


-- 
-- A. Stevko
===
"If everything seems under control, you're just not going fast enough." M.
Andretti

-- 
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 + MySql

2012-03-19 Thread Lothar Kimmeringer
Am 19.03.2012 14:42, schrieb vijay Rana Bhat:
> if anyone have a demo program to connect the database from gwt please
> mail me

since the db-connection needs to happen on the server-side of your
GWT-application, you can use every jdbc-example being done with
MySQL out there as reference.


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 + MySql

2012-03-19 Thread vijay Rana Bhat
if anyone have a demo program to connect the database from gwt please
mail me

thank u..

-- 
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,mysql and hibernate.

2012-03-14 Thread vijay
i am new to gwt and hibernate.. and i am doing a project with
gwt,mysql and hibernate please help me with some  example project..

-- 
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 + MySQL

2010-12-09 Thread Greg Dougherty
Here's the important part of your bug:

Exception while dispatching incoming RPC call
com.google.gwt.user.client.rpc.SerializationException: Type
'com.mysql.jdbc.exceptions.jdbc4.CommunicationsException' was not
included in the set of types which can be serialized by this
SerializationPolicy or its Class object could not be loaded

Your code is trying to send a
com.mysql.jdbc.exceptions.jdbc4.CommunicationsException via RPC, which
it can NOT do.  My guess is that your servlet code is throwing that
exception, but that is just a guess.  But step 1 is to check all your
RPC routines, and make sure none of them have a throws clause.

On Dec 6, 9:30 am, "du.hahn"  wrote:
> Hi, I get this error when i connect to a mysql database with eclipse
> debug.
>
> Starting Jetty on port 
>    [WARN] Exception while dispatching incoming RPC call
> com.google.gwt.user.client.rpc.SerializationException: Type
> 'com.mysql.jdbc.exceptions.jdbc4.CommunicationsException' was not
> included in the set of types which can be serialized by this
> SerializationPolicy or its Class object could not be loaded. For
> security purposes, this type will not be serialized.: instance =
> com.mysql.jdbc.exceptions.jdbc4.CommunicationsException:
> Communications link failure
>
> The last packet sent successfully to the server was 0 milliseconds
> ago. The driver has not received any packets from the server.
>         at
> com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serialize(ServerSerializationStreamWriter.java:
> 614)
>         at
> com.google.gwt.user.client.rpc.impl.AbstractSerializationStreamWriter.writeObject(AbstractSerializationStreamWriter.java:
> 126)
>         at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter
> $ValueWriter$8.write(ServerSerializationStreamWriter.java:152)
>         at
> com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serializeValue(ServerSerializationStreamWriter.java:
> 534)
>         at com.google.gwt.user.server.rpc.RPC.encodeResponse(RPC.java:609)
>         at
> com.google.gwt.user.server.rpc.RPC.encodeResponseForFailure(RPC.java:
> 383)
>         at
> com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:
> 581)
>         at
> com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServiceServlet.java:
> 207)
>         at
> com.google.gwt.user.server.rpc.RemoteServiceServlet.processPost(RemoteServiceServlet.java:
> 243)
>         at
> com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet.doPost(AbstractRemoteServiceServlet.java:
> 62)
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
>         at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:
> 487)
>         at
> org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:
> 362)
>         at
> org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:
> 216)
>         at
> org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:
> 181)
>         at
> org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:
> 729)
>         at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:
> 405)
>         at
> org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:
> 152)
>         at
> org.mortbay.jetty.handler.RequestLogHandler.handle(RequestLogHandler.java:
> 49)
>         at
> org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:
> 152)
>         at org.mortbay.jetty.Server.handle(Server.java:324)
>         at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:
> 505)
>         at org.mortbay.jetty.HttpConnection
> $RequestHandler.content(HttpConnection.java:843)
>         at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:647)
>         at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211)
>         at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:380)
>         at
> org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:
> 395)
>         at org.mortbay.thread.QueuedThreadPool
> $PoolThread.run(QueuedThreadPool.java:488)
> [ERROR] 500 - POST /dbmind/greet (127.0.0.1) 57 bytes
>    Request headers
>       Host: localhost:
>       Connection: keep-alive
>       Referer:http://localhost:/
>       Accept: */*
>       User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US) AppleWebKit/
> 534.7 (KHTML, like Gecko) Chrome/7.0.517.44 Safari/534.7
>       Accept-Encoding: gzip,deflate,sdch
>       Accept-Language: en-US,en;q=0.8
>       Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.3
>       Content-Length: 184
>       Origin:http://localhost:
>       X-GWT-Module-Base:http://localhost:/dbmind/
>       Content-Type: text/x-gwt-rpc; charset=UTF-8
>       X-GWT-Permutation: 35D485F388E45FAF93FBD6C114AF0A90
>    Response headers
>       Content-Type: text/plain
>
> Anybody can help me?

-- 
You recei

Re: GWT + MySQL

2010-12-06 Thread Gaurav Vaish
Ensure that the jar is also in the WEB-INF/lib folder (required during
runtime - Jetty server).



--
Happy hacking,
Gaurav Vaish
http://www.mastergaurav.com


On Nov 30, 1:54 pm, mgm  wrote:
> I am having the same issue.. I am using MySQL on the server side
> (server source package only) and there is the run-time error of:
>
>   java.lang.ClassNotFoundException: com.mysql.jdbc.Driver
>
> I do have the mysql package (mysql-connector-java.jar) in the eclipse
> class path (in Project / Properties / Java Build Path) and still it
> does not work.
>
> Does anyone know how to configure correctly? perhaps there are other
> settings to make...
>
> thanks
> Gabor
>
> On Nov 5, 2:23 pm, Ross McKinnon  wrote:
>
> > Hi there,
>
> > I've spent numerous hours this week trying to get my existing GWT
> > application to connect with an existing MySQL database with no luck.
>
> > I've created my code to connect to the database using JDBC and is kept
> > in the server package to ensure it remains as java code.  Also i have
> > included the mySQL jar file in the build path for the project but
> > still get an error
>
> > java.lang.ClassNotFoundException:com.mysql.jdbc.Driver...
>
> > I have tried numerous ways of getting the database and have ran out of
> > ideas now so thought I would consult the experts to see if any kind
> > person can lend a hang..
>
> > Thanks for any help,
>
> > Ross
>
>

-- 
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-tool...@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 + MySQL

2010-12-06 Thread du.hahn
Hi, I get this error when i connect to a mysql database with eclipse
debug.


Starting Jetty on port 
   [WARN] Exception while dispatching incoming RPC call
com.google.gwt.user.client.rpc.SerializationException: Type
'com.mysql.jdbc.exceptions.jdbc4.CommunicationsException' was not
included in the set of types which can be serialized by this
SerializationPolicy or its Class object could not be loaded. For
security purposes, this type will not be serialized.: instance =
com.mysql.jdbc.exceptions.jdbc4.CommunicationsException:
Communications link failure

The last packet sent successfully to the server was 0 milliseconds
ago. The driver has not received any packets from the server.
at
com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serialize(ServerSerializationStreamWriter.java:
614)
at
com.google.gwt.user.client.rpc.impl.AbstractSerializationStreamWriter.writeObject(AbstractSerializationStreamWriter.java:
126)
at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter
$ValueWriter$8.write(ServerSerializationStreamWriter.java:152)
at
com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serializeValue(ServerSerializationStreamWriter.java:
534)
at com.google.gwt.user.server.rpc.RPC.encodeResponse(RPC.java:609)
at
com.google.gwt.user.server.rpc.RPC.encodeResponseForFailure(RPC.java:
383)
at
com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:
581)
at
com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServiceServlet.java:
207)
at
com.google.gwt.user.server.rpc.RemoteServiceServlet.processPost(RemoteServiceServlet.java:
243)
at
com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet.doPost(AbstractRemoteServiceServlet.java:
62)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:
487)
at
org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:
362)
at
org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:
216)
at
org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:
181)
at
org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:
729)
at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:
405)
at
org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:
152)
at
org.mortbay.jetty.handler.RequestLogHandler.handle(RequestLogHandler.java:
49)
at
org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:
152)
at org.mortbay.jetty.Server.handle(Server.java:324)
at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:
505)
at org.mortbay.jetty.HttpConnection
$RequestHandler.content(HttpConnection.java:843)
at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:647)
at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211)
at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:380)
at
org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:
395)
at org.mortbay.thread.QueuedThreadPool
$PoolThread.run(QueuedThreadPool.java:488)
[ERROR] 500 - POST /dbmind/greet (127.0.0.1) 57 bytes
   Request headers
  Host: localhost:
  Connection: keep-alive
  Referer: http://localhost:/
  Accept: */*
  User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US) AppleWebKit/
534.7 (KHTML, like Gecko) Chrome/7.0.517.44 Safari/534.7
  Accept-Encoding: gzip,deflate,sdch
  Accept-Language: en-US,en;q=0.8
  Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.3
  Content-Length: 184
  Origin: http://localhost:
  X-GWT-Module-Base: http://localhost:/dbmind/
  Content-Type: text/x-gwt-rpc; charset=UTF-8
  X-GWT-Permutation: 35D485F388E45FAF93FBD6C114AF0A90
   Response headers
  Content-Type: text/plain


Anybody can help me?

-- 
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-tool...@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 + MySQL

2010-11-30 Thread Greg Dougherty
I've used MySQL in just about every GWT app I've written, so it's
quite possible to use it.  Including during development running Jetty.

1: All JDBC calls MUST come from the server.  The client code can NOT
see any jar files, ever.

2: You can NOT reference com.mysql.jdbc.Driver, or any other package
that comes from a jar file, in any class that will end up in the
client.  It doesn't matter if that code is only called from the
server.  Any class that imports anything from a jar file (or from any
of the classes that aren't on the client use whitelist) MUST be in the
server package.

My guess is that you have one or more classes in *.shared that are
importing com.mysql.jdbc.Driver.  Move those classes to *.server, or
move all the MySQL functionality out of them and into classes that are
in *.server.

Greg

On Nov 30, 2:54 am, mgm  wrote:
> I am having the same issue.. I am using MySQL on the server side
> (server source package only) and there is the run-time error of:
>
>   java.lang.ClassNotFoundException: com.mysql.jdbc.Driver
>
> I do have the mysql package (mysql-connector-java.jar) in the eclipse
> class path (in Project / Properties / Java Build Path) and still it
> does not work.
>
> Does anyone know how to configure correctly? perhaps there are other
> settings to make...
>
> thanks
> Gabor
>
> On Nov 5, 2:23 pm, Ross McKinnon  wrote:
>
> > Hi there,
>
> > I've spent numerous hours this week trying to get my existing GWT
> > application to connect with an existing MySQL database with no luck.
>
> > I've created my code to connect to the database using JDBC and is kept
> > in the server package to ensure it remains as java code.  Also i have
> > included the mySQL jar file in the build path for the project but
> > still get an error
>
> > java.lang.ClassNotFoundException:com.mysql.jdbc.Driver...
>
> > I have tried numerous ways of getting the database and have ran out of
> > ideas now so thought I would consult the experts to see if any kind
> > person can lend a hang..
>
> > Thanks for any help,
>
> > Ross

-- 
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-tool...@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 + MySQL

2010-11-30 Thread mgm
I am having the same issue.. I am using MySQL on the server side
(server source package only) and there is the run-time error of:

  java.lang.ClassNotFoundException: com.mysql.jdbc.Driver

I do have the mysql package (mysql-connector-java.jar) in the eclipse
class path (in Project / Properties / Java Build Path) and still it
does not work.

Does anyone know how to configure correctly? perhaps there are other
settings to make...

thanks
Gabor

On Nov 5, 2:23 pm, Ross McKinnon  wrote:
> Hi there,
>
> I've spent numerous hours this week trying to get my existing GWT
> application to connect with an existing MySQL database with no luck.
>
> I've created my code to connect to the database using JDBC and is kept
> in the server package to ensure it remains as java code.  Also i have
> included the mySQL jar file in the build path for the project but
> still get an error
>
> java.lang.ClassNotFoundException:com.mysql.jdbc.Driver...
>
> I have tried numerous ways of getting the database and have ran out of
> ideas now so thought I would consult the experts to see if any kind
> person can lend a hang..
>
> Thanks for any help,
>
> Ross

-- 
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-tool...@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 + MySQL

2010-11-07 Thread nacho
Are you running the app in the Jetty server provided by the Google
plugin?

This server emulates appengine enviroment and you must use classes
that are in the appengine whitelist:
http://code.google.com/intl/es-AR/appengine/docs/java/jrewhitelist.html

Try running your app in a Tomcat.

On 7 nov, 08:52, Paul Robinson  wrote:
> Is the mysql driver jar file in the server's runtime classpath? It ought
> to be in your war file.
>
> On 05/11/10 13:23, Ross McKinnon wrote:
>
> > Hi there,
>
> > I've spent numerous hours this week trying to get my existing GWT
> > application to connect with an existing MySQL database with no luck.
>
> > I've created my code to connect to the database using JDBC and is kept
> > in the server package to ensure it remains as java code.  Also i have
> > included the mySQL jar file in the build path for the project but
> > still get an error
>
> > java.lang.ClassNotFoundException: com.mysql.jdbc.Driver ...
>
> > I have tried numerous ways of getting the database and have ran out of
> > ideas now so thought I would consult the experts to see if any kind
> > person can lend a hang..
>
> > Thanks for any help,
>
> > Ross

-- 
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-tool...@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 + MySQL

2010-11-07 Thread Paul Robinson
Is the mysql driver jar file in the server's runtime classpath? It ought 
to be in your war file.


On 05/11/10 13:23, Ross McKinnon wrote:

Hi there,

I've spent numerous hours this week trying to get my existing GWT
application to connect with an existing MySQL database with no luck.

I've created my code to connect to the database using JDBC and is kept
in the server package to ensure it remains as java code.  Also i have
included the mySQL jar file in the build path for the project but
still get an error

java.lang.ClassNotFoundException: com.mysql.jdbc.Driver ...

I have tried numerous ways of getting the database and have ran out of
ideas now so thought I would consult the experts to see if any kind
person can lend a hang..

Thanks for any help,

Ross

   


--
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-tool...@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 + MySQL

2010-11-06 Thread Jeff Chimene
I doubt that your mySQL JDBC source code will correctly translate to
JavaScript (You must have the source code to even start down this road).
Even if it did, you probably won't have any of the supporting libraries on
the client side.

Instead, you use GWT's RPC mechanism to call routines on your server. Those
routines will then send data to the client.

Cheers,
jec

On Fri, Nov 5, 2010 at 6:23 AM, Ross McKinnon
wrote:

> Hi there,
>
> I've spent numerous hours this week trying to get my existing GWT
> application to connect with an existing MySQL database with no luck.
>
> I've created my code to connect to the database using JDBC and is kept
> in the server package to ensure it remains as java code.  Also i have
> included the mySQL jar file in the build path for the project but
> still get an error
>
> java.lang.ClassNotFoundException: com.mysql.jdbc.Driver ...
>
> I have tried numerous ways of getting the database and have ran out of
> ideas now so thought I would consult the experts to see if any kind
> person can lend a hang..
>
> Thanks for any help,
>
> Ross
>
> --
> 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-tool...@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.
>
>

-- 
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-tool...@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 + MySQL

2010-11-06 Thread Ross McKinnon
Hi there,

I've spent numerous hours this week trying to get my existing GWT
application to connect with an existing MySQL database with no luck.

I've created my code to connect to the database using JDBC and is kept
in the server package to ensure it remains as java code.  Also i have
included the mySQL jar file in the build path for the project but
still get an error

java.lang.ClassNotFoundException: com.mysql.jdbc.Driver ...

I have tried numerous ways of getting the database and have ran out of
ideas now so thought I would consult the experts to see if any kind
person can lend a hang..

Thanks for any help,

Ross

-- 
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-tool...@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 MySQL

2010-01-14 Thread etwa
Hi,

try using the hibernate entity manager. I am also producing a web
pages based on mysql.
Remeber to disable the App Engine of the GWT project in eclipse and
delete the all the jar file related with datanucleus in your
buildpath.
Datanucleus is not compatible with hibernate the application will
consistenly complain that it cannot correctly configure the JDO
datasource.

etwa

On Jan 13, 3:36 pm, ANDRES BRUN  wrote:
> Hello everybody
>
> Which is the better way for work with GWT and MySQL, jsp's, php's,
> webservices or what? I want to access to MySQL from a GWT application but I
> don't know which is the better way.
>
> Thank you for your words.
>
> Andres Brun
-- 
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-tool...@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 MySQL

2010-01-14 Thread ANDRES BRUN
Thanks everybody for your answers and I hope take a good decision. I like
PHP in the server because I think that is more speed than other technologies
but I like JSP/Servlets too. The server is Linux (Debian or Ubuntu) and the
DB is MySQL 5.

Thank you again.

On Thu, Jan 14, 2010 at 6:14 AM, Paul Robinson  wrote:

> ANDRES BRUN wrote:
> > Hello everybody
> >
> > Which is the better way for work with GWT and MySQL, jsp's, php's,
> > webservices or what? I want to access to MySQL from a GWT application
> > but I don't know which is the better way.
> >
> > Thank you for your words.
> >
> > Andres Brun
> >
> There is no "right" answer to this. It just depends on what server side
> technology you want to use. It seems most people here use a java server,
> some use php and some probably use something else. There are deployment
> differences (eg php is supported by dirt cheap hosting services) and
> development differences (eg java lets you use some of the same code in
> the client and the server).
>
> If there were a poll to find out how many people have chosen which
> method, it might be vaguely interesting, but still wouldn't tell you
> which method is the better.
>
> If you choose Java, then you may be interested in Hibernate and Gilead
> http://noon.gilead.free.fr/gilead/
>
> HTH
> Paul
>
> --
> 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-tool...@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.
>
>
>
>


-- 
ANDRES BRUN

WebSite Andres Brun http://www.andresbrun.tk
Blog - http://www.doyan.tk/
WebSite http://www.prolinetsystems.tk
GWT - http://groups.google.com/group/Google-Web-Toolkit?hl=en
-- 

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-tool...@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 MySQL

2010-01-14 Thread Paul Robinson
ANDRES BRUN wrote:
> Hello everybody
>
> Which is the better way for work with GWT and MySQL, jsp's, php's,
> webservices or what? I want to access to MySQL from a GWT application
> but I don't know which is the better way.
>
> Thank you for your words.
>
> Andres Brun
>
There is no "right" answer to this. It just depends on what server side
technology you want to use. It seems most people here use a java server,
some use php and some probably use something else. There are deployment
differences (eg php is supported by dirt cheap hosting services) and
development differences (eg java lets you use some of the same code in
the client and the server).

If there were a poll to find out how many people have chosen which
method, it might be vaguely interesting, but still wouldn't tell you
which method is the better.

If you choose Java, then you may be interested in Hibernate and Gilead
http://noon.gilead.free.fr/gilead/

HTH
Paul
-- 
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-tool...@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 MySQL

2010-01-13 Thread ANDRES BRUN
Hello everybody

Which is the better way for work with GWT and MySQL, jsp's, php's,
webservices or what? I want to access to MySQL from a GWT application but I
don't know which is the better way.

Thank you for your words.

Andres Brun
-- 

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-tool...@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 MySQL PHP

2010-01-13 Thread Jan Ehrhardt
GWT can communicate over HTTP requests with any server side technology
supporting HTTP. So your PHP app should provide a (maybe RESTful) interface,
which can be called by Ajax request and uses either JSON or XML as data
format.

I don't know how you can tell PHP to that, but on the GWT site, you should
use the RequestBuilder to create a HTTP request an than parse the result as
JSON.

Make sure your architecture is clean. GWT is for RIAs, so it should be
designed, as it would be able to run without a server. HTTP requests are
just for getting some raw data from the server, so you should care to have a
very slim communication layer between client and server.

Regards
Jan Ehrhardt

On Tue, Jan 12, 2010 at 6:11 PM, ANDRES BRUN  wrote:

> Hi everybody!
>
> I have a question about mysql, gwt and php, how can I connect all this in a
> web Application with the new version of GWT? I'm really novice in this but I
> want to learn and to practice, I need a guide for "dummies". I have a php
> script, and I have a Mysql Database and I have connected this but I don't
> know how connect all this with the new version of GWT. I know the way is
> JSON-RPC but I don't know how this works and How I have to develop them.
>
> Thank you for your colaboration.
>
> Regards.
>
> Andres
>
> --
> 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-tool...@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.
>
>
-- 

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-tool...@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 MySQL PHP

2010-01-12 Thread ANDRES BRUN
Hi everybody!

I have a question about mysql, gwt and php, how can I connect all this in a
web Application with the new version of GWT? I'm really novice in this but I
want to learn and to practice, I need a guide for "dummies". I have a php
script, and I have a Mysql Database and I have connected this but I don't
know how connect all this with the new version of GWT. I know the way is
JSON-RPC but I don't know how this works and How I have to develop them.

Thank you for your colaboration.

Regards.

Andres
-- 

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-tool...@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 Mysql Error - java.net.InetAddress is a restricted class.

2009-11-18 Thread Muthukumaran Balan
Hi Sri,

Its working fine after disabling the appengine.

Thanks sri.

regards,
Muthu

On Nov 18, 3:44 pm, Sripathi Krishnan 
wrote:
> Short Answer : Just disable Google App Engine for your project, and things
> should start working. Its a setting in the Google Eclipse Plugin.
>
> Long Answer :
> GWT and Google App Engine (GAE) are two separate projects, and you don't
> have to use them together.
> If you enable GAE  - you cannot use any other database.
> If you disable GAE and only use GWT - you can use whatever you want on the
> server side. Client side restrictions still apply.
>
> Many, many users have accidentally enabled GAE (or is it enabled by
> default?) and have faced this issue, so this isn't new.
>
> --Sri
>
> 2009/11/18 Muthukumaran Balan 
>
>
>
> > Hi Sri,
>
> > I am using Hibernate  to access the database and used the example from
> >http://code.google.com/webtoolkit/articles/using_gwt_with_hibernate.html.
> > When i create a hibernate session from rpc servlet, it throws error
> > "INetAddress is a restricted class". :(
>
> > Even i tried GiLead library, even in that when i tried to create a
> > hibernate session and set it to persistance manager it throws the same
> > error. :(
>
> > regards,
> > Muthu
>
> > On Nov 18, 12:25 pm, Sripathi Krishnan 
> > wrote:
> > > If you are using Google App Engine,  you cannot access databases even @
> > > server side. You are tied to the persistence approach that GAE provides.
>
> > > --Sri
>
> > > 2009/11/18 Muthukumaran Balan 
>
> > > > Thanks for the reply chris.
>
> > > > The code for accessing the database is running on the server-side of
> > > > the RPC[servlet].
> > > > Moreover, if mysql-jdbc-driver cant use these inetaddress class, then
> > > > we cannot access the database even @ server side? is there anyother
> > > > way or my configuration is wrong?
>
> > > > thanks and regards,
> > > > Muthu
>
> > > > On Nov 18, 2:08 am, Chris Ramsdale  wrote:
> > > > > You may want to post this on the general App Engine forum, but the
> > net
> > > > net
> > > > > is that certain APIs and classes are white listed (and subsequently
> > black
> > > > > listed) within App Engine.
>
> > > > > List of white listed JRE classes:
> > > >http://code.google.com/appengine/docs/java/jrewhitelist.html
>
> > > > > App Engine Group:http://groups.google.com/group/google-appengine
>
> > > > > On Tue, Nov 17, 2009 at 4:01 AM, Muthukumaran Balan <
> > nbmku...@gmail.com
> > > > >wrote:
>
> > > > > > Hi All,
>
> > > > > > I am getting " java.net.InetAddress is a restricted class." error
> > when
> > > > > > trying to get a Hibernate Session for MySQL DB as below. I seached
> > the
> > > > > > internet for help and couldn't find any such error.
>
> > > > > > GWT Version - 1.7.1
> > > > > > AppEngine Version - 1.2.6
>
> > > > > > Anyone is facing the same error?
>
> > > > > > WARNING: Nested in java.lang.ExceptionInInitializerError:
> > > > > > java.lang.NoClassDefFoundError: java.net.InetAddress is a
> > restricted
> > > > > > class. Please see the Google  App Engine developer's guide for more
> > > > > > details.
> > > > > >        at
> > > > > > com.google.appengine.tools.development.agent.runtime.Runtime.reject
> > > > > > (Runtime.java:51)
> > > > > >        at com.mysql.jdbc.StandardSocketFactory.connect
> > > > > > (StandardSocketFactory.java:137)
> > > > > >        at com.mysql.jdbc.MysqlIO.(MysqlIO.java:284)
> > > > > >        at
> > com.mysql.jdbc.Connection.createNewIO(Connection.java:2555)
> > > > > >        at com.mysql.jdbc.Connection.(Connection.java:1485)
> > > > > >        at com.mysql.jdbc.NonRegisteringDriver.connect
> > > > > > (NonRegisteringDriver.java:266)
> > > > > >        at
> > java.sql.DriverManager.getConnection(DriverManager.java:525)
> > > > > >        at
> > java.sql.DriverManager.getConnection(DriverManager.java:140)
> > > > > >        at
>
> > org.hibernate.connection.DriverManagerConnectionProvider.getConnection
> > > > > > (DriverManagerConnectionProvider.java:110)
> > > > > >        at org.hibernate.cfg.SettingsFactory.buildSettings
> > > > > > (SettingsFactory.java:84)
> > > > > >        at
> > > > org.hibernate.cfg.Configuration.buildSettings(Configuration.java:
> > > > > > 2009)
> > > > > >        at org.hibernate.cfg.Configuration.buildSessionFactory
> > > > > > (Configuration.java:1292)
> > > > > >        at
> > > > > > com.gt.billing.dao.ManagerFactory.(ManagerFactory.java:13)
> > > > > >        at com.gt.billing.web.service.WarehouseServiceImpl.
> > > > > > (WarehouseServiceImpl.java:22)
> > > > > >        at
> > sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
> > > > > > Method)
> > > > > >        at sun.reflect.NativeConstructorAccessorImpl.newInstance
> > > > > > (NativeConstructorAccessorImpl.java:39)
> > > > > >        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance
> > > > > > (DelegatingConstructorAccessorImpl.java:27)
> > > > > >        at
> > > > java.lang.reflect.Constructor.newInstance(Constructor.j

Re: GWT Mysql Error - java.net.InetAddress is a restricted class.

2009-11-18 Thread Sripathi Krishnan
Short Answer : Just disable Google App Engine for your project, and things
should start working. Its a setting in the Google Eclipse Plugin.

Long Answer :
GWT and Google App Engine (GAE) are two separate projects, and you don't
have to use them together.
If you enable GAE  - you cannot use any other database.
If you disable GAE and only use GWT - you can use whatever you want on the
server side. Client side restrictions still apply.

Many, many users have accidentally enabled GAE (or is it enabled by
default?) and have faced this issue, so this isn't new.

--Sri


2009/11/18 Muthukumaran Balan 

> Hi Sri,
>
> I am using Hibernate  to access the database and used the example from
> http://code.google.com/webtoolkit/articles/using_gwt_with_hibernate.html.
> When i create a hibernate session from rpc servlet, it throws error
> "INetAddress is a restricted class". :(
>
> Even i tried GiLead library, even in that when i tried to create a
> hibernate session and set it to persistance manager it throws the same
> error. :(
>
> regards,
> Muthu
>
> On Nov 18, 12:25 pm, Sripathi Krishnan 
> wrote:
> > If you are using Google App Engine,  you cannot access databases even @
> > server side. You are tied to the persistence approach that GAE provides.
> >
> > --Sri
> >
> > 2009/11/18 Muthukumaran Balan 
> >
> >
> >
> > > Thanks for the reply chris.
> >
> > > The code for accessing the database is running on the server-side of
> > > the RPC[servlet].
> > > Moreover, if mysql-jdbc-driver cant use these inetaddress class, then
> > > we cannot access the database even @ server side? is there anyother
> > > way or my configuration is wrong?
> >
> > > thanks and regards,
> > > Muthu
> >
> > > On Nov 18, 2:08 am, Chris Ramsdale  wrote:
> > > > You may want to post this on the general App Engine forum, but the
> net
> > > net
> > > > is that certain APIs and classes are white listed (and subsequently
> black
> > > > listed) within App Engine.
> >
> > > > List of white listed JRE classes:
> > >http://code.google.com/appengine/docs/java/jrewhitelist.html
> >
> > > > App Engine Group:http://groups.google.com/group/google-appengine
> >
> > > > On Tue, Nov 17, 2009 at 4:01 AM, Muthukumaran Balan <
> nbmku...@gmail.com
> > > >wrote:
> >
> > > > > Hi All,
> >
> > > > > I am getting " java.net.InetAddress is a restricted class." error
> when
> > > > > trying to get a Hibernate Session for MySQL DB as below. I seached
> the
> > > > > internet for help and couldn't find any such error.
> >
> > > > > GWT Version - 1.7.1
> > > > > AppEngine Version - 1.2.6
> >
> > > > > Anyone is facing the same error?
> >
> > > > > WARNING: Nested in java.lang.ExceptionInInitializerError:
> > > > > java.lang.NoClassDefFoundError: java.net.InetAddress is a
> restricted
> > > > > class. Please see the Google  App Engine developer's guide for more
> > > > > details.
> > > > >at
> > > > > com.google.appengine.tools.development.agent.runtime.Runtime.reject
> > > > > (Runtime.java:51)
> > > > >at com.mysql.jdbc.StandardSocketFactory.connect
> > > > > (StandardSocketFactory.java:137)
> > > > >at com.mysql.jdbc.MysqlIO.(MysqlIO.java:284)
> > > > >at
> com.mysql.jdbc.Connection.createNewIO(Connection.java:2555)
> > > > >at com.mysql.jdbc.Connection.(Connection.java:1485)
> > > > >at com.mysql.jdbc.NonRegisteringDriver.connect
> > > > > (NonRegisteringDriver.java:266)
> > > > >at
> java.sql.DriverManager.getConnection(DriverManager.java:525)
> > > > >at
> java.sql.DriverManager.getConnection(DriverManager.java:140)
> > > > >at
> > > > >
> org.hibernate.connection.DriverManagerConnectionProvider.getConnection
> > > > > (DriverManagerConnectionProvider.java:110)
> > > > >at org.hibernate.cfg.SettingsFactory.buildSettings
> > > > > (SettingsFactory.java:84)
> > > > >at
> > > org.hibernate.cfg.Configuration.buildSettings(Configuration.java:
> > > > > 2009)
> > > > >at org.hibernate.cfg.Configuration.buildSessionFactory
> > > > > (Configuration.java:1292)
> > > > >at
> > > > > com.gt.billing.dao.ManagerFactory.(ManagerFactory.java:13)
> > > > >at com.gt.billing.web.service.WarehouseServiceImpl.
> > > > > (WarehouseServiceImpl.java:22)
> > > > >at
> sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
> > > > > Method)
> > > > >at sun.reflect.NativeConstructorAccessorImpl.newInstance
> > > > > (NativeConstructorAccessorImpl.java:39)
> > > > >at sun.reflect.DelegatingConstructorAccessorImpl.newInstance
> > > > > (DelegatingConstructorAccessorImpl.java:27)
> > > > >at
> > > java.lang.reflect.Constructor.newInstance(Constructor.java:494)
> > > > >at java.lang.Class.newInstance0(Class.java:350)
> > > > >at java.lang.Class.newInstance(Class.java:303)
> > > > >at
> org.mortbay.jetty.servlet.Holder.newInstance(Holder.java:153)
> > > > >at org.mortbay.jetty.servlet.ServletHolder.getServlet
> > >

Re: GWT Mysql Error - java.net.InetAddress is a restricted class.

2009-11-18 Thread Muthukumaran Balan
Hi Sri,

I am using Hibernate  to access the database and used the example from
http://code.google.com/webtoolkit/articles/using_gwt_with_hibernate.html.
When i create a hibernate session from rpc servlet, it throws error
"INetAddress is a restricted class". :(

Even i tried GiLead library, even in that when i tried to create a
hibernate session and set it to persistance manager it throws the same
error. :(

regards,
Muthu

On Nov 18, 12:25 pm, Sripathi Krishnan 
wrote:
> If you are using Google App Engine,  you cannot access databases even @
> server side. You are tied to the persistence approach that GAE provides.
>
> --Sri
>
> 2009/11/18 Muthukumaran Balan 
>
>
>
> > Thanks for the reply chris.
>
> > The code for accessing the database is running on the server-side of
> > the RPC[servlet].
> > Moreover, if mysql-jdbc-driver cant use these inetaddress class, then
> > we cannot access the database even @ server side? is there anyother
> > way or my configuration is wrong?
>
> > thanks and regards,
> > Muthu
>
> > On Nov 18, 2:08 am, Chris Ramsdale  wrote:
> > > You may want to post this on the general App Engine forum, but the net
> > net
> > > is that certain APIs and classes are white listed (and subsequently black
> > > listed) within App Engine.
>
> > > List of white listed JRE classes:
> >http://code.google.com/appengine/docs/java/jrewhitelist.html
>
> > > App Engine Group:http://groups.google.com/group/google-appengine
>
> > > On Tue, Nov 17, 2009 at 4:01 AM, Muthukumaran Balan  > >wrote:
>
> > > > Hi All,
>
> > > > I am getting " java.net.InetAddress is a restricted class." error when
> > > > trying to get a Hibernate Session for MySQL DB as below. I seached the
> > > > internet for help and couldn't find any such error.
>
> > > > GWT Version - 1.7.1
> > > > AppEngine Version - 1.2.6
>
> > > > Anyone is facing the same error?
>
> > > > WARNING: Nested in java.lang.ExceptionInInitializerError:
> > > > java.lang.NoClassDefFoundError: java.net.InetAddress is a restricted
> > > > class. Please see the Google  App Engine developer's guide for more
> > > > details.
> > > >        at
> > > > com.google.appengine.tools.development.agent.runtime.Runtime.reject
> > > > (Runtime.java:51)
> > > >        at com.mysql.jdbc.StandardSocketFactory.connect
> > > > (StandardSocketFactory.java:137)
> > > >        at com.mysql.jdbc.MysqlIO.(MysqlIO.java:284)
> > > >        at com.mysql.jdbc.Connection.createNewIO(Connection.java:2555)
> > > >        at com.mysql.jdbc.Connection.(Connection.java:1485)
> > > >        at com.mysql.jdbc.NonRegisteringDriver.connect
> > > > (NonRegisteringDriver.java:266)
> > > >        at java.sql.DriverManager.getConnection(DriverManager.java:525)
> > > >        at java.sql.DriverManager.getConnection(DriverManager.java:140)
> > > >        at
> > > > org.hibernate.connection.DriverManagerConnectionProvider.getConnection
> > > > (DriverManagerConnectionProvider.java:110)
> > > >        at org.hibernate.cfg.SettingsFactory.buildSettings
> > > > (SettingsFactory.java:84)
> > > >        at
> > org.hibernate.cfg.Configuration.buildSettings(Configuration.java:
> > > > 2009)
> > > >        at org.hibernate.cfg.Configuration.buildSessionFactory
> > > > (Configuration.java:1292)
> > > >        at
> > > > com.gt.billing.dao.ManagerFactory.(ManagerFactory.java:13)
> > > >        at com.gt.billing.web.service.WarehouseServiceImpl.
> > > > (WarehouseServiceImpl.java:22)
> > > >        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
> > > > Method)
> > > >        at sun.reflect.NativeConstructorAccessorImpl.newInstance
> > > > (NativeConstructorAccessorImpl.java:39)
> > > >        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance
> > > > (DelegatingConstructorAccessorImpl.java:27)
> > > >        at
> > java.lang.reflect.Constructor.newInstance(Constructor.java:494)
> > > >        at java.lang.Class.newInstance0(Class.java:350)
> > > >        at java.lang.Class.newInstance(Class.java:303)
> > > >        at org.mortbay.jetty.servlet.Holder.newInstance(Holder.java:153)
> > > >        at org.mortbay.jetty.servlet.ServletHolder.getServlet
> > > > (ServletHolder.java:339)
> > > >        at
> > > > org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:
> > > > 463)
> > > >        at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter
> > > > (ServletHandler.java:1093)
> > > >        at
> > > > com.google.apphosting.utils.servlet.TransactionCleanupFilter.doFilter
> > > > (TransactionCleanupFilter.java:43)
> > > >        at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter
> > > > (ServletHandler.java:1084)
> > > >        at
> > com.google.appengine.tools.development.StaticFileFilter.doFilter
> > > > (StaticFileFilter.java:121)
> > > >        at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter
> > > > (ServletHandler.java:1084)
> > > >        at org.mortbay.jetty.servlet.ServletHandler.handle
> > > > (ServletHandler.java:360)
> > > >    

Re: GWT Mysql Error - java.net.InetAddress is a restricted class.

2009-11-18 Thread Sripathi Krishnan
If you are using Google App Engine,  you cannot access databases even @
server side. You are tied to the persistence approach that GAE provides.

--Sri


2009/11/18 Muthukumaran Balan 

> Thanks for the reply chris.
>
> The code for accessing the database is running on the server-side of
> the RPC[servlet].
> Moreover, if mysql-jdbc-driver cant use these inetaddress class, then
> we cannot access the database even @ server side? is there anyother
> way or my configuration is wrong?
>
> thanks and regards,
> Muthu
>
>
>
> On Nov 18, 2:08 am, Chris Ramsdale  wrote:
> > You may want to post this on the general App Engine forum, but the net
> net
> > is that certain APIs and classes are white listed (and subsequently black
> > listed) within App Engine.
> >
> > List of white listed JRE classes:
> http://code.google.com/appengine/docs/java/jrewhitelist.html
> >
> > App Engine Group:http://groups.google.com/group/google-appengine
> >
> > On Tue, Nov 17, 2009 at 4:01 AM, Muthukumaran Balan  >wrote:
> >
> >
> >
> > > Hi All,
> >
> > > I am getting " java.net.InetAddress is a restricted class." error when
> > > trying to get a Hibernate Session for MySQL DB as below. I seached the
> > > internet for help and couldn't find any such error.
> >
> > > GWT Version - 1.7.1
> > > AppEngine Version - 1.2.6
> >
> > > Anyone is facing the same error?
> >
> > > WARNING: Nested in java.lang.ExceptionInInitializerError:
> > > java.lang.NoClassDefFoundError: java.net.InetAddress is a restricted
> > > class. Please see the Google  App Engine developer's guide for more
> > > details.
> > >at
> > > com.google.appengine.tools.development.agent.runtime.Runtime.reject
> > > (Runtime.java:51)
> > >at com.mysql.jdbc.StandardSocketFactory.connect
> > > (StandardSocketFactory.java:137)
> > >at com.mysql.jdbc.MysqlIO.(MysqlIO.java:284)
> > >at com.mysql.jdbc.Connection.createNewIO(Connection.java:2555)
> > >at com.mysql.jdbc.Connection.(Connection.java:1485)
> > >at com.mysql.jdbc.NonRegisteringDriver.connect
> > > (NonRegisteringDriver.java:266)
> > >at java.sql.DriverManager.getConnection(DriverManager.java:525)
> > >at java.sql.DriverManager.getConnection(DriverManager.java:140)
> > >at
> > > org.hibernate.connection.DriverManagerConnectionProvider.getConnection
> > > (DriverManagerConnectionProvider.java:110)
> > >at org.hibernate.cfg.SettingsFactory.buildSettings
> > > (SettingsFactory.java:84)
> > >at
> org.hibernate.cfg.Configuration.buildSettings(Configuration.java:
> > > 2009)
> > >at org.hibernate.cfg.Configuration.buildSessionFactory
> > > (Configuration.java:1292)
> > >at
> > > com.gt.billing.dao.ManagerFactory.(ManagerFactory.java:13)
> > >at com.gt.billing.web.service.WarehouseServiceImpl.
> > > (WarehouseServiceImpl.java:22)
> > >at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
> > > Method)
> > >at sun.reflect.NativeConstructorAccessorImpl.newInstance
> > > (NativeConstructorAccessorImpl.java:39)
> > >at sun.reflect.DelegatingConstructorAccessorImpl.newInstance
> > > (DelegatingConstructorAccessorImpl.java:27)
> > >at
> java.lang.reflect.Constructor.newInstance(Constructor.java:494)
> > >at java.lang.Class.newInstance0(Class.java:350)
> > >at java.lang.Class.newInstance(Class.java:303)
> > >at org.mortbay.jetty.servlet.Holder.newInstance(Holder.java:153)
> > >at org.mortbay.jetty.servlet.ServletHolder.getServlet
> > > (ServletHolder.java:339)
> > >at
> > > org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:
> > > 463)
> > >at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter
> > > (ServletHandler.java:1093)
> > >at
> > > com.google.apphosting.utils.servlet.TransactionCleanupFilter.doFilter
> > > (TransactionCleanupFilter.java:43)
> > >at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter
> > > (ServletHandler.java:1084)
> > >at
> com.google.appengine.tools.development.StaticFileFilter.doFilter
> > > (StaticFileFilter.java:121)
> > >at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter
> > > (ServletHandler.java:1084)
> > >at org.mortbay.jetty.servlet.ServletHandler.handle
> > > (ServletHandler.java:360)
> > >at org.mortbay.jetty.security.SecurityHandler.handle
> > > (SecurityHandler.java:216)
> > >at org.mortbay.jetty.servlet.SessionHandler.handle
> > > (SessionHandler.java:181)
> > >at org.mortbay.jetty.handler.ContextHandler.handle
> > > (ContextHandler.java:712)
> > >at
> org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:
> > > 405)
> > >at
> > > com.google.apphosting.utils.jetty.DevAppEngineWebAppContext.handle
> > > (DevAppEngineWebAppContext.java:54)
> > >at org.mortbay.jetty.handler.HandlerWrapper.handle
> > > (HandlerWrapper.java:139)
> > >at com.google.a

Re: GWT Mysql Error - java.net.InetAddress is a restricted class.

2009-11-18 Thread Muthukumaran Balan
Thanks for the reply chris.

The code for accessing the database is running on the server-side of
the RPC[servlet].
Moreover, if mysql-jdbc-driver cant use these inetaddress class, then
we cannot access the database even @ server side? is there anyother
way or my configuration is wrong?

thanks and regards,
Muthu



On Nov 18, 2:08 am, Chris Ramsdale  wrote:
> You may want to post this on the general App Engine forum, but the net net
> is that certain APIs and classes are white listed (and subsequently black
> listed) within App Engine.
>
> List of white listed JRE 
> classes:http://code.google.com/appengine/docs/java/jrewhitelist.html
>
> App Engine Group:http://groups.google.com/group/google-appengine
>
> On Tue, Nov 17, 2009 at 4:01 AM, Muthukumaran Balan wrote:
>
>
>
> > Hi All,
>
> > I am getting " java.net.InetAddress is a restricted class." error when
> > trying to get a Hibernate Session for MySQL DB as below. I seached the
> > internet for help and couldn't find any such error.
>
> > GWT Version - 1.7.1
> > AppEngine Version - 1.2.6
>
> > Anyone is facing the same error?
>
> > WARNING: Nested in java.lang.ExceptionInInitializerError:
> > java.lang.NoClassDefFoundError: java.net.InetAddress is a restricted
> > class. Please see the Google  App Engine developer's guide for more
> > details.
> >        at
> > com.google.appengine.tools.development.agent.runtime.Runtime.reject
> > (Runtime.java:51)
> >        at com.mysql.jdbc.StandardSocketFactory.connect
> > (StandardSocketFactory.java:137)
> >        at com.mysql.jdbc.MysqlIO.(MysqlIO.java:284)
> >        at com.mysql.jdbc.Connection.createNewIO(Connection.java:2555)
> >        at com.mysql.jdbc.Connection.(Connection.java:1485)
> >        at com.mysql.jdbc.NonRegisteringDriver.connect
> > (NonRegisteringDriver.java:266)
> >        at java.sql.DriverManager.getConnection(DriverManager.java:525)
> >        at java.sql.DriverManager.getConnection(DriverManager.java:140)
> >        at
> > org.hibernate.connection.DriverManagerConnectionProvider.getConnection
> > (DriverManagerConnectionProvider.java:110)
> >        at org.hibernate.cfg.SettingsFactory.buildSettings
> > (SettingsFactory.java:84)
> >        at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:
> > 2009)
> >        at org.hibernate.cfg.Configuration.buildSessionFactory
> > (Configuration.java:1292)
> >        at
> > com.gt.billing.dao.ManagerFactory.(ManagerFactory.java:13)
> >        at com.gt.billing.web.service.WarehouseServiceImpl.
> > (WarehouseServiceImpl.java:22)
> >        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
> > Method)
> >        at sun.reflect.NativeConstructorAccessorImpl.newInstance
> > (NativeConstructorAccessorImpl.java:39)
> >        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance
> > (DelegatingConstructorAccessorImpl.java:27)
> >        at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
> >        at java.lang.Class.newInstance0(Class.java:350)
> >        at java.lang.Class.newInstance(Class.java:303)
> >        at org.mortbay.jetty.servlet.Holder.newInstance(Holder.java:153)
> >        at org.mortbay.jetty.servlet.ServletHolder.getServlet
> > (ServletHolder.java:339)
> >        at
> > org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:
> > 463)
> >        at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter
> > (ServletHandler.java:1093)
> >        at
> > com.google.apphosting.utils.servlet.TransactionCleanupFilter.doFilter
> > (TransactionCleanupFilter.java:43)
> >        at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter
> > (ServletHandler.java:1084)
> >        at com.google.appengine.tools.development.StaticFileFilter.doFilter
> > (StaticFileFilter.java:121)
> >        at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter
> > (ServletHandler.java:1084)
> >        at org.mortbay.jetty.servlet.ServletHandler.handle
> > (ServletHandler.java:360)
> >        at org.mortbay.jetty.security.SecurityHandler.handle
> > (SecurityHandler.java:216)
> >        at org.mortbay.jetty.servlet.SessionHandler.handle
> > (SessionHandler.java:181)
> >        at org.mortbay.jetty.handler.ContextHandler.handle
> > (ContextHandler.java:712)
> >        at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:
> > 405)
> >        at
> > com.google.apphosting.utils.jetty.DevAppEngineWebAppContext.handle
> > (DevAppEngineWebAppContext.java:54)
> >        at org.mortbay.jetty.handler.HandlerWrapper.handle
> > (HandlerWrapper.java:139)
> >        at com.google.appengine.tools.development.JettyContainerService
> > $ApiProxyHandler.handle(JettyContainerService.java:342)
> >        at org.mortbay.jetty.handler.HandlerWrapper.handle
> > (HandlerWrapper.java:139)
> >        at org.mortbay.jetty.Server.handle(Server.java:313)
> >        at
> > org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:
> > 506)
> >        at org.mortbay.jetty.HttpConnection$Req

Re: GWT Mysql Error - java.net.InetAddress is a restricted class.

2009-11-17 Thread Chris Ramsdale
You may want to post this on the general App Engine forum, but the net net
is that certain APIs and classes are white listed (and subsequently black
listed) within App Engine.

List of white listed JRE classes:
http://code.google.com/appengine/docs/java/jrewhitelist.html

App Engine Group:
http://groups.google.com/group/google-appengine


On Tue, Nov 17, 2009 at 4:01 AM, Muthukumaran Balan wrote:

> Hi All,
>
> I am getting " java.net.InetAddress is a restricted class." error when
> trying to get a Hibernate Session for MySQL DB as below. I seached the
> internet for help and couldn't find any such error.
>
> GWT Version - 1.7.1
> AppEngine Version - 1.2.6
>
> Anyone is facing the same error?
>
> WARNING: Nested in java.lang.ExceptionInInitializerError:
> java.lang.NoClassDefFoundError: java.net.InetAddress is a restricted
> class. Please see the Google  App Engine developer's guide for more
> details.
>at
> com.google.appengine.tools.development.agent.runtime.Runtime.reject
> (Runtime.java:51)
>at com.mysql.jdbc.StandardSocketFactory.connect
> (StandardSocketFactory.java:137)
>at com.mysql.jdbc.MysqlIO.(MysqlIO.java:284)
>at com.mysql.jdbc.Connection.createNewIO(Connection.java:2555)
>at com.mysql.jdbc.Connection.(Connection.java:1485)
>at com.mysql.jdbc.NonRegisteringDriver.connect
> (NonRegisteringDriver.java:266)
>at java.sql.DriverManager.getConnection(DriverManager.java:525)
>at java.sql.DriverManager.getConnection(DriverManager.java:140)
>at
> org.hibernate.connection.DriverManagerConnectionProvider.getConnection
> (DriverManagerConnectionProvider.java:110)
>at org.hibernate.cfg.SettingsFactory.buildSettings
> (SettingsFactory.java:84)
>at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:
> 2009)
>at org.hibernate.cfg.Configuration.buildSessionFactory
> (Configuration.java:1292)
>at
> com.gt.billing.dao.ManagerFactory.(ManagerFactory.java:13)
>at com.gt.billing.web.service.WarehouseServiceImpl.
> (WarehouseServiceImpl.java:22)
>at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
> Method)
>at sun.reflect.NativeConstructorAccessorImpl.newInstance
> (NativeConstructorAccessorImpl.java:39)
>at sun.reflect.DelegatingConstructorAccessorImpl.newInstance
> (DelegatingConstructorAccessorImpl.java:27)
>at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
>at java.lang.Class.newInstance0(Class.java:350)
>at java.lang.Class.newInstance(Class.java:303)
>at org.mortbay.jetty.servlet.Holder.newInstance(Holder.java:153)
>at org.mortbay.jetty.servlet.ServletHolder.getServlet
> (ServletHolder.java:339)
>at
> org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:
> 463)
>at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter
> (ServletHandler.java:1093)
>at
> com.google.apphosting.utils.servlet.TransactionCleanupFilter.doFilter
> (TransactionCleanupFilter.java:43)
>at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter
> (ServletHandler.java:1084)
>at com.google.appengine.tools.development.StaticFileFilter.doFilter
> (StaticFileFilter.java:121)
>at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter
> (ServletHandler.java:1084)
>at org.mortbay.jetty.servlet.ServletHandler.handle
> (ServletHandler.java:360)
>at org.mortbay.jetty.security.SecurityHandler.handle
> (SecurityHandler.java:216)
>at org.mortbay.jetty.servlet.SessionHandler.handle
> (SessionHandler.java:181)
>at org.mortbay.jetty.handler.ContextHandler.handle
> (ContextHandler.java:712)
>at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:
> 405)
>at
> com.google.apphosting.utils.jetty.DevAppEngineWebAppContext.handle
> (DevAppEngineWebAppContext.java:54)
>at org.mortbay.jetty.handler.HandlerWrapper.handle
> (HandlerWrapper.java:139)
>at com.google.appengine.tools.development.JettyContainerService
> $ApiProxyHandler.handle(JettyContainerService.java:342)
>at org.mortbay.jetty.handler.HandlerWrapper.handle
> (HandlerWrapper.java:139)
>at org.mortbay.jetty.Server.handle(Server.java:313)
>at
> org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:
> 506)
>at org.mortbay.jetty.HttpConnection$RequestHandler.content
> (HttpConnection.java:844)
>at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:644)
>at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:205)
>at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:381)
>at org.mortbay.io.nio.SelectChannelEndPoint.run
> (SelectChannelEndPoint.java:396)
>at org.mortbay.thread.BoundedThreadPool$PoolThread.run
> (BoundedThreadPool.java:442)
>
> Regards,
> Muthu
>
> --
>
> You received this message because you are subscribed to the 

GWT Mysql Error - java.net.InetAddress is a restricted class.

2009-11-17 Thread Muthukumaran Balan
Hi All,

I am getting " java.net.InetAddress is a restricted class." error when
trying to get a Hibernate Session for MySQL DB as below. I seached the
internet for help and couldn't find any such error.

GWT Version - 1.7.1
AppEngine Version - 1.2.6

Anyone is facing the same error?

WARNING: Nested in java.lang.ExceptionInInitializerError:
java.lang.NoClassDefFoundError: java.net.InetAddress is a restricted
class. Please see the Google  App Engine developer's guide for more
details.
at com.google.appengine.tools.development.agent.runtime.Runtime.reject
(Runtime.java:51)
at com.mysql.jdbc.StandardSocketFactory.connect
(StandardSocketFactory.java:137)
at com.mysql.jdbc.MysqlIO.(MysqlIO.java:284)
at com.mysql.jdbc.Connection.createNewIO(Connection.java:2555)
at com.mysql.jdbc.Connection.(Connection.java:1485)
at com.mysql.jdbc.NonRegisteringDriver.connect
(NonRegisteringDriver.java:266)
at java.sql.DriverManager.getConnection(DriverManager.java:525)
at java.sql.DriverManager.getConnection(DriverManager.java:140)
at
org.hibernate.connection.DriverManagerConnectionProvider.getConnection
(DriverManagerConnectionProvider.java:110)
at org.hibernate.cfg.SettingsFactory.buildSettings
(SettingsFactory.java:84)
at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:
2009)
at org.hibernate.cfg.Configuration.buildSessionFactory
(Configuration.java:1292)
at com.gt.billing.dao.ManagerFactory.(ManagerFactory.java:13)
at com.gt.billing.web.service.WarehouseServiceImpl.
(WarehouseServiceImpl.java:22)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance
(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance
(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
at java.lang.Class.newInstance0(Class.java:350)
at java.lang.Class.newInstance(Class.java:303)
at org.mortbay.jetty.servlet.Holder.newInstance(Holder.java:153)
at org.mortbay.jetty.servlet.ServletHolder.getServlet
(ServletHolder.java:339)
at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:
463)
at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter
(ServletHandler.java:1093)
at
com.google.apphosting.utils.servlet.TransactionCleanupFilter.doFilter
(TransactionCleanupFilter.java:43)
at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter
(ServletHandler.java:1084)
at com.google.appengine.tools.development.StaticFileFilter.doFilter
(StaticFileFilter.java:121)
at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter
(ServletHandler.java:1084)
at org.mortbay.jetty.servlet.ServletHandler.handle
(ServletHandler.java:360)
at org.mortbay.jetty.security.SecurityHandler.handle
(SecurityHandler.java:216)
at org.mortbay.jetty.servlet.SessionHandler.handle
(SessionHandler.java:181)
at org.mortbay.jetty.handler.ContextHandler.handle
(ContextHandler.java:712)
at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:
405)
at com.google.apphosting.utils.jetty.DevAppEngineWebAppContext.handle
(DevAppEngineWebAppContext.java:54)
at org.mortbay.jetty.handler.HandlerWrapper.handle
(HandlerWrapper.java:139)
at com.google.appengine.tools.development.JettyContainerService
$ApiProxyHandler.handle(JettyContainerService.java:342)
at org.mortbay.jetty.handler.HandlerWrapper.handle
(HandlerWrapper.java:139)
at org.mortbay.jetty.Server.handle(Server.java:313)
at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:
506)
at org.mortbay.jetty.HttpConnection$RequestHandler.content
(HttpConnection.java:844)
at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:644)
at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:205)
at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:381)
at org.mortbay.io.nio.SelectChannelEndPoint.run
(SelectChannelEndPoint.java:396)
at org.mortbay.thread.BoundedThreadPool$PoolThread.run
(BoundedThreadPool.java:442)

Regards,
Muthu

--

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-tool...@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=.




Re: Java+GWT+MySQl probleme to load drivers

2009-10-06 Thread sjachym

Quel est ton problème et surtout le rapport avec GWT ?

Tout ce qui est SQL est du coté serveur. GWT étant le front-end
excepté les RPC.

On 6 oct, 17:02, Smox  wrote:
> Hello
> whene i test my connection with Mysql db using a main test class
> (without the GWT client) it works fine, but when my impl class
> call the connection class I get error to load drivers, I dont really
> understand why, is there something that I should add to GWT ? my db
> driver are set in classPath and whene I test the communication between
> client and server in GWT with a simple helloword it works...I'am
> stuck ...any idea whats going on ...
> thanks
>
> this is my connection class
>
> public class MySqlConnection {
>
>    private static  String url = db_config.param_db[0];
>     private static  String  driver = db_config.param_db[1];
>     private static  String  user = db_config.param_db[2];
>     private static  String  pass = db_config.param_db[3];
>     private static  Connection con = null;
>     private  static MySqlConnection _instance ;
>
>     private MySqlConnection(){}
>
>     public static MySqlConnection getInstance() {
>         if(_instance == null) {
>                 return new MySqlConnection();
>         }
>         return _instance;
>     }
>
>     public static Connection getConnection() {
>         if(con == null) {
>                 connect();
>         }
>         return con;
>     }
>
>         //méthode de connexion
>         public static void connect(){
>
>                   try {
>
>                       Class.forName(driver).newInstance();
>                       con = DriverManager.getConnection(url, user, pass);
>
>                     } catch (Exception e) {
>                       Tools.message("Failed to load mSQL driver.");
>                       return;
>                     }
>
>           }
>
>
>
> }
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Java+GWT+MySQl probleme to load drivers

2009-10-06 Thread Smox

Hello
whene i test my connection with Mysql db using a main test class
(without the GWT client) it works fine, but when my impl class
call the connection class I get error to load drivers, I dont really
understand why, is there something that I should add to GWT ? my db
driver are set in classPath and whene I test the communication between
client and server in GWT with a simple helloword it works...I'am
stuck ...any idea whats going on ...
thanks

this is my connection class

public class MySqlConnection {

   private static  String url = db_config.param_db[0];
private static  String  driver = db_config.param_db[1];
private static  String  user = db_config.param_db[2];
private static  String  pass = db_config.param_db[3];
private static  Connection con = null;
private  static MySqlConnection _instance ;



private MySqlConnection(){}


public static MySqlConnection getInstance() {
if(_instance == null) {
return new MySqlConnection();
}
return _instance;
}



public static Connection getConnection() {
if(con == null) {
connect();
}
return con;
}


//méthode de connexion
public static void connect(){

  try {


  Class.forName(driver).newInstance();
  con = DriverManager.getConnection(url, user, pass);

} catch (Exception e) {
  Tools.message("Failed to load mSQL driver.");
  return;
}

  }
}

--~--~-~--~~~---~--~~
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 + mysql (noob questions)

2009-09-23 Thread PJ Gray
Cool thanks for all the feedback.  I think for now I'll just dig into the
lower level stuff myself.   I'm just going to use the java.sql classes, and
handle things that way.  I really don't have much data to store in the
database at this point anyway.   Already since I am using the command
pattern so I can more easily implement Gears for offline access, I should be
able to use the same encapsulation to put in a Hibernate version of my
"live" data access?Anyway, thats down the road a bit.   Very much trying
to follow the old KISS philosophy on this!

Honestly, I can't really say enough about that Ray Ryan talk.   At this
point I think I've watched it probably 5 times.  It got to the point where I
had the example gwt-dispatch/gwt-presenter example code open in one space,
youtube up in another space, and the pdf of the slides up in another
spaceall while coding the patterns in Eclipse.  hahaha

And yes,  Gin is on my current milestone to do list.   I've got the basic UI
done for most the application (letting the designers fight about the
specifics :)  )I just implemented MVP/command patterns for the login
process.  Now I am wanting to be able to store the login data in the
database (hence my original question).   Then I am planning to unit test my
login process, which will include my implementing Gin.

Probably should have been more 'test driven' from the get-go, but really
wanted to dig in quickly.   I plan to write unit tests up front for my
future milestones.

If you couldn't tell, I have been stuck in a 20 year old legacy codebase for
over 10 years.   Starting a project like this is a breath of fresh air

-pj



On Wed, Sep 23, 2009 at 2:55 PM, Trevis  wrote:

>
> >It sounds like hibernate, when integrated into my app, allows me to avoid
> having to worry about the lower level
> SELECTs & parsing results etcetc?
>
> That is true for the most part but as Charlie said it's not a pure win
> because getting it to do what you want, how you want it to do it can
> be very tricky.  I've been using it for oh, maybe a year and a half
> now and i still feel like i'm just getting my arms wrapped around it.
>
> I haven't really dug into IBATIS but it sounds like it may be an
> easier to use ORM.  For me, the hibernate full text search is very
> valuable. It can be very fast but you really need to understand how it
> works to get it to do things right.  The way the handle lazy
> instantiation often feels obtuse to me and i'm continually getting a
> better handle on it.  There are a few books out on it if you're really
> interested as well as a lot of documentation online.  If you do use it
> just never trust that it will query for data the way you expect it
> to.  You have to stay on top of it or else it is very easy to cause
> situations where it will query repeatedly for data that you should be
> able to get with one round trip.
>
> On and BTW, i'm also a huge fan of the MVP pattern.  I'm very glad
> that i saw Ray Ryan's presentation before i got to far into my
> project.  He saved me from having to write a *lot* of boilerplate
> code.
>
> Are you also using Gin? I was reluctant at first because i was getting
> framework fatigue but it is pretty handy for being able to unittest
> your presenters.
>
>
> On Sep 23, 11:45 am, PJ Gray  wrote:
> > Thanks for the information.
> >
> > I feel fairly comfortable with GWT and GWT-RPC now.  I implemented the
> > command pattern & MVP pattern as per Ray Ryans talk, for my communication
> > over RPC.   That gave me a pretty good crash course!  I am sure there are
> > details in there I'll be learning along the way though!
> >
> > As for Hibernate, I am just trying to decide if its something to invest
> time
> > in now. Cause I really hate using technology just for
> > whiz-bang/bandwagon reasons.   It sounds like hibernate, when integrated
> > into my app, allows me to avoid having to worry about the lower level
> > SELECTs & parsing results etcetc?   All that code is handled by
> hibernate,
> > so I can just make calls to classes for accessing/storing data and
> > everything is persisted behind the scenes for me by hibernate?
> >
> > Is that correct?
> >
> > -pj
> >
> > On Wed, Sep 23, 2009 at 12:30 PM, Trevis  wrote:
> >
> > > I dont have any tutorials at hand but your understanding of where the
> > > DB code lies is correct.  It's totally on the server side and has
> > > nothing to do with GWT.  Your GWT app would get access to the data via
> > > RPC.  The RPC methods would in turn get data from the DB.
> >
> > > Hibernate is an ORM (object relational mapper) which allows you to tie
> > > Classes to DB tables in a way that is largely transparent to your
> > > application.  One problem though in using hibernate with GWT is that
> > > the classes created via hibernate cant be serialized to the client via
> > > RPC (not that i know of anyway) so a lot of people use different
> > > libraries to make clones of the faux-POJO's so that they can be
> > > seria

Re: GWT + mysql (noob questions)

2009-09-23 Thread Trevis

>It sounds like hibernate, when integrated into my app, allows me to avoid 
>having to worry about the lower level
SELECTs & parsing results etcetc?

That is true for the most part but as Charlie said it's not a pure win
because getting it to do what you want, how you want it to do it can
be very tricky.  I've been using it for oh, maybe a year and a half
now and i still feel like i'm just getting my arms wrapped around it.

I haven't really dug into IBATIS but it sounds like it may be an
easier to use ORM.  For me, the hibernate full text search is very
valuable. It can be very fast but you really need to understand how it
works to get it to do things right.  The way the handle lazy
instantiation often feels obtuse to me and i'm continually getting a
better handle on it.  There are a few books out on it if you're really
interested as well as a lot of documentation online.  If you do use it
just never trust that it will query for data the way you expect it
to.  You have to stay on top of it or else it is very easy to cause
situations where it will query repeatedly for data that you should be
able to get with one round trip.

On and BTW, i'm also a huge fan of the MVP pattern.  I'm very glad
that i saw Ray Ryan's presentation before i got to far into my
project.  He saved me from having to write a *lot* of boilerplate
code.

Are you also using Gin? I was reluctant at first because i was getting
framework fatigue but it is pretty handy for being able to unittest
your presenters.


On Sep 23, 11:45 am, PJ Gray  wrote:
> Thanks for the information.
>
> I feel fairly comfortable with GWT and GWT-RPC now.  I implemented the
> command pattern & MVP pattern as per Ray Ryans talk, for my communication
> over RPC.   That gave me a pretty good crash course!  I am sure there are
> details in there I'll be learning along the way though!
>
> As for Hibernate, I am just trying to decide if its something to invest time
> in now.     Cause I really hate using technology just for
> whiz-bang/bandwagon reasons.   It sounds like hibernate, when integrated
> into my app, allows me to avoid having to worry about the lower level
> SELECTs & parsing results etcetc?   All that code is handled by hibernate,
> so I can just make calls to classes for accessing/storing data and
> everything is persisted behind the scenes for me by hibernate?
>
> Is that correct?
>
> -pj
>
> On Wed, Sep 23, 2009 at 12:30 PM, Trevis  wrote:
>
> > I dont have any tutorials at hand but your understanding of where the
> > DB code lies is correct.  It's totally on the server side and has
> > nothing to do with GWT.  Your GWT app would get access to the data via
> > RPC.  The RPC methods would in turn get data from the DB.
>
> > Hibernate is an ORM (object relational mapper) which allows you to tie
> > Classes to DB tables in a way that is largely transparent to your
> > application.  One problem though in using hibernate with GWT is that
> > the classes created via hibernate cant be serialized to the client via
> > RPC (not that i know of anyway) so a lot of people use different
> > libraries to make clones of the faux-POJO's so that they can be
> > serialized.  (I do this in the project that i'm working on but i did
> > it by hand)  (um, POJO means plain old java object).
>
> > If you're interested in using hibernate you should probably use it
> > from the start because retrofitting the application after the fact
> > would on undoubtedly be extremely painful. But with that said and with
> > as much as i love hibernate if you're using all of these new
> > technologies together for the first time you may become overwhelmed
> > and hibernate is a fairly involved framework so you might be better
> > off getting a good grip on GWT and GWT's RPC mechanism first.
>
> > but as always, ymmv
>
> > On Sep 23, 10:53 am, PJ Gray  wrote:
> > > I am writing a fairly large web app using GWT in Eclipse.    My
> > background
> > > is as a c++ desktop developer, so while I have used java before,
> > sometimes I
> > > stumble on easy stuff.
>
> > > Anyway, I am currently attempting to implement a database to store data
> > from
> > > my webapp.   I am far from an expert in SQL, but I have done some desktop
> > > programming of SQL before, so I feel comfortable enough doing SELECTs and
> > > whatnot.   (Most recently I did some development using the iPhone Sqlite
> > > stuff).
>
> > > Can someone point me to a good tutorial or something that gives an
> > example
> > > of storing simple user data in a database from a GWT app?  I found a
> > servlet
> > > based java/mysql example, so I am concentrating on classes like
> > datasource
> > > right now.   I can only assume the SQL stuff needs to be contained on the
> > > server side of a GWT app anyway, so I was going to start there.  But I
> > had
> > > questions like:
>
> > > - what is the process for connecting to a database in hosted mode?     Is
> > > just left to me to get something like MySql installed locally, and then
> > 

Re: GWT + mysql (noob questions)

2009-09-23 Thread charlie
I've used hibernate extensively and have had serious issues with it.  The
actual SQL code is all generated auto-magically which can lead to problems.

I much prefer IBATIS, where the SQL is plainly visible and editable, and you
still get simple POJO manipulation.  IBATOR can generate most of the sql you
will need it also, it has been far less painful for me then hibernate.

Just my 2 cents.



On Wed, Sep 23, 2009 at 11:45 AM, PJ Gray  wrote:

> Thanks for the information.
>
> I feel fairly comfortable with GWT and GWT-RPC now.  I implemented the
> command pattern & MVP pattern as per Ray Ryans talk, for my communication
> over RPC.   That gave me a pretty good crash course!  I am sure there are
> details in there I'll be learning along the way though!
>
> As for Hibernate, I am just trying to decide if its something to invest
> time in now. Cause I really hate using technology just for
> whiz-bang/bandwagon reasons.   It sounds like hibernate, when integrated
> into my app, allows me to avoid having to worry about the lower level
> SELECTs & parsing results etcetc?   All that code is handled by hibernate,
> so I can just make calls to classes for accessing/storing data and
> everything is persisted behind the scenes for me by hibernate?
>
> Is that correct?
>
>
> -pj
>
>
> On Wed, Sep 23, 2009 at 12:30 PM, Trevis  wrote:
>
>>
>> I dont have any tutorials at hand but your understanding of where the
>> DB code lies is correct.  It's totally on the server side and has
>> nothing to do with GWT.  Your GWT app would get access to the data via
>> RPC.  The RPC methods would in turn get data from the DB.
>>
>> Hibernate is an ORM (object relational mapper) which allows you to tie
>> Classes to DB tables in a way that is largely transparent to your
>> application.  One problem though in using hibernate with GWT is that
>> the classes created via hibernate cant be serialized to the client via
>> RPC (not that i know of anyway) so a lot of people use different
>> libraries to make clones of the faux-POJO's so that they can be
>> serialized.  (I do this in the project that i'm working on but i did
>> it by hand)  (um, POJO means plain old java object).
>>
>> If you're interested in using hibernate you should probably use it
>> from the start because retrofitting the application after the fact
>> would on undoubtedly be extremely painful. But with that said and with
>> as much as i love hibernate if you're using all of these new
>> technologies together for the first time you may become overwhelmed
>> and hibernate is a fairly involved framework so you might be better
>> off getting a good grip on GWT and GWT's RPC mechanism first.
>>
>> but as always, ymmv
>>
>> On Sep 23, 10:53 am, PJ Gray  wrote:
>> > I am writing a fairly large web app using GWT in Eclipse.My
>> background
>> > is as a c++ desktop developer, so while I have used java before,
>> sometimes I
>> > stumble on easy stuff.
>> >
>> > Anyway, I am currently attempting to implement a database to store data
>> from
>> > my webapp.   I am far from an expert in SQL, but I have done some
>> desktop
>> > programming of SQL before, so I feel comfortable enough doing SELECTs
>> and
>> > whatnot.   (Most recently I did some development using the iPhone Sqlite
>> > stuff).
>> >
>> > Can someone point me to a good tutorial or something that gives an
>> example
>> > of storing simple user data in a database from a GWT app?  I found a
>> servlet
>> > based java/mysql example, so I am concentrating on classes like
>> datasource
>> > right now.   I can only assume the SQL stuff needs to be contained on
>> the
>> > server side of a GWT app anyway, so I was going to start there.  But I
>> had
>> > questions like:
>> >
>> > - what is the process for connecting to a database in hosted mode?
>> Is
>> > just left to me to get something like MySql installed locally, and then
>> > follow instructions like listed here (
>> http://humblecode.blogspot.com/2009/05/gwt-16-using-jndi-datasource.html)
>> in
>> > order to connect?
>> >
>> > - when I do deploy to a live webserver, is it just a matter of switching
>> the
>> > database config (username/password, database name etc)? (as long as I
>> have
>> > everything setup in mysql on my live webserver obviously)
>> >
>> > - how does 'Hibernate' fit into all this?   I read about it, and see it
>> > mentioned everywhere.It looks like a library for persisting my java
>> > objects in the database, rather than pulling information out of my
>> objects
>> > and storing the data only?  Is that accurate?If so, I could write my
>> > persistance layer in such a way that I could start by storing the data
>> raw
>> > (Strings, longs whatever), then later as my app becomes more complex, I
>> > could implement Hibernate to start storing my model objects directly?
>> >
>> > Thanks in advance!
>> >
>> > -pj
>>
>>
>
> >
>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the G

Re: GWT + mysql (noob questions)

2009-09-23 Thread PJ Gray
Thanks for the information.

I feel fairly comfortable with GWT and GWT-RPC now.  I implemented the
command pattern & MVP pattern as per Ray Ryans talk, for my communication
over RPC.   That gave me a pretty good crash course!  I am sure there are
details in there I'll be learning along the way though!

As for Hibernate, I am just trying to decide if its something to invest time
in now. Cause I really hate using technology just for
whiz-bang/bandwagon reasons.   It sounds like hibernate, when integrated
into my app, allows me to avoid having to worry about the lower level
SELECTs & parsing results etcetc?   All that code is handled by hibernate,
so I can just make calls to classes for accessing/storing data and
everything is persisted behind the scenes for me by hibernate?

Is that correct?


-pj

On Wed, Sep 23, 2009 at 12:30 PM, Trevis  wrote:

>
> I dont have any tutorials at hand but your understanding of where the
> DB code lies is correct.  It's totally on the server side and has
> nothing to do with GWT.  Your GWT app would get access to the data via
> RPC.  The RPC methods would in turn get data from the DB.
>
> Hibernate is an ORM (object relational mapper) which allows you to tie
> Classes to DB tables in a way that is largely transparent to your
> application.  One problem though in using hibernate with GWT is that
> the classes created via hibernate cant be serialized to the client via
> RPC (not that i know of anyway) so a lot of people use different
> libraries to make clones of the faux-POJO's so that they can be
> serialized.  (I do this in the project that i'm working on but i did
> it by hand)  (um, POJO means plain old java object).
>
> If you're interested in using hibernate you should probably use it
> from the start because retrofitting the application after the fact
> would on undoubtedly be extremely painful. But with that said and with
> as much as i love hibernate if you're using all of these new
> technologies together for the first time you may become overwhelmed
> and hibernate is a fairly involved framework so you might be better
> off getting a good grip on GWT and GWT's RPC mechanism first.
>
> but as always, ymmv
>
> On Sep 23, 10:53 am, PJ Gray  wrote:
> > I am writing a fairly large web app using GWT in Eclipse.My
> background
> > is as a c++ desktop developer, so while I have used java before,
> sometimes I
> > stumble on easy stuff.
> >
> > Anyway, I am currently attempting to implement a database to store data
> from
> > my webapp.   I am far from an expert in SQL, but I have done some desktop
> > programming of SQL before, so I feel comfortable enough doing SELECTs and
> > whatnot.   (Most recently I did some development using the iPhone Sqlite
> > stuff).
> >
> > Can someone point me to a good tutorial or something that gives an
> example
> > of storing simple user data in a database from a GWT app?  I found a
> servlet
> > based java/mysql example, so I am concentrating on classes like
> datasource
> > right now.   I can only assume the SQL stuff needs to be contained on the
> > server side of a GWT app anyway, so I was going to start there.  But I
> had
> > questions like:
> >
> > - what is the process for connecting to a database in hosted mode? Is
> > just left to me to get something like MySql installed locally, and then
> > follow instructions like listed here (
> http://humblecode.blogspot.com/2009/05/gwt-16-using-jndi-datasource.html)
> in
> > order to connect?
> >
> > - when I do deploy to a live webserver, is it just a matter of switching
> the
> > database config (username/password, database name etc)? (as long as I
> have
> > everything setup in mysql on my live webserver obviously)
> >
> > - how does 'Hibernate' fit into all this?   I read about it, and see it
> > mentioned everywhere.It looks like a library for persisting my java
> > objects in the database, rather than pulling information out of my
> objects
> > and storing the data only?  Is that accurate?If so, I could write my
> > persistance layer in such a way that I could start by storing the data
> raw
> > (Strings, longs whatever), then later as my app becomes more complex, I
> > could implement Hibernate to start storing my model objects directly?
> >
> > Thanks in advance!
> >
> > -pj
> >
>

--~--~-~--~~~---~--~~
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 + mysql (noob questions)

2009-09-23 Thread Trevis

I dont have any tutorials at hand but your understanding of where the
DB code lies is correct.  It's totally on the server side and has
nothing to do with GWT.  Your GWT app would get access to the data via
RPC.  The RPC methods would in turn get data from the DB.

Hibernate is an ORM (object relational mapper) which allows you to tie
Classes to DB tables in a way that is largely transparent to your
application.  One problem though in using hibernate with GWT is that
the classes created via hibernate cant be serialized to the client via
RPC (not that i know of anyway) so a lot of people use different
libraries to make clones of the faux-POJO's so that they can be
serialized.  (I do this in the project that i'm working on but i did
it by hand)  (um, POJO means plain old java object).

If you're interested in using hibernate you should probably use it
from the start because retrofitting the application after the fact
would on undoubtedly be extremely painful. But with that said and with
as much as i love hibernate if you're using all of these new
technologies together for the first time you may become overwhelmed
and hibernate is a fairly involved framework so you might be better
off getting a good grip on GWT and GWT's RPC mechanism first.

but as always, ymmv

On Sep 23, 10:53 am, PJ Gray  wrote:
> I am writing a fairly large web app using GWT in Eclipse.    My background
> is as a c++ desktop developer, so while I have used java before, sometimes I
> stumble on easy stuff.
>
> Anyway, I am currently attempting to implement a database to store data from
> my webapp.   I am far from an expert in SQL, but I have done some desktop
> programming of SQL before, so I feel comfortable enough doing SELECTs and
> whatnot.   (Most recently I did some development using the iPhone Sqlite
> stuff).
>
> Can someone point me to a good tutorial or something that gives an example
> of storing simple user data in a database from a GWT app?  I found a servlet
> based java/mysql example, so I am concentrating on classes like datasource
> right now.   I can only assume the SQL stuff needs to be contained on the
> server side of a GWT app anyway, so I was going to start there.  But I had
> questions like:
>
> - what is the process for connecting to a database in hosted mode?     Is
> just left to me to get something like MySql installed locally, and then
> follow instructions like listed here 
> (http://humblecode.blogspot.com/2009/05/gwt-16-using-jndi-datasource.html) in
> order to connect?
>
> - when I do deploy to a live webserver, is it just a matter of switching the
> database config (username/password, database name etc)? (as long as I have
> everything setup in mysql on my live webserver obviously)
>
> - how does 'Hibernate' fit into all this?   I read about it, and see it
> mentioned everywhere.    It looks like a library for persisting my java
> objects in the database, rather than pulling information out of my objects
> and storing the data only?  Is that accurate?    If so, I could write my
> persistance layer in such a way that I could start by storing the data raw
> (Strings, longs whatever), then later as my app becomes more complex, I
> could implement Hibernate to start storing my model objects directly?
>
> Thanks in advance!
>
> -pj
--~--~-~--~~~---~--~~
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 + mysql (noob questions)

2009-09-23 Thread PJ Gray
I am writing a fairly large web app using GWT in Eclipse.My background
is as a c++ desktop developer, so while I have used java before, sometimes I
stumble on easy stuff.

Anyway, I am currently attempting to implement a database to store data from
my webapp.   I am far from an expert in SQL, but I have done some desktop
programming of SQL before, so I feel comfortable enough doing SELECTs and
whatnot.   (Most recently I did some development using the iPhone Sqlite
stuff).

Can someone point me to a good tutorial or something that gives an example
of storing simple user data in a database from a GWT app?  I found a servlet
based java/mysql example, so I am concentrating on classes like datasource
right now.   I can only assume the SQL stuff needs to be contained on the
server side of a GWT app anyway, so I was going to start there.  But I had
questions like:

- what is the process for connecting to a database in hosted mode? Is
just left to me to get something like MySql installed locally, and then
follow instructions like listed here (
http://humblecode.blogspot.com/2009/05/gwt-16-using-jndi-datasource.html) in
order to connect?

- when I do deploy to a live webserver, is it just a matter of switching the
database config (username/password, database name etc)? (as long as I have
everything setup in mysql on my live webserver obviously)

- how does 'Hibernate' fit into all this?   I read about it, and see it
mentioned everywhere.It looks like a library for persisting my java
objects in the database, rather than pulling information out of my objects
and storing the data only?  Is that accurate?If so, I could write my
persistance layer in such a way that I could start by storing the data raw
(Strings, longs whatever), then later as my app becomes more complex, I
could implement Hibernate to start storing my model objects directly?

Thanks in advance!

-pj

--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



[JPA + Hibernate + GWT + MySQL ] Looking for a hand to solve my trouble

2009-08-13 Thread tolga ozdemir

Hi guys, I started playing with those technology just for two weeks
ago. So, I can ask some dummy questions... forgive me pls..

Here is my questions.. I am trying to connect GWT with a database I am
familiar.. Namely, MySQL.. I have a sample project with some errors
that I have no idea to fix it.. I would be appritiate if someone look
at it and tells me my faults..

I have a just a simple DB -> gwtDemo and a table tblEntry [ id,
entry ]

Below, is the error I recieved

WARNING: Nested in javax.servlet.ServletException: init:
java.lang.ExceptionInInitializerError
at net.tolgaozdemir.gwt.server.HibernateContext.getSessionFactory
(HibernateContext.java:25)
at net.tolgaozdemir.gwt.server.EntryRemoteService.init
(EntryRemoteService.java:27)
at javax.servlet.GenericServlet.init(GenericServlet.java:215)
at org.mortbay.jetty.servlet.ServletHolder.initServlet
(ServletHolder.java:433)
...

This is my project zip. http://www.sendspace.com/file/6gpbtj about 4MB

Regards,

Tolga
--~--~-~--~~~---~--~~
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 + MySQL

2009-04-01 Thread tetsuo

you need at least a server for the transaction between the gui
(browser) and the dbms. some uses apache.tomcat or some other java
servlet/container/application server. some are using php with extjs,
but never let some js on your db. try using json or rpc. if you code
the access codes in plain javascript, every honk can manipulate the
data, so hide them inside the serverpart ;) gwt is in java, if you are
firm with that, try using tomcat (for smaller apps) cause the
clustering is not that funny stuff ... later on you can distribute
that on different server, with ejb or so .. but that needs some more
skills...
--~--~-~--~~~---~--~~
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 + MySQL

2009-03-31 Thread joanne

Hi all! i am new in this group and i don't know if you already
discussed what i am supposed to ask right now.

I have a project in our Software Engineering subject, and we used
eclipse with gwt for the whole project. We were supposed to connect
our project to a database, but i don't know how and where to start.
can somebody here help me with this? thanks!

-joanne

--~--~-~--~~~---~--~~
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 + MySQL Best Practices?

2008-11-27 Thread olivier nouguier

Quickly:

For a simple project why not, but as soon as you have multiple project
(store / business / dao / webapp ) or if you have some dependencies
maven dependencies management is a real plus.

WTP integration

As it also provide versioning / deployment for your artifact.

But this can be quite hard to make all work together ... (eclipse plugins ...).

On Thu, Nov 27, 2008 at 4:25 PM, alex.d <[EMAIL PROTECTED]> wrote:
>
> Imho, maven is overdesigned if you don't have junit tests and other
> stuff. Ant is more than enough for just creating a war file(i do it
> with one button-click in eclipse). The only manual step is to copy it
> to your webapps-folder on the server ;-)
>
> On 27 Nov., 14:02, "olivier nouguier" <[EMAIL PROTECTED]>
> wrote:
>> It does all ;)
>> From GWT compilation, junit coverage, packaging  ... very easily once
>> you've made the effort .
>> But I agree that it's quite complex.
>>
>> As an example, you can look athttp://code.google.com/p/net-orcades-spring/
>> It's maven driven, and quite functional, but It's my very personal
>> opinion (about my work :)
>>
>>
>>
>> On Thu, Nov 27, 2008 at 12:11 PM, Lonifasiko <[EMAIL PROTECTED]> wrote:
>>
>> > What does Maven better than Ant? I've heard Maven is quite large and
>> > complex...
>>
>> > On 27 nov, 11:39, "olivier nouguier" <[EMAIL PROTECTED]>
>> > wrote:
>> >> IMHO you should look at maven for doing this "hellish job"
>>
>> >> On Thu, Nov 27, 2008 at 11:19 AM, Lonifasiko <[EMAIL PROTECTED]> wrote:
>>
>> >> > Hi,
>>
>> >> > We're also evaluating the possibility of using an architecture
>> >> > composed by GWT + Servlets + MySQL. I thought it was going to exist
>> >> > another option to communicate GWT more directly with MySQL, but seems
>> >> > like a combination of GWT-RPC and servlets is one of the best ways to
>> >> > achieve this interaction with DB.
>>
>> >> > In our test project, instead of Tomcat, we're using JBoss to deploy
>> >> > all the application, both client side code and server-side code,
>> >> > packaged into a unique .war file. At the moment must admit we're also
>> >> > copying files and generating the .war package each time manually, but
>> >> > I've also decided, based on other comments in the group, to use an ANT
>> >> > script to automatize this hellish task, sure it saves me very much
>> >> > time and problems.
>>
>> >> > By the way, do you see any advantages/disadvantages of using JBoss AS
>> >> > to host the whole application? Why did you choose for example Tomcat?
>>
>> >> > Thanks and regards.
>>
>> >> > Miguel
>> >> > Blog:http://lonifasiko.blogspot.com
>>
>> >> > On 27 nov, 02:25, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
>> >> > wrote:
>> >> >> For automating the deployment (instead of manually copying) ant is the
>> >> >> only way to go.  I've heard stories that Maven is even easier, but we
>> >> >> haven't jumped onto that band wagon (yet).  When we build with no
>> >> >> server, we have an ant build file that does all that, and then deploys
>> >> >> to our external server.  We do it old school and jump out to the file
>> >> >> system and run via command line, but I've done from inside Eclipse as
>> >> >> well.
>>
>> >> >> On Nov 26, 5:39 pm, DanielC <[EMAIL PROTECTED]> wrote:
>>
>> >> >> > Hi guys,
>>
>> >> >> > I'm developing a project with GWT + Servlets + MySQL. At this point,
>> >> >> > I've got the project setup using the "-noserver" flag and I have
>> >> >> > Connector/J configured on an external Tomcat 6 server so that my
>> >> >> > servlets can access the DB. Communication to/from server is through
>> >> >> > GWT-RPC .
>>
>> >> >> > My Problem: This is a bit of a pain b/c anytime I make a change to 
>> >> >> > the
>> >> >> > servlet code (which resides in the same Eclipse project as my GWT
>> >> >> > code...and I'd prefer to keep it this way), I have to copy the 
>> >> >> > *.class
>> >> >> > file (for the servlet) over to the 
>> >> >> > CATALINA_HOME/webapps/myproject/WEB-
>> >> >> > INF/classes/blahblahblah folder.
>>
>> >> >> > This seems extremely manual and I'm hopeful that there's a better way
>> >> >> > to do it. What is the recommended way of doing this type of
>> >> >> > development? Ideally, I'd it would just pickup the changes to both 
>> >> >> > the
>> >> >> > client and server code as it used to when I was working in hosted
>> >> >> > mode. Unfortunately, I couldn't figure out how to get MySQL and
>> >> >> > Connector/J setup in the integrated Tomcat, so I went with the "-
>> >> >> > noserver" option and configured it with an external instance of 
>> >> >> > Tomcat
>> >> >> > instead. This manual copying crap is starting to get super annoying,
>> >> >> > so I'm reaching out for help.
>>
>> >> >> > What's the best practices for this?
>>
>> >> --
>> >> Si l'ignorance peut servir de consolation, elle n'en est pas moins 
>> >> illusoire.
>>
>> > --
>> > Miguel
>> > Blog:http://lonifasiko.blogspot.com
>>
>> --
>> Si l'ignorance peut servir de consolation, elle n'en est pas moins illusoire.

Re: GWT + MySQL Best Practices?

2008-11-27 Thread alex.d

Imho, maven is overdesigned if you don't have junit tests and other
stuff. Ant is more than enough for just creating a war file(i do it
with one button-click in eclipse). The only manual step is to copy it
to your webapps-folder on the server ;-)

On 27 Nov., 14:02, "olivier nouguier" <[EMAIL PROTECTED]>
wrote:
> It does all ;)
> From GWT compilation, junit coverage, packaging  ... very easily once
> you've made the effort .
> But I agree that it's quite complex.
>
> As an example, you can look athttp://code.google.com/p/net-orcades-spring/
> It's maven driven, and quite functional, but It's my very personal
> opinion (about my work :)
>
>
>
> On Thu, Nov 27, 2008 at 12:11 PM, Lonifasiko <[EMAIL PROTECTED]> wrote:
>
> > What does Maven better than Ant? I've heard Maven is quite large and
> > complex...
>
> > On 27 nov, 11:39, "olivier nouguier" <[EMAIL PROTECTED]>
> > wrote:
> >> IMHO you should look at maven for doing this "hellish job"
>
> >> On Thu, Nov 27, 2008 at 11:19 AM, Lonifasiko <[EMAIL PROTECTED]> wrote:
>
> >> > Hi,
>
> >> > We're also evaluating the possibility of using an architecture
> >> > composed by GWT + Servlets + MySQL. I thought it was going to exist
> >> > another option to communicate GWT more directly with MySQL, but seems
> >> > like a combination of GWT-RPC and servlets is one of the best ways to
> >> > achieve this interaction with DB.
>
> >> > In our test project, instead of Tomcat, we're using JBoss to deploy
> >> > all the application, both client side code and server-side code,
> >> > packaged into a unique .war file. At the moment must admit we're also
> >> > copying files and generating the .war package each time manually, but
> >> > I've also decided, based on other comments in the group, to use an ANT
> >> > script to automatize this hellish task, sure it saves me very much
> >> > time and problems.
>
> >> > By the way, do you see any advantages/disadvantages of using JBoss AS
> >> > to host the whole application? Why did you choose for example Tomcat?
>
> >> > Thanks and regards.
>
> >> > Miguel
> >> > Blog:http://lonifasiko.blogspot.com
>
> >> > On 27 nov, 02:25, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
> >> > wrote:
> >> >> For automating the deployment (instead of manually copying) ant is the
> >> >> only way to go.  I've heard stories that Maven is even easier, but we
> >> >> haven't jumped onto that band wagon (yet).  When we build with no
> >> >> server, we have an ant build file that does all that, and then deploys
> >> >> to our external server.  We do it old school and jump out to the file
> >> >> system and run via command line, but I've done from inside Eclipse as
> >> >> well.
>
> >> >> On Nov 26, 5:39 pm, DanielC <[EMAIL PROTECTED]> wrote:
>
> >> >> > Hi guys,
>
> >> >> > I'm developing a project with GWT + Servlets + MySQL. At this point,
> >> >> > I've got the project setup using the "-noserver" flag and I have
> >> >> > Connector/J configured on an external Tomcat 6 server so that my
> >> >> > servlets can access the DB. Communication to/from server is through
> >> >> > GWT-RPC .
>
> >> >> > My Problem: This is a bit of a pain b/c anytime I make a change to the
> >> >> > servlet code (which resides in the same Eclipse project as my GWT
> >> >> > code...and I'd prefer to keep it this way), I have to copy the *.class
> >> >> > file (for the servlet) over to the 
> >> >> > CATALINA_HOME/webapps/myproject/WEB-
> >> >> > INF/classes/blahblahblah folder.
>
> >> >> > This seems extremely manual and I'm hopeful that there's a better way
> >> >> > to do it. What is the recommended way of doing this type of
> >> >> > development? Ideally, I'd it would just pickup the changes to both the
> >> >> > client and server code as it used to when I was working in hosted
> >> >> > mode. Unfortunately, I couldn't figure out how to get MySQL and
> >> >> > Connector/J setup in the integrated Tomcat, so I went with the "-
> >> >> > noserver" option and configured it with an external instance of Tomcat
> >> >> > instead. This manual copying crap is starting to get super annoying,
> >> >> > so I'm reaching out for help.
>
> >> >> > What's the best practices for this?
>
> >> --
> >> Si l'ignorance peut servir de consolation, elle n'en est pas moins 
> >> illusoire.
>
> > --
> > Miguel
> > Blog:http://lonifasiko.blogspot.com
>
> --
> Si l'ignorance peut servir de consolation, elle n'en est pas moins illusoire.
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: GWT + MySQL Best Practices?

2008-11-27 Thread olivier nouguier

It does all ;)
>From GWT compilation, junit coverage, packaging  ... very easily once
you've made the effort .
But I agree that it's quite complex.

As an example, you can look at http://code.google.com/p/net-orcades-spring/
It's maven driven, and quite functional, but It's my very personal
opinion (about my work :)

On Thu, Nov 27, 2008 at 12:11 PM, Lonifasiko <[EMAIL PROTECTED]> wrote:
>
> What does Maven better than Ant? I've heard Maven is quite large and
> complex...
>
> On 27 nov, 11:39, "olivier nouguier" <[EMAIL PROTECTED]>
> wrote:
>> IMHO you should look at maven for doing this "hellish job"
>>
>>
>>
>> On Thu, Nov 27, 2008 at 11:19 AM, Lonifasiko <[EMAIL PROTECTED]> wrote:
>>
>> > Hi,
>>
>> > We're also evaluating the possibility of using an architecture
>> > composed by GWT + Servlets + MySQL. I thought it was going to exist
>> > another option to communicate GWT more directly with MySQL, but seems
>> > like a combination of GWT-RPC and servlets is one of the best ways to
>> > achieve this interaction with DB.
>>
>> > In our test project, instead of Tomcat, we're using JBoss to deploy
>> > all the application, both client side code and server-side code,
>> > packaged into a unique .war file. At the moment must admit we're also
>> > copying files and generating the .war package each time manually, but
>> > I've also decided, based on other comments in the group, to use an ANT
>> > script to automatize this hellish task, sure it saves me very much
>> > time and problems.
>>
>> > By the way, do you see any advantages/disadvantages of using JBoss AS
>> > to host the whole application? Why did you choose for example Tomcat?
>>
>> > Thanks and regards.
>>
>> > Miguel
>> > Blog:http://lonifasiko.blogspot.com
>>
>> > On 27 nov, 02:25, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
>> > wrote:
>> >> For automating the deployment (instead of manually copying) ant is the
>> >> only way to go.  I've heard stories that Maven is even easier, but we
>> >> haven't jumped onto that band wagon (yet).  When we build with no
>> >> server, we have an ant build file that does all that, and then deploys
>> >> to our external server.  We do it old school and jump out to the file
>> >> system and run via command line, but I've done from inside Eclipse as
>> >> well.
>>
>> >> On Nov 26, 5:39 pm, DanielC <[EMAIL PROTECTED]> wrote:
>>
>> >> > Hi guys,
>>
>> >> > I'm developing a project with GWT + Servlets + MySQL. At this point,
>> >> > I've got the project setup using the "-noserver" flag and I have
>> >> > Connector/J configured on an external Tomcat 6 server so that my
>> >> > servlets can access the DB. Communication to/from server is through
>> >> > GWT-RPC .
>>
>> >> > My Problem: This is a bit of a pain b/c anytime I make a change to the
>> >> > servlet code (which resides in the same Eclipse project as my GWT
>> >> > code...and I'd prefer to keep it this way), I have to copy the *.class
>> >> > file (for the servlet) over to the CATALINA_HOME/webapps/myproject/WEB-
>> >> > INF/classes/blahblahblah folder.
>>
>> >> > This seems extremely manual and I'm hopeful that there's a better way
>> >> > to do it. What is the recommended way of doing this type of
>> >> > development? Ideally, I'd it would just pickup the changes to both the
>> >> > client and server code as it used to when I was working in hosted
>> >> > mode. Unfortunately, I couldn't figure out how to get MySQL and
>> >> > Connector/J setup in the integrated Tomcat, so I went with the "-
>> >> > noserver" option and configured it with an external instance of Tomcat
>> >> > instead. This manual copying crap is starting to get super annoying,
>> >> > so I'm reaching out for help.
>>
>> >> > What's the best practices for this?
>>
>> --
>> Si l'ignorance peut servir de consolation, elle n'en est pas moins illusoire.
>
> --
> Miguel
> Blog: http://lonifasiko.blogspot.com
> >
>



-- 
Si l'ignorance peut servir de consolation, elle n'en est pas moins illusoire.

--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: GWT + MySQL Best Practices?

2008-11-27 Thread Lonifasiko

What does Maven better than Ant? I've heard Maven is quite large and
complex...

On 27 nov, 11:39, "olivier nouguier" <[EMAIL PROTECTED]>
wrote:
> IMHO you should look at maven for doing this "hellish job"
>
>
>
> On Thu, Nov 27, 2008 at 11:19 AM, Lonifasiko <[EMAIL PROTECTED]> wrote:
>
> > Hi,
>
> > We're also evaluating the possibility of using an architecture
> > composed by GWT + Servlets + MySQL. I thought it was going to exist
> > another option to communicate GWT more directly with MySQL, but seems
> > like a combination of GWT-RPC and servlets is one of the best ways to
> > achieve this interaction with DB.
>
> > In our test project, instead of Tomcat, we're using JBoss to deploy
> > all the application, both client side code and server-side code,
> > packaged into a unique .war file. At the moment must admit we're also
> > copying files and generating the .war package each time manually, but
> > I've also decided, based on other comments in the group, to use an ANT
> > script to automatize this hellish task, sure it saves me very much
> > time and problems.
>
> > By the way, do you see any advantages/disadvantages of using JBoss AS
> > to host the whole application? Why did you choose for example Tomcat?
>
> > Thanks and regards.
>
> > Miguel
> > Blog:http://lonifasiko.blogspot.com
>
> > On 27 nov, 02:25, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
> > wrote:
> >> For automating the deployment (instead of manually copying) ant is the
> >> only way to go.  I've heard stories that Maven is even easier, but we
> >> haven't jumped onto that band wagon (yet).  When we build with no
> >> server, we have an ant build file that does all that, and then deploys
> >> to our external server.  We do it old school and jump out to the file
> >> system and run via command line, but I've done from inside Eclipse as
> >> well.
>
> >> On Nov 26, 5:39 pm, DanielC <[EMAIL PROTECTED]> wrote:
>
> >> > Hi guys,
>
> >> > I'm developing a project with GWT + Servlets + MySQL. At this point,
> >> > I've got the project setup using the "-noserver" flag and I have
> >> > Connector/J configured on an external Tomcat 6 server so that my
> >> > servlets can access the DB. Communication to/from server is through
> >> > GWT-RPC .
>
> >> > My Problem: This is a bit of a pain b/c anytime I make a change to the
> >> > servlet code (which resides in the same Eclipse project as my GWT
> >> > code...and I'd prefer to keep it this way), I have to copy the *.class
> >> > file (for the servlet) over to the CATALINA_HOME/webapps/myproject/WEB-
> >> > INF/classes/blahblahblah folder.
>
> >> > This seems extremely manual and I'm hopeful that there's a better way
> >> > to do it. What is the recommended way of doing this type of
> >> > development? Ideally, I'd it would just pickup the changes to both the
> >> > client and server code as it used to when I was working in hosted
> >> > mode. Unfortunately, I couldn't figure out how to get MySQL and
> >> > Connector/J setup in the integrated Tomcat, so I went with the "-
> >> > noserver" option and configured it with an external instance of Tomcat
> >> > instead. This manual copying crap is starting to get super annoying,
> >> > so I'm reaching out for help.
>
> >> > What's the best practices for this?
>
> --
> Si l'ignorance peut servir de consolation, elle n'en est pas moins illusoire.

--
Miguel
Blog: http://lonifasiko.blogspot.com
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: GWT + MySQL Best Practices?

2008-11-27 Thread olivier nouguier

IMHO you should look at maven for doing this "hellish job"

On Thu, Nov 27, 2008 at 11:19 AM, Lonifasiko <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> We're also evaluating the possibility of using an architecture
> composed by GWT + Servlets + MySQL. I thought it was going to exist
> another option to communicate GWT more directly with MySQL, but seems
> like a combination of GWT-RPC and servlets is one of the best ways to
> achieve this interaction with DB.
>
> In our test project, instead of Tomcat, we're using JBoss to deploy
> all the application, both client side code and server-side code,
> packaged into a unique .war file. At the moment must admit we're also
> copying files and generating the .war package each time manually, but
> I've also decided, based on other comments in the group, to use an ANT
> script to automatize this hellish task, sure it saves me very much
> time and problems.
>
> By the way, do you see any advantages/disadvantages of using JBoss AS
> to host the whole application? Why did you choose for example Tomcat?
>
> Thanks and regards.
>
> Miguel
> Blog: http://lonifasiko.blogspot.com
>
> On 27 nov, 02:25, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
> wrote:
>> For automating the deployment (instead of manually copying) ant is the
>> only way to go.  I've heard stories that Maven is even easier, but we
>> haven't jumped onto that band wagon (yet).  When we build with no
>> server, we have an ant build file that does all that, and then deploys
>> to our external server.  We do it old school and jump out to the file
>> system and run via command line, but I've done from inside Eclipse as
>> well.
>>
>> On Nov 26, 5:39 pm, DanielC <[EMAIL PROTECTED]> wrote:
>>
>> > Hi guys,
>>
>> > I'm developing a project with GWT + Servlets + MySQL. At this point,
>> > I've got the project setup using the "-noserver" flag and I have
>> > Connector/J configured on an external Tomcat 6 server so that my
>> > servlets can access the DB. Communication to/from server is through
>> > GWT-RPC .
>>
>> > My Problem: This is a bit of a pain b/c anytime I make a change to the
>> > servlet code (which resides in the same Eclipse project as my GWT
>> > code...and I'd prefer to keep it this way), I have to copy the *.class
>> > file (for the servlet) over to the CATALINA_HOME/webapps/myproject/WEB-
>> > INF/classes/blahblahblah folder.
>>
>> > This seems extremely manual and I'm hopeful that there's a better way
>> > to do it. What is the recommended way of doing this type of
>> > development? Ideally, I'd it would just pickup the changes to both the
>> > client and server code as it used to when I was working in hosted
>> > mode. Unfortunately, I couldn't figure out how to get MySQL and
>> > Connector/J setup in the integrated Tomcat, so I went with the "-
>> > noserver" option and configured it with an external instance of Tomcat
>> > instead. This manual copying crap is starting to get super annoying,
>> > so I'm reaching out for help.
>>
>> > What's the best practices for this?
> >
>



-- 
Si l'ignorance peut servir de consolation, elle n'en est pas moins illusoire.

--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: GWT + MySQL Best Practices?

2008-11-27 Thread Lonifasiko

Hi,

We're also evaluating the possibility of using an architecture
composed by GWT + Servlets + MySQL. I thought it was going to exist
another option to communicate GWT more directly with MySQL, but seems
like a combination of GWT-RPC and servlets is one of the best ways to
achieve this interaction with DB.

In our test project, instead of Tomcat, we're using JBoss to deploy
all the application, both client side code and server-side code,
packaged into a unique .war file. At the moment must admit we're also
copying files and generating the .war package each time manually, but
I've also decided, based on other comments in the group, to use an ANT
script to automatize this hellish task, sure it saves me very much
time and problems.

By the way, do you see any advantages/disadvantages of using JBoss AS
to host the whole application? Why did you choose for example Tomcat?

Thanks and regards.

Miguel
Blog: http://lonifasiko.blogspot.com

On 27 nov, 02:25, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
wrote:
> For automating the deployment (instead of manually copying) ant is the
> only way to go.  I've heard stories that Maven is even easier, but we
> haven't jumped onto that band wagon (yet).  When we build with no
> server, we have an ant build file that does all that, and then deploys
> to our external server.  We do it old school and jump out to the file
> system and run via command line, but I've done from inside Eclipse as
> well.
>
> On Nov 26, 5:39 pm, DanielC <[EMAIL PROTECTED]> wrote:
>
> > Hi guys,
>
> > I'm developing a project with GWT + Servlets + MySQL. At this point,
> > I've got the project setup using the "-noserver" flag and I have
> > Connector/J configured on an external Tomcat 6 server so that my
> > servlets can access the DB. Communication to/from server is through
> > GWT-RPC .
>
> > My Problem: This is a bit of a pain b/c anytime I make a change to the
> > servlet code (which resides in the same Eclipse project as my GWT
> > code...and I'd prefer to keep it this way), I have to copy the *.class
> > file (for the servlet) over to the CATALINA_HOME/webapps/myproject/WEB-
> > INF/classes/blahblahblah folder.
>
> > This seems extremely manual and I'm hopeful that there's a better way
> > to do it. What is the recommended way of doing this type of
> > development? Ideally, I'd it would just pickup the changes to both the
> > client and server code as it used to when I was working in hosted
> > mode. Unfortunately, I couldn't figure out how to get MySQL and
> > Connector/J setup in the integrated Tomcat, so I went with the "-
> > noserver" option and configured it with an external instance of Tomcat
> > instead. This manual copying crap is starting to get super annoying,
> > so I'm reaching out for help.
>
> > What's the best practices for this?
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: GWT + MySQL Best Practices?

2008-11-26 Thread [EMAIL PROTECTED]

For automating the deployment (instead of manually copying) ant is the
only way to go.  I've heard stories that Maven is even easier, but we
haven't jumped onto that band wagon (yet).  When we build with no
server, we have an ant build file that does all that, and then deploys
to our external server.  We do it old school and jump out to the file
system and run via command line, but I've done from inside Eclipse as
well.


On Nov 26, 5:39 pm, DanielC <[EMAIL PROTECTED]> wrote:
> Hi guys,
>
> I'm developing a project with GWT + Servlets + MySQL. At this point,
> I've got the project setup using the "-noserver" flag and I have
> Connector/J configured on an external Tomcat 6 server so that my
> servlets can access the DB. Communication to/from server is through
> GWT-RPC .
>
> My Problem: This is a bit of a pain b/c anytime I make a change to the
> servlet code (which resides in the same Eclipse project as my GWT
> code...and I'd prefer to keep it this way), I have to copy the *.class
> file (for the servlet) over to the CATALINA_HOME/webapps/myproject/WEB-
> INF/classes/blahblahblah folder.
>
> This seems extremely manual and I'm hopeful that there's a better way
> to do it. What is the recommended way of doing this type of
> development? Ideally, I'd it would just pickup the changes to both the
> client and server code as it used to when I was working in hosted
> mode. Unfortunately, I couldn't figure out how to get MySQL and
> Connector/J setup in the integrated Tomcat, so I went with the "-
> noserver" option and configured it with an external instance of Tomcat
> instead. This manual copying crap is starting to get super annoying,
> so I'm reaching out for help.
>
> What's the best practices for this?
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



GWT + MySQL Best Practices?

2008-11-26 Thread DanielC

Hi guys,

I'm developing a project with GWT + Servlets + MySQL. At this point,
I've got the project setup using the "-noserver" flag and I have
Connector/J configured on an external Tomcat 6 server so that my
servlets can access the DB. Communication to/from server is through
GWT-RPC .

My Problem: This is a bit of a pain b/c anytime I make a change to the
servlet code (which resides in the same Eclipse project as my GWT
code...and I'd prefer to keep it this way), I have to copy the *.class
file (for the servlet) over to the CATALINA_HOME/webapps/myproject/WEB-
INF/classes/blahblahblah folder.

This seems extremely manual and I'm hopeful that there's a better way
to do it. What is the recommended way of doing this type of
development? Ideally, I'd it would just pickup the changes to both the
client and server code as it used to when I was working in hosted
mode. Unfortunately, I couldn't figure out how to get MySQL and
Connector/J setup in the integrated Tomcat, so I went with the "-
noserver" option and configured it with an external instance of Tomcat
instead. This manual copying crap is starting to get super annoying,
so I'm reaching out for help.

What's the best practices for this?
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: GWT+MYSQL

2008-10-22 Thread Ternovoy Garri


try to create new project (i used netbeans) and and copy files from
branflake svn in their hierarchy, check dependency problems (imports,
if you want refactor something)

http://www.kitebird.com/articles/jdbc.html - good tutorial

http://code.google.com/docreader/#p=google-web-toolkit-doc-1-5&s=google-web-toolkit-doc-1-5&t=DevGuideHandlingExceptions

- I moved servlet mappings from mysqlconn.gwt.xml to the web.xml

--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: GWT+MYSQL

2008-10-10 Thread kozura

Yes you create it yourself and place your server code, specifically
the RPC service, under that folder.  You cannot put any server code
into the "Client" folder because it will try to compile it into
javascript for the browser.

jk

On Oct 10, 11:58 am, shan <[EMAIL PROTECTED]> wrote:
> Hi,
> I am new to GWT.i am attempting to connect mysql database with GWT.
>
> i found a very good example in this 
> link.http://code.google.com/p/gwt-examples/source/browse/trunk/gwt-test-My...
>
> if anyone tried this example pls let me know one thing.
>
> under this mysqlconn folder it has Client, Public, Server folder.
>
> usually we will have only client and public folder. my doubt do we
> need to create that server folder under mysqlconn by ourself's.
>
> -thanks
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



GWT+MYSQL

2008-10-10 Thread shan

Hi,
I am new to GWT.i am attempting to connect mysql database with GWT.

i found a very good example in this link.
http://code.google.com/p/gwt-examples/source/browse/trunk/gwt-test-MySQLConn/src/com/tribling/gwt/test/mysqlconn/?r=713#mysqlconn/client

if anyone tried this example pls let me know one thing.

under this mysqlconn folder it has Client, Public, Server folder.

usually we will have only client and public folder. my doubt do we
need to create that server folder under mysqlconn by ourself's.

-thanks

--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---