Running Hibernate / Spring, both client + server in hosted mode?

5 views
Skip to first unread message

martijn...@gmail.com

unread,
Jul 7, 2007, 12:07:03 PM7/7/07
to Google Web Toolkit
I've been struggling for a while now with this, so I thought I'd ask
people
here if what I'm trying to do is actually possible:

I want to develop a GWT application, that uses RPC and Spring
+Hibernate on the
serverside within Eclipse. And during the development process run the
hosted client UI
and the Server in debug mode through Eclipse.

I've seen various examples that seem to show how to deploy it all to a
separate
Tomcat instance, which I've been able to do. But I can't seem to get
it all running as
hosted GWT application.

Is this possible at all? Mainly, should the GWT server used in hosted
mode be
completely able to run the server code including database
connectivity, at the
same time so I can properly debug the entire application.

If anyone has an example they are willing to share (.war or .jar)
that'd
be really appreciated.

Cheers,
Martijn

eldaaran

unread,
Jul 24, 2007, 10:38:00 AM7/24/07
to Google Web Toolkit
Hi Martijn,

I'm encountering the same problem. I use Spring for managing database
transactions and I want a good way to use Spring in hosted mode for
debugging.

Did you come to any particular conclusions or find a good solution?

Thanks!

Jonathan

Sumit Chandel

unread,
Jul 30, 2007, 2:44:52 AM7/30/07
to Google-We...@googlegroups.com
Hi Martijn,

I believe what you're looking for is the -noserver option in hosted
mode. This allows you to use the hosted mode browser with your own web
server rather than GWT's embedded Tomcat server.

You can take a look at how you would go about using the -noserver
option in hosted mode to debug your application with your custom web
server at the link below:

http://code.google.com/support/bin/answer.py?answer=55200&topic=10454

Hope that helps,
-Sumit Chandel

Message has been deleted

j.casey...@gmail.com

unread,
Jul 30, 2007, 9:57:56 AM7/30/07
to Google Web Toolkit
If you want to use spring you are going to need to use the GWT-Server
library. They have written their own controller servlet which handles
mapping the RemoteService urls and handing them off to spring beans. I
spent all weekend trying to get a project up and running with -
noserver and spring and the GWT Server library was the only way I was
able to get spring to work.

http://gwt-widget.sourceforge.net/?q=node/39

On Jul 30, 2:44 am, "Sumit Chandel" <sumitchan...@google.com> wrote:
> Hi Martijn,
>
> I believe what you're looking for is the -noserver option in hosted
> mode. This allows you to use the hosted mode browser with your own web
> server rather than GWT's embedded Tomcat server.
>
> You can take a look at how you would go about using the -noserver
> option in hosted mode to debug your application with your custom web
> server at the link below:
>
> http://code.google.com/support/bin/answer.py?answer=55200&topic=10454
>
> Hope that helps,
> -Sumit Chandel
>

AndrewMo...@gmail.com

unread,
Aug 14, 2007, 10:04:22 PM8/14/07
to Google Web Toolkit
I am also having this problem. I am using the GWTHandler to bootstrap
spring via a seperate Tomcat instance, and I have no problems in this
deployed environment. But I cannot get the Hosted version of Tomcat to
bootstrap my Spring application, and I also haven't found the log
files for the hosted Tomcat to help debug. The Hosted mode window
doesn't print anything.

On Jul 30, 9:57 am, "j.casey.one...@gmail.com"
<j.casey.one...@gmail.com> wrote:
> If you want to usespringyou are going to need to use the GWT-Server


> library. They have written their own controller servlet which handles

> mapping the RemoteService urls and handing them off tospringbeans. I


> spent all weekend trying to get a project up and running with -

> noserver andspringand the GWT Server library was the only way I was
> able to getspringto work.


>
> http://gwt-widget.sourceforge.net/?q=node/39
>
> On Jul 30, 2:44 am, "Sumit Chandel" <sumitchan...@google.com> wrote:
>
> > Hi Martijn,
>
> > I believe what you're looking for is the -noserver option inhosted

> > mode. This allows you to use thehostedmode browser with your own web


> > server rather than GWT's embedded Tomcat server.
>
> > You can take a look at how you would go about using the -noserver

> > option inhostedmode to debug your application with your custom web


> > server at the link below:
>
> >http://code.google.com/support/bin/answer.py?answer=55200&topic=10454
>
> > Hope that helps,
> > -Sumit Chandel
>
> > On 7/24/07, eldaaran <eldaa...@gmail.com> wrote:
>
> > > Hi Martijn,
>

> > > I'm encountering the same problem. I useSpringfor managing database
> > > transactions and I want a good way to useSpringinhostedmode for

mP

unread,
Aug 15, 2007, 6:59:00 AM8/15/07
to Google Web Toolkit
The -no server thing is very simple. Im doing this off the top of my
head but you need to do something like the following:

1) Run your regular server. Take note of the url.
2) Goto eclipse and configure your runtime config.
3) Add to your arguments "-noserver".
4) Change the previous url to the full url of the start up page on
your j2ee server.
5) Run

AndrewMo...@gmail.com

unread,
Aug 15, 2007, 8:37:03 AM8/15/07
to Google Web Toolkit
I fixed the problem last night. It was actually related to having
another resource on the classpath (related to the Spring side of my
application) above the gwt-dev.jar. I have seen several threads
referencing this problem. I'm not sure what the correct process is,
but I would recommend that somewhere it be documented more clearly,
especially for developers integrating GWT with larger projects, that
the gwt-dev.jar must be very high on the classpath.
Reply all
Reply to author
Forward
0 new messages