Details
-
Type:
Improvement
-
Status:
Open
-
Priority:
Critical
-
Resolution: Unresolved
-
Affects Version/s: 1.0.3
-
Fix Version/s: 3.0
-
Component/s: None
-
Labels:None
Description
It seems that Grails load all jars and classes with the same classloader.
As we all know, Grails is developed based on a lot of third part jar files, such as spring.jar
When we want to use other version of jar files which are placed in the PROJECT_HOME/lib directory, we will encounter some conflicts between different versions of classes with same qualifiable class name.
I have a crazy idea, why not treat the app created by developers as a special plugin of Grails?
If GRAILS-2221 is resolved, we can solve the conflict problems easily.
Thanks,
Daniel.Sun
Activity
Graeme Rocher
made changes -
| Field | Original Value | New Value |
|---|---|---|
| Fix Version/s | 1.1 [ 13674 ] | |
| Fix Version/s | 1.0.4 [ 14156 ] |
Graeme Rocher
made changes -
| Fix Version/s | 1.2-M2 [ 15425 ] | |
| Fix Version/s | 1.2-M1 [ 14155 ] |
Graeme Rocher
made changes -
| Fix Version/s | 2.0 [ 15421 ] | |
| Fix Version/s | 1.2-M2 [ 15425 ] |
Graeme Rocher
made changes -
| Assignee | Graeme Rocher [ graemerocher ] |
Contegix Support
made changes -
| Project Import | Thu Mar 24 21:22:24 CDT 2011 [ 1301019744151 ] |
Burt Beckwith
made changes -
| Workflow | jira [ 34690 ] | Grails [ 40985 ] |
Burt Beckwith
made changes -
| Workflow | Grails [ 40985 ] | Copy of Grails [ 48414 ] |
Burt Beckwith
made changes -
| Workflow | Copy of Grails [ 48414 ] | Grails [ 55824 ] |
Burt Beckwith
made changes -
| Workflow | Grails [ 55824 ] | Grails2 [ 63369 ] |
Burt Beckwith
made changes -
| Workflow | Grails2 [ 63369 ] | jira [ 78501 ] |
Burt Beckwith
made changes -
| Workflow | jira [ 78501 ] | Grails2 [ 86624 ] |
Peter Ledbrook
made changes -
| Last Reviewed | 01/Jan/10 |
Peter Ledbrook
made changes -
| Workflow | Grails2 [ 86624 ] | jira [ 94984 ] |
Peter Ledbrook
made changes -
| Workflow | jira [ 94984 ] | Grails2 [ 103122 ] |
I believe this issue is why jar files from ancillary projects of mine that use groovy classes do not work.
Is there a more elegant workaround than copying the source files into my grails project source tree?
I could try building a war file and using Tomcat instead of Jetty but I'd lose my ability to run the grails console to script against gorm domain classes and I'm not 100% certain that would work unless I deployed my 3rd party jars and groovy all jar to <catalina_home>/common/lib