Assuming you have a standard dynamic web application that will be published as a war file, you should have the library jars in the WEB-INF/lib folder. Eclipse usually handles this for you. Since it doesn't seem to be doing so, you might have a classpath dependency validator warning saying that a classpath entry will not be exported or published. In this case, you can right-click the warning and use the "quick fix" option, which will modify the .classpath file (visible from the Navigator view) so that the jar is published with the application.
________________________________ From: John Wilkinson [mailto:[email protected]] Sent: Thursday, September 10, 2009 4:07 AM To: [email protected] Subject: How to run postgesql under axis2 in Eclipse Hi, I am struggling here, as I m new to Axis2/Tomcat and Eclipse. I have a POJO that I am running under Avis2 inside Eclipse. In it I call up the org.postgresql,Driver class. I have included the postgres .jar file in Eclipse, I can see it in the libraries. When I run the object in Eclipse, I get a ClassNotFoundException. If I run the class as a simple application, with the same setup it's OK. I am thinking I need to copy the .jar file somewhere, but where? Many regards, John. John Wilkinson. Product Engineer. ----x-y-r-a-t-e-x---- e-mail: [email protected]<mailto:[email protected]> Tel: +44 (0)2392 6225 Mobile: +44 (0)7810 497152 ______________________________________________________________________ This email may contain privileged or confidential information, which should only be used for the purpose for which it was sent by Xyratex. No further rights or licenses are granted to use such information. If you are not the intended recipient of this message, please notify the sender by return and delete it. You may not use, copy, disclose or rely on the information contained in it. Internet email is susceptible to data corruption, interception and unauthorised amendment for which Xyratex does not accept liability. While we have taken reasonable precautions to ensure that this email is free of viruses, Xyratex does not accept liability for the presence of any computer viruses in this email, nor for any losses caused as a result of viruses. Xyratex Technology Limited (03134912), Registered in England & Wales, Registered Office, Langstone Road, Havant, Hampshire, PO9 1SA. The Xyratex group of companies also includes, Xyratex Ltd, registered in Bermuda, Xyratex International Inc, registered in California, Xyratex (Malaysia) Sdn Bhd registered in Malaysia, Xyratex Technology (Wuxi) Co Ltd registered in The People's Republic of China and Xyratex Japan Limited registered in Japan. ______________________________________________________________________ ________________________________ STATEMENT OF CONFIDENTIALITY: The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain confidential or privileged information. If you are not the intended recipient, please notify WHI Solutions immediately at [email protected], and destroy all copies of this message and any attachments.
