I have a spare minute so I'll share:

Your intuiition is currently at the same stage as mine.  If I come across
this error, I would first look for the missing class, then google to see
what jars include it.  If I don't have that Jar I'll grab the maven
dependency tag for that Jar.  It can also help to look at the dependency
tree in Eclipse (open the POM in a recent Eclipse that has Maven support,
click on the dependency hierarchy tab)  The most insidious errors I've
found were caused by transient dependencies being overridden because you
included a newer version higher up in the tree, and the newer jar doesn't
have the class you were expecting, or some method signature changed.

The dependency hierarchy tab is also good for finding duplicates of things
like log4j or other logger bindings.   Once you know which jars have
offending transitive dependencies, you can go in and start putting
<excludes> tags on those.


On Sat, Mar 1, 2014 at 9:17 AM, nhhockeyplayer nashua <
nhhockeypla...@hotmail.com> wrote:

> Hi Folks,
>
> As applications become more involved, so do the dependencies. And I am
> finding myself moreso needing to examine the dependency tree to determine
> what is tripping things up.
>
> But the talent of identification is something that comes with field
> experience.
>
> I was hoping I could get some help with this one.
>
> first the error... then the tree...
>
> either something is tripping something up or I forgot to include a
> library... which leaves me to grab a class file name and search for who it
> is owned by and then include that library ? Search and Grab ?
>
> Thanks in advance...
>
> 2014-03-01 09:03:09.234:WARN::failed app: java.lang.RuntimeException:
> Exception constructing service 'SeedEntity': Error invoking constructor
> public org.tynamo.seedentity
> .hibernate.services.SeedEntityImpl(org.slf4j.Logger,org.apache.tapestry5.hibernate.HibernateSessionSource,java.util.List):
> Exception constructing service 'HibernateSessio
> nSource': Error invoking constructor public
> org.apache.tapestry5.internal.hibernate.HibernateSessionSourceImpl(org.slf4j.Logger,java.util.List):
> org.hibernate.integrator.
> spi.Integrator: Provider
> org.hibernate.search.hcore.impl.MassIndexerFactoryIntegrator could not be
> instantiated: java.lang.NoClassDefFoundError: org/hibernate/service/spi
> /BasicServiceInitiator
> 2014-03-01 09:03:09.238:WARN::Failed startup of context
> org.mortbay.jetty.plugin.Jetty6PluginWebAppContext@11ce012
> {/pphl,C:\Prototype\Mavenized\Product\tynamo\trunk\tynam
> o-examples\pphl\src\main\webapp}
> java.lang.RuntimeException: Exception constructing service 'SeedEntity':
> Error invoking constructor public
> org.tynamo.seedentity.hibernate.services.SeedEntityImpl(org.slf
> 4j.Logger,org.apache.tapestry5.hibernate.HibernateSessionSource,java.util.List):
> Exception constructing service 'HibernateSessionSource': Error invoking
> constructor publi
> c
> org.apache.tapestry5.internal.hibernate.HibernateSessionSourceImpl(org.slf4j.Logger,java.util.List):
> org.hibernate.integrator.spi.Integrator: Provider org.hibernate.sea
> rch.hcore.impl.MassIndexerFactoryIntegrator could not be instantiated:
> java.lang.NoClassDefFoundError:
> org/hibernate/service/spi/BasicServiceInitiator
>         at
> org.apache.tapestry5.ioc.internal.services.JustInTimeObjectCreator.obtainObjectFromCreator(JustInTimeObjectCreator.java:75)
>         at
> org.apache.tapestry5.ioc.internal.services.JustInTimeObjectCreator.createObject(JustInTimeObjectCreator.java:54)
>         at
> org.apache.tapestry5.ioc.internal.services.JustInTimeObjectCreator.eagerLoadService(JustInTimeObjectCreator.java:86)
>         at
> org.apache.tapestry5.ioc.internal.RegistryImpl.performRegistryStartup(RegistryImpl.java:318)
>
>
>
> ============== dependency tree follows ==============
>
> [INFO] Scanning for projects...
> [INFO]
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Building Tynamo Example - pphl 1.0-SNAPSHOT
> [INFO]
> ------------------------------------------------------------------------
> [INFO]
> [INFO] --- maven-dependency-plugin:2.4:tree (default-cli) @ pphl ---
> [INFO] org.tynamo.examples:pphl:war:1.0-SNAPSHOT
> [INFO] +- org.tynamo:tapestry-model-hibernate:jar:0.6.0-SNAPSHOT:compile
> [INFO] |  +- org.tynamo:tapestry-model-core:jar:0.6.0-SNAPSHOT:compile
> [INFO] |  |  +-
> org.tynamo:tapestry-model-annotations:jar:0.6.0-SNAPSHOT:compile
> [INFO] |  |  \- org.tynamo:tapestry-ckeditor:jar:0.0.1:compile
> [INFO] |  +- org.apache.tapestry:tapestry-hibernate:jar:5.4-beta-2:compile
> [INFO] |  |  +- org.jboss.logging:jboss-logging:jar:3.1.0.GA:compile
> [INFO] |  |  \-
> org.apache.tapestry:tapestry-hibernate-core:jar:5.4-beta-2:compile
> [INFO] |  |     +-
> org.hibernate.javax.persistence:hibernate-jpa-2.0-api:jar:1.0.0.Final:compile
> [INFO] |  |     +- geronimo-spec:geronimo-spec-jta:jar:1.0-M1:runtime
> [INFO] |  |     \- javassist:javassist:jar:3.12.1.GA:runtime
> [INFO] |  +- org.hibernate:hibernate-validator:jar:4.3.0.Final:compile
> [INFO] |  |  \- javax.validation:validation-api:jar:1.0.0.GA:compile
> [INFO] |  +-
> org.apache.tapestry:tapestry-beanvalidator:jar:5.4-beta-2:compile
> [INFO] |  \- org.slf4j:slf4j-log4j12:jar:1.7.2:compile
> [INFO] |     \- log4j:log4j:jar:1.2.17:compile
> [INFO] +- org.tynamo:tynamo-test:jar:0.0.1:test
> [INFO] |  +- org.eclipse.jetty:jetty-webapp:jar:8.1.8.v20121106:test
> [INFO] |  |  +- org.eclipse.jetty:jetty-xml:jar:8.1.8.v20121106:test
> [INFO] |  |  |  \- org.eclipse.jetty:jetty-util:jar:8.1.8.v20121106:test
> [INFO] |  |  \- org.eclipse.jetty:jetty-servlet:jar:8.1.8.v20121106:test
> [INFO] |  |     \-
> org.eclipse.jetty:jetty-security:jar:8.1.8.v20121106:test
> [INFO] |  |        \-
> org.eclipse.jetty:jetty-server:jar:8.1.8.v20121106:test
> [INFO] |  |           +-
> org.eclipse.jetty.orbit:javax.servlet:jar:3.0.0.v201112011016:test
> [INFO] |  |           \-
> org.eclipse.jetty:jetty-continuation:jar:8.1.8.v20121106:test
> [INFO] |  +- org.testng:testng:jar:5.14.10:test
> [INFO] |  |  +- junit:junit:jar:3.8.1:test
> [INFO] |  |  +- org.beanshell:bsh:jar:2.0b4:test
> [INFO] |  |  +- com.beust:jcommander:jar:1.12:test
> [INFO] |  |  \- org.yaml:snakeyaml:jar:1.6:test
> [INFO] |  \- net.sourceforge.htmlunit:htmlunit:jar:2.11:test
> [INFO] |     +- xalan:xalan:jar:2.7.1:test
> [INFO] |     |  \- xalan:serializer:jar:2.7.1:test
> [INFO] |     +- org.apache.commons:commons-lang3:jar:3.1:test
> [INFO] |     +- org.apache.httpcomponents:httpmime:jar:4.2.2:test
> [INFO] |     +- net.sourceforge.htmlunit:htmlunit-core-js:jar:2.11:test
> [INFO] |     +- xerces:xercesImpl:jar:2.10.0:test
> [INFO] |     +- net.sourceforge.nekohtml:nekohtml:jar:1.9.17:test
> [INFO] |     +- net.sourceforge.cssparser:cssparser:jar:0.9.8:test
> [INFO] |     |  \- org.w3c.css:sac:jar:1.3:test
> [INFO] |     \- org.eclipse.jetty:jetty-websocket:jar:8.1.7.v20120910:test
> [INFO] |        +- org.eclipse.jetty:jetty-io:jar:8.1.7.v20120910:test
> [INFO] |        \- org.eclipse.jetty:jetty-http:jar:8.1.7.v20120910:test
> [INFO] +- org.tynamo:tapestry-model-web:jar:0.6.0-SNAPSHOT:compile
> [INFO] +- org.tynamo:tapestry-routing:jar:0.0.8-SNAPSHOT:compile
> [INFO] +- org.tynamo:tapestry-security:jar:0.6.0-SNAPSHOT:compile
> [INFO] |  +- org.apache.shiro:shiro-web:jar:1.2.2:compile
> [INFO] |  |  \- org.apache.shiro:shiro-core:jar:1.2.2:compile
> [INFO] |  +- org.apache.tapestry:tapestry-core:jar:5.4-beta-2:compile
> [INFO] |  |  +- org.antlr:antlr-runtime:jar:3.3:compile
> [INFO] |  |  +- commons-codec:commons-codec:jar:1.5:compile
> [INFO] |  |  \- org.apache.tapestry:tapestry-json:jar:5.4-beta-2:compile
> [INFO] |  +- org.apache.tapestry:tapestry-ioc:jar:5.4-beta-2:compile
> [INFO] |  |  +- org.apache.tapestry:plastic:jar:5.4-beta-2:compile
> [INFO] |  |  +- javax.inject:javax.inject:jar:1:compile
> [INFO] |  |  +- org.apache.tapestry:tapestry-func:jar:5.4-beta-2:compile
> [INFO] |  |  \-
> org.apache.tapestry:tapestry5-annotations:jar:5.4-beta-2:compile
> [INFO] |  \- org.tynamo:tynamo-common:jar:0.0.4-SNAPSHOT:compile
> [INFO] +-
> org.tynamo.security:tynamo-federatedaccounts-core:jar:0.4.6-SNAPSHOT:compile
> [INFO] |  +- org.apache.httpcomponents:httpclient:jar:4.2.5:compile
> [INFO] |  |  +- org.apache.httpcomponents:httpcore:jar:4.2.4:compile
> [INFO] |  |  \- commons-logging:commons-logging:jar:1.1.1:compile
> [INFO] |  \- org.slf4j:slf4j-api:jar:1.7.2:compile
> [INFO] +-
> org.tynamo.security:tynamo-federatedaccounts-facebook:jar:0.4.6-SNAPSHOT:compile
> [INFO] +-
> org.tynamo.security:tynamo-federatedaccounts-twitter:jar:0.4.6-SNAPSHOT:compile
> [INFO] |  \- org.twitter4j:twitter4j-core:jar:3.0.3:compile
> [INFO] +- org.tynamo.gae:esxx-httpclient-gae:jar:0.0.2-SNAPSHOT:compile
> [INFO] +- javax.servlet:servlet-api:jar:2.5:provided
> [INFO] +-
> org.tynamo:tapestry-hibernate-seedentity:jar:0.1.4-SNAPSHOT:compile
> [INFO] |  \- commons-beanutils:commons-beanutils:jar:1.8.1:compile
> [INFO] +- com.restfb:restfb:jar:1.6.6:compile
> [INFO] +- org.tynamo:tapestry-watchdog:jar:0.0.3-SNAPSHOT:compile
> [INFO] +-
> org.apache.geronimo.specs:geronimo-javamail_1.4_spec:jar:1.6:compile
> [INFO] +-
> org.apache.geronimo.javamail:geronimo-javamail_1.4_provider:jar:1.8:compile
> [INFO] +- commons-pool:commons-pool:jar:1.6:compile
> [INFO] +- commons-dbcp:commons-dbcp:jar:1.4:compile
> [INFO] +- org.hibernate:hibernate-search:jar:4.3.0.Final:compile
> [INFO] |  \- org.hibernate:hibernate-search-orm:jar:4.3.0.Final:compile
> [INFO] |     +-
> org.hibernate:hibernate-search-engine:jar:4.3.0.Final:compile
> [INFO] |     |  +-
> org.hibernate.common:hibernate-commons-annotations:jar:4.0.2.Final:compile
> [INFO] |     |  +- org.apache.lucene:lucene-core:jar:3.6.2:compile
> [INFO] |     |  +- org.apache.avro:avro:jar:1.6.3:compile
> [INFO] |     |  |  +-
> org.codehaus.jackson:jackson-core-asl:jar:1.8.8:compile
> [INFO] |     |  |  +-
> org.codehaus.jackson:jackson-mapper-asl:jar:1.8.8:compile
> [INFO] |     |  |  +- com.thoughtworks.paranamer:paranamer:jar:2.3:compile
> [INFO] |     |  |  \- org.xerial.snappy:snappy-java:jar:1.0.4.1:compile
> [INFO] |     |  \- org.apache.lucene:lucene-facet:jar:3.6.2:compile
> [INFO] |     +- org.hibernate:hibernate-core:jar:4.3.0.Final:compile
> [INFO] |     |  +-
> org.jboss.logging:jboss-logging-annotations:jar:1.2.0.Beta1:compile
> [INFO] |     |  +-
> org.jboss.spec.javax.transaction:jboss-transaction-api_1.2_spec:jar:1.0.0.Final:compile
> [INFO] |     |  +- dom4j:dom4j:jar:1.6.1:compile
> [INFO] |     |  |  \- xml-apis:xml-apis:jar:1.0.b2:compile
> [INFO] |     |  +-
> org.hibernate.javax.persistence:hibernate-jpa-2.1-api:jar:1.0.0.Final:compile
> [INFO] |     |  +- org.javassist:javassist:jar:3.18.1-GA:compile
> [INFO] |     |  +- antlr:antlr:jar:2.7.7:compile
> [INFO] |     |  \- org.jboss:jandex:jar:1.1.0.Final:compile
> [INFO] |     \-
> org.hibernate:hibernate-search-analyzers:jar:4.3.0.Final:compile
> [INFO] |        +- org.apache.lucene:lucene-analyzers:jar:3.6.2:compile
> [INFO] |        \- org.apache.solr:solr-analysis-extras:jar:3.6.2:compile
> [INFO] |           +- org.apache.solr:solr-core:jar:3.6.2:compile
> [INFO] |           |  +- org.apache.solr:solr-solrj:jar:3.6.2:compile
> [INFO] |           |  +-
> org.apache.lucene:lucene-highlighter:jar:3.6.2:compile
> [INFO] |           |  +-
> org.apache.lucene:lucene-kuromoji:jar:3.6.2:compile
> [INFO] |           |  +- org.apache.lucene:lucene-memory:jar:3.6.2:compile
> [INFO] |           |  +- org.apache.lucene:lucene-misc:jar:3.6.2:compile
> [INFO] |           |  +-
> org.apache.lucene:lucene-phonetic:jar:3.6.2:compile
> [INFO] |           |  +- org.apache.lucene:lucene-spatial:jar:3.6.2:compile
> [INFO] |           |  +-
> org.apache.lucene:lucene-spellchecker:jar:3.6.2:compile
> [INFO] |           |  \-
> org.apache.lucene:lucene-grouping:jar:3.6.2:compile
> [INFO] |           +- org.apache.lucene:lucene-smartcn:jar:3.6.2:compile
> [INFO] |           \- org.apache.lucene:lucene-stempel:jar:3.6.2:compile
> [INFO] +-
> org.hibernate:hibernate-commons-annotations:jar:4.0.4.Final:compile
> [INFO] +- org.got5:tapestry5-jquery:jar:3.3.5:compile
> [INFO] |  +- org.apache.tapestry:tapestry-upload:jar:5.3.6:compile
> [INFO] |  |  \- commons-io:commons-io:jar:2.0.1:compile
> [INFO] |  +- commons-fileupload:commons-fileupload:jar:1.2.2:compile
> [INFO] |  \- commons-lang:commons-lang:jar:2.6:compile
> [INFO] +- org.eclipse.persistence:eclipselink:jar:2.4.1:compile
> [INFO] \- commons-collections:commons-collections:jar:3.2.1:compile
> [INFO]
> ------------------------------------------------------------------------
> [INFO] BUILD SUCCESS
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Total time: 3.647s
> [INFO] Finished at: Sat Mar 01 09:16:34 EST 2014
> [INFO] Final Memory: 12M/29M
> [INFO]
> ------------------------------------------------------------------------
>
>

Reply via email to