Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Seun O
SEVERE: Class com.liferay.portal.security.jaas.PortalPrincipal not found!
January 8, 2008 2:02 AM
Answer

Seun O

Rank: New Member

Posts: 1

Join Date: January 8, 2008

Recent Posts

I got the error message below while trying to deploy liferay on Ubuntu Server 7.10 using tomcat 5.5 and i got 404 error on the browser.

I was trying a production standard install of liferay portal,
tomcat start fine, mysql start fine, lportal database was created
the jar files were in the common/lib/ext (and the loader reference was added in the catalina.properties file)
using ROOT.xml (mysql, mail and jaas configured) and the liferay portal files unzipped into /webapps/ROOT/
jaas.config file containing "PortalRealm {com.liferay.portal.kernel.security.jaas.PortalLoginModule required;};"
i actually traced the PortalPrincipal & PortalRole shown in the error to the portal-impl.jar file and it was there

Hopping someone will give me a pointer as to what i might have missed.


INFO: Starting Servlet Engine: Apache Tomcat/5.5
Jan 7, 2008 11:49:45 PM org.apache.catalina.core.StandardHost start
INFO: XML validation disabled
Jan 7, 2008 11:49:47 PM org.apache.catalina.realm.JAASRealm parseClassNames
SEVERE: Class com.liferay.portal.security.jaas.PortalPrincipal not found! Class not added.
Jan 7, 2008 11:49:47 PM org.apache.catalina.realm.JAASRealm parseClassNames
SEVERE: Class com.liferay.portal.security.jaas.PortalRole not found! Class not added.
Jan 7, 2008 11:49:47 PM org.apache.catalina.realm.JAASRealm setUseContextClassLoader
INFO: Setting useContextClassLoader = false
Jan 7, 2008 11:49:49 PM org.apache.catalina.core.StandardContext start
SEVERE: Error filterStart
Jan 7, 2008 11:49:49 PM org.apache.catalina.core.StandardContext start
SEVERE: Context [] startup failed due to previous errors


Thanks
Roman Hoyenko
RE: SEVERE: Class com.liferay.portal.security.jaas.PortalPrincipal not foun
January 8, 2008 7:13 AM
Answer

Roman Hoyenko

Rank: Liferay Master

Posts: 867

Join Date: October 8, 2007

Recent Posts

Did you add the directory where portal-impl.jar is to the classpath of your tomcat ?
Theo Tekstra
RE: SEVERE: Class com.liferay.portal.security.jaas.PortalPrincipal not foun
January 14, 2008 7:03 AM
Answer

Theo Tekstra

Rank: New Member

Posts: 5

Join Date: February 27, 2007

Recent Posts

we have the same problems after deploying a minor server update which includes Tomcat 5.5, the portal does not start anymore.

I have seen this same problem in the Tomcat bugzilla (https://issues.apache.org/jira/browse/JS2-828) - hope that helps finding a solution.

Last lines in the log file:

14:47:01,354 ERROR [org.apache.catalina.realm.JAASRealm] Class com.liferay.portal.security.jaas.PortalPrincipal not found! Class not added.
14:47:01,356 ERROR [org.apache.catalina.realm.JAASRealm] Class com.liferay.portal.security.jaas.PortalRole not found! Class not added.
14:47:01,356 INFO [org.apache.catalina.realm.JAASRealm] Setting useContextClassLoader = false
14:47:02,077 INFO [org.apache.coyote.http11.Http11BaseProtocol] Starting Coyote HTTP/1.1 on http-8180
14:47:02,863 INFO [org.apache.catalina.storeconfig.StoreLoader] Find registry server-registry.xml at classpath resource
14:47:03,094 INFO [org.apache.catalina.startup.Catalina] Server startup in 16655 ms


Starting the portal results in:

HTTP Status 404 - /c/

type Status report

message /c/

description The requested resource (/c/) is not available.
Apache Tomcat/5.5.25


We were in the process of upgrading Liferay to a new version (nothing implemented yet), but the system patches had to be implemented for securtity reasons.
Keith Egler
RE: SEVERE: Class com.liferay.portal.security.jaas.PortalPrincipal not foun
January 14, 2008 11:22 AM
Answer

Keith Egler

Rank: New Member

Posts: 2

Join Date: January 14, 2008

Recent Posts

I spent several days tracking down similar issues so I thought that I would share this info:

For the com.liferay.portal.security.jaas.PortalPrincipal not found error, make sure that you have the support-tomcat.jar in your classpath (in standard liferay deployment, it is in location C:\liferay4.3.5\server\lib.

For the HTTP Status 404 - /c/ error, make sure that you have a WEB-INF\classes\portal-ext.properties defined with your correct portal.ctx defined.

Hope this helps.
Theo Tekstra
RE: SEVERE: Class com.liferay.portal.security.jaas.PortalPrincipal not foun
January 14, 2008 11:29 AM
Answer

Theo Tekstra

Rank: New Member

Posts: 5

Join Date: February 27, 2007

Recent Posts

Thanks Keith, will have it checked and report back if this has helped
Theo Tekstra
RE: SEVERE: Class com.liferay.portal.security.jaas.PortalPrincipal not foun
January 14, 2008 11:39 AM
Answer

Theo Tekstra

Rank: New Member

Posts: 5

Join Date: February 27, 2007

Recent Posts

someone was already smart enough to try it, and it did not help unfortunately but thanks for the post anyway!
Theo Tekstra
RE: SEVERE: Class com.liferay.portal.security.jaas.PortalPrincipal not foun
January 14, 2008 12:01 PM
Answer

Theo Tekstra

Rank: New Member

Posts: 5

Join Date: February 27, 2007

Recent Posts

We are still not sure what the problem was, but restoring the old Tomcat directory solved the problem.

We were doing a server maintenance patch for FreeBSD, which included tomcat-5.5.25.
ramesh radhakrishnan
RE: SEVERE: Class com.liferay.portal.security.jaas.PortalPrincipal not foun
February 13, 2008 4:20 AM
Answer

ramesh radhakrishnan

Rank: New Member

Posts: 2

Join Date: February 13, 2008

Recent Posts

I am also facing the problem

type Status report

message /c

description The requested resource (/c) is not available.

I am using apache-tomcat-5.5.26 and jdk1.5.0_14.

thanks
ramesh radhakrishnan
RE: SEVERE: Class com.liferay.portal.security.jaas.PortalPrincipal not foun
February 14, 2008 3:24 AM
Answer

ramesh radhakrishnan

Rank: New Member

Posts: 2

Join Date: February 13, 2008

Recent Posts

The error was caused due to the missing web.xml in the ROOT/WEB-INF directory. The error is fixed. However I am getting the following error.

javax.servlet.ServletException: Servlet.init() for servlet MainServlet threw exception
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:433)
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:174)
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:874)
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689)
java.lang.Thread.run(Thread.java:595)

root cause

java.lang.IncompatibleClassChangeError
com.liferay.portal.security.pwd.PwdEncryptor.encodePassword(PwdEncryptor.java:166)
com.liferay.portal.security.pwd.PwdEncryptor.encrypt(PwdEncryptor.java:110)
com.liferay.portal.security.pwd.PwdEncryptor.encrypt(PwdEncryptor.java:82)
com.liferay.portal.service.impl.UserLocalServiceImpl.addUser(UserLocalServiceImpl.java:248)
com.liferay.portal.service.impl.CompanyLocalServiceImpl.checkCompany(CompanyLocalServiceImpl.java:313)
com.liferay.portal.service.impl.CompanyLocalServiceImpl.checkCompany(CompanyLocalServiceImpl.java:123)
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
java.lang.reflect.Method.invoke(Method.java:585)
org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:301)
org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:106)
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
$Proxy16.checkCompany(Unknown Source)
com.liferay.portal.service.CompanyLocalServiceUtil.checkCompany(CompanyLocalServiceUtil.java:810)
com.liferay.portal.util.PortalInstances._initCompany(PortalInstances.java:284)
com.liferay.portal.util.PortalInstances.initCompany(PortalInstances.java:89)
com.liferay.portal.servlet.MainServlet.init(MainServlet.java:387)
javax.servlet.GenericServlet.init(GenericServlet.java:212)
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:433)
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:174)
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:874)
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689)
java.lang.Thread.run(Thread.java:595)

I have JDK1.5.0_14 and Tomcat 5.5.26 running on Mandriva 2008. The portal distribution used is liferay-portal-servlet23-4.4.1.war.

I am working on the problem by looking in logs and documentation.

However the bundle version liferay-portal-tomcat-5.5-jdk5-4.4.0.zip is installed and could login and use it.

Any help will be appreciated.

R.Ramesh
Árpád Magosányi
RE: SEVERE: Class com.liferay.portal.security.jaas.PortalPrincipal not foun
December 17, 2011 11:35 AM
Answer

Árpád Magosányi

Rank: New Member

Posts: 2

Join Date: December 17, 2011

Recent Posts

Have the same problem.

It seems that the needed class is simply missing from support-tomcat.jar in 6.1.0-ce-b4:

/opt/liferay-portal-6.1.0-ce-b4/tomcat-7.0.22/lib/ext$ unzip -l support-tomcat.jar
Archive: support-tomcat.jar
Length Date Time Name
--------- ---------- ----- ----
0 2011-11-10 16:00 META-INF/
1214 2011-11-10 16:00 META-INF/MANIFEST.MF
0 2011-11-10 15:30 com/
0 2011-11-10 15:30 com/liferay/
0 2011-11-10 15:30 com/liferay/portal/
0 2011-11-10 15:30 com/liferay/portal/security/
0 2011-11-10 15:25 com/liferay/portal/security/jaas/
0 2011-11-10 15:30 com/liferay/support/
0 2011-11-10 15:30 com/liferay/support/tomcat/
0 2011-11-10 15:30 com/liferay/support/tomcat/jasper/
0 2011-11-10 15:30 com/liferay/support/tomcat/jasper/runtime/
0 2011-11-10 15:30 com/liferay/support/tomcat/loader/
0 2011-11-10 15:30 com/liferay/support/tomcat/poller/
0 2011-11-10 15:30 com/liferay/support/tomcat/poller/comet/
0 2011-11-10 15:30 com/liferay/support/tomcat/session/
0 2011-11-10 15:30 com/liferay/support/tomcat/startup/
2099 2011-11-10 16:00 com/liferay/support/tomcat/jasper/runtime/TagHandlerPool.class
566 2011-11-10 16:00 com/liferay/support/tomcat/loader/PortalClassLoader.class
1050 2011-11-10 16:00 com/liferay/support/tomcat/loader/PortalClassLoaderFactory.class
6691 2011-11-10 16:00 com/liferay/support/tomcat/poller/comet/CatalinaCometProcessor.class
1388 2011-11-10 16:00 com/liferay/support/tomcat/poller/comet/CatalinaCometRequest.class
2030 2011-11-10 16:00 com/liferay/support/tomcat/poller/comet/CatalinaCometResponse.class
1719 2011-11-10 16:00 com/liferay/support/tomcat/poller/comet/CatalinaCometSession.class
1265 2011-11-10 16:00 com/liferay/support/tomcat/poller/comet/CatalinaCometSessionUtil.class
538 2011-11-10 16:00 com/liferay/support/tomcat/session/SessionLessManagerBase.class
1898 2011-11-10 16:00 com/liferay/support/tomcat/startup/PortalHostConfig.class
--------- -------
20458 26 files
Árpád Magosányi
RE: SEVERE: Class com.liferay.portal.security.jaas.PortalPrincipal not foun
December 18, 2011 2:17 AM
Answer

Árpád Magosányi

Rank: New Member

Posts: 2

Join Date: December 17, 2011

Recent Posts

I have downloaded some older versions, and the class is missing from them as well.
By taking a look at the tomcat bundle I see no trace of reference to jaas in the configs.
However if I remove the reference from the startup script (/etc/default/tomcat6 , as it is a debian with the shipped tomcat6), I still get the exception.

BTW it is a Debian stable on 2.6.26-1-sparc64-smp, tomcat is 6.0.28-9+squeeze1, the jre is openjdk-6-jre-headless 6b18-1.8.10-0+squeeze2.
Jevon Wright
RE: SEVERE: Class com.liferay.portal.security.jaas.PortalPrincipal not foun
December 18, 2011 7:36 PM
Answer

Jevon Wright

Rank: New Member

Posts: 8

Join Date: December 5, 2011

Recent Posts

I also solved this problem by making sure that all the JARs in lib\ext\*.jar were included, as defined in conf/catalina.properties, including all of the portlet dependencies:

common.loader=${catalina.base}/lib,${catalina.base}/lib/*.jar,${catalina.home}/lib,${catalina.home}/lib/*.jar,${catalina.home}/lib/ext/*.jar