Hi Shapira,
thanks so much for your help! right now, i've edited my web.xml file but my applet still can't make the connection to the servlet. 3 addition questions: 1. I would need to open an URL connection in my applet to the servlet... what URL would I give it? ie how do i make the connection from my applet to the servlet in my applet code. right now i have: URL servletURL = new URL(this.getDocumentBase(), "WEB-INF/classes/webblowwebapp1/BlowDesignServlet"); but i'm getting the error: java.io.FileNotFoundException: http://127.0.0.1:8080/WebBlow1/WEB-INF/classes/webblowwebapp1/BlowDesignServlet 2. u mentioned that i should put my servlet class files in the WEB-INF/classes... i built my WebApplication in JBuilder so it actually doesn't have this structure but rather C:\WebBlowWebApp1\classes\webblowwebapp1\servlet.class - is this ok or should i manually change the structure? (but then i notice that once my WAR file generated by JBuilder is put into tomcat/webapp, my class file is in WebBlow1(name of my application to be deployed)/WEB-INF/classes/webblowwebapp1(name of webApplication i built in jbuilder)/servletname. is this correct? 3. does this web.xml file look correct? --- <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN" "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd"> <web-app> <servlet> <servlet-name>blowdesignservlet</servlet-name> <servlet-class>webblowwebapp1.BlowDesignServlet</servlet-class> </servlet> <servlet-mapping> <servlet-name>blowdesignservlet</servlet-name> <url-pattern>/blowdesignservlet</url-pattern> </servlet-mapping> </web-app> ---- my servlet.java is located C:\WebBlowWebApp1\src\webblowwebapp1. thank you so very very much - i'm very new at this and i really appreciate the help! cheers, ~Kayley~ ----- Original Message ----- From: "Shapira, Yoav" <[EMAIL PROTECTED]> To: "Tomcat Users List" <[EMAIL PROTECTED]> Sent: Monday, March 22, 2004 9:24 AM Subject: RE: Tomcat Deployment question > > 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] > ---------------------------------------- This mail sent through www.mywaterloo.ca --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]