While deploying your JHeadstart application to OC4J 10.1.3.2 or higher, are you experiencing error messages like the following?
- Operation failed with error: org/apache/log4j/Category
- No appenders could be found for logger (com.sun.faces.config.ConfigureListener)
- oracle.oc4j.admin.internal.DeployerException: java.lang.ExceptionInInitializerError
- org.apache.commons.logging.LogConfigurationException: No suitable Log constructor [Ljava.lang.Class;@900079 for org.apache.commons.logging.impl.Log4JLogger (Caused by java.lang.NoClassDefFoundError: org/apache/log4j/Category)
The workaround is to exclude apache.commons.logging from the shared library for your application: update orion-application.xml with the lines
<imported-shared-libraries>Then create a JDeveloper deployment profile as follows:
<remove-inherited name="apache.commons.logging"/>
</imported-shared-libraries>
- Run the ADF Runtime Installer
- In the ViewController project,
create a new WAR Deployment Profile (File | New | General | Deployment
Profiles | WAR File). - In the deployment profile properties, go
to WAR Options, and select Compress Archive. - If you
use Subversion,
go to all Filters categories, then to Patterns, and exclude **/.svn/
Comments (2)
Hi, Sandra Muller
How can I remove the shared library from the embeded oc4j
Posted by wangfeng | December 24, 2007 3:44 AM
Please ask such questions in the appropriate forum, for example the OC4J/J2EE
forum at http://forums.oracle.com/forums/forum.jsp?forum=46
Posted by Sandra Muller | January 22, 2008 4:17 AM