Hi Jan, Thank you very much -- that was the problem! CRX is packaged with Derby 10.1.2.1 and Magnolia uses 10.1.3.1. Thanks again for the quick response. Best, Ryan
On 11/3/07, Jan Nielsen <[email protected]> wrote: > Ryan, > > From the error embedded within the stacktrace: > > "javax.jcr.RepositoryException: Cannot instantiate persistence manager > com.day.crx.persistence.DerbyPersistenceManager : No method was found > that matched the method call > org.apache.derby.iapi.types.Like.lessThanStringFromParameter(java.lang.String)," > > it appears that the Day's Derby persistence manager was compiled > against a different version of the Derby that you have configured. > Specifically, the version of Derby you're using does not have the > "lessThanStringFromParameter(String)" static and/or public method. > > You might try downgrading (or possibly upgrading) your Derby DB to one > that contains this method. > > -Jan > > On 11/2/07, Ryan Bales <[email protected]> wrote: > > Hi there -- > > I am attempting to run Magnolia with CRX 2.1 via the Enterprise > > connector (as CRX connectivity will be the determining factor of my > > companies decision between Magnolia or Day's Communique). I currently > > have crx as a webapp and I have edited the magnoliaAuthor > > repositories.xml file as advised in the .readme. repositories.xml > > seems to be correct because I am connecting to the CRX repository. The > > CRX repository is located in the same place as magnolia > > (/magnoliaAuthor/repositories/crx). However, when I start Magnolia I > > get this error: > > > > INFO info.magnolia.cms.beans.config.ConfigLoader > > ConfigLoader.java(load:111) 02.11.2007 23:32:17 Init content > > repositories > > INFO info.magnolia.cms.beans.config.ContentRepository > > ContentRepository.java(init:183) 02.11.2007 23:32:17 System : loading > > JCR > > INFO info.magnolia.cms.beans.config.ContentRepository > > ContentRepository.java(loadRepositories:291) 02.11.2007 23:32:17 > > Loading workspace:website > > INFO info.magnolia.cms.beans.config.ContentRepository > > ContentRepository.java(loadRepositories:291) 02.11.2007 23:32:17 > > Loading workspace:config > > INFO info.magnolia.cms.beans.config.ContentRepository > > ContentRepository.java(loadRepositories:291) 02.11.2007 23:32:17 > > Loading workspace:users > > INFO info.magnolia.cms.beans.config.ContentRepository > > ContentRepository.java(loadRepositories:291) 02.11.2007 23:32:17 > > Loading workspace:userroles > > INFO info.magnolia.cms.beans.config.ContentRepository > > ContentRepository.java (loadRepositories:291) 02.11.2007 23:32:17 > > Loading workspace:usergroups > > INFO info.magnolia.cms.beans.config.ContentRepository > > ContentRepository.java(loadRepositories:291) 02.11.2007 23:32:17 > > Loading workspace:mgnlSystem > > INFO info.magnolia.cms.beans.config.ContentRepository > > ContentRepository.java(loadRepositories:291) 02.11.2007 23:32:17 > > Loading workspace:mgnlVersion > > INFO info.magnolia.cms.beans.config.ContentRepository > > ContentRepository.java (loadRepositories:291) 02.11.2007 23:32:17 > > Loading workspace:dms > > INFO info.magnolia.cms.beans.config.ContentRepository > > ContentRepository.java(loadRepositories:291) 02.11.2007 23:32:17 > > Loading workspace:packages > > INFO info.magnolia.cms.beans.config.ContentRepository > > ContentRepository.java(loadRepositories:291) 02.11.2007 23:32:17 > > Loading workspace:Store > > INFO info.magnolia.cms.beans.config.ContentRepository > > ContentRepository.java (loadRepositories:291) 02.11.2007 23:32:17 > > Loading workspace:Expressions > > INFO info.magnolia.cms.beans.config.ContentRepository > > ContentRepository.java(loadRepository:334) 02.11.2007 23:32:17 System > > : loading JCR magnolia > > 02.11.2007 23:32:17 *ERROR* RepositoryImpl: Unable to initialize > > workspace 'website' (RepositoryImpl.java, line 650) > > javax.jcr.RepositoryException: Cannot instantiate persistence manager > > com.day.crx.persistence.DerbyPersistenceManager : No method was found > > that matched the method call > > org.apache.derby.iapi.types.Like.lessThanStringFromParameter(java.lang.String), > > tried all combinations of object and primitive types and any possible > > type conversion for any parameters the method call may have. The > > method might exist but it is not public and/or static, or the > > parameter types are not method invocation convertible.: No method was > > found that matched the method call > > org.apache.derby.iapi.types.Like.lessThanStringFromParameter(java.lang.String), > > tried all combinations of object and primitive types and any possible > > type conversion for any parameters the method call may have. The > > method might exist but it is not public and/or static, or the > > parameter types are not method invocation convertible. > > at > > com.day.crx.core.RepositoryImpl.createPersistenceManager(RepositoryImpl.java:1063) > > at com.day.crx.core.RepositoryImpl.access$500(RepositoryImpl.java:87) > > at com.day.crx.core.RepositoryImpl$WorkspaceInfo.initialize > > (RepositoryImpl.java:1584) > > at > > com.day.crx.core.RepositoryImpl.initWorkspace(RepositoryImpl.java:503) > > at > > com.day.crx.core.RepositoryImpl.getWorkspaceInfo(RepositoryImpl.java:648) > > at com.day.crx.core.CRXRepositoryImpl.login (CRXRepositoryImpl.java:409) > > at com.day.crx.core.CRXRepositoryImpl.login(CRXRepositoryImpl.java:386) > > at > > info.magnolia.cms.beans.config.ContentRepository.loadHierarchyManager(ContentRepository.java:380) > > at > > info.magnolia.cms.beans.config.ContentRepository.loadRepository(ContentRepository.java:345) > > at > > info.magnolia.cms.beans.config.ContentRepository.loadRepositories(ContentRepository.java:300) > > at info.magnolia.cms.beans.config.ContentRepository.init > > (ContentRepository.java:187) > > at > > info.magnolia.cms.beans.config.ConfigLoader.load(ConfigLoader.java:112) > > at > > info.magnolia.cms.beans.config.ConfigLoader.<init>(ConfigLoader.java:98) > > at info.magnolia.cms.servlets.PropertyInitializer.contextInitialized > > (PropertyInitializer.java:191) > > at > > org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3827) > > at > > org.apache.catalina.core.StandardContext.start(StandardContext.java:4343) > > at org.apache.catalina.core.ContainerBase.addChildInternal > > (ContainerBase.java:823) > > at > > org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:807) > > at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:595) > > at org.apache.catalina.core.StandardHostDeployer.install > > (StandardHostDeployer.java:277) > > at org.apache.catalina.core.StandardHost.install(StandardHost.java:832) > > at > > org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:701) > > at org.apache.catalina.startup.HostConfig.deployApps > > (HostConfig.java:432) > > at org.apache.catalina.startup.HostConfig.start(HostConfig.java:983) > > at > > org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:349) > > at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent > > (LifecycleSupport.java:119) > > at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1091) > > at org.apache.catalina.core.StandardHost.start(StandardHost.java:789) > > at org.apache.catalina.core.ContainerBase.start > > (ContainerBase.java:1083) > > at > > org.apache.catalina.core.StandardEngine.start(StandardEngine.java:478) > > at > > org.apache.catalina.core.StandardService.start(StandardService.java:480) > > at org.apache.catalina.core.StandardServer.start > > (StandardServer.java:2313) > > at org.apache.catalina.startup.Catalina.start(Catalina.java:556) > > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > > at sun.reflect.NativeMethodAccessorImpl.invoke > > (NativeMethodAccessorImpl.java:39) > > at > > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) > > at java.lang.reflect.Method.invoke(Method.java:585) > > at org.apache.catalina.startup.Bootstrap.start (Bootstrap.java:287) > > at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:425) > > Caused by: SQL Exception: No method was found that matched the method > > call org.apache.derby.iapi.types.Like.lessThanStringFromParameter > > (java.lang.String), tried all combinations of object and primitive > > types and any possible type conversion for any parameters the method > > call may have. The method might exist but it is not public and/or > > static, or the parameter types are not method invocation convertible. > > at org.apache.derby.impl.jdbc.Util.generateCsSQLException(Unknown > > Source) > > at > > org.apache.derby.impl.jdbc.TransactionResourceImpl.wrapInSQLException(Unknown > > Source) > > at org.apache.derby.impl.jdbc.TransactionResourceImpl.handleException > > (Unknown Source) > > at org.apache.derby.impl.jdbc.EmbedConnection.handleException(Unknown > > Source) > > at org.apache.derby.impl.jdbc.ConnectionChild.handleException(Unknown > > Source) > > at org.apache.derby.impl.jdbc.EmbedPreparedStatement .<init>(Unknown > > Source) > > at org.apache.derby.impl.jdbc.EmbedPreparedStatement20.<init>(Unknown > > Source) > > at org.apache.derby.impl.jdbc.EmbedPreparedStatement30.<init>(Unknown > > Source) > > at org.apache.derby.jdbc.Driver30.newEmbedPreparedStatement(Unknown > > Source) > > at > > org.apache.derby.impl.jdbc.EmbedConnection.prepareMetaDataStatement(Unknown > > Source) > > at org.apache.derby.impl.jdbc.EmbedDatabaseMetaData.getTables > > (Unknown Source) > > at > > com.day.crx.persistence.jdbc.BundleDbPersistenceManager.checkSchema(BundleDbPersistenceManager.java:527) > > at > > com.day.crx.persistence.DerbyPersistenceManager.checkSchema(DerbyPersistenceManager.java > > :289) > > at > > com.day.crx.persistence.jdbc.BundleDbPersistenceManager.init(BundleDbPersistenceManager.java:627) > > at > > com.day.crx.persistence.DerbyPersistenceManager.init(DerbyPersistenceManager.java:265) > > at > > com.day.crx.core.RepositoryImpl.createPersistenceManager(RepositoryImpl.java:1059) > > ... 38 more > > ERROR 42X50: No method was found that matched the method call > > org.apache.derby.iapi.types.Like.lessThanStringFromParameter > > (java.lang.String), tried all combinations of object and primitive > > types and any possible type conversion for any parameters the method > > call may have. The method might exist but it is not public and/or > > static, or the parameter types are not method invocation convertible. > > at org.apache.derby.iapi.error.StandardException.newException(Unknown > > Source) > > at > > org.apache.derby.impl.sql.compile.MethodCallNode.throwNoMethodFound(Unknown > > Source) > > at org.apache.derby.impl.sql.compile.MethodCallNode.resolveMethodCall > > (Unknown Source) > > at > > org.apache.derby.impl.sql.compile.StaticMethodCallNode.bindExpression(Unknown > > Source) > > at > > org.apache.derby.impl.sql.compile.JavaToSQLValueNode.bindExpression(Unknown > > Source) > > at > > org.apache.derby.impl.sql.compile.LikeEscapeOperatorNode.setupOptimizeStringFromParameter > > (Unknown Source) > > at > > org.apache.derby.impl.sql.compile.LikeEscapeOperatorNode.preprocess(Unknown > > Source) > > at org.apache.derby.impl.sql.compile.AndNode.preprocess(Unknown Source) > > at org.apache.derby.impl.sql.compile.AndNode.preprocess (Unknown Source) > > at org.apache.derby.impl.sql.compile.AndNode.preprocess(Unknown Source) > > at org.apache.derby.impl.sql.compile.AndNode.preprocess(Unknown Source) > > at org.apache.derby.impl.sql.compile.SelectNode.preprocess (Unknown > > Source) > > at org.apache.derby.impl.sql.compile.DMLStatementNode.optimize(Unknown > > Source) > > at org.apache.derby.impl.sql.compile.CursorNode.optimize(Unknown Source) > > at org.apache.derby.impl.sql.GenericStatement.prepMinion (Unknown > > Source) > > at org.apache.derby.impl.sql.GenericStatement.prepare(Unknown Source) > > at > > org.apache.derby.impl.sql.conn.GenericLanguageConnectionContext.prepareInternalStatement(Unknown > > Source) > > at org.apache.derby.impl.jdbc.EmbedPreparedStatement .<init>(Unknown > > Source) > > at org.apache.derby.impl.jdbc.EmbedPreparedStatement20.<init>(Unknown > > Source) > > at org.apache.derby.impl.jdbc.EmbedPreparedStatement30.<init>(Unknown > > Source) > > at org.apache.derby.jdbc.Driver30.newEmbedPreparedStatement(Unknown > > Source) > > at > > org.apache.derby.impl.jdbc.EmbedConnection.prepareMetaDataStatement(Unknown > > Source) > > at org.apache.derby.impl.jdbc.EmbedDatabaseMetaData.getTables > > (Unknown Source) > > at > > com.day.crx.persistence.jdbc.BundleDbPersistenceManager.checkSchema(BundleDbPersistenceManager.java:527) > > at > > com.day.crx.persistence.DerbyPersistenceManager.checkSchema(DerbyPersistenceManager.java > > :289) > > at > > com.day.crx.persistence.jdbc.BundleDbPersistenceManager.init(BundleDbPersistenceManager.java:627) > > at > > com.day.crx.persistence.DerbyPersistenceManager.init(DerbyPersistenceManager.java:265) > > at > > com.day.crx.core.RepositoryImpl.createPersistenceManager(RepositoryImpl.java:1059) > > at com.day.crx.core.RepositoryImpl.access$500(RepositoryImpl.java:87) > > at com.day.crx.core.RepositoryImpl$WorkspaceInfo.initialize > > (RepositoryImpl.java:1584) > > at > > com.day.crx.core.RepositoryImpl.initWorkspace(RepositoryImpl.java:503) > > at > > com.day.crx.core.RepositoryImpl.getWorkspaceInfo(RepositoryImpl.java:648) > > at com.day.crx.core.CRXRepositoryImpl.login (CRXRepositoryImpl.java:409) > > at com.day.crx.core.CRXRepositoryImpl.login(CRXRepositoryImpl.java:386) > > at > > info.magnolia.cms.beans.config.ContentRepository.loadHierarchyManager(ContentRepository.java:380) > > at > > info.magnolia.cms.beans.config.ContentRepository.loadRepository(ContentRepository.java:345) > > at > > info.magnolia.cms.beans.config.ContentRepository.loadRepositories(ContentRepository.java:300) > > at info.magnolia.cms.beans.config.ContentRepository.init > > (ContentRepository.java:187) > > at > > info.magnolia.cms.beans.config.ConfigLoader.load(ConfigLoader.java:112) > > at > > info.magnolia.cms.beans.config.ConfigLoader.<init>(ConfigLoader.java:98) > > at info.magnolia.cms.servlets.PropertyInitializer.contextInitialized > > (PropertyInitializer.java:191) > > at > > org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3827) > > at > > org.apache.catalina.core.StandardContext.start(StandardContext.java:4343) > > at org.apache.catalina.core.ContainerBase.addChildInternal > > (ContainerBase.java:823) > > at > > org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:807) > > at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:595) > > at org.apache.catalina.core.StandardHostDeployer.install > > (StandardHostDeployer.java:277) > > at org.apache.catalina.core.StandardHost.install(StandardHost.java:832) > > at > > org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:701) > > at org.apache.catalina.startup.HostConfig.deployApps > > (HostConfig.java:432) > > at org.apache.catalina.startup.HostConfig.start(HostConfig.java:983) > > at > > org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:349) > > at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent > > (LifecycleSupport.java:119) > > at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1091) > > at org.apache.catalina.core.StandardHost.start(StandardHost.java:789) > > at org.apache.catalina.core.ContainerBase.start > > (ContainerBase.java:1083) > > at > > org.apache.catalina.core.StandardEngine.start(StandardEngine.java:478) > > at > > org.apache.catalina.core.StandardService.start(StandardService.java:480) > > at org.apache.catalina.core.StandardServer.start > > (StandardServer.java:2313) > > at org.apache.catalina.startup.Catalina.start(Catalina.java:556) > > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > > at sun.reflect.NativeMethodAccessorImpl.invoke > > (NativeMethodAccessorImpl.java:39) > > at > > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) > > at java.lang.reflect.Method.invoke(Method.java:585) > > at org.apache.catalina.startup.Bootstrap.start (Bootstrap.java:287) > > at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:425) > > ERROR info.magnolia.cms.beans.config.ContentRepository > > ContentRepository.java(loadHierarchyManager:402) 02.11.2007 23:32:17 > > System : Failed to initialize hierarchy manager for JCR magnolia > > ERROR info.magnolia.cms.beans.config.ContentRepository > > ContentRepository.java(loadHierarchyManager:403) 02.11.2007 23:32:17 > > website > > javax.jcr.NoSuchWorkspaceException: website > > > > > > When I look in the repository directories, it looks as though website, > > config, etc etc have been created in the CRX repository -- so I am a > > little confused ... perhaps a ram issue? > > Any help would be greatly appreciated! I have spent the better part of > > the day trying to solve this. > > Thank you very much > > -Ryan > > > > ---------------------------------------------------------------- > > for list details see > > http://documentation.magnolia.info/docs/en/editor/stayupdated.html > > ---------------------------------------------------------------- > > > > ---------------------------------------------------------------- > for list details see > http://documentation.magnolia.info/docs/en/editor/stayupdated.html > ---------------------------------------------------------------- > ---------------------------------------------------------------- for list details see http://documentation.magnolia.info/docs/en/editor/stayupdated.html ----------------------------------------------------------------
