where to change the webapp/ROOT setting?
Hello there, I've installed Apache2 and Tomcat5 on my PC (XP), and seperately they work fine. Then I installed JK2 to let Apache run JSPs, and there is the problem. Everything works fine, in the sense that I can run html files and Apache can run Tomcat, as I choose a .jsp to run, I get the error screen of Tomcat, saying that _The requested resource (/Time.jsp) is not available._ That file is in the server directory sth/html for Apache. If I copy that file in $TOMCAT_ROOT/webapps/ROOT/, then I can load it succesfully. So jsp pages are search for in that directory. Which setting in which file do I need to change so the Apache server directory is used instead of the tomcat one for JSP pages? Thanks, Bart - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Problems with jakarta-tomcat-5.0.28 and Slackware 10.0
Hello Kevin, Thanks for your reaction, May i ask what kernel version you are using / including any patches you might have added. Best Regards, Bart Seresia Waasland Service Netwerk -Original Message- From: Kevin Offet [mailto:[EMAIL PROTECTED] Sent: zaterdag 16 oktober 2004 17:01 To: Tomcat Users List Subject: Re: Problems with jakarta-tomcat-5.0.28 and Slackware 10.0 Hello Bart, just to let you know it can be done - we have a slackware 10.0 box that currently has sun's SDK-java 1.4.2_05 and tomcat 5.0.28 installed, and working without problem. it was straight forward and easy to setup as per each's install instructions. no additional settings were required. if your java setup is not correct and functioning properly that would have to be resolved first. Kevin Bart Seresia wrote: > Hello list, > > I have a problem regarding tomcat-5.0.28 on my slackware 10.0 machine. > I'm working on it now for more then 2 full day's and it is getting > really fristrating. So any help would be welcome. > > Here is a stat of events: > > *Because the need arrose to support jsp pages i dessided to install > tomcat on my server (running apache 2.0.50) > *I downloaded the latest version of tomcat (5.0.28) and used this howto > as guideline for the installation. > (http://www.linux.com/howtos/Apache-Compile-HOWTO/tomcat.shtml) > *After unpacking and installing tomcat in my /usr/local/ directory i > tried to start it and check it is running (like said in the howto) > *Startup seemed to work (no error output) yet i could not connect. > *After a few look for what could be the cause of this i noticed the > tomcat was not running. When looking for the cause of this I noticed it > started up, to crach and exit just about e second later. > *After googling some time i tried several options; > *ulimit -s 2048 > *export JIT_OPTIONS="-nojit" > *install latest J2RE > > all of them without succes. > > With the dowloads from java.sun i have even more problems. As it appears > that those builds are broking for slackware. (Every program from the > J2RE and J2SDK gives a segmetation Fault) > > I really don't know what could be the cause of this... Does anybody have > any suggestions? > > Look below for some output > > Bart Seresia > Waasland Service Netwerk > > > [catalina.out] > [EMAIL PROTECTED]:~/jakarta-tomcat-5.0.28# cat logs/catalina.out > Oct 16, 2004 3:31:54 PM org.apache.coyote.http11.Http11Protocol init > INFO: Initializing Coyote HTTP/1.1 on http-8080 > Oct 16, 2004 3:31:54 PM org.apache.catalina.startup.Catalina load > INFO: Initialization processed in 1098 ms > Oct 16, 2004 3:31:54 PM org.apache.catalina.core.StandardService start > INFO: Starting service Catalina > Oct 16, 2004 3:31:54 PM org.apache.catalina.core.StandardEngine start > INFO: Starting Servlet Engine: Apache Tomcat/5.0.28 > Oct 16, 2004 3:31:55 PM org.apache.catalina.core.StandardHost start > INFO: XML validation disabled > Oct 16, 2004 3:31:55 PM org.apache.catalina.core.StandardHost > getDeployer > INFO: Create Host deployer for direct deployment ( non-jmx ) > Oct 16, 2004 3:31:55 PM org.apache.catalina.core.StandardHostDeployer > install > INFO: Processing Context configuration file URL > file:/root/jakarta-tomcat-5.0.28/conf/Catalina/localhost/admin.xml > > [startup.sh] > [EMAIL PROTECTED]:~/jakarta-tomcat-5.0.28# ./bin/startup.sh > Using CATALINA_BASE: /root/jakarta-tomcat-5.0.28 > Using CATALINA_HOME: /root/jakarta-tomcat-5.0.28 > Using CATALINA_TMPDIR: /root/jakarta-tomcat-5.0.28/temp > Using JAVA_HOME: /usr/lib/java > > [catalina.sh debug] > [EMAIL PROTECTED]:~/jakarta-tomcat-5.0.28# ./bin/catalina.sh debug > Using CATALINA_BASE: /root/jakarta-tomcat-5.0.28 > Using CATALINA_HOME: /root/jakarta-tomcat-5.0.28 > Using CATALINA_TMPDIR: /root/jakarta-tomcat-5.0.28/temp > Using JAVA_HOME: /usr/lib/java > Initializing jdb ... > >>run > > run org.apache.catalina.startup.Bootstrap start > Set uncaught java.lang.Throwable > Set deferred uncaught java.lang.Throwable > > VM Started: > The application has been disconnected > > > > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Problems with jakarta-tomcat-5.0.28 and Slackware 10.0
Hello list, I have a problem regarding tomcat-5.0.28 on my slackware 10.0 machine. I'm working on it now for more then 2 full day's and it is getting really fristrating. So any help would be welcome. Here is a stat of events: *Because the need arrose to support jsp pages i dessided to install tomcat on my server (running apache 2.0.50) *I downloaded the latest version of tomcat (5.0.28) and used this howto as guideline for the installation. (http://www.linux.com/howtos/Apache-Compile-HOWTO/tomcat.shtml) *After unpacking and installing tomcat in my /usr/local/ directory i tried to start it and check it is running (like said in the howto) *Startup seemed to work (no error output) yet i could not connect. *After a few look for what could be the cause of this i noticed the tomcat was not running. When looking for the cause of this I noticed it started up, to crach and exit just about e second later. *After googling some time i tried several options; *ulimit -s 2048 *export JIT_OPTIONS="-nojit" *install latest J2RE all of them without succes. With the dowloads from java.sun i have even more problems. As it appears that those builds are broking for slackware. (Every program from the J2RE and J2SDK gives a segmetation Fault) I really don't know what could be the cause of this... Does anybody have any suggestions? Look below for some output Bart Seresia Waasland Service Netwerk [catalina.out] [EMAIL PROTECTED]:~/jakarta-tomcat-5.0.28# cat logs/catalina.out Oct 16, 2004 3:31:54 PM org.apache.coyote.http11.Http11Protocol init INFO: Initializing Coyote HTTP/1.1 on http-8080 Oct 16, 2004 3:31:54 PM org.apache.catalina.startup.Catalina load INFO: Initialization processed in 1098 ms Oct 16, 2004 3:31:54 PM org.apache.catalina.core.StandardService start INFO: Starting service Catalina Oct 16, 2004 3:31:54 PM org.apache.catalina.core.StandardEngine start INFO: Starting Servlet Engine: Apache Tomcat/5.0.28 Oct 16, 2004 3:31:55 PM org.apache.catalina.core.StandardHost start INFO: XML validation disabled Oct 16, 2004 3:31:55 PM org.apache.catalina.core.StandardHost getDeployer INFO: Create Host deployer for direct deployment ( non-jmx ) Oct 16, 2004 3:31:55 PM org.apache.catalina.core.StandardHostDeployer install INFO: Processing Context configuration file URL file:/root/jakarta-tomcat-5.0.28/conf/Catalina/localhost/admin.xml [startup.sh] [EMAIL PROTECTED]:~/jakarta-tomcat-5.0.28# ./bin/startup.sh Using CATALINA_BASE: /root/jakarta-tomcat-5.0.28 Using CATALINA_HOME: /root/jakarta-tomcat-5.0.28 Using CATALINA_TMPDIR: /root/jakarta-tomcat-5.0.28/temp Using JAVA_HOME: /usr/lib/java [catalina.sh debug] [EMAIL PROTECTED]:~/jakarta-tomcat-5.0.28# ./bin/catalina.sh debug Using CATALINA_BASE: /root/jakarta-tomcat-5.0.28 Using CATALINA_HOME: /root/jakarta-tomcat-5.0.28 Using CATALINA_TMPDIR: /root/jakarta-tomcat-5.0.28/temp Using JAVA_HOME: /usr/lib/java Initializing jdb ... > run run org.apache.catalina.startup.Bootstrap start Set uncaught java.lang.Throwable Set deferred uncaught java.lang.Throwable > VM Started: The application has been disconnected
Context and MemoryRealm
I'm trying to implement a realm to a context within a virtual host but I can't get it working. This is my server.xml for the virtual host: Whatever I try, I can't get tomcat to ask me for an authentication. Can anybody help me out with an example. I've read the Tomcat Realm how-to but that doesn't get me further. Thx, Bart - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Context and MemoryRealm
I'm trying to implement a realm to a context within a virtual host but I can't get it working. This is my server.xml for the virtual host: Whatever I try, I can't get tomcat to ask me for an authentication. Can anybody help me out with an example. I've read the Tomcat Realm how-to but that doesn't get me further. Thx, Bart - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat web.xml & Apache httpd.conf DocumentRoot
Hi, Currently i'm having virtual hosts (subdomains) on Apache-2: abc.xxx.com def.xxx.com ghi.xxx.com ... with different DocumentRoots! On Tomcat-5 i have a servlet 'file' with /file On workers2.properties i have [uri:/docs/*] This makes that i got the following: abc.xxx.com/docs/file def.xxx.com/docs/file ghi.xxx.com/docs/file ... and all three of them are showing the expected results. But i only want: abc.xxx.com/docs/file and not: def.xxx.com/docs/file ghi.xxx.com/docs/file What to do to make a servlet for one subdomain only? Thanks, b. http://WWW.ADVENTUREFORUM.NET - Forum on World Travel and Adventure - http://WWW.ADVENTUREFORUM.NET/worldfacts http://WWW.ADVENTUREFORUM.NET/worldnews - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Compile Error when accessing Admin Tool or any code
I am new to the User form, and am having a problem and noticded that you seem to have allot of experince and knowledge. I have installed the Java 1.4.0 and Tomcat 4.1.24. Took all the defaults. Got the usual error(see below), could not compile JSP, either the Admin Tool or sample code. Tried the JAVA_HOME and CATALINA_HOME environment variables. Then un-installed and re-installed the Tomcat. The Java works as I can do regular compiles. Checked the registry varibales and the path was correct to the JVM, in the server/bin directory. Still get the error. If anyone could please help I would appreciate it. Thanks in advance, Bart HTTP Status 500 - 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] Since fork is true, ignoring compiler setting. [javac] Compiling 1 source file [javac] Since fork is true, ignoring compiler setting. [javac] C:\Program Files\Apache Group\Tomcat 4.1\work\Standalone\localhost\_\index_jsp.java:266: handlePageException(java.lang.Exception) in javax.servlet.jsp.PageContext cannot be applied to (java.lang.Throwable) [javac] if (pageContext != null) pageContext.handlePageException(t); [javac] ^ [javac] 1 error at org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandle r.java:130) at org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:2 93) at org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:353) at org.apache.jasper.compiler.Compiler.compile(Compiler.java:370) at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:4 73) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:1 90) 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(Application FilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh ain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja va:256) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(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.ja va:191) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(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.invok eNext(StandardPipeline.java:643) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve. java:171) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:641) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172 ) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(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.invok eNext(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:594) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConne ction(Http11Protocol.java:392) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:565) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav a:619) at java.lang.Thread.run(Thread.java:536) Apache Tomcat/4.1.24 - To
Error when trying to access Admin or Sample code
Dear Friends, thanks for your help in advance: I just installed Java 1.4.0, used defaults, and regular .java code compiles. So installed the TomCat 4.1.24 and used defaults, all went OK, no errors reported. Get the following error when I click on the Admin Tool short cut: HTTP Status 500 - 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] Since fork is true, ignoring compiler setting. [javac] Compiling 1 source file [javac] Since fork is true, ignoring compiler setting. [javac] C:\Program Files\Apache Group\Tomcat 4.1\work\Standalone\localhost\_\index_jsp.java:266: handlePageException(java.lang.Exception) in javax.servlet.jsp.PageContext cannot be applied to (java.lang.Throwable) [javac] if (pageContext != null) pageContext.handlePageException(t); [javac] ^ [javac] 1 error 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:353) at org.apache.jasper.compiler.Compiler.compile(Compiler.java:370) at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:473) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:190) 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:256) 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:171) 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:594) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:392) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:565) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:619) at java.lang.Thread.run(Thread.java:536) Apache Tomcat/4.1.24 Thanks, Bart [EMAIL PROTECTED]
JasperException: Unable to compile class for JSPThe compiler has run out of memory
I get the message: "org.apache.jasper.JasperException: Unable to compile class for JSPThe compiler has run out of memory. Consider using the "-J-mx" command line option to increase the maximum heap size" Can someone tell me step-by-step how to invoke the above mentioned command line option, I'm a beginner!? regards, Bart -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
using the "-J-mx" command line option
I get the message: "org.apache.jasper.JasperException: Unable to compile class for JSPThe compiler has run out of memory. Consider using the "-J-mx" command line option to increase the maximum heap size" Can someone tell me step-by-step how to invoke the above mentioned command line option, I'm a beginner!? regards, Bart -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
Tomcat 4.0 and Apache
Hello, I have been trying to get the new release of Tomcat 4.0 to work with apache. But I get some problems with the mod_webapp. There seems to no documentation about this (yet). I downloaded the official release, on jakarta.apache.org it is said that the mod_webapp would be available wednesday, but I haven't seen it yet. So I downloaded it form cvs.apache.org the version is 1.0-tc40b7. I did everything that is in the INSTALL.txt, I added a WebAppInfo on /webinfo/ in httpd.conf , but when I browse this dir I get "The document contained no data." In the apache-error-log I see: [Fri Sep 21 13:15:34 2001] [notice] child pid 29223 exit signal Segmentation fault (11) Is this some kind of bug in the module, or what else could be wrong? The tomcat server without apache is working fine. Yours, Bart v.d. Garde IC&S Linux Professionals [EMAIL PROTECTED]
Tomcat - Apache : performance
People, We run an Apache Webserver and host websites for companies. I wonder how much servlets and Tomcat slow down the loading of the webpages on our webserver ? The servlets will be used to implement chatboxes, database applications f.e. ... Should I consider to install Tomcat on our other server machine to avoid decreasing the performance of our webserver ? Thanks a lot ! Bart, Besite www.besite.be _ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]