Hi Amir, That's very strange. What you did seems correct to me. Could it be a typo or control character or something like that?
Some thoughts: - I would leave the derby JAR. I think it's a Jackrabbit dependency, even if you're not using Derby directly. I don't know that it is needed, but unless you've seen documentation indicating otherwise I would leave it. - I assume in step #7 you put the JDBC Driver for oracle under /webapps/magnolia/WEB-INF/lib Regards from Vienna, Richard -----Ursprüngliche Nachricht----- Von: [email protected] [mailto:[email protected]] Im Auftrag von Amir Razi (via Magnolia Forums) Gesendet: Mittwoch, 02. Mai 2012 15:26 An: Magnolia User List Betreff: [magnolia-user] Re: Configure Magnolia Community Version 4.5.2 with Oracle 11g Hi Richard, Thank you so much for your response! But I still have problem! Here is what I have done: 1. Downloaded the community version 4.5 of an empty war; renamed to war to magnolia.war. 2. Dropped it in the webapp folder of an already installed Tomcat 3. Start the tomcat to deploy the WAR 4. Took the derby jar out of the 5. Moved to \webapps\magnolia\WEB-INF\config\repo-conf, and created a copy of "jackrabbit-bundle-mysql-search.xml" and renamed it to "jackrabbit-bundle-oracle-search.xml" 6. Edited the "jackrabbit-bundle-oracle-search.xml" by replacing the "<PersistenceManager " tag with the following Oracle tag: <PersistenceManager class="org.apache.jackrabbit.core.persistence.bundle.OraclePersistenceManager"> <param name="driver" value="oracle.jdbc.OracleDriver"/> <param name="url" value="jdbc:oracle:thin:@<database-host>:1521:magnolia_author"/> <param name="schema" value="oracle" /><!-- warning, this is not the schema name, it's the db type --> <param name="user" value="myuser"/> <param name="password" value="mypassword"/> <param name="schemaObjectPrefix" value="${wsp.name}_"/> <param name="externalBLOBs" value="false"/> </PersistenceManager> I replaced the url, user, and password values to the correct values. This tag is happening in two places in this file. I replaced it in the same way in both places. 7. Edited the followingline in "C:\programs\tomcat6\webapps\magnolia\WEB-INF\config\default\magnolia.properties" as below: magnolia.repositories.jackrabbit.config=WEB-INF/config/repo-conf/jackrabbit-bundle-oracle-search.xml 7. Put the ojdbc6.jar into /webapps/magnolia/lib 8. After restarting the tomcat, the following error shows up: ERROR info.magnolia.jackrabbit.ProviderImpl 02.05.2012 08:51:51 -- Unable to initialize repository: Replacement not found for ${wsp.name}. org.apache.jackrabbit.core.config.ConfigurationException: Replacement not found for ${wsp.name}. at org.apache.jackrabbit.core.config.ConfigurationParser.replaceVariables(ConfigurationParser.java:208) at org.apache.jackrabbit.core.config.ConfigurationParser.parseParameters(ConfigurationParser.java:183) at org.apache.jackrabbit.core.config.ConfigurationParser.parseBeanConfig(ConfigurationParser.java:116) at org.apache.jackrabbit.core.config.RepositoryConfigurationParser.parseBeanConfig(RepositoryConfigurationParser.java:356) at org.apache.jackrabbit.core.config.RepositoryConfigurationParser.parsePersistenceManagerConfig(RepositoryConfigurationParser.java:1044) at org.apache.jackrabbit.core.config.RepositoryConfigurationParser.parseVersioningConfig(RepositoryConfigurationParser.java:806) at org.apache.jackrabbit.core.config.RepositoryConfigurationParser.parseRepositoryConfig(RepositoryConfigurationParser.java:329) at org.apache.jackrabbit.core.config.RepositoryConfig.create(RepositoryConfig.java:351) at org.apache.jackrabbit.core.config.RepositoryConfig.create(RepositoryConfig.java:327) at org.apache.jackrabbit.core.config.RepositoryConfig.create(RepositoryConfig.java:277) at org.apache.jackrabbit.core.jndi.BindableRepository.createRepository(BindableRepository.java:138) at org.apache.jackrabbit.core.jndi.BindableRepository.init(BindableRepository.java:117) at org.apache.jackrabbit.core.jndi.BindableRepository.<init>(BindableRepository.java:106) at org.apache.jackrabbit.core.jndi.BindableRepositoryFactory.getObjectInstance(BindableRepositoryFactory.java:52) at org.apache.jackrabbit.core.jndi.RegistryHelper.registerRepository(RegistryHelper.java:74) at info.magnolia.jackrabbit.ProviderImpl.init(ProviderImpl.java:214) at info.magnolia.repository.DefaultRepositoryManager.loadRepository(DefaultRepositoryManager.java:185) at info.magnolia.repository.DefaultRepositoryManager.loadRepositories(DefaultRepositoryManager.java:171) at info.magnolia.repository.DefaultRepositoryManager.init(DefaultRepositoryManager.java:85) at info.magnolia.cms.beans.config.ContentRepository.init(ContentRepository.java:143) at info.magnolia.cms.beans.config.ConfigLoader.load(ConfigLoader.java:141) at info.magnolia.init.MagnoliaServletContextListener$1.doExec(MagnoliaServletContextListener.java:276) at info.magnolia.context.MgnlContext$VoidOp.exec(MgnlContext.java:443) at info.magnolia.context.MgnlContext$VoidOp.exec(MgnlContext.java:440) at info.magnolia.context.MgnlContext.doInSystemContext(MgnlContext.java:403) at info.magnolia.init.MagnoliaServletContextListener.startServer(MagnoliaServletContextListener.java:273) at info.magnolia.init.MagnoliaServletContextListener.contextInitialized(MagnoliaServletContextListener.java:200) at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4205) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4704) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:799) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:779) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:601) at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:943) at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:778) at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:504) at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1315) at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:324) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:142) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1061) at org.apache.catalina.core.StandardHost.start(StandardHost.java:840) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:463) at org.apache.catalina.core.StandardService.start(StandardService.java:525) at org.apache.catalina.core.StandardServer.start(StandardServer.java:754) at org.apache.catalina.startup.Catalina.start(Catalina.java:595) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414) Caused by: java.lang.IllegalArgumentException: Replacement not found for ${wsp.name}. at org.apache.jackrabbit.util.Text.replaceVariables(Text.java:779) at org.apache.jackrabbit.core.config.ConfigurationParser.replaceVariables(ConfigurationParser.java:206) ... 50 more Any idea what is causing this issue? Thank you much, Amir -- Context is everything: http://forum.magnolia-cms.com/forum/thread.html?threadId=d1bc92c1-7bd1-45ee-9eb5-d8b736de5530 ---------------------------------------------------------------- For list details, see http://www.magnolia-cms.com/community/mailing-lists.html Alternatively, use our forums: http://forum.magnolia-cms.com/ To unsubscribe, E-mail to: <[email protected]> ---------------------------------------------------------------- ---------------------------------------------------------------- For list details, see http://www.magnolia-cms.com/community/mailing-lists.html Alternatively, use our forums: http://forum.magnolia-cms.com/ To unsubscribe, E-mail to: <[email protected]> ----------------------------------------------------------------
