Hi all,

We're attempting to run our magnolia 5.3.6 app on weblogic 12c, using OracleDB 
as our datasource.

We're having *huge* issues with getting the app running:

The first time the app comes up, it connects to our configured JNDI datasource 
fine, it writes its repository files to the appropriate folders, etc,

then throws up:

com.google.inject.CreationException: Guice creation errors:

1) Could not find a suitable constructor in 
org.apache.commons.logging.impl.Jdk14Logger. Classes must have either one (and 
only one) constructor annotated with @Inject or a zero-argument constructor 
that is not private.
  at org.apache.commons.logging.impl.Jdk14Logger.class(Jdk14Logger.java:48)
  at 
info.magnolia.objectfactory.guice.GuiceComponentConfigurationModule.bindImplementation(GuiceComponentConfigurationModule.java:155)

along with a bunch of other guice injection errors.



If I then try to restart or redeploy the app, it always throws up:

ERROR info.magnolia.repository.DefaultRepositoryManager  - 
javax.jcr.RepositoryException: Error locking 
/u01/data/domains/magnolia_authoring/repositories/local/lock.properties, 
reason: Locked by another process
info.magnolia.repository.RepositoryNotInitializedException: 
javax.jcr.RepositoryException: Error locking 
/u01/data/domains/magnolia_authoring/repositories/local/lock.properties, 
reason: Locked by another process.



This happens no matter whether I delete the lock file, etc. If I change the  
magnolia.repositories.home path to a new folder, the issue goes away, as 
expected.

I assume in that case that when weblogic kills an app, it's leaving  bunch of 
threads open that are holding the lock open.


The app runs happily enough on an EC2 instance with a postgres datasource, so 
i'm a bit flumoxed.

My weblogic.xml looks like so

[code]<?xml version="1.0" encoding="UTF-8"?>
<weblogic-web-app xmlns="http://xmlns.oracle.com/weblogic/weblogic-web-app";
                  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
                  xsi:schemaLocation="http://java.sun.com/xml/ns/javaee 
http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd
                                      
http://xmlns.oracle.com/weblogic/weblogic-web-app 
http://xmlns.oracle.com/weblogic/weblogic-web-app/1.0/weblogic-web-app.xsd";>
<context-root>/careers-auth</context-root>
<container-descriptor>
    <prefer-web-inf-classes>false</prefer-web-inf-classes>

    <prefer-application-packages>
        <package-name>org.apache.commons.*</package-name>
        <package-name>org.slf4j.*</package-name>
        <package-name>org.jdom.*</package-name>
        <package-name>org.jaxen.*</package-name>
        <package-name>com.google.*</package-name>
        <package-name>org.apache.jackrabbit.*</package-name>
    </prefer-application-packages>
    
    <show-archived-real-path-enabled>true</show-archived-real-path-enabled>
</container-descriptor>
</weblogic-web-app>[/code]


I'd hope that the prefer-application-classes items would stop the JDKLogger 
issues with guice, but no dice.


If anyone has any similar problems, i'd be hugely appreciative of any help - I 
have zero experience with weblogic (our client is mandating its use)

Thanks
Chris

-- 
Context is everything: 
http://forum.magnolia-cms.com/forum/thread.html?threadId=9f4e3e7c-af11-4208-817c-3a850c2657bb


----------------------------------------------------------------
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: <user-list-unsubscr...@magnolia-cms.com>
----------------------------------------------------------------

Reply via email to