Meaningless Drivel is fun!*
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


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "help me deploy my webapp" Watch "help me deploy my webapp" New topic
Author

help me deploy my webapp

Celinio Fernandes
Ranch Hand

Joined: Jun 28, 2003
Posts: 547

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)
K:\jakarta-tomcat-4.1.24\webapps\myservlets
K:\jakarta-tomcat-4.1.24\webapps\myservlets\WEB-INF
K:\jakarta-tomcat-4.1.24\webapps\myservlets\WEB-INF\classes\send.class
K:\jakarta-tomcat-4.1.24\webapps\myservlets\WEB-INF\lib
K:\jakarta-tomcat-4.1.24\webapps\myservlets\WEB-INF\web.xml
K:\jakarta-tomcat-4.1.24\webapps\myservlets\send.java
K:\jakarta-tomcat-4.1.24\webapps\myservlets\resume.jsp
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: 547

thanks.
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(envoi.java:35)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
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
jakarta-tomcat-4.1.24\webapps\myservlets\WEB-INF\lib
or
jakarta-tomcat-4.1.24\common\lib
Celinio Fernandes
Ranch Hand

Joined: Jun 28, 2003
Posts: 547

I put it in
K:\jakarta-tomcat-4.1.24\common\lib
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 classes12.zip 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
Rancher

Joined: Mar 22, 2000
Posts: 12759
    
    5
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.
Bill
 
Don't get me started about those stupid light bulbs.
 
subject: help me deploy my webapp
 
Similar Threads
Servlet delivery in Tomcat
Tomcat 4.0.1 - Servlet not found
Need help with web.xml file
Problems getting servlets to work with inovoker servlet disabled
Servlets with Tomcat 4