• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

help me deploy my webapp

 
Ranch Hand
Posts: 563
Google Web Toolkit Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 1056
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 563
Google Web Toolkit Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 563
Google Web Toolkit Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I put it in
K:\jakarta-tomcat-4.1.24\common\lib
works fine, thanks very much, excellent help
 
Ranch Hand
Posts: 66
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You can unzip the file and then jar it to get classes12.jar
 
Author and all-around good cowpoke
Posts: 13078
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
reply
    Bookmark Topic Watch Topic
  • New Topic