Forums

Home » Liferay Portal » English » 3. Development

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
maryam maryam masoudy
when i startup liferay 6.1 i have some error why?
December 23, 2012 2:19 AM
Answer

maryam maryam masoudy

Rank: Regular Member

Posts: 149

Join Date: October 30, 2011

Recent Posts

hi all friends
when i startup liferay 6.1 i have some error why?
1
2log4j:ERROR Could not create an Appender. Reported error follows.
3java.lang.ClassCastException: org.apache.log4j.ConsoleAppender cannot be cast to org.apache.log4j.Appender


1log4j:ERROR Could not create the Layout. Reported error follows.
2java.lang.ClassCastException: org.apache.log4j.PatternLayout cannot be cast to org.apache.log4j.Layout
3    at org.apache.log4j.xml.DOMConfigurator.parseLayout(DOMConfigurator.java:556)

1oading file:/opt/liferay6.1/tomcat-7.0.27/temp/0-marketplace-portlet/WEB-INF/classes/portal.properties
2log4j:ERROR No layout set for the appender named [FILE].
3log4j:ERROR Could not create an Appender. Reported error follows.
4java.lang.ClassCastException: org.apache.log4j.ConsoleAppender cannot be cast to org.apache.log4j.Appender

1log4j:ERROR Could not create the Layout. Reported error follows.
2java.lang.ClassCastException: org.apache.log4j.PatternLayout cannot be cast to org.apache.log4j.Layout
3    at org.apache.log4j.xml.DOMConfigurator.parseLayout(DOMConfigurator.java:556)

 1
 2Loading file:/opt/liferay6.1/tomcat-7.0.27/temp/0-marketplace-portlet/WEB-INF/classes/portlet.properties
 3Dec 23, 2012 8:30:26 AM org.apache.catalina.startup.HostConfig deployDirectory
 4INFO: Deploying web application directory /opt/liferay6.1/tomcat-7.0.27/webapps/story6-1-portlet
 5log4j:ERROR No layout set for the appender named [FILE].
 6Dec 23, 2012 8:30:26 AM org.apache.catalina.core.ApplicationContext log
 7INFO: Initializing Spring root WebApplicationContext
 8log4j:ERROR Could not create an Appender. Reported error follows.
 9java.lang.ClassCastException: org.apache.log4j.ConsoleAppender cannot be cast to org.apache.log4j.Appender
10    at org.apache.log4j.xml.DOMConfigurator.parseAppender(DOMConfigurator.java:248)
11    at org.apache.log4j.xml.DOMConfigurator.findAppenderByName(DOMConfigurator.java:176)


1log4j:ERROR Could not create the Layout. Reported error follows.
2java.lang.ClassCastException: org.apache.log4j.PatternLayout cannot be cast to org.apache.log4j.Layout


1log4j:ERROR No layout set for the appender named [FILE].
2Dec 23, 2012 8:30:26 AM org.apache.catalina.startup.HostConfig deployDirectory
3INFO: Deploying web application directory /opt/liferay6.1/tomcat-7.0.27/webapps/SendMessage-portlet



my portla-ext.propertise:



i did not any configuration on other files but i create own theme and own layout and i use that on my liferay i think i must do more configuration but i don't knew
Hitoshi Ozawa
RE: when i startup liferay 6.1 i have some error why?
December 23, 2012 3:04 PM
Answer

Hitoshi Ozawa

Rank: Liferay Legend

Posts: 7949

Join Date: March 23, 2010

Recent Posts

You probably have an error in log4j configuration. Can't say what's wrong without seeing the configuration.

If you undeploy your theme, the error should go away.
Bart Simpson
RE: when i startup liferay 6.1 i have some error why?
December 24, 2012 4:26 AM
Answer

Bart Simpson

Rank: Liferay Master

Posts: 524

Join Date: August 29, 2011

Recent Posts

Are you running liferay tomcat from the command / shell script? And if so have you set any Environment variables for log4j ?
Hitoshi Ozawa
RE: when i startup liferay 6.1 i have some error why?
December 24, 2012 3:15 PM
Answer

Hitoshi Ozawa

Rank: Liferay Legend

Posts: 7949

Join Date: March 23, 2010

Recent Posts

She probably have portal-impl.jar in her plugin's classpath or don't have log4j.properties in WEB-INF/classes
maryam maryam masoudy
RE: when i startup liferay 6.1 i have some error why?
December 24, 2012 9:05 PM
Answer

maryam maryam masoudy

Rank: Regular Member

Posts: 149

Join Date: October 30, 2011

Recent Posts

hi friends
i have log4j.properties but i didnot any change in that ,
i attach log4j.properties and portal-ext.propertie
and i am running liferay tomcat from the command / shell script.
i have portal-impl.jar in her plugin's classpath in some own portlet but i clean in lib folder 's own portlet
Attachments: log4j.properties (0.2k), portal-ext.properties (1.5k)
Nagendra Kumar Busam
RE: when i startup liferay 6.1 i have some error why?
December 24, 2012 9:14 PM
Answer

Nagendra Kumar Busam

Rank: Liferay Master

Posts: 653

Join Date: July 7, 2009

Recent Posts

Is it a fresh tomcat bundle? Did you deploy any custom code on top of that?
maryam maryam masoudy
RE: when i startup liferay 6.1 i have some error why?
December 24, 2012 9:22 PM
Answer

maryam maryam masoudy

Rank: Regular Member

Posts: 149

Join Date: October 30, 2011

Recent Posts

my liferay :liferay-portal-6.1.1-ce-ga2
tomcat:tomcat-7.0.27
i deploy some portlets and themes and leyouts
Nagendra Kumar Busam
RE: when i startup liferay 6.1 i have some error why?
December 24, 2012 9:30 PM
Answer

Nagendra Kumar Busam

Rank: Liferay Master

Posts: 653

Join Date: July 7, 2009

Recent Posts

Can you start tomcat once by undeploying your custom code for once, check whether it is starting properly or not
Hitoshi Ozawa
RE: when i startup liferay 6.1 i have some error why?
December 24, 2012 9:31 PM
Answer

Hitoshi Ozawa

Rank: Liferay Legend

Posts: 7949

Join Date: March 23, 2010

Recent Posts

have portal-impl.jar in her plugin's classpath in some own portlet but i clean in lib folder 's own portlet


Shouldn't have that.
maryam maryam masoudy
RE: when i startup liferay 6.1 i have some error why?
December 24, 2012 9:32 PM
Answer

maryam maryam masoudy

Rank: Regular Member

Posts: 149

Join Date: October 30, 2011

Recent Posts

ok thanks i trace your offer
but i want to knew what is more confirmation liferay
maryam maryam masoudy
RE: when i startup liferay 6.1 i have some error why?
December 24, 2012 9:38 PM
Answer

maryam maryam masoudy

Rank: Regular Member

Posts: 149

Join Date: October 30, 2011

Recent Posts

hi hitoshi
my portlet needed that was impoted this lib
must i clean form classpath after export .war file ?
or it is suffice clean from lib folder of portlet
Nagendra Kumar Busam
RE: when i startup liferay 6.1 i have some error why?
December 24, 2012 9:49 PM
Answer

Nagendra Kumar Busam

Rank: Liferay Master

Posts: 653

Join Date: July 7, 2009

Recent Posts