Am 25.05.2011 16:00, schrieb Pid:
> On 25/05/2011 13:55, Christian R=F6ttger wrote:
>> Dear List,
>>
>> i installed tomcat6.0.24 on a ubuntu 10.04 server with this installati=
on
>> guide ( https://help.ubuntu.com/10.04/serverguide/C/tomcat.html )
>> without changing the port.
>>
>> when i try to access the page on myserver:8080 it remains loading and
>> loading. I don't what went wrong.
>
> The exception gives you a fairly big hint:
>
>> 25.05.2011 14:25:53 org.apache.tomcat.util.digester.Digester fatalErro=
r
>> SCHWERWIEGEND: Parse Fatal Error at line 23 column 1: XML document
>> structures must start and end within the same entity.
>> org.xml.sax.SAXParseException; lineNumber: 23; columnNumber: 1; XML
>> document structures must start and end within the same entity.
>
> You have an error in your Tomcat configuration, an element of your XML
> is incorrectly written...
>
>> org.apache.catalina.mbeans.GlobalResourcesLifecycleListener createMBea=
ns
>> SCHWERWIEGEND: Exception processing Global JNDI Resources
>> javax.naming.NamingException: XML document structures must start and e=
nd
>> within the same entity.
>
> ... in the Global JNDI definition.
>
>
> If you can't see what it is, you can post the server.xml file inline,
> with any username, passwords& IPs removed.
I didn't change anything in that file, but the xml is attached.
<?xml version=3D'1.0' encoding=3D'utf-8'?>
<!--
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The ASF licenses this file to You under the Apache License, Version 2.=
0
(the "License"); you may not use this file except in compliance with
the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implie=
d.
See the License for the specific language governing permissions and
limitations under the License.
-->
<!-- Note: A "Server" is not itself a "Container", so you may not
define subcomponents such as "Valves" at this level.
Documentation at /docs/config/server.html
-->
<Server port=3D"8005" shutdown=3D"SHUTDOWN">
<!--APR library loader. Documentation at /docs/apr.html -->
<!--
<Listener className=3D"org.apache.catalina.core.AprLifecycleListener" =
SSLEngine=3D"on" />
-->
<!--Initialize Jasper prior to webapps are loaded. Documentation at=20
/docs/jasper-howto.html -->
<Listener className=3D"org.apache.catalina.core.JasperListener" />
<!-- Prevent memory leaks due to use of particular java/javax APIs-->
<Listener=20
className=3D"org.apache.catalina.core.JreMemoryLeakPreventionListener" />=
<!-- JMX Support for the Tomcat server. Documentation at=20
/docs/non-existent.html -->
<Listener=20
className=3D"org.apache.catalina.mbeans.ServerLifecycleListener" />
<Listener=20
className=3D"org.apache.catalina.mbeans.GlobalResourcesLifecycleListener"=
/>
<!-- Global JNDI resources
Documentation at /docs/jndi-resources-howto.html
-->
<GlobalNamingResources>
<!-- Editable user database that can also be used by
UserDatabaseRealm to authenticate users
-->
<Resource name=3D"UserDatabase" auth=3D"Container"
type=3D"org.apache.catalina.UserDatabase"
description=3D"User database that can be updated and saved=
"
factory=3D"org.apache.catalina.users.MemoryUserDatabaseFac=
tory"
pathname=3D"conf/tomcat-users.xml" />
</GlobalNamingResources>
<!-- A "Service" is a collection of one or more "Connectors" that shar=
e
a single "Container" Note: A "Service" is not itself a=20
"Container",
so you may not define subcomponents such as "Valves" at this leve=
l.
Documentation at /docs/config/service.html
-->
<Service name=3D"Catalina">
<!--The connectors can use a shared executor, you can define one or =
more named thread pools-->
<!--
<Executor name=3D"tomcatThreadPool" namePrefix=3D"catalina-exec-"
maxThreads=3D"150" minSpareThreads=3D"4"/>
-->
<!-- A "Connector" represents an endpoint by which requests are=20
received
and responses are returned. Documentation at :
Java HTTP Connector: /docs/config/http.html (blocking &=20
non-blocking)
Java AJP Connector: /docs/config/ajp.html
APR (HTTP/AJP) Connector: /docs/apr.html
Define a non-SSL HTTP/1.1 Connector on port 8080
-->
<Connector port=3D"8080" protocol=3D"HTTP/1.1"
connectionTimeout=3D"20000"
URIEncoding=3D"UTF-8"
redirectPort=3D"8443" />
<!-- A "Connector" using the shared thread pool-->
<!--
<Connector executor=3D"tomcatThreadPool"
port=3D"8080" protocol=3D"HTTP/1.1"
connectionTimeout=3D"20000"
redirectPort=3D"8443" />
-->
<!-- Define a SSL HTTP/1.1 Connector on port 8443
This connector uses the JSSE configuration, when using APR, the=
connector should be using the OpenSSL style configuration
described in the APR documentation -->
<!--
<Connector port=3D"8443" protocol=3D"HTTP/1.1" SSLEnabled=3D"true"
maxThreads=3D"150" scheme=3D"https" secure=3D"true"
clientAuth=3D"false" sslProtocol=3D"TLS" />
-->
<!-- Define an AJP 1.3 Connector on port 8009 -->
<!--
<Connector port=3D"8009" protocol=3D"AJP/1.3" redirectPort=3D"8443" =
/>
-->
<!-- An Engine represents the entry point (within Catalina) that=20
processes
every request. The Engine implementation for Tomcat stand alon=
e
analyzes the HTTP headers included with the request, and=20
passes them
on to the appropriate Host (virtual host).
Documentation at /docs/config/engine.html -->
<!-- You should set jvmRoute to support load-balancing via AJP ie :
<Engine name=3D"Catalina" defaultHost=3D"localhost" jvmRoute=3D"jvm1=
">=20
-->
<Engine name=3D"Catalina" defaultHost=3D"localhost">
<!--For clustering, please take a look at documentation at:
/docs/cluster-howto.html (simple how to)
/docs/config/cluster.html (reference documentation) -->
<!--
<Cluster className=3D"org.apache.catalina.ha.tcp.SimpleTcpCluster"=
/>
-->
<!-- The request dumper valve dumps useful debugging information=20
about
the request and response data received and sent by Tomcat.
Documentation at: /docs/config/valve.html -->
<!--
<Valve className=3D"org.apache.catalina.valves.RequestDumperValve"=
/>
-->
<!-- This Realm uses the UserDatabase configured in the global JND=
I
resources under the key "UserDatabase". Any edits
that are performed against this UserDatabase are immediately
available for use by the Realm. -->
<Realm className=3D"org.apache.catalina.realm.UserDatabaseRealm"
resourceName=3D"UserDatabase"/>
<!-- Define the default virtual host
Note: XML Schema validation will not work with Xerces 2.2.
-->
<Host name=3D"localhost" appBase=3D"webapps"
unpackWARs=3D"true" autoDeploy=3D"true"
xmlValidation=3D"false" xmlNamespaceAware=3D"false">
<!-- SingleSignOn valve, share authentication between web=20
applications
Documentation at: /docs/config/valve.html -->
<!--
<Valve=20
className=3D"org.apache.catalina.authenticator.SingleSignOn" />
-->
<!-- Access log processes all example.
Documentation at: /docs/config/valve.html -->
<!--
<Valve className=3D"org.apache.catalina.valves.AccessLogValve"=20
directory=3D"logs"
prefix=3D"localhost_access_log." suffix=3D".txt"=20
pattern=3D"common" resolveHosts=3D"false"/>
-->
</Host>
</Engine>
</Service>
</Server>
|