Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Vasileios Gkamas
Separate tomcat and liferay installation
December 9, 2011 2:00 PM
Answer

Vasileios Gkamas

Rank: New Member

Posts: 12

Join Date: November 24, 2011

Recent Posts

Dear all,

I have a Red Hat linux machine and I want to install separately a tomcat server and the liferay portal. I have already successfully installed tomcat 6.0.35 (apache-tomcat-6.0.35.tar.gz). Now I want to make a pure installation of Liferay 6.0.5 (not bundled version). My questions are two:

- Which files I must use from the following site http://sourceforge.net/projects/lportal/files/Liferay%20Portal/6.0.5/ for the installation (may be liferay-portal-6.0.5.war ?)
- Where I can find a guide on how to install liferay 6 at a linux machine (what I found refers to installation of bundled version or to installation at Windows environment).

Best Regards,

Vasilis
Ravi Kumar Gupta
RE: Separate tomcat and liferay installation
December 9, 2011 7:08 PM
Answer

Ravi Kumar Gupta

Rank: Liferay Legend

Posts: 1216

Join Date: June 23, 2009

Recent Posts

This should help you.. And installation of liferay on linux or windows is no different..
http://www.liferay.com/documentation/liferay-portal/6.0/administration/-/ai/installing-liferay-for-an-enterpri-4
Vasileios Gkamas
RE: Separate tomcat and liferay installation
December 10, 2011 3:06 AM
Answer

Vasileios Gkamas

Rank: New Member

Posts: 12

Join Date: November 24, 2011

Recent Posts

Dear Ravi,

Thank you for the link provided. Although some installation steps of "Tomcat 6.0.x" section are not clear to me. More exactly:

1) Edit $TOMCAT_HOME/conf/catalina.properties:

1
2common.loader=
3        ${catalina.home}/classes,\
4        ...\
5        ${catalina.home}/lib/ext/*.jar


Its note clear to me what exactly I must change. How the catalina.properties file should be:

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


or

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


2. Make sure the JDBC driver for your database is accessible by Tomcat. How I can check this? More about configuration of ROOT.xml for JDBC connection I must first create the lportal database?

3. I am not sure if the contents of ROOT.xml file I created are correct

 1
 2<Context path="">
 3       <Resource
 4                name="jdbc/LiferayPool"
 5                auth="Container"
 6                type="javax.sql.DataSource"
 7                driverClassName="com.mysql.jdbc.Driver"
 8                url="jdbc:mysql://localhost/lportal?useUnicode=true&characterEncoding=UTF-8"
 9                username="root"
10                password="XXXX"
11                maxActive="100"
12                maxIdle="30"
13                maxWait="10000"
14        />
15        <Resource
16                name="mail/MailSession"
17                auth="Container"
18                type="javax.mail.Session"
19                mail.transport.protocol="smtp"
20                mail.smtp.host="localhost"
21                mail.store.protocol="imap"
22                mail.imap.host="localhost"
23        />
24        <Realm
25                className="org.apache.catalina.realm.JAASRealm"
26                appName="PortalRealm"
27                userClassNames="com.liferay.portal.security.jaas.PortalPrincipal"
28                roleClassNames="com.liferay.portal.security.jaas.PortalRole"
29                debug="99"
30                useContextClassLoader="false"
31        />
32</Context>


4. Edit $TOMCAT_HOME/bin/catalina.bat (on Windows) or $TOMCAT_HOME/bin/catalina.sh (on Linux / Mac / Unix) so that Tomcat can reference the login module.

I just added the following line at catalina.sh file, is this correct?

1
2set JAVA_OPTS=-Xms128m -Xmx512m -Dfile.encoding=UTF8 -Duser.timezone=GMT -Djava.security.auth.login.config=%CATALINA_HOME%/conf/jaas.config


As, I expected the tomcat is not running. Below is the catalina log file which includes a lot of errors

  1
  2Dec 10, 2011 9:43:18 AM org.apache.catalina.core.AprLifecycleListener init
  3INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: /usr/java/jdk1.6.0_20/jre/lib/amd64/server:/usr/java/jdk1.6.0_20/jre/lib/amd64:/usr/java/jdk1.6.0_20/jre/../lib/amd64:/opt/d-cache/dcap/lib:/opt/d-cache/dcap/lib64:/opt/glite/lib:/opt/glite/lib64:/opt/globus/lib:/opt/lcg/lib:/opt/lcg/lib64:/opt/classads/lib64/:/usr/java/packages/lib/amd64:/usr/lib64:/lib64:/lib:/usr/lib
  4Dec 10, 2011 9:43:19 AM org.apache.coyote.http11.Http11Protocol init
  5SEVERE: Error initializing endpoint
  6java.net.BindException: Address already in use <null>:8080
  7        at org.apache.tomcat.util.net.JIoEndpoint.init(JIoEndpoint.java:549)
  8        at org.apache.coyote.http11.Http11Protocol.init(Http11Protocol.java:176)
  9        at org.apache.catalina.connector.Connector.initialize(Connector.java:1022)
 10        at org.apache.catalina.core.StandardService.initialize(StandardService.java:703)
 11        at org.apache.catalina.core.StandardServer.initialize(StandardServer.java:838)
 12        at org.apache.catalina.startup.Catalina.load(Catalina.java:538)
 13        at org.apache.catalina.startup.Catalina.load(Catalina.java:562)
 14        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 15        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
 16        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 17        at java.lang.reflect.Method.invoke(Method.java:597)
 18        at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:261)
 19        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
 20Caused by: java.net.BindException: Address already in use
 21        at java.net.PlainSocketImpl.socketBind(Native Method)
 22        at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:365)
 23        at java.net.ServerSocket.bind(ServerSocket.java:319)
 24        at java.net.ServerSocket.<init>(ServerSocket.java:185)
 25        at java.net.ServerSocket.<init>(ServerSocket.java:141)
 26        at org.apache.tomcat.util.net.DefaultServerSocketFactory.createSocket(DefaultServerSocketFactory.java:50)
 27        at org.apache.tomcat.util.net.JIoEndpoint.init(JIoEndpoint.java:538)
 28        ... 12 more
 29Dec 10, 2011 9:43:19 AM org.apache.catalina.core.StandardService initialize
 30SEVERE: Failed to initialize connector [Connector[HTTP/1.1-8080]]
 31LifecycleException:  Protocol handler initialization failed: java.net.BindException: Address already in use <null>:8080
 32        at org.apache.catalina.connector.Connector.initialize(Connector.java:1024)
 33        at org.apache.catalina.core.StandardService.initialize(StandardService.java:703)
 34        at org.apache.catalina.core.StandardServer.initialize(StandardServer.java:838)
 35        at org.apache.catalina.startup.Catalina.load(Catalina.java:538)
 36        at org.apache.catalina.startup.Catalina.load(Catalina.java:562)
 37        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 38        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
 39        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 40        at java.lang.reflect.Method.invoke(Method.java:597)
 41        at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:261)
 42        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
 43Dec 10, 2011 9:43:19 AM org.apache.catalina.startup.Catalina load
 44INFO: Initialization processed in 1749 ms
 45Dec 10, 2011 9:43:19 AM org.apache.catalina.core.StandardService start
 46INFO: Starting service Catalina
 47Dec 10, 2011 9:43:19 AM org.apache.catalina.core.StandardEngine start
 48INFO: Starting Servlet Engine: Apache Tomcat/6.0.32
 49Dec 10, 2011 9:43:19 AM org.apache.catalina.startup.HostConfig deployDirectory
 50INFO: Deploying web application directory ROOT
 51Dec 10, 2011 9:43:20 AM org.apache.catalina.startup.HostConfig deployDirectory
 52INFO: Deploying web application directory host-manager
 53Dec 10, 2011 9:43:20 AM org.apache.catalina.startup.HostConfig deployDirectory
 54INFO: Deploying web application directory docs
 55Dec 10, 2011 9:43:20 AM org.apache.catalina.startup.HostConfig deployDirectory
 56INFO: Deploying web application directory examples
 57Dec 10, 2011 9:43:21 AM org.apache.catalina.startup.HostConfig deployDirectory
 58INFO: Deploying web application directory manager
 59Dec 10, 2011 9:43:21 AM org.apache.coyote.http11.Http11Protocol start
 60SEVERE: Error starting endpoint
 61java.net.BindException: Address already in use <null>:8080
 62        at org.apache.tomcat.util.net.JIoEndpoint.init(JIoEndpoint.java:549)
 63        at org.apache.tomcat.util.net.JIoEndpoint.start(JIoEndpoint.java:565)
 64        at org.apache.coyote.http11.Http11Protocol.start(Http11Protocol.java:203)
 65        at org.apache.catalina.connector.Connector.start(Connector.java:1095)
 66        at org.apache.catalina.core.StandardService.start(StandardService.java:540)
 67        at org.apache.catalina.core.StandardServer.start(StandardServer.java:754)
 68        at org.apache.catalina.startup.Catalina.start(Catalina.java:595)
 69        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 70        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
 71        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 72        at java.lang.reflect.Method.invoke(Method.java:597)
 73        at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
 74        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
 75Caused by: java.net.BindException: Address already in use
 76        at java.net.PlainSocketImpl.socketBind(Native Method)
 77        at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:365)
 78        at java.net.ServerSocket.bind(ServerSocket.java:319)
 79        at java.net.ServerSocket.<init>(ServerSocket.java:185)
 80        at java.net.ServerSocket.<init>(ServerSocket.java:141)
 81        at org.apache.tomcat.util.net.DefaultServerSocketFactory.createSocket(DefaultServerSocketFactory.java:50)
 82        at org.apache.tomcat.util.net.JIoEndpoint.init(JIoEndpoint.java:538)
 83        ... 12 more
 84Dec 10, 2011 9:43:21 AM org.apache.catalina.core.StandardService start
 85SEVERE: Failed to start connector [Connector[HTTP/1.1-8080]]
 86LifecycleException:  service.getName(): "Catalina";  Protocol handler start failed: java.net.BindException: Address already in use <null>:8080
 87        at org.apache.catalina.connector.Connector.start(Connector.java:1102)
 88        at org.apache.catalina.core.StandardService.start(StandardService.java:540)
 89        at org.apache.catalina.core.StandardServer.start(StandardServer.java:754)
 90        at org.apache.catalina.startup.Catalina.start(Catalina.java:595)
 91        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 92        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
 93        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 94        at java.lang.reflect.Method.invoke(Method.java:597)
 95        at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
 96        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
 97Dec 10, 2011 9:43:21 AM org.apache.jk.common.ChannelSocket init
 98INFO: Port busy 8009 java.net.BindException: Address already in use
 99Dec 10, 2011 9:43:21 AM org.apache.jk.common.ChannelSocket init
100SEVERE: Can't find free port 8009 8009
101Dec 10, 2011 9:43:21 AM org.apache.jk.server.JkMain start
102INFO: Jk running ID=0 time=0/18  config=null
103Dec 10, 2011 9:43:21 AM org.apache.catalina.startup.Catalina start
104INFO: Server startup in 2059 ms
105Dec 10, 2011 9:43:21 AM org.apache.catalina.core.StandardServer await
106SEVERE: StandardServer.await: create[8005]:
107java.net.BindException: Address already in use
108        at java.net.PlainSocketImpl.socketBind(Native Method)
109        at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:365)
110        at java.net.ServerSocket.bind(ServerSocket.java:319)
111        at java.net.ServerSocket.<init>(ServerSocket.java:185)
112        at org.apache.catalina.core.StandardServer.await(StandardServer.java:406)
113        at org.apache.catalina.startup.Catalina.await(Catalina.java:676)
114        at org.apache.catalina.startup.Catalina.start(Catalina.java:628)
115        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
116        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
117        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
118        at java.lang.reflect.Method.invoke(Method.java:597)
119        at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
120        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
121Dec 10, 2011 9:43:21 AM org.apache.coyote.http11.Http11Protocol pause
122INFO: Pausing Coyote HTTP/1.1 on http-8080
123Dec 10, 2011 9:43:22 AM org.apache.catalina.core.StandardService stop
124INFO: Stopping service Catalina
125Dec 10, 2011 9:43:22 AM org.apache.coyote.http11.Http11Protocol destroy
126INFO: Stopping Coyote HTTP/1.1 on http-8080
127Dec 10, 2011 10:49:27 AM org.apache.tomcat.util.digester.Digester endElement
128WARNING:   No rules found matching 'Connector'.
129Dec 10, 2011 10:49:27 AM org.apache.tomcat.util.digester.Digester fatalError
130SEVERE: Parse Fatal Error at line 31 column 2: The markup in the document following the root element must be well-formed.
131org.xml.sax.SAXParseException: The markup in the document following the root element must be well-formed.
132        at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:195)
133        at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.fatalError(ErrorHandlerWrapper.java:174)
134        at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:388)
135        at com.sun.org.apache.xerces.internal.impl.XMLScanner.reportFatalError(XMLScanner.java:1414)
136        at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$TrailingMiscDriver.next(XMLDocumentScannerImpl.java:1423)
137        at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:648)
138        at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:511)
139        at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:808)
140        at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:737)
141        at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:119)
142        at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1205)
143        at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:522)
144        at org.apache.tomcat.util.digester.Digester.parse(Digester.java:1642)
145        at org.apache.catalina.startup.Catalina.load(Catalina.java:524)
146        at org.apache.catalina.startup.Catalina.load(Catalina.java:562)
147        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
148        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
149        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
150        at java.lang.reflect.Method.invoke(Method.java:597)
151        at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:261)
152        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
153Dec 10, 2011 10:49:27 AM org.apache.catalina.startup.Catalina load
154WARNING: Catalina.start using conf/server.xml:
155org.xml.sax.SAXParseException: The markup in the document following the root element must be well-formed.
156        at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1231)
157        at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:522)
158        at org.apache.tomcat.util.digester.Digester.parse(Digester.java:1642)
159        at org.apache.catalina.startup.Catalina.load(Catalina.java:524)
160        at org.apache.catalina.startup.Catalina.load(Catalina.java:562)
161        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
162        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
163        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
164        at java.lang.reflect.Method.invoke(Method.java:597)
165        at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:261)
166        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
167Dec 10, 2011 10:49:27 AM org.apache.tomcat.util.digester.Digester endElement
168WARNING:   No rules found matching 'Connector'.
169Dec 10, 2011 10:49:27 AM org.apache.tomcat.util.digester.Digester fatalError
170SEVERE: Parse Fatal Error at line 31 column 2: The markup in the document following the root element must be well-formed.
171org.xml.sax.SAXParseException: The markup in the document following the root element must be well-formed.
172        at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:195)
173        at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.fatalError(ErrorHandlerWrapper.java:174)
174        at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:388)
175        at com.sun.org.apache.xerces.internal.impl.XMLScanner.reportFatalError(XMLScanner.java:1414)
176        at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$TrailingMiscDriver.next(XMLDocumentScannerImpl.java:1423)
177        at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:648)
178        at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:511)
179        at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:808)
180        at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:737)
181        at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:119)
182        at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1205)
183        at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:522)
184        at org.apache.tomcat.util.digester.Digester.parse(Digester.java:1642)
185        at org.apache.catalina.startup.Catalina.load(Catalina.java:524)
186        at org.apache.catalina.startup.Catalina.start(Catalina.java:582)
187        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
188        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
189        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
190        at java.lang.reflect.Method.invoke(Method.java:597)
191        at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
192        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
193Dec 10, 2011 10:49:27 AM org.apache.catalina.startup.Catalina load
194WARNING: Catalina.start using conf/server.xml:
195org.xml.sax.SAXParseException: The markup in the document following the root element must be well-formed.
196        at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1231)
197        at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:522)
198        at org.apache.tomcat.util.digester.Digester.parse(Digester.java:1642)
199        at org.apache.catalina.startup.Catalina.load(Catalina.java:524)
200        at org.apache.catalina.startup.Catalina.start(Catalina.java:582)
201        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
202        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
203        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
204        at java.lang.reflect.Method.invoke(Method.java:597)
205        at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
206        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
207Dec 10, 2011 10:49:27 AM org.apache.catalina.startup.Catalina start
208SEVERE: Cannot start server. Server instance is not configured.
209Dec 10, 2011 10:49:41 AM org.apache.tomcat.util.digester.Digester endElement
210WARNING:   No rules found matching 'Connector'.
211Dec 10, 2011 10:49:41 AM org.apache.tomcat.util.digester.Digester fatalError
212SEVERE: Parse Fatal Error at line 31 column 2: The markup in the document following the root element must be well-formed.
213org.xml.sax.SAXParseException: The markup in the document following the root element must be well-formed.
214        at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:195)
215        at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.fatalError(ErrorHandlerWrapper.java:174)
216        at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:388)
217        at com.sun.org.apache.xerces.internal.impl.XMLScanner.reportFatalError(XMLScanner.java:1414)
218        at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$TrailingMiscDriver.next(XMLDocumentScannerImpl.java:1423)
219        at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:648)
220        at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:511)
221        at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:808)
222        at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:737)
223        at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:119)
224        at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1205)
225        at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:522)
226        at org.apache.tomcat.util.digester.Digester.parse(Digester.java:1642)
227        at org.apache.catalina.startup.Catalina.load(Catalina.java:524)
228        at org.apache.catalina.startup.Catalina.load(Catalina.java:562)
229        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
230        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
231        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
232        at java.lang.reflect.Method.invoke(Method.java:597)
233        at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:261)
234        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
235Dec 10, 2011 10:49:41 AM org.apache.catalina.startup.Catalina load
236WARNING: Catalina.start using conf/server.xml:
237org.xml.sax.SAXParseException: The markup in the document following the root element must be well-formed.
238        at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1231)
239        at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:522)
240        at org.apache.tomcat.util.digester.Digester.parse(Digester.java:1642)
241        at org.apache.catalina.startup.Catalina.load(Catalina.java:524)
242        at org.apache.catalina.startup.Catalina.load(Catalina.java:562)
243        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
244        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
245        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
246        at java.lang.reflect.Method.invoke(Method.java:597)
247        at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:261)
248        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
249Dec 10, 2011 10:49:41 AM org.apache.tomcat.util.digester.Digester endElement
250WARNING:   No rules found matching 'Connector'.
251Dec 10, 2011 10:49:41 AM org.apache.tomcat.util.digester.Digester fatalError
252SEVERE: Parse Fatal Error at line 31 column 2: The markup in the document following the root element must be well-formed.
253org.xml.sax.SAXParseException: The markup in the document following the root element must be well-formed.
254        at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:195)
255        at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.fatalError(ErrorHandlerWrapper.java:174)
256        at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:388)
257        at com.sun.org.apache.xerces.internal.impl.XMLScanner.reportFatalError(XMLScanner.java:1414)
258        at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$TrailingMiscDriver.next(XMLDocumentScannerImpl.java:1423)
259        at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:648)
260        at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:511)
261        at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:808)
262        at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:737)
263        at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:119)
264        at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1205)
265        at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:522)
266        at org.apache.tomcat.util.digester.Digester.parse(Digester.java:1642)
267        at org.apache.catalina.startup.Catalina.load(Catalina.java:524)
268        at org.apache.catalina.startup.Catalina.start(Catalina.java:582)
269        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
270        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
271        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
272        at java.lang.reflect.Method.invoke(Method.java:597)
273        at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
274        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
275Dec 10, 2011 10:49:41 AM org.apache.catalina.startup.Catalina load
276WARNING: Catalina.start using conf/server.xml:
277org.xml.sax.SAXParseException: The markup in the document following the root element must be well-formed.
278        at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1231)
279        at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:522)
280        at org.apache.tomcat.util.digester.Digester.parse(Digester.java:1642)
281        at org.apache.catalina.startup.Catalina.load(Catalina.java:524)
282        at org.apache.catalina.startup.Catalina.start(Catalina.java:582)
283        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
284        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
285        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
286        at java.lang.reflect.Method.invoke(Method.java:597)
287        at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
288        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
289Dec 10, 2011 10:49:41 AM org.apache.catalina.startup.Catalina start
290SEVERE: Cannot start server. Server instance is not configured.


Many thanks,

Vasilis
Ravi Kumar Gupta
RE: Separate tomcat and liferay installation
December 10, 2011 4:44 AM
Answer

Ravi Kumar Gupta

Rank: Liferay Legend

Posts: 1216

Join Date: June 23, 2009

Recent Posts

Hi,

Keep the catalina.properties file content as
1
2common.loader=${catalina.base}/lib,${catalina.base}/lib/*.jar,${catalina.home}/lib,${catalina.home}/lib/*.jar,${catalina.home}/lib/ext/*.jar


Check the server.xml in conf folder. That's not correct.

Address 8080 is already in used, so change the port 8080 to some other port... can be any number between 1028 till 65000. For example I keep as 4000 as connector port and 4105 as shutdown port.. so no conflict emoticon

Also server.xml doesnt seem to be well formed, can you paste the content of server.xml here..

-Ravi
Vasileios Gkamas
RE: Separate tomcat and liferay installation
December 10, 2011 8:18 AM
Answer

Vasileios Gkamas

Rank: New Member

Posts: 12

Join Date: November 24, 2011

Recent Posts

Hi,

I changed the catalina.properties file as you said and the connector and shutdown ports of server.xml file (attached). Again the tomcat does not start

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


Regards,

Vasilis
Ravi Kumar Gupta
RE: Separate tomcat and liferay installation
December 10, 2011 10:03 AM
Answer

Ravi Kumar Gupta

Rank: Liferay Legend

Posts: 1216

Join Date: June 23, 2009

Recent Posts

Use the attached server.xml file..
Attachments: server.xml (6.7k)
Ravi Kumar Gupta
RE: Separate tomcat and liferay installation
December 10, 2011 10:03 AM
Answer

Ravi Kumar Gupta

Rank: Liferay Legend

Posts: 1216

Join Date: June 23, 2009

Recent Posts

Also attach the error you are getting now..
Vasileios Gkamas
RE: Separate tomcat and liferay installation
December 18, 2011 6:22 AM
Answer

Vasileios Gkamas

Rank: New Member

Posts: 12

Join Date: November 24, 2011

Recent Posts

Hi Ravi and sorry for the late reply.

I used your servel.xml file and now I get the following errors:

 1
 2Dec 18, 2011 2:17:03 PM org.apache.catalina.startup.HostConfig deployDescriptor
 3INFO: Deploying configuration descriptor host-manager.xml
 4Dec 18, 2011 2:17:04 PM org.apache.catalina.startup.HostConfig deployDescriptor
 5INFO: Deploying configuration descriptor manager.xml
 6Dec 18, 2011 2:17:04 PM org.apache.catalina.startup.HostConfig deployDirectory
 7INFO: Deploying web application directory examples
 8Dec 18, 2011 2:17:05 PM org.apache.catalina.startup.HostConfig deployDirectory
 9INFO: Deploying web application directory docs
10Dec 18, 2011 2:17:06 PM org.apache.catalina.startup.HostConfig deployDirectory
11INFO: Deploying web application directory ROOT
12Dec 18, 2011 2:17:10 PM org.apache.catalina.core.StandardContext start
13SEVERE: Error listenerStart
14Dec 18, 2011 2:17:10 PM org.apache.catalina.core.StandardContext start
15SEVERE: Context [] startup failed due to previous errors
16Dec 18, 2011 2:17:12 PM org.apache.coyote.http11.Http11Protocol start
17SEVERE: Error starting endpoint
18java.net.BindException: Address already in use <null>:4000
19        at org.apache.tomcat.util.net.JIoEndpoint.init(JIoEndpoint.java:549)
20        at org.apache.tomcat.util.net.JIoEndpoint.start(JIoEndpoint.java:565)
21        at org.apache.coyote.http11.Http11Protocol.start(Http11Protocol.java:203)
22        at org.apache.catalina.connector.Connector.start(Connector.java:1095)
23        at org.apache.catalina.core.StandardService.start(StandardService.java:540)
24        at org.apache.catalina.core.StandardServer.start(StandardServer.java:754)
25        at org.apache.catalina.startup.Catalina.start(Catalina.java:595)
26        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
27        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
28        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
29        at java.lang.reflect.Method.invoke(Method.java:597)
30        at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
31        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
32Caused by: java.net.BindException: Address already in use
33        at java.net.PlainSocketImpl.socketBind(Native Method)
34        at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:383)
35        at java.net.ServerSocket.bind(ServerSocket.java:328)
36        at java.net.ServerSocket.<init>(ServerSocket.java:194)
37        at java.net.ServerSocket.<init>(ServerSocket.java:150)
38        at org.apache.tomcat.util.net.DefaultServerSocketFactory.createSocket(DefaultServerSocketFactory.java:50)
39        at org.apache.tomcat.util.net.JIoEndpoint.init(JIoEndpoint.java:538)
40        ... 12 more
41Dec 18, 2011 2:17:12 PM org.apache.catalina.core.StandardService start
42SEVERE: Failed to start connector [Connector[HTTP/1.1-4000]]
43LifecycleException:  service.getName(): "Catalina";  Protocol handler start failed: java.net.BindException: Address already in use <null>:4000
44        at org.apache.catalina.connector.Connector.start(Connector.java:1102)
45        at org.apache.catalina.core.StandardService.start(StandardService.java:540)
46        at org.apache.catalina.core.StandardServer.start(StandardServer.java:754)
47        at org.apache.catalina.startup.Catalina.start(Catalina.java:595)
48        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
49        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
50        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
51        at java.lang.reflect.Method.invoke(Method.java:597)
52        at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
53        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
54Dec 18, 2011 2:17:12 PM org.apache.jk.common.ChannelSocket init
55INFO: Port busy 8009 java.net.BindException: Address already in use
56Dec 18, 2011 2:17:12 PM org.apache.jk.common.ChannelSocket init
57SEVERE: Can't find free port 8009 8009
58Dec 18, 2011 2:17:12 PM org.apache.jk.server.JkMain start
59INFO: Jk running ID=0 time=0/18  config=null
60Dec 18, 2011 2:17:12 PM org.apache.catalina.startup.Catalina start
61INFO: Server startup in 8319 ms
62Dec 18, 2011 2:17:12 PM org.apache.catalina.core.StandardServer await
63SEVERE: StandardServer.await: create[4105]:
64java.net.BindException: Address already in use
65        at java.net.PlainSocketImpl.socketBind(Native Method)
66        at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:383)
67        at java.net.ServerSocket.bind(ServerSocket.java:328)
68        at java.net.ServerSocket.<init>(ServerSocket.java:194)
69        at org.apache.catalina.core.StandardServer.await(StandardServer.java:406)
70        at org.apache.catalina.startup.Catalina.await(Catalina.java:676)
71        at org.apache.catalina.startup.Catalina.start(Catalina.java:628)
72        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
73        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
74        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
75        at java.lang.reflect.Method.invoke(Method.java:597)
76        at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
77        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
78Dec 18, 2011 2:17:12 PM org.apache.coyote.http11.Http11Protocol pause
79INFO: Pausing Coyote HTTP/1.1 on http-4000
80Dec 18, 2011 2:17:13 PM org.apache.catalina.core.StandardService stop
81INFO: Stopping service Catalina
82Dec 18, 2011 2:17:13 PM org.apache.coyote.http11.Http11Protocol destroy
83INFO: Stopping Coyote HTTP/1.1 on http-4000


Also at catalina.properties i have the following line:

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

Tomcat runs as follows:

1
2[root@localhost ~]# ps -ef | grep tomcat
3root      7859     1  1 16:08 pts/1    00:00:08 /usr/bin/java -Djava.util.logging.config.file=/opt/apache-tomcat-6.0.32/conf/logging.properties -server -Xms256m -Xmx1024m -XX:MaxPermSize=512m -Dfile.encoding=UTF8 -Duser.timezone=GMT -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -DcrlUpdateInterval=0s -DcrlEnabled=false -Dorg.globus.tcp.port.range=20000,25000 -Djava.endorsed.dirs=/opt/apache-tomcat-6.0.32/endorsed -classpath /opt/apache-tomcat-6.0.32/bin/bootstrap.jar -Dcatalina.base=/opt/apache-tomcat-6.0.32 -Dcatalina.home=/opt/apache-tomcat-6.0.32 -Djava.io.tmpdir=/opt/apache-tomcat-6.0.32/temp org.apache.catalina.startup.Bootstrap start
4root     15110  7917  0 16:19 pts/2    00:00:00 grep tomcat


The link localhost:8080 opens, the link localhost:4040 throws the error: The requested resource () is not available.

Regards,

Vasilis
Vasileios Gkamas
RE: Separate tomcat and liferay installation
December 18, 2011 6:30 AM
Answer

Vasileios Gkamas

Rank: New Member

Posts: 12

Join Date: November 24, 2011

Recent Posts

At my previous message I mean the the link localhost:4000 throws the error: The requested resource () is not available.

Regards,

Vasilis
Vasileios Gkamas
RE: Separate tomcat and liferay installation
December 18, 2011 6:36 AM
Answer

Vasileios Gkamas

Rank: New Member

Posts: 12

Join Date: November 24, 2011

Recent Posts

I also tried another server.xml file (attached) and now I get less errors:

 1
 2Dec 18, 2011 2:33:48 PM org.apache.catalina.startup.HostConfig deployDescriptor
 3INFO: Deploying configuration descriptor host-manager.xml
 4Dec 18, 2011 2:33:48 PM org.apache.catalina.startup.HostConfig deployDescriptor
 5INFO: Deploying configuration descriptor manager.xml
 6Dec 18, 2011 2:33:48 PM org.apache.catalina.startup.HostConfig deployDirectory
 7INFO: Deploying web application directory examples
 8Dec 18, 2011 2:33:49 PM org.apache.catalina.startup.HostConfig deployDirectory
 9INFO: Deploying web application directory docs
10Dec 18, 2011 2:33:50 PM org.apache.catalina.startup.HostConfig deployDirectory
11INFO: Deploying web application directory ROOT
12Dec 18, 2011 2:33:52 PM org.apache.catalina.core.StandardContext start
13[b][i][/i]SEVERE: Error listenerStart[/b]
14Dec 18, 2011 2:33:52 PM org.apache.catalina.core.StandardContext start
15SEVERE: Context [] startup failed due to previous errors
16Dec 18, 2011 2:33:54 PM org.apache.coyote.http11.Http11Protocol start
17INFO: Starting Coyote HTTP/1.1 on http-4000
18Dec 18, 2011 2:33:54 PM org.apache.jk.common.ChannelSocket init
19INFO: JK: ajp13 listening on /0.0.0.0:8009
20Dec 18, 2011 2:33:54 PM org.apache.jk.server.JkMain start
21INFO: Jk running ID=0 time=0/34  config=null
22Dec 18, 2011 2:33:54 PM org.apache.catalina.startup.Catalina start
23INFO: Server startup in 5907 ms


Regards,

Vasilis
Attachments: server.xml (6.5k)
Vasileios Gkamas
RE: Separate tomcat and liferay installation
December 18, 2011 7:15 AM
Answer

Vasileios Gkamas

Rank: New Member

Posts: 12

Join Date: November 24, 2011

Recent Posts

Hi Ravin,

I finnaly installed Liferay emoticon I had to copy the .jar file from /lib/ext to /lib. The localhost:4000 opens Liferay.

The only error a got at catalina.out was

15:10:07,321 ERROR [JDBCExceptionReporter:101] Table not found in statement [select lockimpl0_.lockId as lockId18_, lockimpl0_.uuid_ as uuid2_18_, lockimpl0_.companyId as companyId18_, lockimpl0_.userId as userId18_, lockimpl0_.userName as userName18_, lockimpl0_.createDate as createDate18_, lockimpl0_.className as className18_, lockimpl0_.key_ as key8_18_, lockimpl0_.owner as owner18_, lockimpl0_.inheritable as inherit10_18_, lockimpl0_.expirationDate as expirat11_18_ from Lock_ lockimpl0_ where (lockimpl0_.expirationDate<? )]

I don't know if it is something important, or I can ignore it.

Regards,

Vasilis
Ravi Kumar Gupta
RE: Separate tomcat and liferay installation
December 18, 2011 8:39 PM
Answer

Ravi Kumar Gupta

Rank: Liferay Legend

Posts: 1216

Join Date: June 23, 2009

Recent Posts

I have been ignoring this error till now.. there are two tables which do not exist until liferay db is created.. lock and release.. i guess..emoticon

Glad to know that Liferay started for you. emoticon
Geeta Raghu Vamsi Kotipalli
RE: Separate tomcat and liferay installation
December 18, 2011 10:12 PM
Answer

Geeta Raghu Vamsi Kotipalli

Rank: Junior Member

Posts: 58

Join Date: November 9, 2011

Recent Posts

Vasileios Gkamas:
Hi Ravin,

I finnaly installed Liferay emoticon I had to copy the .jar file from /lib/ext to /lib. The localhost:4000 opens Liferay.

The only error a got at catalina.out was

15:10:07,321 ERROR [JDBCExceptionReporter:101] Table not found in statement [select lockimpl0_.lockId as lockId18_, lockimpl0_.uuid_ as uuid2_18_, lockimpl0_.companyId as companyId18_, lockimpl0_.userId as userId18_, lockimpl0_.userName as userName18_, lockimpl0_.createDate as createDate18_, lockimpl0_.className as className18_, lockimpl0_.key_ as key8_18_, lockimpl0_.owner as owner18_, lockimpl0_.inheritable as inherit10_18_, lockimpl0_.expirationDate as expirat11_18_ from Lock_ lockimpl0_ where (lockimpl0_.expirationDate<? )]

I don't know if it is something important, or I can ignore it.

Regards,

Vasilis



Hello Vasilis,


The Liferay Installation on any Linux Flavour is the same and related to this Particular error i would like to know are you Planning for a Liferay Db Architecture in a way that
1)Two Db pooling
i)DB READ
ii)DB Write

If that is the case then obviously you might see this error on one of the read based db.

If the scenario is a simple Liferay installation I would like to know your Db Configuration and the Privilege Permission You have given on the Database for Accessing the Liferay Application.

Thanks

K.G.R Vamsi
Geeta Raghu Vamsi Kotipalli
RE: Separate tomcat and liferay installation
December 18, 2011 10:13 PM
Answer

Geeta Raghu Vamsi Kotipalli

Rank: Junior Member

Posts: 58

Join Date: November 9, 2011

Recent Posts

Ravi Kumar Gupta:
I have been ignoring this error till now.. there are two tables which do not exist until liferay db is created.. lock and release.. i guess..emoticon

Glad to know that Liferay started for you. emoticon



Hello Ravi,

May i know What Sql statement get Executed related to this lportal_lock and release?and what is the use of these both tables??

Thanks
K.G.R Vamsi
Vasileios Gkamas
RE: Separate tomcat and liferay installation
December 23, 2011 3:10 AM
Answer

Vasileios Gkamas

Rank: New Member

Posts: 12

Join Date: November 24, 2011

Recent Posts

Hi,

I have a simple installation of db. I have created a db lportal for liferay portal following the instructions from here:

http://www.liferay.com/community/wiki/-/wiki/Main/Database+Configuration

The content of portal-ext.properties is the following

[root@usersportal classes]# cat portal-ext.properties
jdbc.default.driverClassName=com.mysql.jdbc.Driver
jdbc.default.url=jdbc:mysql://usersportal.hellasgrid.gr/lportal?useUnicode=true&characterEncoding=UTF-8&useFastDateParsing=false
jdbc.default.username=lportal
jdbc.default.password=XXXX

I have also created a new user lportal and grand all the privileges to db lportal

I also get and the following error:

ERROR [JDBCExceptionReporter:101] Table 'pgportal2.Lock_' doesn't exist

Pgportal2 is another db created for the installation of guse (http://guse.hu) as described here http://guse.hu/manual/admin/short/guse_install_manual33.htm

Merry Christmas and a happy new year,

Best Regards,

Vasilis
Olaf Kock
RE: Separate tomcat and liferay installation
December 23, 2011 6:39 AM
Answer

Olaf Kock

LIFERAY STAFF

Rank: Liferay Legend

Posts: 1959

Join Date: September 23, 2008

Recent Posts

Vasileios Gkamas:

 1SEVERE: Error listenerStart
 2Dec 18, 2011 2:17:10 PM org.apache.catalina.core.StandardContext start
 3SEVERE: Context [] startup failed due to previous errors
 4Dec 18, 2011 2:17:12 PM org.apache.coyote.http11.Http11Protocol start
 5SEVERE: Error starting endpoint
 6java.net.BindException: Address already in use <null>:4000
 7        at org.apache.tomcat.util.net.JIoEndpoint.init(JIoEndpoint.java:549)
 8        at org.apache.tomcat.util.net.JIoEndpoint.start(JIoEndpoint.java:565)
 9        at org.apache.coyote.http11.Http11Protocol.start(Http11Protocol.java:203)


Also at catalina.properties i have the following line:

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


Some information on these issues, even though they seem to be solved already:

Whenever you get the "Address already in use" message, this means that some process is keeping the named port (4000 in this case, 8080 earlier) occupied. Only one application at a time can "listen" to one port. The odds are that it's Liferay/Tomcat itself that has already been started - you can't start it a second time on the same port. Typically you want to execute "shutdown.bat" or "shutdown.sh" in order to shut down Tomcat and be able to startup again.

The catalina.properties change that Liferay does in the bundle is only done in order to separate the standard tomcat jars on the global classpath (in lib/*) from Liferay's libraries that need to be on the global classpath (in lib/ext/*). You can as well put them all in lib/*, but we consider it a bit easier to separate both kinds of libraries.