compile « Tomcat « JSP-Servlet Q&A

1. How to merge jsp pre-compiled web.xml fragment with main web.xml using Ant

We have the usual web.xml for our web application which includes some jsp and jsp tag files. I want to switch to using pre-compiled jsp's. I have the pre-compilation ...

2. Does tomcat compile servlets automatically?

When we modify a JSP , we can just overwrite the jsp and tomcat autmatically recompile the servelt asociated to it , but if we want to modify a servlet is ...

3. Can I ignore some jsp files when pre-compiling jsp using tomcat?

I'm pre-compiling jsp's in a webapp using tomcat as described here: Is a way to exclude a subset of jsp files in the application? According to the documentation of ...

4. Lifecycle, compilation and replacement of JSPs

I'm having trouble to either find information about this as a whole and specifically about the placement of JSP code in tomcat. I have an application and develop for it. I' remotely ...

5. JSP Subdirectory problem -- Unable to compile the jsp

I have created a website and hosted on windows and tomcat 6 . The application could not detect the class files in WEB-INF->classes folder when we access the JSP file from ...

6. tomcat fail to update newly compiled java files

I am using tomcat 6 web server to do some jsp stuff. If I made some changes to an associated java file and compile it, tomcat fail to reflect such changes.(if those ...

7. Compiling a simple hello world servlet into a .war for tomcat

I'm doing some simple benchmarks, and I want to create a simple servlet that displays hello world, I have that part:

import javax.servlet.*;
import javax.servlet.http.*;

public class HelloWorld extends HttpServlet{ 
  public ...

9. Unable to compile JSP file with Tomcat 4.0.3

I've very recently begun meddling with JSP. Using tomcat 4.0.3 (stable release), I've been working with regular servlets for a while now and have not had any problems... although, whenever I try to view a .jsp page on the server, I get the following exception (I've tried searching on sun's site as well as jakarta's.. but can't seem to find any ...

10. Tomcat won't always compile JSP Files

I have Apache and Tomcat together on a WinNT 4.0 but something is strange. I start Apache as a service. I can start Tomcat A. as a service or B. with a batch file The batch file is : start "Tomcat" "%JAVA_HOME%\bin\java" -Djava.endorsed.dirs="%CATALINA_HOME%\bin;%CATALINA_HOM%\common\lib" -classpath "%JAVA_HOME%\lib\tools.jar;%CATALINA_HOME%\bin\bootstrap.jar" -Dcatalina.base="%CATALINA_HOME%" -Dcatalina.home="%CATALINA_HOME%""%CATALINA_HOME%\temp" org.apache.catalina.startup.Bootstrap start Installing the service is : "%CATALINA_HOME%\bin\tomcat.exe" -install Tomcat "%JAVA_HOME%\jre\bin\server\jvm.dll" -Djava.class.path="%CATALINA_HOME%\bin\bootstrap.jar;%JAVA_HOME%\lib\tools.jar" -Dcatalina.home="%CATALINA_HOME%" ...

11. Tomcat 4.1.29 does not compile JSP

12. compile jsp with tomcat

13. Problem while compiling with tomcat

16. Compiling servlets using tomcat

17. compiling servlets using tomcat

19. compiling servlets under Tomcat 4.0

21. Problems compiling servlets on Tomcat 5.00.28

$CATALINE_HOME is where you installed Tomcat. The jar files are part of the Tomcat distribution. Btw, on UNIX systems, don't forget the $. It translates the environment variable CATALINA_HOME to its definition. On Windows, I believe you need to surround it with %. [ August 07, 2005: Message edited by: Bear Bibeault ]

22. Servlet compiling problem in tomcat

23. Trying to find javax, to compile Tomcat servlet

Where's that javax? I am trying to compile a simple servlet with the statements import javax.servlet.* import javax.servlet.http.* at the top. The compiler (running through TextPad) claims that the javax.servlet and javax.servlet.http packages do not exist. In running around this problem, I know there are a bunch of issues, but I can't figure it all out. It appears that Tomcat is ...

25. Problem to compile servlet and Tomcat

26. compiling servlet and tomcat

28. Tomcat error While compiling