after making the jar file ..try giving classpath in the tomcat.bat file Imagination is More Important than Knowledge Cheers !!! MSM
-----Original Message----- From: Gare, Tref [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 15, 2002 4:38 AM To: [EMAIL PROTECTED] Subject: Accessing self created packages in Tomcat3.3 Hi all, Another question that is threatening my remaining follicles. We've created a bunch of javabeans for one app which are all working fine. However we've decided that 4 of them should be made more generally available for other apps we're building. To that end I've created a package called com.ue.ueUtils and altered each of the beans such that the are now referencing that package. I've created the relevant folder structure ie TOMCAT_HOME\webapps\ourTest\WEB-INF\classes\com\ue\ueUtils , and placed the four beans in question in there, then attempted to recompile them. Three of them work fine but the fourth, which references 2 of the others in the package, fails saying the package does not exist. The other beans in the original packages (com.ue.fai & com.ue.servlets) can't see the ueUtils package either. I've tried jarring the package and putting that jar in the lib folder of the relevant app ie: TOMCAT_HOME\webapps\ourTest\WEB-INF\lib but this hasn't solved the problem either. The final resorts of reboots and restarts have failed to shift anything. Any advice will be gratefully recieved, Thanks Tref > -----Original Message----- > From: Karbiner, Jacob [SMTP:[EMAIL PROTECTED]] > Sent: Tuesday,14 May 2002 12:58 > To: [EMAIL PROTECTED] > Subject: Re: JDBC connection failing to Oracle 8i with Tomcat3.3 > > Try renaming classes12.zip to classes12.jar this worked for me > > -----Original Message----- > From: Lloyd Wiggins [mailto:[EMAIL PROTECTED]] > Sent: Monday, May 13, 2002 10:44 AM > To: [EMAIL PROTECTED] > Subject: Re: JDBC connection failing to Oracle 8i with Tomcat3.3 > > > What we did for this problem was to write a wrapper script for the > startup.sh script. In the wrapper script set the classpath > explicitly to point to the needed jar files and then call the normal > startup > script. > > Yes it's a hack but it solved the problem for us, as tomcat3.2.1 refused > to > load > the jar files in the WEB-INF directory. > > Good luck. > > > > -----Original Message----- > > From: Emmanuel Eze [mailto:[EMAIL PROTECTED]] > > Sent: Monday, May 13, 2002 1:37 AM > > To: [EMAIL PROTECTED] > > Subject: Re: JDBC connection failing to Oracle 8i with Tomcat3.3 > > > > > > Try to extract your driver jar file into your web server default class > > directory. That way it will surely see the classes. > > > > -----Original Message----- > > From: Gare, Tref [mailto:[EMAIL PROTECTED]] > > Sent: Monday, May 13, 2002 10:23 AM > > To: [EMAIL PROTECTED] > > Subject: JDBC connection failing to Oracle 8i with Tomcat3.3 > > > > > > Hi to all, > > > > Any help on this one will help save the remaining hair on my > > head for which > > I will be truly grateful. We're having enormous dificulty > > with getting an > > Oracle JDBC driver recognised in our webapp. A day of > > trawling google and > > the archives have brought up a variety of solutions which > > we've gone through > > but so far to no avail.. > > > > The base error we're getting is the following > > Root cause:java.lang.ClassNotFoundException: > > oracle.jdbc.driver.OracleDriver > > The environment is NT4, Tomcat 3.3, jdk1.3.1_01 and Oracle 8i > > > > Todate we have: > > * downloaded the oracle JDBC driver classes12.zip and dumped > > it into the the > > tomcat\lib directory both as the original zip and then > > renamed as a jar - > > no success > > * Tried it in the specific web-app's lib folder. > > * Edited the class path such that wherever it is can be seen > > by the jdk and > > attempted to run a small test app/class > > * Expanded the zip file into the above directories one by one > > > > Our connection code looks pretty standard > > > > Class.forName("oracle.jdbc.driver.OracleDriver"); > > Connection conn = > > DriverManager.getConnection("jdbc:oracle:thin:@123.123.12.123: > > dbname","user" > > ,"pwd"); > > > > but we're getting nowhere. > > > > Does anyone have any thoughts? > > > > Thanks in advance > > > > > > Tref Gare > > > > ============================================================== > > ============= > > To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff > > JSP-INTEREST". > > For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST > > DIGEST". > > Some relevant FAQs on JSP/Servlets can be found at: > > > > http://archives.java.sun.com/jsp-interest.html > > http://java.sun.com/products/jsp/faq.html > > http://www.esperanto.org.nz/jsp/jspfaq.jsp > > http://www.jguru.com/faq/index.jsp > > http://www.jspinsider.com > > > > ============================================================== > > ============= > > To unsubscribe: mailto [EMAIL PROTECTED] with body: > > "signoff JSP-INTEREST". > > For digest: mailto [EMAIL PROTECTED] with body: "set > > JSP-INTEREST DIGEST". > > Some relevant FAQs on JSP/Servlets can be found at: > > > > http://archives.java.sun.com/jsp-interest.html > > http://java.sun.com/products/jsp/faq.html > > http://www.esperanto.org.nz/jsp/jspfaq.jsp > > http://www.jguru.com/faq/index.jsp > > http://www.jspinsider.com > > > > ========================================================================== > = > To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff > JSP-INTEREST". > For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST > DIGEST". > Some relevant FAQs on JSP/Servlets can be found at: > > http://archives.java.sun.com/jsp-interest.html > http://java.sun.com/products/jsp/faq.html > http://www.esperanto.org.nz/jsp/jspfaq.jsp > http://www.jguru.com/faq/index.jsp > http://www.jspinsider.com > > ========================================================================== > = > To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff > JSP-INTEREST". > For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST > DIGEST". > Some relevant FAQs on JSP/Servlets can be found at: > > http://archives.java.sun.com/jsp-interest.html > http://java.sun.com/products/jsp/faq.html > http://www.esperanto.org.nz/jsp/jspfaq.jsp > http://www.jguru.com/faq/index.jsp > http://www.jspinsider.com =========================================================================== To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com ************************************************************************** This email (including any attachments) is intended for the sole use of the intended recipient/s and may contain material that is CONFIDENTIAL AND PRIVATE COMPANY INFORMATION. Any review or reliance by others or copying or distribution or forwarding of any or all of the contents in this message is STRICTLY PROHIBITED. If you are not the intended recipient, please contact the sender by email and delete all copies; your cooperation in this regard is appreciated. ************************************************************************** =========================================================================== To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com