<div dir="ltr">お世話になります。
<div><br></div><div>GCEインスタンスから、CloudSQLインスタンスへSSLを使って接続する設定をご教授いただけないでしょうか?</div><div><br></div><div>最初次のように設定していました</div><div><br></div><div>(jdbc.dicon)抜粋</div><div><div>        &lt;!-- MySQL--&gt;</div><div>        &lt;component name=&quot;xaDataSource&quot;</div><div>                class=&quot;org.seasar.extension.dbcp.impl.XADataSourceImpl&quot;&gt;</div><div>                &lt;property name=&quot;driverClassName&quot;&gt;</div><div>                        &quot;com.mysql.jdbc.Driver&quot;</div><div>                &lt;/property&gt;</div><div><br></div><div>                &lt;property name=&quot;URL&quot;&gt;</div><div>                        &quot;jdbc:mysql://xxx.xxx.xxx.xxx:3306/salescube&quot;</div><div>                &lt;/property&gt;</div><div>                &lt;property name=&quot;user&quot;&gt;&quot;salescube&quot;&lt;/property&gt;</div><div>                &lt;property name=&quot;password&quot;&gt;&quot;salescube&quot;&lt;/property&gt;</div><div>        &lt;/component&gt;</div></div><div><br></div><div>ところが、これですと、ログにエラーらしい出力が無いにもかかわらず、アプリケーションにアクセス出来ないのです。</div><div><br></div><div>そこで、SSL接続の記述を追加し</div><div><br></div><div><div>        &lt;!-- MySQL--&gt;</div><div>        &lt;component name=&quot;xaDataSource&quot;</div><div>                class=&quot;org.seasar.extension.dbcp.impl.XADataSourceImpl&quot;&gt;</div><div>                &lt;property name=&quot;driverClassName&quot;&gt;</div><div>                        &quot;com.mysql.jdbc.Driver&quot;</div><div>                &lt;/property&gt;</div><div><br></div><div>                &lt;property name=&quot;URL&quot;&gt;</div><div>                        &quot;jdbc:mysql://xxx.xxx.xxx.xxx:3306/salescube?verifyServerCertificate=true&amp;useSSL=true&amp;requireSSL=true&quot;</div><div>                &lt;/property&gt;</div><div>                &lt;property name=&quot;user&quot;&gt;&quot;salescube&quot;&lt;/property&gt;</div><div>                &lt;property name=&quot;password&quot;&gt;&quot;salescube&quot;&lt;/property&gt;</div><div>        &lt;/component&gt;</div></div><div><br></div><div>としましたが、キーファイルなどの設定方法が分からず、さらにcatalina.outには、</div><div><br></div><div>Caused by: org.xml.sax.SAXParseException; systemId: file:///usr/share/tomcat/jdbc.dicon; lineNumber: 125; columnNumber: 84; エンティティ&quot;useSSL&quot;への参照は&#39;;&#39;デリミタで終了する必要があります。<br></div><div><br></div><div>と出力されてしまいます。</div><div>もちろん、アプリにアクセスできません。</div><div>このエラーメッセージも理解できずにいるのです。</div><div><br></div><div>想像するに、設定記述が違うのと、SSL接続しか許可していないCloudSQLですから、認証絡みで止まってしまっているのではないかと思うのですが、そのあたりのドキュメントが見当たらず。。。。</div><div><br></div><div>今週中に立ち上げたいと努力はしているのですが、技量不足で難儀しています。</div><div><br></div><div>ヒントでも結構ですので、お助けください。</div><div><br></div><div>よろしくお願いいたします。</div><div><br></div><div>Kuma3</div></div>