GWT Login/ Logout/ Remember Me (with concern in preventing Cross-Site Request Forgeries) Example

2010-04-07 Thread yccheok
Does anyone have a good code example, on how to implement login/logout/
remember me feature, using GWT, with concern on Cross-Site Request
Forgeries.

My plan is to use HttpOnly : 
http://www.codinghorror.com/blog/2008/08/protecting-your-cookies-httponly.html

However, I am not sure whether that will be sufficient enough.

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.



Problem in Running GWT NetBeans Tutorial

2010-03-28 Thread yccheok
I am using

GWT4NB 2.6.17
NetBeans 6.7.1
GlassFish v2.1

I try to follow the tutorial 
http://netbeans.org/kb/docs/web/quickstart-webapps-gwt.html#creating

However, when I click run, I get the follow error in HelloGWT (run)
log Windows


...
...
do-gwt-compile-20:
In-place deployment at C:\Projects\HelloGWT\build\web
Start registering the project's server resources
Finished registering server resources
moduleID=HelloGWT
While redeploying, trying to stop the application in target server
failed; Error Flushing ConfigContext
com.sun.enterprise.config.ConfigContext: Url=C:/Sun/AppServer/domains/
domain1\config\domain.xml, ReadOnly=false, ResolvePath=true,
LastModified Timestamp=1250764969788, isChanged=false,
Autocommit=false, isConfigBeanNull=false
C:\Projects\HelloGWT\nbproject\build-impl.xml:568: The module has not
been deployed.
BUILD FAILED (total time: 1 second)


and the following error in GlassFish v2.1 log Windows


...
...
[AutoDeploy] Selecting file C:\Sun\AppServer\lib\install\applications
\MEjbApp.ear for autodeployment.
deployed with moduleid = MEjbApp
ADM0013: A config exception occurred. Details are:
com.sun.enterprise.config.ConfigException: Error Flushing
ConfigContext com.sun.enterprise.config.ConfigContext: Url=C:/Sun/
AppServer/domains/domain1\config\domain.xml, ReadOnly=false,
ResolvePath=true, LastModified Timestamp=1250764969788,
isChanged=true, Autocommit=false, isConfigBeanNull=false
at
com.sun.enterprise.config.impl.ConfigContextImpl.flush(ConfigContextImpl.java:
356)
at
com.sun.enterprise.config.impl.ConfigContextImpl.flush(ConfigContextImpl.java:
372)

...
...

at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:
25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.sun.enterprise.server.PELaunch.main(PELaunch.java:415)
;_RequestID=cae5e2be-a0f8-45a8-89bb-4cc70515b085;|DPL8011:
autodeployment failure while deploying the application : Error
Flushing ConfigContext com.sun.enterprise.config.ConfigContext: Url=C:/
Sun/AppServer/domains/domain1\config\domain.xml, ReadOnly=false,
ResolvePath=true, LastModified Timestamp=1250764969788,
isChanged=true, Autocommit=false, isConfigBeanNull=false

[AutoDeploy] Autodeploy failed : C:\Sun\AppServer\lib\install
\applications\__ejb_container_timer_app.ear.
[AutoDeploy] Selecting file C:\Sun\AppServer\lib\install\applications
\__JWSappclients.ear for autodeployment.
deployed with moduleid = __JWSappclients
ADM0013: A config exception occurred. Details are:
com.sun.enterprise.config.ConfigException: Error Flushing
ConfigContext com.sun.enterprise.config.ConfigContext: Url=C:/Sun/
AppServer/domains/domain1\config\domain.xml, ReadOnly=false,
ResolvePath=true, LastModified Timestamp=1250764969788,
isChanged=true, Autocommit=false, isConfigBeanNull=false
at
com.sun.enterprise.config.impl.ConfigContextImpl.flush(ConfigContextImpl.java:
356)
at
com.sun.enterprise.config.impl.ConfigContextImpl.flush(ConfigContextImpl.java:
372)

...
...
WEB0712: Starting Sun-Java-System/Application-Server HTTP/1.1 on 4848
SMGT0007: Self Management Rules service is enabled
JBIFW5002: Failed to write httpsoap configuration file C:/Sun/
AppServer/domains/domain1/jbi\components\sun-http-binding\install_root
\workspace\config.properties : C:\Sun\AppServer\domains\domain1\jbi
\components\sun-http-binding\install_root\workspace\config.properties
(Access is denied)
Application server startup complete.
deployed with moduleid = HelloGWT
ADM0013: A config exception occurred. Details are:
com.sun.enterprise.config.ConfigException: Error Flushing
ConfigContext com.sun.enterprise.config.ConfigContext: Url=C:/Sun/
AppServer/domains/domain1\config\domain.xml, ReadOnly=false,
ResolvePath=true, LastModified Timestamp=1250764969788,
isChanged=true, Autocommit=false, isConfigBeanNull=false
at
com.sun.enterprise.config.impl.ConfigContextImpl.flush(ConfigContextImpl.java:
356)
at
com.sun.enterprise.config.impl.ConfigContextImpl.flush(ConfigContextImpl.java:
372)

...
...
at
com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:
265)
at
com.sun.enterprise.web.connector.grizzly.WorkerThreadImpl.run(WorkerThreadImpl.java:
116)
Undeployment of component [HelloGWT] failed. Application HelloGWT is
referenced by server and must be referenced by no server instances or
clusters.


Anything I had missed out? 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.