mfornos / cream

Java Content Repository module for Play! framework
23 stars 6 forks source link

Compatibility issues with play-morphia Module #4

Closed jazzdan closed 12 years ago

jazzdan commented 12 years ago

I have run into some compatibility issues when using the cream module along side the play-morphia module (mongodb). Here is what my dependencies.yml file looks like:

# Application dependencies

require:
    - play
    - play -> morphia [1.2.4,)
    - play -> cream 0.1

And this is what the output from $play run is after I hit http://localhost:9000:

~        _            _ 
~  _ __ | | __ _ _  _| |
~ | '_ \| |/ _' | || |_|
~ |  __/|_|\____|\__ (_)
~ |_|            |__/   
~
~ play! 1.2.4, http://www.playframework.org
~
~ Ctrl+C to stop
~ 
Listening for transport dt_socket at address: 8000
22:03:05,500 INFO  ~ Starting /Users/dan/cloudcount/vc/CloudCount
22:03:05,505 WARN  ~ Declaring modules in application.conf is deprecated. Use dependencies.yml instead (module.secure)
22:03:05,506 INFO  ~ Module secure is available (/usr/local/Cellar/play/1.2.4/libexec/modules/secure)
22:03:05,506 INFO  ~ Module cream is available (/usr/local/Cellar/play/1.2.4/libexec/modules/cream-0.1)
22:03:05,507 INFO  ~ Module morphia is available (/Users/dan/cloudcount/vc/CloudCount/modules/morphia-1.2.4)
22:03:06,405 WARN  ~ You're running Play! in DEV mode
22:03:06,521 INFO  ~ Listening for HTTP on port 9000 (Waiting a first request to start) ...
22:03:17,391 ERROR ~ 

@69eid543g
Internal Server Error (500) for request GET /

Oops: NoSuchMethodError
An unexpected error occured caused by exception NoSuchMethodError: org.objectweb.asm.ClassWriter.(Z)V

play.exceptions.UnexpectedException: Unexpected Error
    at play.Invoker$Invocation.onException(Invoker.java:244)
    at play.Invoker$Invocation.run(Invoker.java:286)
    at Invocation.HTTP Request(Play!)
Caused by: java.lang.NoSuchMethodError: org.objectweb.asm.ClassWriter.<init>(Z)V
    at net.sf.cglib.core.DebuggingClassWriter.<init>(DebuggingClassWriter.java:47)
    at net.sf.cglib.core.DefaultGeneratorStrategy.getClassWriter(DefaultGeneratorStrategy.java:30)
    at net.sf.cglib.core.DefaultGeneratorStrategy.generate(DefaultGeneratorStrategy.java:24)
    at net.sf.cglib.core.AbstractClassGenerator.create(AbstractClassGenerator.java:216)
    at net.sf.cglib.core.KeyFactory$Generator.create(KeyFactory.java:145)
    at net.sf.cglib.core.KeyFactory.create(KeyFactory.java:117)
    at net.sf.cglib.core.KeyFactory.create(KeyFactory.java:108)
    at net.sf.cglib.core.KeyFactory.create(KeyFactory.java:104)
    at net.sf.cglib.proxy.Enhancer.<clinit>(Enhancer.java:69)
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Class.java:169)
    at com.google.code.morphia.mapping.lazy.LazyFeatureDependencies.testDependencyFullFilled(LazyFeatureDependencies.java:32)
    at com.google.code.morphia.mapping.lazy.LazyFeatureDependencies.createDefaultProxyFactory(LazyFeatureDependencies.java:44)
    at com.google.code.morphia.mapping.Mapper.<init>(Mapper.java:96)
    at com.google.code.morphia.Morphia.<init>(Morphia.java:47)
    at com.google.code.morphia.Morphia.<init>(Morphia.java:43)
    at play.modules.morphia.MorphiaPlugin.initMorphia_(MorphiaPlugin.java:391)
    at play.modules.morphia.MorphiaPlugin.onApplicationStart(MorphiaPlugin.java:444)
    at play.plugins.PluginCollection.onApplicationStart(PluginCollection.java:480)
    at play.Play.start(Play.java:515)
    at play.Play.detectChanges(Play.java:618)
    at play.Invoker$Invocation.init(Invoker.java:198)
    ... 1 more

It appears that play-morphia and cream depend on two different versions of ASM.

Please let me know if there is any other information I can supply, or if there are any known workarounds for this issue.

mfornos commented 12 years ago

Seems that JCrom is a bit outdated, depends on: ASM 1.5.3 and CGLIB 2.1_3. Excluding offending dependencies and forcing to use cglib-nodep-2.1_3 with the most recent version of ASM might be a possible solution.

I hope it helps.

jazzdan commented 12 years ago

Hi mfornos, thanks for the reply. I've tracked down the jars you mentioned but I'm not sure what the best way to go about forcing their use by both morphia and cream. Should I place the jars in the lib folder of modules/cream?

jazzdan commented 12 years ago

I think I figured out how to do what you described.

Here is what my dependencies.yml looks like now:


# Application dependencies

require:
    - play
    - play -> morphia [1.2.4,)
    - play -> cream 0.1
    - cglib -> cglib-nodep 2.1_3
    - asm -> asm-commons 3.3.1

Here is the output of $play deps --sync


~        _            _ 
~  _ __ | | __ _ _  _| |
~ | '_ \| |/ _' | || |_|
~ |  __/|_|\____|\__ (_)
~ |_|            |__/   
~
~ play! 1.2.4, http://www.playframework.org
~
~ Resolving dependencies using /Users/dan/cloudcount/vc/CloudCount/conf/dependencies.yml,
~
~   play->morphia 1.2.4 (from playContributedModules)
~   play->cream 0.1 (from playLocalModules)
~   javax.jcr->jcr 2.0 (from mavenCentral)
~   org.apache.jackrabbit->jackrabbit-core 2.2.7 (from mavenCentral)
~   concurrent->concurrent 1.3.4 (from mavenCentral)
~   commons-dbcp->commons-dbcp 1.2.2 (from mavenCentral)
~   commons-pool->commons-pool 1.3 (from mavenCentral)
~   org.apache.jackrabbit->jackrabbit-api 2.2.7 (from mavenCentral)
~   org.apache.jackrabbit->jackrabbit-jcr-commons 2.2.7 (from mavenCentral)
~   org.apache.jackrabbit->jackrabbit-spi-commons 2.2.7 (from mavenCentral)
~   org.apache.jackrabbit->jackrabbit-spi 2.2.7 (from mavenCentral)
~   org.apache.tika->tika-parsers 0.8 (from mavenCentral)
~   org.apache.tika->tika-core 0.8 (from mavenCentral)
~   commons-httpclient->commons-httpclient 3.0 (from mavenCentral)
~   org.apache.commons->commons-compress 1.1 (from mavenCentral)
~   org.apache.pdfbox->pdfbox 1.3.1 (from mavenCentral)
~   org.apache.pdfbox->fontbox 1.3.1 (from mavenCentral)
~   org.apache.pdfbox->jempbox 1.3.1 (from mavenCentral)
~   org.bouncycastle->bcmail-jdk15 1.45 (from mavenCentral)
~   org.apache.poi->poi 3.7 (from mavenCentral)
~   org.apache.poi->poi-scratchpad 3.7 (from mavenCentral)
~   org.apache.poi->poi-ooxml 3.7 (from mavenCentral)
~   org.apache.poi->poi-ooxml-schemas 3.7 (from mavenCentral)
~   org.apache.xmlbeans->xmlbeans 2.3.0 (from mavenCentral)
~   org.apache.geronimo.specs->geronimo-stax-api_1.0_spec 1.0.1 (from mavenCentral)
~   org.ccil.cowan.tagsoup->tagsoup 1.2 (from mavenCentral)
~   asm->asm 3.1 (from mavenCentral)
~   com.drewnoakes->metadata-extractor 2.4.0-beta-1 (from mavenCentral)
~   de.l3s.boilerpipe->boilerpipe 1.1.0 (from mavenCentral)
~   rome->rome 0.9 (from mavenCentral)
~   jdom->jdom 1.0 (from mavenCentral)
~   edu.ucar->netcdf 4.2-min (from mavenCentral)
~   org.slf4j->jcl-over-slf4j 1.5.11 (from mavenCentral)
~   org.apache.lucene->lucene-core 2.4.1 (from mavenCentral)
~   org.apache.derby->derby 10.5.3.0_1 (from mavenCentral)
~   org.apache.jackrabbit->jackrabbit-jcr-tests 2.2.7 (from mavenCentral)
~   org.apache.jackrabbit->jackrabbit-jcr-rmi 2.2.7 (from mavenCentral)
~   org.jcrom->jcrom 1.3.2 (from mavenCentral)
~   cglib->cglib 2.1_3 (from mavenCentral)
~   asm->asm-commons 3.3.1 (from mavenCentral)
~   asm->asm-tree 3.3.1 (from mavenCentral)
~   asm->asm 3.3.1 (from mavenCentral)
~
~ Downloading required dependencies,
~
~   downloading http://repo1.maven.org/maven2/asm/asm-commons/3.3.1/asm-commons-3.3.1.jar .   0 b~ es    downloading http://repo1.maven.org/maven2/asm/asm-commons/3.3.1/asm-commons-3.3.1.jar .   0 b~ es/37 downloading http://repo1.maven.org/maven2/asm/asm-commons/3.3.1/asm-commons-3.3.1.jar .   482~ ytes/3downloading http://repo1.maven.org/maven2/asm/asm-commons/3.3.1/asm-commons-3.3.1.jar .   994~ ytes/3downloading http://repo1.maven.org/maven2/asm/asm-commons/3.3.1/asm-commons-3.3.1.jar .   1 K~ 37 KB downloading http://repo1.maven.org/maven2/asm/asm-commons/3.3.1/asm-commons-3.3.1.jar .   1 K~ 37 KB downloading http://repo1.maven.org/maven2/asm/asm-commons/3.3.1/asm-commons-3.3.1.jar .   2 K~ 37 KB downloading http://repo1.maven.org/maven2/asm/asm-commons/3.3.1/asm-commons-3.3.1.jar .   2 K~ 37 KB downloading http://repo1.maven.org/maven2/asm/asm-commons/3.3.1/asm-commons-3.3.1.jar .   3 K~ 37 KB downloading http://repo1.maven.org/maven2/asm/asm-commons/3.3.1/asm-commons-3.3.1.jar .   3 K~ 37 KB downloading http://repo1.maven.org/maven2/asm/asm-commons/3.3.1/asm-commons-3.3.1.jar .   4 K~ 37 KB downloading http://repo1.maven.org/maven2/asm/asm-commons/3.3.1/asm-commons-3.3.1.jar .   4 K~ 37 KB downloading http://repo1.maven.org/maven2/asm/asm-commons/3.3.1/asm-commons-3.3.1.jar .   5 K~ 37 KB downloading http://repo1.maven.org/maven2/asm/asm-commons/3.3.1/asm-commons-3.3.1.jar .   5 K~ 37 KB downloading http://repo1.maven.org/maven2/asm/asm-commons/3.3.1/asm-commons-3.3.1.jar .   6 K~ 37 KB downloading http://repo1.maven.org/maven2/asm/asm-commons/3.3.1/asm-commons-3.3.1.jar .   6 K~ 37 KB downloading http://repo1.maven.org/maven2/asm/asm-commons/3.3.1/asm-commons-3.3.1.jar .   7 K~ 37 KB downloading http://repo1.maven.org/maven2/asm/asm-commons/3.3.1/asm-commons-3.3.1.jar .   7 K~ 37 KB downloading http://repo1.maven.org/maven2/asm/asm-commons/3.3.1/asm-commons-3.3.1.jar .   7 K~ 37 KB downloading http://repo1.maven.org/maven2/asm/asm-commons/3.3.1/asm-commons-3.3.1.jar .   8 K~ 37 KB downloading http://repo1.maven.org/maven2/asm/asm-commons/3.3.1/asm-commons-3.3.1.jar .   8 K~ 37 KB downloading http://repo1.maven.org/maven2/asm/asm-commons/3.3.1/asm-commons-3.3.1.jar .   9 K~ 37 KB downloading http://repo1.maven.org/maven2/asm/asm-commons/3.3.1/asm-commons-3.3.1.jar .   9 K~ 37 KB downloading http://repo1.maven.org/maven2/asm/asm-commons/3.3.1/asm-commons-3.3.1.jar .   10 ~ /37 KBdownloading http://repo1.maven.org/maven2/asm/asm-commons/3.3.1/asm-commons-3.3.1.jar .   10 ~ /37 KBdownloading http://repo1.maven.org/maven2/asm/asm-commons/3.3.1/asm-commons-3.3.1.jar .   11 ~ /37 KBdownloading http://repo1.maven.org/maven2/asm/asm-commons/3.3.1/asm-commons-3.3.1.jar .   11 ~ /37 KBdownloading http://repo1.maven.org/maven2/asm/asm-commons/3.3.1/asm-commons-3.3.1.jar .   11 ~ /37 KBdownloading http://repo1.maven.org/maven2/asm/asm-commons/3.3.1/asm-commons-3.3.1.jar .   12 ~ /37 KBdownloading http://repo1.maven.org/maven2/asm/asm-commons/3.3.1/asm-commons-3.3.1.jar .   12 ~ /37 KBdownloading http://repo1.maven.org/maven2/asm/asm-commons/3.3.1/asm-commons-3.3.1.jar .   13 ~ /37 KBdownloading http://repo1.maven.org/maven2/asm/asm-commons/3.3.1/asm-commons-3.3.1.jar .   13 ~ /37 KBdownloading http://repo1.maven.org/maven2/asm/asm-commons/3.3.1/asm-commons-3.3.1.jar .   14 ~ /37 KBdownloading http://repo1.maven.org/maven2/asm/asm-commons/3.3.1/asm-commons-3.3.1.jar .   14 ~ /37 KBdownloading http://repo1.maven.org/maven2/asm/asm-commons/3.3.1/asm-commons-3.3.1.jar .   15 ~ /37 KBdownloading http://repo1.maven.org/maven2/asm/asm-commons/3.3.1/asm-commons-3.3.1.jar .   15 ~ /37 KBdownloading http://repo1.maven.org/maven2/asm/asm-commons/3.3.1/asm-commons-3.3.1.jar .   15 ~ /37 KBdownloading http://repo1.maven.org/maven2/asm/asm-commons/3.3.1/asm-commons-3.3.1.jar .   16 ~ /37 KBdownloading http://repo1.maven.org/maven2/asm/asm-commons/3.3.1/asm-commons-3.3.1.jar .   16 ~ /37 KBdownloading http://repo1.maven.org/maven2/asm/asm-commons/3.3.1/asm-commons-3.3.1.jar .   17 ~ /37 KBdownloading http://repo1.maven.org/maven2/asm/asm-commons/3.3.1/asm-commons-3.3.1.jar .   17 ~ /37 KBdownloading http://repo1.maven.org/maven2/asm/asm-commons/3.3.1/asm-commons-3.3.1.jar .   18 ~ /37 KBdownloading http://repo1.maven.org/maven2/asm/asm-commons/3.3.1/asm-commons-3.3.1.jar .   18 ~ /37 KBdownloading http://repo1.maven.org/maven2/asm/asm-commons/3.3.1/asm-commons-3.3.1.jar .   19 ~ /37 KBdownloading http://repo1.maven.org/maven2/asm/asm-commons/3.3.1/asm-commons-3.3.1.jar .   19 ~ /37 KBdownloading http://repo1.maven.org/maven2/asm/asm-commons/3.3.1/asm-commons-3.3.1.jar .   20 ~ /37 KBdownloading http://repo1.maven.org/maven2/asm/asm-commons/3.3.1/asm-commons-3.3.1.jar .   20 ~ /37 KBdownloading http://repo1.maven.org/maven2/asm/asm-commons/3.3.1/asm-commons-3.3.1.jar .   21 ~ /37 KBdownloading http://repo1.maven.org/maven2/asm/asm-commons/3.3.1/asm-commons-3.3.1.jar .   21 ~ /37 KBdownloading http://repo1.maven.org/maven2/asm/asm-commons/3.3.1/asm-commons-3.3.1.jar .   21 ~ /37 KBdownloading http://repo1.maven.org/maven2/asm/asm-commons/3.3.1/asm-commons-3.3.1.jar .   22 ~ /37 KBdownloading http://repo1.maven.org/maven2/asm/asm-commons/3.3.1/asm-commons-3.3.1.jar .   22 ~ /37 KBdownloading http://repo1.maven.org/maven2/asm/asm-commons/3.3.1/asm-commons-3.3.1.jar .   23 ~ /37 KBdownloading http://repo1.maven.org/maven2/asm/asm-commons/3.3.1/asm-commons-3.3.1.jar .   23 ~ /37 KBdownloading http://repo1.maven.org/maven2/asm/asm-commons/3.3.1/asm-commons-3.3.1.jar .   24 ~ /37 KBdownloading http://repo1.maven.org/maven2/asm/asm-commons/3.3.1/asm-commons-3.3.1.jar .   24 ~ /37 KBdownloading http://repo1.maven.org/maven2/asm/asm-commons/3.3.1/asm-commons-3.3.1.jar .   25 ~ /37 KBdownloading http://repo1.maven.org/maven2/asm/asm-commons/3.3.1/asm-commons-3.3.1.jar .   25 ~ /37 KBdownloading http://repo1.maven.org/maven2/asm/asm-commons/3.3.1/asm-commons-3.3.1.jar .   26 ~ /37 KBdownloading http://repo1.maven.org/maven2/asm/asm-commons/3.3.1/asm-commons-3.3.1.jar .   26 ~ /37 KBdownloading http://repo1.maven.org/maven2/asm/asm-commons/3.3.1/asm-commons-3.3.1.jar .   26 ~ /37 KBdownloading http://repo1.maven.org/maven2/asm/asm-commons/3.3.1/asm-commons-3.3.1.jar .   27 ~ /37 KBdownloading http://repo1.maven.org/maven2/asm/asm-commons/3.3.1/asm-commons-3.3.1.jar .   28 ~ /37 KBdownloading http://repo1.maven.org/maven2/asm/asm-commons/3.3.1/asm-commons-3.3.1.jar .   28 ~ /37 KBdownloading http://repo1.maven.org/maven2/asm/asm-commons/3.3.1/asm-commons-3.3.1.jar .   29 ~ /37 KBdownloading http://repo1.maven.org/maven2/asm/asm-commons/3.3.1/asm-commons-3.3.1.jar .   29 ~ /37 KBdownloading http://repo1.maven.org/maven2/asm/asm-commons/3.3.1/asm-commons-3.3.1.jar .   29 ~ /37 KBdownloading http://repo1.maven.org/maven2/asm/asm-commons/3.3.1/asm-commons-3.3.1.jar .   30 ~ /37 KBdownloading http://repo1.maven.org/maven2/asm/asm-commons/3.3.1/asm-commons-3.3.1.jar .   30 ~ /37 KBdownloading http://repo1.maven.org/maven2/asm/asm-commons/3.3.1/asm-commons-3.3.1.jar .   31 ~ /37 KBdownloading http://repo1.maven.org/maven2/asm/asm-commons/3.3.1/asm-commons-3.3.1.jar .   31 ~ /37 KBdownloading http://repo1.maven.org/maven2/asm/asm-commons/3.3.1/asm-commons-3.3.1.jar .   32 ~ /37 KBdownloading http://repo1.maven.org/maven2/asm/asm-commons/3.3.1/asm-commons-3.3.1.jar .   32 ~ /37 KBdownloading http://repo1.maven.org/maven2/asm/asm-commons/3.3.1/asm-commons-3.3.1.jar .   33 ~ /37 KBdownloading http://repo1.maven.org/maven2/asm/asm-commons/3.3.1/asm-commons-3.3.1.jar .   33 ~ /37 KBdownloading http://repo1.maven.org/maven2/asm/asm-commons/3.3.1/asm-commons-3.3.1.jar .   33 ~ /37 KBdownloading http://repo1.maven.org/maven2/asm/asm-commons/3.3.1/asm-commons-3.3.1.jar .   34 ~ /37 KBdownloading http://repo1.maven.org/maven2/asm/asm-commons/3.3.1/asm-commons-3.3.1.jar .   35 ~ /37 KBdownloading http://repo1.maven.org/maven2/asm/asm-commons/3.3.1/asm-commons-3.3.1.jar .   37 ~ /37 KBdownloading http://repo1.maven.org/maven2/asm/asm-commons/3.3.1/asm-commons-3.3.1.jar .   37 ~ /37 KBdownloading http://repo1.maven.org/maven2/asm/asm-commons/3.3.1/asm-commons-3.3.1.jar .   37 ~ /37 KBdownloaded http://repo1.maven.org/maven2/asm/asm-commons/3.3.1/asm-commons-3.3.1.jar                        
~   downloading http://repo1.maven.org/maven2/asm/asm-tree/3.3.1/asm-tree-3.3.1.jar .   0 bytes  ~       downloading http://repo1.maven.org/maven2/asm/asm-tree/3.3.1/asm-tree-3.3.1.jar .   0 bytes/2~ KB    downloading http://repo1.maven.org/maven2/asm/asm-tree/3.3.1/asm-tree-3.3.1.jar .   475 bytes~ 1 KB  downloading http://repo1.maven.org/maven2/asm/asm-tree/3.3.1/asm-tree-3.3.1.jar .   987 bytes~ 1 KB  downloading http://repo1.maven.org/maven2/asm/asm-tree/3.3.1/asm-tree-3.3.1.jar .   1 KB/21 K~       downloading http://repo1.maven.org/maven2/asm/asm-tree/3.3.1/asm-tree-3.3.1.jar .   2 KB/21 K~       downloading http://repo1.maven.org/maven2/asm/asm-tree/3.3.1/asm-tree-3.3.1.jar .   2 KB/21 K~       downloading http://repo1.maven.org/maven2/asm/asm-tree/3.3.1/asm-tree-3.3.1.jar .   3 KB/21 K~       downloading http://repo1.maven.org/maven2/asm/asm-tree/3.3.1/asm-tree-3.3.1.jar .   3 KB/21 K~       downloading http://repo1.maven.org/maven2/asm/asm-tree/3.3.1/asm-tree-3.3.1.jar .   4 KB/21 K~       downloading http://repo1.maven.org/maven2/asm/asm-tree/3.3.1/asm-tree-3.3.1.jar .   4 KB/21 K~       downloading http://repo1.maven.org/maven2/asm/asm-tree/3.3.1/asm-tree-3.3.1.jar .   5 KB/21 K~       downloading http://repo1.maven.org/maven2/asm/asm-tree/3.3.1/asm-tree-3.3.1.jar .   5 KB/21 K~       downloading http://repo1.maven.org/maven2/asm/asm-tree/3.3.1/asm-tree-3.3.1.jar .   6 KB/21 K~       downloading http://repo1.maven.org/maven2/asm/asm-tree/3.3.1/asm-tree-3.3.1.jar .   6 KB/21 K~       downloading http://repo1.maven.org/maven2/asm/asm-tree/3.3.1/asm-tree-3.3.1.jar .   7 KB/21 K~       downloading http://repo1.maven.org/maven2/asm/asm-tree/3.3.1/asm-tree-3.3.1.jar .   7 KB/21 K~       downloading http://repo1.maven.org/maven2/asm/asm-tree/3.3.1/asm-tree-3.3.1.jar .   8 KB/21 K~       downloading http://repo1.maven.org/maven2/asm/asm-tree/3.3.1/asm-tree-3.3.1.jar .   8 KB/21 K~       downloading http://repo1.maven.org/maven2/asm/asm-tree/3.3.1/asm-tree-3.3.1.jar .   9 KB/21 K~       downloading http://repo1.maven.org/maven2/asm/asm-tree/3.3.1/asm-tree-3.3.1.jar .   10 KB/21 ~       downloading http://repo1.maven.org/maven2/asm/asm-tree/3.3.1/asm-tree-3.3.1.jar .   10 KB/21 ~       downloading http://repo1.maven.org/maven2/asm/asm-tree/3.3.1/asm-tree-3.3.1.jar .   11 KB/21 ~       downloading http://repo1.maven.org/maven2/asm/asm-tree/3.3.1/asm-tree-3.3.1.jar .   11 KB/21 ~       downloading http://repo1.maven.org/maven2/asm/asm-tree/3.3.1/asm-tree-3.3.1.jar .   12 KB/21 ~       downloading http://repo1.maven.org/maven2/asm/asm-tree/3.3.1/asm-tree-3.3.1.jar .   12 KB/21 ~       downloading http://repo1.maven.org/maven2/asm/asm-tree/3.3.1/asm-tree-3.3.1.jar .   13 KB/21 ~       downloading http://repo1.maven.org/maven2/asm/asm-tree/3.3.1/asm-tree-3.3.1.jar .   13 KB/21 ~       downloading http://repo1.maven.org/maven2/asm/asm-tree/3.3.1/asm-tree-3.3.1.jar .   14 KB/21 ~       downloading http://repo1.maven.org/maven2/asm/asm-tree/3.3.1/asm-tree-3.3.1.jar .   14 KB/21 ~       downloading http://repo1.maven.org/maven2/asm/asm-tree/3.3.1/asm-tree-3.3.1.jar .   15 KB/21 ~       downloading http://repo1.maven.org/maven2/asm/asm-tree/3.3.1/asm-tree-3.3.1.jar .   15 KB/21 ~       downloading http://repo1.maven.org/maven2/asm/asm-tree/3.3.1/asm-tree-3.3.1.jar .   16 KB/21 ~       downloading http://repo1.maven.org/maven2/asm/asm-tree/3.3.1/asm-tree-3.3.1.jar .   16 KB/21 ~       downloading http://repo1.maven.org/maven2/asm/asm-tree/3.3.1/asm-tree-3.3.1.jar .   17 KB/21 ~       downloading http://repo1.maven.org/maven2/asm/asm-tree/3.3.1/asm-tree-3.3.1.jar .   17 KB/21 ~       downloading http://repo1.maven.org/maven2/asm/asm-tree/3.3.1/asm-tree-3.3.1.jar .   18 KB/21 ~       downloading http://repo1.maven.org/maven2/asm/asm-tree/3.3.1/asm-tree-3.3.1.jar .   20 KB/21 ~       downloading http://repo1.maven.org/maven2/asm/asm-tree/3.3.1/asm-tree-3.3.1.jar .   21 KB/21 ~       downloading http://repo1.maven.org/maven2/asm/asm-tree/3.3.1/asm-tree-3.3.1.jar .   21 KB/21 ~       downloading http://repo1.maven.org/maven2/asm/asm-tree/3.3.1/asm-tree-3.3.1.jar .   21 KB/21 ~       downloaded http://repo1.maven.org/maven2/asm/asm-tree/3.3.1/asm-tree-3.3.1.jar                        
~   downloading http://repo1.maven.org/maven2/asm/asm/3.3.1/asm-3.3.1.jar .   0 bytes            ~  downloading http://repo1.maven.org/maven2/asm/asm/3.3.1/asm-3.3.1.jar .   0 bytes/42 KB      ~  downloading http://repo1.maven.org/maven2/asm/asm/3.3.1/asm-3.3.1.jar .   533 bytes/42 KB    ~  downloading http://repo1.maven.org/maven2/asm/asm/3.3.1/asm-3.3.1.jar .   1 KB/42 KB         ~  downloading http://repo1.maven.org/maven2/asm/asm/3.3.1/asm-3.3.1.jar .   1 KB/42 KB         ~  downloading http://repo1.maven.org/maven2/asm/asm/3.3.1/asm-3.3.1.jar .   1 KB/42 KB         ~  downloading http://repo1.maven.org/maven2/asm/asm/3.3.1/asm-3.3.1.jar .   2 KB/42 KB         ~  downloading http://repo1.maven.org/maven2/asm/asm/3.3.1/asm-3.3.1.jar .   2 KB/42 KB         ~  downloading http://repo1.maven.org/maven2/asm/asm/3.3.1/asm-3.3.1.jar .   3 KB/42 KB         ~  downloading http://repo1.maven.org/maven2/asm/asm/3.3.1/asm-3.3.1.jar .   3 KB/42 KB         ~  downloading http://repo1.maven.org/maven2/asm/asm/3.3.1/asm-3.3.1.jar .   4 KB/42 KB         ~  downloading http://repo1.maven.org/maven2/asm/asm/3.3.1/asm-3.3.1.jar .   4 KB/42 KB         ~  downloading http://repo1.maven.org/maven2/asm/asm/3.3.1/asm-3.3.1.jar .   5 KB/42 KB         ~  downloading http://repo1.maven.org/maven2/asm/asm/3.3.1/asm-3.3.1.jar .   5 KB/42 KB         ~  downloading http://repo1.maven.org/maven2/asm/asm/3.3.1/asm-3.3.1.jar .   5 KB/42 KB         ~  downloading http://repo1.maven.org/maven2/asm/asm/3.3.1/asm-3.3.1.jar .   6 KB/42 KB         ~  downloading http://repo1.maven.org/maven2/asm/asm/3.3.1/asm-3.3.1.jar .   6 KB/42 KB         ~  downloading http://repo1.maven.org/maven2/asm/asm/3.3.1/asm-3.3.1.jar .   7 KB/42 KB         ~  downloading http://repo1.maven.org/maven2/asm/asm/3.3.1/asm-3.3.1.jar .   7 KB/42 KB         ~  downloading http://repo1.maven.org/maven2/asm/asm/3.3.1/asm-3.3.1.jar .   7 KB/42 KB         ~  downloading http://repo1.maven.org/maven2/asm/asm/3.3.1/asm-3.3.1.jar .   8 KB/42 KB         ~  downloading http://repo1.maven.org/maven2/asm/asm/3.3.1/asm-3.3.1.jar .   8 KB/42 KB         ~  downloading http://repo1.maven.org/maven2/asm/asm/3.3.1/asm-3.3.1.jar .   9 KB/42 KB         ~  downloading http://repo1.maven.org/maven2/asm/asm/3.3.1/asm-3.3.1.jar .   9 KB/42 KB         ~  downloading http://repo1.maven.org/maven2/asm/asm/3.3.1/asm-3.3.1.jar .   10 KB/42 KB        ~  downloading http://repo1.maven.org/maven2/asm/asm/3.3.1/asm-3.3.1.jar .   10 KB/42 KB        ~  downloading http://repo1.maven.org/maven2/asm/asm/3.3.1/asm-3.3.1.jar .   11 KB/42 KB        ~  downloading http://repo1.maven.org/maven2/asm/asm/3.3.1/asm-3.3.1.jar .   11 KB/42 KB        ~  downloading http://repo1.maven.org/maven2/asm/asm/3.3.1/asm-3.3.1.jar .   12 KB/42 KB        ~  downloading http://repo1.maven.org/maven2/asm/asm/3.3.1/asm-3.3.1.jar .   13 KB/42 KB        ~  downloading http://repo1.maven.org/maven2/asm/asm/3.3.1/asm-3.3.1.jar .   13 KB/42 KB        ~  downloading http://repo1.maven.org/maven2/asm/asm/3.3.1/asm-3.3.1.jar .   14 KB/42 KB        ~  downloading http://repo1.maven.org/maven2/asm/asm/3.3.1/asm-3.3.1.jar .   14 KB/42 KB        ~  downloading http://repo1.maven.org/maven2/asm/asm/3.3.1/asm-3.3.1.jar .   15 KB/42 KB        ~  downloading http://repo1.maven.org/maven2/asm/asm/3.3.1/asm-3.3.1.jar .   15 KB/42 KB        ~  downloading http://repo1.maven.org/maven2/asm/asm/3.3.1/asm-3.3.1.jar .   16 KB/42 KB        ~  downloading http://repo1.maven.org/maven2/asm/asm/3.3.1/asm-3.3.1.jar .   16 KB/42 KB        ~  downloading http://repo1.maven.org/maven2/asm/asm/3.3.1/asm-3.3.1.jar .   16 KB/42 KB        ~  downloading http://repo1.maven.org/maven2/asm/asm/3.3.1/asm-3.3.1.jar .   16 KB/42 KB        ~  downloading http://repo1.maven.org/maven2/asm/asm/3.3.1/asm-3.3.1.jar .   16 KB/42 KB        ~  downloading http://repo1.maven.org/maven2/asm/asm/3.3.1/asm-3.3.1.jar .   17 KB/42 KB        ~  downloading http://repo1.maven.org/maven2/asm/asm/3.3.1/asm-3.3.1.jar .   17 KB/42 KB        ~  downloading http://repo1.maven.org/maven2/asm/asm/3.3.1/asm-3.3.1.jar .   17 KB/42 KB        ~  downloading http://repo1.maven.org/maven2/asm/asm/3.3.1/asm-3.3.1.jar .   18 KB/42 KB        ~  downloading http://repo1.maven.org/maven2/asm/asm/3.3.1/asm-3.3.1.jar .   18 KB/42 KB        ~  downloading http://repo1.maven.org/maven2/asm/asm/3.3.1/asm-3.3.1.jar .   19 KB/42 KB        ~  downloading http://repo1.maven.org/maven2/asm/asm/3.3.1/asm-3.3.1.jar .   19 KB/42 KB        ~  downloading http://repo1.maven.org/maven2/asm/asm/3.3.1/asm-3.3.1.jar .   20 KB/42 KB        ~  downloading http://repo1.maven.org/maven2/asm/asm/3.3.1/asm-3.3.1.jar .   20 KB/42 KB        ~  downloading http://repo1.maven.org/maven2/asm/asm/3.3.1/asm-3.3.1.jar .   21 KB/42 KB        ~  downloading http://repo1.maven.org/maven2/asm/asm/3.3.1/asm-3.3.1.jar .   21 KB/42 KB        ~  downloading http://repo1.maven.org/maven2/asm/asm/3.3.1/asm-3.3.1.jar .   22 KB/42 KB        ~  downloading http://repo1.maven.org/maven2/asm/asm/3.3.1/asm-3.3.1.jar .   22 KB/42 KB        ~  downloading http://repo1.maven.org/maven2/asm/asm/3.3.1/asm-3.3.1.jar .   22 KB/42 KB        ~  downloading http://repo1.maven.org/maven2/asm/asm/3.3.1/asm-3.3.1.jar .   23 KB/42 KB        ~  downloading http://repo1.maven.org/maven2/asm/asm/3.3.1/asm-3.3.1.jar .   23 KB/42 KB        ~  downloading http://repo1.maven.org/maven2/asm/asm/3.3.1/asm-3.3.1.jar .   24 KB/42 KB        ~  downloading http://repo1.maven.org/maven2/asm/asm/3.3.1/asm-3.3.1.jar .   24 KB/42 KB        ~  downloading http://repo1.maven.org/maven2/asm/asm/3.3.1/asm-3.3.1.jar .   25 KB/42 KB        ~  downloading http://repo1.maven.org/maven2/asm/asm/3.3.1/asm-3.3.1.jar .   25 KB/42 KB        ~  downloading http://repo1.maven.org/maven2/asm/asm/3.3.1/asm-3.3.1.jar .   26 KB/42 KB        ~  downloading http://repo1.maven.org/maven2/asm/asm/3.3.1/asm-3.3.1.jar .   26 KB/42 KB        ~  downloading http://repo1.maven.org/maven2/asm/asm/3.3.1/asm-3.3.1.jar .   27 KB/42 KB        ~  downloading http://repo1.maven.org/maven2/asm/asm/3.3.1/asm-3.3.1.jar .   27 KB/42 KB        ~  downloading http://repo1.maven.org/maven2/asm/asm/3.3.1/asm-3.3.1.jar .   28 KB/42 KB        ~  downloading http://repo1.maven.org/maven2/asm/asm/3.3.1/asm-3.3.1.jar .   28 KB/42 KB        ~  downloading http://repo1.maven.org/maven2/asm/asm/3.3.1/asm-3.3.1.jar .   29 KB/42 KB        ~  downloading http://repo1.maven.org/maven2/asm/asm/3.3.1/asm-3.3.1.jar .   29 KB/42 KB        ~  downloading http://repo1.maven.org/maven2/asm/asm/3.3.1/asm-3.3.1.jar .   30 KB/42 KB        ~  downloading http://repo1.maven.org/maven2/asm/asm/3.3.1/asm-3.3.1.jar .   30 KB/42 KB        ~  downloading http://repo1.maven.org/maven2/asm/asm/3.3.1/asm-3.3.1.jar .   31 KB/42 KB        ~  downloading http://repo1.maven.org/maven2/asm/asm/3.3.1/asm-3.3.1.jar .   31 KB/42 KB        ~  downloading http://repo1.maven.org/maven2/asm/asm/3.3.1/asm-3.3.1.jar .   31 KB/42 KB        ~  downloading http://repo1.maven.org/maven2/asm/asm/3.3.1/asm-3.3.1.jar .   32 KB/42 KB        ~  downloading http://repo1.maven.org/maven2/asm/asm/3.3.1/asm-3.3.1.jar .   32 KB/42 KB        ~  downloading http://repo1.maven.org/maven2/asm/asm/3.3.1/asm-3.3.1.jar .   32 KB/42 KB        ~  downloading http://repo1.maven.org/maven2/asm/asm/3.3.1/asm-3.3.1.jar .   33 KB/42 KB        ~  downloading http://repo1.maven.org/maven2/asm/asm/3.3.1/asm-3.3.1.jar .   33 KB/42 KB        ~  downloading http://repo1.maven.org/maven2/asm/asm/3.3.1/asm-3.3.1.jar .   34 KB/42 KB        ~  downloading http://repo1.maven.org/maven2/asm/asm/3.3.1/asm-3.3.1.jar .   34 KB/42 KB        ~  downloading http://repo1.maven.org/maven2/asm/asm/3.3.1/asm-3.3.1.jar .   35 KB/42 KB        ~  downloading http://repo1.maven.org/maven2/asm/asm/3.3.1/asm-3.3.1.jar .   35 KB/42 KB        ~  downloading http://repo1.maven.org/maven2/asm/asm/3.3.1/asm-3.3.1.jar .   36 KB/42 KB        ~  downloading http://repo1.maven.org/maven2/asm/asm/3.3.1/asm-3.3.1.jar .   36 KB/42 KB        ~  downloading http://repo1.maven.org/maven2/asm/asm/3.3.1/asm-3.3.1.jar .   36 KB/42 KB        ~  downloading http://repo1.maven.org/maven2/asm/asm/3.3.1/asm-3.3.1.jar .   37 KB/42 KB        ~  downloading http://repo1.maven.org/maven2/asm/asm/3.3.1/asm-3.3.1.jar .   37 KB/42 KB        ~  downloading http://repo1.maven.org/maven2/asm/asm/3.3.1/asm-3.3.1.jar .   38 KB/42 KB        ~  downloading http://repo1.maven.org/maven2/asm/asm/3.3.1/asm-3.3.1.jar .   38 KB/42 KB        ~  downloading http://repo1.maven.org/maven2/asm/asm/3.3.1/asm-3.3.1.jar .   39 KB/42 KB        ~  downloading http://repo1.maven.org/maven2/asm/asm/3.3.1/asm-3.3.1.jar .   39 KB/42 KB        ~  downloading http://repo1.maven.org/maven2/asm/asm/3.3.1/asm-3.3.1.jar .   40 KB/42 KB        ~  downloading http://repo1.maven.org/maven2/asm/asm/3.3.1/asm-3.3.1.jar .   40 KB/42 KB        ~  downloading http://repo1.maven.org/maven2/asm/asm/3.3.1/asm-3.3.1.jar .   42 KB/42 KB        ~  downloading http://repo1.maven.org/maven2/asm/asm/3.3.1/asm-3.3.1.jar .   42 KB/42 KB        ~  downloading http://repo1.maven.org/maven2/asm/asm/3.3.1/asm-3.3.1.jar .   42 KB/42 KB        ~  downloaded http://repo1.maven.org/maven2/asm/asm/3.3.1/asm-3.3.1.jar                        
~
~ Some dynamic revisions have been resolved as following,
~
~   play->morphia [1.2.4,) will use version 1.2.4
~
~ Some dependencies have been evicted,
~
~   asm 3.1 is overriden by asm 3.3.1
~   cglib-nodep 2.1_3 is overriden by cglib-nodep 2.2
~   junit 3.8.1 is overriden by junit 4.8.1
~   slf4j-api 1.5.11 is overriden by slf4j-api 1.6.1
~   jcr 1.0 is overriden by jcr 2.0
~   play 1.2 is overriden by play 1.2.4
~   asm 1.5.3 is overriden by asm 3.1
~   commons-io 1.4 is overriden by commons-io 2.0.1
~   geronimo-stax-api_1.0_spec 1.0 is overriden by geronimo-stax-api_1.0_spec 1.0.1
~   commons-codec 1.2 is overriden by commons-codec 1.4
~
~ Installing resolved dependencies,
~
~   modules/morphia-1.2.4
~   modules/cream-0.1 -> /usr/local/Cellar/play/1.2.4/libexec/modules/cream-0.1
~   lib/asm-commons-3.3.1.jar
~   lib/jcr-2.0.jar
~   lib/jackrabbit-core-2.2.7.jar
~   lib/jackrabbit-jcr-rmi-2.2.7.jar
~   lib/jcrom-1.3.2.jar
~   lib/concurrent-1.3.4.jar
~   lib/commons-dbcp-1.2.2.jar
~   lib/jackrabbit-api-2.2.7.jar
~   lib/jackrabbit-jcr-commons-2.2.7.jar
~   lib/jackrabbit-spi-commons-2.2.7.jar
~   lib/jackrabbit-spi-2.2.7.jar
~   lib/tika-parsers-0.8.jar
~   lib/netcdf-4.2-min.jar
~   lib/jcl-over-slf4j-1.5.11.jar
~   lib/lucene-core-2.4.1.jar
~   lib/derby-10.5.3.0_1.jar
~   lib/commons-pool-1.3.jar
~   lib/tika-core-0.8.jar
~   lib/commons-httpclient-3.0.jar
~   lib/commons-compress-1.1.jar
~   lib/pdfbox-1.3.1.jar
~   lib/bcmail-jdk15-1.45.jar
~   lib/poi-3.7.jar
~   lib/poi-scratchpad-3.7.jar
~   lib/poi-ooxml-3.7.jar
~   lib/geronimo-stax-api_1.0_spec-1.0.1.jar
~   lib/tagsoup-1.2.jar
~   lib/metadata-extractor-2.4.0-beta-1.jar
~   lib/boilerpipe-1.1.0.jar
~   lib/rome-0.9.jar
~   lib/fontbox-1.3.1.jar
~   lib/jempbox-1.3.1.jar
~   lib/poi-ooxml-schemas-3.7.jar
~   lib/xmlbeans-2.3.0.jar
~   lib/jdom-1.0.jar
~   lib/jackrabbit-jcr-tests-2.2.7.jar
~   lib/cglib-2.1_3.jar
~   lib/asm-tree-3.3.1.jar
~   lib/asm-3.3.1.jar
~
~ Synchronizing, deleting unknown dependencies
~
~   Deleted: /Users/dan/cloudcount/vc/CloudCount/lib/asm-3.1.jar
~
~
~ Done!
~

And then here is the result of $play run


~        _            _ 
~  _ __ | | __ _ _  _| |
~ | '_ \| |/ _' | || |_|
~ |  __/|_|\____|\__ (_)
~ |_|            |__/   
~
~ play! 1.2.4, http://www.playframework.org
~
~ Ctrl+C to stop
~ 
Listening for transport dt_socket at address: 8000
13:26:47,501 INFO  ~ Starting /Users/dan/cloudcount/vc/CloudCount
13:26:47,506 WARN  ~ Declaring modules in application.conf is deprecated. Use dependencies.yml instead (module.secure)
13:26:47,507 INFO  ~ Module secure is available (/usr/local/Cellar/play/1.2.4/libexec/modules/secure)
13:26:47,508 INFO  ~ Module cream is available (/usr/local/Cellar/play/1.2.4/libexec/modules/cream-0.1)
13:26:47,508 INFO  ~ Module morphia is available (/Users/dan/cloudcount/vc/CloudCount/modules/morphia-1.2.4)
13:26:48,329 WARN  ~ You're running Play! in DEV mode
13:26:48,461 INFO  ~ Listening for HTTP on port 9000 (Waiting a first request to start) ...
13:26:59,180 ERROR ~ 

@69f4be640
Internal Server Error (500) for request GET /

Oops: NoSuchMethodError
An unexpected error occured caused by exception NoSuchMethodError: org.objectweb.asm.ClassWriter.(Z)V

play.exceptions.UnexpectedException: Unexpected Error
    at play.Invoker$Invocation.onException(Invoker.java:244)
    at play.Invoker$Invocation.run(Invoker.java:286)
    at Invocation.HTTP Request(Play!)
Caused by: java.lang.NoSuchMethodError: org.objectweb.asm.ClassWriter.<init>(Z)V
    at net.sf.cglib.core.DebuggingClassWriter.<init>(DebuggingClassWriter.java:47)
    at net.sf.cglib.core.DefaultGeneratorStrategy.getClassWriter(DefaultGeneratorStrategy.java:30)
    at net.sf.cglib.core.DefaultGeneratorStrategy.generate(DefaultGeneratorStrategy.java:24)
    at net.sf.cglib.core.AbstractClassGenerator.create(AbstractClassGenerator.java:216)
    at net.sf.cglib.core.KeyFactory$Generator.create(KeyFactory.java:145)
    at net.sf.cglib.core.KeyFactory.create(KeyFactory.java:117)
    at net.sf.cglib.core.KeyFactory.create(KeyFactory.java:108)
    at net.sf.cglib.core.KeyFactory.create(KeyFactory.java:104)
    at net.sf.cglib.proxy.Enhancer.<clinit>(Enhancer.java:69)
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Class.java:169)
    at com.google.code.morphia.mapping.lazy.LazyFeatureDependencies.testDependencyFullFilled(LazyFeatureDependencies.java:32)
    at com.google.code.morphia.mapping.lazy.LazyFeatureDependencies.createDefaultProxyFactory(LazyFeatureDependencies.java:44)
    at com.google.code.morphia.mapping.Mapper.<init>(Mapper.java:96)
    at com.google.code.morphia.Morphia.<init>(Morphia.java:47)
    at com.google.code.morphia.Morphia.<init>(Morphia.java:43)
    at play.modules.morphia.MorphiaPlugin.initMorphia_(MorphiaPlugin.java:391)
    at play.modules.morphia.MorphiaPlugin.onApplicationStart(MorphiaPlugin.java:444)
    at play.plugins.PluginCollection.onApplicationStart(PluginCollection.java:480)
    at play.Play.start(Play.java:515)
    at play.Play.detectChanges(Play.java:618)
    at play.Invoker$Invocation.init(Invoker.java:198)
    ... 1 more

Then I tried the following dependencies.yml based off of the play framework documentation to try to force certain dependencies:


require:
    - play
    - play -> morphia [1.2.4,)
    - play -> cream 0.1
    - cglib -> cglib-nodep 2.1_3:
        transitive: false
        force: true
    - asm -> asm-commons 3.3.1

This returned the same result as before on $play run. I also tried this dependencies.yml file:


# Application dependencies

require:
    - play
    - play -> morphia [1.2.4,)
    - play -> cream 0.1
    - cglib -> cglib-nodep 2.1_3:
        force: true
    - asm -> asm-commons 3.3.1:
        force: true

Which also yielded the same error. Do have any thoughts on what dependencies.yml solution I could use to resolve this conflict? Thanks so much!

jazzdan commented 12 years ago

I just tried this dependencies.yml file and got a new error message! Here is dependencies.yml:


# Application dependencies

require:
    - play
    - play -> morphia [1.2.4,)
    - play -> cream 0.1:
        transitive: false
    - cglib -> cglib-nodep 2.1_3:
        force: true
    - asm -> asm-commons 3.3.1:
        force: true

And here is the result of $play run


~        _            _ 
~  _ __ | | __ _ _  _| |
~ | '_ \| |/ _' | || |_|
~ |  __/|_|\____|\__ (_)
~ |_|            |__/   
~
~ play! 1.2.4, http://www.playframework.org
~
~ Ctrl+C to stop
~ 
Listening for transport dt_socket at address: 8000
13:40:14,104 INFO  ~ Starting /Users/dan/cloudcount/vc/CloudCount
13:40:14,109 WARN  ~ Declaring modules in application.conf is deprecated. Use dependencies.yml instead (module.secure)
13:40:14,110 INFO  ~ Module secure is available (/usr/local/Cellar/play/1.2.4/libexec/modules/secure)
13:40:14,111 INFO  ~ Module cream is available (/usr/local/Cellar/play/1.2.4/libexec/modules/cream-0.1)
13:40:14,111 INFO  ~ Module morphia is available (/Users/dan/cloudcount/vc/CloudCount/modules/morphia-1.2.4)
13:40:14,810 WARN  ~ You're running Play! in DEV mode
13:40:14,923 INFO  ~ Listening for HTTP on port 9000 (Waiting a first request to start) ...
13:40:17,716 INFO  ~ MorphiaPlugin-1.2.4> initialized
13:40:18,673 ERROR ~ 

@69f4d7j28
Internal Server Error (500) for request GET /

Oops: RuntimeException
An unexpected error occured caused by exception RuntimeException: Unsupported repository location url. Only prefix rmi:// and file:// are supported

play.exceptions.UnexpectedException: Unexpected Error
    at play.Play.start(Play.java:545)
    at play.Play.detectChanges(Play.java:618)
    at play.Invoker$Invocation.init(Invoker.java:198)
    at Invocation.HTTP Request(Play!)
Caused by: java.lang.RuntimeException: Unsupported repository location url. Only prefix rmi:// and file:// are supported
    at play.modules.cream.helpers.JcrRepositoryCreationHelper.createRepository(JcrRepositoryCreationHelper.java:159)
    at play.modules.cream.JcrPlugin.setUpJcrRepository(JcrPlugin.java:181)
    at play.modules.cream.JcrPlugin.onApplicationStart(JcrPlugin.java:127)
    at play.plugins.PluginCollection.onApplicationStart(PluginCollection.java:480)
    at play.Play.start(Play.java:515)
    ... 3 more

Progress perhaps? =) I shall continue to play around with it (no pun intended)

mfornos commented 12 years ago

Yes :)

Seems that the plugin was not configured in 'conf/application.conf'

## Cream module configuration
cream.jcr.url=file://tmp-repo
cream.jcr.username=admin
cream.jcr.password=admin
cream.jcr.workspace=default
# Path to your jackrabbit configuration.
# A default configuration will be used 
# if you don't specify any
#cream.jcr.configuration=conf/cream-repository.xml 

## Testing
%test.cream.jcr.mode=transient

By the way i'm not sure if excluding all transitive dependencies may work. But you can selectively avoid these with 'exclude:' clause.

Cheers!

jazzdan commented 12 years ago

Okay, so everything appears to be working!

My dependencies.yml file continues to look like this:

require:
    - play
    - play -> morphia [1.2.4,)
    - play -> cream 0.1:
        transitive: false
    - cglib -> cglib-nodep 2.1_3:
        force: true
    - asm -> asm-commons 3.3.1:
        force: true

I tried removing the transitive: false line but then the ASM error occurred again so it appears that it is necessary. Also, it is worth nothing that a model can't be a morphia model and a cream model at the same time because the modules conflict. I am going to close this issue but I will update with any further implementation gotchas that I run across for future googlers.

Thanks for your help mfornos!