Hi, During a good night sleep I realized that I have to compile the modified .java file :-)
This is my current directory: bml0065:classes administrator$ pwd /usr/local/tomcat/webapps/examples/WEB-INF/classes When I do it I am getting the following errors: <nyissz> bml0065:classes administrator$ sudo javac SessionExample.java Password: SessionExample.java:27: package javax.servlet does not exist import javax.servlet.ServletException; ^ SessionExample.java:28: package javax.servlet.http does not exist import javax.servlet.http.HttpServlet; ^ SessionExample.java:29: package javax.servlet.http does not exist import javax.servlet.http.HttpServletRequest; ^ SessionExample.java:30: package javax.servlet.http does not exist import javax.servlet.http.HttpServletResponse; ^ SessionExample.java:31: package javax.servlet.http does not exist import javax.servlet.http.HttpSession; ^ SessionExample.java:41: cannot find symbol symbol: class HttpServlet public class SessionExample extends HttpServlet { ^ SessionExample.java:48: cannot find symbol symbol : class HttpServletRequest location: class SessionExample public void doGet(HttpServletRequest request, ^ SessionExample.java:49: cannot find symbol symbol : class HttpServletResponse location: class SessionExample HttpServletResponse response) ^ SessionExample.java:50: cannot find symbol symbol : class ServletException location: class SessionExample throws IOException, ServletException ^ SessionExample.java:144: cannot find symbol symbol : class HttpServletRequest location: class SessionExample public void doPost(HttpServletRequest request, ^ SessionExample.java:145: cannot find symbol symbol : class HttpServletResponse location: class SessionExample HttpServletResponse response) ^ SessionExample.java:146: cannot find symbol symbol : class ServletException location: class SessionExample throws IOException, ServletException ^ SessionExample.java:80: cannot find symbol symbol : class HttpSession location: class SessionExample HttpSession session = request.getSession(true); ^ SessionExample.java:47: method does not override or implement a method from a supertype @Override ^ SessionExample.java:143: method does not override or implement a method from a supertype @Override ^ 15 errors <nyassz> What am I doing wrong ? My guess is that I need a -classpath option, so javac can find all those definitions it needs. What should that be on OSX 10.6.6 ? Thanks ahead, János On Apr 26, 2011, at 5:25 PM, János Löbb wrote: > Folks, > > What should I change if I want to have as title in this servlet not "Session > Example" but rather "Session Example Old" ? > > I modified the servlets/sessions.html and also the SessionExample.java in the > WEB-INF/classes, created a war file with jar, un-deployed and re-deployed, > but I do not see the change. > > Thanks ahead, > > János > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > For additional commands, e-mail: users-h...@tomcat.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org