File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Tomcat and the fly likes help me deploy my webapp Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "help me deploy my webapp" Watch "help me deploy my webapp" New topic

help me deploy my webapp

Celinio Fernandes
Ranch Hand

Joined: Jun 28, 2003
Posts: 549

I am running jakarta-tomcat-4.1.24
I can't seem to figure out how to configure my WEB.xml file
What do i need to do to make my JSP run when I call it with this URL:
http://localhost:82/resume.jsp ? (i configured it to run on port 82)
I want to call the servlet send.class inside my JSP resume.jsp:
Is my webapps directory correct ?
Is my JSP correctly calling the servlet ?

Is my web.xml file correct ?

thanks for your help

SCJP 1.4, SCWCD 1.4, SCBCD 1.3, SCBCD 5
Visit my blog
Ron Newman
Ranch Hand

Joined: Jun 06, 2002
Posts: 1056
Should be
<form name="NAME1" ACTION="/betterURL" method="post">
I have no idea what
onsubmit="return check(this)"
does. Take it out.

Ron Newman - SCJP 1.2 (100%, 7 August 2002)
Celinio Fernandes
Ranch Hand

Joined: Jun 28, 2003
Posts: 549

onsubmit="return check(this)" is there for javascript control form.
the problem seems to be somewhere else though, i got the error HTTP 500:
java.lang.NoClassDefFoundError: oracle/jdbc/driver/OracleDriver
at envoi.doPost(
at javax.servlet.http.HttpServlet.service(
at javax.servlet.http.HttpServlet.service(
Something wrong with this ? :
do I need to set up a properties file in jakarta for it to recognize my
jdbc driver ?
Ron Newman
Ranch Hand

Joined: Jun 06, 2002
Posts: 1056
You need to put the Oracle driver .jar file into either
Celinio Fernandes
Ranch Hand

Joined: Jun 28, 2003
Posts: 549

I put it in
works fine, thanks very much, excellent help
Ravikumar Jambunathan
Ranch Hand

Joined: Aug 25, 2003
Posts: 66
hi longbeach,
i too face the same sort of problem even though i have included in my common/lib directory.
could you tell me the oracle driver jar file name you have included.
thanks in advance.
Dave Jochim
Ranch Hand

Joined: Jan 08, 2003
Posts: 31
You can unzip the file and then jar it to get classes12.jar
William Brogden
Author and all-around good cowpoke

Joined: Mar 22, 2000
Posts: 13036
Tomcat typically will not load classes in the "default" package correctly.

Just to save yourself some grief, ALWAYS put all servlet and helper classes in a package. Naturally your JSP must import the package correctly.
I agree. Here's the link:
subject: help me deploy my webapp
It's not a secret anymore!