How to use acris Security

22 views
Skip to first unread message

Dilantha Silva

unread,
Mar 7, 2013, 2:22:08 AM3/7/13
to ac...@googlegroups.com
Hi all,

I want to use acris security in my gwt application. But im not familar with maven and my application is not built by using maven. So i tried to implement security by using all the jars in acris bundle. That doesnt seems to be working.  When i tried to compile the code im getting below exception. Any help would be really appreciated . Thanks in advance .


[ERROR] Unexpected error while processing XML
java.lang.VerifyError: class sk.seges.acris.core.rebind.ServiceProxyGenerator overrides final method generate.(Lcom/google/gwt/core/ext/TreeLogger;Lcom/google/gwt/core/ext/GeneratorContext;Ljava/lang/String;)Ljava/lang/String;
    at java.lang.ClassLoader.defineClass1(Native Method)
    at java.lang.ClassLoader.defineClassCond(Unknown Source)
    at java.lang.ClassLoader.defineClass(Unknown Source)
    at java.security.SecureClassLoader.defineClass(Unknown Source)
    at java.net.URLClassLoader.defineClass(Unknown Source)
    at java.net.URLClassLoader.access$000(Unknown Source)
    at java.net.URLClassLoader$1.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at com.google.gwt.dev.cfg.ModuleDefSchema$ClassAttrCvt.convertToArg(ModuleDefSchema.java:884)
    at com.google.gwt.dev.util.xml.HandlerArgs.convertToArg(HandlerArgs.java:64)
    at com.google.gwt.dev.util.xml.HandlerMethod.invokeBegin(HandlerMethod.java:221)
    at com.google.gwt.dev.util.xml.ReflectiveParser$Impl.startElement(ReflectiveParser.java:294)
    at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement(Unknown Source)
    at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanStartElement(Unknown Source)
    at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(Unknown Source)
    at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(Unknown Source)
    at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
    at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
    at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
    at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown Source)
    at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Unknown Source)
    at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
    at com.google.gwt.dev.util.xml.ReflectiveParser$Impl.parse(ReflectiveParser.java:347)
    at com.google.gwt.dev.util.xml.ReflectiveParser$Impl.access$200(ReflectiveParser.java:68)
    at com.google.gwt.dev.util.xml.ReflectiveParser.parse(ReflectiveParser.java:418)
    at com.google.gwt.dev.cfg.ModuleDefLoader.nestedLoad(ModuleDefLoader.java:326)
    at com.google.gwt.dev.cfg.ModuleDefSchema$BodySchema.__inherits_begin(ModuleDefSchema.java:493)
    at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at com.google.gwt.dev.util.xml.HandlerMethod.invokeBegin(HandlerMethod.java:230)
    at com.google.gwt.dev.util.xml.ReflectiveParser$Impl.startElement(ReflectiveParser.java:294)
    at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement(Unknown Source)
    at com.sun.org.apache.xerces.internal.parsers.AbstractXMLDocumentParser.emptyElement(Unknown Source)
    at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanStartElement(Unknown Source)
    at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(Unknown Source)
    at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(Unknown Source)
    at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
    at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
    at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
    at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown Source)
    at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Unknown Source)
    at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
    at com.google.gwt.dev.util.xml.ReflectiveParser$Impl.parse(ReflectiveParser.java:347)
    at com.google.gwt.dev.util.xml.ReflectiveParser$Impl.access$200(ReflectiveParser.java:68)
    at com.google.gwt.dev.util.xml.ReflectiveParser.parse(ReflectiveParser.java:418)
    at com.google.gwt.dev.cfg.ModuleDefLoader.nestedLoad(ModuleDefLoader.java:326)
    at com.google.gwt.dev.cfg.ModuleDefSchema$BodySchema.__inherits_begin(ModuleDefSchema.java:493)
    at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source)


Ladislav Gazo

unread,
Mar 7, 2013, 3:30:22 AM3/7/13
to ac...@googlegroups.com
Hi,

can you be more specific what does not work? The stack trace you've sent looks like you have different Java version... What kind of JDK do you use?

Laco

Dňa štvrtok, 7. marca 2013 8:22:08 UTC+1 Dilantha Silva napísal(-a):

dilantha silva

unread,
Mar 7, 2013, 4:23:43 AM3/7/13
to ac...@googlegroups.com
Hi Laco,

Thanks a lot for your reply. I just tried to create a sample application ( I have attached the class with this) to check the functionality of Acris client security before adding it to my main application. Im using JDK 1.6 and GWT SDK 2.5. Basically what i need to do is add GWT authorization mechanism for my GWT application. Acris client security is the best solution that i have came across. But my existing application is not bundled with maven. So i added all the jars inside acris bundle and created a sample project to see the functionality. When i tried to compile the application i got that exception which i sent you earlier.

Acris client security seems to be the best solution that i have came across since my

--
You received this message because you are subscribed to the Google Groups "acris" group.
To unsubscribe from this group and stop receiving emails from it, send an email to acris+un...@googlegroups.com.
To post to this group, send email to ac...@googlegroups.com.
Visit this group at http://groups.google.com/group/acris?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
 
 



--
Regards,

Dilantha Silva,
http://twitter.com/dilanthasilva | http://www.linkedin.com/in/dilanthasilva|
https://launchpad.net/~dilantha
TestUi.java

Ladislav Gazo

unread,
Mar 7, 2013, 5:25:46 AM3/7/13
to ac...@googlegroups.com
Well if you are using the released version from the bundle it is utilizing GWT 2.3. Only now in the trunk source we are running GWT 2.5 which we were not able to release yet. But we are working hard on that. So if you want you can compile your version from source and stick with 2.5 but if you want to use it with released version you have to downgrade to 2.3.

And thanks that you like Acris security, it is good to hear that it is useful.

Dňa štvrtok, 7. marca 2013 10:23:43 UTC+1 Dilantha Silva napísal(-a):

dilantha silva

unread,
Mar 7, 2013, 6:43:43 AM3/7/13
to ac...@googlegroups.com
Hi Laco,

I have downgrade to 2.3 and tried. I have included this in <inherits name='sk.seges.acris.Security'/> my gwt.xml.

Now im getting

 Unable to find 'com/google/gwt/validation/Validation.gwt.xml'

In GWT 2.3 Validation package doesnt seems to be available. Its available in 2.5 only. any idea ?
Reply all
Reply to author
Forward
0 new messages