Re: GWT with Spring Boot

2020-01-19 Thread Freddy Boucher
@Alex

How could you not be sure why I'd want to use one of the fundamental 
> principles of GWT, which is GWT RPC? Either I'm missing something, or you 
> are! 


GWT RPC was a must to have 10 years ago but nowadays all modern projects 
use REST/JSON API (it makes your APIs really easy to mock/test with all 
modern REST/JSON frameworks like Spring / Resteasy / Jersey vs GWT RPC APIs 
that are complex to test)

You can "easily" migrate your GWT RPC project to GWT RestyGWT (and use 
Spring boot / Resteasy on server side with a shared JAX-RS interfaces with 
your client)

I have a demo project using this approach: 
https://github.com/freddyboucher/gwt-storage-objectify

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-web-toolkit/f5544524-a189-4c3e-97cb-6add458b40a8%40googlegroups.com.


Re: GWT with Spring Boot

2020-01-19 Thread Freddy Boucher
@Alex

How could you not be sure why I'd want to use one of the fundamental 
> principles of GWT, which is GWT RPC? Either I'm missing something, or you 
> are! 
>

GWT was a must to have 10 years ago but nowadays all modern projects use 
REST/JSON API (it makes your APIs really easy to mock/test with all modern 
REST/JSON frameworks like Spring / Resteasy / Jersey)

You can "easily" migrate your GWT RPC project to GWT RestyGWT (and use 
Spring boot / Resteasy on server side with a shared JAX-RS interfaces with 
your client)

I have a demo project using this approach: 
https://github.com/freddyboucher/gwt-storage-objectify

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-web-toolkit/e626ff32-96d6-4917-837b-3359d2695bc3%40googlegroups.com.


Re: GWT with Spring Boot

2020-01-18 Thread junaid
was a typo..
RequestBuilder GWT

On Sat, Jan 18, 2020 at 8:14 PM Alex  wrote:

> Hi,
>
> How could you not be sure why I'd want to use one of the fundamental
> principles of GWT, which is GWT RPC? Either I'm missing something, or you
> are!
>
> What is "Gwt web builder"? I've never heard of it and Googling it finds
> zero results.
>
> On Thursday, January 16, 2020 at 10:19:38 PM UTC-8, junaidp wrote:
>>
>> Hi
>> i am not sure why you need RPC when using springboot or any webservice
>>
>> you can try Gwt web builder
>> which will call directly from your gwt client to springboot .. without
>> RPc
>>
>>
>> Sent from my iPhone
>>
>> On 17-Jan-2020, at 6:53 AM, Alex  wrote:
>>
>> Hi,
>>
>> I'm trying to convert a GWT project over to use Spring Boot. I'm not able
>> to find an example anywhere that uses GWT RPC with Spring Boot.
>>
>> Is this possible? Can anyone point me at an example please?
>>
>> Thanks,
>>
>> Alex
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "GWT Users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to google-web-toolkit+unsubscr...@googlegroups.com.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/google-web-toolkit/18bc1f88-511c-4d4d-b8c3-f8feb10751f4%40googlegroups.com
>> <https://groups.google.com/d/msgid/google-web-toolkit/18bc1f88-511c-4d4d-b8c3-f8feb10751f4%40googlegroups.com?utm_medium=email_source=footer>
>> .
>>
>> --
> You received this message because you are subscribed to the Google Groups
> "GWT Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to google-web-toolkit+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/google-web-toolkit/793e0204-0517-4bab-8f78-d2c614066b28%40googlegroups.com
> <https://groups.google.com/d/msgid/google-web-toolkit/793e0204-0517-4bab-8f78-d2c614066b28%40googlegroups.com?utm_medium=email_source=footer>
> .
>

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-web-toolkit/CAE0Dw%3D_1XmKde4PpwQCPparTr-dHBSWdkSrAHFOVsZpqPa6Sog%40mail.gmail.com.


Re: GWT with Spring Boot

2020-01-18 Thread Alex
Hi, 

How could you not be sure why I'd want to use one of the fundamental 
principles of GWT, which is GWT RPC? Either I'm missing something, or you 
are! 

What is "Gwt web builder"? I've never heard of it and Googling it finds 
zero results. 

On Thursday, January 16, 2020 at 10:19:38 PM UTC-8, junaidp wrote:
>
> Hi 
> i am not sure why you need RPC when using springboot or any webservice 
>
> you can try Gwt web builder 
> which will call directly from your gwt client to springboot .. without RPc 
>  
>
>
> Sent from my iPhone
>
> On 17-Jan-2020, at 6:53 AM, Alex > wrote:
>
> Hi, 
>
> I'm trying to convert a GWT project over to use Spring Boot. I'm not able 
> to find an example anywhere that uses GWT RPC with Spring Boot. 
>
> Is this possible? Can anyone point me at an example please?
>
> Thanks,
>
> Alex
>
> -- 
> You received this message because you are subscribed to the Google Groups 
> "GWT Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to google-web-toolkit+unsubscr...@googlegroups.com .
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/google-web-toolkit/18bc1f88-511c-4d4d-b8c3-f8feb10751f4%40googlegroups.com
>  
> <https://groups.google.com/d/msgid/google-web-toolkit/18bc1f88-511c-4d4d-b8c3-f8feb10751f4%40googlegroups.com?utm_medium=email_source=footer>
> .
>
>

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-web-toolkit/793e0204-0517-4bab-8f78-d2c614066b28%40googlegroups.com.


Re: GWT with Spring Boot

2020-01-16 Thread junaid Paracha
Hi 
i am not sure why you need RPC when using springboot or any webservice 

you can try Gwt web builder 
which will call directly from your gwt client to springboot .. without RPc  


Sent from my iPhone

> On 17-Jan-2020, at 6:53 AM, Alex  wrote:
> 
> Hi, 
> 
> I'm trying to convert a GWT project over to use Spring Boot. I'm not able to 
> find an example anywhere that uses GWT RPC with Spring Boot. 
> 
> Is this possible? Can anyone point me at an example please?
> 
> Thanks,
> 
> Alex
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "GWT Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to google-web-toolkit+unsubscr...@googlegroups.com.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/google-web-toolkit/18bc1f88-511c-4d4d-b8c3-f8feb10751f4%40googlegroups.com.

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-web-toolkit/F807BC19-A7E5-44F1-B463-8755E8D6E1DF%40gmail.com.


GWT with Spring Boot

2020-01-16 Thread Alex
Hi, 

I'm trying to convert a GWT project over to use Spring Boot. I'm not able 
to find an example anywhere that uses GWT RPC with Spring Boot. 

Is this possible? Can anyone point me at an example please?

Thanks,

Alex

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-web-toolkit/18bc1f88-511c-4d4d-b8c3-f8feb10751f4%40googlegroups.com.


Re: GWT into Spring Boot with remember-me is not working

2018-09-14 Thread Josep Llort Tella

I have also integrated GWT-SL but that not helped me to solve the issue ( 
here the link of this project in github 
https://github.com/ggeorgovassilis/gwt-sl ) 

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" 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 https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


GWT into Spring Boot with remember-me is not working

2018-09-13 Thread Josep Llort Tella
Hi

I have an application based in Spring Boot and the latest GWT 2.8.2. In the 
application I have some protected resources one with GWT and others with 
standard Servlets and JSP pages. 
Now I have included remember-me feature, the remember-me feature is working 
with all the protected resources except with GWT section what fails

My GWT Servlets extends RemoteServiceServlet

It is raising this error:
org.springframework.security.web.authentication.rememberme.CookieTheftException:
 
Invalid remember-me token (Series/token) mismatch. Implies previous cookie 
theft attack.
at 
org.springframework.security.web.authentication.rememberme.PersistentTokenBasedRememberMeServices.processAutoLoginCookie(PersistentTokenBasedRememberMeServices.java:120)

I have debug the internal spring security class 
PersistentTokenBasedRememberMeServices and the error it is raised because 
the initial tokenValue for some reason is changed in the middle:

@Override
protected UserDetails processAutoLoginCookie(String[] cookieTokens,
HttpServletRequest request, HttpServletResponse response) {

if (cookieTokens.length != 2) {
throw new InvalidCookieException("Cookie token did not contain 
" + 2
+ " tokens, but contained '" + 
Arrays.asList(cookieTokens) + "'");
}

final String presentedSeries = cookieTokens[0];
final String presentedToken = cookieTokens[1];

PersistentRememberMeToken token = tokenRepository
.getTokenForSeries(presentedSeries);

if (token == null) {
// No series match, so we can't authenticate using this cookie
throw new RememberMeAuthenticationException(
"No persistent token found for series id: " + 
presentedSeries);
}

// We have a match for this user/series combination
if (!presentedToken.equals(token.getTokenValue())) {
// Token doesn't match series value. Delete all logins for this 
user and throw
// an exception to warn them.
tokenRepository.removeUserTokens(token.getUsername());

throw new CookieTheftException(
messages.getMessage(

"PersistentTokenBasedRememberMeServices.cookieStolen",
"Invalid remember-me token (Series/token) 
mismatch. Implies previous cookie theft attack."));
}




-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" 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 https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: GWT and spring security integration,DelegatingFilterProxy has a dead loop

2016-07-05 Thread Alexander Leshkin
On Tuesday, July 5, 2016 at 1:25:39 PM UTC+3, Alex Luya wrote:
>
> Does this mean if add  added blow to web.xml:
>
> 
> 
> springSecurityFilterChain
> 
> org.springframework.web.filter.DelegatingFilterProxy
> 
> 
> springSecurityFilterChain
> /dp_web/service/*
> 
>
>
> I must use  to configure something in applicationContext.xml?
>

Yes. If you want to use default implementaion of the "filter chain", you 
have to use namespaces () for configuration or you may use JavaConfig 
aproach.
 

>
> In my case,I removed above stuff from web.xml,added 
>
> @Secured({"ROLE_USER"})
>
> to class ServiceBase and let all other service inherit from it,and added 
> this:
>
>  
>
> to applicationContext.xml,and remove all other spring security related 
> from it,rerun my web app,all inherited service invoking
> give 500 error,so security mechanism do works, but obviously,following 
> code is not enough:
>
> User user = new User(login, password, true, true, true, true, new 
> ArrayList());
> Authentication auth = new UsernamePasswordAuthenticationToken(user, password,
> new ArrayList());
> try {
> auth = this.authenticationProvider.authenticate(auth);
> } catch (BadCredentialsException e) {
> throw new ClientSideBadCredentialsException(e.getMessage(), e);
> }
> SecurityContext sc = new SecurityContextImpl();
> sc.setAuthentication(auth);
> SecurityContextHolder.setContext(sc);
>
>
> So question is what else I should do except:
>
> 1,add @Secured({"ROLE_USER"}) to parent service
> 2,add  
> to applictionContext.xml
>
>
>
When you removed spring security filter-chain stuff, ability to inject 
SecurityContext to HttpRequest has been removed too (that's what one of the 
security filters does). 
So all requests handled on behalf of Anonymous user (even after 
authentication in RPC service).

I suggest to use separated page for "plain" login HTML form without gwt 
rpc. Thus, you can use default form login support from spring security.
Then, you should configure access rules for http requests (by using  
namespace or JavaConfig... there is a lot of info and samples):

1. Allow login page for all.
2. And restrict all other URLs for authenticated only.

And, there is some example with custom implementation of the 
AuthenticationProvider [1] if you do not want to implement separated login 
page.

[1] 
https://examples.javacodegeeks.com/enterprise-java/gwt/gwt-spring-security-example

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" 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 https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: GWT and spring security integration,DelegatingFilterProxy has a dead loop

2016-07-05 Thread Alex Luya
Does this mean if add  added blow to web.xml:



springSecurityFilterChain

org.springframework.web.filter.DelegatingFilterProxy


springSecurityFilterChain
/dp_web/service/*



I must use  to configure something in applicationContext.xml?

In my case,I removed above stuff from web.xml,added 

@Secured({"ROLE_USER"})

to class ServiceBase and let all other service inherit from it,and added 
this:

 

to applicationContext.xml,and remove all other spring security related from 
it,rerun my web app,all inherited service invoking
give 500 error,so security mechanism do works, but obviously,following code 
is not enough:

User user = new User(login, password, true, true, true, true, new 
ArrayList());
Authentication auth = new UsernamePasswordAuthenticationToken(user, password,
new ArrayList());
try {
auth = this.authenticationProvider.authenticate(auth);
} catch (BadCredentialsException e) {
throw new ClientSideBadCredentialsException(e.getMessage(), e);
}
SecurityContext sc = new SecurityContextImpl();
sc.setAuthentication(auth);
SecurityContextHolder.setContext(sc);


So question is what else I should do except:

1,add @Secured({"ROLE_USER"}) to parent service
2,add  to 
applictionContext.xml


On Tuesday, July 5, 2016 at 4:38:31 PM UTC+8, Alexander Leshkin wrote:


> On Tuesday, July 5, 2016 at 6:02:38 AM UTC+3, Alex Luya wrote:
>>
>> and blow to applicationContext.xml:
>>
>> > class="org.springframework.web.filter.DelegatingFilterProxy"/>
>>
>>
>> I think this causes recursion. Try to remove this bean declarion. Spring 
> security should internally create bean with name 
> *springSecurityFilterChain.*
> See 
> http://docs.spring.io/spring-security/site/docs/current/reference/htmlsingle/#ns-web-xml
>
>> In this case, the bean is named "springSecurityFilterChain", which is an 
>> internal infrastructure bean created by the namespace to handle web 
>> security. Note that you should not use this bean name yourself. Once you’ve 
>> added this to your web.xml, you’re ready to start editing your 
>> application context file. Web security services are configured using the 
>>  element.
>
>
>
>

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" 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 https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: GWT and spring security integration,DelegatingFilterProxy has a dead loop

2016-07-05 Thread Alexander Leshkin

On Tuesday, July 5, 2016 at 6:02:38 AM UTC+3, Alex Luya wrote:
>
> and blow to applicationContext.xml:
>
>  class="org.springframework.web.filter.DelegatingFilterProxy"/>
>
>
> I think this causes recursion. Try to remove this bean declarion. Spring 
security should internally create bean with name 
*springSecurityFilterChain.*
See 
http://docs.spring.io/spring-security/site/docs/current/reference/htmlsingle/#ns-web-xml

> In this case, the bean is named "springSecurityFilterChain", which is an 
> internal infrastructure bean created by the namespace to handle web 
> security. Note that you should not use this bean name yourself. Once you’ve 
> added this to your web.xml, you’re ready to start editing your 
> application context file. Web security services are configured using the 
>  element.



-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" 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 https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


GWT and spring security integration,DelegatingFilterProxy has a dead loop

2016-07-04 Thread Alex Luya


There is a pure GWT solution here:GWT Spring Security Integration (PURE 
GWT, NO JSP)

1,Do not use http element at all (http tag from config namespace)

2,Define your AuthenticationRpcService

3,Add AuthenticationRpcService.authenticate(user,password) method

4,Inject into AuthenticationServiceImpl AuthenticationProvider bean from 
security-context.xml

5,Implement AuthenticationRpcService.authenticate(user,password) as :

User user = new User(login, password, true, true, true, true, new 
ArrayList());
Authentication auth = new UsernamePasswordAuthenticationToken(user, password,
new ArrayList());
try {
auth = this.authenticationProvider.authenticate(auth);
} catch (BadCredentialsException e) {
throw new ClientSideBadCredentialsException(e.getMessage(), e);
}
SecurityContext sc = new SecurityContextImpl();
sc.setAuthentication(auth);
SecurityContextHolder.setContext(sc);

6,Ensure that spring security filter chain is executed during processing of 
each your GWT RPC call (to be sure that SecurityContext populated into 
SecurityContextHolder).

For this sixth step, added blow to web.xml:



springSecurityFilterChain

org.springframework.web.filter.DelegatingFilterProxy


springSecurityFilterChain
/dp_web/service/*


and blow to applicationContext.xml:



Then call authentication service,got blow error:

Problem accessing /service/authenticate. Reason:
Server ErrorCaused 
by:java.lang.StackOverflowError
at 
org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:346)
at 
org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:262)
at 
org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:346)
at 
org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:262)
at 
org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:346)
at 
org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:262)
at 
org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:346)

As you can see there is a *dead loop* that causes StackOverflowError,and I 
am not good at spring,after two hours googling,can't figure out a way to 
solve this problem,so can anybody help me?Thanks.

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" 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 https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


GWT and Spring Boot with gwt-maven-plugin

2015-09-14 Thread apanizo
Hi all,

I am trying to integrate GWT in a given spring boot project (Kurento Room 
). Everything looks good until I 
launch SpringBoot. The error that I see is:

*Caused by: java.lang.IncompatibleClassChangeError: Implementing class*


*over some server classes*. After googling a bit, normally that is because 
I have two versions of the same library/classes in my Tomcat. So far so 
good.

The thing is if I comment in my *pom.xml *everything related gwt 
(*gwt-maven-plugin, 
gwt's dependencies...*) *the problem disappears*.  The gwt classes are 
minimal, just an empty EntryPoint with an:
 

*Window.alert("Hello World"); *

 
So, I imagine is something related with *gwt-maven-plugin*. What am I 
missing? Can you give me some ideas?

Some notes:

I have searched inside the final jar and using "find" command only shows 
one class.
I have run the duplicate-maven-plugin 
 and there 
is no strange things related with the classes.

I am running in GWT 2.8-SNAPSHOT with 2.7.0 maven plugin. Java 1.8 

I have attached *pom.xml* and *exception stack strace( *
https://docs.google.com/document/d/1LuJ5oJ4rwbMl9Wbx881XyN5GwI2mCdhKk6L_RdIIoCM/edit?usp=sharing
 
*)* just in case I am missing something. 


Thanks in advance,

Adolfo. 

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" 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.


pom.xml
Description: XML document


GWT with Spring

2014-03-05 Thread Dilan A
Hi  I got gwt setup through maven and try to configure spring 4 and getting 
following error:

javax.servlet.UnavailableException: 
org.spring4gwt.server.SpringGwtRemoteServiceServlet

-- 
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/groups/opt_out.


Problem deploying GWT+Maven+Spring War on tomcat 6

2014-02-12 Thread efsiken
Hello,

I developed a GWT+Spring+Maven application on eclipse helios and all works 
well on eclipse. I clean, compile and install the application without any 
problem. But when deploy the generated war file on tomcat 6, deployment is 
successful, but the application doesn't start.

Here is the error I get on the tomcat application manager:

 ECHEC - L'application pour le chemin de contexte /test1 n'a pas pu être 
démarrée

and here is the tomcat6-stderr.log file:



12 févr. 2014 15:42:03 org.apache.catalina.core.ApplicationContext log
INFO: HTMLManager: init: Associated with Deployer 
'Catalina:type=Deployer,host=localhost'
12 févr. 2014 15:42:03 org.apache.catalina.core.ApplicationContext log
INFO: HTMLManager: init: Global resources are available
12 févr. 2014 15:42:03 org.apache.catalina.core.ApplicationContext log
INFO: HTMLManager: list: Listing contexts for virtual host 'localhost'
12 févr. 2014 15:43:05 org.apache.catalina.core.ApplicationContext log
INFO: HTMLManager: start: Starting web application at '/test1'
12 févr. 2014 15:43:05 org.apache.catalina.core.StandardContext 
listenerStart
GRAVE: Exception lors de l'envoi de l'évènement contexte initialisé 
(context initialized) à l'instance de classe d'écoute (listener) 
org.springframework.web.context.ContextLoaderListener
java.lang.NoClassDefFoundError: Could not initialize class 
org.springframework.web.context.ContextLoader
at 
org.springframework.web.context.ContextLoaderListener.createContextLoader(ContextLoaderListener.java:53)
at 
org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:44)
at 
org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4210)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4709)
at 
org.apache.catalina.manager.ManagerServlet.start(ManagerServlet.java:1276)
at 
org.apache.catalina.manager.HTMLManagerServlet.start(HTMLManagerServlet.java:625)
at 
org.apache.catalina.manager.HTMLManagerServlet.doGet(HTMLManagerServlet.java:136)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:723)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at 
org.apache.catalina.filters.CsrfPreventionFilter.doFilter(CsrfPreventionFilter.java:194)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at 
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:563)
at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at 
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
at 
org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:879)
at 
org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:617)
at org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1774)
at java.lang.Thread.run(Unknown Source)
12 févr. 2014 15:43:05 org.apache.catalina.core.StandardContext start
GRAVE: Error listenerStart
12 févr. 2014 15:43:05 org.apache.catalina.core.StandardContext start
GRAVE: Erreur de démarrage du contexte [/test1] suite aux erreurs 
précédentes
12 févr. 2014 15:43:05 org.apache.catalina.core.ApplicationContext log
INFO: HTMLManager: list: Listing contexts for virtual host 'localhost'



Can someone help me out??

Thanks.

-- 
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/groups/opt_out.


[gwt-contrib] Problem deploying GWT+Maven+Spring War on tomcat 6

2014-02-12 Thread efsiken
Hello,

I developed a GWT+Spring+Maven application on eclipse helios and all works 
well on eclipse. I clean, compile and install the application without any 
problem. But when deploy the generated war file on tomcat 6, deployment is 
successful, but the application doesn't start.

Here is the error I get on the tomcat application manager:

 ECHEC - L'application pour le chemin de contexte /test1 n'a pas pu être 
démarrée

and here is the tomcat6-stderr.log file:


2014-02-12 11:35:19 Commons Daemon procrun stderr initialized
12 févr. 2014 11:35:20 org.apache.catalina.core.AprLifecycleListener init
INFO: Loaded APR based Apache Tomcat Native library 1.1.29 using APR 
version 1.4.8.
12 févr. 2014 11:35:20 org.apache.catalina.core.AprLifecycleListener init
INFO: APR capabilities: IPv6 [true], sendfile [true], accept filters 
[false], random [true].
12 févr. 2014 11:35:22 org.apache.catalina.core.AprLifecycleListener 
initializeSSL
INFO: OpenSSL successfully initialized with version OpenSSL 1.0.1e 11 Feb 
2013
12 févr. 2014 11:35:27 org.apache.coyote.http11.Http11AprProtocol init
INFO: Initialisation de Coyote HTTP/1.1 sur http-8080
12 févr. 2014 11:35:27 org.apache.coyote.ajp.AjpAprProtocol init
INFO: Initializing Coyote AJP/1.3 on ajp-8009
12 févr. 2014 11:35:27 org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 7241 ms
12 févr. 2014 11:35:29 org.apache.catalina.core.StandardService start
INFO: Démarrage du service Catalina
12 févr. 2014 11:35:29 org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/6.0.39
12 févr. 2014 11:35:29 org.apache.catalina.startup.HostConfig 
deployDescriptor
INFO: Déploiement du descripteur de configuration host-manager.xml
12 févr. 2014 11:35:31 org.apache.catalina.startup.HostConfig 
deployDescriptor
INFO: Déploiement du descripteur de configuration manager.xml
12 févr. 2014 11:35:31 org.apache.catalina.startup.HostConfig deployWAR
INFO: Déploiement de l'archive eskul.war de l'application web
12 févr. 2014 11:35:32 org.apache.catalina.core.StandardContext start
GRAVE: Error listenerStart
12 févr. 2014 11:35:32 org.apache.catalina.core.StandardContext start
GRAVE: Erreur de démarrage du contexte [/eskul] suite aux erreurs 
précédentes
12 févr. 2014 11:35:33 org.apache.catalina.startup.HostConfig deployWAR
INFO: Déploiement de l'archive gwtspring.war de l'application web
12 févr. 2014 11:35:33 org.apache.catalina.core.StandardContext start
GRAVE: Error listenerStart
12 févr. 2014 11:35:33 org.apache.catalina.core.StandardContext start
GRAVE: Erreur de démarrage du contexte [/gwtspring] suite aux erreurs 
précédentes
12 févr. 2014 11:35:33 org.apache.catalina.startup.HostConfig 
deployDirectory
INFO: Déploiement du répertoire docs de l'application web
12 févr. 2014 11:35:33 org.apache.catalina.startup.HostConfig 
deployDirectory
INFO: Déploiement du répertoire examples de l'application web
12 févr. 2014 11:35:35 org.apache.catalina.startup.HostConfig 
deployDirectory
INFO: Déploiement du répertoire gwt de l'application web
12 févr. 2014 11:35:35 org.apache.catalina.core.StandardContext start
GRAVE: Error listenerStart
12 févr. 2014 11:35:35 org.apache.catalina.core.StandardContext start
GRAVE: Erreur de démarrage du contexte [/gwt] suite aux erreurs précédentes
12 févr. 2014 11:35:35 org.apache.catalina.startup.HostConfig 
deployDirectory
INFO: Déploiement du répertoire OLD de l'application web
12 févr. 2014 11:35:35 org.apache.catalina.startup.HostConfig 
deployDirectory
INFO: Déploiement du répertoire ROOT de l'application web
12 févr. 2014 11:35:35 org.apache.coyote.http11.Http11AprProtocol start
INFO: Démarrage de Coyote HTTP/1.1 sur http-8080
12 févr. 2014 11:35:35 org.apache.coyote.ajp.AjpAprProtocol start
INFO: Starting Coyote AJP/1.3 on ajp-8009
12 févr. 2014 11:35:35 org.apache.catalina.startup.Catalina start
INFO: Server startup in 8253 ms
12 févr. 2014 11:38:10 org.apache.catalina.startup.HostConfig deployWAR
INFO: Déploiement de l'archive gwtspring-0.0.1-SNAPSHOT.war de 
l'application web
12 févr. 2014 11:38:10 org.apache.catalina.core.StandardContext start
GRAVE: Error listenerStart
12 févr. 2014 11:38:10 org.apache.catalina.core.StandardContext start
GRAVE: Erreur de démarrage du contexte [/gwtspring-0.0.1-SNAPSHOT] suite 
aux erreurs précédentes
12 févr. 2014 11:38:33 org.apache.catalina.core.StandardContext start
GRAVE: Error listenerStart
12 févr. 2014 11:38:33 org.apache.catalina.core.StandardContext start
GRAVE: Erreur de démarrage du contexte [/gwtspring-0.0.1-SNAPSHOT] suite 
aux erreurs précédentes
12 févr. 2014 11:39:28 org.apache.catalina.startup.HostConfig deployWAR
INFO: Déploiement de l'archive test1.war de l'application web
12 févr. 2014 11:39:29 org.apache.catalina.core.StandardContext start
GRAVE: Error listenerStart
12 févr. 2014 11:39:29 org.apache.catalina.core.StandardContext start
GRAVE: Erreur de démarrage du contexte [/test1] suite aux erreurs 
précédentes
12 févr. 2014 11:39:38

[gwt-contrib] Re: Problem deploying GWT+Maven+Spring War on tomcat 6

2014-02-12 Thread Thomas Broyer
Please use https://groups.google.com/d/forum/google-web-toolkit or 
stackoverflow.com to ask for help.

On Wednesday, February 12, 2014 3:36:11 PM UTC+1, efsiken wrote:

 Hello,

 I developed a GWT+Spring+Maven application on eclipse helios and all works 
 well on eclipse. I clean, compile and install the application without any 
 problem. But when deploy the generated war file on tomcat 6, deployment is 
 successful, but the application doesn't start.

 Here is the error I get on the tomcat application manager:

  ECHEC - L'application pour le chemin de contexte /test1 n'a pas pu être 
 démarrée

 and here is the tomcat6-stderr.log file:


 2014-02-12 11:35:19 Commons Daemon procrun stderr initialized
 12 févr. 2014 11:35:20 org.apache.catalina.core.AprLifecycleListener init
 INFO: Loaded APR based Apache Tomcat Native library 1.1.29 using APR 
 version 1.4.8.
 12 févr. 2014 11:35:20 org.apache.catalina.core.AprLifecycleListener init
 INFO: APR capabilities: IPv6 [true], sendfile [true], accept filters 
 [false], random [true].
 12 févr. 2014 11:35:22 org.apache.catalina.core.AprLifecycleListener 
 initializeSSL
 INFO: OpenSSL successfully initialized with version OpenSSL 1.0.1e 11 Feb 
 2013
 12 févr. 2014 11:35:27 org.apache.coyote.http11.Http11AprProtocol init
 INFO: Initialisation de Coyote HTTP/1.1 sur http-8080
 12 févr. 2014 11:35:27 org.apache.coyote.ajp.AjpAprProtocol init
 INFO: Initializing Coyote AJP/1.3 on ajp-8009
 12 févr. 2014 11:35:27 org.apache.catalina.startup.Catalina load
 INFO: Initialization processed in 7241 ms
 12 févr. 2014 11:35:29 org.apache.catalina.core.StandardService start
 INFO: Démarrage du service Catalina
 12 févr. 2014 11:35:29 org.apache.catalina.core.StandardEngine start
 INFO: Starting Servlet Engine: Apache Tomcat/6.0.39
 12 févr. 2014 11:35:29 org.apache.catalina.startup.HostConfig 
 deployDescriptor
 INFO: Déploiement du descripteur de configuration host-manager.xml
 12 févr. 2014 11:35:31 org.apache.catalina.startup.HostConfig 
 deployDescriptor
 INFO: Déploiement du descripteur de configuration manager.xml
 12 févr. 2014 11:35:31 org.apache.catalina.startup.HostConfig deployWAR
 INFO: Déploiement de l'archive eskul.war de l'application web
 12 févr. 2014 11:35:32 org.apache.catalina.core.StandardContext start
 GRAVE: Error listenerStart
 12 févr. 2014 11:35:32 org.apache.catalina.core.StandardContext start
 GRAVE: Erreur de démarrage du contexte [/eskul] suite aux erreurs 
 précédentes
 12 févr. 2014 11:35:33 org.apache.catalina.startup.HostConfig deployWAR
 INFO: Déploiement de l'archive gwtspring.war de l'application web
 12 févr. 2014 11:35:33 org.apache.catalina.core.StandardContext start
 GRAVE: Error listenerStart
 12 févr. 2014 11:35:33 org.apache.catalina.core.StandardContext start
 GRAVE: Erreur de démarrage du contexte [/gwtspring] suite aux erreurs 
 précédentes
 12 févr. 2014 11:35:33 org.apache.catalina.startup.HostConfig 
 deployDirectory
 INFO: Déploiement du répertoire docs de l'application web
 12 févr. 2014 11:35:33 org.apache.catalina.startup.HostConfig 
 deployDirectory
 INFO: Déploiement du répertoire examples de l'application web
 12 févr. 2014 11:35:35 org.apache.catalina.startup.HostConfig 
 deployDirectory
 INFO: Déploiement du répertoire gwt de l'application web
 12 févr. 2014 11:35:35 org.apache.catalina.core.StandardContext start
 GRAVE: Error listenerStart
 12 févr. 2014 11:35:35 org.apache.catalina.core.StandardContext start
 GRAVE: Erreur de démarrage du contexte [/gwt] suite aux erreurs précédentes
 12 févr. 2014 11:35:35 org.apache.catalina.startup.HostConfig 
 deployDirectory
 INFO: Déploiement du répertoire OLD de l'application web
 12 févr. 2014 11:35:35 org.apache.catalina.startup.HostConfig 
 deployDirectory
 INFO: Déploiement du répertoire ROOT de l'application web
 12 févr. 2014 11:35:35 org.apache.coyote.http11.Http11AprProtocol start
 INFO: Démarrage de Coyote HTTP/1.1 sur http-8080
 12 févr. 2014 11:35:35 org.apache.coyote.ajp.AjpAprProtocol start
 INFO: Starting Coyote AJP/1.3 on ajp-8009
 12 févr. 2014 11:35:35 org.apache.catalina.startup.Catalina start
 INFO: Server startup in 8253 ms
 12 févr. 2014 11:38:10 org.apache.catalina.startup.HostConfig deployWAR
 INFO: Déploiement de l'archive gwtspring-0.0.1-SNAPSHOT.war de 
 l'application web
 12 févr. 2014 11:38:10 org.apache.catalina.core.StandardContext start
 GRAVE: Error listenerStart
 12 févr. 2014 11:38:10 org.apache.catalina.core.StandardContext start
 GRAVE: Erreur de démarrage du contexte [/gwtspring-0.0.1-SNAPSHOT] suite 
 aux erreurs précédentes
 12 févr. 2014 11:38:33 org.apache.catalina.core.StandardContext start
 GRAVE: Error listenerStart
 12 févr. 2014 11:38:33 org.apache.catalina.core.StandardContext start
 GRAVE: Erreur de démarrage du contexte [/gwtspring-0.0.1-SNAPSHOT] suite 
 aux erreurs précédentes
 12 févr. 2014 11:39:28 org.apache.catalina.startup.HostConfig deployWAR
 INFO: Déploiement de l'archive test1.war de l'application web
 12 févr

Re: Lessons learned moving from GWT to Spring MVC

2013-05-29 Thread Thomas Broyer


On Wednesday, May 29, 2013 12:14:24 AM UTC+2, Tomek Kańka wrote:

 How can one compare something what  lives almost entirely in 
 presentation-layer and has none strong dependencies on server-side (GWT) 
 with framework which is focused on server-side without any real widget 
 library?


Exactly what I wonder every time Matt Raible presents his Comparing JVM 
Web Frameworks session.

-- 
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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Lessons learned moving from GWT to Spring MVC

2013-05-29 Thread Ed Bras
To be honest: I don't even know another  framework like GWT that match my
desired setup ... Do they even exists? So it's like comparing peers and
bananas...

My setup (which I love).. A separate backend (Spring) and frontend (GWT),
that are deployed separately in respectively Tomcat and Apache httpd.
A few nice things:
1) Separate development of backend and front end.
2) Separate teams for backend and frontend (RPC communication through
contract interfaces). Overcomes unncessary dependencies that slows down
development... As such: fast development, changes and bug solving...
3) Fast startup of dev mode due to noserver mode (no need for gwt
yetty/tomcat).
4) Full control/inside of communication between backend and front-end, that
leads to easy performance optimization.
etc...

Which frameworks can offer this?
Note: before I also had both frontend and backend in one war, which is ok
for smaller projects, or if it's required by the client environment, but
the separation of frontend and backend works very nice...



On Wed, May 29, 2013 at 5:08 PM, Thomas Broyer t.bro...@gmail.com wrote:



 On Wednesday, May 29, 2013 12:14:24 AM UTC+2, Tomek Kańka wrote:

 How can one compare something what  lives almost entirely in
 presentation-layer and has none strong dependencies on server-side (GWT)
 with framework which is focused on server-side without any real widget
 library?


 Exactly what I wonder every time Matt Raible presents his Comparing JVM
 Web Frameworks session.

 --
 You received this message because you are subscribed to a topic in the
 Google Groups Google Web Toolkit group.
 To unsubscribe from this topic, visit
 https://groups.google.com/d/topic/google-web-toolkit/7c0eJtkA5zM/unsubscribe?hl=en
 .
 To unsubscribe from this group and all its topics, 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?hl=en.
 For more options, visit https://groups.google.com/groups/opt_out.




-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Lessons learned moving from GWT to Spring MVC

2013-05-29 Thread Juan Pablo Gardella
Thanks for sharing!!


2013/5/29 Ed Bras post2edb...@gmail.com

 To be honest: I don't even know another  framework like GWT that match my
 desired setup ... Do they even exists? So it's like comparing peers and
 bananas...

 My setup (which I love).. A separate backend (Spring) and frontend (GWT),
 that are deployed separately in respectively Tomcat and Apache httpd.
 A few nice things:
 1) Separate development of backend and front end.
 2) Separate teams for backend and frontend (RPC communication through
 contract interfaces). Overcomes unncessary dependencies that slows down
 development... As such: fast development, changes and bug solving...
 3) Fast startup of dev mode due to noserver mode (no need for gwt
 yetty/tomcat).
 4) Full control/inside of communication between backend and front-end,
 that leads to easy performance optimization.
 etc...

 Which frameworks can offer this?
 Note: before I also had both frontend and backend in one war, which is ok
 for smaller projects, or if it's required by the client environment, but
 the separation of frontend and backend works very nice...



 On Wed, May 29, 2013 at 5:08 PM, Thomas Broyer t.bro...@gmail.com wrote:



 On Wednesday, May 29, 2013 12:14:24 AM UTC+2, Tomek Kańka wrote:

 How can one compare something what  lives almost entirely in
 presentation-layer and has none strong dependencies on server-side (GWT)
 with framework which is focused on server-side without any real widget
 library?


 Exactly what I wonder every time Matt Raible presents his Comparing JVM
 Web Frameworks session.

 --
 You received this message because you are subscribed to a topic in the
 Google Groups Google Web Toolkit group.
 To unsubscribe from this topic, visit
 https://groups.google.com/d/topic/google-web-toolkit/7c0eJtkA5zM/unsubscribe?hl=en
 .
 To unsubscribe from this group and all its topics, 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?hl=en.
 For more options, visit https://groups.google.com/groups/opt_out.




  --
 You received this message because you are subscribed to the Google Groups
 Google Web Toolkit group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to google-web-toolkit+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?hl=en.
 For more options, visit https://groups.google.com/groups/opt_out.




-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Lessons learned moving from GWT to Spring MVC

2013-05-28 Thread Ed
Just wanted to share the following webinar:
Lessons learned moving from GWT to Spring MVC
I was just listening to it (it's live now)... and really didn't like it...

The speaker wasn't talking very nice about GWT, not very objective...  all 
the little negatives things where made BIG...
Or maybe they had very bad developers as they talked about slow 
development, hosted mode startup times with over a minute :( etc.. 
etc...
Or maybe they were just using gwt 1.1 ;)

Strangge not my experience at all...

-- 
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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Lessons learned moving from GWT to Spring MVC

2013-05-28 Thread Tomek Kańka
How can one compare something what  lives almost entirely in 
presentation-layer and has none strong dependencies on server-side (GWT) 
with framework which is focused on server-side without any real widget 
library?

Every SpringMVC app I developed used jQuery to add better experience to 
users.


W dniu wtorek, 28 maja 2013 16:21:22 UTC+2 użytkownik Ed napisał:

 Just wanted to share the following webinar:
 Lessons learned moving from GWT to Spring MVC
 I was just listening to it (it's live now)... and really didn't like it...

 The speaker wasn't talking very nice about GWT, not very objective...  all 
 the little negatives things where made BIG...
 Or maybe they had very bad developers as they talked about slow 
 development, hosted mode startup times with over a minute :( etc.. 
 etc...
 Or maybe they were just using gwt 1.1 ;)

 Strangge not my experience at all...


-- 
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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: NullPoniter when calling the DAO object (@Autowired) - GWT and Spring problem integration

2013-03-05 Thread Borja Gonzalez
Hi, i have tried to use:

servlet-mapping
servlet-namespringGwtRemoteServiceServlet/servlet-name
url-pattern/GestionUserService/*/url-pattern
/servlet-mapping

or

servlet-mapping
servlet-namespringGwtRemoteServiceServlet/servlet-name
url-pattern/userConsole/GestionUserService/*/url-pattern
/servlet-mapping

And still the same error. I'll keep looking, but any kind of feedback, help 
or ideas are really apreciated!

El lunes, 4 de marzo de 2013 18:06:12 UTC+1, Thomas Broyer escribió:



 On Monday, March 4, 2013 5:48:12 PM UTC+1, Borja Gonzalez wrote:

 Hi, im writting the code for a console using GWT and Spring integration. 
 I have followed GWT tutorial and read some forums about how to use spring 
 qith GWT.

 I'm at the point that the RPC call is returning null and i can't seem to 
 see why. As english is not my native language and i'm pretty new to this, 
 I'm just going to put my code here to see if someone can help me with it.


 [b]Service:[/b]
 [code=java]
 @RemoteServiceRelativePath(GestionUserService)
 public interface GestionUserService extends RemoteService {
 CollectionUsuario dameTablaUsuarios(String entidad);

 }
 [/code]

 [b]Async:[/b]
 [code=java]
 public interface GestionUserServiceAsync {
 void dameTablaUsuarios(String entidad,AsyncCallbackCollectionUsuario 
 callback);

 }
 [/code]

 [b]Impl:[/b]
 [code=java]
 @SuppressWarnings(serial)
 @Service(GestionUserService)
 public class GestionUsersConsultImpl extends RemoteServiceServlet 
 implements GestionUserService {
  @Autowired
 UserConsoleDBUtil utilDB;
 Logger logger = Logger.getLogger(GestionUsersConsultImpl.class);
  @SuppressWarnings(unchecked)
 public CollectionUsuario dameTablaUsuarios(String entidad) {
 GWT.log(Log);
 logger.info(He llegado al IMPL 
 dameTablaUsuarios.===+entidad);
 logger.info(UtilDB +utilDB.toString());
 return utilDB.getDao().getUsuarios(entidad);
 }
 }
 [/code]

 [b]*gwt.xml:[/b]
 [code=xml]
 ?xml version=1.0 encoding=UTF-8?
 module rename-to='userConsole'
 !-- Inherit the core Web Toolkit stuff. --
 inherits name='com.google.gwt.user.User' /

 !-- Compilar solamente para Firefox --
 !--set-property name=user.agent value=gecko1_8/set-property --

 inherits name='com.google.gwt.user.theme.standard.Standard' /
 inherits name=com.google.gwt.i18n.I18N /

 !-- Specify the app entry point class. --
 entry-point 
 class='com.santander.bam.comun.userconsole.client.GestionUsers' /


 !-- English language, independent of country --
 extend-property name=locale values=es_ES /
 extend-property name=locale values=en_US /
 extend-property name=locale values=de_DE /

 !-- Specify the application specific style sheet. --
 stylesheet src='UserConsole.css' /

 !-- Specify the paths for translatable code --
 source path='client' /
 source path='client/services' /
 source path='db/bean' /
 /module
 [/code]

 [b]applicationContext.xml:[/b]
 [code=xml]
 beans xmlns=http://www.springframework.org/schema/beans;
 xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xmlns:p=
 http://www.springframework.org/schema/p;
 xmlns:aop=http://www.springframework.org/schema/aop; xmlns:context=
 http://www.springframework.org/schema/context;
 xmlns:jee=http://www.springframework.org/schema/jee; xmlns:tx=
 http://www.springframework.org/schema/tx;
 xmlns:task=http://www.springframework.org/schema/task; xmlns:util=
 http://www.springframework.org/schema/util;
 xsi:schemaLocation=
 http://www.springframework.org/schema/aop 
 http://www.springframework.org/schema/aop/spring-aop-3.0.xsd
 http://www.springframework.org/schema/beans 
 http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
 http://www.springframework.org/schema/context 
 http://www.springframework.org/schema/context/spring-context-3.0.xsd
 http://www.springframework.org/schema/jee 
 http://www.springframework.org/schema/jee/spring-jee-3.0.xsd
 http://www.springframework.org/schema/tx 
 http://www.springframework.org/schema/tx/spring-tx-3.0.xsd
 http://www.springframework.org/schema/task 
 http://www.springframework.org/schema/task/spring-task-3.0.xsd 
 http://www.springframework.org/schema/util 
 http://www.springframework.org/schema/util/spring-util-3.0.xsd;

 !--  Agregado de la consola gwt-spring --

 !-- Activates scanning of @Autowired --
 context:annotation-config / 
 context:component-scan 
 base-package=com.santander.bam.comun.userconsole /

 !--  FIN Agregado de la consola gwt-spring --

 import resource=config.xml /
  util:constant id=VARCHAR static-field=java.sql.Types.VARCHAR /
 
 bean id=transactionManager 
 class=org.springframework.jdbc.datasource.DataSourceTransactionManager
   property name=dataSource ref=myDataSource/
   /bean
  bean id=GestionUserService 
 class=com.santander.bam.comun.userconsole.server.GestionUsersConsultImpl/bean
  bean id=utilDB 
 class=com.santander.bam.comun.userconsole.db.UserConsoleDBUtil
 property name=dao ref=UserConsoleDAO /
 property name=transactionManager ref=transactionManager/
 /bean

Re: NullPoniter when calling the DAO object (@Autowired) - GWT and Spring problem integration

2013-03-05 Thread Thomas Broyer


On Tuesday, March 5, 2013 10:05:28 AM UTC+1, Borja Gonzalez wrote:

 Hi, i have tried to use:

 servlet-mapping
 servlet-namespringGwtRemoteServiceServlet/servlet-name
 url-pattern/GestionUserService/*/url-pattern
 /servlet-mapping

 or

 servlet-mapping
 servlet-namespringGwtRemoteServiceServlet/servlet-name
 url-pattern/userConsole/GestionUserService/*/url-pattern
 /servlet-mapping

 And still the same error. I'll keep looking, but any kind of feedback, 
 help or ideas are really apreciated!


Why did you add /* at the end of the url-mapping?

-- 
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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: NullPoniter when calling the DAO object (@Autowired) - GWT and Spring problem integration

2013-03-05 Thread Borja Gonzalez
I really don´t know... but now i have tried using this:

servlet-mapping
servlet-namespringGwtRemoteServiceServlet/servlet-name
url-pattern/userConsole/GestionUserService/url-pattern
/servlet-mapping

and on my Service:

@RemoteServiceRelativePath(GestionUserService)

And i'm still getting the same error.


El martes, 5 de marzo de 2013 10:10:33 UTC+1, Thomas Broyer escribió:



 On Tuesday, March 5, 2013 10:05:28 AM UTC+1, Borja Gonzalez wrote:

 Hi, i have tried to use:

 servlet-mapping
 servlet-namespringGwtRemoteServiceServlet/servlet-name
 url-pattern/GestionUserService/*/url-pattern
 /servlet-mapping

 or

 servlet-mapping
 servlet-namespringGwtRemoteServiceServlet/servlet-name
 url-pattern/userConsole/GestionUserService/*/url-pattern
 /servlet-mapping

 And still the same error. I'll keep looking, but any kind of feedback, 
 help or ideas are really apreciated!


 Why did you add /* at the end of the url-mapping?


-- 
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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: NullPoniter when calling the DAO object (@Autowired) - GWT and Spring problem integration

2013-03-05 Thread Jens
Following the linked wiki page you should have

servlet-mapping
servlet-namespringGwtRemoteServiceServlet/servlet-name
url-pattern/springGwtServices/*/url-pattern
/servlet-mapping


and

@RemoteServiceRelativePath(springGwtServices/spring bean name)

So in your case probably: 
@RemoteServiceRelativePath(springGwtServices/GestionUserService)

You don't need to map your GestionUserService at all in web.xml, as its 
managed by Spring and not your servlet container. It doesn't even have to 
be a servlet anymore. Its just a Spring bean.

-- J.

-- 
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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: NullPoniter when calling the DAO object (@Autowired) - GWT and Spring problem integration

2013-03-05 Thread Borja Gonzalez
OK, so i finally managed to get it working. This is my solution:

 servlet-mapping
servlet-namespringGwtRemoteServiceServlet/servlet-name
url-patternuserConsole/springGwtServices/*/url-pattern
/servlet-mapping

@RemoteServiceRelativePath(springGwtServices/GestionUserService)

Thanks a lot for everyonw to take the time to help me, and sorry for lack 
of knowledge. This also helped me to find the answer: 
http://code.google.com/p/gwt-uml-designer/source/browse/trunk/GWTUMLDrawer/?r=8

El martes, 5 de marzo de 2013 10:49:48 UTC+1, Jens escribió:

 Following the linked wiki page you should have

 servlet-mapping
 servlet-namespringGwtRemoteServiceServlet/servlet-name
 url-pattern/springGwtServices/*/url-pattern
 /servlet-mapping


 and

 @RemoteServiceRelativePath(springGwtServices/spring bean name)

 So in your case probably: 
 @RemoteServiceRelativePath(springGwtServices/GestionUserService)

 You don't need to map your GestionUserService at all in web.xml, as its 
 managed by Spring and not your servlet container. It doesn't even have to 
 be a servlet anymore. Its just a Spring bean.

 -- J.


-- 
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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: NullPoniter when calling the DAO object (@Autowired) - GWT and Spring problem integration

2013-03-05 Thread Mathieu Lorber
Jens, are you sure of what you're saying ? The GWT services have to be 
servlets AFAIK, and are actually managed by the servlet container in the 
given wiki page.

BTW, I'd *strongly* recommend to remove the spring4gwt dependency and 
understand what it does. That is to say :

@SuppressWarnings(serial)
public class SpringRemoteServiceServlet extends RemoteServiceServlet {
@Override
public void init(ServletConfig config) throws ServletException {
super.init(config);
ApplicationContext context = 
WebApplicationContextUtils.getRequiredWebApplicationContext(getServletContext());
AutowireCapableBeanFactory factory = 
context.getAutowireCapableBeanFactory();
factory.autowireBean(this);
}
}

Your services have to extend SpringRemoteServiceServlet instead of 
RemoteServiceServlet.

That's it. Less than 10 lines of code do not deserve a dependency =)

On Tuesday, March 5, 2013 11:22:27 AM UTC+1, Borja Gonzalez wrote:

 OK, so i finally managed to get it working. This is my solution:

  servlet-mapping
 servlet-namespringGwtRemoteServiceServlet/servlet-name
 url-patternuserConsole/springGwtServices/*/url-pattern
 /servlet-mapping

 @RemoteServiceRelativePath(springGwtServices/GestionUserService)

 Thanks a lot for everyonw to take the time to help me, and sorry for lack 
 of knowledge. This also helped me to find the answer: 
 http://code.google.com/p/gwt-uml-designer/source/browse/trunk/GWTUMLDrawer/?r=8

 El martes, 5 de marzo de 2013 10:49:48 UTC+1, Jens escribió:

 Following the linked wiki page you should have

 servlet-mapping
 servlet-namespringGwtRemoteServiceServlet/servlet-name
 url-pattern/springGwtServices/*/url-pattern
 /servlet-mapping


 and

 @RemoteServiceRelativePath(springGwtServices/spring bean name)

 So in your case probably: 
 @RemoteServiceRelativePath(springGwtServices/GestionUserService)

 You don't need to map your GestionUserService at all in web.xml, as its 
 managed by Spring and not your servlet container. It doesn't even have to 
 be a servlet anymore. Its just a Spring bean.

 -- J.



-- 
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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: NullPoniter when calling the DAO object (@Autowired) - GWT and Spring problem integration

2013-03-05 Thread Jens


 Jens, are you sure of what you're saying ? The GWT services have to be 
 servlets AFAIK, and are actually managed by the servlet container in the 
 given wiki page.


Re-read point 2.) + 3.) of the wiki page. If the wiki page isn't wrong you 
only have to declare a name for your GWT-RPC service implementation 
(@Service). In the example GreetingServiceImpl does not extend anything. It 
just implements the service interface. So its not a servlet.

The only servlet you need in web.xml is the spring integration servlet.

-- J.

-- 
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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: NullPoniter when calling the DAO object (@Autowired) - GWT and Spring problem integration

2013-03-05 Thread Mathieu Lorber


On Tuesday, March 5, 2013 4:33:43 PM UTC+1, Jens wrote:


 The only servlet you need in web.xml is the spring integration servlet.


You're right, i wanted to go too fast... Actually spring4gwt does not use 
the method i talked about. And as you have to write spring beans, it's 
simpler to add services.

But i continue to think it does not deserve a jar dependency =/

I'd like to see a native (aka gwt sdk) mechanism to do this. Does the 
dependency on servlets has a sense ?


 -- J.


-- 
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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




NullPoniter when calling the DAO object (@Autowired) - GWT and Spring problem integration

2013-03-04 Thread Borja Gonzalez
Hi, im writting the code for a console using GWT and Spring integration. I 
have followed GWT tutorial and read some forums about how to use spring 
qith GWT.

I'm at the point that the RPC call is returning null and i can't seem to 
see why. As english is not my native language and i'm pretty new to this, 
I'm just going to put my code here to see if someone can help me with it.


[b]Service:[/b]
[code=java]
@RemoteServiceRelativePath(GestionUserService)
public interface GestionUserService extends RemoteService {
CollectionUsuario dameTablaUsuarios(String entidad);

}
[/code]

[b]Async:[/b]
[code=java]
public interface GestionUserServiceAsync {
void dameTablaUsuarios(String entidad,AsyncCallbackCollectionUsuario 
callback);

}
[/code]

[b]Impl:[/b]
[code=java]
@SuppressWarnings(serial)
@Service(GestionUserService)
public class GestionUsersConsultImpl extends RemoteServiceServlet 
implements GestionUserService {
 @Autowired
UserConsoleDBUtil utilDB;
Logger logger = Logger.getLogger(GestionUsersConsultImpl.class);
 @SuppressWarnings(unchecked)
public CollectionUsuario dameTablaUsuarios(String entidad) {
GWT.log(Log);
logger.info(He llegado al IMPL 
dameTablaUsuarios.===+entidad);
logger.info(UtilDB +utilDB.toString());
return utilDB.getDao().getUsuarios(entidad);
}
}
[/code]

[b]*gwt.xml:[/b]
[code=xml]
?xml version=1.0 encoding=UTF-8?
module rename-to='userConsole'
!-- Inherit the core Web Toolkit stuff. --
inherits name='com.google.gwt.user.User' /

!-- Compilar solamente para Firefox --
!--set-property name=user.agent value=gecko1_8/set-property --

inherits name='com.google.gwt.user.theme.standard.Standard' /
inherits name=com.google.gwt.i18n.I18N /

!-- Specify the app entry point class. --
entry-point 
class='com.santander.bam.comun.userconsole.client.GestionUsers' /


!-- English language, independent of country --
extend-property name=locale values=es_ES /
extend-property name=locale values=en_US /
extend-property name=locale values=de_DE /

!-- Specify the application specific style sheet. --
stylesheet src='UserConsole.css' /

!-- Specify the paths for translatable code --
source path='client' /
source path='client/services' /
source path='db/bean' /
/module
[/code]

[b]applicationContext.xml:[/b]
[code=xml]
beans xmlns=http://www.springframework.org/schema/beans;
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; 
xmlns:p=http://www.springframework.org/schema/p;
xmlns:aop=http://www.springframework.org/schema/aop; 
xmlns:context=http://www.springframework.org/schema/context;
xmlns:jee=http://www.springframework.org/schema/jee; 
xmlns:tx=http://www.springframework.org/schema/tx;
xmlns:task=http://www.springframework.org/schema/task; 
xmlns:util=http://www.springframework.org/schema/util;
xsi:schemaLocation=
http://www.springframework.org/schema/aop 
http://www.springframework.org/schema/aop/spring-aop-3.0.xsd
http://www.springframework.org/schema/beans 
http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
http://www.springframework.org/schema/context 
http://www.springframework.org/schema/context/spring-context-3.0.xsd
http://www.springframework.org/schema/jee 
http://www.springframework.org/schema/jee/spring-jee-3.0.xsd
http://www.springframework.org/schema/tx 
http://www.springframework.org/schema/tx/spring-tx-3.0.xsd
http://www.springframework.org/schema/task 
http://www.springframework.org/schema/task/spring-task-3.0.xsd 
http://www.springframework.org/schema/util 
http://www.springframework.org/schema/util/spring-util-3.0.xsd;

!--  Agregado de la consola gwt-spring --

!-- Activates scanning of @Autowired --
context:annotation-config / 
context:component-scan base-package=com.santander.bam.comun.userconsole 
/

!--  FIN Agregado de la consola gwt-spring --

import resource=config.xml /
 util:constant id=VARCHAR static-field=java.sql.Types.VARCHAR /

bean id=transactionManager 
class=org.springframework.jdbc.datasource.DataSourceTransactionManager
  property name=dataSource ref=myDataSource/
  /bean
 bean id=GestionUserService 
class=com.santander.bam.comun.userconsole.server.GestionUsersConsultImpl/bean
 bean id=utilDB 
class=com.santander.bam.comun.userconsole.db.UserConsoleDBUtil
property name=dao ref=UserConsoleDAO /
property name=transactionManager ref=transactionManager/
/bean
 
/beans[/code]

[b]config.xml[/b]
[code=xml]beans xmlns=http://www.springframework.org/schema/beans;
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; 
xmlns:p=http://www.springframework.org/schema/p;
xmlns:aop=http://www.springframework.org/schema/aop; 
xmlns:context=http://www.springframework.org/schema/context;
xmlns:jee=http://www.springframework.org/schema/jee; 
xmlns:tx=http://www.springframework.org/schema/tx;
xmlns:task=http://www.springframework.org/schema/task; 
xmlns:util=http://www.springframework.org/schema/util;
xsi:schemaLocation=
http://www.springframework.org/schema/aop 
http://www.springframework.org/schema/aop/spring-aop-3.0.xsd
http

Re: NullPoniter when calling the DAO object (@Autowired) - GWT and Spring problem integration

2013-03-04 Thread Jens
Its not a GWT issue. You have either spring4gwt or spring itself 
misconfigured as it seems like that utilDb is null and thus @Autowired 
simply does not work.

You should start 
re-reading http://code.google.com/p/spring4gwt/wiki/SimpleRPCExample and 
make sure that your config is correct. I would guess your servlet mapping 
is wrong.

-- J.

-- 
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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: NullPoniter when calling the DAO object (@Autowired) - GWT and Spring problem integration

2013-03-04 Thread Thomas Broyer


On Monday, March 4, 2013 5:48:12 PM UTC+1, Borja Gonzalez wrote:

 Hi, im writting the code for a console using GWT and Spring integration. I 
 have followed GWT tutorial and read some forums about how to use spring 
 qith GWT.

 I'm at the point that the RPC call is returning null and i can't seem to 
 see why. As english is not my native language and i'm pretty new to this, 
 I'm just going to put my code here to see if someone can help me with it.


 [b]Service:[/b]
 [code=java]
 @RemoteServiceRelativePath(GestionUserService)
 public interface GestionUserService extends RemoteService {
 CollectionUsuario dameTablaUsuarios(String entidad);

 }
 [/code]

 [b]Async:[/b]
 [code=java]
 public interface GestionUserServiceAsync {
 void dameTablaUsuarios(String entidad,AsyncCallbackCollectionUsuario 
 callback);

 }
 [/code]

 [b]Impl:[/b]
 [code=java]
 @SuppressWarnings(serial)
 @Service(GestionUserService)
 public class GestionUsersConsultImpl extends RemoteServiceServlet 
 implements GestionUserService {
  @Autowired
 UserConsoleDBUtil utilDB;
 Logger logger = Logger.getLogger(GestionUsersConsultImpl.class);
  @SuppressWarnings(unchecked)
 public CollectionUsuario dameTablaUsuarios(String entidad) {
 GWT.log(Log);
 logger.info(He llegado al IMPL 
 dameTablaUsuarios.===+entidad);
 logger.info(UtilDB +utilDB.toString());
 return utilDB.getDao().getUsuarios(entidad);
 }
 }
 [/code]

 [b]*gwt.xml:[/b]
 [code=xml]
 ?xml version=1.0 encoding=UTF-8?
 module rename-to='userConsole'
 !-- Inherit the core Web Toolkit stuff. --
 inherits name='com.google.gwt.user.User' /

 !-- Compilar solamente para Firefox --
 !--set-property name=user.agent value=gecko1_8/set-property --

 inherits name='com.google.gwt.user.theme.standard.Standard' /
 inherits name=com.google.gwt.i18n.I18N /

 !-- Specify the app entry point class. --
 entry-point 
 class='com.santander.bam.comun.userconsole.client.GestionUsers' /


 !-- English language, independent of country --
 extend-property name=locale values=es_ES /
 extend-property name=locale values=en_US /
 extend-property name=locale values=de_DE /

 !-- Specify the application specific style sheet. --
 stylesheet src='UserConsole.css' /

 !-- Specify the paths for translatable code --
 source path='client' /
 source path='client/services' /
 source path='db/bean' /
 /module
 [/code]

 [b]applicationContext.xml:[/b]
 [code=xml]
 beans xmlns=http://www.springframework.org/schema/beans;
 xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xmlns:p=
 http://www.springframework.org/schema/p;
 xmlns:aop=http://www.springframework.org/schema/aop; xmlns:context=
 http://www.springframework.org/schema/context;
 xmlns:jee=http://www.springframework.org/schema/jee; xmlns:tx=
 http://www.springframework.org/schema/tx;
 xmlns:task=http://www.springframework.org/schema/task; xmlns:util=
 http://www.springframework.org/schema/util;
 xsi:schemaLocation=
 http://www.springframework.org/schema/aop 
 http://www.springframework.org/schema/aop/spring-aop-3.0.xsd
 http://www.springframework.org/schema/beans 
 http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
 http://www.springframework.org/schema/context 
 http://www.springframework.org/schema/context/spring-context-3.0.xsd
 http://www.springframework.org/schema/jee 
 http://www.springframework.org/schema/jee/spring-jee-3.0.xsd
 http://www.springframework.org/schema/tx 
 http://www.springframework.org/schema/tx/spring-tx-3.0.xsd
 http://www.springframework.org/schema/task 
 http://www.springframework.org/schema/task/spring-task-3.0.xsd 
 http://www.springframework.org/schema/util 
 http://www.springframework.org/schema/util/spring-util-3.0.xsd;

 !--  Agregado de la consola gwt-spring --

 !-- Activates scanning of @Autowired --
 context:annotation-config / 
 context:component-scan base-package=com.santander.bam.comun.userconsole 
 /

 !--  FIN Agregado de la consola gwt-spring --

 import resource=config.xml /
  util:constant id=VARCHAR static-field=java.sql.Types.VARCHAR /
 
 bean id=transactionManager 
 class=org.springframework.jdbc.datasource.DataSourceTransactionManager
   property name=dataSource ref=myDataSource/
   /bean
  bean id=GestionUserService 
 class=com.santander.bam.comun.userconsole.server.GestionUsersConsultImpl/bean
  bean id=utilDB 
 class=com.santander.bam.comun.userconsole.db.UserConsoleDBUtil
 property name=dao ref=UserConsoleDAO /
 property name=transactionManager ref=transactionManager/
 /bean
  
 /beans[/code]

 [b]config.xml[/b]
 [code=xml]beans xmlns=http://www.springframework.org/schema/beans;
 xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xmlns:p=
 http://www.springframework.org/schema/p;
 xmlns:aop=http://www.springframework.org/schema/aop; xmlns:context=
 http://www.springframework.org/schema/context;
 xmlns:jee=http://www.springframework.org/schema/jee; xmlns:tx=
 http://www.springframework.org/schema/tx;
 xmlns:task=http://www.springframework.org/schema/task

Re: GWT HIBERNATE SPRING MYSQL Example

2012-09-25 Thread domenico cimadoro
hello

I ve the same problem ,you found something of interesting?

Thanks

Domenico

Il giorno mercoledì 27 aprile 2011 10:25:32 UTC+2, junaidp ha scritto:

 Hi 
 I am looking for some example / tutorial for GWT , HIBERNATE , SPRING , 
 MYSQL Integration
 I've been looking on google for that but no success ,
 Any help would be appreciated..
 thanks 
 junaid


-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/JcOXARd_TOwJ.
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 with Spring Webflow

2012-07-19 Thread Inko37
Hey,

is it possible to use GWT and Spring Webflow? I don't know if there are any 
problems with the asynchronous calls. If it will work, is there any ready 
solution for it? Or is there any other solution to manage the webflow with 
GWT?

best regards,
Inko

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/llbZpOcJlrIJ.
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 with Spring Webflow

2012-07-19 Thread Natanael Maldonado
May be this helps you:

http://www.springbyexample.org/examples/simple-gwt-spring-webapp.html

2012/7/18 Inko37 inkognito133...@googlemail.com

 Hey,

 is it possible to use GWT and Spring Webflow? I don't know if there are
 any problems with the asynchronous calls. If it will work, is there any
 ready solution for it? Or is there any other solution to manage the webflow
 with GWT?

 best regards,
 Inko

 --
 You received this message because you are subscribed to the Google Groups
 Google Web Toolkit group.
 To view this discussion on the web visit
 https://groups.google.com/d/msg/google-web-toolkit/-/llbZpOcJlrIJ.
 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.




-- 



Atte:
Natanael Maldonado

-- 
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 with Spring 3.0

2012-01-30 Thread Subhrajyoti Moitra
http://pgt.de/2009/07/17/non-invasive-gwt-and-spring-integration-reloaded/

i am using this successfully with Spring 3.1.0.Release.
HTH.

Subhro.

On Mon, Jan 30, 2012 at 11:08 AM, Umesh upadhyay
upadhyay.um...@gmail.comwrote:

 I am new to GWT and have to  build a new GWT app using the  existing
 Spring application.
 How to integrate GWT with Spring3.0. Is there any sample example/tutorial
 or any maven arcehtype to start off.

 --


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


-- 
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 with Spring 3.0

2012-01-29 Thread Umesh upadhyay
I am new to GWT and have to  build a new GWT app using the  existing Spring
application.
How to integrate GWT with Spring3.0. Is there any sample example/tutorial
or any maven arcehtype to start off.

--

-- 
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 with spring and hibernate

2011-10-08 Thread saneera gunasekara
http://saneera-yapa.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 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



GWT 2.4 Spring Integration Using RequestFactory

2011-09-14 Thread POODevelopper
I'm currently Working on a GWT 2.4 / Spring 3 application and want to
use the RequestFactory API to communicate with Spring services.

I searched and find that to integrate GWT integrate with Spring
beginning from 2.4 you just need to create a custom ServiceLocator
that expose your Spring beans.

public class SpringServiceLocator implements ServiceLocator {

public Object getInstance(Class? clazz) {
ApplicationContext context =
WebApplicationContextUtils.getWebApplicationContext(
RequestFactoryServlet.getThreadLocalServletContext());
return context.getBean(clazz);
}

}

And you need to configure you RequestFactoryServlet as mentioned on
the Google documentation.

I followed theses steps but my when GWT client make a Request to the
Back-end i receive this Exception :

  Sep 13, 2011 7:42:34 AM
com.google.web.bindery.requestfactory.server.RequestFactoryServlet
doPost
SEVERE: Unexpected error
java.lang.ArrayIndexOutOfBoundsException: 1
at
com.google.web.bindery.requestfactory.server.SimpleRequestProcessor.processInvocationMessages(SimpleRequestProcessor.java:
425)
at
com.google.web.bindery.requestfactory.server.SimpleRequestProcessor.process(SimpleRequestProcessor.java:
217)
at
com.google.web.bindery.requestfactory.server.SimpleRequestProcessor.process(SimpleRequestProcessor.java:
125)
at
com.google.web.bindery.requestfactory.server.RequestFactoryServlet.doPost(RequestFactoryServlet.java:
118)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
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 /gwtRequest (127.0.0.1) 1420 bytes

Did I miss something on the configuration ??

-- 
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 2.4 Spring Integration Using RequestFactory

2011-09-14 Thread Miroslav Genov
I made similar thing with Guice. You can take a look at: 
https://github.com/mgenov/injecting-request-factory

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/tPvgp_pwg2EJ.
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 2.4 Spring Integration Using RequestFactory

2011-09-14 Thread Kevin Jordan
From that, it sounds like you may have a 2.3.0 version of
RequestFactory on there too if you are indeed trying to use 2.4.0.
The line in question in the top of the stack trace makes no sense for
the 2.4.0 source, but in the 2.3.0 source it does:
Method contextMethod = service.resolveRequestContextMethod(
operation[0], operation[1]);

which in 2.4.0 became:
Method contextMethod = service.resolveRequestContextMethod(operation);

On Sep 14, 2:50 am, POODevelopper imra...@gmail.com wrote:
 I'm currently Working on a GWT 2.4 / Spring 3 application and want to
 use the RequestFactory API to communicate with Spring services.

 I searched and find that to integrate GWT integrate with Spring
 beginning from 2.4 you just need to create a custom ServiceLocator
 that expose your Spring beans.

 public class SpringServiceLocator implements ServiceLocator {

 public Object getInstance(Class? clazz) {
     ApplicationContext context =
 WebApplicationContextUtils.getWebApplicationContext(
             RequestFactoryServlet.getThreadLocalServletContext());
     return context.getBean(clazz);

 }
 }

 And you need to configure you RequestFactoryServlet as mentioned on
 the Google documentation.

 I followed theses steps but my when GWT client make a Request to the
 Back-end i receive this Exception :

   Sep 13, 2011 7:42:34 AM
 com.google.web.bindery.requestfactory.server.RequestFactoryServlet
 doPost
 SEVERE: Unexpected error
 java.lang.ArrayIndexOutOfBoundsException: 1
     at
 com.google.web.bindery.requestfactory.server.SimpleRequestProcessor.process 
 InvocationMessages(SimpleRequestProcessor.java:
 425)
     at
 com.google.web.bindery.requestfactory.server.SimpleRequestProcessor.process 
 (SimpleRequestProcessor.java:
 217)
     at
 com.google.web.bindery.requestfactory.server.SimpleRequestProcessor.process 
 (SimpleRequestProcessor.java:
 125)
     at
 com.google.web.bindery.requestfactory.server.RequestFactoryServlet.doPost(R 
 equestFactoryServlet.java:
 118)
     at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
     at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
     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 /gwtRequest (127.0.0.1) 1420 bytes

 Did I miss something on the configuration ??

-- 
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 2.4 Spring Integration Using RequestFactory

2011-09-14 Thread POODevelopper
I Have just gwt 2.4 Libraries on my classpath? does Gwt 2.4 have a
special JAR where there is the RequestFactory dependencies ??

On Sep 14, 12:29 pm, Kevin Jordan ke...@kjordan.net wrote:
 From that, it sounds like you may have a 2.3.0 version of
 RequestFactory on there too if you are indeed trying to use 2.4.0.
 The line in question in the top of the stack trace makes no sense for
 the 2.4.0 source, but in the 2.3.0 source it does:
 Method contextMethod = service.resolveRequestContextMethod(
             operation[0], operation[1]);

 which in 2.4.0 became:
 Method contextMethod = service.resolveRequestContextMethod(operation);

 On Sep 14, 2:50 am, POODevelopper imra...@gmail.com wrote:







  I'm currently Working on a GWT 2.4 / Spring 3 application and want to
  use the RequestFactory API to communicate with Spring services.

  I searched and find that to integrate GWT integrate with Spring
  beginning from 2.4 you just need to create a custom ServiceLocator
  that expose your Spring beans.

  public class SpringServiceLocator implements ServiceLocator {

  public Object getInstance(Class? clazz) {
      ApplicationContext context =
  WebApplicationContextUtils.getWebApplicationContext(
              RequestFactoryServlet.getThreadLocalServletContext());
      return context.getBean(clazz);

  }
  }

  And you need to configure you RequestFactoryServlet as mentioned on
  the Google documentation.

  I followed theses steps but my when GWT client make a Request to the
  Back-end i receive this Exception :

    Sep 13, 2011 7:42:34 AM
  com.google.web.bindery.requestfactory.server.RequestFactoryServlet
  doPost
  SEVERE: Unexpected error
  java.lang.ArrayIndexOutOfBoundsException: 1
      at
  com.google.web.bindery.requestfactory.server.SimpleRequestProcessor.process 
  InvocationMessages(SimpleRequestProcessor.java:
  425)
      at
  com.google.web.bindery.requestfactory.server.SimpleRequestProcessor.process 
  (SimpleRequestProcessor.java:
  217)
      at
  com.google.web.bindery.requestfactory.server.SimpleRequestProcessor.process 
  (SimpleRequestProcessor.java:
  125)
      at
  com.google.web.bindery.requestfactory.server.RequestFactoryServlet.doPost(R 
  equestFactoryServlet.java:
  118)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
      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 /gwtRequest (127.0.0.1) 1420 bytes

  Did I miss something on the configuration ??

-- 
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 2.4 Spring Integration Using RequestFactory

2011-09-14 Thread POODevelopper
You are right, It was because on the build Lib Folder there was GWT
2.3 and 2.4 libraries, I just removed the 2.3 and everything worked.
Thank You.

On Sep 14, 12:29 pm, Kevin Jordan ke...@kjordan.net wrote:
 From that, it sounds like you may have a 2.3.0 version of
 RequestFactory on there too if you are indeed trying to use 2.4.0.
 The line in question in the top of the stack trace makes no sense for
 the 2.4.0 source, but in the 2.3.0 source it does:
 Method contextMethod = service.resolveRequestContextMethod(
             operation[0], operation[1]);

 which in 2.4.0 became:
 Method contextMethod = service.resolveRequestContextMethod(operation);

 On Sep 14, 2:50 am, POODevelopper imra...@gmail.com wrote:







  I'm currently Working on a GWT 2.4 / Spring 3 application and want to
  use the RequestFactory API to communicate with Spring services.

  I searched and find that to integrate GWT integrate with Spring
  beginning from 2.4 you just need to create a custom ServiceLocator
  that expose your Spring beans.

  public class SpringServiceLocator implements ServiceLocator {

  public Object getInstance(Class? clazz) {
      ApplicationContext context =
  WebApplicationContextUtils.getWebApplicationContext(
              RequestFactoryServlet.getThreadLocalServletContext());
      return context.getBean(clazz);

  }
  }

  And you need to configure you RequestFactoryServlet as mentioned on
  the Google documentation.

  I followed theses steps but my when GWT client make a Request to the
  Back-end i receive this Exception :

    Sep 13, 2011 7:42:34 AM
  com.google.web.bindery.requestfactory.server.RequestFactoryServlet
  doPost
  SEVERE: Unexpected error
  java.lang.ArrayIndexOutOfBoundsException: 1
      at
  com.google.web.bindery.requestfactory.server.SimpleRequestProcessor.process 
  InvocationMessages(SimpleRequestProcessor.java:
  425)
      at
  com.google.web.bindery.requestfactory.server.SimpleRequestProcessor.process 
  (SimpleRequestProcessor.java:
  217)
      at
  com.google.web.bindery.requestfactory.server.SimpleRequestProcessor.process 
  (SimpleRequestProcessor.java:
  125)
      at
  com.google.web.bindery.requestfactory.server.RequestFactoryServlet.doPost(R 
  equestFactoryServlet.java:
  118)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
      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 /gwtRequest (127.0.0.1) 1420 bytes

  Did I miss something on the configuration ??

-- 
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 2.3 + spring 2 + maven 2

2011-09-02 Thread Mike Chai
Thanks for the responses. To clarify, I want to use GWT to build an
interface for an existing Java backend that is using Spring.
Integration using the STS isn't needed but I'll probably do it
anyways. Is there a way to do this without using hackish methods?

On Aug 18, 6:31 am, Giuseppe La Scaleia
giuseppe.lascal...@geosdi.org wrote:
 I don't use Windows i use only Ubuntu or Mac.
 So you say to deploy the war under tomcat??
 Regards Giuseppe

 2011/8/18 Juan Pablo Gardella gardellajuanpa...@gmail.com







  Nop. It's works in dev mode inside eclipse. I don't use mvn jetty:run so
  don't make run in this manner. Yes is slow in dev mode. If you use Windows
  with IE is the fastest browser in dev mode.

  Juan

  2011/8/18 Giuseppe La Scaleia giuseppe.lascal...@geosdi.org

  With mvn jetty:run doesn't work. In hosted mode is very slow.
  Regards Giuseppe

  2011/8/18 Juan Pablo Gardella gardellajuanpa...@gmail.com

  Seehttps://bitbucket.org/gardellajuanpablo/gwt-sample/wiki/Home.

  2011/8/17 Daniel Guggi daniel.gu...@gmail.com

  @spring you may have a look here (requestfactory + spring3 integration):

 http://jsinghfoss.wordpress.com/2011/08/10/gwt-2-2-0-requestfactory-s...

  here an example pom (i use maven 3)

  ?xml version=1.0 encoding=UTF-8?
  project xmlns=http://maven.apache.org/POM/4.0.0; xmlns:xsi=
 http://www.w3.org/2001/XMLSchema-instance;
      xsi:schemaLocation=http://maven.apache.org/POM/4.0.0
 http://maven.apache.org/maven-v4_0_0.xsd;

      !-- POM file generated with GWT webAppCreator --
      modelVersion4.0.0/modelVersion
      groupIdgwtapp/groupId
      artifactIdGwtApp/artifactId
      packagingwar/packaging
      version1.0-SNAPSHOT/version
      namegwtapp.GwtApp/name

      properties
          !-- Convenience property to set the GWT version --
          gwtVersion2.3.0/gwtVersion
          !-- GWT needs at least java 1.5 --
          maven.compiler.source1.6/maven.compiler.source
          maven.compiler.target1.6/maven.compiler.target
      /properties

      dependencies
          dependency
              groupIdcom.google.gwt/groupId
              artifactIdgwt-servlet/artifactId
              version${gwtVersion}/version
              scoperuntime/scope
          /dependency
          dependency
              groupIdcom.google.gwt/groupId
              artifactIdgwt-user/artifactId
              version${gwtVersion}/version
              scopeprovided/scope
          /dependency
          dependency
              groupIdcom.google.gwt/groupId
              artifactIdgwt-dev/artifactId
              version${gwtVersion}/version
              scopetest/scope
          /dependency
          dependency
              groupIdcom.google.gwt.inject/groupId
              artifactIdgin/artifactId
              version1.5.0/version
          /dependency
          dependency
              groupIdjunit/groupId
              artifactIdjunit/artifactId
              version4.8.1/version
              scopetest/scope
          /dependency
          dependency
              groupIdjavax.validation/groupId
              artifactIdvalidation-api/artifactId
              version1.0.0.GA/version
              scopeprovided/scope
          /dependency
          dependency
              groupIdjavax.validation/groupId
              artifactIdvalidation-api/artifactId
              version1.0.0.GA/version
              classifiersources/classifier
              scopeprovided/scope
          /dependency
      /dependencies

      build
          !-- Generate compiled stuff in the folder used for developing
  mode --
          outputDirectorytarget/www/WEB-INF/classes/outputDirectory

          plugins

              !-- GWT Maven Plugin --
              plugin
                  groupIdorg.codehaus.mojo/groupId
                  artifactIdgwt-maven-plugin/artifactId
                  version2.2.0/version
                  dependencies
                      dependency
                          groupIdcom.google.gwt/groupId
                          artifactIdgwt-user/artifactId
                          version${gwtVersion}/version
                      /dependency
                      dependency
                          groupIdcom.google.gwt/groupId
                          artifactIdgwt-dev/artifactId
                          version${gwtVersion}/version
                      /dependency
                      dependency
                          groupIdcom.google.gwt/groupId
                          artifactIdgwt-servlet/artifactId
                          version${gwtVersion}/version
                      /dependency
                  /dependencies
                  !-- JS is only needed in the package phase, this speeds
  up testing --
                  executions
                      execution
                          phaseprepare-package/phase
                          goals
                              goalcompile/goal
                          /goals
                      

Re: gwt 2.3 + spring 2 + maven 2

2011-08-18 Thread Juan Pablo Gardella
 additionalClasspathElements

 additionalClasspathElement${project.build.sourceDirectory}/additionalClasspathElement

 additionalClasspathElement${project.build.testSourceDirectory}/additionalClasspathElement
 /additionalClasspathElements
 useManifestOnlyJarfalse/useManifestOnlyJar
 forkModealways/forkMode

 !-- Folder for generated testing stuff --
 systemProperties
 property
 namegwt.args/name
 value-out target/www/value
 /property
 /systemProperties
 /configuration
 /plugin

 !-- Copy static web files before executing gwt:run --
 plugin
 artifactIdmaven-resources-plugin/artifactId
 version2.4.2/version
 executions
 execution
 phasecompile/phase
 goals
 goalcopy-resources/goal
 /goals
 configuration
 outputDirectorytarget/www/outputDirectory
 resources
 resource
 directorysrc/main/webapp/directory
 /resource
 /resources
 /configuration
 /execution
 /executions
 /plugin

 !-- Delete gwt generated stuff --
 plugin
 artifactIdmaven-clean-plugin/artifactId
 version2.3/version
 configuration
 filesets
 fileset
 directorysrc/main/webapp/gwtapp/directory
 /fileset
 fileset

 directorysrc/main/webapp/WEB-INF/classes/directory
 /fileset
 fileset
 directorytomcat/directory
 /fileset
 fileset
 directorywww-test/directory
 /fileset
 fileset
 directory.gwt-tmp/directory
 /fileset
 /filesets
 /configuration
 /plugin

 plugin
 artifactIdmaven-eclipse-plugin/artifactId
 version2.7/version  !-- Note 2.8 does not work with
 AspectJ aspect path --
 configuration
 downloadSourcestrue/downloadSources
 downloadJavadocsfalse/downloadJavadocs
 wtpversion2.0/wtpversion
 additionalBuildcommands
 buildCommand

 namecom.google.gwt.eclipse.core.gwtProjectValidator/name
 /buildCommand
 /additionalBuildcommands
 additionalProjectnatures

 projectnaturecom.google.gwt.eclipse.core.gwtNature/projectnature
 /additionalProjectnatures
 /configuration
 /plugin

 /plugins
 /build
 /project



 On Thu, Aug 18, 2011 at 12:32 AM, Mike Chai m...@weird.name wrote:

 I'm new developing web applications with Java, so maybe this is
 implicitly known in the community but upon trying to search for
 integration for these 3 technologies I couldn't find a very
 straightforward answer. Some information is dated back to 2008ish
 where some people created glue to integrate gwt and spring, but I
 found some news on spring saying something about google integration
 into spring.

 Some of the tools also seem to be depreciated and redirect the user to
 codehaus' maven plugin, but on first look I can't find a download on
 it and it just links to google's eclipse plugin.

 tl; dr: what's the current standard for integrating these 3
 technologies?

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


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


-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group

Re: gwt 2.3 + spring 2 + maven 2

2011-08-18 Thread Giuseppe La Scaleia
 artifactIdmaven-surefire-plugin/artifactId
 version2.5/version
 configuration
 additionalClasspathElements

 additionalClasspathElement${project.build.sourceDirectory}/additionalClasspathElement

 additionalClasspathElement${project.build.testSourceDirectory}/additionalClasspathElement
 /additionalClasspathElements
 useManifestOnlyJarfalse/useManifestOnlyJar
 forkModealways/forkMode

 !-- Folder for generated testing stuff --
 systemProperties
 property
 namegwt.args/name
 value-out target/www/value
 /property
 /systemProperties
 /configuration
 /plugin

 !-- Copy static web files before executing gwt:run --
 plugin
 artifactIdmaven-resources-plugin/artifactId
 version2.4.2/version
 executions
 execution
 phasecompile/phase
 goals
 goalcopy-resources/goal
 /goals
 configuration
 outputDirectorytarget/www/outputDirectory
 resources
 resource
 directorysrc/main/webapp/directory
 /resource
 /resources
 /configuration
 /execution
 /executions
 /plugin

 !-- Delete gwt generated stuff --
 plugin
 artifactIdmaven-clean-plugin/artifactId
 version2.3/version
 configuration
 filesets
 fileset
 directorysrc/main/webapp/gwtapp/directory
 /fileset
 fileset

 directorysrc/main/webapp/WEB-INF/classes/directory
 /fileset
 fileset
 directorytomcat/directory
 /fileset
 fileset
 directorywww-test/directory
 /fileset
 fileset
 directory.gwt-tmp/directory
 /fileset
 /filesets
 /configuration
 /plugin

 plugin
 artifactIdmaven-eclipse-plugin/artifactId
 version2.7/version  !-- Note 2.8 does not work with
 AspectJ aspect path --
 configuration
 downloadSourcestrue/downloadSources
 downloadJavadocsfalse/downloadJavadocs
 wtpversion2.0/wtpversion
 additionalBuildcommands
 buildCommand

 namecom.google.gwt.eclipse.core.gwtProjectValidator/name
 /buildCommand
 /additionalBuildcommands
 additionalProjectnatures

 projectnaturecom.google.gwt.eclipse.core.gwtNature/projectnature
 /additionalProjectnatures
 /configuration
 /plugin

 /plugins
 /build
 /project



 On Thu, Aug 18, 2011 at 12:32 AM, Mike Chai m...@weird.name wrote:

 I'm new developing web applications with Java, so maybe this is
 implicitly known in the community but upon trying to search for
 integration for these 3 technologies I couldn't find a very
 straightforward answer. Some information is dated back to 2008ish
 where some people created glue to integrate gwt and spring, but I
 found some news on spring saying something about google integration
 into spring.

 Some of the tools also seem to be depreciated and redirect the user to
 codehaus' maven plugin, but on first look I can't find a download on
 it and it just links to google's eclipse plugin.

 tl; dr: what's the current standard for integrating these 3
 technologies?

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


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

Re: gwt 2.3 + spring 2 + maven 2

2011-08-18 Thread Juan Pablo Gardella
) (gwt:compile) --
 compileReporttrue/compileReport
 /configuration
 /plugin

 !-- Add source folders to test classpath in order to run
 gwt-tests as
 normal junit-tests --
 plugin
 artifactIdmaven-surefire-plugin/artifactId
 version2.5/version
 configuration
 additionalClasspathElements

 additionalClasspathElement${project.build.sourceDirectory}/additionalClasspathElement

 additionalClasspathElement${project.build.testSourceDirectory}/additionalClasspathElement
 /additionalClasspathElements
 useManifestOnlyJarfalse/useManifestOnlyJar
 forkModealways/forkMode

 !-- Folder for generated testing stuff --
 systemProperties
 property
 namegwt.args/name
 value-out target/www/value
 /property
 /systemProperties
 /configuration
 /plugin

 !-- Copy static web files before executing gwt:run --
 plugin
 artifactIdmaven-resources-plugin/artifactId
 version2.4.2/version
 executions
 execution
 phasecompile/phase
 goals
 goalcopy-resources/goal
 /goals
 configuration
 outputDirectorytarget/www/outputDirectory
 resources
 resource

 directorysrc/main/webapp/directory
 /resource
 /resources
 /configuration
 /execution
 /executions
 /plugin

 !-- Delete gwt generated stuff --
 plugin
 artifactIdmaven-clean-plugin/artifactId
 version2.3/version
 configuration
 filesets
 fileset
 directorysrc/main/webapp/gwtapp/directory
 /fileset
 fileset

 directorysrc/main/webapp/WEB-INF/classes/directory
 /fileset
 fileset
 directorytomcat/directory
 /fileset
 fileset
 directorywww-test/directory
 /fileset
 fileset
 directory.gwt-tmp/directory
 /fileset
 /filesets
 /configuration
 /plugin

 plugin
 artifactIdmaven-eclipse-plugin/artifactId
 version2.7/version  !-- Note 2.8 does not work with
 AspectJ aspect path --
 configuration
 downloadSourcestrue/downloadSources
 downloadJavadocsfalse/downloadJavadocs
 wtpversion2.0/wtpversion
 additionalBuildcommands
 buildCommand

 namecom.google.gwt.eclipse.core.gwtProjectValidator/name
 /buildCommand
 /additionalBuildcommands
 additionalProjectnatures

 projectnaturecom.google.gwt.eclipse.core.gwtNature/projectnature
 /additionalProjectnatures
 /configuration
 /plugin

 /plugins
 /build
 /project



 On Thu, Aug 18, 2011 at 12:32 AM, Mike Chai m...@weird.name wrote:

 I'm new developing web applications with Java, so maybe this is
 implicitly known in the community but upon trying to search for
 integration for these 3 technologies I couldn't find a very
 straightforward answer. Some information is dated back to 2008ish
 where some people created glue to integrate gwt and spring, but I
 found some news on spring saying something about google integration
 into spring.

 Some of the tools also seem to be depreciated and redirect the user to
 codehaus' maven plugin, but on first look I can't find a download on
 it and it just links to google's eclipse plugin.

 tl; dr: what's the current standard for integrating these 3
 technologies?

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


  --
 You received this message because you are subscribed to the Google Groups
 Google Web Toolkit group

Re: gwt 2.3 + spring 2 + maven 2

2011-08-18 Thread Juan Pablo Gardella
) (gwt:compile) --
 compileReporttrue/compileReport
 /configuration
 /plugin

 !-- Add source folders to test classpath in order to run
 gwt-tests as
 normal junit-tests --
 plugin
 artifactIdmaven-surefire-plugin/artifactId
 version2.5/version
 configuration
 additionalClasspathElements

 additionalClasspathElement${project.build.sourceDirectory}/additionalClasspathElement

 additionalClasspathElement${project.build.testSourceDirectory}/additionalClasspathElement
 /additionalClasspathElements
 useManifestOnlyJarfalse/useManifestOnlyJar
 forkModealways/forkMode

 !-- Folder for generated testing stuff --
 systemProperties
 property
 namegwt.args/name
 value-out target/www/value
 /property
 /systemProperties
 /configuration
 /plugin

 !-- Copy static web files before executing gwt:run --
 plugin
 artifactIdmaven-resources-plugin/artifactId
 version2.4.2/version
 executions
 execution
 phasecompile/phase
 goals
 goalcopy-resources/goal
 /goals
 configuration
 outputDirectorytarget/www/outputDirectory
 resources
 resource

 directorysrc/main/webapp/directory
 /resource
 /resources
 /configuration
 /execution
 /executions
 /plugin

 !-- Delete gwt generated stuff --
 plugin
 artifactIdmaven-clean-plugin/artifactId
 version2.3/version
 configuration
 filesets
 fileset
 directorysrc/main/webapp/gwtapp/directory
 /fileset
 fileset

 directorysrc/main/webapp/WEB-INF/classes/directory
 /fileset
 fileset
 directorytomcat/directory
 /fileset
 fileset
 directorywww-test/directory
 /fileset
 fileset
 directory.gwt-tmp/directory
 /fileset
 /filesets
 /configuration
 /plugin

 plugin
 artifactIdmaven-eclipse-plugin/artifactId
 version2.7/version  !-- Note 2.8 does not work with
 AspectJ aspect path --
 configuration
 downloadSourcestrue/downloadSources
 downloadJavadocsfalse/downloadJavadocs
 wtpversion2.0/wtpversion
 additionalBuildcommands
 buildCommand

 namecom.google.gwt.eclipse.core.gwtProjectValidator/name
 /buildCommand
 /additionalBuildcommands
 additionalProjectnatures

 projectnaturecom.google.gwt.eclipse.core.gwtNature/projectnature
 /additionalProjectnatures
 /configuration
 /plugin

 /plugins
 /build
 /project



 On Thu, Aug 18, 2011 at 12:32 AM, Mike Chai m...@weird.name wrote:

 I'm new developing web applications with Java, so maybe this is
 implicitly known in the community but upon trying to search for
 integration for these 3 technologies I couldn't find a very
 straightforward answer. Some information is dated back to 2008ish
 where some people created glue to integrate gwt and spring, but I
 found some news on spring saying something about google integration
 into spring.

 Some of the tools also seem to be depreciated and redirect the user to
 codehaus' maven plugin, but on first look I can't find a download on
 it and it just links to google's eclipse plugin.

 tl; dr: what's the current standard for integrating these 3
 technologies?

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


  --
 You received this message because you are subscribed to the Google Groups
 Google Web Toolkit group

Re: gwt 2.3 + spring 2 + maven 2

2011-08-18 Thread Giuseppe La Scaleia
 application
 structure (gwt:run). --
 hostedWebapptarget/www/hostedWebapp
 !-- Ask GWT to create the Story of Your Compile
 (SOYC) (gwt:compile) --
 compileReporttrue/compileReport
 /configuration
 /plugin

 !-- Add source folders to test classpath in order to run
 gwt-tests as
 normal junit-tests --
 plugin
 artifactIdmaven-surefire-plugin/artifactId
 version2.5/version
 configuration
 additionalClasspathElements

 additionalClasspathElement${project.build.sourceDirectory}/additionalClasspathElement

 additionalClasspathElement${project.build.testSourceDirectory}/additionalClasspathElement
 /additionalClasspathElements
 useManifestOnlyJarfalse/useManifestOnlyJar
 forkModealways/forkMode

 !-- Folder for generated testing stuff --
 systemProperties
 property
 namegwt.args/name
 value-out target/www/value
 /property
 /systemProperties
 /configuration
 /plugin

 !-- Copy static web files before executing gwt:run --
 plugin
 artifactIdmaven-resources-plugin/artifactId
 version2.4.2/version
 executions
 execution
 phasecompile/phase
 goals
 goalcopy-resources/goal
 /goals
 configuration

 outputDirectorytarget/www/outputDirectory
 resources
 resource

 directorysrc/main/webapp/directory
 /resource
 /resources
 /configuration
 /execution
 /executions
 /plugin

 !-- Delete gwt generated stuff --
 plugin
 artifactIdmaven-clean-plugin/artifactId
 version2.3/version
 configuration
 filesets
 fileset

 directorysrc/main/webapp/gwtapp/directory
 /fileset
 fileset

 directorysrc/main/webapp/WEB-INF/classes/directory
 /fileset
 fileset
 directorytomcat/directory
 /fileset
 fileset
 directorywww-test/directory
 /fileset
 fileset
 directory.gwt-tmp/directory
 /fileset
 /filesets
 /configuration
 /plugin

 plugin
 artifactIdmaven-eclipse-plugin/artifactId
 version2.7/version  !-- Note 2.8 does not work with
 AspectJ aspect path --
 configuration
 downloadSourcestrue/downloadSources
 downloadJavadocsfalse/downloadJavadocs
 wtpversion2.0/wtpversion
 additionalBuildcommands
 buildCommand

 namecom.google.gwt.eclipse.core.gwtProjectValidator/name
 /buildCommand
 /additionalBuildcommands
 additionalProjectnatures

 projectnaturecom.google.gwt.eclipse.core.gwtNature/projectnature
 /additionalProjectnatures
 /configuration
 /plugin

 /plugins
 /build
 /project



 On Thu, Aug 18, 2011 at 12:32 AM, Mike Chai m...@weird.name wrote:

 I'm new developing web applications with Java, so maybe this is
 implicitly known in the community but upon trying to search for
 integration for these 3 technologies I couldn't find a very
 straightforward answer. Some information is dated back to 2008ish
 where some people created glue to integrate gwt and spring, but I
 found some news on spring saying something about google integration
 into spring.

 Some of the tools also seem to be depreciated and redirect the user to
 codehaus' maven plugin, but on first look I can't find a download on
 it and it just links to google's eclipse plugin.

 tl; dr: what's the current standard for integrating these 3
 technologies?

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

gwt 2.3 + spring 2 + maven 2

2011-08-17 Thread Mike Chai
I'm new developing web applications with Java, so maybe this is
implicitly known in the community but upon trying to search for
integration for these 3 technologies I couldn't find a very
straightforward answer. Some information is dated back to 2008ish
where some people created glue to integrate gwt and spring, but I
found some news on spring saying something about google integration
into spring.

Some of the tools also seem to be depreciated and redirect the user to
codehaus' maven plugin, but on first look I can't find a download on
it and it just links to google's eclipse plugin.

tl; dr: what's the current standard for integrating these 3
technologies?

-- 
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 2.3 + spring 2 + maven 2

2011-08-17 Thread Y2i
There is some documentation on GWT site on GWT, SpringSource and Roo 
integration
http://code.google.com/webtoolkit/doc/latest/tutorial/roo-sts.html

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/sCDanQYeZ-cJ.
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 2.3 + spring 2 + maven 2

2011-08-17 Thread Daniel Guggi
/additionalClasspathElements
useManifestOnlyJarfalse/useManifestOnlyJar
forkModealways/forkMode

!-- Folder for generated testing stuff --
systemProperties
property
namegwt.args/name
value-out target/www/value
/property
/systemProperties
/configuration
/plugin

!-- Copy static web files before executing gwt:run --
plugin
artifactIdmaven-resources-plugin/artifactId
version2.4.2/version
executions
execution
phasecompile/phase
goals
goalcopy-resources/goal
/goals
configuration
outputDirectorytarget/www/outputDirectory
resources
resource
directorysrc/main/webapp/directory
/resource
/resources
/configuration
/execution
/executions
/plugin

!-- Delete gwt generated stuff --
plugin
artifactIdmaven-clean-plugin/artifactId
version2.3/version
configuration
filesets
fileset
directorysrc/main/webapp/gwtapp/directory
/fileset
fileset

directorysrc/main/webapp/WEB-INF/classes/directory
/fileset
fileset
directorytomcat/directory
/fileset
fileset
directorywww-test/directory
/fileset
fileset
directory.gwt-tmp/directory
/fileset
/filesets
/configuration
/plugin

plugin
artifactIdmaven-eclipse-plugin/artifactId
version2.7/version  !-- Note 2.8 does not work with
AspectJ aspect path --
configuration
downloadSourcestrue/downloadSources
downloadJavadocsfalse/downloadJavadocs
wtpversion2.0/wtpversion
additionalBuildcommands
buildCommand

namecom.google.gwt.eclipse.core.gwtProjectValidator/name
/buildCommand
/additionalBuildcommands
additionalProjectnatures

projectnaturecom.google.gwt.eclipse.core.gwtNature/projectnature
/additionalProjectnatures
/configuration
/plugin

/plugins
/build
/project


On Thu, Aug 18, 2011 at 12:32 AM, Mike Chai m...@weird.name wrote:

 I'm new developing web applications with Java, so maybe this is
 implicitly known in the community but upon trying to search for
 integration for these 3 technologies I couldn't find a very
 straightforward answer. Some information is dated back to 2008ish
 where some people created glue to integrate gwt and spring, but I
 found some news on spring saying something about google integration
 into spring.

 Some of the tools also seem to be depreciated and redirect the user to
 codehaus' maven plugin, but on first look I can't find a download on
 it and it just links to google's eclipse plugin.

 tl; dr: what's the current standard for integrating these 3
 technologies?

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



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



Re: GWT and Spring

2011-08-02 Thread jose felix estevez
gracias amigo toda ayuda es bien recibida. saludos.

2011/8/1 Juan Pablo Gardella gardellajuanpa...@gmail.com

 Hola José

 Bienvenido a la comunidad. Yo te puedo recomendar que veas el siguiente
 prototipo:

 https://bitbucket.org/gardellajuanpablo/gwt-sample/wiki/Home

 Si bien es un poco avanzado porque tiene varios frameworks, te puede servir
 de guía.

 Saludos,
 Juan

 2011/8/1 jose felix estevez josefel...@gmail.com

 wow gracias amigo por responder tan rapido.

 El 1 de agosto de 2011 19:52, Gal Dolber gal.dol...@gmail.com escribió:

 Buenas, bienvenido!

 No use nunca spring, pero parece haber mucha informacion al respecto,
 este el primer proyecto que aparece:
 http://code.google.com/p/gwtrpc-spring/

 Tambien hay instrucciones en gwt-incubator
 http://code.google.com/p/google-web-toolkit-incubator/wiki/IntegratingWithSpring

 Saludos

 On Mon, Aug 1, 2011 at 12:58 PM, jose felix estevez 
 josefel...@gmail.com wrote:

 buenas amigos soy nuevo en esto de gwt y me gustaria integrar gwt con
 spring alguna ayuda

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




 --
 Guit: Elegant, beautiful, modular and *production ready* gwt
 applications.

 http://code.google.com/p/guit/




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




 --
 Jose F.Estevez H.
 T.S.U. en Analisis y Diseño de Sistemas
 Consultor Staff I
 Tecnology Consulting Solutions - TCS


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


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




-- 
Jose F.Estevez H.
T.S.U. en Analisis y Diseño de Sistemas
Consultor Staff I
Tecnology Consulting Solutions - TCS

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



Re: GWT and Spring

2011-08-02 Thread Jeff Larsen
Si estas interesante en usando RequestFactory, es facil usar Spring con 
RequestFactory en 2.4-RC.

Hacer un class se llama SpringServiceLocator

public class SpringServiceLocator implements ServiceLocator {

public Object getInstance(Class? arg0) {
ApplicationContext ctx = WebApplicationContextUtils

.getWebApplicationContext(RequestFactoryServlet.getThreadLocalServletContext());
return ctx.getBean(arg0);
}
}

y usarlos en totas sus RequestContext annotations

@Service(value=MyService.class, locator=SpringServiceLocator.class)
public interface MyRequestContext extends RequestContext{
 
}

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/Wm3sEjfoAxMJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: GWT and Spring

2011-08-02 Thread Juan Pablo Gardella
Thanks Jeff!!

2011/8/2 Jeff Larsen larse...@gmail.com

 Si estas interesante en usando RequestFactory, es facil usar Spring con
 RequestFactory en 2.4-RC.

 Hacer un class se llama SpringServiceLocator

 public class SpringServiceLocator implements ServiceLocator {

 public Object getInstance(Class? arg0) {
 ApplicationContext ctx = WebApplicationContextUtils

 .getWebApplicationContext(RequestFactoryServlet.getThreadLocalServletContext());
 return ctx.getBean(arg0);
 }
 }

 y usarlos en totas sus RequestContext annotations

 @Service(value=MyService.class, locator=SpringServiceLocator.class)
 public interface MyRequestContext extends RequestContext{
  
 }

 --
 You received this message because you are subscribed to the Google Groups
 Google Web Toolkit group.
 To view this discussion on the web visit
 https://groups.google.com/d/msg/google-web-toolkit/-/Wm3sEjfoAxMJ.
 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.


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



GWT and Spring

2011-08-01 Thread jose felix estevez
buenas amigos soy nuevo en esto de gwt y me gustaria integrar gwt con
spring alguna ayuda

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



Re: GWT and Spring

2011-08-01 Thread Gal Dolber
Buenas, bienvenido!

No use nunca spring, pero parece haber mucha informacion al respecto, este
el primer proyecto que aparece:
http://code.google.com/p/gwtrpc-spring/

Tambien hay instrucciones en gwt-incubator
http://code.google.com/p/google-web-toolkit-incubator/wiki/IntegratingWithSpring

Saludos

On Mon, Aug 1, 2011 at 12:58 PM, jose felix estevez josefel...@gmail.comwrote:

 buenas amigos soy nuevo en esto de gwt y me gustaria integrar gwt con
 spring alguna ayuda

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




-- 
Guit: Elegant, beautiful, modular and *production ready* gwt applications.

http://code.google.com/p/guit/

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



Re: GWT and Spring

2011-08-01 Thread jose felix estevez
wow gracias amigo por responder tan rapido.

El 1 de agosto de 2011 19:52, Gal Dolber gal.dol...@gmail.com escribió:

 Buenas, bienvenido!

 No use nunca spring, pero parece haber mucha informacion al respecto, este
 el primer proyecto que aparece:
 http://code.google.com/p/gwtrpc-spring/

 Tambien hay instrucciones en gwt-incubator
 http://code.google.com/p/google-web-toolkit-incubator/wiki/IntegratingWithSpring

 Saludos

 On Mon, Aug 1, 2011 at 12:58 PM, jose felix estevez 
 josefel...@gmail.comwrote:

 buenas amigos soy nuevo en esto de gwt y me gustaria integrar gwt con
 spring alguna ayuda

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




 --
 Guit: Elegant, beautiful, modular and *production ready* gwt applications.

 http://code.google.com/p/guit/




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




-- 
Jose F.Estevez H.
T.S.U. en Analisis y Diseño de Sistemas
Consultor Staff I
Tecnology Consulting Solutions - TCS

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



Re: GWT and Spring

2011-08-01 Thread Juan Pablo Gardella
Hola José

Bienvenido a la comunidad. Yo te puedo recomendar que veas el siguiente
prototipo:

https://bitbucket.org/gardellajuanpablo/gwt-sample/wiki/Home

Si bien es un poco avanzado porque tiene varios frameworks, te puede servir
de guía.

Saludos,
Juan

2011/8/1 jose felix estevez josefel...@gmail.com

 wow gracias amigo por responder tan rapido.

 El 1 de agosto de 2011 19:52, Gal Dolber gal.dol...@gmail.com escribió:

 Buenas, bienvenido!

 No use nunca spring, pero parece haber mucha informacion al respecto, este
 el primer proyecto que aparece:
 http://code.google.com/p/gwtrpc-spring/

 Tambien hay instrucciones en gwt-incubator
 http://code.google.com/p/google-web-toolkit-incubator/wiki/IntegratingWithSpring

 Saludos

 On Mon, Aug 1, 2011 at 12:58 PM, jose felix estevez josefel...@gmail.com
  wrote:

 buenas amigos soy nuevo en esto de gwt y me gustaria integrar gwt con
 spring alguna ayuda

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




 --
 Guit: Elegant, beautiful, modular and *production ready* gwt applications.

 http://code.google.com/p/guit/




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




 --
 Jose F.Estevez H.
 T.S.U. en Analisis y Diseño de Sistemas
 Consultor Staff I
 Tecnology Consulting Solutions - TCS


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


-- 
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 little example on howto configure GWT with spring and hibernate.

2011-06-01 Thread karq
Hey everyone!

I've spent quite some time on getting this setup working. So I made a
little example for those who are struggling with the same problem.
http://karq.planet.ee/blog/?p=275

Hope you like it :)

-- 
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 HIBERNATE SPRING MYSQL Example

2011-04-27 Thread junaid
Hi
I am looking for some example / tutorial for GWT , HIBERNATE , SPRING ,
MYSQL Integration
I've been looking on google for that but no success ,
Any help would be appreciated..
thanks
junaid

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



GWT and Spring

2011-04-14 Thread João Peixoto
Hi everyone
First post, so lets not blow it
I did post this in the Spring forums as well.

I've been searching quite a lot for ways to integrate GWT with Spring,
but so far I haven't found any working method.
I think that the problem is that some detail step is missing, but
nevertheless here goes what I have and hopefully someone can help me.

The APP I'm trying to create right now is a Spring enabled greeting
service. What I've done:

com.demo.client.DemoService
com.demo.client.DemoServiceAsync
com.demo.server.DemoServiceImpl

The classes themselves are pretty straight forward.

web.xml added the following:

Code:
servlet
servlet-nameDemoSpring/servlet-name

servlet-classorg.springframework.web.servlet.DispatcherServlet/
servlet-class
load-on-startup1/load-on-startup
/servlet
servlet-mapping
servlet-nameDemoSpring/servlet-name
url-pattern*.rpc/url-pattern
/servlet-mapping
DemoSpring-servlet.xml has the following:

Code:
?xml version=1.0 encoding=UTF-8?
!DOCTYPE beans PUBLIC -//SPRING//DTD BEAN//EN
 http://www.springframework.org/dtd/spring-beans.dtd;
beans
bean id=demoService class=com.demo.server.DemoServiceImpl /
bean id=urlMapping
class=org.gwtwidgets.server.spring.GWTHandler
property name=mapping
map
entry key=/demoService.rpc 
value-ref=demoService /
/map
/property
/bean
/beans
The way I instantiate the service on the client is:

Code:
private final DemoServiceAsync demoService =
GWT.create(DemoService.class);

The problem I'm currently getting is Class Not Found, regarding
GWTHandler in the urlMapping bean.

I understand that URL requests have to be redirected to the Spring
dispatcher, however I'm having a hard time to understand how a
@Service Spring stereotype will relate to a GWT
@RemoteServiceRelativePath and most of all, how to achieve it..

Any tips would be much appreciated.
Best regards

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



Re: GWT and Spring

2011-04-14 Thread Juan Pablo Gardella
Welcome to GWT. You can try read this first:

1) Best Practices!!! gwt

http://dl.google.com/io/2009/pres/Th_0200_GoogleWebToolkitArchitecture-BestPracticesForArchitectingYourGWTApp.pdf

2) gwt-dispatch + spring
http://pgt.de/2009/09/16/use-spring-with-gwt-dispatch/
http://pgt.de/2009/12/09/sample-gwt-dispath-project/

gwt-dispatch implement a best practice to communicate to server via
GWT-RPC.

Juan

2011/4/14 João Peixoto joao.harti...@gmail.com

 Hi everyone
 First post, so lets not blow it
 I did post this in the Spring forums as well.

 I've been searching quite a lot for ways to integrate GWT with Spring,
 but so far I haven't found any working method.
 I think that the problem is that some detail step is missing, but
 nevertheless here goes what I have and hopefully someone can help me.

 The APP I'm trying to create right now is a Spring enabled greeting
 service. What I've done:

 com.demo.client.DemoService
 com.demo.client.DemoServiceAsync
 com.demo.server.DemoServiceImpl

 The classes themselves are pretty straight forward.

 web.xml added the following:

 Code:
 servlet
servlet-nameDemoSpring/servlet-name

  servlet-classorg.springframework.web.servlet.DispatcherServlet/
 servlet-class
load-on-startup1/load-on-startup
/servlet
servlet-mapping
servlet-nameDemoSpring/servlet-name
url-pattern*.rpc/url-pattern
/servlet-mapping
 DemoSpring-servlet.xml has the following:

 Code:
 ?xml version=1.0 encoding=UTF-8?
 !DOCTYPE beans PUBLIC -//SPRING//DTD BEAN//EN
 http://www.springframework.org/dtd/spring-beans.dtd;
 beans
bean id=demoService class=com.demo.server.DemoServiceImpl /
bean id=urlMapping
 class=org.gwtwidgets.server.spring.GWTHandler
property name=mapping
map
entry key=/demoService.rpc
 value-ref=demoService /
/map
/property
/bean
 /beans
 The way I instantiate the service on the client is:

 Code:
 private final DemoServiceAsync demoService =
 GWT.create(DemoService.class);

 The problem I'm currently getting is Class Not Found, regarding
 GWTHandler in the urlMapping bean.

 I understand that URL requests have to be redirected to the Spring
 dispatcher, however I'm having a hard time to understand how a
 @Service Spring stereotype will relate to a GWT
 @RemoteServiceRelativePath and most of all, how to achieve it..

 Any tips would be much appreciated.
 Best regards

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



-- 
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 + MVP + Spring + Hibernate

2011-04-03 Thread Ashton Thomas
this repo has gwt mvp spring but uses mybatis so no Hibernate:
https://github.com/ashtonthomas/beans


On Apr 3, 1:27 am, Jan Mostert j...@mycee.com wrote:
 Spring Roo will integrate all that stuff for you.

 --
 Jan Vladimir Mostert
 BEngSci

 MyCee Technologies







 On Sat, Apr 2, 2011 at 11:14 AM, Zaur Guliyev mr.zau...@gmail.com wrote:
  Hello,

  I'm newbie in GWT and as well as to Spring, Hibernate and MVP
  framework. Is there any tutorial or project example on which I can
  learn all this GWT integration stuff with above mentioned frameworks?

  Any help is appretiated...

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

-- 
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 + MVP + Spring + Hibernate

2011-04-03 Thread Zaur Guliyev
Isn't there a step-by-step tutorial at least on GWT + Spring Roo ?!  ...
I've searched on Google but can'T find any resource..even only Spring Roo
will suit...Do you have any suggestion? And one more question, do I have to
start with Spring MVC first? Or are Spring Roo and Spring MVC different
subjects ... and that would be better to start directly with Roo maybe?



2011/4/3 Ashton Thomas ash...@acrinta.com

 this repo has gwt mvp spring but uses mybatis so no Hibernate:
 https://github.com/ashtonthomas/beans


 On Apr 3, 1:27 am, Jan Mostert j...@mycee.com wrote:
  Spring Roo will integrate all that stuff for you.
 
  --
  Jan Vladimir Mostert
  BEngSci
 
  MyCee Technologies
 
 
 
 
 
 
 
  On Sat, Apr 2, 2011 at 11:14 AM, Zaur Guliyev mr.zau...@gmail.com
 wrote:
   Hello,
 
   I'm newbie in GWT and as well as to Spring, Hibernate and MVP
   framework. Is there any tutorial or project example on which I can
   learn all this GWT integration stuff with above mentioned frameworks?
 
   Any help is appretiated...
 
   --
   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.

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




-- 
*Zaur Guliyev
Ankara University
Computer Engineering**
Cell: +905072645995*

-- 
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 + MVP + Spring + Hibernate

2011-04-03 Thread Jan Mostert
ROO is just a console that generates a scaffold for you containing
Spring-MVC code with a JPA (Hibernate) and then you can slap any UI on top
of it, like GWT using the gwt setup command

This page will take you through it step by step:
http://www.springsource.org/roo/start

Once you've done the tutorial, you'll have a scaffold in place on top of
which you can work or which you can modify to your liking.

--
Jan Vladimir Mostert
BEngSci

MyCee Technologies


On Sun, Apr 3, 2011 at 6:00 PM, Zaur Guliyev mr.zau...@gmail.com wrote:

 Isn't there a step-by-step tutorial at least on GWT + Spring Roo ?!  ...
 I've searched on Google but can'T find any resource..even only Spring Roo
 will suit...Do you have any suggestion? And one more question, do I have to
 start with Spring MVC first? Or are Spring Roo and Spring MVC different
 subjects ... and that would be better to start directly with Roo maybe?




 2011/4/3 Ashton Thomas ash...@acrinta.com

 this repo has gwt mvp spring but uses mybatis so no Hibernate:
 https://github.com/ashtonthomas/beans


 On Apr 3, 1:27 am, Jan Mostert j...@mycee.com wrote:
  Spring Roo will integrate all that stuff for you.
 
  --
  Jan Vladimir Mostert
  BEngSci
 
  MyCee Technologies
 
 
 
 
 
 
 
  On Sat, Apr 2, 2011 at 11:14 AM, Zaur Guliyev mr.zau...@gmail.com
 wrote:
   Hello,
 
   I'm newbie in GWT and as well as to Spring, Hibernate and MVP
   framework. Is there any tutorial or project example on which I can
   learn all this GWT integration stuff with above mentioned frameworks?
 
   Any help is appretiated...
 
   --
   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.

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




 --
 *Zaur Guliyev
 Ankara University
 Computer Engineering**
 Cell: +905072645995*

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


-- 
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 + MVP + Spring + Hibernate

2011-04-02 Thread Zaur Guliyev
Hello,

I'm newbie in GWT and as well as to Spring, Hibernate and MVP
framework. Is there any tutorial or project example on which I can
learn all this GWT integration stuff with above mentioned frameworks?

Any help is appretiated...

-- 
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 + MVP + Spring + Hibernate

2011-04-02 Thread Jan Mostert
Spring Roo will integrate all that stuff for you.

--
Jan Vladimir Mostert
BEngSci

MyCee Technologies


On Sat, Apr 2, 2011 at 11:14 AM, Zaur Guliyev mr.zau...@gmail.com wrote:

 Hello,

 I'm newbie in GWT and as well as to Spring, Hibernate and MVP
 framework. Is there any tutorial or project example on which I can
 learn all this GWT integration stuff with above mentioned frameworks?

 Any help is appretiated...

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



-- 
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 2.0 spring hibernate gilead

2011-01-07 Thread Twentyseven
Hello,

I'm using GWT 2.0, Spring, Hibernate and Gilead for some time now.
Gilead allow me to use the DTO pattern and give me the availability to
update my  DTO's directly.
But my problem is that I have a big  apps and that the merge and clone
are very expensive in cpu and in time.

For now with  GWT 2.0 could I use directly the entity  bean  from
Hibernate (the lazyinitializationexception is not a preoblem for me) ?
I know that Hibernate has his own List implementation could I have
some problems with that ?

Thank's by advance,

-- 
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-Platform spring integration

2010-10-27 Thread Stefan Bachert
Hi,

you could play with Spring Roo.
My last try with Roo was not successful with non trivial cases,
however, Spring Roo probably does generate the best Spring integration
(but using aspectJ)

Stefan Bachert
http://gwtworld.de


On 25 Okt., 23:47, tc camec...@gmail.com wrote:
 Does anyone have an example of using the Spring support for dispatch
 that has been integrated into GWT-Platform?  I am having trouble
 getting the client to hit the server ( 404 error ).

 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-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-Platform spring integration

2010-10-27 Thread Travis Camechis
Yeah but it generates everything using the Requestfactory which is completey
different than dispatch

On Wed, Oct 27, 2010 at 9:24 AM, Stefan Bachert stefanbach...@yahoo.dewrote:

 Hi,

 you could play with Spring Roo.
 My last try with Roo was not successful with non trivial cases,
 however, Spring Roo probably does generate the best Spring integration
 (but using aspectJ)

 Stefan Bachert
 http://gwtworld.de


 On 25 Okt., 23:47, tc camec...@gmail.com wrote:
  Does anyone have an example of using the Spring support for dispatch
  that has been integrated into GWT-Platform?  I am having trouble
  getting the client to hit the server ( 404 error ).
 
  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-tool...@googlegroups.com.
 To unsubscribe from this group, send email to
 google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@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.



Re: GWT-Platform spring integration

2010-10-26 Thread PhilBeaudoin
Hi Travis,

The feature has been contributed only recently and has not even
compiled in the default jar. Some people have successfully compiled
and used the feature and are working on a sample and it will make it
in the soon to be released 0.5. You can star and follow this issue to
be notified of progress:
http://code.google.com/p/gwt-platform/issues/detail?id=44

Also you will get more answers if you post directly on the gwtp forum:
http://groups.google.com/group/gwt-platform

Cheers,

   Philippe

On Oct 25, 2:47 pm, tc camec...@gmail.com wrote:
 Does anyone have an example of using the Spring support for dispatch
 that has been integrated into GWT-Platform?  I am having trouble
 getting the client to hit the server ( 404 error ).

 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-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-Platform spring integration

2010-10-25 Thread tc
Does anyone have an example of using the Spring support for dispatch
that has been integrated into GWT-Platform?  I am having trouble
getting the client to hit the server ( 404 error ).

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-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 and Spring - More Generation Options

2010-09-09 Thread Christiana Thompson
In case you missed it, the replay of last week's MyEclipse for Spring
8.6: Generate GWT and Flex Apps in Minutes webinar is now available
at http://bit.ly/avsZEj

Thanks,
Christiana

On Aug 26, 3:03 pm, Christiana Thompson
christiana.thomp...@gmail.com wrote:
 Formoreinformation on this topic, please join us for a free webinar
 on Tuesday, August 31, 2010 at 11:00 AM – 12:00 PM CDT

 This webinar deep dives into the new Google Web Toolkit (GWT)
 scaffoldingoptionsthat are available in MyEclipse for Spring 8.6.
 We’ll cover the following:

 -- How does it work? See how to quickly generate working GWT
 applications from existing DB tables, Java Beans and JPA entities in a
 matter of minutes.
 -- What gets generated? One of the biggest learning curves is
 understanding what gets generated – we’ll do a deep dive into the
 generated artifacts to help users understand what exactly comes out of
 MyEclipse for Spring.
 -- How does it compare to other GWT/Flex scaffolding technologies?

 Register athttps://www2.gotomeeting.com/register/691323002

 Attend this webinar if you want to see how MyEclipse for Spring (ME4S)
 is delivering unprecedented Rich Internet Application scaffoldingoptionsto 
 the Spring Community.

 For developers who are new to GWT, MyEclipse for Spring 8.6 allows
 them to quickly create their own contextual examples that they can
 then reference while getting up to speed on the new technology.
 Meanwhile, developers who are GWT experts can stop worrying about the
 boilerplate code, and let MyEclipse for Spring take care of all the
 mundane, repetitive tasks.

 All webinar registrants will receive a 30 percent discount off of
 MyEclipse for Spring – just for registering.  
 Visithttps://www2.gotomeeting.com/register/691323002to register and get
 your coupon code today.

 On Aug 11, 1:56 pm, Jack jack.kenn...@gmail.com wrote:



  MyEclipse For Spring (ME4S) 8.6 is now generally available with
  support for GWT front endgenerationas well as Spring back endgeneration.

  We also posted an article on DZone 
  here:http://java.dzone.com/articles/generating-enterprise-class
  You can download the software and getmoreinformation 
  here:http://www.myeclipseide.com/me4s/

  We are anxious to get feedback from the GWT community so please let us
  know what you think.

  Thanks,
  Jack

  On Jul 12, 3:38 pm, Jack jack.kenn...@gmail.com wrote:

   Hello Stefan,

   Thanks for the question.

   First let me say that I am a fan of the work that is being done by the
   Roo and GWT teams.  Our goal in releasing additional generative
   tooling forSpringhas always been to give developers additional
  optionsand capabilities that largely complement the freeoptions
   available from SpringSource.

   We have a page that highlights some of the key differences in approach
   between Roo 
   andMyEclipseforSpringhere:http://www.myeclipseide.com/me4s/faqs/faqs_tool_comparison.php

   Specific to GWT, the most important difference for developers to
   consider is the GWT version.  ME4S supports GWT 2.0.x which is the
   current GA version and is based on the best practices presentation
   from Ray Ryan at Google I/O 2009. You can find that presentation 
   here:http://www.youtube.com/watch?v=PDuhR18-EdM

   The Roo integration for GWT is targeted at GWT 2.1 which looks to be a
   great set of additions to GWT, however it is still a work in progress.
   Most of the low level variances in the code that is generated reflect
   the difference in GWT version supported.

   Another difference is that ME4S generates code that does not use
   separate aspect files or design time annotations .  Our goal is to
   generate reusable software components from your existing technology
   assets like RDBMS tables, WSDL Documents, POJO's or Entities as
   quickly as possible giving youoptionsas to which project, source
   folder, and package you would like the generated code to go into.

   You can review videos of the GWT and other scaffoldingoptionsfrom
   ME4S in action here:http://www.youtube.com/user/myeclipseforspring

   Finally, we have an option to let you generate JUST the GWT front end
   and Service stub without requiring the use of any specific back end
   implementation includingSpring.

   ME4S can start from your existing Java code, WSDL, or RDBMS definition
   and generate reusable GWT front end components that are tied to your
   data model and which follow a strong MVP / Command pattern.  These
   components can be mixed and matched together to buildmorecomplicated
   downstream applications that go beyond CRUD.  The Remote Services are
   stubbed out to allow you to integrate with the server side technology
   of your choice, or you can accept the defaults and let ME4S build out
   a layered CRUD backend that includes JPA Entities, DAO’s, and Services
   all wired up usingSpring.

   I hope this helps, but let me know if you would like to havemore
   detail.

   Thanks
   Jack Kennedy
   Skyway Software

   On Jul

Re: Integration of GWT in Spring

2010-08-29 Thread Sebastian Rothbucher
Hi,

I guess it is a little more difficult than that as you have to
integrate two paradigms here: one is request-response (classic
webapp style of spring web mvc), the other is requesting on demand by
google web toolkit. Possibly the easiest way would be rendering a gwt
carrier page via spring - or embedding GWT via an invisible IFrame; I
don't think it is that easy to just submit the contents of a GWT app
along with other classic form fields...

Hope this helps - good luck and best regards
Sebastian

On 21 Aug., 00:24, la-praline benmahidd...@gmail.com wrote:
 Hello everyone,

 First of all sorry for my mistakes i'm french. I'm making a web
 application with Spring and i need gwt for a text editor so i'm trying
 to integrate GWT in Spring. I used the webAppCreator to make an
 example. I use the same architecture. When i go to the page the
 browser return that

 HTTP method GET is not supported by this URL

 there is my web.xml

 ?xml version=1.0 encoding=UTF-8?
 web-app ...
         
         !-- Spring Entry point --
         listener
           listener-
 classorg.springframework.web.context.ContextLoaderListener/listener-
 class
         /listener
         servlet
                 servlet-namedispatcher/servlet-name
                 
 servlet-classorg.springframework.web.servlet.DispatcherServlet/
 servlet-class
                 init-param
                         param-namecontextConfigLocation/param-name
                         
 param-value/WEB-INF/applicationContext.xml,/WEB-INF/dispatcher-
 servlet.xml/param-value
                 /init-param
         /servlet
         servlet-mapping
                 servlet-namedispatcher/servlet-name
                 url-pattern*.do/url-pattern
         /servlet-mapping

         !-- GWT --
         servlet
                 servlet-namemyService/servlet-name
                 
 servlet-classorg.nomadphp.gwt.server.MyServiceImpl/servlet-class
         /servlet
         servlet-mapping
                 servlet-namemyService/servlet-name
                 url-pattern*.gwt/url-pattern
         /servlet-mapping
        ...
 /web-app

 There is my dispatcher-servlet.xml

 beans ...
         ...
         !-- urlMapping Configuration --

         bean id=urlMapping
 class=org.springframework.web.servlet.handler.SimpleUrlHandlerMapping
                 property name=urlMap
                         map
                                 ...
                                 entry key=/projectEditor.gwt
                                         ref bean=myService /
                                 /entry
                         /map
                 /property
         /bean

         !-- Gwt Controller --

         bean id=myService class=org.nomadphp.gwt.server.MyServiceImpl /
 /beans

 Thank you for your help

-- 
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: Integration of GWT in Spring

2010-08-29 Thread João Ferreira
Hi

Maybe this can help you:
http://gwt-widget.sourceforge.net/gwt-sl/reference-1.0/index.html

2010/8/29 Sebastian Rothbucher sebastian.rothbuc...@clarities.de:
 Hi,

 I guess it is a little more difficult than that as you have to
 integrate two paradigms here: one is request-response (classic
 webapp style of spring web mvc), the other is requesting on demand by
 google web toolkit. Possibly the easiest way would be rendering a gwt
 carrier page via spring - or embedding GWT via an invisible IFrame; I
 don't think it is that easy to just submit the contents of a GWT app
 along with other classic form fields...

 Hope this helps - good luck and best regards
    Sebastian

 On 21 Aug., 00:24, la-praline benmahidd...@gmail.com wrote:
 Hello everyone,

 First of all sorry for my mistakes i'm french. I'm making a web
 application with Spring and i need gwt for a text editor so i'm trying
 to integrate GWT in Spring. I used the webAppCreator to make an
 example. I use the same architecture. When i go to the page the
 browser return that

 HTTP method GET is not supported by this URL

 there is my web.xml

 ?xml version=1.0 encoding=UTF-8?
 web-app ...
         
         !-- Spring Entry point --
         listener
           listener-
 classorg.springframework.web.context.ContextLoaderListener/listener-
 class
         /listener
         servlet
                 servlet-namedispatcher/servlet-name
                 
 servlet-classorg.springframework.web.servlet.DispatcherServlet/
 servlet-class
                 init-param
                         param-namecontextConfigLocation/param-name
                         
 param-value/WEB-INF/applicationContext.xml,/WEB-INF/dispatcher-
 servlet.xml/param-value
                 /init-param
         /servlet
         servlet-mapping
                 servlet-namedispatcher/servlet-name
                 url-pattern*.do/url-pattern
         /servlet-mapping

         !-- GWT --
         servlet
                 servlet-namemyService/servlet-name
                 
 servlet-classorg.nomadphp.gwt.server.MyServiceImpl/servlet-class
         /servlet
         servlet-mapping
                 servlet-namemyService/servlet-name
                 url-pattern*.gwt/url-pattern
         /servlet-mapping
        ...
 /web-app

 There is my dispatcher-servlet.xml

 beans ...
         ...
         !-- urlMapping Configuration --

         bean id=urlMapping
 class=org.springframework.web.servlet.handler.SimpleUrlHandlerMapping
                 property name=urlMap
                         map
                                 ...
                                 entry key=/projectEditor.gwt
                                         ref bean=myService /
                                 /entry
                         /map
                 /property
         /bean

         !-- Gwt Controller --

         bean id=myService class=org.nomadphp.gwt.server.MyServiceImpl /
 /beans

 Thank you for your help

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



Re: Integration of GWT in Spring

2010-08-29 Thread Subhrajyoti Moitra
http://pgt.de/2009/07/17/non-invasive-gwt-and-spring-integration-reloaded/

There is also working example code for the same.

Thanks,
Subhro.

On Sun, Aug 29, 2010 at 4:31 PM, Sebastian Rothbucher 
sebastian.rothbuc...@clarities.de wrote:

 Hi,

 I guess it is a little more difficult than that as you have to
 integrate two paradigms here: one is request-response (classic
 webapp style of spring web mvc), the other is requesting on demand by
 google web toolkit. Possibly the easiest way would be rendering a gwt
 carrier page via spring - or embedding GWT via an invisible IFrame; I
 don't think it is that easy to just submit the contents of a GWT app
 along with other classic form fields...

 Hope this helps - good luck and best regards
Sebastian

 On 21 Aug., 00:24, la-praline benmahidd...@gmail.com wrote:
  Hello everyone,
 
  First of all sorry for my mistakes i'm french. I'm making a web
  application with Spring and i need gwt for a text editor so i'm trying
  to integrate GWT in Spring. I used the webAppCreator to make an
  example. I use the same architecture. When i go to the page the
  browser return that
 
  HTTP method GET is not supported by this URL
 
  there is my web.xml
 
  ?xml version=1.0 encoding=UTF-8?
  web-app ...
  
  !-- Spring Entry point --
  listener
listener-
  classorg.springframework.web.context.ContextLoaderListener/listener-
  class
  /listener
  servlet
  servlet-namedispatcher/servlet-name
 
 servlet-classorg.springframework.web.servlet.DispatcherServlet/
  servlet-class
  init-param
  param-namecontextConfigLocation/param-name
 
 param-value/WEB-INF/applicationContext.xml,/WEB-INF/dispatcher-
  servlet.xml/param-value
  /init-param
  /servlet
  servlet-mapping
  servlet-namedispatcher/servlet-name
  url-pattern*.do/url-pattern
  /servlet-mapping
 
  !-- GWT --
  servlet
  servlet-namemyService/servlet-name
 
 servlet-classorg.nomadphp.gwt.server.MyServiceImpl/servlet-class
  /servlet
  servlet-mapping
  servlet-namemyService/servlet-name
  url-pattern*.gwt/url-pattern
  /servlet-mapping
 ...
  /web-app
 
  There is my dispatcher-servlet.xml
 
  beans ...
  ...
  !-- urlMapping Configuration --
 
  bean id=urlMapping
  class=org.springframework.web.servlet.handler.SimpleUrlHandlerMapping
  property name=urlMap
  map
  ...
  entry key=/projectEditor.gwt
  ref bean=myService /
  /entry
  /map
  /property
  /bean
 
  !-- Gwt Controller --
 
  bean id=myService
 class=org.nomadphp.gwt.server.MyServiceImpl /
  /beans
 
  Thank you for your help

 --
 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.comgoogle-web-toolkit%2bunsubscr...@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.



Re: GWT and Spring - More Generation Options

2010-08-26 Thread Christiana Thompson
For more information on this topic, please join us for a free webinar
on Tuesday, August 31, 2010 at 11:00 AM – 12:00 PM CDT

This webinar deep dives into the new Google Web Toolkit (GWT)
scaffolding options that are available in MyEclipse for Spring 8.6.
We’ll cover the following:

-- How does it work? See how to quickly generate working GWT
applications from existing DB tables, Java Beans and JPA entities in a
matter of minutes.
-- What gets generated? One of the biggest learning curves is
understanding what gets generated – we’ll do a deep dive into the
generated artifacts to help users understand what exactly comes out of
MyEclipse for Spring.
-- How does it compare to other GWT/Flex scaffolding technologies?

Register at https://www2.gotomeeting.com/register/691323002

Attend this webinar if you want to see how MyEclipse for Spring (ME4S)
is delivering unprecedented Rich Internet Application scaffolding
options to the Spring Community.

For developers who are new to GWT, MyEclipse for Spring 8.6 allows
them to quickly create their own contextual examples that they can
then reference while getting up to speed on the new technology.
Meanwhile, developers who are GWT experts can stop worrying about the
boilerplate code, and let MyEclipse for Spring take care of all the
mundane, repetitive tasks.

All webinar registrants will receive a 30 percent discount off of
MyEclipse for Spring – just for registering.  Visit
https://www2.gotomeeting.com/register/691323002 to register and get
your coupon code today.

On Aug 11, 1:56 pm, Jack jack.kenn...@gmail.com wrote:
 MyEclipse For Spring (ME4S) 8.6 is now generally available with
 support for GWT front endgenerationas well as Spring back endgeneration.

 We also posted an article on DZone 
 here:http://java.dzone.com/articles/generating-enterprise-class
 You can download the software and get more information 
 here:http://www.myeclipseide.com/me4s/

 We are anxious to get feedback from the GWT community so please let us
 know what you think.

 Thanks,
 Jack

 On Jul 12, 3:38 pm, Jack jack.kenn...@gmail.com wrote:



  Hello Stefan,

  Thanks for the question.

  First let me say that I am a fan of the work that is being done by the
  Roo and GWT teams.  Our goal in releasing additional generative
  tooling forSpringhas always been to give developers additional
 optionsand capabilities that largely complement the freeoptions
  available from SpringSource.

  We have a page that highlights some of the key differences in approach
  between Roo 
  andMyEclipseforSpringhere:http://www.myeclipseide.com/me4s/faqs/faqs_tool_comparison.php

  Specific to GWT, the most important difference for developers to
  consider is the GWT version.  ME4S supports GWT 2.0.x which is the
  current GA version and is based on the best practices presentation
  from Ray Ryan at Google I/O 2009. You can find that presentation 
  here:http://www.youtube.com/watch?v=PDuhR18-EdM

  The Roo integration for GWT is targeted at GWT 2.1 which looks to be a
  great set of additions to GWT, however it is still a work in progress.
  Most of the low level variances in the code that is generated reflect
  the difference in GWT version supported.

  Another difference is that ME4S generates code that does not use
  separate aspect files or design time annotations .  Our goal is to
  generate reusable software components from your existing technology
  assets like RDBMS tables, WSDL Documents, POJO's or Entities as
  quickly as possible giving youoptionsas to which project, source
  folder, and package you would like the generated code to go into.

  You can review videos of the GWT and other scaffoldingoptionsfrom
  ME4S in action here:http://www.youtube.com/user/myeclipseforspring

  Finally, we have an option to let you generate JUST the GWT front end
  and Service stub without requiring the use of any specific back end
  implementation includingSpring.

  ME4S can start from your existing Java code, WSDL, or RDBMS definition
  and generate reusable GWT front end components that are tied to your
  data model and which follow a strong MVP / Command pattern.  These
  components can be mixed and matched together to build more complicated
  downstream applications that go beyond CRUD.  The Remote Services are
  stubbed out to allow you to integrate with the server side technology
  of your choice, or you can accept the defaults and let ME4S build out
  a layered CRUD backend that includes JPA Entities, DAO’s, and Services
  all wired up usingSpring.

  I hope this helps, but let me know if you would like to have more
  detail.

  Thanks
  Jack Kennedy
  Skyway Software

  On Jul 12, 2:13 pm, Stefan Bachert stefanbach...@yahoo.de wrote:

   Hi,

   how do you compare your kind of scaffolding with the one ofSpring
   Roo?
   What is similar?
   What is different?

   Stefan Bacherthttp://gwtworld.de

   On 9 Jul., 15:06, Christiana Thompson christiana.thomp...@gmail.com
   wrote:

This week Genuitec

Integration of GWT in Spring

2010-08-24 Thread la-praline
Hello everyone,

First of all sorry for my mistakes i'm french. I'm making a web
application with Spring and i need gwt for a text editor so i'm trying
to integrate GWT in Spring. I used the webAppCreator to make an
example. I use the same architecture. When i go to the page the
browser return that

HTTP method GET is not supported by this URL

there is my web.xml

?xml version=1.0 encoding=UTF-8?
web-app ...

!-- Spring Entry point --
listener
  listener-
classorg.springframework.web.context.ContextLoaderListener/listener-
class
/listener
servlet
servlet-namedispatcher/servlet-name

servlet-classorg.springframework.web.servlet.DispatcherServlet/
servlet-class
init-param
param-namecontextConfigLocation/param-name

param-value/WEB-INF/applicationContext.xml,/WEB-INF/dispatcher-
servlet.xml/param-value
/init-param
/servlet
servlet-mapping
servlet-namedispatcher/servlet-name
url-pattern*.do/url-pattern
/servlet-mapping

!-- GWT --
servlet
servlet-namemyService/servlet-name

servlet-classorg.nomadphp.gwt.server.MyServiceImpl/servlet-class
/servlet
servlet-mapping
servlet-namemyService/servlet-name
url-pattern*.gwt/url-pattern
/servlet-mapping
   ...
/web-app

There is my dispatcher-servlet.xml

beans ...
...
!-- urlMapping Configuration --

bean id=urlMapping
class=org.springframework.web.servlet.handler.SimpleUrlHandlerMapping
property name=urlMap
map
...
entry key=/projectEditor.gwt
ref bean=myService /
/entry
/map
/property
/bean

!-- Gwt Controller --

bean id=myService class=org.nomadphp.gwt.server.MyServiceImpl /
/beans

Thank you for your help

-- 
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 and Spring - More Generation Options

2010-08-11 Thread Jack
MyEclipse For Spring (ME4S) 8.6 is now generally available with
support for GWT front end generation as well as Spring back end
generation.

We also posted an article on DZone here: 
http://java.dzone.com/articles/generating-enterprise-class
You can download the software and get more information here:
http://www.myeclipseide.com/me4s/

We are anxious to get feedback from the GWT community so please let us
know what you think.

Thanks,
Jack


On Jul 12, 3:38 pm, Jack jack.kenn...@gmail.com wrote:
 Hello Stefan,

 Thanks for the question.

 First let me say that I am a fan of the work that is being done by the
 Roo and GWT teams.  Our goal in releasing additional generative
 tooling forSpringhas always been to give developers additional
 options and capabilities that largely complement the free options
 available from SpringSource.

 We have a page that highlights some of the key differences in approach
 between Roo 
 andMyEclipseforSpringhere:http://www.myeclipseide.com/me4s/faqs/faqs_tool_comparison.php

 Specific to GWT, the most important difference for developers to
 consider is the GWT version.  ME4S supports GWT 2.0.x which is the
 current GA version and is based on the best practices presentation
 from Ray Ryan at Google I/O 2009. You can find that presentation 
 here:http://www.youtube.com/watch?v=PDuhR18-EdM

 The Roo integration for GWT is targeted at GWT 2.1 which looks to be a
 great set of additions to GWT, however it is still a work in progress.
 Most of the low level variances in the code that is generated reflect
 the difference in GWT version supported.

 Another difference is that ME4S generates code that does not use
 separate aspect files or design time annotations .  Our goal is to
 generate reusable software components from your existing technology
 assets like RDBMS tables, WSDL Documents, POJO's or Entities as
 quickly as possible giving you options as to which project, source
 folder, and package you would like the generated code to go into.

 You can review videos of the GWT and other scaffolding options from
 ME4S in action here:http://www.youtube.com/user/myeclipseforspring

 Finally, we have an option to let you generate JUST the GWT front end
 and Service stub without requiring the use of any specific back end
 implementation includingSpring.

 ME4S can start from your existing Java code, WSDL, or RDBMS definition
 and generate reusable GWT front end components that are tied to your
 data model and which follow a strong MVP / Command pattern.  These
 components can be mixed and matched together to build more complicated
 downstream applications that go beyond CRUD.  The Remote Services are
 stubbed out to allow you to integrate with the server side technology
 of your choice, or you can accept the defaults and let ME4S build out
 a layered CRUD backend that includes JPA Entities, DAO’s, and Services
 all wired up usingSpring.

 I hope this helps, but let me know if you would like to have more
 detail.

 Thanks
 Jack Kennedy
 Skyway Software

 On Jul 12, 2:13 pm, Stefan Bachert stefanbach...@yahoo.de wrote:



  Hi,

  how do you compare your kind of scaffolding with the one ofSpring
  Roo?
  What is similar?
  What is different?

  Stefan Bacherthttp://gwtworld.de

  On 9 Jul., 15:06, Christiana Thompson christiana.thomp...@gmail.com
  wrote:

   This week Genuitec and Skyway Software released the second milestone
   (M2) ofMyEclipseforSpring8.6, which includes scaffolding for GWT
   applications.  With this new release, our users can now generate full
   ready-to-run GWT applications from a domain model (i.e. DB tables,
   Java Beans, or JPA Entities).

   As excited as we are about this new feature, we are eager to get
   feedback from the GWT community.  Some key aspects of our GWT
   scaffolding:

   - The functionality is based on GWT 2.0.4 (no dependency on early
   access or non-GA libraries)
   - The generated code is based on current best practices (from last
   year's Google I/O session with Ray Ryan and the MVP tutorials from
   Chris Ramsdale) and UI Binder
   - The GWT RPC services are based onSpringServices, and include
   conversion of JPA objects to/from data transfer objects (DTO) that are
   optimized for GWT
   - The generated applications support bothSpring2.5.x andSpring3.0

   Again, we'd appreciate input and feedback from the GWT community.
   Additional information and resources are as follows:

   - More Details:http://bit.ly/9ydV0X
   - Installer:http://bit.ly/asbbYo
   - Tutorial:http://bit.ly/945fK2
   - Getting Started Video (5 min):http://bit.ly/cwSawM

-- 
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 and Spring - More Generation Options

2010-07-12 Thread Christiana Thompson
This week Genuitec and Skyway Software released the second milestone
(M2) of MyEclipse for Spring 8.6, which includes scaffolding for GWT
applications.  With this new release, our users can now generate full
ready-to-run GWT applications from a domain model (i.e. DB tables,
Java Beans, or JPA Entities).

As excited as we are about this new feature, we are eager to get
feedback from the GWT community.  Some key aspects of our GWT
scaffolding:

- The functionality is based on GWT 2.0.4 (no dependency on early
access or non-GA libraries)
- The generated code is based on current best practices (from last
year's Google I/O session with Ray Ryan and the MVP tutorials from
Chris Ramsdale) and UI Binder
- The GWT RPC services are based on Spring Services, and include
conversion of JPA objects to/from data transfer objects (DTO) that are
optimized for GWT
- The generated applications support both Spring 2.5.x and Spring 3.0

Again, we'd appreciate input and feedback from the GWT community.
Additional information and resources are as follows:

- More Details: http://bit.ly/9ydV0X
- Installer: http://bit.ly/asbbYo
- Tutorial: http://bit.ly/945fK2
- Getting Started Video (5 min): http://bit.ly/cwSawM

-- 
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 and Spring - More Generation Options

2010-07-12 Thread anjan bacchu.dev
Hi There,

  Thank you.

Does MyEclipse for Spring 8.6 have support for using Hibernate instead of
JPA ?

Thank you,

BR,
~A

On Sat, Jul 10, 2010 at 12:36 AM, Christiana Thompson 
christiana.thomp...@gmail.com wrote:

 This week Genuitec and Skyway Software released the second milestone
 (M2) of MyEclipse for Spring 8.6, which includes scaffolding for GWT
 applications.  With this new release, our users can now generate full
 ready-to-run GWT applications from a domain model (i.e. DB tables,
 Java Beans, or JPA Entities).

 As excited as we are about this new feature, we are eager to get
 feedback from the GWT community.  Some key aspects of our GWT
 scaffolding:

 - The functionality is based on GWT 2.0.4 (no dependency on early
 access or non-GA libraries)
 - The generated code is based on current best practices (from last
 year's Google I/O session with Ray Ryan and the MVP tutorials from
 Chris Ramsdale) and UI Binder
 - The GWT RPC services are based on Spring Services, and include
 conversion of JPA objects to/from data transfer objects (DTO) that are
 optimized for GWT
 - The generated applications support both Spring 2.5.x and Spring 3.0

 Again, we'd appreciate input and feedback from the GWT community.
 Additional information and resources are as follows:

 - More Details: http://bit.ly/9ydV0X
 - Installer: http://bit.ly/asbbYo
 - Tutorial: http://bit.ly/945fK2
 - Getting Started Video (5 min): http://bit.ly/cwSawM

 --
 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.comgoogle-web-toolkit%2bunsubscr...@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.



Re: GWT and Spring - More Generation Options

2010-07-12 Thread Niel
Yes, it does use Hibernate.

The scaffolding functionality of  MyEclipse for Spring generates the
GWT front-end integrated with the Spring (Spring/JPA/Hibernate) back-
end application.  The back-end is a Spring application that uses
Hibernate as the JPA provider, and the Spring Services (@Service)
provide the RPC interface/services for the GWT front-end.  The GWT
front-end (MVP, UI Binder) is generated to call the Spring services.
The GWT portion of the application has no notion of JPA (or even
Spring for that matter).  If you are interested in Hibernate without
JPA, the back-end application can be refactored without impacting the
GWT front-end.

I hope that helps.


uses Hibernate as the JPA provider.  The gernareGWT application

On Jul 12, 9:20 am, anjan bacchu.dev anjan.d...@gmail.com wrote:
 Hi There,

   Thank you.

 Does MyEclipse for Spring 8.6 have support for using Hibernate instead of
 JPA ?

 Thank you,

 BR,
 ~A

 On Sat, Jul 10, 2010 at 12:36 AM, Christiana Thompson 



 christiana.thomp...@gmail.com wrote:
  This week Genuitec and Skyway Software released the second milestone
  (M2) of MyEclipse for Spring 8.6, which includes scaffolding for GWT
  applications.  With this new release, our users can now generate full
  ready-to-run GWT applications from a domain model (i.e. DB tables,
  Java Beans, or JPA Entities).

  As excited as we are about this new feature, we are eager to get
  feedback from the GWT community.  Some key aspects of our GWT
  scaffolding:

  - The functionality is based on GWT 2.0.4 (no dependency on early
  access or non-GA libraries)
  - The generated code is based on current best practices (from last
  year's Google I/O session with Ray Ryan and the MVP tutorials from
  Chris Ramsdale) and UI Binder
  - The GWT RPC services are based on Spring Services, and include
  conversion of JPA objects to/from data transfer objects (DTO) that are
  optimized for GWT
  - The generated applications support both Spring 2.5.x and Spring 3.0

  Again, we'd appreciate input and feedback from the GWT community.
  Additional information and resources are as follows:

  - More Details:http://bit.ly/9ydV0X
  - Installer:http://bit.ly/asbbYo
  - Tutorial:http://bit.ly/945fK2
  - Getting Started Video (5 min):http://bit.ly/cwSawM

  --
  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.comgoogle-web-toolkit%2Bunsubs 
  cr...@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.



Re: GWT and Spring - More Generation Options

2010-07-12 Thread anjan bacchu.dev
Hi There,

  That helps.

Thank you,

BR,
~A


On Mon, Jul 12, 2010 at 7:09 PM, Niel niele...@gmail.com wrote:

 Yes, it does use Hibernate.

 The scaffolding functionality of  MyEclipse for Spring generates the
 GWT front-end integrated with the Spring (Spring/JPA/Hibernate) back-
 end application.  The back-end is a Spring application that uses
 Hibernate as the JPA provider, and the Spring Services (@Service)
 provide the RPC interface/services for the GWT front-end.  The GWT
 front-end (MVP, UI Binder) is generated to call the Spring services.
 The GWT portion of the application has no notion of JPA (or even
 Spring for that matter).  If you are interested in Hibernate without
 JPA, the back-end application can be refactored without impacting the
 GWT front-end.

 I hope that helps.


 uses Hibernate as the JPA provider.  The gernareGWT application

 On Jul 12, 9:20 am, anjan bacchu.dev anjan.d...@gmail.com wrote:
  Hi There,
 
Thank you.
 
  Does MyEclipse for Spring 8.6 have support for using Hibernate instead of
  JPA ?
 
  Thank you,
 
  BR,
  ~A
 
  On Sat, Jul 10, 2010 at 12:36 AM, Christiana Thompson 
 
 
 
  christiana.thomp...@gmail.com wrote:
   This week Genuitec and Skyway Software released the second milestone
   (M2) of MyEclipse for Spring 8.6, which includes scaffolding for GWT
   applications.  With this new release, our users can now generate full
   ready-to-run GWT applications from a domain model (i.e. DB tables,
   Java Beans, or JPA Entities).
 
   As excited as we are about this new feature, we are eager to get
   feedback from the GWT community.  Some key aspects of our GWT
   scaffolding:
 
   - The functionality is based on GWT 2.0.4 (no dependency on early
   access or non-GA libraries)
   - The generated code is based on current best practices (from last
   year's Google I/O session with Ray Ryan and the MVP tutorials from
   Chris Ramsdale) and UI Binder
   - The GWT RPC services are based on Spring Services, and include
   conversion of JPA objects to/from data transfer objects (DTO) that are
   optimized for GWT
   - The generated applications support both Spring 2.5.x and Spring 3.0
 
   Again, we'd appreciate input and feedback from the GWT community.
   Additional information and resources are as follows:
 
   - More Details:http://bit.ly/9ydV0X
   - Installer:http://bit.ly/asbbYo
   - Tutorial:http://bit.ly/945fK2
   - Getting Started Video (5 min):http://bit.ly/cwSawM
 
   --
   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.comgoogle-web-toolkit%2bunsubscr...@googlegroups.comgoogle-web-toolkit%2Bunsubs
 cr...@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.comgoogle-web-toolkit%2bunsubscr...@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.



Re: GWT 2.0 - Spring Security

2010-07-08 Thread Ladislav Gazo
Hi,

if you are interested in complex integration of Spring security on
client and also server side you might take a look on
http://code.google.com/p/acris/wiki/Security

BR

On 21. Jún, 20:07 h., Tom thomas.coz...@gmail.com wrote:
 Hi,

 I have an GWT 2.0 application using Spring and Hibernate. (GWT-SL 
 GXT)
 I would like to add a security layer and a profile handler. So I turn
 on Spring security.

 I don't find any samples of a GWT 2.0  Spring security 3.0.
 In fact, I would like a snippet of Spring security configuration.
 If anyone can help me to find the good way to start?

 Best regards
 Tom

-- 
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 2.0 - Spring Security

2010-06-22 Thread olivier nouguier
Helo Tom,
 Please take a look at

http://code.google.com/p/orcades-gwt-spring/ for MVP integration
http://code.google.com/p/orcades-gwt-spring/and
http://code.google.com/p/net-orcades-spring/

http://code.google.com/p/net-orcades-spring/You will find some info.




On Mon, Jun 21, 2010 at 8:07 PM, Tom thomas.coz...@gmail.com wrote:

 Hi,

 I have an GWT 2.0 application using Spring and Hibernate. (GWT-SL 
 GXT)
 I would like to add a security layer and a profile handler. So I turn
 on Spring security.

 I don't find any samples of a GWT 2.0  Spring security 3.0.
 In fact, I would like a snippet of Spring security configuration.
 If anyone can help me to find the good way to start?

 Best regards
 Tom

 --
 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.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com
 .
 For more options, visit this group at
 http://groups.google.com/group/google-web-toolkit?hl=en.




-- 
Computers are useless. They can only give you answers.
- Pablo Picasso -

-- 
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 2.0 - Spring Security

2010-06-21 Thread Tom
Hi,

I have an GWT 2.0 application using Spring and Hibernate. (GWT-SL 
GXT)
I would like to add a security layer and a profile handler. So I turn
on Spring security.

I don't find any samples of a GWT 2.0  Spring security 3.0.
In fact, I would like a snippet of Spring security configuration.
If anyone can help me to find the good way to start?

Best regards
Tom

-- 
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 and Spring - with Spring Web MVC or without it?

2010-06-15 Thread Richard Allen
For operations like file upload which cannot be done with Ajax, GWT
provides no server-side facilities. With Spring MVC, you can easily
wire up a Spring Controller that handles the file upload request that
a GWT client submits to.

See: 
http://static.springsource.org/spring/docs/3.0.x/spring-framework-reference/html/mvc.html#mvc-multipart

Yes, Spring MVC is a page-based framework with both server-side and
client-side facilities, and GWT is a component-based mostly client-
side only framework that was designed for web applications that
execute in a single page, such as Gmail, Google Maps, and Google Wave.
However, even an app like Gmail has a login page that is separate from
the actual application which submits a form post, then redirects the
browser to a separate page that loads the application. Spring MVC is
well suited for serving pages like that login page and handling the
form post.

Additionally, there is great benefit derived from using Spring Core
for dependency injection and AOP of your server-side code. All serious
Java web applications that I have worked on have significantly more
server-side code than client-side code.

-Richard



On Jun 13, 7:59 am, Stefan Bachert stefanbach...@yahoo.de wrote:
 Hi,

 Spring MVC does not fit to GWT at all.

 GWT considers the browser to be a thin/rich client, and the server to
 be the data source/model

 Spring MVC considers the browser to be an ultra thin client (something
 like an x-server), and considers the server to be a fat client,
 where presentation, business logic and persistence live.
 Spring MVC is an artefact of the pre-AJAX-era.

 Use GWT for real application (RIA) and use Spring MVC for hyperlinked
 documents.

 In a complex website you may switch between real applications and
 hyperlinked documents, so you will find both in one site.
 But it makes NO sense to drive GWT with Spring MVC.

 When you look at Spring Roo and its GWT support, it comes without
 Spring MVC (Spring Roo can generate Spring MVC controller but without
 GWT). It is either or

 Stefan Bacherthttp://gwtworld.de

 On Jun 8, 5:32 pm, ezamur eza...@gmail.com wrote:



  Hi all...

  I am new to GWT - had some contact with it earlier but not enough to
  say I am confident with it.

  My task is to investigate this technology and pair it with Spring
  framework. There are a lot of tutorials explaining how this can be
  done, but what is bothering me is I can't decide which approach to
  choose. For example, I've seen one using Spring's MVC (like this 
  one:http://technophiliac.wordpress.com/2008/08/24/giving-gwt-a-spring-in-...),
  but also other where integration is done without it 
  (e.g.http://code.google.com/p/gwt-spring-starter-app/)

  I am afraid to miss something important by choosing one of these
  approaches and possibly lose some of Web MVC functionalities that
  might be needed later or end up in dead end street using it.

  I would be grateful if anyone explained me what are the pros and cons
  of these approaches from practical point of view - is there a need for
  DispatcherServlet and Controllers while having GWT and its RPC
  mechanism.

  Thanks in advance.

-- 
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 and Spring - with Spring Web MVC or without it?

2010-06-14 Thread George Georgovassilis
I'll go with Stefan here.

MVC implies that the server handles much of the view - with a GWT
application the server is reduced to a glorified DAO. All you really
need is integrate services from the backend into the frontend. What we
really missing is something like RMI for the browser - GWT's RPC is as
good as it gests for this purpose and and libraries like the GWT-SL
allow you to directly publish Spring managed POJOs as services over
RPC into the client.

On Jun 13, 1:59 pm, Stefan Bachert stefanbach...@yahoo.de wrote:
 Hi,

 Spring MVC does not fit to GWT at all.

 GWT considers the browser to be a thin/rich client, and the server to
 be the data source/model

 Spring MVC considers the browser to be an ultra thin client (something
 like an x-server), and considers the server to be a fat client,
 where presentation, business logic and persistence live.
 Spring MVC is an artefact of the pre-AJAX-era.

 Use GWT for real application (RIA) and use Spring MVC for hyperlinked
 documents.

 In a complex website you may switch between real applications and
 hyperlinked documents, so you will find both in one site.
 But it makes NO sense to drive GWT with Spring MVC.

 When you look at Spring Roo and its GWT support, it comes without
 Spring MVC (Spring Roo can generate Spring MVC controller but without
 GWT). It is either or

 Stefan Bacherthttp://gwtworld.de

 On Jun 8, 5:32 pm, ezamur eza...@gmail.com wrote:

  Hi all...

  I am new to GWT - had some contact with it earlier but not enough to
  say I am confident with it.

  My task is to investigate this technology and pair it with Spring
  framework. There are a lot of tutorials explaining how this can be
  done, but what is bothering me is I can't decide which approach to
  choose. For example, I've seen one using Spring's MVC (like this 
  one:http://technophiliac.wordpress.com/2008/08/24/giving-gwt-a-spring-in-...),
  but also other where integration is done without it 
  (e.g.http://code.google.com/p/gwt-spring-starter-app/)

  I am afraid to miss something important by choosing one of these
  approaches and possibly lose some of Web MVC functionalities that
  might be needed later or end up in dead end street using it.

  I would be grateful if anyone explained me what are the pros and cons
  of these approaches from practical point of view - is there a need for
  DispatcherServlet and Controllers while having GWT and its RPC
  mechanism.

  Thanks in advance.

-- 
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 and Spring - with Spring Web MVC or without it?

2010-06-13 Thread Stefan Bachert
Hi,

Spring MVC does not fit to GWT at all.

GWT considers the browser to be a thin/rich client, and the server to
be the data source/model

Spring MVC considers the browser to be an ultra thin client (something
like an x-server), and considers the server to be a fat client,
where presentation, business logic and persistence live.
Spring MVC is an artefact of the pre-AJAX-era.

Use GWT for real application (RIA) and use Spring MVC for hyperlinked
documents.

In a complex website you may switch between real applications and
hyperlinked documents, so you will find both in one site.
But it makes NO sense to drive GWT with Spring MVC.

When you look at Spring Roo and its GWT support, it comes without
Spring MVC (Spring Roo can generate Spring MVC controller but without
GWT). It is either or

Stefan Bachert
http://gwtworld.de


On Jun 8, 5:32 pm, ezamur eza...@gmail.com wrote:
 Hi all...

 I am new to GWT - had some contact with it earlier but not enough to
 say I am confident with it.

 My task is to investigate this technology and pair it with Spring
 framework. There are a lot of tutorials explaining how this can be
 done, but what is bothering me is I can't decide which approach to
 choose. For example, I've seen one using Spring's MVC (like this 
 one:http://technophiliac.wordpress.com/2008/08/24/giving-gwt-a-spring-in-...),
 but also other where integration is done without it 
 (e.g.http://code.google.com/p/gwt-spring-starter-app/)

 I am afraid to miss something important by choosing one of these
 approaches and possibly lose some of Web MVC functionalities that
 might be needed later or end up in dead end street using it.

 I would be grateful if anyone explained me what are the pros and cons
 of these approaches from practical point of view - is there a need for
 DispatcherServlet and Controllers while having GWT and its RPC
 mechanism.

 Thanks in advance.

-- 
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 and Spring - with Spring Web MVC or without it?

2010-06-13 Thread Jan Ehrhardt
If you want to use GWT RPC for client server communication, there is no need
for Spring Web MVC. If you want to provide a RESTful API and use it for GWT
too, Spring Web MVC is a good choice for realizing RESTful APIs.

Regards
Jan Ehrhardt

2010/6/13 Stefan Bachert stefanbach...@yahoo.de

 Hi,

 Spring MVC does not fit to GWT at all.

 GWT considers the browser to be a thin/rich client, and the server to
 be the data source/model

 Spring MVC considers the browser to be an ultra thin client (something
 like an x-server), and considers the server to be a fat client,
 where presentation, business logic and persistence live.
 Spring MVC is an artefact of the pre-AJAX-era.

 Use GWT for real application (RIA) and use Spring MVC for hyperlinked
 documents.

 In a complex website you may switch between real applications and
 hyperlinked documents, so you will find both in one site.
 But it makes NO sense to drive GWT with Spring MVC.

 When you look at Spring Roo and its GWT support, it comes without
 Spring MVC (Spring Roo can generate Spring MVC controller but without
 GWT). It is either or

 Stefan Bachert
 http://gwtworld.de


 On Jun 8, 5:32 pm, ezamur eza...@gmail.com wrote:
  Hi all...
 
  I am new to GWT - had some contact with it earlier but not enough to
  say I am confident with it.
 
  My task is to investigate this technology and pair it with Spring
  framework. There are a lot of tutorials explaining how this can be
  done, but what is bothering me is I can't decide which approach to
  choose. For example, I've seen one using Spring's MVC (like this one:
 http://technophiliac.wordpress.com/2008/08/24/giving-gwt-a-spring-in-...),
  but also other where integration is done without it (e.g.
 http://code.google.com/p/gwt-spring-starter-app/)
 
  I am afraid to miss something important by choosing one of these
  approaches and possibly lose some of Web MVC functionalities that
  might be needed later or end up in dead end street using it.
 
  I would be grateful if anyone explained me what are the pros and cons
  of these approaches from practical point of view - is there a need for
  DispatcherServlet and Controllers while having GWT and its RPC
  mechanism.
 
  Thanks in advance.

 --
 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.comgoogle-web-toolkit%2bunsubscr...@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.



Re: GWT and Spring - with Spring Web MVC or without it?

2010-06-11 Thread Richard Allen
There is also the GWT Server Library from the GWT Widget Library
project: http://gwt-widget.sourceforge.net/

You should also check out the support for GWT that is now built into
Spring Roo. If you already use (or want to use) the technologies that
Spring Roo builds in, like JPA, then Roo will get you running fast
with a solid architecture that uses best practices:
http://www.springsource.org/roo
http://blog.springsource.com/2010/05/19/spring-roo-1-1-0-m1-released/
http://blog.springsource.com/2010/06/02/using-springsource-tool-suite-2-3-3-m1-with-roo-and-gwt/

I don't think there is one right answer to your question. How you use
Spring with GWT depends on your project and your team's preferences.
However, it is quite useful using Spring MVC (or some other Java web
framework) with GWT because GWT doesn't provide much server-side
facilities. In a large project, you are likely to need some static web
pages that do not use GWT, and Spring MVC makes that easy (among many
other things). Additionally, we have used Spring MVC controllers for
file upload and download, and to serve up resources from the
classpath.

I also believe it is very useful to avoid having your actual service
implementation extend from GWT's RemoteServiceServlet. Spring MVC
allows your controllers to be implemented as POJOs, and most Spring-
GWT integration libraries strive to allow you to use GWT RPC while
still implementing your services as POJOs. Some benefits to this
approach are the ease of unit testing POJOs and no dependence on GWT
libraries in your services.

Hope that helps,
-Richard


On Jun 8, 11:32 am, ezamur eza...@gmail.com wrote:
 Hi all...

 I am new to GWT - had some contact with it earlier but not enough to
 say I am confident with it.

 My task is to investigate this technology and pair it with Spring
 framework. There are a lot of tutorials explaining how this can be
 done, but what is bothering me is I can't decide which approach to
 choose. For example, I've seen one using Spring's MVC (like this 
 one:http://technophiliac.wordpress.com/2008/08/24/giving-gwt-a-spring-in-...),
 but also other where integration is done without it 
 (e.g.http://code.google.com/p/gwt-spring-starter-app/)

 I am afraid to miss something important by choosing one of these
 approaches and possibly lose some of Web MVC functionalities that
 might be needed later or end up in dead end street using it.

 I would be grateful if anyone explained me what are the pros and cons
 of these approaches from practical point of view - is there a need for
 DispatcherServlet and Controllers while having GWT and its RPC
 mechanism.

 Thanks in advance.

-- 
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 and Spring - with Spring Web MVC or without it?

2010-06-10 Thread Brian Reilly
I've had good luck with the second (non-invasive) approach. A coworker
of mine implemented the first (using Spring MVC) approach and it did
work for the most part. However, we aren't otherwise using Spring MVC
and don't have any broad expertise in it, so I was initially confused
when looking at it. Specifically, I didn't know about the relationship
between the servlet name and the -servlet.xml file, the contents of
which require some learning to understand (i.e.,
SimpleUrlHandlerMapping and its mappings property). I also didn't
like the additional wrapper GwtRpcController around the actual
service; it seems like an unnecessary layer. I think this setup keeps
you from having to extend RemoteServiceServlet, but you still have to
worry about GWT serialization of parameters and return values so I
don't see it as a big gain. Also, the proxy means that you lose
getThreadLocalRequest unless you add code to the GwtRpcController to
forward it to your service.

I like the non-invasive approach because it keeps the setup of the GWT-
RPC servlet exactly as explained in the GWT documentation. Your spring-
configured services don't change either. You just gain the ability to
inject those services into your GWT-RPC remote servlets.

I think it comes down to where you're coming from. If you already use
and like Spring MVC, you'll probably prefer the first approach. (I
hope someone with that perspective also responds to describe the
benefits of that setup.) If you like GWT and just need to integrate
with your spring-configured services, you'll probably prefer the
second approach.

-Brian

On Jun 8, 11:32 am, ezamur eza...@gmail.com wrote:
 Hi all...

 I am new to GWT - had some contact with it earlier but not enough to
 say I am confident with it.

 My task is to investigate this technology and pair it with Spring
 framework. There are a lot of tutorials explaining how this can be
 done, but what is bothering me is I can't decide which approach to
 choose. For example, I've seen one using Spring's MVC (like this 
 one:http://technophiliac.wordpress.com/2008/08/24/giving-gwt-a-spring-in-...),
 but also other where integration is done without it 
 (e.g.http://code.google.com/p/gwt-spring-starter-app/)

 I am afraid to miss something important by choosing one of these
 approaches and possibly lose some of Web MVC functionalities that
 might be needed later or end up in dead end street using it.

 I would be grateful if anyone explained me what are the pros and cons
 of these approaches from practical point of view - is there a need for
 DispatcherServlet and Controllers while having GWT and its RPC
 mechanism.

 Thanks in advance.

-- 
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 and Spring - with Spring Web MVC or without it?

2010-06-08 Thread ezamur
Hi all...

I am new to GWT - had some contact with it earlier but not enough to
say I am confident with it.

My task is to investigate this technology and pair it with Spring
framework. There are a lot of tutorials explaining how this can be
done, but what is bothering me is I can't decide which approach to
choose. For example, I've seen one using Spring's MVC (like this one:
http://technophiliac.wordpress.com/2008/08/24/giving-gwt-a-spring-in-its-step/),
but also other where integration is done without it (e.g.
http://code.google.com/p/gwt-spring-starter-app/)

I am afraid to miss something important by choosing one of these
approaches and possibly lose some of Web MVC functionalities that
might be needed later or end up in dead end street using it.

I would be grateful if anyone explained me what are the pros and cons
of these approaches from practical point of view - is there a need for
DispatcherServlet and Controllers while having GWT and its RPC
mechanism.

Thanks in advance.

-- 
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 and Spring

2010-03-27 Thread Marley
Does anyone know of an up to date guide on how to integrate GWT and
Spring IOC?  When i google it i see a lot of out of date material.

-- 
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 and Spring

2010-03-27 Thread olivier nouguier
Server side or Client side ?

Client side you should take a look at GIN.
Server side, many solution exist IMHO I prefer solution without xml
configuration (annotation  detection based).
It very easy an instructive to build your own solution.
You can take a look at my (hobby) project
http://code.google.com/p/orcades-gwt-spring/wiki/orcadesGWTSpringHandler
http://code.google.com/p/orcades-gwt-spring/wiki/orcadesGWTSpringHandlerI
think this solution i rather simple.
HIH


On Sat, Mar 27, 2010 at 2:26 PM, Marley nathaniel.au...@gmail.com wrote:

 Does anyone know of an up to date guide on how to integrate GWT and
 Spring IOC?  When i google it i see a lot of out of date material.

 --
 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.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com
 .
 For more options, visit this group at
 http://groups.google.com/group/google-web-toolkit?hl=en.




-- 
A coward is incapable of exhibiting love; it is the prerogative of the
brave.
--
Mohandas Gandhi

-- 
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 and Spring Security in Eclipse IDE

2010-03-05 Thread Marley
I am using Spring Security with my GWT application and have it
working.  however, to get it working in the Eclipse IDE i have to
include the gwt.codeserver in the url of my default-target-url as
in

security:http auto-config='true'
security:intercept-url pattern=/login.html* filters=none /
security:intercept-url pattern=/** access=ROLE_USER /
security:form-login login-page='/login.html' default-target-
url='/MyApp.html?gwt.codesvr=55.55.55.55:9997'  always-use-default-
target='true'/
security:logout logout-success-url=/login.html/
/security:http


While this works in development i do not want this in my production
environment.  Can anyone offer any advice?  I guess worst case i could
have my Ant build script overwrite that value when i build for
production although it seems sub-optimal.

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



Best practices/ideas for GWT with Spring Security (or equivalent)

2010-02-19 Thread Paul S
I would like to debate some ideas for how to secure GWT apps in
different ways and their pros and cons. It is important to remember
that there will be different needs and so different approaches will be
more suitable in certain cases, but I just want to be aware of what
people are doing.

I am using Spring Security because it is excellent, and whilst I am
aware that there are many other solutions available this is not the
focus here, so I'll just call it Security from here on.

Security offers protection of URLs and also some more fancy AOP style
protection like protection of specific functions. To keep things
simple here lets just look at protection of URLs.

1. Without Ajax - Protecting URLs that relate to pages

Before the days of Ajax where a URL effectively corresponds to a state
you can see how the model becomes straight forward. Adam accesses /
home.html, it loads and Adam gets to read a bunch of content. At this
point Adam is considered to be a Guest. Adam is curious about a link
called Administration, when he clicks it he is sending a Request.
That Request has some header info embedded in it (which the user never
sees but you can see if with Firebug or whatever). Sadly Adam is not
signed in so Security redirects him to a login page, but remembers
everything about that original Request. Adam suddenly remembers he
does have a user name and password so he logs in. Security processes
his login and then redirects him to the exact equivalent of what would
have been the original Request. Adam is happy because his work flow
continued seamlessly despite being asked to login.

(Ok, Spring Security can be configured to replay the original Request
upon successful login (default), or it can be forced to send you to a
particular default login success page. If you use the latter then
Adam's work flow will not be seamless because his original request for
the Administration page has been forgotten. Though sometimes you
might need a set up like this?)

Now Ajax comes along, and in particular I'm going to talk about GWT
here but the principles apply.

2.a. With Ajax - but still protecting URLs that relate to pages

If we use Security to protect the URL of container page (in GWT that's
the page that hosts the bootstrap javascript code for your GWT app)
then, just like normal if Adam visits /home.html he will be able to
read the content on that page. The Administration link has been
modified to take you to /admin.html which is in fact the host page the
GWT administrator module. Adam clicks Administration which Security
knows requires the Admin role so he is redirected to the login page.
Adam logs in and whether Security is configured to play back the exact
Request or whether you specifically move the browser along to /
admin.html, at this point doesn't matter. Adam is now looking at a
fully loaded GWT application. Lets say also that Security is told to
protect every GWT RPC call. Well Adam is logged in so he is allowed
access to the server services via GWT RPC and all goes smoothly...
until Adam leaves his computer for an hour and comes back to continue
his work. When the next server call that occurs is met by Security who
says, since your session has expired you are not logged in, so I'm
going to redirect you to the login page. XmlHttpRequest obeys the 30x
response code which is telling it to actually load the resource at /
login.html. In GWT this amounts to an InvocationException where the
error message content is your /login.html page markup. That's no good!
The XHR cannot interpret this as your browser would, so what to do?
The answer is pretty straightforward here. Design your /login.html
page to contain a text token that you can search for. So for example
in my /login.html code I have places an html comment right at the top
like this
!-- SECURITY-LOGIN-PAGE --
so when the browser hits the /login.html page it just looks like a
regular login page. But when the RPC call encounters this
InvocationTarget exception I have an onFailure handler that looks like
this:

   public void onFailure(Throwable t) {
  if (t instanceof InvocationException){
 if (t.getMessage().split(!--\\s*SECURITY-LOGIN-PAGE\\s*--
).length  1){
onLoginRequested();
} else {...}
  } else {...}
   }

My onLoginRequested() method could be any of a few styles. The most
obvious is to have it call a native method that looks like this:

   private native void redirectToLogin() /*-{
  $wnd.location.replace(/login.html);
   }-*/;

Now at this point we have to get clear on the behaviour of Security
with regard to where it redirects the browser after successful login.
In this case you would have to specify that it ALWAYS redirects you
to /admin.html so that when Adam signs in again he is taken back into
the Administration app. But sadly his page state (history tokens) is
lost and he's back on the front screen of your app and is now required
to put the app back into the state it was before (i.e. Adam may have
had some 

Re: Best practices/ideas for GWT with Spring Security (or equivalent)

2010-02-19 Thread Paul S
addendum: my session expired whilst writing this!

On Feb 19, 1:07 pm, Paul S paulsschw...@gmail.com wrote:
 I would like to debate some ideas for how to secure GWT apps in
 different ways and their pros and cons. It is important to remember
 that there will be different needs and so different approaches will be
 more suitable in certain cases, but I just want to be aware of what
 people are doing.

 I am using Spring Security because it is excellent, and whilst I am
 aware that there are many other solutions available this is not the
 focus here, so I'll just call it Security from here on.

 Security offers protection of URLs and also some more fancy AOP style
 protection like protection of specific functions. To keep things
 simple here lets just look at protection of URLs.

 1. Without Ajax - Protecting URLs that relate to pages

 Before the days of Ajax where a URL effectively corresponds to a state
 you can see how the model becomes straight forward. Adam accesses /
 home.html, it loads and Adam gets to read a bunch of content. At this
 point Adam is considered to be a Guest. Adam is curious about a link
 called Administration, when he clicks it he is sending a Request.
 That Request has some header info embedded in it (which the user never
 sees but you can see if with Firebug or whatever). Sadly Adam is not
 signed in so Security redirects him to a login page, but remembers
 everything about that original Request. Adam suddenly remembers he
 does have a user name and password so he logs in. Security processes
 his login and then redirects him to the exact equivalent of what would
 have been the original Request. Adam is happy because his work flow
 continued seamlessly despite being asked to login.

 (Ok, Spring Security can be configured to replay the original Request
 upon successful login (default), or it can be forced to send you to a
 particular default login success page. If you use the latter then
 Adam's work flow will not be seamless because his original request for
 the Administration page has been forgotten. Though sometimes you
 might need a set up like this?)

 Now Ajax comes along, and in particular I'm going to talk about GWT
 here but the principles apply.

 2.a. With Ajax - but still protecting URLs that relate to pages

 If we use Security to protect the URL of container page (in GWT that's
 the page that hosts the bootstrap javascript code for your GWT app)
 then, just like normal if Adam visits /home.html he will be able to
 read the content on that page. The Administration link has been
 modified to take you to /admin.html which is in fact the host page the
 GWT administrator module. Adam clicks Administration which Security
 knows requires the Admin role so he is redirected to the login page.
 Adam logs in and whether Security is configured to play back the exact
 Request or whether you specifically move the browser along to /
 admin.html, at this point doesn't matter. Adam is now looking at a
 fully loaded GWT application. Lets say also that Security is told to
 protect every GWT RPC call. Well Adam is logged in so he is allowed
 access to the server services via GWT RPC and all goes smoothly...
 until Adam leaves his computer for an hour and comes back to continue
 his work. When the next server call that occurs is met by Security who
 says, since your session has expired you are not logged in, so I'm
 going to redirect you to the login page. XmlHttpRequest obeys the 30x
 response code which is telling it to actually load the resource at /
 login.html. In GWT this amounts to an InvocationException where the
 error message content is your /login.html page markup. That's no good!
 The XHR cannot interpret this as your browser would, so what to do?
 The answer is pretty straightforward here. Design your /login.html
 page to contain a text token that you can search for. So for example
 in my /login.html code I have places an html comment right at the top
 like this
 !-- SECURITY-LOGIN-PAGE --
 so when the browser hits the /login.html page it just looks like a
 regular login page. But when the RPC call encounters this
 InvocationTarget exception I have an onFailure handler that looks like
 this:

    public void onFailure(Throwable t) {
       if (t instanceof InvocationException){
          if 
 (t.getMessage().split(!--\\s*SECURITY-LOGIN-PAGE\\s*--).length  1){

             onLoginRequested();
         } else {...}
       } else {...}
    }

 My onLoginRequested() method could be any of a few styles. The most
 obvious is to have it call a native method that looks like this:

    private native void redirectToLogin() /*-{
       $wnd.location.replace(/login.html);
    }-*/;

 Now at this point we have to get clear on the behaviour of Security
 with regard to where it redirects the browser after successful login.
 In this case you would have to specify that it ALWAYS redirects you
 to /admin.html so that when Adam signs in again he is taken back into
 the Administration app. But 

  1   2   >