jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alexander Klimetschek (JIRA)" <j...@apache.org>
Subject [jira] Commented: (JCR-1897) java.lang.NoSuchMethodError: org.apache.jackrabbit.value.ValueFactoryImpl.getInstance()Ljavax/jcr/ValueFactory
Date Thu, 04 Dec 2008 13:23:44 GMT

    [ https://issues.apache.org/jira/browse/JCR-1897?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12653294#action_12653294
] 

Alexander Klimetschek commented on JCR-1897:
--------------------------------------------

Which version of Jackrabbit are you using? Important for this errors are the jars jackrabbit-core-*.jar
and jackrabbit-jcr-commons-*.jar (which contains ValueFactoryImpl). Looks like a (very old)
version mismatch - the getInstance method was added in JCR-473.

> java.lang.NoSuchMethodError: org.apache.jackrabbit.value.ValueFactoryImpl.getInstance()Ljavax/jcr/ValueFactory
> --------------------------------------------------------------------------------------------------------------
>
>                 Key: JCR-1897
>                 URL: https://issues.apache.org/jira/browse/JCR-1897
>             Project: Jackrabbit
>          Issue Type: Bug
>            Reporter: Narender
>
> Am new to Jackrabbit.
> am integrating spring+jackrabbit..
> am getting error 
> NoSuchMethodError: org.apache.jackrabbit.value.ValueFactoryImpl.getInstance()Ljavax/jcr/ValueFactory;
> Caused by: java.lang.NoSuchMethodError: org.apache.jackrabbit.value.ValueFactoryImpl.getInstance()Ljavax/jcr/ValueFactory;
> Please help me....
> log4j:WARN No appenders could be found for logger (org.springframework.context.support.ClassPathXmlApplicationContext).
> log4j:WARN Please initialize the log4j system properly.
> Exception in thread "main" org.springframework.beans.factory.BeanCreationException: Error
creating bean with name 'repository' defined in class path resource [appicationContext.xml]:
Invocation of init method failed; nested exception is java.lang.NoSuchMethodError: org.apache.jackrabbit.value.ValueFactoryImpl.getInstance()Ljavax/jcr/ValueFactory;
> Caused by: java.lang.NoSuchMethodError: org.apache.jackrabbit.value.ValueFactoryImpl.getInstance()Ljavax/jcr/ValueFactory;
> 	at org.apache.jackrabbit.core.nodetype.xml.NodeTypeReader.getPropDef(NodeTypeReader.java:254)
> 	at org.apache.jackrabbit.core.nodetype.xml.NodeTypeReader.getNodeTypeDef(NodeTypeReader.java:169)
> 	at org.apache.jackrabbit.core.nodetype.xml.NodeTypeReader.getNodeTypeDefs(NodeTypeReader.java:122)
> 	at org.apache.jackrabbit.core.nodetype.xml.NodeTypeReader.read(NodeTypeReader.java:69)
> 	at org.apache.jackrabbit.core.nodetype.NodeTypeDefStore.load(NodeTypeDefStore.java:55)
> 	at org.apache.jackrabbit.core.nodetype.NodeTypeRegistry.loadBuiltInNodeTypeDefs(NodeTypeRegistry.java:788)
> 	at org.apache.jackrabbit.core.nodetype.NodeTypeRegistry.<init>(NodeTypeRegistry.java:742)
> 	at org.apache.jackrabbit.core.nodetype.NodeTypeRegistry.create(NodeTypeRegistry.java:119)
> 	at org.apache.jackrabbit.core.RepositoryImpl.createNodeTypeRegistry(RepositoryImpl.java:544)
> 	at org.apache.jackrabbit.core.RepositoryImpl.<init>(RepositoryImpl.java:267)
> 	at org.apache.jackrabbit.core.RepositoryImpl.create(RepositoryImpl.java:557)
> 	at org.springmodules.jcr.jackrabbit.RepositoryFactoryBean.createRepository(RepositoryFactoryBean.java:57)
> 	at org.springmodules.jcr.RepositoryFactoryBean.afterPropertiesSet(RepositoryFactoryBean.java:57)
> 	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1175)
> 	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1145)
> 	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:427)
> 	at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:251)
> 	at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:144)
> 	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:248)
> 	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:160)
> 	at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:276)
> 	at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:360)
> 	at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:91)
> 	at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:75)
> 	at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:65)
> 	at TestExample.main(TestExample.java:12)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message