I'm trying to set up an instance of Magnolia with Oracle 11g XE.  I read the 
instructions here:

http://wiki.magnolia-cms.com/display/WIKI/Setting+up+a+Jackrabbit+persistence+manager

But I'm still getting an error at startup.

What I have done:

[b]1.)[/b] Installed Tomcat 7, tied it to JRE 6.

[b]2.)[/b] Took [b]magnoliaAuthor[/b] from the webapps of the bundled download, 
dropped into Tomcat's webapps directory.

[i]At this point, to prove to myself that I'm not crazy, I started up the 
magnolia instance to make sure it was running with this version of Tomcat and 
JRE.  No problems running it, but it's running with Derby and as you already 
know I need Oracle.  After confirmation I deleted the magnoliaAuthor directory 
and repeated the step to start "with a clean slate".[/i]

[b]3.)[/b] Opened up [b]magnoliaAuthor/WEB-INF/lib[/b] and dropped in ojdbc6.jar

[i]I read somewhere that removing the derby JAR can break some dependencies and 
left it in.[/i]

[b]4.)[/b] Copied 
[b]magnoliaAuthor/WEB-INF/config/repo-conf/jackrabbit-bundle-mysql-search.xml[/b]
 to 
[b]magnoliaAuthor/WEB-INF/config/repo-conf/jackrabbit-bundle-oracle-search.xml[/b]

Altered jackrabbit-bundle-oracle-search.xml elements like so:
[code]    <DataSource name="magnolia">
      <param name="driver" value="oracle.jdbc.OracleDriver"/>
      <param name="url" value="jdbc:oracle:thin:@localhost:1521:XE"/>
      <param name="user" value="magnolia_author" />
      <param name="password" value="testingpw" />
      <param name="databaseType" value="oracle"/>
      <param name="validationQuery" value="select 1"/>
    </DataSource>[/code]

[code]    <PersistenceManager 
class="org.apache.jackrabbit.core.persistence.bundle.OraclePersistenceManager">
      <param name="driver" value="oracle.jdbc.OracleDriver"/>
      <param name="url" value="jdbc:oracle:thin:@localhost:1521:XE"/>
      <param name="schema" value="oracle" /><!-- warning, this is not the 
schema name, it's the db type -->
      <param name="user" value="magnolia_author"/>
      <param name="password" value="testingpw"/>
      <param name="schemaObjectPrefix" value="${wsp.name}_"/>
      <param name="externalBLOBs" value="false"/>
        </PersistenceManager>[/code]

[i]I made sure to set the <PersistenceManager> tag in [b][u]both[/u][/b] 
places.[/i]

[b]5.)[/b] Edited 
[b]magnoliaAuthor/WEB-INF/config/default/magnolia.properties[/b] like so:

[code]magnolia.repositories.jackrabbit.config=WEB-INF/config/repo-conf/jackrabbit-bundle-oracle-search.xml[/code]


As far as I can tell, I've done everything correctly according to the 
documentation.  However, every time I try to start up the application I get a 
couple of errors:

[code]com.google.inject.CreationException: Guice creation errors:

1) Error injecting constructor, java.lang.NullPointerException
  at 
info.magnolia.cms.core.version.VersionManager.<init>(VersionManager.java:65)
  at 
info.magnolia.objectfactory.guice.GuiceComponentConfigurationModule.bindImplementation(GuiceComponentConfigurationModule.java:155)
  while locating info.magnolia.cms.core.version.VersionManager
Caused by: java.lang.NullPointerException
        at 
info.magnolia.cms.core.version.BaseVersionManager$1.exec(BaseVersionManager.java:126)
        at 
info.magnolia.cms.core.version.BaseVersionManager$1.exec(BaseVersionManager.java:121)
...
...
...[/code]

[code]2) Error injecting constructor, java.lang.NullPointerException
  at info.magnolia.freemarker.FreemarkerHelper.<init>(FreemarkerHelper.java:91)
  at 
info.magnolia.objectfactory.guice.GuiceComponentConfigurationModule.bindImplementation(GuiceComponentConfigurationModule.java:155)
  while locating info.magnolia.freemarker.FreemarkerHelper
Caused by: java.lang.NullPointerException
        at 
info.magnolia.freemarker.FreemarkerHelper.<init>(FreemarkerHelper.jFeb 7, 2013 
3:16:45 PM org.apache.catalina.core.StandardContext startInternal
SEVERE: Error listenerStart
Feb 7, 2013 3:16:45 PM org.apache.catalina.core.StandardContext startInternal
...
...
...[/code]

[code]Feb 7, 2013 3:16:45 PM org.apache.catalina.core.StandardContext 
startInternal
SEVERE: Error listenerStart
Feb 7, 2013 3:16:45 PM org.apache.catalina.core.StandardContext startInternal
SEVERE: Context [/magnoliaAuthor] startup failed due to previous errors
Feb 7, 2013 3:16:45 PM org.apache.catalina.loader.WebappClassLoader 
clearReferencesThreads
SEVERE: The web application [/magnoliaAuthor] appears to have started a thread 
named [com.google.inject.internal.util.$Finalizer] but has failed to stop it. 
This is very likely to create a memory leak.[/code]

I've done searches and haven't found anything helpful.  Does anyone know what 
could possibly be wrong here?

-- 
Context is everything: 
http://forum.magnolia-cms.com/forum/thread.html?threadId=b87f87e3-a699-4724-b26a-2fe703ca3efb


----------------------------------------------------------------
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]>
----------------------------------------------------------------

Reply via email to