Received: from malur.postgresql.org ([2a02:16a8:dc51::56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fkA9l-0001A5-NM for pgsql-general@arkaria.postgresql.org; Mon, 30 Jul 2018 15:32:22 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1fkA9j-0002UI-2b for pgsql-general@arkaria.postgresql.org; Mon, 30 Jul 2018 15:32:19 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fkA9i-0002UB-Op for pgsql-general@lists.postgresql.org; Mon, 30 Jul 2018 15:32:18 +0000 Received: from postino-1.mail.etat.lu ([185.106.24.41]) by magus.postgresql.org with esmtps (TLS1.0:RSA_CAMELLIA_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1fkA9f-0001Fq-7K for pgsql-general@lists.postgresql.org; Mon, 30 Jul 2018 15:32:17 +0000 Received: from dispatcher-1.mail.etat.lu (dispatch-1.cie.etat.lu [148.110.136.40]) (using TLSv1 with cipher CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by postino-1.mail.etat.lu (Postfix) with ESMTPS id 7DB22EA180 for ; Mon, 30 Jul 2018 17:32:13 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=etat.lu; s=mail201504; t=1532964733; bh=IXajnpKR5nyRrRZKhAxh44EAsbZ32py9/ZN50oLou2M=; h=From:To:Subject:Date:Message-ID:Content-Type:MIME-Version:From; b=A4ia97d90Q9qdn4i+Iuh+qJ7VZsKG1YEU+8h4QzSxXE4oj/rZZOy9cPSkCcQZjFJX D+/26lboFk7De9KYPKsezMJBrCw27hIwKSdtTRD4Xo7ZlD3CpO5fyISTPSIKCZuqMj BFlynTVHlpSdHAacnBdupmazmvpw8QX8CJK/UtKk1D8Cd/YkjyX0L7kZMae4CJO/R2 XC2yOgJRDyuHugYKnCkl5F6An1fVyjLYztWsV5TfAXQNn/Vqw0FCBdgg/UUTHIHeEX PVeFHIqpoBksdQ9kAZijYm16rTFuuA2w7i51si0s+v9c5amm+PLrAJmHQqzkUl+cML 2ewB5pbE8Cf7A== Received: from dispatcher-1.mail.etat.lu (localhost [127.0.0.1]) by localhost (CTIE ESMTP Dispatch 1) with SMTP id 6B53958067 for ; Mon, 30 Jul 2018 17:32:13 +0200 (CEST) Received: from EX16MBXPRD-08.gouv.etat.lu (ex16mbxprd-08.gouv.etat.lu [148.110.210.75]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by dispatcher-1.mail.etat.lu (CTIE ESMTP Dispatch 1) with ESMTPS id 64F2058063 for ; Mon, 30 Jul 2018 17:32:10 +0200 (CEST) Received: from EX16MBXPRD-06.gouv.etat.lu (148.110.210.74) by EX16MBXPRD-06.gouv.etat.lu (148.110.210.74) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.1531.3; Mon, 30 Jul 2018 17:32:10 +0200 Received: from EX16MBXPRD-06.gouv.etat.lu ([::1]) by EX16MBXPRD-06.gouv.etat.lu ([::1]) with mapi id 15.01.1531.003; Mon, 30 Jul 2018 17:32:10 +0200 From: Didier Wiroth To: "pgsql-general@lists.postgresql.org" Subject: jndi jdbc url with ssl authenticat in tomcat ... fails org.xml.sax.SAXParseException columnNumber: 79; The reference to entity "ssl" must end with the ';' delimiter Thread-Topic: jndi jdbc url with ssl authenticat in tomcat ... fails org.xml.sax.SAXParseException columnNumber: 79; The reference to entity "ssl" must end with the ';' delimiter Thread-Index: AdQoGkPR17Ry4vU+THmCCWmPDxsVFQ== Date: Mon, 30 Jul 2018 15:32:10 +0000 Message-ID: Accept-Language: en-GB, fr-LU, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [148.110.5.120] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Hello, I'm trying to configure a postgres jndi resource in tomcat that needs to co= nnect via ssl and client certificate for authentication. Unfortunately ... without success. The user is: esrde_aoo and authenticates with a certificate (no password!). Here is the tomcat 8.5.31 (running on jre 1.8.0_152-b16) resource configura= tion: I tried many many different combination ... it always fails at the second p= arameter. org.apache.tomcat.util.digester.Digester.fatalError Parse Fatal Error at li= ne 21 column 79: The reference to entity "ssl" must end with the ';' delimi= ter. org.xml.sax.SAXParseException; systemId: file:/D:/apps/web-data/tam/conf/d= b-context-ora12.xml; lineNumber: 21; columnNumber: 79; The reference to ent= ity "ssl" must end with the ';' delimiter. at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXPa= rseException(ErrorHandlerWrapper.java:203) at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.fatalError(= ErrorHandlerWrapper.java:177) at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XM= LErrorReporter.java:400) at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XM= LErrorReporter.java:327) at com.sun.org.apache.xerces.internal.impl.XMLScanner.reportFatalError(XML= Scanner.java:1472) at com.sun.org.apache.xerces.internal.impl.XMLScanner.scanAttributeValue(X= MLScanner.java:913) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.= scanAttribute(XMLDocumentFragmentScannerImpl.java:1548) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.= scanStartElement(XMLDocumentFragmentScannerImpl.java:1315) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$= FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2784) at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XML= DocumentScannerImpl.java:602) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.= scanDocument(XMLDocumentFragmentScannerImpl.java:505) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML= 11Configuration.java:841) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML= 11Configuration.java:770) at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.ja= va:141) at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Abst= ractSAXParser.java:1213) at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.par= se(SAXParserImpl.java:643) at org.apache.tomcat.util.digester.Digester.parse(Digester.java:1521) at org.apache.catalina.startup.ContextConfig.processContextConfig(ContextC= onfig.java:527) at org.apache.catalina.startup.ContextConfig.contextConfig(ContextConfig.j= ava:465) at org.apache.catalina.startup.ContextConfig.init(ContextConfig.java:728) at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.= java:310) at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase= .java:94) at org.apache.catalina.util.LifecycleBase.setStateInternal(LifecycleBase.j= ava:395) at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:108) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:140) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.j= ava:754) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:730) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:734) at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:= 1140) at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.j= ava:1875) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.ja= va:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.j= ava:624) at java.lang.Thread.run(Thread.java:748) I would really appreciate some help. Is my connection String correct? Is this a tomcat or java bug? Thank you very much any hint/help! Regards, Didier