From: Kruk, S. <seb...@co...> - 2010-03-24 13:34:28
|
(sorry for the formatting - crappy Corpo-Outlook thing) Hi, Due to various constraints of the legacy web application (which I extended to use eXist) I could not deploy eXist directly into Tomcat (that we use as a servlet container). We started with running eXist as an embedded DB - but quickly figured it was not what we wanted as it was impossible to access the database while the service was up. So I had merged eXist into our web application by copying some of the definitions of servlets from eXist web.xml to our web.xml. I have to report that all runs smoothly. However, I have one concern. When running in the embedded mode - we had implemented the shutdown procedure as suggested in the documentation. Do I still need to do that while in this merged-deployed-in-tomcat mode ? Or will it shut itself down nicely together with tomcat ? I ask because the current shutdown procedure throws exception (see below), and I am a little lost whether to turn it off or not. Btw. I have made sure that the user I use to shutdown the eXist is in the dba group. Thanks for any hints. Cheers, Sebastian * The code that attempts to shut eXist down: Log.trace( Log.RTM, "Shutting down eXist database" ); Collection collection = getCollection(null, internal); // this returns the root collection DatabaseInstanceManager manager = ( DatabaseInstanceManager )collection.getService( "DatabaseInstanceManager", "1.0" ); manager.shutdown( ); //line 335 * The exception T RTM 10-03-24 12:18:53.839 Shutting down eXist database E RTM 10-03-24 12:18:55.824 org.xmldb.api.base.XMLDBException: shutdown failed at org.exist.xmldb.RemoteDatabaseInstanceManager.shutdown(RemoteDatabaseIns tanceManager.java:40) at org.exist.xmldb.RemoteDatabaseInstanceManager.shutdown(RemoteDatabaseIns tanceManager.java:27) at adlex.iti.xq.XQueryService.shutdownDatabase(XQueryService.java:335) at adlex.rtm.jobs.RtmJob.stop(RtmJob.java:344) at adlex.delta.server.Admin$2.run(Admin.java:394) at adlex.delta.common.util.ThreadStarter$MyThread.run(ThreadStarter.java:17 5) at adlex.delta.common.ManagedThread.run(ManagedThread.java:64) Caused by: org.apache.xmlrpc.XmlRpcException: Failed to create input stream: Connection refused: connect at org.apache.xmlrpc.client.XmlRpcSunHttpTransport.getInputStream(XmlRpcSun HttpTransport.java:91) at org.apache.xmlrpc.client.XmlRpcStreamTransport.sendRequest(XmlRpcStreamT ransport.java:144) at org.apache.xmlrpc.client.XmlRpcHttpTransport.sendRequest(XmlRpcHttpTrans port.java:115) at org.apache.xmlrpc.client.XmlRpcSunHttpTransport.sendRequest(XmlRpcSunHtt pTransport.java:69) at org.apache.xmlrpc.client.XmlRpcClientWorker.execute(XmlRpcClientWorker.j ava:56) at org.apache.xmlrpc.client.XmlRpcClient.execute(XmlRpcClient.java:167) at org.apache.xmlrpc.client.XmlRpcClient.execute(XmlRpcClient.java:158) at org.apache.xmlrpc.client.XmlRpcClient.execute(XmlRpcClient.java:147) at org.exist.xmldb.RemoteDatabaseInstanceManager.shutdown(RemoteDatabaseIns tanceManager.java:38) ... 6 more Caused by: java.net.ConnectException: Connection refused: connect at java.net.PlainSocketImpl.socketConnect(Native Method) at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333) at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195) at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182) at java.net.Socket.connect(Socket.java:520) at java.net.Socket.connect(Socket.java:470) at sun.net.NetworkClient.doConnect(NetworkClient.java:157) at sun.net.www.http.HttpClient.openServer(HttpClient.java:388) at sun.net.www.http.HttpClient.openServer(HttpClient.java:523) at sun.net.www.http.HttpClient.parseHTTP(HttpClient.java:640) at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnec tion.java:957) at org.apache.xmlrpc.client.XmlRpcSunHttpTransport.getInputStream(XmlRpcSun HttpTransport.java:89) ... 14 more -- Sebastian Ryszard Kruk, PhD Technology Captain Compuware phone: +48.585.247.909 email: seb...@co... The contents of this e-mail are intended for the named addressee only. It contains information that may be confidential. Unless you are the named addressee or an authorized designee, you may not copy or use it, or disclose it to anyone else. If you received it in error please notify us immediately and then destroy it. Compuware sp. z o.o. (registration number KRS 595) is a company registered in Poland whose registered office is at Ul. Dmowskiego 12,80-264 Gdansk Rejestr handlowy KRS 0000000595 Sadu Rejonowego Gdansk-Polnoc w Gdansku VII Wydzial Gospodarczy Kapital zakladowy 1.140.000 zl oplacony gotówka; NIP: 584-20-88-050; REGON: 191352920 |