Forums

Home » Liferay Portal » English » 3. Development

Combination View Flat View Tree View
Threads [ Previous | Next ]
David Peng
No suitable Log constructor error upon compile liferay 6.0.2
June 25, 2010 1:00 PM
Answer

David Peng

Rank: New Member

Posts: 21

Join Date: May 18, 2010

Recent Posts

I just download the liferay 6.0.2 source code, and recompile it using netbean 6.8.
But I hit the wall, it throw error message during compiling. After search the Google, I found it may be the problem about the class loader of logging library, but I can not figure out how to solve it yet, anyone has any idea?
thanks.


Building jar: G:\java\liferay602\util-taglib\util-taglib.jar
Copying 1 file to G:\java\liferay602\portal-impl\classes\com\liferay\portal\deploy\dependencies
Copying 10 files to G:\java\liferay602\portal-impl\classes\com\liferay\portal\deploy\dependencies
Copying 1 file to G:\java\liferay602\portal-web\docroot\WEB-INF\lib
Copying 8 files to G:\java\liferay602\portal-web\docroot\WEB-INF\tld
sql.build-db:
Loading file:/G:/java/liferay602/portal-impl/classes/system.properties
Exception in thread "main" java.lang.ExceptionInInitializerError
at com.liferay.portal.configuration.ConfigurationImpl.<init>(ConfigurationImpl.java:122)
at com.liferay.portal.configuration.ConfigurationImpl.<init>(ConfigurationImpl.java:63)
at com.liferay.portal.util.PropsUtil.<init>(PropsUtil.java:89)
at com.liferay.portal.util.PropsUtil.<clinit>(PropsUtil.java:231)
at com.liferay.portal.util.PropsValues.<clinit>(PropsValues.java:29)
at com.liferay.portal.spring.util.SpringUtil.loadContext(SpringUtil.java:45)
at com.liferay.portal.util.InitUtil.initWithSpring(InitUtil.java:132)
at com.liferay.portal.tools.DBBuilder.main(DBBuilder.java:35)
Caused by: org.apache.commons.logging.LogConfigurationException: org.apache.commons.logging.LogConfigurationException: No suitable Log constructor [Ljava.lang.Class;@30e280 for org.apache.commons.logging.impl.Log4JLogger (Caused by java.lang.NoClassDefFoundError: org/apache/log4j/Category) (Caused by org.apache.commons.logging.LogConfigurationException: No suitable Log constructor [Ljava.lang.Class;@30e280 for org.apache.commons.logging.impl.Log4JLogger (Caused by java.lang.NoClassDefFoundError: org/apache/log4j/Category))
at org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:543)
at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:235)
at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:209)
at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:351)
at com.germinus.easyconf.EasyConf.<clinit>(EasyConf.java:33)
... 8 more
Caused by: org.apache.commons.logging.LogConfigurationException: No suitable Log constructor [Ljava.lang.Class;@30e280 for org.apache.commons.logging.impl.Log4JLogger (Caused by java.lang.NoClassDefFoundError: org/apache/log4j/Category)
at org.apache.commons.logging.impl.LogFactoryImpl.getLogConstructor(LogFactoryImpl.java:413)
at org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:529)
... 12 more
Caused by: java.lang.NoClassDefFoundError: org/apache/log4j/Category
at java.lang.Class.getDeclaredConstructors0(Native Method)
at java.lang.Class.privateGetDeclaredConstructors(Class.java:2389)
at java.lang.Class.getConstructor0(Class.java:2699)
at java.lang.Class.getConstructor(Class.java:1657)
at org.apache.commons.logging.impl.LogFactoryImpl.getLogConstructor(LogFactoryImpl.java:410)
... 13 more
Caused by: java.lang.ClassNotFoundException: org.apache.log4j.Category
at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at sun.misc.Launcher$ExtClassLoader.findClass(Launcher.java:229)
at java.lang.ClassLoader.loadClass(ClassLoader.java:303)
at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:316)
... 18 more
Java Result: 1