Forums

Home » Liferay Portal » English » 3. Development

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Sachin Kohale
portal-impl.jar is currupted while deploying ant also tomcat is not started
March 28, 2011 12:39 AM
Answer

Sachin Kohale

Rank: New Member

Posts: 4

Join Date: March 25, 2011

Recent Posts

hi, I am new in liferay. I have created ext environment and created on portlet as per "Liferay Portal 4 - Portlet development guide by Joseph Shum" book but when ant is deploying then portal-impl.jar is currupted. In that file, jdbc code in portal.properties file is deleted automatically. also when tomcat is stared then there are errors in eclipse as follows:

log4j:WARN No appenders could be found for logger (org.apache.catalina.startup.ClassLoaderFactory).
log4j:WARN Please initialize the log4j system properly.
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:592)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
Caused by: java.lang.NullPointerException
at org.apache.catalina.startup.Catalina.await(Catalina.java:616)
at org.apache.catalina.startup.Catalina.start(Catalina.java:576)
... 6 more

Also when we start the tomcat by clicking "startup.bat" then that time errors are as follows:

Mar 28, 2011 5:56:14 AM org.apache.catalina.core.AprLifecycleListener init
INFO: The APR based Apache Tomcat Native library which allows optimal performanc
e in production environments was not found on the java.library.path: C:\Java\jdk
1.5.0_20\bin;.;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\system32;C:\WINDOWS;C:\
WINDOWS\System32\Wbem;C:\Program Files\TortoiseSVN\bin;C:\Java\jdk1.5.0_20\bin;C
:\Java\apache-ant-1.8.2\bin;C:\Java\jikes-1.22-1.windows\bin;
Mar 28, 2011 5:56:15 AM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
Mar 28, 2011 5:56:15 AM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 1863 ms
Mar 28, 2011 5:56:15 AM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Mar 28, 2011 5:56:15 AM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/6.0.29
Mar 28, 2011 5:56:15 AM org.apache.catalina.startup.HostConfig deployDescriptor
INFO: Deploying configuration descriptor ROOT.xml
Loading jar:file:/D:/projects/liferay/tomcat/webapps/ROOT/WEB-INF/lib/portal-imp
l.jar!/system.properties
Loading file:/D:/projects/liferay/tomcat/webapps/ROOT/WEB-INF/classes/system-ext
.properties
Loading jar:file:/D:/projects/liferay/tomcat/webapps/ROOT/WEB-INF/lib/portal-imp
l.jar!/portal.properties
Loading file:/D:/projects/liferay/tomcat/webapps/ROOT/WEB-INF/classes/portal-ext
.properties
Mar 28, 2011 5:56:37 AM org.apache.catalina.core.StandardContext start
SEVERE: Error filterStart
Mar 28, 2011 5:56:37 AM org.apache.catalina.core.StandardContext start
SEVERE: Context [] startup failed due to previous errors
log4j:ERROR LogMananger.repositorySelector was null likely due to error in class
reloading, using NOPLoggerRepository.
Mar 28, 2011 5:56:40 AM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory tunnel-web
Mar 28, 2011 5:56:41 AM org.apache.catalina.core.StandardContext start
SEVERE: Error listenerStart
Mar 28, 2011 5:56:41 AM org.apache.catalina.core.StandardContext start
SEVERE: Context [/tunnel-web] startup failed due to previous errors
Mar 28, 2011 5:56:41 AM org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on http-8080
Mar 28, 2011 5:56:41 AM org.apache.jk.common.ChannelSocket init
INFO: JK: ajp13 listening on /0.0.0.0:8009
Mar 28, 2011 5:56:41 AM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/62 config=null
Mar 28, 2011 5:56:41 AM org.apache.catalina.startup.Catalina start
INFO: Server startup in 26626 ms


Please reply as soon as possible. Thanks in advance.
Ravi Kumar Gupta
RE: portal-impl.jar is currupted while deploying ant also tomcat is not sta
March 28, 2011 12:46 AM
Answer

Ravi Kumar Gupta

Rank: Liferay Legend

Posts: 1242

Join Date: June 23, 2009

Recent Posts

Hello Sachin,

What is the version of portal used? When you start the portal without ext setup.. is it started properly?

-Ravi
Sachin Kohale
RE: portal-impl.jar is currupted while deploying ant also tomcat is not sta
March 28, 2011 1:02 AM
Answer

Sachin Kohale

Rank: New Member

Posts: 4

Join Date: March 25, 2011

Recent Posts

hey ravi,
I am using liferay-portal-src-4.4.2 for creating ext environment. It is successfully created initially but when we create one portlet and ant deplyed that time, i got mentioned errors.
Manish Kumar Gupta
RE: portal-impl.jar is currupted while deploying ant also tomcat is not sta
March 28, 2011 1:20 AM
Answer

Manish Kumar Gupta

LIFERAY STAFF

Rank: Liferay Master

Posts: 535

Join Date: May 15, 2008

Recent Posts

Hey Sachin,

Are you starting your new project on Liferay 4.x version or you already have a project and getting familiar with this very old release?
Sachin Kohale
RE: portal-impl.jar is currupted while deploying ant also tomcat is not sta
March 28, 2011 4:32 AM
Answer

Sachin Kohale

Rank: New Member

Posts: 4

Join Date: March 25, 2011

Recent Posts

hi,
I am very new for lifeRay and creating a new project.
Ravi Kumar Gupta
RE: portal-impl.jar is currupted while deploying ant also tomcat is not sta
March 28, 2011 4:44 AM
Answer

Ravi Kumar Gupta

Rank: Liferay Legend

Posts: 1242

Join Date: June 23, 2009

Recent Posts

Sachin Kohale:
I am very new for lifeRay and creating a new project.


Hello Sachin,

In that case I will suggest you to change the approach.. try Liferay IDE/Netbeans+PortalPack to develop plugins instead of ext environment. I would recommend you to have a look at the Liferay Development Guide

This would be right start to portal development.

P.S. I have seen that error before but not sure about the solution. Try new versions of Liferay in place of 4.x; I dont think after using Liferay 6 anyone will think of using 4.x

Thanks and Regards
Ravi