Re: IE Caching
IE and Tomcat are both running on my machine, there certainly are no proxies or firewalls involved. I know IE is caching because the back button works even after shutting Tomcat down. Ah, the BACK button. Read RFC 2616 which describes HTTP/1.1 and caching and the BACK button. After discussing caching extensively, there is this short section. You and many other people will find this section useful: 13.13 History Lists User agents often have history mechanisms, such as "Back" buttons and history lists, which can be used to redisplay an entity retrieved earlier in a session. History mechanisms and caches are different. In particular history mechanisms SHOULD NOT try to show a semantically transparent view of the current state of a resource. Rather, a history mechanism is meant to show exactly what the user saw at the time when the resource was retrieved. By default, an expiration time does not apply to history mechanisms. If the entity is still in storage, a history mechanism SHOULD display it even if the entity has expired, unless the user has specifically configured the agent to refresh expired history documents. The BACK button SHOULD show the cached version, and that is just what IE does. Jim - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Configuration of Tomcat
I've followed the instructions regarding updating the tomcat.bat file to accomodate for the jdk home directory. However when trying to access a JSP example whilst having the tomcat server running the following error message appears in the DOS prompt: unhandled error! You might want to consider having an error page to report such errors more gracefully java.lang.NoClassDefFoundError: sun/tools/javac/Main at org.apache.jasper.compiler.SunJavaCompiler.compile(SunJavaCompiler.java:128) please help, since I cannot proceed with my dissertation is this problem is not overcome. Thanks WKC
RE: Configuration of Tomcat
This means that the tools.jar file was not put in your classpath. Ensure that the JAVA_HOME environment variable is set or modify your batch files to specify it directly. Tools.jar contains the javac compiler which Jasper uses to compile the code it generates from the JSP file. Regards, Paul -Original Message-From: wkc [mailto:[EMAIL PROTECTED]]Sent: Saturday, February 10, 2001 10:54 AMTo: [EMAIL PROTECTED]Subject: Configuration of Tomcat I've followed the instructions regarding updating the tomcat.bat file to accomodate for the jdk home directory. However when trying to access a JSP example whilst having the tomcat server running the following error message appears in the DOS prompt: unhandled error! You might want to consider having an error page to report such errors more gracefully java.lang.NoClassDefFoundError: sun/tools/javac/Main at org.apache.jasper.compiler.SunJavaCompiler.compile(SunJavaCompiler.java:128) please help, since I cannot proceed with my dissertation is this problem is not overcome. Thanks WKC
tomcat.bat file
Can some please tell me how to configure the tomcat.bat file?...since I am getting a NoClassDefFound error when I try to access the JSP examples.. Some please help?.
JSP 404 Problem
Hi All, Just started with Tomcat and I'm having a bit of trouble with JSPs. I have a webapp up and going that I've been using to play around with servlets, its all working fine. As far as I knew all I had to do to run JSPs was place the JSP file in the same directory as my HTML files, in this case $TOMCAT_HOME/webapps/coreapp/ Well I'm doing that and this is the error I get: Error: 404 Location: /coreapp/BGColor.jsp JSP file ta-tomcat/work/localhost_8080%2Fcoreapp/_0002fBGColor_0002ejspBGColor_jsp_0.java (Permission denied)" not found *** Can anyone tell me why? I've had a look in what Tomcat Documentation I have which is the Users Guide and the App Development Guide. Are there any other good sources of information? Cheers Matt - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
W2k not processing JSP
Searched through the mail archives and was having no luck getting an answer. I'm tyring to get tomcat working on Win2000 with IIS using the isapi_redirect.dll. I setup the redirect, following the documents step by step, and it seems to be configured fine. For some reason the embedded jsp is not being processed in the files. (and yes I also have started tomcat running) It appears that the isapi is not detecting the file for processing. Here is what the log does when I'm running one of the tests [jk_isapi_plugin.c (408)]: HttpFilterProc started [jk_isapi_plugin.c (429)]: In HttpFilterProc test redirection of /examples/jsp/dates/date.jsp [jk_uri_worker_map.c (344)]: Into jk_uri_worker_map_t::map_uri_to_worker [jk_uri_worker_map.c (434)]: jk_uri_worker_map_t::map_uri_to_worker, done without a match [jk_isapi_plugin.c (452)]: HttpFilterProc [/examples/jsp/dates/date.jsp] is not a servlet url [jk_isapi_plugin.c (461)]: HttpFilterProc check if [/examples/jsp/dates/date.jsp] is points to the web-inf directory here is what I've got for uriworkermap # Mount the examples context to the ajp12 worker /examples/jsp/*.jsp=ajp12 if it helps here's what tomcat logged when I started it. 2001-02-10 11:20:50 - Ctx( /examples ): Set debug to 1 2001-02-10 11:20:50 - ContextManager: Adding context Ctx( /examples ) 2001-02-10 11:20:50 - ContextManager: Adding context Ctx( /admin ) 2001-02-10 11:20:50 - ContextManager: Adding context Ctx( ) 2001-02-10 11:20:50 - ContextManager: Adding context Ctx( /test ) 2001-02-10 11:20:50 - Ctx( /examples ): XmlReader - init /examples webapps/examples 2001-02-10 11:20:50 - Ctx( /examples ): Reading E:\jakarta\webapps\examples\WEB-INF\web.xml 2001-02-10 11:20:50 - Ctx( /examples ): Add user tomcat tomcat tomcat 2001-02-10 11:20:50 - Ctx( /examples ): Add user role1 tomcat role1 2001-02-10 11:20:50 - Ctx( /examples ): Add user both tomcat tomcat,role1 2001-02-10 11:20:50 - Ctx( /examples ): Loading -2147483646 jsp 2001-02-10 11:20:51 - PoolTcpConnector: Starting HttpConnectionHandler on 8080 2001-02-10 11:20:51 - PoolTcpConnector: Starting Ajp12ConnectionHandler on 8007 I must be missing a step. If anybody thinks that additional log or conf info would be helpful I'd be happy to blast it out. Thanks ahead of time for anything somebody out there can do. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Name of Apache handler for mod_jk
I had Apache WebServer mapping requests for Servlets to jakarta-tomcat based on a url ending in "Servlet" with a LocationMatch directive in the Apache configuration containing SetHandler jserv-servlet and matching (.*)Servlet$ (i.e. a reg/ex matching anything ending in Servlet). I am trying to switch to mod_jk but the JkMount directive doesn't honor the same regular expression patterns so I still need to use the LocationMatch directive. I have looked for the corresponding "handler" name that gets registered with apache when mod_jk is loaded, but can't seem to find any mention of it anywhere. Does anyone know what took the place of the jserv-servlet handler in mod_jk? I would expect it to be jk-servlet or something like that but that doesn't seem to work. -Thanks -R --== Sent via Deja.com ==-- http://www.deja.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: Name of Apache handler for mod_jk
take a look at workers.properties Filip ~ Namaste - I bow to the divine in you ~ Filip Hanik Software Architect [EMAIL PROTECTED] www.filip.net - Original Message - From: "Ray Thomas" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Saturday, February 10, 2001 12:28 PM Subject: Name of Apache "handler" for mod_jk I had Apache WebServer mapping requests for Servlets to jakarta-tomcat based on a url ending in "Servlet" with a LocationMatch directive in the Apache configuration containing SetHandler jserv-servlet and matching (.*)Servlet$ (i.e. a reg/ex matching anything ending in Servlet). I am trying to switch to mod_jk but the JkMount directive doesn't honor the same regular expression patterns so I still need to use the LocationMatch directive. I have looked for the corresponding "handler" name that gets registered with apache when mod_jk is loaded, but can't seem to find any mention of it anywhere. Does anyone know what took the place of the jserv-servlet handler in mod_jk? I would expect it to be jk-servlet or something like that but that doesn't seem to work. -Thanks -R --== Sent via Deja.com ==-- http://www.deja.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: Recommendations for JSP development tools?
So I'm surprised that no one has mentioned Macromedia UltraDev. Have people used this and had bad experiences? We've used it some and we've also built extensions that add support for more J2EE-based development. Info on the extensions can be found at http://www.unifyewave.com. Sorry to say that, for now, development time requires use of our web app server (Unify eWave Engine for which you can use the Trial Edition), but developed applications should deploy to Tomcat and of course eWave Engine. The macromedia rad environments are strong but seem to suffer from one of the same problems as frontpage... Too many extraneous tags. In other words their products tend to be for designers and not programmers. IMHO. --- Michael Wentzel Software Developer Software As We Think - http://www.aswethink.com mailto:[EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: IE Caching
Try this: % response.setHeader("Pragma", "no-cache"); if( request.getProtocol().equals("HTTP/1.1") ) { response.setHeader("Cache-Control", "no-cache"); } % I hope it helps. It worked for me. Rick - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: IE Caching
Try this: % response.setHeader("Pragma", "no-cache"); if( request.getProtocol().equals("HTTP/1.1") ) { response.setHeader("Cache-Control", "no-cache"); } % I hope it helps. It worked for me. Rick - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: IE Caching
Try this: % response.setHeader("Pragma", "no-cache"); if( request.getProtocol().equals("HTTP/1.1") ) { response.setHeader("Cache-Control", "no-cache"); } % I hope it helps. It worked for me. Rick - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: Recommendations for JSP development tools?
I just got back on the list, so forgive me if someone has already mentioned Forte4Java. I love it. Hchhh phoey on FrontPage. Rick - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: Recommendations for JSP development tools?
I agree! It is the best one. Second is Emacs/JDE. Any other thing is very expensive and does not provide great time saving feature. Jefferson. -Original Message- From: Rick Roberts [mailto:[EMAIL PROTECTED]] Sent: Saturday, February 10, 2001 9:34 PM To: [EMAIL PROTECTED] Subject: Re: Recommendations for JSP development tools? I just got back on the list, so forgive me if someone has already mentioned Forte4Java. I love it. Hchhh phoey on FrontPage. Rick - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
My appologies
OOPS! Sorry about all the repeat mail from me. I just relocated / reconfigured / upgraded my mail server. Didn't realize it had buffered up all the previous failed sends and was going to blast them out as soon as every thing was correctly re-configured. Sorry, Rick - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: Name of Apache handler for mod_jk
The contents of workers.properties was of no help. I also looked through the workers.properties "HowTo" but it says nothing about the "handler" name registered with Apache by mod_jk. I saw in the mod_jk source code a string define for handler with the value "jakarta-servlet" but using that results in the dreaded "Internal Server Error" when a matching request is made. I'll ask my question a different way... If I have a worker defined in workers.properties named "mainworker" what should go in place of the ?? in the following apache directive? LocationMatch /someapp/(.*)Servlet$ SetHandler ?? /LocationMatch My guesses so far have been... jserv-servlet jk-servlet jakarta-servlet jakarta-servlet.mainworker ...but none of those work. From: "Filip Hanik" Subject: Re: Name of Apache "handler" for mod_jk Date: Sat, 10 Feb 2001 12:42:54 -0800 take a look at workers.properties Filip ~ Namaste - I bow to the divine in you ~ Filip Hanik Software Architect [EMAIL PROTECTED] www.filip.net - Original Message - From: "Ray Thomas" To: Sent: Saturday, February 10, 2001 12:28 PM Subject: Name of Apache "handler" for mod_jk I had Apache WebServer mapping requests for Servlets to jakarta-tomcat based on a url ending in "Servlet" with a LocationMatch directive in the Apache configuration containing SetHandler jserv-servlet and matching (.*)Servlet$ (i.e. a reg/ex matching anything ending in Servlet). I am trying to switch to mod_jk but the JkMount directive doesn't honor the same regular expression patterns so I still need to use the LocationMatch directive. I have looked for the corresponding "handler" name that gets registered with apache when mod_jk is loaded, but can't seem to find any mention of it anywhere. Does anyone know what took the place of the jserv-servlet handler in mod_jk? I would expect it to be jk-servlet or something like that but that doesn't seem to work. -Thanks -R --== Sent via Deja.com ==-- http://www.deja.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
SSL response
I am using Flash to make a https request to a servlet. Flash seems to send the request and it gets to the servlet, but it hangs when reading/getting the response. It works fine when getting a text file containing the same info over https. Therefore two questions: 1. This is how I create the response: resp.setContentType("text/plain"); resp.setHeader("Cache-Control", "no-cache"); out = resp.getWriter(); Is this correct? Am I missing something? Should the mime type be different? Do I need to set the response size? etc. 2. Is there a program to snoop on the http response so I can tell the difference between the reponse from the servet and from the text file? Thanks. Dave. [EMAIL PROTECTED] _ 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]
RE: W2k not processing JSP
I've played around further and made some progress. The jsp pages process when I connect directly to the tomcat server http://localhost:8080/examples/jsp/dates/date.jsp however they don't when I connect to IIS on port 80 http://localhost/examples/jsp/dates/date.jsp This confirms my suspicion that isapi_redirect is the point of failure. log says this [jk_uri_worker_map.c (434)]: jk_uri_worker_map_t::map_uri_to_worker, done without a match [jk_isapi_plugin.c (452)]: HttpFilterProc [/examples/jsp/dates/date.jsp] is not a servlet url and uriworkermap.properties says: /examples/*.jsp=ajp12 and the registry entry for the dll is correct I'm positive. So is something wrong with my uriworkermap? -Original Message- From: James Leone [mailto:[EMAIL PROTECTED]] Sent: Saturday, February 10, 2001 12:08 PM To: [EMAIL PROTECTED] Subject: W2k not processing JSP Searched through the mail archives and was having no luck getting an answer. I'm tyring to get tomcat working on Win2000 with IIS using the isapi_redirect.dll. I setup the redirect, following the documents step by step, and it seems to be configured fine. For some reason the embedded jsp is not being processed in the files. (and yes I also have started tomcat running) It appears that the isapi is not detecting the file for processing. Here is what the log does when I'm running one of the tests [jk_isapi_plugin.c (408)]: HttpFilterProc started [jk_isapi_plugin.c (429)]: In HttpFilterProc test redirection of /examples/jsp/dates/date.jsp [jk_uri_worker_map.c (344)]: Into jk_uri_worker_map_t::map_uri_to_worker [jk_uri_worker_map.c (434)]: jk_uri_worker_map_t::map_uri_to_worker, done without a match [jk_isapi_plugin.c (452)]: HttpFilterProc [/examples/jsp/dates/date.jsp] is not a servlet url [jk_isapi_plugin.c (461)]: HttpFilterProc check if [/examples/jsp/dates/date.jsp] is points to the web-inf directory here is what I've got for uriworkermap # Mount the examples context to the ajp12 worker /examples/jsp/*.jsp=ajp12 if it helps here's what tomcat logged when I started it. 2001-02-10 11:20:50 - Ctx( /examples ): Set debug to 1 2001-02-10 11:20:50 - ContextManager: Adding context Ctx( /examples ) 2001-02-10 11:20:50 - ContextManager: Adding context Ctx( /admin ) 2001-02-10 11:20:50 - ContextManager: Adding context Ctx( ) 2001-02-10 11:20:50 - ContextManager: Adding context Ctx( /test ) 2001-02-10 11:20:50 - Ctx( /examples ): XmlReader - init /examples webapps/examples 2001-02-10 11:20:50 - Ctx( /examples ): Reading E:\jakarta\webapps\examples\WEB-INF\web.xml 2001-02-10 11:20:50 - Ctx( /examples ): Add user tomcat tomcat tomcat 2001-02-10 11:20:50 - Ctx( /examples ): Add user role1 tomcat role1 2001-02-10 11:20:50 - Ctx( /examples ): Add user both tomcat tomcat,role1 2001-02-10 11:20:50 - Ctx( /examples ): Loading -2147483646 jsp 2001-02-10 11:20:51 - PoolTcpConnector: Starting HttpConnectionHandler on 8080 2001-02-10 11:20:51 - PoolTcpConnector: Starting Ajp12ConnectionHandler on 8007 I must be missing a step. If anybody thinks that additional log or conf info would be helpful I'd be happy to blast it out. Thanks ahead of time for anything somebody out there can do. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
**** How do I configure Tomcat for use with j2ee ****
What do I need to do to getTomcat to work with enterprise architectures? Can it be done at all or do I have to use a weblogic or something comparable? Download j2ee and include jar files in classpath? Or is there more? How must I organize directory structures?
One context in web.xml for a lot servlets
Hello, i have some question about the Context of a Servlet. I've build a package with lot of servlets. Now i want to share the context in the web.xml File. Is it possible, and hoq could i make this. Perhaps when I only use the Packagename w/o the explizit class name ??? When I have to set the same parameter for each class, it blows up the web.xml and the error probability will be grow up.. Thank you for inconvenience, Michael - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Help with response
Hi I keep on getting this error Response has already been comited Does anybody knows how I coul avoid it. Thanks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
source build and mod_jk
Hello - I built tomcat from 3.2.1 source files. Tomcat runs smoothly. Thanks guys. I cant find mod_jk. even though mod_jk how-to says that it should be "somewhere there." Perhaps I skipped something during the built. If anyone can tell me where is mod_jk or where are the sources to compile it, I will be super duper thankful. Thanks. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: Name of Apache handler for mod_jk
I just got mod_jk up and running. It took a few tries but it tuns out that it's just like the docs say it should be. I am running on RedHat 6.2 with Apache 1.3.12 and Tomcat 3.2.1. It took me at least 3 times to go through the docs. E X A C T L Y !! But it works great now. I am also using ajp13. Beautiful!!! Let me know exactly where you are and I will try to help. Rick - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: source build and mod_jk
You do not say which OS you are using. Is you use Solaris or Linux, you may want to check: http://www.ccl.net/cca/software/UNIX/apache/ I give prescriptions how to compile mod_jk, and how to get it... On Sat, 10 Feb 2001, mikhail malamud wrote: Hello - I built tomcat from 3.2.1 source files. Tomcat runs smoothly. Thanks guys. I cant find mod_jk. even though mod_jk how-to says that it should be "somewhere there." Perhaps I skipped something during the built. If anyone can tell me where is mod_jk or where are the sources to compile it, I will be super duper thankful. Thanks. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: source build and mod_jk
Thanks a lot Jan. I already referred to your page and figured it out. Thanks once again. You do not say which OS you are using. Is you use Solaris or Linux, you may want to check: http://www.ccl.net/cca/software/UNIX/apache/ I give prescriptions how to compile mod_jk, and how to get it... On Sat, 10 Feb 2001, mikhail malamud wrote: Hello - I built tomcat from 3.2.1 source files. Tomcat runs smoothly. Thanks guys. I cant find mod_jk. even though mod_jk how-to says that it should be "somewhere there." Perhaps I skipped something during the built. If anyone can tell me where is mod_jk or where are the sources to compile it, I will be super duper thankful. Thanks. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: **** How do I configure Tomcat for use with j2ee ****
What have you tried? Tomcat relies on many of the libraries that come with SE. For instance when I start up Tomcat it loads /jdk1.3/lib/tool.jar but it looks like thats about if from the java directory. I would give it a shot by just swapping out the JAVA_HOME defined when you run bin/startup. See what happens? May work if you copy some jar files if they are not included in SE. -Original Message- From: jon [mailto:[EMAIL PROTECTED]] Sent: Saturday, February 10, 2001 5:52 PM To: [EMAIL PROTECTED] Subject: How do I configure Tomcat for use with j2ee What do I need to do to getTomcat to work with enterprise architectures? Can it be done at all or do I have to use a weblogic or something comparable? Download j2ee and include jar files in classpath? Or is there more? How must I organize directory structures? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: **** How do I configure Tomcat for use with j2ee ****
Title: RE: How do I configure Tomcat for use with j2ee unsubscribe