B.Swaminathan<br /> <br />Mobile:+91 09886510453
B.Swaminathan<br /> <br />Mobile:+91 09886510453
Im working in Windows Environment using J2SDK1.4.2_04 and J2EESDK1.3.1
B.Swaminathan<br /> <br />Mobile:+91 09886510453
Im a beginner,please correct me if i am wrong coz i believe Servlet engine is the server that includes built-in support for Servlets.
B.Swaminathan<br /> <br />Mobile:+91 09886510453
Since this is a servlet part of a web application
Excuse me, but I couldn't see any mention, in B's posts, that he has a Web application. The only thing I can ascertain (from the information B has posted) is that he has a servlet that is trying to connect to a database, and that he is using SUN's application server. I suggest asking B to verify your assumptions, or you [both] may end up chasing your tails.
A servlet is Java Technology based web component, managed by a container, that generates dynamic content.
...
Containers, sometimes called servlet engines, are web server extensions that provide servlet functionality.
...
The web application classloader must load classes from the WEB-INF/ classes directory first, and then from library JARs in the WEB-INF/lib directory.
B.Swaminathan<br /> <br />Mobile:+91 09886510453
B.Swaminathan<br /> <br />Mobile:+91 09886510453
The web application classloader ...
from Avi
because if your assumption was wrong, your answer may have just confused
the two of you even more
posted April 12, 2005 06:37 AM Profile for Avi Abrami Send
New Private Message Edit/Delete Post Reply With Quote B,
So you are having trouble connecting to your database from your servlet,
right? If you are using a servlet, then you must also be using a servlet
engine (also known as a servlet container). Chances are that you need to
configure the CLASSPATH used by your servlet engine -- so that it can
find the "classes12.jar" file (or whatever JDBC driver you are using).
So maybe you can now tell us what servlet engine you are using, and then
maybe someone will be able to tell you what to do so that your servlet
can find your JDBC driver.
Im working in Windows Environment using J2SDK1.4.2_04 and J2EESDK1.3.1
2. Since this is a servlet part of a web application, we need to make
the ojdbc14.jar available to the any programs that are apart of the web
application. Place the ojdbc14.jar in the WEB-INF/lib of the web
application prior to re-deploying the web application to the J2EE
application server.
B.Swaminathan<br /> <br />Mobile:+91 09886510453