Giter Site home page Giter Site logo

gwt-incubator-lib's Introduction

gwt-incubator-lib

Automatically exported from code.google.com/p/gwt-incubator-lib

Incubator for various ideas

Security

NEW :

Beside this module, a web app is provided to illustrate how to use this security lib in a real (even if simple) app context.

There is no simple way to manage exception thrown from [http://static.springframework.org/spring-security/site/index.html Spring Security] when using GWT as a GUI. That's why I decided to add the thin layer needed to simplify this integration. The requirements are :

If you are in this case, or if you can modify your project to reach this state, you will be able to use this new incubator project.

Source code is now available with documentation

A 5 minutes long How-To : SimpleHowTo

A quick introduction is available here : GwtIncubatorSecurity

UPDATE :

  • GWT 1.7 compatibility

!TimePicker

NEW : !TimePicker is now compatible with GWT 1.7 : No more deprecated methods used. But it's still in alpha stage as it needs to be cleaned/improved.

The goal behind this project was to provide a component acting as the [http://haineault.com/media/jquery/ui-timepickr/page/#d-demo-wrapper-1 jQuery TimePicker]

[http://gwt-incubator-lib.googlecode.com/svn/trunk/GWT-Incubator-Demo/com.gwtincubator.TimePickerEntryPoint/TimePickerEntryPoint.html THE demo]

UPDATE :

  • GWT 1.7 compatibility

gwt-incubator-lib's People

Contributors

dmartinpro avatar

Watchers

James Cloos avatar

gwt-incubator-lib's Issues

Add compatibility with GileadRPCServiceExporter

Hello,

GWT-SL 1.0 now support Gilead integration (see http://gwt-
widget.sourceforge.net/gwt-sl/reference-1.0/index.html#Hibernate4GWT)

I think it is not too hard : GileadRPCServiceExporter needs an Gilead 
provided beanManager. See the link above for samples.

It would be nice to have this feature integrated in your great library !

Original issue reported on code.google.com by [email protected] on 28 Oct 2009 at 10:52

SpringSecurityLoginWidget posts to an invalid address

Problem using the SpringSecurityLoginWidget. The widget posts to an invalid
address.

Found problems with the GWTUtil.getContextUrl().

Changed it to:
public static String getContextUrl () {
        if (GWT.getHostPageBaseURL().equals(GWT.getModuleBaseURL())) {
            final String ret = GWT.getHostPageBaseURL();
            int indexLast = ret.lastIndexOf(GWT.getModuleName());
            return ret.substring(0,
indexLast).replaceAll("[http|https]+:\\/\\/[0-9a-zA-Z.]*[:]*[0-9]*", "");
        } else {
            return GWT.getHostPageBaseURL();
        }
    }

And now the sampelapp works fine.


Using:
gwt-incubator-security-1.0.1-SNAPSHOT


Original issue reported on code.google.com by [email protected] on 14 Aug 2009 at 9:33

NullPointerException when trying to access getThreadLocalRequest()

Hello I'm using the incubator lib just recently and I have a problem with a 
gwt service that was working just fine but when change the URL mapper for the
GWTSecuredHandler, every time I want to access the HTTP session with the
method getThreadLocalRequest() returns null.

Can you help me please.

Original issue reported on code.google.com by [email protected] on 21 Jul 2009 at 5:54

java.lang.NoSuchMethodError: net.entropysoft.transmorph.Transmorph.convert(Ljava/lang/Object;Ljava/lang/Class;)Ljava/lang/Object;

My test app fails with the following:
java.lang.NoSuchMethodError:
net.entropysoft.transmorph.Transmorph.convert(Ljava/lang/Object;Ljava/lang/Class
;)Ljava/lang/Object;
    at
com.gwtincubator.security.server.GWTSecuredHandler.getHandlerInternal(GWTSecured
Handler.java:46)
    at
org.springframework.web.servlet.handler.AbstractHandlerMapping.getHandler(Abstra
ctHandlerMapping.java:184)
    at
org.springframework.web.servlet.DispatcherServlet.getHandler(DispatcherServlet.j
ava:1057)
    at
org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.j
ava:854)
    at
org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.ja
va:807)
    at
org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet
.java:571)
    at
org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:51
1)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
    at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:487)
    at
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.jav
a:1097)
    at
org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(F
ilterChainProxy.java:378)
    at
org.springframework.security.intercept.web.FilterSecurityInterceptor.invoke(Filt
erSecurityInterceptor.java:109)
    at
org.springframework.security.intercept.web.FilterSecurityInterceptor.doFilter(Fi
lterSecurityInterceptor.java:83)
    at
org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(F
ilterChainProxy.java:390)
    at
org.springframework.security.ui.SessionFixationProtectionFilter.doFilterHttp(Ses
sionFixationProtectionFilter.java:52)
    at
org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilt
er.java:53)
    at
org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(F
ilterChainProxy.java:390)
    at
org.springframework.security.ui.ExceptionTranslationFilter.doFilterHttp(Exceptio
nTranslationFilter.java:101)
    at
org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilt
er.java:53)
    at
org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(F
ilterChainProxy.java:390)
    at
org.springframework.security.providers.anonymous.AnonymousProcessingFilter.doFil
terHttp(AnonymousProcessingFilter.java:105)
    at
org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilt
er.java:53)
    at
org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(F
ilterChainProxy.java:390)
    at
org.springframework.security.ui.rememberme.RememberMeProcessingFilter.doFilterHt
tp(RememberMeProcessingFilter.java:109)
    at
org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilt
er.java:53)
    at
org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(F
ilterChainProxy.java:390)
    at
org.springframework.security.wrapper.SecurityContextHolderAwareRequestFilter.doF
ilterHttp(SecurityContextHolderAwareRequestFilter.java:91)
    at
org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilt
er.java:53)
    at
org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(F
ilterChainProxy.java:390)
    at
org.springframework.security.ui.basicauth.BasicProcessingFilter.doFilterHttp(Bas
icProcessingFilter.java:174)
    at
org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilt
er.java:53)
    at
org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(F
ilterChainProxy.java:390)
    at
org.springframework.security.ui.webapp.DefaultLoginPageGeneratingFilter.doFilter
Http(DefaultLoginPageGeneratingFilter.java:86)
    at
org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilt
er.java:53)
    at
org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(F
ilterChainProxy.java:390)
    at
org.springframework.security.ui.AbstractProcessingFilter.doFilterHttp(AbstractPr
ocessingFilter.java:277)
    at
org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilt
er.java:53)
    at
org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(F
ilterChainProxy.java:390)
    at
org.springframework.security.ui.logout.LogoutFilter.doFilterHttp(LogoutFilter.ja
va:89)
    at
org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilt
er.java:53)
    at
org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(F
ilterChainProxy.java:390)
    at
org.springframework.security.context.HttpSessionContextIntegrationFilter.doFilte
rHttp(HttpSessionContextIntegrationFilter.java:235)
    at
org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilt
er.java:53)
    at
org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(F
ilterChainProxy.java:390)
    at
org.springframework.security.util.FilterChainProxy.doFilter(FilterChainProxy.jav
a:175)
    at
org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFi
lterProxy.java:236)
    at
org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterPr
oxy.java:167)
    at
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.jav
a:1088)
    at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:360)
    at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
    at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
    at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java: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:205)
    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)

What version of the product are you using? On what operating system?
. gwt-incubator-security-1.0.0-SNAPSHOT.jar
. transmorph-2.2.0.jar

Original issue reported on code.google.com by [email protected] on 7 Jul 2009 at 2:42

Serialization Exception thrown when using gwt-incubator-lib

I am currently using
. GWT 1.7
. gwt-incubator-lib
. EXT-GWT 2

And noticed the following exception is being thrown when using 
GWTSecuredHandler:

[WARN] Exception while dispatching incoming RPC call
com.google.gwt.user.client.rpc.IncompatibleRemoteServiceException: Type 
'com.extjs.gxt.ui.client.data.BasePagingLoadConfig' was not assignable to 
'com.google.gwt.user.client.rpc.IsSerializable' and did not have a custom 
field serializer.  For security purposes, this type will not be 
deserialized.


This does not occur when using the GWTHandler.

Original issue reported on code.google.com by [email protected] on 5 Aug 2009 at 7:32

transmorph

when i import transmorph-3.0.jar have a error.only import
transmorph-2.0.jar.And how to achieve logout with security in my application?


Original issue reported on code.google.com by [email protected] on 27 Jan 2010 at 9:03

Not compatible with Spring Security 3

What steps will reproduce the problem?
1. Use spring security 3.0.0+ with gwt-incubator-lib

What is the expected output? What do you see instead?
SEVERE: [1252146743234000] javax.servlet.ServletContext log: Exception
while dispatching incoming RPC call
java.lang.NoClassDefFoundError:
org/springframework/security/SpringSecurityException
    at
com.gwtincubator.security.server.GWTRPCSecuredServiceExporter.processCall(GWTRPC
SecuredServiceExporter.java:92)
    at
com.google.gwt.user.server.rpc.RemoteServiceServlet.doPost(RemoteServiceServlet.
java:86)
    at
org.gwtwidgets.server.spring.GWTRPCServiceExporter.handleRequest(GWTRPCServiceEx
porter.java:363)
    at
org.springframework.web.servlet.mvc.HttpRequestHandlerAdapter.handle(HttpRequest
HandlerAdapter.java:49)
    at
org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.j
ava:763)
...

What version of the product are you using? On what operating system?
Spring 3.0.0 M1 and swt-incubator-lib 1.0.1
Operating system: all

Please provide any additional information below.
SpringSecurityException class referenced by gwt-incubator-lib was removed
in Spring 3.0.0 M1 and it will be no longer available.
jira.springframework.org/browse/SEC-1136

Original issue reported on code.google.com by [email protected] on 5 Sep 2009 at 10:57

com.google.gwt.user.client.rpc.IncompatibleRemoteServiceException under GWT 1.6.4

While I tryed to use the Exporter under GWT 1.6.4 I get the following
exception:
com.google.gwt.user.client.rpc.IncompatibleRemoteServiceException

I solved this problem by editing following lines in
GWTPRCSecuredServiceExporter:
final RPCRequest rpcRequest = RPC.decodeRequest(payload);
to:
final RPCRequest rpcRequest = RPC.decodeRequest(payload, null, this);

So I was able to create a HB4GWTRPCSecuredServiceExporter. The code is
attached to this issue. The inherit GWTRPCSecuredServiceExporter is the
corrected version.

Original issue reported on code.google.com by [email protected] on 17 May 2009 at 9:27

Attachments:

GWTSecuredHandler bad import?

What steps will reproduce the problem?
My app dont start up beacuse
The GWTSecuredHandler.java gets this imports:
import net.entropysoft.transmorph.DefaultConverters;
import net.entropysoft.transmorph.Transmorph;
import net.entropysoft.transmorph.converters.beans.BeanToBeanMapping;


What is the expected output? What do you see instead?
gwt-incubator-security-1.0.0-SNAPSHOT.jar

What version of the product are you using? On what operating system?
win XP and Linux

Please provide any additional information below.

Stack trace:

org.springframework.beans.factory.BeanCreationException: Error creating
bean with name 'urlMapping' defined in ServletContext resource
[/WEB-INF/springapp-servlet.xml]: Instantiation of bean failed; nested
exception is java.lang.NoClassDefFoundError:
net/entropysoft/transmorph/IConverter
    at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.ins
tantiateBean(AbstractAutowireCapableBeanFactory.java:883)
    at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.cre
ateBeanInstance(AbstractAutowireCapableBeanFactory.java:839)
    at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doC
reateBean(AbstractAutowireCapableBeanFactory.java:440)
    at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.r
un(AbstractAutowireCapableBeanFactory.java:409)
    at java.security.AccessController.doPrivileged(Native Method)
    at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.cre
ateBean(AbstractAutowireCapableBeanFactory.java:380)
    at
org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(Abstra
ctBeanFactory.java:264)
    at
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingle
ton(DefaultSingletonBeanRegistry.java:222)
    at
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(Abstract
BeanFactory.java:261)
    at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBe
anFactory.java:185)
    at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBe
anFactory.java:164)
    at
org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstanti
ateSingletons(DefaultListableBeanFactory.java:429)
    at
org.springframework.context.support.AbstractApplicationContext.finishBeanFactory
Initialization(AbstractApplicationContext.java:728)
    at
org.springframework.context.support.AbstractApplicationContext.refresh(AbstractA
pplicationContext.java:380)
    at
org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(Fra
meworkServlet.java:402)
    at
org.springframework.web.servlet.FrameworkServlet.initWebApplicationContext(Frame
workServlet.java:316)
    at
org.springframework.web.servlet.FrameworkServlet.initServletBean(FrameworkServle
t.java:282)
    at
org.springframework.web.servlet.HttpServletBean.init(HttpServletBean.java:126)
    at javax.servlet.GenericServlet.init(GenericServlet.java:212)
    at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1161)
    at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:981)
    at
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4058
)
    at org.apache.catalina.core.StandardContext.start(StandardContext.java:4364)
    at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
    at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)
    at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
    at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
    at org.apache.catalina.core.StandardService.start(StandardService.java:516)
    at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
    at org.apache.catalina.startup.Catalina.start(Catalina.java:578)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.jav
a:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
    at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
Caused by: java.lang.NoClassDefFoundError:
net/entropysoft/transmorph/IConverter
    at java.lang.Class.getDeclaredConstructors0(Native Method)
    at java.lang.Class.privateGetDeclaredConstructors(Class.java:2389)
    at java.lang.Class.getConstructor0(Class.java:2699)
    at java.lang.Class.getDeclaredConstructor(Class.java:1985)
    at
org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiat
e(SimpleInstantiationStrategy.java:54)
    at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.ins
tantiateBean(AbstractAutowireCapableBeanFactory.java:877)
    ... 35 more
Caused by: java.lang.ClassNotFoundException:
net.entropysoft.transmorph.IConverter
    at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:13
60)
    at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:12
06)
    at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
    ... 41 more


Original issue reported on code.google.com by [email protected] on 17 Mar 2009 at 8:57

I made a change to the TimePicker

What steps will reproduce the problem?
1.
2.
3.

What is the expected output? What do you see instead?
I will attach the source code, but instead of the 24hr buttons
I added some extra if/else statements and a Boolean (24hr or not)
to display non 24hr on the buttons. I had to create a new Am/Pm time model 
converter. If you guys want it, please let me know what email address to send 
it to.

What version of the product are you using? On what operating system?


Please provide any additional information below.


Original issue reported on code.google.com by [email protected] on 3 Jan 2011 at 5:02

Incompatibility with Spring Security 3.0.1

Unfortunately, there is a incompatibility issue with the last "Spring
Security" release. This is the log reported by Jetty:

[WARN] Exception while dispatching incoming RPC call
java.lang.NoClassDefFoundError:
org/springframework/security/SpringSecurityException
    at
com.gwtincubator.security.server.GWTRPCSecuredServiceExporter.processCall(GWTRPC
SecuredServiceExporter.java:92)

Original issue reported on code.google.com by [email protected] on 5 Feb 2010 at 4:42

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.