• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

help me deploy my webapp

 
Celinio Fernandes
Ranch Hand
Posts: 549
Eclipse IDE Google Web Toolkit Java
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Ron Newman
Ranch Hand
Posts: 1056
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Should be
<form name="NAME1" ACTION="/betterURL" method="post">
I have no idea what
onsubmit="return check(this)"
does. Take it out.
 
Celinio Fernandes
Ranch Hand
Posts: 549
Eclipse IDE Google Web Toolkit Java
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1056
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 549
Eclipse IDE Google Web Toolkit Java
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I put it in
K:\jakarta-tomcat-4.1.24\common\lib
works fine, thanks very much, excellent help
 
Ravikumar Jambunathan
Ranch Hand
Posts: 66
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 31
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can unzip the file and then jar it to get classes12.jar
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13045
6
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic