Hi there, I am trying to create an applet in grails.
I have installed the applet plugin in grails project.
I have added some classes in src/java, one of them extends from applet.
These classes uses some jar libraries I have added by "properties->java buld path->libraries->add jars..."
Eclipse does not show any error, but when I click on play, it shows errors about packages (of the jar libraries I have added) that are not found.
I have modified the config.groovy as in the example of applet plugin.
Is there any example code of how to do this?
Any sugestion?
I am doing some research on autojar library. I am thinking it is not installed correctly, I have put the autojar jar file in springsource\sts-2.5.2.RELEASE\plugins , but if I take a look at "SpringSource Tool Suite Installation Details", it seems that autojar library is not loaded.
Is there any problem with autojar and Spring STS 2.5.2?
Should library be installed in another place?
When I execute the package-applet command in order to generate the applet I get next error:
Error executing script PackageApplet: loader constraint violation: loader (instance of ) previously initiated loading for a different type with name "org/xml/sax/SAXParseException"
java.lang.LinkageError: loader constraint violation: loader (instance of ) previously initiated loading for a different type with name "org/xml/sax/SAXParseException"
at java.lang.Class.getDeclaredMethods0(Native Method)
at java.lang.Class.privateGetDeclaredMethods(Class.ja va:2427)
at java.lang.Class.getDeclaredMethods(Class.java:1791 )
at java.security.AccessController.doPrivileged(Native Method)
at org.codehaus.groovy.util.LazyReference.getLocked(L azyReference.java:46)
at org.codehaus.groovy.util.LazyReference.get(LazyRef erence.java:33)
at grails.util.PluginBuildSettings.getPluginInfos(Plu ginBuildSettings.groovy:121)
at grails.util.PluginBuildSettings.getPluginInfos(Plu ginBuildSettings.groovy)
at grails.util.PluginBuildSettings$getPluginInfos.cal lCurrent(Unknown Source)
at grails.util.PluginBuildSettings.getPluginInfoForNa me(PluginBuildSettings.groovy:178)
at grails.util.PluginBuildSettings$getPluginInfoForNa me.call(Unknown Source)
at _PluginDependencies_groovy$_run_closure1.doCall(_P luginDependencies_groovy:66)
at _PackagePlugins_groovy$_run_closure2.doCall(_Packa gePlugins_groovy:69)
at _GrailsPackage_groovy$_run_closure2.doCall(_Grails Package_groovy:81)
at PackageApplet$_run_closure1.doCall(PackageApplet:9 )
at gant.Gant$_dispatch_closure5.doCall(Gant.groovy:38 1)
at gant.Gant$_dispatch_closure7.doCall(Gant.groovy:41 5)
at gant.Gant$_dispatch_closure7.doCall(Gant.groovy)
at gant.Gant.withBuildListeners(Gant.groovy:427)
at gant.Gant.this$2$withBuildListeners(Gant.groovy)
at gant.Gant$this$2$withBuildListeners.callCurrent(Un known Source)
at gant.Gant.dispatch(Gant.groovy:415)
at gant.Gant.this$2$dispatch(Gant.groovy)
at gant.Gant.invokeMethod(Gant.groovy)
at gant.Gant.executeTargets(Gant.groovy:590)
at gant.Gant.executeTargets(Gant.groovy:589)
Error executing script PackageApplet: loader constraint violation: loader (instance of ) previously initiated loading for a different type with name "org/xml/sax/SAXParseException"
Any idea?
Thanks in advance
I have installed the applet plugin in grails project.
I have added some classes in src/java, one of them extends from applet.
These classes uses some jar libraries I have added by "properties->java buld path->libraries->add jars..."
Eclipse does not show any error, but when I click on play, it shows errors about packages (of the jar libraries I have added) that are not found.
I have modified the config.groovy as in the example of applet plugin.
Is there any example code of how to do this?
Any sugestion?
I am doing some research on autojar library. I am thinking it is not installed correctly, I have put the autojar jar file in springsource\sts-2.5.2.RELEASE\plugins , but if I take a look at "SpringSource Tool Suite Installation Details", it seems that autojar library is not loaded.
Is there any problem with autojar and Spring STS 2.5.2?
Should library be installed in another place?
When I execute the package-applet command in order to generate the applet I get next error:
Error executing script PackageApplet: loader constraint violation: loader (instance of ) previously initiated loading for a different type with name "org/xml/sax/SAXParseException"
java.lang.LinkageError: loader constraint violation: loader (instance of ) previously initiated loading for a different type with name "org/xml/sax/SAXParseException"
at java.lang.Class.getDeclaredMethods0(Native Method)
at java.lang.Class.privateGetDeclaredMethods(Class.ja va:2427)
at java.lang.Class.getDeclaredMethods(Class.java:1791 )
at java.security.AccessController.doPrivileged(Native Method)
at org.codehaus.groovy.util.LazyReference.getLocked(L azyReference.java:46)
at org.codehaus.groovy.util.LazyReference.get(LazyRef erence.java:33)
at grails.util.PluginBuildSettings.getPluginInfos(Plu ginBuildSettings.groovy:121)
at grails.util.PluginBuildSettings.getPluginInfos(Plu ginBuildSettings.groovy)
at grails.util.PluginBuildSettings$getPluginInfos.cal lCurrent(Unknown Source)
at grails.util.PluginBuildSettings.getPluginInfoForNa me(PluginBuildSettings.groovy:178)
at grails.util.PluginBuildSettings$getPluginInfoForNa me.call(Unknown Source)
at _PluginDependencies_groovy$_run_closure1.doCall(_P luginDependencies_groovy:66)
at _PackagePlugins_groovy$_run_closure2.doCall(_Packa gePlugins_groovy:69)
at _GrailsPackage_groovy$_run_closure2.doCall(_Grails Package_groovy:81)
at PackageApplet$_run_closure1.doCall(PackageApplet:9 )
at gant.Gant$_dispatch_closure5.doCall(Gant.groovy:38 1)
at gant.Gant$_dispatch_closure7.doCall(Gant.groovy:41 5)
at gant.Gant$_dispatch_closure7.doCall(Gant.groovy)
at gant.Gant.withBuildListeners(Gant.groovy:427)
at gant.Gant.this$2$withBuildListeners(Gant.groovy)
at gant.Gant$this$2$withBuildListeners.callCurrent(Un known Source)
at gant.Gant.dispatch(Gant.groovy:415)
at gant.Gant.this$2$dispatch(Gant.groovy)
at gant.Gant.invokeMethod(Gant.groovy)
at gant.Gant.executeTargets(Gant.groovy:590)
at gant.Gant.executeTargets(Gant.groovy:589)
Error executing script PackageApplet: loader constraint violation: loader (instance of ) previously initiated loading for a different type with name "org/xml/sax/SAXParseException"
Any idea?
Thanks in advance