Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Thibault Schalck
Tomcat + CAS not starting
July 21, 2008 10:37 AM
Answer

Thibault Schalck

Rank: Junior Member

Posts: 25

Join Date: July 8, 2008

Recent Posts

Hi,

1. I have installed Liferay 5.0.1 on tomcat 6.0 + CAS Server 3.3-RC2 on a linux environment: I have copied cas-server.war to the Tomcat webapps directory.

When starting the process, I have the following errorrs:

  1Jul 21, 2008 5:22:20 PM org.apache.catalina.core.AprLifecycleListener init
  2INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: /usr/lib/jvm/java-6-sun-1.6.0.00/jre/lib/i386/client:/usr/lib/jvm/java-6-sun-1.6.0.00/jre/lib/i386:/usr/lib/jvm/java-6-sun-1.6.0.00/jre/../lib/i386:/usr/java/packages/lib/i386:/lib:/usr/lib
  3Jul 21, 2008 5:22:20 PM org.apache.coyote.http11.Http11Protocol init
  4INFO: Initializing Coyote HTTP/1.1 on http-8080
  5Jul 21, 2008 5:22:20 PM org.apache.coyote.http11.Http11Protocol init
  6SEVERE: Error initializing endpoint
  7java.io.IOException: Keystore was tampered with, or password was incorrect
  8    at sun.security.provider.JavaKeyStore.engineLoad(JavaKeyStore.java:771)
  9    at sun.security.provider.JavaKeyStore$JKS.engineLoad(JavaKeyStore.java:38)
 10    at java.security.KeyStore.load(KeyStore.java:1185)
 11    at org.apache.tomcat.util.net.jsse.JSSESocketFactory.getStore(JSSESocketFactory.java:322)
 12    at org.apache.tomcat.util.net.jsse.JSSESocketFactory.getKeystore(JSSESocketFactory.java:259)
 13    at org.apache.tomcat.util.net.jsse.JSSESocketFactory.getKeyManagers(JSSESocketFactory.java:413)
 14    at org.apache.tomcat.util.net.jsse.JSSESocketFactory.init(JSSESocketFactory.java:381)
 15    at org.apache.tomcat.util.net.jsse.JSSESocketFactory.createSocket(JSSESocketFactory.java:125)
 16    at org.apache.tomcat.util.net.JIoEndpoint.init(JIoEndpoint.java:496)
 17    at org.apache.coyote.http11.Http11Protocol.init(Http11Protocol.java:176)
 18    at org.apache.catalina.connector.Connector.initialize(Connector.java:1058)
 19    at org.apache.catalina.core.StandardService.initialize(StandardService.java:677)
 20    at org.apache.catalina.core.StandardServer.initialize(StandardServer.java:795)
 21    at org.apache.catalina.startup.Catalina.load(Catalina.java:530)
 22    at org.apache.catalina.startup.Catalina.load(Catalina.java:550)
 23    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 24    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
 25    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 26    at java.lang.reflect.Method.invoke(Method.java:597)
 27    at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:260)
 28    at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:412)
 29Caused by: java.security.UnrecoverableKeyException: Password verification failed
 30    at sun.security.provider.JavaKeyStore.engineLoad(JavaKeyStore.java:769)
 31    ... 20 more
 32Jul 21, 2008 5:22:20 PM org.apache.catalina.startup.Catalina load
 33SEVERE: Catalina.start
 34LifecycleException:  Protocol handler initialization failed: java.io.IOException: Keystore was tampered with, or password was incorrect
 35    at org.apache.catalina.connector.Connector.initialize(Connector.java:1060)
 36    at org.apache.catalina.core.StandardService.initialize(StandardService.java:677)
 37    at org.apache.catalina.core.StandardServer.initialize(StandardServer.java:795)
 38    at org.apache.catalina.startup.Catalina.load(Catalina.java:530)
 39    at org.apache.catalina.startup.Catalina.load(Catalina.java:550)
 40    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 41    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
 42    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 43    at java.lang.reflect.Method.invoke(Method.java:597)
 44    at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:260)
 45    at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:412)
 46Jul 21, 2008 5:22:20 PM org.apache.catalina.startup.Catalina load
 47INFO: Initialization processed in 847 ms
 48Jul 21, 2008 5:22:20 PM org.apache.catalina.core.StandardService start
 49INFO: Starting service Catalina
 50Jul 21, 2008 5:22:20 PM org.apache.catalina.core.StandardEngine start
 51INFO: Starting Servlet Engine: Apache Tomcat/6.0.16
 52Jul 21, 2008 5:22:21 PM org.apache.catalina.core.StandardContext addApplicationListener
 53INFO: The listener "com.liferay.portal.servlet.PortalSessionListener" is already configured for this context. The duplicate definition has been ignored.
 54Jul 21, 2008 5:22:21 PM org.apache.catalina.core.StandardContext addApplicationListener
 55INFO: The listener "com.liferay.portal.kernel.servlet.PortletSessionListenerManager" is already configured for this context. The duplicate definition has been ignored.
 56Jul 21, 2008 5:22:21 PM org.apache.catalina.core.StandardContext addApplicationListener
 57INFO: The listener "com.liferay.portal.kernel.servlet.SerializableSessionAttributeListener" is already configured for this context. The duplicate definition has been ignored.
 58Jul 21, 2008 5:22:21 PM org.apache.catalina.core.StandardContext addApplicationListener
 59INFO: The listener "com.liferay.portal.servlet.SharedSessionAttributeListener" is already configured for this context. The duplicate definition has been ignored.
 60Loading jar:file:/opt/liferay/liferay/webapps/ROOT/WEB-INF/lib/portal-impl.jar!/system.properties
 61Loading file:/opt/liferay/liferay/webapps/ROOT/WEB-INF/classes/system-ext.properties
 62Loading jar:file:/opt/liferay/liferay/webapps/ROOT/WEB-INF/lib/portal-impl.jar!/portal.properties
 63Loading file:/opt/liferay/liferay/webapps/ROOT/WEB-INF/classes/portal-ext.properties
 64Starting Liferay Enterprise Portal 5.0.1 (Luther / Build 5001 / April 14, 2008)
 6517:22:32,163 INFO  [DynamicDialect:80] Determining dialect for HSQL Database Engine 1
 6617:22:32,167 WARN  [DynamicDialect:86] Liferay is configured to use Hypersonic as its database. Do NOT use Hypersonic in production. Hypersonic is an embedded database useful for development and demo'ing purposes.
 6717:22:32,177 INFO  [DynamicDialect:106] Using dialect org.hibernate.dialect.HSQLDialect
 6817:22:47,276 INFO  [HotDeployUtil:76] Initializing hot deploy manager 12107172
 6917:22:47,281 INFO  [ServerDetector:76] Detected server tomcat
 7017:22:47,440 INFO  [AutoDeployDir:76] Auto deploy scanner started for /root/liferay/deploy
 7117:22:47,535 INFO  [CustomSQLUtil:110] Database name HSQL Database Engine
 72Loading jar:file:/opt/liferay/liferay/webapps/ROOT/WEB-INF/lib/portal-impl.jar!/portal.properties for {companyId=1, webId=liferay.com}
 73Loading file:/opt/liferay/liferay/webapps/ROOT/WEB-INF/classes/portal-ext.properties for {companyId=1, webId=liferay.com}
 74Jul 21, 2008 5:22:48 PM org.apache.catalina.startup.HostConfig deployWAR
 75INFO: Deploying web application archive cas-web.war
 76Jul 21, 2008 5:22:48 PM org.apache.catalina.core.StandardContext addApplicationListener
 77INFO: The listener "org.springframework.web.util.Log4jConfigListener" is already configured for this context. The duplicate definition has been ignored.
 78Jul 21, 2008 5:22:48 PM org.apache.catalina.core.StandardContext addApplicationListener
 79INFO: The listener "org.jasig.cas.web.init.SafeContextLoaderListener" is already configured for this context. The duplicate definition has been ignored.
 802008-07-21 17:22:50,870 WARN [org.jasig.cas.authentication.handler.support.SimpleTestUsernamePasswordAuthenticationHandler] - <org.jasig.cas.authentication.handler.support.SimpleTestUsernamePasswordAuthenticationHandler is only to be used in a testing environment.  NEVER enable this in a production environment.>
 812008-07-21 17:22:51,639 INFO [org.jasig.cas.web.flow.AuthenticationViaFormAction] - <FormObjectClass not set.  Using default class of org.jasig.cas.authentication.principal.UsernamePasswordCredentials with formObjectName credentials and validator org.jasig.cas.validation.UsernamePasswordCredentialsValidator.>
 82Jul 21, 2008 5:22:51 PM org.apache.catalina.core.StandardContext addApplicationListener
 83INFO: The listener "com.liferay.portal.kernel.servlet.ThemeContextListener" is already configured for this context. The duplicate definition has been ignored.
 8417:22:52,085 INFO  [ThemeHotDeployListener:77] Registering themes for liferay-jedi-theme
 8517:22:52,099 INFO  [ThemeHotDeployListener:89] Themes for liferay-jedi-theme registered successfully
 86Jul 21, 2008 5:22:52 PM org.apache.catalina.core.StandardContext addApplicationListener
 87INFO: The listener "com.liferay.portal.kernel.servlet.SpringServletContextListener" is already configured for this context. The duplicate definition has been ignored.
 88Jul 21, 2008 5:22:52 PM org.apache.catalina.core.StandardContext addApplicationListener
 89INFO: The listener "com.liferay.portal.kernel.servlet.TunnelContextListener" is already configured for this context. The duplicate definition has been ignored.
 90Jul 21, 2008 5:22:55 PM org.apache.coyote.http11.Http11Protocol start
 91INFO: Starting Coyote HTTP/1.1 on http-8080
 92Jul 21, 2008 5:22:55 PM org.apache.coyote.http11.Http11Protocol start
 93SEVERE: Error starting endpoint
 94java.io.IOException: Keystore was tampered with, or password was incorrect
 95    at sun.security.provider.JavaKeyStore.engineLoad(JavaKeyStore.java:771)
 96    at sun.security.provider.JavaKeyStore$JKS.engineLoad(JavaKeyStore.java:38)
 97    at java.security.KeyStore.load(KeyStore.java:1185)
 98    at org.apache.tomcat.util.net.jsse.JSSESocketFactory.getStore(JSSESocketFactory.java:322)
 99    at org.apache.tomcat.util.net.jsse.JSSESocketFactory.getKeystore(JSSESocketFactory.java:259)
100    at org.apache.tomcat.util.net.jsse.JSSESocketFactory.getKeyManagers(JSSESocketFactory.java:413)
101    at org.apache.tomcat.util.net.jsse.JSSESocketFactory.init(JSSESocketFactory.java:381)
102    at org.apache.tomcat.util.net.jsse.JSSESocketFactory.createSocket(JSSESocketFactory.java:125)
103    at org.apache.tomcat.util.net.JIoEndpoint.init(JIoEndpoint.java:496)
104    at org.apache.tomcat.util.net.JIoEndpoint.start(JIoEndpoint.java:515)
105    at org.apache.coyote.http11.Http11Protocol.start(Http11Protocol.java:203)
106    at org.apache.catalina.connector.Connector.start(Connector.java:1131)
107    at org.apache.catalina.core.StandardService.start(StandardService.java:531)
108    at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
109    at org.apache.catalina.startup.Catalina.start(Catalina.java:578)
110    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
111    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
112    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
113    at java.lang.reflect.Method.invoke(Method.java:597)
114    at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
115    at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
116Caused by: java.security.UnrecoverableKeyException: Password verification failed
117    at sun.security.provider.JavaKeyStore.engineLoad(JavaKeyStore.java:769)
118    ... 20 more
119Jul 21, 2008 5:22:55 PM org.apache.catalina.startup.Catalina start
120SEVERE: Catalina.start:
121LifecycleException:  service.getName(): "Catalina";  Protocol handler start failed: java.io.IOException: Keystore was tampered with, or password was incorrect
122    at org.apache.catalina.connector.Connector.start(Connector.java:1138)
123    at org.apache.catalina.core.StandardService.start(StandardService.java:531)
124    at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
125    at org.apache.catalina.startup.Catalina.start(Catalina.java:578)
126    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
127    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
128    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
129    at java.lang.reflect.Method.invoke(Method.java:597)
130    at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
131    at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
132Jul 21, 2008 5:22:55 PM org.apache.catalina.startup.Catalina start
133INFO: Server startup in 35003 ms



And when stopping it this error:

 1Jul 21, 2008 5:23:30 PM org.apache.coyote.http11.Http11Protocol pause
 2INFO: Pausing Coyote HTTP/1.1 on http-8080
 3Jul 21, 2008 5:23:30 PM org.apache.coyote.http11.Http11Protocol pause
 4INFO: Pausing Coyote HTTP/1.1 on http-8443
 5Jul 21, 2008 5:23:30 PM org.apache.catalina.connector.Connector pause
 6SEVERE: Protocol handler pause failed
 7java.lang.NullPointerException
 8    at org.apache.jk.server.JkMain.pause(JkMain.java:679)
 9    at org.apache.jk.server.JkCoyoteHandler.pause(JkCoyoteHandler.java:153)
10    at org.apache.catalina.connector.Connector.pause(Connector.java:1073)
11    at org.apache.catalina.core.StandardService.stop(StandardService.java:563)
12    at org.apache.catalina.core.StandardServer.stop(StandardServer.java:744)
13    at org.apache.catalina.startup.Catalina.stop(Catalina.java:628)
14    at org.apache.catalina.startup.Catalina.start(Catalina.java:603)
15    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
16    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
17    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
18    at java.lang.reflect.Method.invoke(Method.java:597)
19    at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
20    at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
21Jul 21, 2008 5:23:31 PM org.apache.catalina.core.StandardService stop
22INFO: Stopping service Catalina
23log4j:ERROR LogMananger.repositorySelector was null likely due to error in class reloading, using NOPLoggerRepository.
24Jul 21, 2008 5:23:33 PM org.apache.coyote.http11.Http11Protocol destroy
25INFO: Stopping Coyote HTTP/1.1 on http-8080
26Jul 21, 2008 5:23:33 PM org.apache.catalina.connector.MapperListener destroy
27WARNING: Error unregistering MBeanServerDelegate
28java.lang.NullPointerException
29    at org.apache.catalina.connector.MapperListener.destroy(MapperListener.java:162)
30    at org.apache.catalina.connector.Connector.stop(Connector.java:1179)
31    at org.apache.catalina.core.StandardService.stop(StandardService.java:593)
32    at org.apache.catalina.core.StandardServer.stop(StandardServer.java:744)
33    at org.apache.catalina.startup.Catalina.stop(Catalina.java:628)
34    at org.apache.catalina.startup.Catalina.start(Catalina.java:603)
35    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
36    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
37    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
38    at java.lang.reflect.Method.invoke(Method.java:597)
39    at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
40    at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
41Jul 21, 2008 5:23:33 PM org.apache.coyote.http11.Http11Protocol destroy
42INFO: Stopping Coyote HTTP/1.1 on http-8443
43Jul 21, 2008 5:23:33 PM org.apache.catalina.connector.Connector stop
44SEVERE: Coyote connector has not been started
45Jul 21, 2008 5:23:33 PM org.apache.catalina.loader.WebappClassLoader loadClass
46INFO: Illegal access: this web application instance has been stopped already.  Could not load org.apache.activemq.broker.BrokerService$2$1.  The eventual following stack trace is caused by an error thrown for debugging purposes as well as to attempt to terminate the thread which caused the illegal access, and has no functional impact.
47java.lang.IllegalStateException
48    at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1246)
49    at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1206)
50    at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
51    at org.apache.activemq.broker.BrokerService$2.stop(BrokerService.java:1406)
52    at org.apache.activemq.util.ServiceStopper.stop(ServiceStopper.java:41)
53    at org.apache.activemq.broker.BrokerService.stop(BrokerService.java:459)
54    at org.apache.activemq.broker.BrokerService.containerShutdown(BrokerService.java:1586)
55    at org.apache.activemq.broker.BrokerService$3.run(BrokerService.java:1564)
56Exception in thread "ActiveMQ ShutdownHook" java.lang.NoClassDefFoundError: org/apache/activemq/broker/BrokerService$2$1
57    at org.apache.activemq.broker.BrokerService$2.stop(BrokerService.java:1406)
58    at org.apache.activemq.util.ServiceStopper.stop(ServiceStopper.java:41)
59    at org.apache.activemq.broker.BrokerService.stop(BrokerService.java:459)
60    at org.apache.activemq.broker.BrokerService.containerShutdown(BrokerService.java:1586)
61    at org.apache.activemq.broker.BrokerService$3.run(BrokerService.java:1564)




Here are the configurations I made upon the server files:
________________________________________________________________________________________________
_________________________________________________________________________________________________
2.The server.xml file has been paremetered like that:

  1<?xml version='1.0' encoding='utf-8'?>
  2<!--
  3  Licensed to the Apache Software Foundation (ASF) under one or more
  4  contributor license agreements.  See the NOTICE file distributed with
  5  this work for additional information regarding copyright ownership.
  6  The ASF licenses this file to You under the Apache License, Version 2.0
  7  (the "License"); you may not use this file except in compliance with
  8  the License.  You may obtain a copy of the License at
  9
 10      http://www.apache.org/licenses/LICENSE-2.0
 11
 12  Unless required by applicable law or agreed to in writing, software
 13  distributed under the License is distributed on an "AS IS" BASIS,
 14  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 15  See the License for the specific language governing permissions and
 16  limitations under the License.
 17-->
 18<!-- Note:  A "Server" is not itself a "Container", so you may not
 19     define subcomponents such as "Valves" at this level.
 20     Documentation at /docs/config/server.html
 21 -->
 22<Server port="8005" shutdown="SHUTDOWN">
 23
 24  <!--APR library loader. Documentation at /docs/apr.html -->
 25  <Listener className="org.apache.catalina.core.AprLifecycleListener" SSLEngine="on" />
 26  <!--Initialize Jasper prior to webapps are loaded. Documentation at /docs/jasper-howto.html -->
 27  <Listener className="org.apache.catalina.core.JasperListener" />
 28  <!-- JMX Support for the Tomcat server. Documentation at /docs/non-existent.html -->
 29  <Listener className="org.apache.catalina.mbeans.ServerLifecycleListener" />
 30  <Listener className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener" />
 31
 32  <!-- Global JNDI resources
 33       Documentation at /docs/jndi-resources-howto.html
 34  -->
 35  <GlobalNamingResources>
 36    <!-- Editable user database that can also be used by
 37         UserDatabaseRealm to authenticate users
 38    -->
 39    <Resource name="UserDatabase" auth="Container"
 40              type="org.apache.catalina.UserDatabase"
 41              description="User database that can be updated and saved"
 42              factory="org.apache.catalina.users.MemoryUserDatabaseFactory"
 43              pathname="conf/tomcat-users.xml" />
 44  </GlobalNamingResources>
 45
 46  <!-- A "Service" is a collection of one or more "Connectors" that share
 47       a single "Container" Note:  A "Service" is not itself a "Container",
 48       so you may not define subcomponents such as "Valves" at this level.
 49       Documentation at /docs/config/service.html
 50   -->
 51  <Service name="Catalina">
 52 
 53    <!--The connectors can use a shared executor, you can define one or more named thread pools-->
 54    <!--
 55    <Executor name="tomcatThreadPool" namePrefix="catalina-exec-"
 56        maxThreads="150" minSpareThreads="4"/>
 57    -->
 58   
 59   
 60    <!-- A "Connector" represents an endpoint by which requests are received
 61         and responses are returned. Documentation at :
 62         Java HTTP Connector: /docs/config/http.html (blocking & non-blocking)
 63         Java AJP  Connector: /docs/config/ajp.html
 64         APR (HTTP/AJP) Connector: /docs/apr.html
 65         Define a non-SSL HTTP/1.1 Connector on port 8080
 66    -->
 67    <Connector port="8080" protocol="HTTP/1.1"
 68               connectionTimeout="20000"
 69               redirectPort="8443" URIEncoding="UTF-8" />
 70    <!-- A "Connector" using the shared thread pool-->
 71    <!--
 72    <Connector executor="tomcatThreadPool"
 73               port="8080" protocol="HTTP/1.1"
 74               connectionTimeout="20000"
 75               redirectPort="8443" />
 76    -->          
 77    <!-- Define a SSL HTTP/1.1 Connector on port 8443
 78         This connector uses the JSSE configuration, when using APR, the
 79         connector should be using the OpenSSL style configuration
 80         described in the APR documentation -->
 81
 82    <Connector port="8443" protocol="HTTP/1.1" SSLEnabled="true"
 83               maxThreads="150" scheme="https" secure="true"
 84               clientAuth="false" sslProtocol="TLS" />
 85
 86
 87    <!-- Define an AJP 1.3 Connector on port 8009 -->
 88    <Connector port="8009" protocol="AJP/1.3" redirectPort="8443" URIEncoding="UTF-8" />
 89
 90
 91    <!-- An Engine represents the entry point (within Catalina) that processes
 92         every request.  The Engine implementation for Tomcat stand alone
 93         analyzes the HTTP headers included with the request, and passes them
 94         on to the appropriate Host (virtual host).
 95         Documentation at /docs/config/engine.html -->
 96
 97    <!-- You should set jvmRoute to support load-balancing via AJP ie :
 98    <Engine name="Standalone" defaultHost="localhost" jvmRoute="jvm1">         
 99    -->
100    <Engine name="Catalina" defaultHost="localhost">
101
102      <!--For clustering, please take a look at documentation at:
103          /docs/cluster-howto.html  (simple how to)
104          /docs/config/cluster.html (reference documentation) -->
105      <!--
106      <Cluster className="org.apache.catalina.ha.tcp.SimpleTcpCluster"/>
107      -->       
108
109      <!-- The request dumper valve dumps useful debugging information about
110           the request and response data received and sent by Tomcat.
111           Documentation at: /docs/config/valve.html -->
112      <!--
113      <Valve className="org.apache.catalina.valves.RequestDumperValve"/>
114      -->
115
116      <!-- This Realm uses the UserDatabase configured in the global JNDI
117           resources under the key "UserDatabase".  Any edits
118           that are performed against this UserDatabase are immediately
119           available for use by the Realm.  -->
120      <Realm className="org.apache.catalina.realm.UserDatabaseRealm"
121             resourceName="UserDatabase"/>
122
123      <!-- Define the default virtual host
124           Note: XML Schema validation will not work with Xerces 2.2.
125       -->
126      <Host name="localhost"  appBase="webapps"
127            unpackWARs="true" autoDeploy="true"
128            xmlValidation="false" xmlNamespaceAware="false">
129
130        <!-- SingleSignOn valve, share authentication between web applications
131             Documentation at: /docs/config/valve.html -->
132        <!--
133        <Valve className="org.apache.catalina.authenticator.SingleSignOn" />
134        -->
135
136        <!-- Access log processes all example.
137             Documentation at: /docs/config/valve.html -->
138        <!--
139        <Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs" 
140               prefix="localhost_access_log." suffix=".txt" pattern="common" resolveHosts="false"/>
141        -->
142
143      </Host>
144    </Engine>
145  </Service>
146</Server>


_________________________________________________________________________________________________
_________________________________________________________________________________________________
3.The client is already in <tomcat>/webapps/ROOT/WEB_INF/lib

_________________________________________________________________________________________________
_________________________________________________________________________________________________
4.I have created and imported the SSL certificate to Tomcat: it worked fine:

 1Enter keystore password:  myRootPSWD
 2What is your first and last name?
 3[Unknown]: liferay
 4What is the name of your organizational unit?
 5[Unknown]: portal
 6What is the name of your organization?
 7[Unknown]: ledgersonline
 8What is the name of your City or Locality?
 9[Unknown]:
10What is the name of your State or Province?
11[Unknown]: bc
12What is the two-letter country code for this unit?
13[Unknown]: ca
14Is CN=liferay, OU=portal, O=ledgersonline, L=Unknown, ST=bc, C=ca correct?
15[no]: yes


_________________________________________________________________________________________________
_________________________________________________________________________________________________
5.I have created the portal-ext.properties file in <TOMCAT>/webapps\ROOT\WEB_INF\classes and added the following lines
1cas.auth.enabled=true
2cas.import.from.ldap=false
3cas.login.url=https://localhost:8443/cas-web/login
4cas.logout.url=https://localhost:8443/cas-web/logout
5cas.service.url=http://localhost:8080/c/portal/login
6cas.validate.url=https://localhost:8443/cas-web/proxyValidate


_________________________________________________________________________________________________
_________________________________________________________________________________________________
6. Then I modified the filter in web.xml file with both IP address 10.100.106.11 and localhost (I am not sure of what I need to type in there):

  1<?xml version="1.0"?>
  2
  3<web-app xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd" version="2.4">
  4    <filter>
  5        <filter-name>Auto Login Filter</filter-name>
  6        <filter-class>com.liferay.portal.servlet.filters.autologin.AutoLoginFilter</filter-class>
  7    </filter>
  8    <filter>
  9        <filter-name>CAS Filter</filter-name>
 10        <filter-class>com.liferay.portal.servlet.filters.sso.cas.CASFilter</filter-class>
 11        <init-param>
 12            <param-name>logout_url</param-name>
 13            <param-value>https://10.100.106.11:8443/cas-web/logout</param-value>
 14        </init-param>
 15        <init-param>
 16            <param-name>edu.yale.its.tp.cas.client.filter.loginUrl</param-name>
 17            <param-value>https://10.100.106.11:8443/cas-web/login</param-value>
 18        </init-param>
 19        <init-param>
 20            <param-name>edu.yale.its.tp.cas.client.filter.validateUrl</param-name>
 21            <param-value>https://10.100.106.11:8443/cas-web/proxyValidate</param-value>
 22        </init-param>
 23        <init-param>
 24            <param-name>edu.yale.its.tp.cas.client.filter.serviceUrl</param-name>
 25            <param-value>http://10.100.106.11:8080/c/portal/login</param-value>
 26        </init-param>
 27    </filter>
 28    <filter>
 29        <filter-name>Compression Filter</filter-name>
 30        <filter-class>com.liferay.portal.servlet.filters.compression.CompressionFilter</filter-class>
 31    </filter>
 32    <filter>
 33        <filter-name>Double Click Filter</filter-name>
 34        <filter-class>com.liferay.portal.servlet.filters.doubleclick.DoubleClickFilter</filter-class>
 35    </filter>
 36    <filter>
 37        <filter-name>Header Filter</filter-name>
 38        <filter-class>com.liferay.portal.servlet.filters.header.HeaderFilter</filter-class>
 39        <init-param>
 40            <param-name>Cache-Control</param-name>
 41            <param-value>max-age=172801, public</param-value>
 42        </init-param>
 43        <init-param>
 44            <param-name>Expires</param-name>
 45            <param-value>172801</param-value>
 46        </init-param>
 47    </filter>
 48    <filter>
 49        <filter-name>Layout Cache Filter - Friendly</filter-name>
 50        <filter-class>com.liferay.portal.servlet.filters.layoutcache.LayoutCacheFilter</filter-class>
 51        <init-param>
 52            <param-name>pattern</param-name>
 53            <param-value>0</param-value>
 54        </init-param>
 55    </filter>
 56    <filter>
 57        <filter-name>Layout Cache Filter - Layout</filter-name>
 58        <filter-class>com.liferay.portal.servlet.filters.layoutcache.LayoutCacheFilter</filter-class>
 59        <init-param>
 60            <param-name>pattern</param-name>
 61            <param-value>1</param-value>
 62        </init-param>
 63    </filter>
 64    <filter>
 65        <filter-name>Layout Cache Filter - Resource</filter-name>
 66        <filter-class>com.liferay.portal.servlet.filters.layoutcache.LayoutCacheFilter</filter-class>
 67        <init-param>
 68            <param-name>pattern</param-name>
 69            <param-value>2</param-value>
 70        </init-param>
 71    </filter>
 72    <filter>
 73        <filter-name>Ntlm Filter</filter-name>
 74        <filter-class>com.liferay.portal.servlet.filters.sso.ntlm.NtlmFilter</filter-class>
 75    </filter>
 76    <filter>
 77        <filter-name>Open SSO Filter</filter-name>
 78        <filter-class>com.liferay.portal.servlet.filters.sso.opensso.OpenSSOFilter</filter-class>
 79    </filter>
 80    <filter>
 81        <filter-name>Secure MainServlet Filter</filter-name>
 82        <filter-class>com.liferay.portal.servlet.filters.secure.SecureFilter</filter-class>
 83        <init-param>
 84            <param-name>portal_property_prefix</param-name>
 85            <param-value>main.servlet.</param-value>
 86        </init-param>
 87    </filter>
 88    <filter>
 89        <filter-name>Session Id Filter</filter-name>
 90        <filter-class>com.liferay.portal.servlet.filters.sessionid.SessionIdFilter</filter-class>
 91    </filter>
 92    <filter>
 93        <filter-name>Strip Filter</filter-name>
 94        <filter-class>com.liferay.portal.servlet.filters.strip.StripFilter</filter-class>
 95    </filter>
 96    <filter>
 97        <filter-name>Velocity Filter</filter-name>
 98        <filter-class>com.liferay.portal.servlet.filters.velocity.VelocityFilter</filter-class>
 99        <init-param>
100            <param-name>pattern</param-name>
101            <param-value>(.+)/css/main.css(.+)</param-value>
102        </init-param>
103    </filter>
104    <filter>
105        <filter-name>Virtual Host Filter</filter-name>
106        <filter-class>com.liferay.portal.servlet.filters.virtualhost.VirtualHostFilter</filter-class>
107    </filter>
108    <filter-mapping>
109        <filter-name>Session Id Filter</filter-name>
110        <url-pattern>/*</url-pattern>
111        <dispatcher>REQUEST</dispatcher>
112        <dispatcher>FORWARD</dispatcher>
113    </filter-mapping>
114    <filter-mapping>
115        <filter-name>Virtual Host Filter</filter-name>
116        <url-pattern>/*</url-pattern>
117        <dispatcher>REQUEST</dispatcher>
118        <dispatcher>FORWARD</dispatcher>
119    </filter-mapping>
120    <filter-mapping>
121        <filter-name>CAS Filter</filter-name>
122        <url-pattern>/c/portal/login</url-pattern>
123    </filter-mapping>
124    <filter-mapping>
125        <filter-name>CAS Filter</filter-name>
126        <url-pattern>/c/portal/logout</url-pattern>
127    </filter-mapping>
128    <filter-mapping>
129        <filter-name>Ntlm Filter</filter-name>
130        <url-pattern>/c/portal/login</url-pattern>
131    </filter-mapping>
132    <filter-mapping>
133        <filter-name>Open SSO Filter</filter-name>
134        <url-pattern>/c/portal/login</url-pattern>
135    </filter-mapping>
136    <filter-mapping>
137        <filter-name>Open SSO Filter</filter-name>
138        <url-pattern>/c/portal/logout</url-pattern>
139    </filter-mapping>
140    <filter-mapping>
141        <filter-name>Auto Login Filter</filter-name>
142        <url-pattern>/c/portal/change_password</url-pattern>
143    </filter-mapping>
144    <filter-mapping>
145        <filter-name>Auto Login Filter</filter-name>
146        <url-pattern>/c/portal/fckeditor</url-pattern>
147    </filter-mapping>
148    <filter-mapping>
149        <filter-name>Auto Login Filter</filter-name>
150        <url-pattern>/c/portal/layout</url-pattern>
151    </filter-mapping>
152    <filter-mapping>
153        <filter-name>Auto Login Filter</filter-name>
154        <url-pattern>/c/portal/login</url-pattern>
155        <dispatcher>FORWARD</dispatcher>
156        <dispatcher>INCLUDE</dispatcher>
157        <dispatcher>REQUEST</dispatcher>
158
159    </filter-mapping>
160    <filter-mapping>
161        <filter-name>Auto Login Filter</filter-name>
162        <url-pattern>/c/portal/render_portlet</url-pattern>
163    </filter-mapping>
164    <filter-mapping>
165        <filter-name>Auto Login Filter</filter-name>
166        <url-pattern>/group/*</url-pattern>
167        <dispatcher>REQUEST</dispatcher>
168        <dispatcher>FORWARD</dispatcher>
169    </filter-mapping>
170    <filter-mapping>
171        <filter-name>Auto Login Filter</filter-name>
172        <url-pattern>/user/*</url-pattern>
173        <dispatcher>REQUEST</dispatcher>
174        <dispatcher>FORWARD</dispatcher>
175    </filter-mapping>
176    <filter-mapping>
177        <filter-name>Auto Login Filter</filter-name>
178        <url-pattern>/web/*</url-pattern>
179        <dispatcher>REQUEST</dispatcher>
180        <dispatcher>FORWARD</dispatcher>
181    </filter-mapping>
182    <filter-mapping>
183        <filter-name>Layout Cache Filter - Friendly</filter-name>
184        <url-pattern>/group/*</url-pattern>
185        <dispatcher>REQUEST</dispatcher>
186        <dispatcher>FORWARD</dispatcher>
187    </filter-mapping>
188    <filter-mapping>
189        <filter-name>Layout Cache Filter - Friendly</filter-name>
190        <url-pattern>/user/*</url-pattern>
191        <dispatcher>REQUEST</dispatcher>
192        <dispatcher>FORWARD</dispatcher>
193    </filter-mapping>
194    <filter-mapping>
195        <filter-name>Layout Cache Filter - Friendly</filter-name>
196        <url-pattern>/web/*</url-pattern>
197        <dispatcher>REQUEST</dispatcher>
198        <dispatcher>FORWARD</dispatcher>
199    </filter-mapping>
200    <filter-mapping>
201        <filter-name>Layout Cache Filter - Layout</filter-name>
202        <url-pattern>/c/portal/layout</url-pattern>
203    </filter-mapping>
204    <filter-mapping>
205        <filter-name>Layout Cache Filter - Resource</filter-name>
206        <url-pattern>/c/portal/css_cached</url-pattern>
207    </filter-mapping>
208    <filter-mapping>
209        <filter-name>Layout Cache Filter - Resource</filter-name>
210        <url-pattern>/c/portal/javascript_cached</url-pattern>
211    </filter-mapping>
212    <filter-mapping>
213        <filter-name>Double Click Filter</filter-name>
214        <url-pattern>/c/portal/layout</url-pattern>
215    </filter-mapping>
216    <filter-mapping>
217        <filter-name>Double Click Filter</filter-name>
218        <url-pattern>/group/*</url-pattern>
219        <dispatcher>REQUEST</dispatcher>
220        <dispatcher>FORWARD</dispatcher>
221    </filter-mapping>
222    <filter-mapping>
223        <filter-name>Double Click Filter</filter-name>
224        <url-pattern>/user/*</url-pattern>
225        <dispatcher>REQUEST</dispatcher>
226        <dispatcher>FORWARD</dispatcher>
227    </filter-mapping>
228    <filter-mapping>
229        <filter-name>Double Click Filter</filter-name>
230        <url-pattern>/web/*</url-pattern>
231        <dispatcher>REQUEST</dispatcher>
232        <dispatcher>FORWARD</dispatcher>
233    </filter-mapping>
234    <filter-mapping>
235        <filter-name>Secure MainServlet Filter</filter-name>
236        <url-pattern>/c/*</url-pattern>
237    </filter-mapping>
238    <filter-mapping>
239        <filter-name>Secure MainServlet Filter</filter-name>
240        <url-pattern>/group/*</url-pattern>
241        <dispatcher>REQUEST</dispatcher>
242        <dispatcher>FORWARD</dispatcher>
243    </filter-mapping>
244    <filter-mapping>
245        <filter-name>Secure MainServlet Filter</filter-name>
246        <url-pattern>/user/*</url-pattern>
247        <dispatcher>REQUEST</dispatcher>
248        <dispatcher>FORWARD</dispatcher>
249    </filter-mapping>
250    <filter-mapping>
251        <filter-name>Secure MainServlet Filter</filter-name>
252        <url-pattern>/web/*</url-pattern>
253        <dispatcher>REQUEST</dispatcher>
254        <dispatcher>FORWARD</dispatcher>
255    </filter-mapping>
256    <filter-mapping>
257        <filter-name>Header Filter</filter-name>
258        <url-pattern>/c/portal/css_cached</url-pattern>
259    </filter-mapping>
260    <filter-mapping>
261        <filter-name>Header Filter</filter-name>
262        <url-pattern>/c/portal/javascript_cached</url-pattern>
263    </filter-mapping>
264    <filter-mapping>
265        <filter-name>Header Filter</filter-name>
266        <url-pattern>/image/*</url-pattern>
267        <dispatcher>REQUEST</dispatcher>
268        <dispatcher>FORWARD</dispatcher>
269    </filter-mapping>
270    <filter-mapping>
271        <filter-name>Header Filter</filter-name>
272        <url-pattern>/language/*</url-pattern>
273        <dispatcher>REQUEST</dispatcher>
274        <dispatcher>FORWARD</dispatcher>
275    </filter-mapping>
276    <filter-mapping>
277        <filter-name>Header Filter</filter-name>
278        <url-pattern>*.css</url-pattern>
279    </filter-mapping>
280    <filter-mapping>
281        <filter-name>Header Filter</filter-name>
282        <url-pattern>*.gif</url-pattern>
283    </filter-mapping>
284    <filter-mapping>
285        <filter-name>Header Filter</filter-name>
286        <url-pattern>*.html</url-pattern>
287    </filter-mapping>
288    <filter-mapping>
289        <filter-name>Header Filter</filter-name>
290        <url-pattern>*.jpg</url-pattern>
291    </filter-mapping>
292    <filter-mapping>
293        <filter-name>Header Filter</filter-name>
294        <url-pattern>*.js</url-pattern>
295    </filter-mapping>
296    <filter-mapping>
297        <filter-name>Header Filter</filter-name>
298        <url-pattern>*.png</url-pattern>
299    </filter-mapping>
300    <filter-mapping>
301        <filter-name>Compression Filter</filter-name>
302        <url-pattern>/c/portal/*</url-pattern>
303    </filter-mapping>
304    <filter-mapping>
305        <filter-name>Compression Filter</filter-name>
306        <url-pattern>/group/*</url-pattern>
307        <dispatcher>REQUEST</dispatcher>
308        <dispatcher>FORWARD</dispatcher>
309    </filter-mapping>
310    <filter-mapping>
311        <filter-name>Compression Filter</filter-name>
312        <url-pattern>/user/*</url-pattern>
313        <dispatcher>REQUEST</dispatcher>
314        <dispatcher>FORWARD</dispatcher>
315    </filter-mapping>
316    <filter-mapping>
317        <filter-name>Compression Filter</filter-name>
318        <url-pattern>/web/*</url-pattern>
319        <dispatcher>REQUEST</dispatcher>
320        <dispatcher>FORWARD</dispatcher>
321    </filter-mapping>
322    <filter-mapping>
323        <filter-name>Compression Filter</filter-name>
324        <url-pattern>*.css</url-pattern>
325    </filter-mapping>
326    <filter-mapping>
327        <filter-name>Compression Filter</filter-name>
328        <url-pattern>*.html</url-pattern>
329    </filter-mapping>
330    <filter-mapping>
331        <filter-name>Compression Filter</filter-name>
332        <url-pattern>*.js</url-pattern>
333    </filter-mapping>
334    <filter-mapping>
335        <filter-name>Compression Filter</filter-name>
336        <url-pattern>*.jsp</url-pattern>
337    </filter-mapping>
338    <filter-mapping>
339        <filter-name>Strip Filter</filter-name>
340        <url-pattern>/c/portal/*</url-pattern>
341    </filter-mapping>
342    <filter-mapping>
343        <filter-name>Strip Filter</filter-name>
344        <url-pattern>/group/*</url-pattern>
345        <dispatcher>REQUEST</dispatcher>
346        <dispatcher>FORWARD</dispatcher>
347    </filter-mapping>
348    <filter-mapping>
349        <filter-name>Strip Filter</filter-name>
350        <url-pattern>/user/*</url-pattern>
351        <dispatcher>REQUEST</dispatcher>
352        <dispatcher>FORWARD</dispatcher>
353    </filter-mapping>
354    <filter-mapping>
355        <filter-name>Strip Filter</filter-name>
356        <url-pattern>/web/*</url-pattern>
357        <dispatcher>REQUEST</dispatcher>
358        <dispatcher>FORWARD</dispatcher>
359    </filter-mapping>
360    <filter-mapping>
361        <filter-name>Strip Filter</filter-name>
362        <url-pattern>*.css</url-pattern>
363    </filter-mapping>
364    <filter-mapping>
365        <filter-name>Strip Filter</filter-name>
366        <url-pattern>*.html</url-pattern>
367    </filter-mapping>
368    <filter-mapping>
369        <filter-name>Strip Filter</filter-name>
370        <url-pattern>*.js</url-pattern>
371    </filter-mapping>
372    <filter-mapping>
373        <filter-name>Strip Filter</filter-name>
374        <url-pattern>*.jsp</url-pattern>
375    </filter-mapping>
376    <!--<filter-mapping>
377        <filter-name>Velocity Filter</filter-name>
378        <url-pattern>*.css</url-pattern>
379    </filter-mapping>-->
380    <listener>
381        <listener-class>com.liferay.portal.servlet.PortalSessionListener</listener-class>
382    </listener>
383    <listener>
384        <listener-class>com.liferay.portal.kernel.servlet.PortletSessionListenerManager</listener-class>
385    </listener>
386    <listener>
387        <listener-class>com.liferay.portal.kernel.servlet.SerializableSessionAttributeListener</listener-class>
388    </listener>
389    <listener>
390        <listener-class>com.liferay.portal.servlet.SharedSessionAttributeListener</listener-class>
391    </listener>
392    <servlet>
393        <servlet-name>MainServlet</servlet-name>
394        <servlet-class>com.liferay.portal.servlet.MainServlet</servlet-class>
395        <init-param>
396            <param-name>config</param-name>
397            <param-value>/WEB-INF/struts-config.xml</param-value>
398        </init-param>
399        <init-param>
400            <param-name>debug</param-name>
401            <param-value>0</param-value>
402        </init-param>
403        <init-param>
404            <param-name>detail</param-name>
405            <param-value>0</param-value>
406        </init-param>
407        <load-on-startup>1</load-on-startup>
408    </servlet>
409    <servlet>
410        <servlet-name>FriendlyURLPrivateGroupServlet</servlet-name>
411        <servlet-class>com.liferay.portal.servlet.FriendlyURLServlet</servlet-class>
412        <init-param>
413            <param-name>private</param-name>
414            <param-value>true</param-value>
415        </init-param>
416        <init-param>
417            <param-name>user</param-name>
418            <param-value>false</param-value>
419        </init-param>
420        <load-on-startup>2</load-on-startup>
421    </servlet>
422    <servlet>
423        <servlet-name>FriendlyURLPrivateUserServlet</servlet-name>
424        <servlet-class>com.liferay.portal.servlet.FriendlyURLServlet</servlet-class>
425        <init-param>
426            <param-name>private</param-name>
427            <param-value>true</param-value>
428        </init-param>
429        <init-param>
430            <param-name>user</param-name>
431            <param-value>true</param-value>
432        </init-param>
433        <load-on-startup>3</load-on-startup>
434    </servlet>
435    <servlet>
436        <servlet-name>FriendlyURLPublicServlet</servlet-name>
437        <servlet-class>com.liferay.portal.servlet.FriendlyURLServlet</servlet-class>
438        <init-param>
439            <param-name>private</param-name>
440            <param-value>false</param-value>
441        </init-param>
442        <load-on-startup>4</load-on-startup>
443    </servlet>
444    <servlet>
445        <servlet-name>ImageServlet</servlet-name>
446        <servlet-class>com.liferay.portal.servlet.ImageServlet</servlet-class>
447        <load-on-startup>5</load-on-startup>
448    </servlet>
449    <servlet>
450        <servlet-name>LanguageServlet</servlet-name>
451        <servlet-class>com.liferay.portal.servlet.LanguageServlet</servlet-class>
452        <load-on-startup>6</load-on-startup>
453    </servlet>
454    <servlet>
455        <servlet-name>LuceneServlet</servlet-name>
456        <servlet-class>com.liferay.portal.servlet.LuceneServlet</servlet-class>
457        <load-on-startup>7</load-on-startup>
458    </servlet>
459    <servlet>
460        <servlet-name>SitemapServlet</servlet-name>
461        <servlet-class>com.liferay.portal.servlet.SitemapServlet</servlet-class>
462        <load-on-startup>8</load-on-startup>
463    </servlet>
464    <servlet>
465        <servlet-name>PortalDelegatorServlet</servlet-name>
466        <servlet-class>com.liferay.portal.kernel.servlet.PortalDelegatorServlet</servlet-class>
467        <load-on-startup>9</load-on-startup>
468    </servlet>
469    <servlet>
470        <servlet-name>PortletBridgeServlet</servlet-name>
471        <servlet-class>org.portletbridge.portlet.PortletBridgeServlet</servlet-class>
472        <init-param>
473            <param-name>mementoSessionKey</param-name>
474            <param-value>mementoSessionKey</param-value>
475        </init-param>
476        <init-param>
477            <param-name>cssRegex</param-name>
478            <param-value>(?:url\((?:'|")?(.*?)(?:'|")?\))|(?:@import\s+[^url](?:'|")?(.*?)(?:'|")|;|\s+|$)</param-value>
479        </init-param>
480        <init-param>
481            <param-name>jsRegex</param-name>
482            <param-value>open\('([^']*)'|open\("([^\"]*)"</param-value>
483        </init-param>
484        <init-param>
485            <param-name>ignoreRequestHeaders</param-name>
486            <param-value>accept-encoding,connection,keep-alive</param-value>
487        </init-param>
488        <init-param>
489            <param-name>ignorePostToGetRequestHeaders</param-name>
490            <param-value>content-type,content-length</param-value>
491        </init-param>
492        <load-on-startup>10</load-on-startup>
493    </servlet>
494    <servlet>
495        <servlet-name>SoftwareCatalogServlet</servlet-name>
496        <servlet-class>com.liferay.portal.servlet.SoftwareCatalogServlet</servlet-class>
497        <load-on-startup>11</load-on-startup>
498    </servlet>
499    <servlet>
500        <servlet-name>DisplayChart</servlet-name>
501        <servlet-class>org.jfree.chart.servlet.DisplayChart</servlet-class>
502        <load-on-startup>12</load-on-startup>
503    </servlet>
504    <servlet-mapping>
505        <servlet-name>MainServlet</servlet-name>
506        <url-pattern>/c/*</url-pattern>
507    </servlet-mapping>
508    <servlet-mapping>
509        <servlet-name>FriendlyURLPrivateGroupServlet</servlet-name>
510        <url-pattern>/group/*</url-pattern>
511    </servlet-mapping>
512    <servlet-mapping>
513        <servlet-name>FriendlyURLPrivateUserServlet</servlet-name>
514        <url-pattern>/user/*</url-pattern>
515    </servlet-mapping>
516    <servlet-mapping>
517        <servlet-name>FriendlyURLPublicServlet</servlet-name>
518        <url-pattern>/web/*</url-pattern>
519    </servlet-mapping>
520    <servlet-mapping>
521        <servlet-name>ImageServlet</servlet-name>
522        <url-pattern>/image/*</url-pattern>
523    </servlet-mapping>
524    <servlet-mapping>
525        <servlet-name>LanguageServlet</servlet-name>
526        <url-pattern>/language/*</url-pattern>
527    </servlet-mapping>
528    <servlet-mapping>
529        <servlet-name>SitemapServlet</servlet-name>
530        <url-pattern>/sitemap.xml</url-pattern>
531    </servlet-mapping>
532    <servlet-mapping>
533        <servlet-name>PortalDelegatorServlet</servlet-name>
534        <url-pattern>/delegate/*</url-pattern>
535    </servlet-mapping>
536    <servlet-mapping>
537        <servlet-name>PortletBridgeServlet</servlet-name>
538        <url-pattern>/pbhs/*</url-pattern>
539    </servlet-mapping>
540    <servlet-mapping>
541        <servlet-name>SoftwareCatalogServlet</servlet-name>
542        <url-pattern>/software_catalog/*</url-pattern>
543    </servlet-mapping>
544    <servlet-mapping>
545        <servlet-name>DisplayChart</servlet-name>
546        <url-pattern>/display_chart/*</url-pattern>
547    </servlet-mapping>
548    <session-config>
549        <session-timeout>30</session-timeout>
550    </session-config>
551    <welcome-file-list>
552        <welcome-file>index.html</welcome-file>
553        <welcome-file>index.jsp</welcome-file>
554    </welcome-file-list>
555    <error-page>
556        <error-code>404</error-code>
557        <location>/errors/404.jsp</location>
558    </error-page>
559    <jsp-config>
560        <taglib>
561            <taglib-uri>http://displaytag.sf.net</taglib-uri>
562            <taglib-location>/WEB-INF/tld/displaytag.tld</taglib-location>
563        </taglib>
564        <taglib>
565            <taglib-uri>http://easyconf.sourceforge.net/tags-easyconf</taglib-uri>
566            <taglib-location>/WEB-INF/tld/easyconf.tld</taglib-location>
567        </taglib>
568        <taglib>
569            <taglib-uri>http://java.sun.com/jstl/core_rt</taglib-uri>
570            <taglib-location>/WEB-INF/tld/c-rt.tld</taglib-location>
571        </taglib>
572        <taglib>
573            <taglib-uri>http://java.sun.com/jstl/fmt_rt</taglib-uri>
574            <taglib-location>/WEB-INF/tld/fmt-rt.tld</taglib-location>
575        </taglib>
576        <taglib>
577            <taglib-uri>http://java.sun.com/jstl/sql_rt</taglib-uri>
578            <taglib-location>/WEB-INF/tld/sql-rt.tld</taglib-location>
579        </taglib>
580        <taglib>
581            <taglib-uri>http://java.sun.com/jstl/xml_rt</taglib-uri>
582            <taglib-location>/WEB-INF/tld/x-rt.tld</taglib-location>
583        </taglib>
584        <taglib>
585            <taglib-uri>http://java.sun.com/portlet</taglib-uri>
586            <taglib-location>/WEB-INF/tld/liferay-portlet.tld</taglib-location>
587        </taglib>
588        <taglib>
589            <taglib-uri>http://liferay.com/tld/portlet</taglib-uri>
590            <taglib-location>/WEB-INF/tld/liferay-portlet-ext.tld</taglib-location>
591        </taglib>
592        <taglib>
593            <taglib-uri>http://liferay.com/tld/security</taglib-uri>
594            <taglib-location>/WEB-INF/tld/liferay-security.tld</taglib-location>
595        </taglib>
596        <taglib>
597            <taglib-uri>http://liferay.com/tld/theme</taglib-uri>
598            <taglib-location>/WEB-INF/tld/liferay-theme.tld</taglib-location>
599        </taglib>
600        <taglib>
601            <taglib-uri>http://liferay.com/tld/ui</taglib-uri>
602            <taglib-location>/WEB-INF/tld/liferay-ui.tld</taglib-location>
603        </taglib>
604        <taglib>
605            <taglib-uri>http://liferay.com/tld/util</taglib-uri>
606            <taglib-location>/WEB-INF/tld/liferay-util.tld</taglib-location>
607        </taglib>
608        <taglib>
609            <taglib-uri>http://struts.apache.org/tags-bean</taglib-uri>
610            <taglib-location>/WEB-INF/tld/struts-bean.tld</taglib-location>
611        </taglib>
612        <taglib>
613            <taglib-uri>http://struts.apache.org/tags-bean-el</taglib-uri>
614            <taglib-location>/WEB-INF/tld/struts-bean-el.tld</taglib-location>
615        </taglib>
616        <taglib>
617            <taglib-uri>http://struts.apache.org/tags-html</taglib-uri>
618            <taglib-location>/WEB-INF/tld/struts-html.tld</taglib-location>
619        </taglib>
620        <taglib>
621            <taglib-uri>http://struts.apache.org/tags-html-el</taglib-uri>
622            <taglib-location>/WEB-INF/tld/struts-html-el.tld</taglib-location>
623        </taglib>
624        <taglib>
625            <taglib-uri>http://struts.apache.org/tags-logic</taglib-uri>
626            <taglib-location>/WEB-INF/tld/struts-logic.tld</taglib-location>
627        </taglib>
628        <taglib>
629            <taglib-uri>http://struts.apache.org/tags-logic-el</taglib-uri>
630            <taglib-location>/WEB-INF/tld/struts-logic-el.tld</taglib-location>
631        </taglib>
632        <taglib>
633            <taglib-uri>http://struts.apache.org/tags-nested</taglib-uri>
634            <taglib-location>/WEB-INF/tld/struts-nested.tld</taglib-location>
635        </taglib>
636        <taglib>
637            <taglib-uri>http://struts.apache.org/tags-tiles</taglib-uri>
638            <taglib-location>/WEB-INF/tld/struts-tiles.tld</taglib-location>
639        </taglib>
640        <taglib>
641            <taglib-uri>http://struts.apache.org/tags-tiles-el</taglib-uri>
642            <taglib-location>/WEB-INF/tld/struts-tiles-el.tld</taglib-location>
643        </taglib>
644    </jsp-config>
645    <resource-ref>
646        <res-ref-name>jdbc/LiferayPool</res-ref-name>
647        <res-type>javax.sql.DataSource</res-type>
648        <res-auth>Container</res-auth>
649        <res-sharing-scope>Shareable</res-sharing-scope>
650    </resource-ref>
651    <resource-ref>
652        <res-ref-name>mail/MailSession</res-ref-name>
653        <res-type>javax.mail.Session</res-type>
654        <res-auth>Container</res-auth>
655    </resource-ref>
656    <security-constraint>
657        <web-resource-collection>
658            <web-resource-name>/c/portal/protected</web-resource-name>
659            <url-pattern>/c/portal/protected</url-pattern>
660            <http-method>GET</http-method>
661            <http-method>POST</http-method>
662        </web-resource-collection>
663        <auth-constraint>
664            <role-name>users</role-name>
665        </auth-constraint>
666        <user-data-constraint>
667            <transport-guarantee>NONE</transport-guarantee>
668        </user-data-constraint>
669    </security-constraint>
670    <login-config>
671        <auth-method>FORM</auth-method>
672        <realm-name>PortalRealm</realm-name>
673        <form-login-config>
674            <form-login-page>/c/portal/j_login</form-login-page>
675            <form-error-page>/c/portal/j_login_error</form-error-page>
676        </form-login-config>
677    </login-config>
678    <security-role>
679        <role-name>users</role-name>
680    </security-role>
681</web-app>


_________________________________________________________________________________________________
_________________________________________________________________________________________________

7. I have created a system-ext.properties file in <TOMCAT>webapps\ROOT\WEB_INF\classes directory with the following parameters:
1com.liferay.filters.sso.cas.CASFilter=true



_________________________________________________________________________________________________
_________________________________________________________________________________________________

Then I started the tomcat with ./startup.sh command
I have spent several days trying to figure out what is wrong in my configuration and it is still not working (Internet Explorer cannot display the webpage).
I am tryning to acces the portal directly onto the server, with all those adresses:

https://10.100.106.11:8443/cas-web/login
https://localhost:8443/cas-web/login

The portal has been set up on a VMWare, and I am tryning to reach it via IE 7. I have registered the web adress of the portal as a trusted web page, checked the SSL protocol in internet options (it is activated)...

What else should I check ?

Any help would be really appreciated....

Thanks
Thibault Schalck
RE: Tomcat + CAS not starting
July 21, 2008 10:32 AM
Answer

Thibault Schalck

Rank: Junior Member

Posts: 25

Join Date: July 8, 2008

Recent Posts

It seems that port 8443 is never listened: I saw that in netstat !!
Do I need open SSL ??

If I try this adress: http://10.100.106.11:8080/cas-web/login
I get the following error:

 1HTTP Status 500 -
 2
 3--------------------------------------------------------------------------------
 4
 5type Exception report
 6
 7message
 8
 9description The server encountered an internal error () that prevented it from fulfilling this request.
10
11exception
12
13javax.servlet.ServletException: Could not get RequestDispatcher for [/WEB-INF/view/jsp/default/ui/casLoginView.jsp]: check that this file exists within your WAR
14    org.springframework.web.servlet.view.InternalResourceView.renderMergedOutputModel(InternalResourceView.java:221)
15    org.springframework.web.servlet.view.AbstractView.render(AbstractView.java:252)
16    org.springframework.web.servlet.DispatcherServlet.render(DispatcherServlet.java:1173)
17    org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:901)
18    org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:809)
19    org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:571)
20    org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:501)
21    javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
22    javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
23    org.jasig.cas.web.init.SafeDispatcherServlet.service(SafeDispatcherServlet.java:115)
24    org.inspektr.common.web.ClientInfoThreadLocalFilter.doFilterInternal(ClientInfoThreadLocalFilter.java:48)
25    org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)
26
27
28note The full stack trace of the root cause is available in the Apache Tomcat/6.0.16 logs.
29
30
31--------------------------------------------------------------------------------
32
33Apache Tomcat/6.0.16
Thibault Schalck
RE: Tomcat + CAS not starting
July 21, 2008 4:10 PM
Answer

Thibault Schalck

Rank: Junior Member

Posts: 25

Join Date: July 8, 2008

Recent Posts

Here is acopy of ;y last catalina.out starting report:

Jul 21, 2008 10:59:47 PM org.apache.tomcat.util.digester.Digester endElement
WARNING: No rules found matching 'Server/Service/Connector/Factory'.
Jul 21, 2008 10:59:48 PM org.apache.catalina.core.AprLifecycleListener init
INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: /usr/lib/jvm/java-6-sun/jre/lib/i386/client:/usr/lib/jvm/java-6-sun/jre/lib/i386:/usr/lib/jvm/java-6-sun/jre/../lib/i386:/usr/java/packages/lib/i386:/lib:/usr/lib
Jul 21, 2008 10:59:48 PM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on http-8443
Jul 21, 2008 10:59:48 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 779 ms
Jul 21, 2008 10:59:48 PM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Jul 21, 2008 10:59:48 PM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/6.0.16
Jul 21, 2008 10:59:49 PM org.apache.catalina.core.StandardContext addApplicationListener
INFO: The listener "com.liferay.portal.servlet.PortalSessionListener" is already configured for this context. The duplicate definition has been ignored.
Jul 21, 2008 10:59:49 PM org.apache.catalina.core.StandardContext addApplicationListener
INFO: The listener "com.liferay.portal.kernel.servlet.PortletSessionListenerManager" is already configured for this context. The duplicate definition has been ignored.
Jul 21, 2008 10:59:49 PM org.apache.catalina.core.StandardContext addApplicationListener
INFO: The listener "com.liferay.portal.kernel.servlet.SerializableSessionAttributeListener" is already configured for this context. The duplicate definition has been ignored.
Jul 21, 2008 10:59:49 PM org.apache.catalina.core.StandardContext addApplicationListener
INFO: The listener "com.liferay.portal.servlet.SharedSessionAttributeListener" is already configured for this context. The duplicate definition has been ignored.
Loading jar:file:/opt/liferay/liferay/webapps/ROOT/WEB-INF/lib/portal-impl.jar!/system.properties
Loading file:/opt/liferay/liferay/webapps/ROOT/WEB-INF/classes/system-ext.properties
Loading jar:file:/opt/liferay/liferay/webapps/ROOT/WEB-INF/lib/portal-impl.jar!/portal.properties
Loading file:/opt/liferay/liferay/webapps/ROOT/WEB-INF/classes/portal-ext.properties
Starting Liferay Enterprise Portal 5.0.1 (Luther / Build 5001 / April 14, 2008)
22:59:59,771 INFO [DynamicDialect:80] Determining dialect for HSQL Database Engine 1
22:59:59,775 WARN [DynamicDialect:86] Liferay is configured to use Hypersonic as its database. Do NOT use Hypersonic in production. Hypersonic is an embedded database useful for development and demo'ing purposes.
22:59:59,793 INFO [DynamicDialect:106] Using dialect org.hibernate.dialect.HSQLDialect
23:00:01,985 INFO [PortalImpl:184] Portal lib url /opt/liferay/liferay/webapps/ROOT/WEB-INF/lib/portal-impl.jar!/com/liferay/portal/util/PortalImpl.class
23:00:01,986 INFO [PortalImpl:209] Portal lib directory /opt/liferay/liferay/webapps/ROOT/WEB-INF/lib/
23:00:15,670 INFO [HotDeployUtil:76] Initializing hot deploy manager 31310826
23:00:15,675 INFO [ServerDetector:76] Detected server tomcat
23:00:15,840 INFO [AutoDeployDir:76] Auto deploy scanner started for /root/liferay/deploy
23:00:15,935 INFO [CustomSQLUtil:110] Database name HSQL Database Engine
Loading jar:file:/opt/liferay/liferay/webapps/ROOT/WEB-INF/lib/portal-impl.jar!/portal.properties for {companyId=1, webId=liferay.com}
Loading file:/opt/liferay/liferay/webapps/ROOT/WEB-INF/classes/portal-ext.properties for {companyId=1, webId=liferay.com}
Jul 21, 2008 11:00:16 PM org.apache.catalina.startup.HostConfig deployWAR
INFO: Deploying web application archive cas-web.war
Jul 21, 2008 11:00:16 PM org.apache.catalina.core.StandardContext addApplicationListener
INFO: The listener "org.springframework.web.util.Log4jConfigListener" is already configured for this context. The duplicate definition has been ignored.
Jul 21, 2008 11:00:16 PM org.apache.catalina.core.StandardContext addApplicationListener
INFO: The listener "org.jasig.cas.web.init.SafeContextLoaderListener" is already configured for this context. The duplicate definition has been ignored.
Jul 21, 2008 11:00:16 PM org.apache.catalina.core.ApplicationContext log
INFO: Initializing log4j from [classpath:log4j.properties]
Jul 21, 2008 11:00:16 PM org.apache.catalina.core.ApplicationContext log
INFO: Initializing Spring root WebApplicationContext
2008-07-21 23:00:19,431 WARN [org.jasig.cas.authentication.handler.support.SimpleTestUsernamePasswordAuthenticationHandler] - <org.jasig.cas.authentication.handler.support.SimpleTestUsernamePasswordAuthenticationHandler is only to be used in a testing environment. NEVER enable this in a production environment.>
Jul 21, 2008 11:00:19 PM org.apache.catalina.core.ApplicationContext log
INFO: Initializing Spring FrameworkServlet 'cas'
2008-07-21 23:00:20,280 INFO [org.jasig.cas.web.flow.AuthenticationViaFormAction] - <FormObjectClass not set. Using default class of org.jasig.cas.authentication.principal.UsernamePasswordCredentials with formObjectName credentials and validator org.jasig.cas.validation.UsernamePasswordCredentialsValidator.>
Jul 21, 2008 11:00:20 PM org.apache.catalina.core.StandardContext addApplicationListener
INFO: The listener "com.liferay.portal.kernel.servlet.ThemeContextListener" is already configured for this context. The duplicate definition has been ignored.
23:00:20,751 INFO [ThemeHotDeployListener:77] Registering themes for liferay-jedi-theme
23:00:20,772 INFO [ThemeHotDeployListener:89] Themes for liferay-jedi-theme registered successfully
Jul 21, 2008 11:00:20 PM org.apache.catalina.core.StandardContext addApplicationListener
INFO: The listener "com.liferay.portal.kernel.servlet.SpringServletContextListener" is already configured for this context. The duplicate definition has been ignored.
Jul 21, 2008 11:00:20 PM org.apache.catalina.core.StandardContext addApplicationListener
INFO: The listener "com.liferay.portal.kernel.servlet.TunnelContextListener" is already configured for this context. The duplicate definition has been ignored.
Jul 21, 2008 11:00:20 PM org.apache.catalina.core.ApplicationContext log
INFO: Initializing Spring root WebApplicationContext
Jul 21, 2008 11:00:23 PM org.apache.catalina.core.ApplicationContext log
INFO: Initializing Spring FrameworkServlet 'SpringServlet'
Jul 21, 2008 11:00:24 PM org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on http-8443
Jul 21, 2008 11:00:24 PM org.apache.jk.common.ChannelSocket init
INFO: JK: ajp13 listening on /0.0.0.0:8009
Jul 21, 2008 11:00:24 PM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/28 config=null
Jul 21, 2008 11:00:24 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 36214 ms
2008-07-21 23:00:39,211 INFO [org.jasig.cas.ticket.registry.support.DefaultTicketRegistryCleaner] - <Starting cleaning of expired tickets from ticket registry at [Mon Jul 21 23:00:39 GMT 2008]>
2008-07-21 23:00:39,211 INFO [org.jasig.cas.ticket.registry.support.DefaultTicketRegistryCleaner] - <0 found to be removed. Removing now.>
2008-07-21 23:00:39,212 INFO [org.jasig.cas.ticket.registry.support.DefaultTicketRegistryCleaner] - <Finished cleaning of expired tickets from ticket registry at [Mon Jul 21 23:00:39 GMT 2008]>


And I still cannot view the login page of CAS !!! Has any one faced the same problem ?
Thibault Schalck
RE: Tomcat + CAS not starting
July 23, 2008 4:26 PM
Answer

Thibault Schalck

Rank: Junior Member

Posts: 25

Join Date: July 8, 2008

Recent Posts

Okay then,

I believe no body has ever installed Liferay on an Ubuntu instance...
Yang Yu
RE: Tomcat + CAS not starting
July 29, 2008 1:15 AM
Answer

Yang Yu

Rank: Junior Member

Posts: 55

Join Date: March 25, 2008

Recent Posts

Today I have installed Liferay + CAS on my Windows. There is no error, but I cann't see the login page(I don't know the reason).

I think you should follow the instruction on page Integrating Liferay With CAS Server

I think you should do these work below.

Then enter the command:

keytool -export -alias tomcat -keypass changeit -file %FILE_NAME%

I use server.cert for %FILE_NAME%. This command exports the cert you generated from your personal keystore (In windows your personal keystore is in C:\Documents and Settings\<username>\.keystore)

Finally import the cert into Java's keystore with this command. Tomcat uses the keystore in your JRE (%JAVA_HOME%/jre/lib/security/cacerts)

keytool -import -alias tomcat -file %FILE_NAME% -keypass changeit -keystore %JAVA_HOME%/jre/lib/security/cacerts