Bouncing Tomcat (for new classes)
I was under the impression that you did not have to restart Tomcat when you change .class files. I currently have an application under webapps with a classes directory under WEB-INF. I used to change the classes and run my application normally. Now I found that I have to restart Tomcat every time I change a .class file for Tomcat to notice the change. Does anyone know why this is happening? Thanks.
Re: Bouncing Tomcat (for new classes)
Thanks, got it. Tammer - Original Message - From: Tim Funk [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Sunday, February 23, 2003 4:54 PM Subject: Re: Bouncing Tomcat (for new classes) You probably had tomcat configured in the past to look for these changes in .class files and automatically restart the web application. For some reason - its now turned off. (I don't like that feature anyways). If your change is only a class change in a webapp - all you have to do is restart the webapp. The manager application can do this for you. http://jakarta.apache.org/tomcat/tomcat-4.1-doc/manager-howto.html -Tim Tammer Salem wrote: I was under the impression that you did not have to restart Tomcat when you change .class files. I currently have an application under webapps with a classes directory under WEB-INF. I used to change the classes and run my application normally. Now I found that I have to restart Tomcat every time I change a .class file for Tomcat to notice the change. Does anyone know why this is happening? Thanks. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Apache Version
Hi, Does anyone know what version of Apache Webserver comes with Tomcat 4.1.18? thanks, Tammer Salem
Re: Apache Version
Then Tomcat has it's own web server? Can anyone point me to any reference documentation that shows how this works? Tammer Salem wrote: Hi, Does anyone know what version of Apache Webserver comes with Tomcat 4.1.18? None. Apache is available as a seperate download. thanks, Tammer Salem -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Unsure how to set environment variables for win xp
Hi, I'm having problems compiling my servlets. I know this is probably out of the domain of tomcat setup, but I decided to ask anyway. I have a servlet called (test.java) in a directory (D:\Program Files\Apache Tomcat 4.0\webapps\test\WEB-INF\classes). My javac.exe is in (D:\j2sdk1.4.1_01\bin). I can't get the servlet file to compile. I think my CLASSPATH and Path environment variables are messed up, because I keep on getting the following exceptions: = HelloWorld.java:2: package javax.servlet does not exist import javax.servlet.*; ^ HelloWorld.java:3: package javax.servlet.http does not exist import javax.servlet.http.*; ^ HelloWorld.java:11: cannot resolve symbol symbol : class HttpServlet location: class HelloWorld public class HelloWorld extends HttpServlet ^ HelloWorld.java:13: cannot resolve symbol symbol : class HttpServletRequest location: class HelloWorld public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException ^ HelloWorld.java:13: cannot resolve symbol symbol : class HttpServletResponse location: class HelloWorld public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException ^ HelloWorld.java:13: cannot resolve symbol symbol : class ServletException location: class HelloWorld public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException ^ 6 errors = Can anyone please help me? thanks, Tammer Salem
Problems with installation on win2k advanced server (Java exceptions thrown)
Hi, I just installed Tomcat 4.1.18 on win2k advanced server (and running J2SDK 1.4). I keep on getting a Java exception when I use (http://localhost:8080/). I've included the error below. Does anyone have any idea how to solve this? type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception org.apache.jasper.JasperException: Unable to compile class for JSP An error occurred at line: -1 in the jsp file: null Generated servlet error: [javac] Compiling 1 source file at org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:130) at org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:293) at org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:340) at org.apache.jasper.compiler.Compiler.compile(Compiler.java:352) at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:474) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:184) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:260) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:432) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:386) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:534) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:530) at java.lang.Thread.run(Thread.java:536)
JSPs throwing exceptions under new installation of Tomcat
Hi, I just downloaded Apache Tomcat 4.0 and have successfully reached the http://localhost:8080 page. I can run the servlet examples ok, but the JSP examples always throw exceptions. I have the Java SDK (j2sdk1.4.1_01) on my machine and the %JAVA_HOME% environment variable is setup correctly. Have any ideas why I keep getting exceptions in the JSP examples? (I've included an HTML output of the exception that is thrown when I access the number guess example) My machine spec is as follows: a.. IBM PC 1 Processor (866 MHz) b.. 384 MB RAM c.. Windows XP Professional d.. Apache Tomcat 4.0 e.. Java SDK 1.4.1 (j2sdk1.4.1_01) Thanks, Tammer Salem -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
JSPs throwing exceptions under new installation of Tomcat
Hi,I just downloaded Apache Tomcat 4.0 and have successfully reached thehttp://localhost:8080 page. I can run the servlet examples ok, but the JSPexamples always throw exceptions. I have the Java SDK (j2sdk1.4.1_01) on mymachine and the %JAVA_HOME% environment variable is setup correctly.Have any ideas why I keep getting exceptions in the JSP examples?(I've included an HTML output of the exception that is thrown when I accessthe number guess example)My machine spec is as follows: - IBM PC 1 Processor (866 MHz) - 384 MB RAM - Windows XP Professional- Apache Tomcat 4.0 - Java SDK 1.4.1 (j2sdk1.4.1_01)Thanks,Tammer Salem -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: JSPs throwing exceptions under new installation of Tomcat
) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564) at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2347) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1027) at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1125) at java.lang.Thread.run(Unknown Source) - Original Message - From: Tammer Salem To: Tomcat Users List Sent: Sunday, January 05, 2003 1:42 AM Subject: JSPs throwing exceptions under new installation of Tomcat Hi, I just downloaded Apache Tomcat 4.0 and have successfully reached the http://localhost:8080 page. I can run the servlet examples ok, but the JSP examples always throw exceptions. I have the Java SDK (j2sdk1.4.1_01) on my machine and the %JAVA_HOME% environment variable is setup correctly. Have any ideas why I keep getting exceptions in the JSP examples? (I've included an HTML output of the exception that is thrown when I access the number guess example) My machine spec is as follows: - IBM PC 1 Processor (866 MHz) - 384 MB RAM - Windows XP Professional - Apache Tomcat 4.0 - Java SDK 1.4.1 (j2sdk1.4.1_01) Thanks, Tammer Salem -- -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: JSPs throwing exceptions under new installation of Tomcat
Thanks, I put the tools.jar file in the lib folder as you suggested and the JSPs now compile. However, I feel like this is a quick solution. Shouldn't Tomcat be able to find the JAR files found under the %JAVA_HOME% directory? Also, I tried adding an environment variable (%CLASSPATH%), and had it point to the \lib folder under my installation of J2SDK. It didn't work, again shouldn't the %JAVA_HOME% environment variable take care of this? In general, I believe that the JAR files that come with the J2SDK shouldn't be moved out of their area. (But thanks anyway!! I got the JSPs to work, and I guess a solution is better than staring at java exceptions!) regards, Tammer Salem - Original Message - From: David Boyer To: Tomcat Users List ; Tammer Salem Sent: Sunday, January 05, 2003 2:13 AM Subject: Re: JSPs throwing exceptions under new installation of Tomcat I beleive you need to have tools.jar available to Tomcat. Either specify it in your classpath, or put it in one of the 'lib' folders within %tomcat_home%. - Original Message - From: Tammer Salem To: Tomcat Users List Sent: Saturday, January 04, 2003 5:42 PM Subject: JSPs throwing exceptions under new installation of Tomcat Hi, I just downloaded Apache Tomcat 4.0 and have successfully reached the http://localhost:8080 page. I can run the servlet examples ok, but the JSP examples always throw exceptions. I have the Java SDK (j2sdk1.4.1_01) on my machine and the %JAVA_HOME% environment variable is setup correctly. Have any ideas why I keep getting exceptions in the JSP examples? (I've included an HTML output of the exception that is thrown when I access the number guess example) My machine spec is as follows: - IBM PC 1 Processor (866 MHz) - 384 MB RAM - Windows XP Professional - Apache Tomcat 4.0 - Java SDK 1.4.1 (j2sdk1.4.1_01) Thanks, Tammer Salem -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]