Я получаю следующую ошибку при запуске tomcat в eclipse:
Mär 03, 2020 10:26:11 AM org.apache.tomcat.util.digester.Digester startElement
SCHWERWIEGEND: Begin event threw exception
java.lang.NullPointerException
at org.apache.tomcat.util.digester.ObjectCreateRule.begin(ObjectCreateRule.java:144)
at org.apache.tomcat.util.digester.Digester.startElement(Digester.java:1276)
at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source)
at org.apache.xerces.impl.dtd.XMLDTDValidator.startElement(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(Unknown Source)
at org.apache.xerces.impl.XMLDocumentScannerImpl$ContentDispatcher.scanRootElementHook(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
at org.apache.tomcat.util.digester.Digester.parse(Digester.java:1537)
at org.apache.catalina.startup.Catalina.load(Catalina.java:610)
at org.apache.catalina.startup.Catalina.load(Catalina.java:658)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:281)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:455)
Mär 03, 2020 10:26:11 AM org.apache.catalina.startup.Catalina load
WARNUNG: Catalina.start using D:\SI-Dev\SI-Dev-M2020_1/tomcat-config-7.0.xml: Error at (20, 42) : null
Mär 03, 2020 10:26:11 AM org.apache.tomcat.util.digester.Digester startElement
SCHWERWIEGEND: Begin event threw exception
java.lang.NullPointerException
at org.apache.tomcat.util.digester.ObjectCreateRule.begin(ObjectCreateRule.java:144)
at org.apache.tomcat.util.digester.Digester.startElement(Digester.java:1276)
at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source)
at org.apache.xerces.impl.dtd.XMLDTDValidator.startElement(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(Unknown Source)
at org.apache.xerces.impl.XMLDocumentScannerImpl$ContentDispatcher.scanRootElementHook(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
at org.apache.tomcat.util.digester.Digester.parse(Digester.java:1537)
at org.apache.catalina.startup.Catalina.load(Catalina.java:610)
at org.apache.catalina.startup.Catalina.start(Catalina.java:672)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:322)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:456)
Mär 03, 2020 10:26:11 AM org.apache.catalina.startup.Catalina load
WARNUNG: Catalina.start using D:\SI-Dev\SI-Dev-M2020_1/tomcat-config-7.0.xml: Error at (20, 42) : null
Mär 03, 2020 10:26:11 AM org.apache.catalina.startup.Catalina start
SCHWERWIEGEND: Cannot start server. Server instance is not configured.
Вот мой tomcat-config-7.0. xml:
<?xml version="1.0" encoding="utf-8" standalone="no"?><!--
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 implied.
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="8005" shutdown="SHUTDOWN">
<!-- Security listener. Documentation at /docs/config/listeners.html
<Listener className="org.apache.catalina.security.SecurityListener" />
-->
<!--APR library loader. Documentation at /docs/apr.html -->
<Listener SSLEngine="on" className="org.apache.catalina.core.AprLifecycleListener"/>
<!--Initialize Jasper prior to webapps are loaded. Documentation at /docs/jasper-howto.html -->
<Listener className="org.apache.catalina.core.JasperListener"/>
<!-- Prevent memory leaks due to use of particular java/javax APIs-->
<Listener className="org.apache.catalina.core.JreMemoryLeakPreventionListener"/>
<Listener className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener"/>
<Listener className="org.apache.catalina.core.ThreadLocalLeakPreventionListener"/>
<!-- 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 auth="Container" description="User database that can be updated and saved" factory="org.apache.catalina.users.MemoryUserDatabaseFactory" name="UserDatabase" pathname="conf/tomcat-users.xml" type="org.apache.catalina.UserDatabase"/>
<!-- SMC Einstellung -->
<Environment name="smc/BufEvtMaxSize" value="512"
type="java.lang.Integer" override="false" />
<Environment name="smc/BufEvtPath" value="smc_cache.dat"
type="java.lang.String" override="false" />
<Environment name="smc/ServerLocation" value="smpprb001.system.local"
type="java.lang.String" override="false" />
<Environment name="smc/ServerPort" value="5529"
type="java.lang.Integer" override="false" />
<Environment name="smc/TestMode" value="yes"
type="java.lang.Boolean" override="false" />
<!-- RMI - NLvRemoteRmiServer -->
<Environment name="rmi/adressen" value="${mvn.rmi.adressen}"
type="java.lang.String" override="false" />
<!-- Fachserverlogging -->
<Environment name="logging/fachserverLogging" value="true"
type="java.lang.Boolean" override="false" />
<!-- RMI - NLvRemoteRmiServer -->
<Environment name="mode/test" value="T"
type="java.lang.String" override="false" />
<!-- Dope -->
<Environment name="dope/transport/connection-timeout" value="2500"
type="java.lang.Integer" override="false" />
<Environment name="dope/transport/xmlaccess-url" value="${mvn.dope.transport.html.xmlaccess.url}"
type="java.lang.String" override="false" />
<!-- Datalake -->
<Environment name="datalake/jms/username" value="ZA-SVC-NLVDAL"
type="java.lang.String" override="false" />
<Environment name="datalake/jms/password" value="{AES}ZZ4PppBSIepuwh07XVXWFNUYb5goFxyNYGHk+rjWzzE="
type="java.lang.String" override="false" />
<!-- EAI -->
<Environment name="eai/eai_ziel_monitor" value="${mvn.eis.zielMonitor}"
type="java.lang.String" override="false" />
<Environment name="eai/test_display_d" value="3"
type="java.lang.String" override="false" />
<Environment name="eai/test_display_dm" value="N"
type="java.lang.String" override="false" />
<!-- SI Security -->
<Environment name="security/audit/fileOnly" value="true"
type="java.lang.String" override="false" />
<!-- REST Security -->
<Environment name="rest/security/username" value="S000236"
type="java.lang.String" override="false" />
<Environment name="rest/security/password" value="{AES}/VrLl4oWym6sOgqLDsko5w=="
type="java.lang.String" override="false" />
<!-- Delegate -->
<Environment name="security/activePermissionBusinessDelegateClassName" value="de.signaliduna.nlv.security.businessdelegate.SISecurityPermissionBusinessDelegateImpl"
type="java.lang.String" override="false" />
<!-- Vertragssperre -->
<Environment name="vertragssperre/vertragssperreServiceBeanName" value="vertragssperreServiceDBImpl"
type="java.lang.String" override="false" />
<!-- I18N -->
<Environment name="messaging/resourceBundleName" value="ebf"
type="java.lang.String" override="false" />
<!-- FJA Life Factory -->
<!-- Da unbekannt ist, ob wir uns in system oder system-a befinden, setzen wir einfach beides. -->
<Environment name="LF4/NETWORK_NAME#1" value="HH-N-219.system.local"
type="java.lang.String" override="false" />
<Environment name="LF4/NETWORK_NAME#2" value="HH-N-219.system-a.local"
type="java.lang.String" override="false" />
<Environment name="LF4/SYSTEM.TEST" value="ON" type="java.lang.String" override="false" />
<!-- Fachserver-Location -->
<Environment name="LF4/CORBA.NAMING_SERVICE_LOCATIONS#1" value="${mvn.lf4.location1}"
type="java.lang.String" override="false" />
<Environment name="LF4/CORBA.NAMING_SERVICE_LOCATIONS#2" value="${mvn.lf4.location2}"
type="java.lang.String" override="false" />
<!-- GeVo-Disabling -->
<Environment name="management/gevodisable" value="lib"
type="java.lang.String" override="false" />
<Environment name="management/gevodisableServiceUrl" value=""
type="java.lang.String" override="false" />
<!-- Plausi-Disabling -->
<Environment name="management/plausidisable" value="off"
type="java.lang.String" override="false" />
<Environment name="management/plausidisableServiceUrl" value=""
type="java.lang.String" override="false" />
<Environment name="configuration/versioninformation/sendOnStartup" value="false"
type="java.lang.String" override="false" />
<!-- configuration preparation only
<Environment name="configuration/queueName" value="${mvn.configuration.queueName}"
type="java.lang.String" override="false" />
-->
<!-- startPage -->
<Environment name="startPage" value="/login.jsp"
type="java.lang.String" override="false" />
<!-- System -->
<Environment name="de/signaliduna/nlv/system"
override="false" type="java.lang.String" value="" />
<!-- statisches/dynamisches SQL -->
<Environment name="de/signaliduna/nlv/eai/staticSql"
override="false" type="java.lang.String" value="false" />
<Environment name="LF4/ABFDS.KBFHOST" override="false" type="java.lang.String" value="localhost" />
<Environment name="vsi/username" override="false" type="java.lang.String" value="${mvn.vsi.user}" />
<Environment name="vsi/password" override="false" type="java.lang.String" value="{AES}/VrLl4oWym6sOgqLDsko5w==" />
<Environment name="vsi/serverBaseURL" override="false" type="java.lang.String" value="http://localhost:8088/vsi-client-mock/services/" />
<Environment name="vsi/nutzeVsi" override="false" type="java.lang.String" value="true" />
<!-- ### msg -->
<Environment name="vsi/xmlDumpPath" override="false" type="java.lang.String" value=".\temp" />
<Environment name="ipclient.host" override="false" type="java.lang.String" value="APA286413" />
<Environment name="ipclient.port" override="false" type="java.lang.String" value="4000" />
<Environment name="ipclient.host" override="false" type="java.lang.String" value="APA286413" />
<Environment name="ipclient.port" override="false" type="java.lang.String" value="4000" />
<!--
ACHTUNG: werden hier neue Eintraege erstellt, sind diese in folgenden Stellen zu pflegen:
tomcat-config-7.0.xml (diese Datei, diese Stelle)
tomcat-config-7.0.xml (diese Datei, unten im Context-Block)
build/build.properties (oder entsprechen fuer das System speziefisch)
src/main/webapp/META-INF/context.xml
-->
<!-- LFM-11832 IP Client: fuer KF Host Dienst -->
<Environment name="kfn/MONITOR" value="IMSK"
type="java.lang.String" override="false" />
</GlobalNamingResources>
<!-- A "Service" is a collection of one or more "Connectors" that share
a single "Container" Note: A "Service" is not itself a "Container",
so you may not define subcomponents such as "Valves" at this level.
Documentation at /docs/config/service.html
-->
<Service name="Catalina">
<!--The connectors can use a shared executor, you can define one or more named thread pools-->
<!--
<Executor name="tomcatThreadPool" namePrefix="catalina-exec-"
maxThreads="150" minSpareThreads="4"/>
-->
<!-- A "Connector" represents an endpoint by which requests are received
and responses are returned. Documentation at :
Java HTTP Connector: /docs/config/http.html (blocking & 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 SSLEnabled="false" URIEncoding="ISO-8859-1" connectionTimeout="20000" emptySessionPath="true" port="8088" protocol="HTTP/1.1" redirectPort="8443" scheme="http" secure="false"/>
<!-- A "Connector" using the shared thread pool-->
<!--
<Connector executor="tomcatThreadPool"
port="8080" protocol="HTTP/1.1"
connectionTimeout="20000"
redirectPort="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="8443" protocol="HTTP/1.1" SSLEnabled="true"
maxThreads="150" scheme="https" secure="true"
clientAuth="false" sslProtocol="TLS" />
-->
<!-- Define an AJP 1.3 Connector on port 8009 -->
<Connector port="8010" protocol="AJP/1.3" redirectPort="8443"/>
<!-- An Engine represents the entry point (within Catalina) that processes
every request. The Engine implementation for Tomcat stand alone
analyzes the HTTP headers included with the request, and 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="Catalina" defaultHost="localhost" jvmRoute="jvm1">
-->
<Engine defaultHost="localhost" name="Catalina">
<!--For clustering, please take a look at documentation at:
/docs/cluster-howto.html (simple how to)
/docs/config/cluster.html (reference documentation) -->
<!--
<Cluster className="org.apache.catalina.ha.tcp.SimpleTcpCluster"/>
-->
<!-- Use the LockOutRealm to prevent attempts to guess user passwords
via a brute-force attack -->
<Realm className="org.apache.catalina.realm.LockOutRealm">
<!-- This Realm uses the UserDatabase configured in the global JNDI
resources under the key "UserDatabase". Any edits
that are performed against this UserDatabase are immediately
available for use by the Realm. -->
<Realm className="org.apache.catalina.realm.UserDatabaseRealm" resourceName="UserDatabase"/>
</Realm>
<Host appBase="webapps" autoDeploy="true" name="localhost" unpackWARs="true">
<!-- SingleSignOn valve, share authentication between web applications
Documentation at: /docs/config/valve.html -->
<!--
<Valve className="org.apache.catalina.authenticator.SingleSignOn" />
-->
<!-- Access log processes all example.
Documentation at: /docs/config/valve.html
Note: The pattern used is equivalent to using pattern="common" -->
<Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs" pattern="%h %l %u %t "%r" %s %b" prefix="localhost_access_log." resolveHosts="false" suffix=".txt"/>
<ResourceLink name="configuration/versioninformation/sendOnStartup" global="configuration/versioninformation/sendOnStartup" type="java.lang.String" />
<!-- Context representing out web application.
<ResourceLink name="configuration/queueName" global="configuration/queueName" type="java.lang.String" />
-->
<!-- Launcher aktiv -->
<Context path="/ebf"
docBase="${LF4_ROOT}"
crossContext="true"
reloadable="false">
<!-- Mock Runtime
<Realm className="org.apache.catalina.realm.JNDIRealm"
connectionURL="ldap://ldtinfnet:1389"
userPattern="uid={0},cn=users,DC=INFONET,O=SIGNAL-IDUNA,C=DE"
roleBase="cn=groups,DC=INFONET,O=SIGNAL-IDUNA,C=DE"
roleSearch="(uniqueMember={0})"
roleName="cn" />
-->
<ResourceLink name="smc/BufEvtMaxSize" global="smc/BufEvtMaxSize" type="java.lang.Integer" />
<ResourceLink name="smc/BufEvtPath" global="smc/BufEvtPath" type="java.lang.String" />
<ResourceLink name="smc/ServerLocation" global="smc/ServerLocation" type="java.lang.String" />
<ResourceLink name="smc/ServerPort" global="smc/ServerPort" type="java.lang.Integer" />
<ResourceLink name="smc/TestMode" global="smc/TestMode" type="java.lang.Boolean" />
<ResourceLink name="rmi/adressen" global="rmi/adressen" type="java.lang.String" />
<ResourceLink name="logging/fachserverLogging" global="logging/fachserverLogging" type="java.lang.Boolean" />
<ResourceLink name="mode/test" global="mode/test" type="java.lang.String" />
<ResourceLink name="dope/transport/connection-timeout" global="dope/transport/connection-timeout" type="java.lang.Integer" />
<ResourceLink name="dope/transport/xmlaccess-url" global="dope/transport/xmlaccess-url" type="java.lang.String" />
<ResourceLink name="datalake/jms/username" global="datalake/jms/username" type="java.lang.String" />
<ResourceLink name="datalake/jms/password" global="datalake/jms/password" type="java.lang.String" />
<ResourceLink name="jms/LvNlvDatalake" global="jms/LvNlvDatalake" type="java.lang.String" />
<ResourceLink name="eai/eai_ziel_monitor" global="eai/eai_ziel_monitor" type="java.lang.String" />
<ResourceLink name="eai/test_display_d" global="eai/test_display_d" type="java.lang.String" />
<ResourceLink name="eai/test_display_dm" global="eai/test_display_dm" type="java.lang.String" />
<ResourceLink name="rest/security/username" global="rest/security/username" type="java.lang.String" />
<ResourceLink name="rest/security/password" global="rest/security/password" type="java.lang.String" />
<ResourceLink name="security/activePermissionBusinessDelegateClassName" global="security/activePermissionBusinessDelegateClassName" type="java.lang.String" />
<ResourceLink name="security/audit/fileOnly" global="security/audit/fileOnly" type="java.lang.String" />
<ResourceLink name="management/gevodisable" global="management/gevodisable" type="java.lang.String" />
<ResourceLink name="management/gevodisableServiceUrl" global="management/gevodisableServiceUrl" type="java.lang.String" />
<ResourceLink name="vertragssperre/vertragssperreServiceBeanName" global="vertragssperre/vertragssperreServiceBeanName" type="java.lang.String" />
<ResourceLink name="messaging/resourceBundleName" global="messaging/resourceBundleName" type="java.lang.String" />
<ResourceLink name="management/gevodisable" global="management/gevodisable" type="java.lang.String" />
<ResourceLink name="management/gevodisableServiceUrl" global="management/gevodisableServiceUrl" type="java.lang.String" />
<ResourceLink name="management/plausidisable" global="management/plausidisable" type="java.lang.String" />
<ResourceLink name="management/plausidisableServiceUrl" global="management/plausidisableServiceUrl" type="java.lang.String" />
<ResourceLink name="LF4/NETWORK_NAME#1" global="LF4/NETWORK_NAME#1" type="java.lang.String" />
<ResourceLink name="LF4/NETWORK_NAME#2" global="LF4/NETWORK_NAME#2" type="java.lang.String" />
<ResourceLink name="LF4/SYSTEM.TEST" global="LF4/SYSTEM.TEST" type="java.lang.String" />
<ResourceLink name="LF4/CORBA.NAMING_SERVICE_LOCATIONS#1" global="LF4/CORBA.NAMING_SERVICE_LOCATIONS#1" type="java.lang.String" />
<ResourceLink name="LF4/CORBA.NAMING_SERVICE_LOCATIONS#2" global="LF4/CORBA.NAMING_SERVICE_LOCATIONS#2" type="java.lang.String" />
<ResourceLink name="startPage" global="startPage" type="java.lang.String" />
<ResourceLink name="de/signaliduna/nlv/system" global="de/signaliduna/nlv/system" type="java.lang.String" />
<ResourceLink name="de/signaliduna/nlv/eai/staticSql" global="de/signaliduna/nlv/eai/staticSql" type="java.lang.String" />
<ResourceLink name="LF4/ABFDS.KBFHOST" global="LF4/ABFDS.KBFHOST" type="java.lang.String" />
<ResourceLink name="vsi/username" global="vsi/username" type="java.lang.String" />
<ResourceLink name="vsi/password" global="vsi/password" type="java.lang.String" />
<ResourceLink name="vsi/serverBaseURL" global="vsi/serverBaseURL" type="java.lang.String" />
<ResourceLink name="vsi/nutzeVsi" global="vsi/nutzeVsi" type="java.lang.String" />
<ResourceLink name="kfn/MONITOR" global="kfn/MONITOR" type="java.lang.String" />
<!-- ### msg -->
<ResourceLink name="vsi/xmlDumpPath" global="vsi/xmlDumpPath" type="java.lang.String" />
<Resource name="eis/nlvIMS" auth="Container"
type="javax.resource.cci.ConnectionFactory"
factory="de.signaliduna.nlv.common.ims.ImsConnectionFactory"
dataStoreName="${mvn.eis.dataStoreName}"
hostName="${mvn.eis.hostName}"
portNumber="${mvn.eis.portNumber}" />
<Resource name="jdbc/nlvDS"
factory="de.signaliduna.nlv.common.db.TransactionAwareBasicDataSourceFactory"
auth="Container"
type="javax.sql.DataSource"
username="S000236"
password="{AES}/VrLl4oWym6sOgqLDsko5w=="
driverClassName="com.ibm.db2.jcc.DB2Driver"
url="jdbc:db2://hhdbcs1:50000/DSNT:currentSchema=${mvn.database.schema};clientProgramName=ebfloct;"
maxActive="3"
maxIdle="2"/>
<Resource name="java:comp/env/jms/NlvDatalakeQCF"
auth="Container"
type="com.ibm.mq.jms.MQQueueConnectionFactory"
factory="com.ibm.mq.jms.MQQueueConnectionFactoryFactory"
description="JMS Queue Connection Factory for sending messages to NLVDAL-Queue"
HOST="qtl.system-a.local"
PORT="1426"
CHAN="CL.NLVDAL"
TRAN="1"
QMGR="QTL006"/>
<Resource name="jms/LvNlvDatalake"
auth="Container"
type="com.ibm.mq.jms.MQQueue"
factory="com.ibm.mq.jms.MQQueueFactory"
description="JMS Queue"
QU="LV.NLV.DAL.VERTRAG"/>
</Context>
</Host>
</Engine>
</Service>
</Server>
Строка 20: <Server port="8005" shutdown="SHUTDOWN">
Буду рад, если у кого-нибудь возникнет идея.