Hi, The server doesn't need your .java files, only the compiled class files. You can put them in the WEB-INF/classes (as-is, .class files) or WEB-INF/lib (packaged in a jar file) directory of your webapp. You need to define and map your servlet in your WEB-INF/web.xml file.
Yoav Shapira Millennium Research Informatics >-----Original Message----- >From: Kayley Ma [mailto:[EMAIL PROTECTED] >Sent: Sunday, March 21, 2004 6:33 PM >To: [EMAIL PROTECTED] >Subject: Tomcat Deployment question > >Hi all, > >For a deployed WebApp with a applet and a servlet (I already generated a >WAR >in JBuilder), where should i put my servlet so that Tomcat knows where to >find it? > >Current this is how my system is set up. Using JBuilder, I created a >WebApplication where I direct the defaultroot folder to the location of my >applet files. Then within my WebApplication, I created a servlet that the >applet should communicate with. Then a WAR is generated when I build in >JBuilder. I then deploy this WAR file into Tomcat5 using the >TomcatManager. >However, when I select the HTML file, I can see that my applet is running >but it can't communicate with the servlet and I get a java error that saids >filenotfound. > >So what is it that I'm doing wrong? Where should I put my servlet.java and >servlet class so that Tomcat can find it? > >Thank you! > >Kay > > > >--------------------------------------------------------------------- >To unsubscribe, e-mail: [EMAIL PROTECTED] >For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
