Re: Why does Tomcat not set HTTP_Referer?
I could be wrong, but I believe I read something that said the servlets must set thier own response header values. (See response.setContentType(text/html); and other set commands.) [EMAIL PROTECTED] wrote: I'm trying to setup some links that jump to another site. That other site checks the header for the HTTP_Referer environment variable. When I jump from my servlet in Tomcat to this other site this variable is empty. Why does Tomcat not set this variable? Am I just doing something wrong? Help. -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org
mod_jk2 and Apache 2.43 / TOMCAT on Win2K
I have things setup with the mod_jk connector, but am trying to use the mod_jk2. (So, I'm a masochist. . . ) I tried to follow the set-ups I've found on the web, but they're all for UNIX machines and entail building the binaries. I found the windows binary for mod_jk2 and put it in. However, all I get while using it is the JSP source displayed. QUESTION: While configuring to use mod_jk, the instructions stated to modify some files in the JK library of the connector package, then use ANT to build the JAVA portion. From a statement I saw in an other post, I inferred that the connector is originally setup for mod_jk2, and the changes made were to make it perform with the older mod_jk. Is this correct? Are there any MOD_JK2 FOR DUMMIES pages out there that would help someone stuck in a windows environment get it configured? Thanks? http://www.geocities.com/os2dude -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org
Re: Servlets RUn but JSP Fails
As a short-term work-around, try going to the /work directory and manually compile the page_JSP.JAVA file there. I can't get JSPs to automatically compile, but if I do them manually the next time they are called they work fine. (It seems even with no changes you may have to recompile them if you restart the servers.) -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org
JSP Servlets
To get a servlet to work directly, use JkMount commands like these in Apache: JkMount /*.jsp ajp13 JkMount /servlet/* ajp13 JkMount /HelloWorldServlet ajp13= Add this type of line The first passes all *.JSP pages to Tomcat, the second passes all URLs starting with /servlet/ to Tomcat, and the last passes all URLs for a page called HelloWorldServlet to Tomcat. A line of the last kind for each servlet would be needed. Then in the appropriate context's web.xml in TOMCAT add these lines: servlet-mapping servlet-nameHelloWorldServlet/servlet-name url-pattern/HelloWorldServlet/url-pattern /servlet-mapping I have the servlets working, but can not get the JSPs to compile automatically. I can compile manually. Any ideas? (Windows 2000) -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org
TOMCAT, Servlets and Filters?
WINDOWS 2000 SVR, Apache 2.0, TOMCAT 4.1 In the primary conf/web.xml, the invoker servlet is defined, but the servlet-mapping is commented out. In the /examples/WEB-INF/web.xml file, the servlet-mapping definition is given. The servlets in this directory work. In this same file, there is a bunch of other stuff that I'm not sure if I need or not. Particularly the filters filter-mapping directives. Do I need them? I tried my own servlet in /ROOT without them and it does not work, yet I've never seen them mentioned on any web pages or group messages about getting servlets to work. (ROOT does work if I include them) And as long as I'm imposing. . .;) My JSP will not compile automatically. If I let it fail, then go to the TOMCAT/work directory and compile it by hand it will work. (I also had to copy my BEANS directory under the word lib to get it to compile.) Do you have any hints on getting JASPER to work, or even how to figure out what the compile error is? All I get in the error log is: = = = 2002-10-18 14:00:06 StandardWrapperValve[jsp]: Servlet.service() for servlet jsp threw 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 = = = Finally: (As IF!) In the case of an APACHE/TOMCAT combination, does APACHE send the *.JSP to TOMCAT, then interpret the response before sending it back to the browser? I currently have a few SSI in my JSP, and am using the %include file=TOP.html% JSP directives to get them in it, but that means I have to have copies of my include files in both APACHE's htdocs lib (for my other static pages) and TOMCAT's ROOT lib (for my JSP pages). Can I change that to a normal HTTP INCLUDE? (It didn't work when I was running under IIS and WebSphere.) Thank you very much for your time. DIR: webapps '- ROOT '- Welcome.jsp '- WEB-INF '- web.xml '- classes '- filters ' '- ExampleFilter.class (Supplied by Apache as part of the /examples app) '- WolcottSoft '- AccessBean.class '- URLChecker.class '- servlets '- HelloWorldServlet.class WEB.XML: ?xml version=1.0 encoding=ISO-8859-1? !DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN http://java.sun.com/dtd/web-app_2_3.dtd; web-app display-nameDefault Web Application/display-name description Main webpage for this site. /description welcome-file-list welcome-fileWelcome.jsp/welcome-file /welcome-file-list !-- Define servlet-mapped and path-mapped ROOT filters -- filter filter-nameServlet Mapped Filter/filter-name filter-classfilters.ExampleFilter/filter-class init-param param-nameattribute/param-name param-valuefilters.ExampleFilter.SERVLET_MAPPED/param-value /init-param /filter filter filter-namePath Mapped Filter/filter-name filter-classfilters.ExampleFilter/filter-class init-param param-nameattribute/param-name param-valuefilters.ExampleFilter.PATH_MAPPED/param-value /init-param /filter !-- Define filter mappings for the defined filters -- filter-mapping filter-nameServlet Mapped Filter/filter-name servlet-nameinvoker/servlet-name /filter-mapping filter-mapping filter-namePath Mapped Filter/filter-name url-pattern/servlet/*/url-pattern /filter-mapping !-- Define servlets that are included in the ROOT application-- servlet servlet-nameHelloWorldServlet/servlet-name servlet-classWolcottSoft.servlets.HelloWorldServlet/servlet-class /servlet servlet-mapping servlet-nameHelloWorldServlet/servlet-name url-pattern/servlet/HelloWorldServlet/url-pattern /servlet-mapping !-- The mapping for the invoker servlet that is defined in the primary conf/WEB.XML file-- servlet-mapping servlet-nameinvoker/servlet-name url-pattern/servlet/*/url-pattern /servlet-mapping /web-app http://www.geocities/os2dude This is redirected to my dynamic IP -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org
Re: Tomcat Users List - read receipts
I'm using Netscape 6 (Sometimes Opera 6) and I do not see an option to request a 'Read Receipt' either in the MAIL PREFERENCES or the individual eMail when I send it. I also do not get back any receipts. Michael Schulz wrote: Paul, et. al, Please disable the read receipt requested option in your email application when you are posting to the Tomcat Users List. You don't really want a read receipt from every member of the Tomcat Users List, do you? Thanks, Mike -- 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]
Re: reloading of jsp page...
This may be caused by your browser cacheing the existing page. Try clearing the browser cashce and see what happens. I know RELOAD is supposed to actually RELOAD from the server, but. . . . Padhu Vinirs wrote: Reloading of jsp works if I start a new browser window. But on same window ( Ctrl-r or reload ) doesnt show the new changes. -- padhu Padhu Vinirs wrote: Tomcat 4.1.12 I have a jsp page that compiles fine. Then I make a change and try to access the page again. The page is not recompiled. I am still getting back the old value. I do have reloadable=true for my context. I have to restart Tomcat to get the new page. Anybody else notice this ? -- padhu -- 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] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
TOMCAT-STANDALONE needed with Apache Server?
I'm new to the world of Apache and Jakarta. I notice TOMCAT by default has the TOMCAT-STANDALONE instance defined by default, and the TOMCAT-APACHE instance commented out with no connectors, etc defined. I loaded Apache 2.0 and TOMCAT 4.0 on my Win 2K Svr box. Do I NEED the stand-alone instance of TOMCAT? Do I need all those connectors on the different ports? What is used by the mod_jk interface from Apache to TOMCAT? I tried mod_webapp, but Apache said it could not find it even though I DL'd a win32 version of the .so and accompanying libapr.dll to the MODULES directory. (I went back to the mod_jk method) I have read multiple pages on setting up TOMCAT, and all seem to be different or not appropriate for my needs. Anyone have a good page to help me setup Apache/Tomcat and JSP/SERVLETS/BEANS on a WINDOWS 2000 SERVER? Thanks -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Beans JSP in TOMCAT 4.1
I am receiveing the following error with TOMCAT 4.1 Apache 2.0 on Windows 2000 Server. I had no trouble with IIS 5.0 Websphere and do not fully understand all the configuration of TOMCAT APACHE. How do I debug this? (I tried to manually compile the BEAN1_JSP.JAVA file in the TOMCAT/work director, and it can not find the BEAN classes.) Any ideas? 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] Compiling 1 source file at org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:120) at org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:293) at org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:313) at org.apache.jasper.compiler.Compiler.compile(Compiler.java:324) 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:289) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:240) 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:2396) 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:405) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:380) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:508) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:533) at java.lang.Thread.run(Thread.java:536) -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]