Return-Path: Delivered-To: apmail-ws-axis-user-archive@www.apache.org Received: (qmail 11939 invoked from network); 31 May 2004 14:56:52 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 31 May 2004 14:56:52 -0000 Received: (qmail 85038 invoked by uid 500); 31 May 2004 14:56:43 -0000 Delivered-To: apmail-ws-axis-user-archive@ws.apache.org Received: (qmail 84959 invoked by uid 500); 31 May 2004 14:56:41 -0000 Mailing-List: contact axis-user-help@ws.apache.org; run by ezmlm Precedence: bulk Reply-To: axis-user@ws.apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list axis-user@ws.apache.org Received: (qmail 84950 invoked by uid 99); 31 May 2004 14:56:41 -0000 Received: from [129.67.1.163] (HELO tx0.oucs.ox.ac.uk) (129.67.1.163) by apache.org (qpsmtpd/0.27.1) with ESMTP; Mon, 31 May 2004 07:56:41 -0700 Received: from scan0.oucs.ox.ac.uk ([129.67.1.162] helo=localhost) by tx0.oucs.ox.ac.uk with esmtp (Exim 4.24) id 1BUoDM-0005Yp-Dg for axis-user@ws.apache.org; Mon, 31 May 2004 15:56:36 +0100 Received: from rx0.oucs.ox.ac.uk ([129.67.1.161]) by localhost (scan0.oucs.ox.ac.uk [129.67.1.162]) (amavisd-new, port 25) with ESMTP id 21007-10 for ; Mon, 31 May 2004 15:56:36 +0100 (BST) Received: from smtp1.herald.ox.ac.uk ([163.1.0.247]) by rx0.oucs.ox.ac.uk with esmtp (Exim 4.24) id 1BUoDL-0005Yg-2v for axis-user@ws.apache.org; Mon, 31 May 2004 15:56:35 +0100 Received: from userpc13.comlab.ox.ac.uk ([163.1.27.41]) by smtp1.herald.ox.ac.uk with esmtp (Exim 3.35 #1) id 1BUoDL-00021X-3z for axis-user@ws.apache.org; Mon, 31 May 2004 15:56:35 +0100 Subject: Orcale Driver Instantiation causing java.lang.reflect.InvocationTargetException From: Daniel Goodman To: axis-user@ws.apache.org Content-Type: text/plain Organization: Message-Id: <1086015521.1223.6.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.2.2 (1.2.2-5) Date: 31 May 2004 15:58:41 +0100 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Hi I am trying to create a simple web service that will query a database, parse the results and return them. The data base that we are using is an Oracle data base. The application works fine when it is run independently from the command line. However when it is run as a web service, it throws a "java.lang.reflect.InvocationTargetException". Through testing I have discover this exception is caused by the line "new oracle.jdbc.OracleDriver()". I try to catch exceptions, but none seem to be thrown to catch on the server so I have no details of what happens after this line is reached. The application appears to just stop at this line. The driver classes are supplied by oracle in a zip file titled "oracle_jdbc_classes12.zip" after reading on the web that tomcat may be having problems with the zip file, I converted this into a jar file, but to no avail. I am fairly confident that my class paths are all correct. I have a copy of this file in /usr/jakarta-tomcat/webapps/axis/WEB-INF/lib and I have tried having a copy of the file in /usr/jakarta-tomcat/common/lib. I'm now starting to run out of ideas, any help would be greatly appreciated. Daniel java.lang.reflect.InvocationTargetException at org.apache.axis.message.SOAPFaultBuilder.createFault(SOAPFaultBuilder.java:260) at org.apache.axis.message.SOAPFaultBuilder.endElement(SOAPFaultBuilder.java:169) at org.apache.axis.encoding.DeserializationContextImpl.endElement(DeserializationContextImpl.java:1015) at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1528) at org.apache.crimson.parser.Parser2.content(Parser2.java:1779) at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1507) at org.apache.crimson.parser.Parser2.content(Parser2.java:1779) at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1507) at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:500) at org.apache.crimson.parser.Parser2.parse(Parser2.java:305) at org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:442) at javax.xml.parsers.SAXParser.parse(SAXParser.java:345) at org.apache.axis.encoding.DeserializationContextImpl.parse(DeserializationContextImpl.java:242) at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:538) at org.apache.axis.Message.getSOAPEnvelope(Message.java:376) at org.apache.axis.client.Call.invokeEngine(Call.java:2583) at org.apache.axis.client.Call.invoke(Call.java:2553) at org.apache.axis.client.Call.invoke(Call.java:2248) at org.apache.axis.client.Call.invoke(Call.java:2171) at org.apache.axis.client.Call.invoke(Call.java:1691) at CPDNServiceManager.CPSoapBindingStub.remoteinitate(CPSoapBindingStub.java:170) at HandleService.CPServiceConnection.initate(CPServiceConnection.java:41) at HandleService.InitaliseServices.(InitaliseServices.java:32) at HandleService.InitaliseServices.main(InitaliseServices.java:39)