Page Loading occurring causing double POST messages
Hello all, I have finally debugged enough to find out that my tags are being executed twice (on a number of pages) because the page seems to be loaded twice. Does anyone know why a page would be loaded twice? I thought that a document.form.submit() would cause a signal post to the same page. Any answers or explanations would be appreciated. Paul Pavel (Paul) Brun Software Designer Messaging and Applications Mitel Networks, Ottawa, ON, Canada Work Email: [EMAIL PROTECTED] Personal: [EMAIL PROTECTED] Bus. Phone: (613) 592-5660 ext.1520 or Call Speak@Ease (613) 592-7213 -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
JSP TagLib Help...pleease
Hello all, Are there any people on this list who are experienced with custom taglib, especially, its lifecyle? Is there a website that might help me understand taglib's or is there some kind of a taglib forum? Please let me know. I am encountering problems. Thanks Paul Pavel (Paul) Brun Software Designer Messaging and Applications Mitel Networks, Ottawa, ON, Canada Work Email: [EMAIL PROTECTED] Personal: [EMAIL PROTECTED] Bus. Phone: (613) 592-5660 ext.1520 or Call Speak@Ease (613) 592-7213 -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: JSP TagLib Help...pleease
ThanksHas anybody encountered the following problem where tags are evaluated twice, my output statements show that my doStartTag(), doAfterBody() and doEndTag() are evaluated twice?? Any ideas, please let me know. Thanks Paul -Original Message- From: Vijay Shinde [mailto:[EMAIL PROTECTED]] Sent: Tuesday, March 26, 2002 11:21 AM To: Tomcat Users List Subject: Re: JSP TagLib Help...pleease Hey Paul, I am sending you one link ,I hope this will help you. http://java.sun.com/webservices/docs/ea1/tutorial/doc/JSPTags.html Regards Vijay Pavel Brun wrote: Hello all, Are there any people on this list who are experienced with custom taglib, especially, its lifecyle? Is there a website that might help me understand taglib's or is there some kind of a taglib forum? Please let me know. I am encountering problems. Thanks Paul Pavel (Paul) Brun Software Designer Messaging and Applications Mitel Networks, Ottawa, ON, Canada Work Email: [EMAIL PROTECTED] Personal: [EMAIL PROTECTED] Bus. Phone: (613) 592-5660 ext.1520 or Call Speak@Ease (613) 592-7213 -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Tomcat 4.0.3 Custom Tag Limitation???
Is there a document that details the 64 KB limitation issue under JVM? Where could I read more about it? Thanks Paul -Original Message- From: Larry Isaacs [mailto:[EMAIL PROTECTED]] Sent: Monday, March 25, 2002 2:11 PM To: 'Tomcat Users List' Subject: RE: Tomcat 4.0.3 Custom Tag Limitation??? The Tomcat 4.0.x option equivalent to Tomcat 3.3's JSPInterceptor attribute is found in Tomcat 4.0.x's global webapp defaults file, conf/web.xml. See the The JSP page compiler and execution servlet section. It will buy you a little breathing room, but can't get around the 64K limit, which is a JVM issue. If you are hitting this limit, it may be time to try splitting up the JSP page into multiple JSP pages. Cheers, Larry -Original Message- From: Pavel Brun [mailto:[EMAIL PROTECTED]] Sent: Monday, March 25, 2002 2:00 PM To: Tomcat User Subject: Tomcat 4.0.3 Custom Tag Limitation??? Hello all, I am running into a problem processing a JSP page with a large number of taglibs and encountered the following exception (shown below). We found bug 6088 (related to Tomcat 3.3 Final) which details this error detailing a limitation on the class file size (64 KB). There was a solution to set the largeFile parameter to true for the JSPInterceptor under server.xml, but this is not an option under Tomcat 4.0.3. Are there any workarounds or solutions that will permit classes files to go beyond this limit Please let me know. Thanks Paul Exception Below: javax.servlet.ServletException: (class: org/apache/jsp/display$jsp, method: _jspService signature: (Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/Ht tpServletRespo nse;)V) Illegal target of jump or branch at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:485) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilt er(Application FilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(Appli cationFilterCh ain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardW rapperValve.ja va:243) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardP ipeline.java:5 66) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipel ine.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContextValve.invoke(StandardC ontextValve.ja va:190) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardP ipeline.java:5 66) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipel ine.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContext.invoke(StandardContex t.java:2343) at org.apache.catalina.core.StandardHostValve.invoke(StandardHost Valve.java:180 ) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardP ipeline.java:5 66) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDi spatcherValve. java:170) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardP ipeline.java:5 64) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReport Valve.java:170 ) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardP ipeline.java:5 64) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValv e.java:468) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardP ipeline.java:5 64) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipel ine.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEn gineValve.java :174) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardP ipeline.java:5 66) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipel ine.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.ajp.tomcat4.Ajp13Processor.process(Ajp13Processor.java:371) at org.apache.ajp.tomcat4.Ajp13Processor.run(Ajp13Processor.java:424) at java.lang.Thread.run(Unknown Source) root cause java.lang.VerifyError: (class: org/apache/jsp/display$jsp, method: _jspService signature: (Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/Ht tpServletRespo nse;)V) Illegal target of jump or branch at java.lang.Class.newInstance0(Native Method) at java.lang.Class.newInstance(Unknown Source) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.load(Js pServlet.java: 139) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfN ecessary
RE: JSP Taglib Explanation please
my tag body returns EVAL_PAGE for doEndTag because I want the rest of the page to be evaluated. There is something in the life-cycle that decides if the tag should be re-evaluted. Under what conditions would this occur? Paul -Original Message- From: August Detlefsen [mailto:[EMAIL PROTECTED]] Sent: Monday, February 25, 2002 8:25 PM To: Tomcat Users List Subject: RE: JSP Taglib Explanation please It depends on the particular taglib... The taglib's processing methods (doInitBody(), doStartTag(), doEndTag(), doAfterBody(), etc) return ints (EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE, etc) to indicate what should be processed next. It is possible that your taglib's doEndTag() method is returning a value that would make it evaluate again. --- Pavel Brun [EMAIL PROTECTED] wrote: can anybody verify if JSP taglib code goes through twice? Anybody...all I need is an answer. I have been trying to find out this information through three different topic posts, but no answers to date. Is it by design that JSP taglib code is processed twice??? Thanks Paul -Original Message- From: Pavel Brun [mailto:[EMAIL PROTECTED]] Sent: Sunday, February 24, 2002 10:45 AM To: Tomcat Users List; [EMAIL PROTECTED] Subject: RE: JSP Taglib Explanation please so, for example, if you have a taglib like: xtags:transform xml=... xsl=.../ this line would run all the code associated with the tag twice??? That is what I am getting...is this by design?? Paul -Original Message- From: Brian Adams [mailto:[EMAIL PROTECTED]] Sent: Sunday, February 24, 2002 10:31 AM To: Tomcat Users List Subject: RE: JSP Taglib Explanation please Pavel I have tons of taglibs on my app and it does not go through it twice. it actually runs the code twice? -Original Message- From: Pavel Brun [mailto:[EMAIL PROTECTED]] Sent: Sunday, February 24, 2002 9:21 AM To: Tomcat User Subject: JSP Taglib Explanation please Hello everyone, Is there anyone here that helped develop the JSP Tag concept that could explain why JSP taglib bodies go through their bodies twice (going through doStartTag, doAfterBody and doEndTag twice)? This would be extremely helpful for me so I can understand how to proceed with certain applications. Thank you Paul -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] __ Do You Yahoo!? Yahoo! Sports - Coverage of the 2002 Olympic Games http://sports.yahoo.com -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: JSP Taglib Explanation please
unfortunately, it is one of those things I can't reproduce on my home system. I have Win 2000 with IE6 and Tomcat 4.0.1 running at home. I am seeing this problem on WinNT 4.0 Server SP6 with IE5.5 SP2 and Tomcat 4.0.1 using an IIS redirector. So, unfortunately, I can't readily reproduce the problem. Are there any suggestions that might point in me in the right direction? i.e., what cases will cause a JSP tag lib to run through its body again (from the beginning) Thanks Paul -Original Message- From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]] Sent: Monday, February 25, 2002 8:29 PM To: Tomcat Users List Subject: RE: JSP Taglib Explanation please On Mon, 25 Feb 2002, Pavel Brun wrote: Date: Mon, 25 Feb 2002 19:41:06 -0500 From: Pavel Brun [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Subject: RE: JSP Taglib Explanation please can anybody verify if JSP taglib code goes through twice? Anybody...all I need is an answer. I have been trying to find out this information through three different topic posts, but no answers to date. Is it by design that JSP taglib code is processed twice??? No. There must be something strange about your tags or your pages. The only way to get any further is to post a simple page that illustrates what you are seeing. Thanks Paul Craig -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
JSP Taglib Explanation please
Hello everyone, Is there anyone here that helped develop the JSP Tag concept that could explain why JSP taglib bodies go through their bodies twice (going through doStartTag, doAfterBody and doEndTag twice)? This would be extremely helpful for me so I can understand how to proceed with certain applications. Thank you Paul -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: JSP Taglib Explanation please
so, for example, if you have a taglib like: xtags:transform xml=... xsl=.../ this line would run all the code associated with the tag twice??? That is what I am getting...is this by design?? Paul -Original Message- From: Brian Adams [mailto:[EMAIL PROTECTED]] Sent: Sunday, February 24, 2002 10:31 AM To: Tomcat Users List Subject: RE: JSP Taglib Explanation please Pavel I have tons of taglibs on my app and it does not go through it twice. it actually runs the code twice? -Original Message- From: Pavel Brun [mailto:[EMAIL PROTECTED]] Sent: Sunday, February 24, 2002 9:21 AM To: Tomcat User Subject: JSP Taglib Explanation please Hello everyone, Is there anyone here that helped develop the JSP Tag concept that could explain why JSP taglib bodies go through their bodies twice (going through doStartTag, doAfterBody and doEndTag twice)? This would be extremely helpful for me so I can understand how to proceed with certain applications. Thank you Paul -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: JSP Tag Libraries
Interesting...however, from what I can see..I don't see two log lines, I noticed that my piece of code is executed twice. My results are consistent with code being executed twice because I see two entry points into my bean that is running behind the scenesthat is not the desired behaviour that I want to happen. Couple things that is worth noting is the following: - when I run the same piece of code in Windows 2000, IIS 5.0 and Tomcat, I don't have this problem. - when the same JSP's are run on Windows NT 4.0 Server, IIS and Tomcat, I get this error. Windows NT 4.0 is still our system of deployment. Thoughts are greatly appreciated. Paul -Original Message- From: Joel Rees [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 21, 2002 1:21 AM To: Tomcat Users List Subject: Re: JSP Tag Libraries This was not tags, but I was getting log lines showing twice just now. Then I upgraded to 1.2 beta, and also moved tomcat. When I ran tomcat again, it re-compiled everything and the double logging disappeared. I'm not sure whether to blame it on the upgrade or the re-compile, or both. Joel Rees - Original Message - From: Pavel Brun [EMAIL PROTECTED] To: Tomcat User [EMAIL PROTECTED] Sent: Thursday, February 21, 2002 3:10 PM Subject: JSP Tag Libraries I had to sign off for a couple of days since I didn't want to overload my Account provider, however, I was wondering if anybody has any possible explanation for tags being executed two times in a row. It seems like my JSP page (or something internal to the Servlet mechanism) is calling my JSP tag library twice. In what cases could this happen? I would appreciate any info. Thanks Paul -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: JSP Tag Libraries
ThanksI am afraid that this didn't work for me. It seems like all my tag bodies are called twice. I have some logging enabled and I see that in one tag for example, I have: doStartTag() doAfterBody() doEndTag() doStartTag() doAfterBody() doEndTag() I want the tag to go through the sequence once, not twice. The page itself doesn't seem to be be called twice, but rather the tag itself. Why is this? Is there anybody who helped design any JSP tag libraries have any insight as to why this would happen? Thanks...any help would be appreciated. Paul -Original Message- From: Cox, Charlie [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 21, 2002 8:40 AM To: 'Tomcat Users List' Subject: RE: JSP Tag Libraries someone had a similar problem a week ago where their jsp was being called twice(and thus the filter for it also). here is the link in the archives: http://www.mail-archive.com/tomcat-user@jakarta.apache.org/msg45182.html Charlie -Original Message- From: Pavel Brun [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 21, 2002 7:27 AM To: Tomcat Users List Subject: RE: JSP Tag Libraries Interesting...however, from what I can see..I don't see two log lines, I noticed that my piece of code is executed twice. My results are consistent with code being executed twice because I see two entry points into my bean that is running behind the scenesthat is not the desired behaviour that I want to happen. Couple things that is worth noting is the following: - when I run the same piece of code in Windows 2000, IIS 5.0 and Tomcat, I don't have this problem. - when the same JSP's are run on Windows NT 4.0 Server, IIS and Tomcat, I get this error. Windows NT 4.0 is still our system of deployment. Thoughts are greatly appreciated. Paul -Original Message- From: Joel Rees [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 21, 2002 1:21 AM To: Tomcat Users List Subject: Re: JSP Tag Libraries This was not tags, but I was getting log lines showing twice just now. Then I upgraded to 1.2 beta, and also moved tomcat. When I ran tomcat again, it re-compiled everything and the double logging disappeared. I'm not sure whether to blame it on the upgrade or the re-compile, or both. Joel Rees - Original Message - From: Pavel Brun [EMAIL PROTECTED] To: Tomcat User [EMAIL PROTECTED] Sent: Thursday, February 21, 2002 3:10 PM Subject: JSP Tag Libraries I had to sign off for a couple of days since I didn't want to overload my Account provider, however, I was wondering if anybody has any possible explanation for tags being executed two times in a row. It seems like my JSP page (or something internal to the Servlet mechanism) is calling my JSP tag library twice. In what cases could this happen? I would appreciate any info. Thanks Paul -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: JSP Tag Libraries
I am not getting duplicates with elsewhere. My tag libraries are run through twice. Could it be a result of the life cycle, I don't know. Thanks for your reply. Paul -Original Message- From: Joel Rees [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 21, 2002 11:38 PM To: Tomcat Users List Cc: [EMAIL PROTECTED] Subject: Re: JSP Tag Libraries - Original Message - Pavel Brun wrote ThanksI am afraid that this didn't work for me. It seems like all my tag bodies are called twice. Are you getting duplicates elsewhere (other than tags)? This probably has nothing to do with your case, but I just re-read the FAQ and the section about duplicate logging finely made sense to me. (I must be eating to much beef of unknown origin. ;-) Joel Rees -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
JSP Tag Libraries
I had to sign off for a couple of days since I didn't want to overload my Account provider, however, I was wondering if anybody has any possible explanation for tags being executed two times in a row. It seems like my JSP page (or something internal to the Servlet mechanism) is calling my JSP tag library twice. In what cases could this happen? I would appreciate any info. Thanks Paul -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: JSP Tag Life Cycle
yes...sorry...that is what I was referring too. The JSL TagLib lifecycle diagrams. If anybody has any ideas, I like to hear them. Thanks Paul -Original Message- From: Nikola Milutinovic [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 14, 2002 1:30 AM To: Tomcat Users List Subject: Re: JSP Tag Life Cycle I was just looking at the JSP Tag Life Cylcle diagram and had the following question. The doEndTag flows into a decision block that states use t yet another time. In what case is the tag re-evaluated (i.e., the decision block returning yes)? I have a tag that is somehow being invoked twice when I want it to be invoked once. [SNIP] Which specific diagram (in which document) are you looking at? I don't see anything like this on the lifecycle diagrams in the JSP 1.2 spec. I think he is refering to JSP TagLib diagrams, I believe they can be found in official JSP specification. The IterationTag has the ability to re-evaluate the body. While the ability is interesting, I cannot answer Pavel's question - when it is supposed to be used. OTOH, I (still) haven't gotten into some serious JSP work. Nix. -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: JSP Tag Life Cycle
I was looking at the book again and it does not have anything to do with the extended support for the IterationTag or the new constants used in the doAfterBody() method. After doEndTag is done, my tag appears to run again from the doStartTag method and onward. IT appears like the entire tag is evaluated again. Any thoughts would be greatly appreciated. thanks Paul -Original Message- From: Pavel Brun [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 14, 2002 6:29 AM To: Tomcat Users List Subject: RE: JSP Tag Life Cycle yes...sorry...that is what I was referring too. The JSL TagLib lifecycle diagrams. If anybody has any ideas, I like to hear them. Thanks Paul -Original Message- From: Nikola Milutinovic [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 14, 2002 1:30 AM To: Tomcat Users List Subject: Re: JSP Tag Life Cycle I was just looking at the JSP Tag Life Cylcle diagram and had the following question. The doEndTag flows into a decision block that states use t yet another time. In what case is the tag re-evaluated (i.e., the decision block returning yes)? I have a tag that is somehow being invoked twice when I want it to be invoked once. [SNIP] Which specific diagram (in which document) are you looking at? I don't see anything like this on the lifecycle diagrams in the JSP 1.2 spec. I think he is refering to JSP TagLib diagrams, I believe they can be found in official JSP specification. The IterationTag has the ability to re-evaluate the body. While the ability is interesting, I cannot answer Pavel's question - when it is supposed to be used. OTOH, I (still) haven't gotten into some serious JSP work. Nix. -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
JSP Tag Life Cycle
Hello all, I was just looking at the JSP Tag Life Cylcle diagram and had the following question. The doEndTag flows into a decision block that states use t yet another time. In what case is the tag re-evaluated (i.e., the decision block returning yes)? I have a tag that is somehow being invoked twice when I want it to be invoked once. My doEndTag does return EVAL_PAGE and I wanted it to return that because I want the rest of the JSP page to be evaluated. Any auggestions or answers would be helpful Thanks Paul -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: JSP Tag Life Cycle
it is in my book called: JSP Tag Libraries produced by Manning, written by Gal Shachor, Adam Chace, and Magnus Rydin page 98. I will see if I can get a scan of the image and provide it for the group. Thanks Paul -Original Message- From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 13, 2002 4:59 PM To: Tomcat Users List Subject: Re: JSP Tag Life Cycle On Wed, 13 Feb 2002, Pavel Brun wrote: Date: Wed, 13 Feb 2002 16:53:29 -0500 From: Pavel Brun [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: Tomcat User [EMAIL PROTECTED] Subject: JSP Tag Life Cycle Hello all, I was just looking at the JSP Tag Life Cylcle diagram and had the following question. The doEndTag flows into a decision block that states use t yet another time. In what case is the tag re-evaluated (i.e., the decision block returning yes)? I have a tag that is somehow being invoked twice when I want it to be invoked once. My doEndTag does return EVAL_PAGE and I wanted it to return that because I want the rest of the JSP page to be evaluated. Any auggestions or answers would be helpful Thanks Paul Which specific diagram (in which document) are you looking at? I don't see anything like this on the lifecycle diagrams in the JSP 1.2 spec. Craig -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Session Management between IIS and Tomcat
if you can send me an example...that would be greatly appreciated. :-) Thanks Paul -Original Message- From: tarunjava [mailto:[EMAIL PROTECTED]] Sent: Monday, February 11, 2002 6:09 AM To: Tomcat Users List Subject: Re: Session Management between IIS and Tomcat hi, The information saved in a session remains on the server specific class loader only and a session id is passed to the client which means the info in the session object is in the Tomcat's application specific class loader. But to share info between IIS and tomcat what we can to is save the info in cookies (ofcource on client) and when ever a server makes a request irrespective of the fact whether it is tomcat or IIS ,it can access the info. Session indirectly uses cookies but only to save the session id . If u want i can send u the coding for taking info in a JPS from cookie. i am quite sure this will work. waiting for a reply tarun - Original Message - From: Anton Brazhnyk [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Monday, February 11, 2002 2:34 PM Subject: RE: Session Management between IIS and Tomcat Hi, -Original Message- From: Pavel Brun [mailto:[EMAIL PROTECTED]] Sent: Saturday, February 09, 2002 6:48 PM To: Tomcat User Subject: Session Management between IIS and Tomcat I have already posted this question a while ago, but I was wondering if anybody knows of a mechanism for sharing an IIS session with Tomcat and vice versa? I would greatly appreciate any information anyone can give me. Even if there is no solution, I would appreciate someone telling me that it is not possible, or it would be difficult. I think it's not possible in terms of servlet engine sessions. Session is a java object and it's typically used to store some information in it. I bet IIS session's purpose is the same but with native windows code. There is more: Cookie name and url-rewriting parameter name in TC are called jsessionid and I doubt they're called that way in IIS. But, I think it's still possible in general, though you'll have to do it by yourself at applications level. It won't be easy, but if you really need it... Even those answers will help me. Thanks Paul Anton -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Can't get IIS and tomcat to work PLEASE HELP !!!
I will try again to offer my two cents in. I hope it helps this time. I have attached a ZIP of all my files and a snap-shot of my registry. The wrapper.properties in the JK folder is not as important now since you installed Tomcat as an NT service. This file would be important ifyou installed the service seperately without selecting the NT Service option. Besides the environment settings, all the information should be there. Any questions...please let me know. Paul -Original Message-From: Scott Adamson [mailto:[EMAIL PROTECTED]]Sent: Friday, February 08, 2002 10:28 AMTo: Tomcat Users ListSubject: Can't get IIS and tomcat to work PLEASE HELP !!! Can someone PLEASE help, I have been working on this for the best part of a week, without making any progress - Software installed - Windows 2000 Server IIS 5.0 Tomcat 4.01 jdk1.3.1_01 Tomcat setup - Installed to D:\Tomcat4\ Modified /conf/server.xml uncommenting ajp13 connector (see attachment) Added /conf/worker.properties (see attachment) Added /conf/uriworkermap.properties (see attachment) Added /conf/jk/wrapper.properties(see attachment) on the advice of Paul Added isapi_redirect to /bin/ Choose option during installation to add Tomcat as a service IIS setup - Added isapi_redirect.dll as an isapi filter to the machine name, under 'Home directory' - 'configuration' I set .jps extensions to redirect to d:\Tomcat4\bin\isapi_redirect.dll, this is set the same way for the default website. Added 'jakarta' virtual directory to the default website, set .jps extensions to redirect to d:\Tomcat4\bin\isapi_redirect.dll Set anonymous access on the computer name, default website and the 'jakarta' virtual directory Registry - Added the required settings to the registry (see attachment) manually, as I could not seem to run the .reg file Environment variables (System)- Added 'd:\jdk1.3.1_01\bin' to PATH Added variable 'JAVA_HOME' set to 'd:\jdk1.3.1_01\' Added variable 'CATALINA_HOME' set to 'd:Tomcat4\' Log entries - '/logs/isapi_redirect ' gets the following for every request - [jk_isapi_plugin.c (408)]: HttpFilterProc started[jk_isapi_plugin.c (429)]: In HttpFilterProc test redirection of /examples/jsp/index.html[jk_uri_worker_map.c (345)]: Into jk_uri_worker_map_t::map_uri_to_worker[jk_uri_worker_map.c (407)]: jk_uri_worker_map_t::map_uri_to_worker, Found a match ajp13[jk_isapi_plugin.c (439)]: HttpFilterProc [/examples/jsp/index.html] is a servlet url - should redirect to ajp13[jk_isapi_plugin.c (461)]: HttpFilterProc check if [/examples/jsp/index.html] is points to the web-inf directory I don't know what this is, does it contain error messages ? I don't know. 'c:\winnt\System32\W3SVC4\ex020208.log gets the following for every request - 2002-02-08 15:15:12 127.0.0.1 - 127.0.0.1 80 GET /jakarta/isapi_redirect.dll - 404 Mozilla/4.0+(compatible;+MSIE+6.0;+Windows+NT+5.0) I have noticed a strange things with this log, the date is a day behind what it should be,is this a problem? I've seen stuff break before with incorrect dates. The system date is correct and /logs/isapi_redirect entries contain the correct date. This definately indicates an error - can't find the damn file, crap docos on the net just advise to check the URL, restart shit etc. C'mon guys and girls, PLEASE SOMEONE THROW ME A LIFELINE!!! I've been working on this far too long, it is a show stopper for us and my next step is to get the code for isapi_redirect.dll and recompile with debug info. Can someone please at least confirm that they have this working with exactly the same environement - Windows 2000 Server IIS 5.0 Tomcat 4.01 jdk1.3.1_01 Thanks, Scott TomcatNTConfiguration.zip Description: Zip compressed data -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Another Tomcat4 IIS Install
There is no need to have an examples directory pointing to e:\tomcat4\webapps\examples All you need is the virtual jakarta directory that points to the folder containing isapi_direct.dll and have an up-to-date uriworkermap.properties file that is referenced from your registry. If you require more details, please let me know. Thanks Paul -Original Message- From: Richard [mailto:[EMAIL PROTECTED]] Sent: Friday, February 08, 2002 12:08 PM To: [EMAIL PROTECTED] Subject: Another Tomcat4 IIS Install Like many others, I am also having difficulty integrating win2ksp2, IIS5.0, and Tomcat 4.0.1. I have read through several how-to docs, read through a few of the mailing list archives but I am still having issues. I used the following link for my main install http://www.vacodi.com/howto/tomcat/iisnt/index.html isapi_redirect is green, and tomcat appears to work fine using 8080. When I try and hit ther server through IIS I get strange results, such as the page does not load or the jsp will execute but information is not shown. For exmple the date.jsp example displays date is but doesn't show the current date. The ajp13 connector in server.xml has also been uncommented. I am also unsure if IIS has been configured properly for use with tomcat. I currently have the default website set to e:\webroot . I then created a virtual directory called examples and pointed it to e:\tomcat4\webapps\examples. I am attaching my settings and isapi log entries.. I have also created the virtual Jakarta directory which points to e:\tomcat4\conf\ntis\ with execute access.. Is there a common IIS/Tomcat config? Please let me know if anything obvious appears. Thanks in advance Richard Haag Isapi Redirect log -- In HttpFilterProc test Default redirection of /examples/jsp/error/err.jsp [Fri Feb 08 00:23:49 2002] [jk_uri_worker_map.c (351)]: Into jk_uri_worker_map_t::map_uri_to_worker [Fri Feb 08 00:23:49 2002] [jk_uri_worker_map.c (368)]: Attempting to map URI '/examples/jsp/error/err.jsp' [Fri Feb 08 00:23:49 2002] [jk_uri_worker_map.c (416)]: jk_uri_worker_map_t::map_uri_to_worker, Found a suffix match ajp13 - *.jsp [Fri Feb 08 00:23:49 2002] [jk_isapi_plugin.c (617)]: HttpFilterProc [/examples/jsp/error/err.jsp?name=z3submit=Submit] is a servlet url - should redirect to ajp13 [Fri Feb 08 00:23:49 2002] [jk_isapi_plugin.c (639)]: HttpFilterProc check if [/examples/jsp/error/err.jsp?name=z3submit=Submit] is points to the web-inf directory [Fri Feb 08 00:23:49 2002] [jk_isapi_plugin.c (555)]: HttpFilterProc started [Fri Feb 08 00:23:49 2002] [jk_isapi_plugin.c (600)]: In HttpFilterProc Virtual Host redirection of /10.3.1.8/jakarta/isapi_redirect.dll [Fri Feb 08 00:23:49 2002] [jk_uri_worker_map.c (351)]: Into jk_uri_worker_map_t::map_uri_to_worker [Fri Feb 08 00:23:49 2002] [jk_uri_worker_map.c (368)]: Attempting to map URI '/10.3.1.8/jakarta/isapi_redirect.dll' [Fri Feb 08 00:23:49 2002] [jk_uri_worker_map.c (456)]: jk_uri_worker_map_t::map_uri_to_worker, done without a match [Fri Feb 08 00:23:49 2002] [jk_isapi_plugin.c (606)]: In HttpFilterProc test Default redirection of /jakarta/isapi_redirect.dll [Fri Feb 08 00:23:49 2002] [jk_uri_worker_map.c (351)]: Into jk_uri_worker_map_t::map_uri_to_worker [Fri Feb 08 00:23:49 2002] [jk_uri_worker_map.c (368)]: Attempting to map URI '/jakarta/isapi_redirect.dll' [Fri Feb 08 00:23:49 2002] [jk_uri_worker_map.c (456)]: jk_uri_worker_map_t::map_uri_to_worker, done without a match [Fri Feb 08 00:23:49 2002] [jk_isapi_plugin.c (638)]: HttpFilterProc [/jakarta/isapi_redirect.dll] is not a servlet url [Fri Feb 08 00:23:49 2002] [jk_isapi_plugin.c (647)]: HttpFilterProc check if [/jakarta/isapi_redirect.dll] is points to the web-inf directory [Fri Feb 08 00:23:49 2002] [jk_isapi_plugin.c (679)]: HttpExtensionProc started [Fri Feb 08 00:23:49 2002] [jk_worker.c (123)]: Into wc_get_worker_for_name ajp12 [Fri Feb 08 00:23:49 2002] [jk_worker.c (127)]: wc_get_worker_for_name, done found a worker [Fri Feb 08 00:23:49 2002] [jk_isapi_plugin.c (701)]: HttpExtensionProc got a worker for name ajp12 [Fri Feb 08 00:23:49 2002] [jk_ajp12_worker.c (223)]: Into jk_worker_t::get_endpoint [Fri Feb 08 00:23:49 2002] [jk_ajp12_worker.c (121)]: Into jk_endpoint_t::service [Fri Feb 08 00:23:49 2002] [jk_connect.c (108)]: Into jk_open_socket [Fri Feb 08 00:23:49 2002] [jk_connect.c (115)]: jk_open_socket, try to connect socket = 1648 [Fri Feb 08 00:23:50 2002] [jk_connect.c (124)]: jk_open_socket, after connect ret = -1 [Fri Feb 08 00:23:50 2002] [jk_connect.c (143)]: jk_open_socket, connect() failed errno = 61 [Fri Feb 08 00:23:50 2002] [jk_ajp12_worker.c (134)]: In jk_endpoint_t::service, sd = -1 [Fri Feb 08 00:23:50 2002] [jk_ajp12_worker.c (152)]: In jk_endpoint_t::service, Error sd = -1 [Fri Feb 08 00:23:50 2002] [jk_isapi_plugin.c (716)]: HttpExtensionProc error, service() failed [Fri Feb 08 00:23:50 2002] [jk_ajp12_worker.c (163)]:
Session Management between IIS and Tomcat
I have already posted this question a while ago, but I was wondering if anybody knows of a mechanism for sharing an IIS session with Tomcat and vice versa? I would greatly appreciate any information anyone can give me. Even if there is no solution, I would appreciate someone telling me that it is not possible, or it would be difficult. Even those answers will help me. Thanks Paul -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Tomcat doesn't work with IIS (repost)
Hi Scott, I just noticed something...the registry entries shouldn't have the \\ between directory names. Best bet is to replace \\ for \ between the directory names manually instead of re-merging because re-merging the registry file won't change anything if the key names are defined. Hope this helps!! Paul -Original Message- From: Scott Adamson [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 06, 2002 7:27 PM To: Tomcat Users List Subject: Tomcat doesn't work with IIS (repost) I'm trying to setup Tomcat 4.0 to work with IIS 5.0 on Windows 2000. As follows : Software - Installed jdk1.3.1_01 to d:\jdk1.3.1_01\ Installed Tomcat 4.01 to d:\Apache Tomcat 4.0\ Installed isapi_redirect.dll to d:\Apache Tomcat 4.0\bin\ This came from the 3.2.3 distribution as it is not included in 4 IIS - Added 'jakarta' virtual directory to the default web site Added isapi_redirect as an isapi filter under the computer name, succesfully loaded Added an application extension for .jsp pointing to isapi_redirect.dll Tomcat - Uncommented ajp13 stuff from server.xml Added # # worker.tomcat_home should point to the location where you # installed tomcat. This is where you have your conf, webapps and lib # directories. # worker.tomcat_home=D:\Apache Tomcat 4.0 # # worker.java_home should point to your Java installation. Normally # you should have a bin and lib directories beneath it. # worker.java_home=D:\jdk1.3.1_01 to worker.properties Changed uriworkermap.properties to Default worker to be used through our mappings # default.worker=ajp13 # # Sites to be redirected to Tomcat # /example=$(default.worker) /example/*=$(default.worker) Added /conf/jk/wrapper.properties wrapper.tomcat_home=d:\Apache Tomcat 4.0 wrapper.java_home=d:\jdk1.3.1_01 See the attached screenshot of my registry Nothing works execept from port 8080, I have checked isapi_redirect.log, it gets the following entry for every request (returns a 404 error) - [Thu Feb 07 11:25:28 2002] [jk_isapi_plugin.c (555)]: HttpFilterProc started [Thu Feb 07 11:25:28 2002] [jk_isapi_plugin.c (600)]: In HttpFilterProc Virtual Host redirection of /localhost/examples/jsp/index.html [Thu Feb 07 11:25:28 2002] [jk_uri_worker_map.c (351)]: Into jk_uri_worker_map_t::map_uri_to_worker [Thu Feb 07 11:25:28 2002] [jk_uri_worker_map.c (368)]: Attempting to map URI '/localhost/examples/jsp/index.html' [Thu Feb 07 11:25:28 2002] [jk_uri_worker_map.c (456)]: jk_uri_worker_map_t::map_uri_to_worker, done without a match [Thu Feb 07 11:25:28 2002] [jk_isapi_plugin.c (606)]: In HttpFilterProc test Default redirection of /examples/jsp/index.html [Thu Feb 07 11:25:28 2002] [jk_uri_worker_map.c (351)]: Into jk_uri_worker_map_t::map_uri_to_worker [Thu Feb 07 11:25:28 2002] [jk_uri_worker_map.c (368)]: Attempting to map URI '/examples/jsp/index.html' [Thu Feb 07 11:25:28 2002] [jk_uri_worker_map.c (456)]: jk_uri_worker_map_t::map_uri_to_worker, done without a match [Thu Feb 07 11:25:28 2002] [jk_isapi_plugin.c (638)]: HttpFilterProc [/examples/jsp/index.html] is not a servlet url [Thu Feb 07 11:25:28 2002] [jk_isapi_plugin.c (647)]: HttpFilterProc check if [/examples/jsp/index.html] is points to the web-inf directory I don't get anything in the IIS log. Can anyone see whats going on here ? or think of anything that I have forgotten to do ?
RE: Session Binding with IIS (Is it Possible?)
I am assuming from the lack of response that session binding between IIS and Tomcat is not possible? This is in reference to having Tomcat keep the IIS session active when Tomcat is processing its Web Application. Thanks Paul -Original Message- From: Pavel Brun [mailto:[EMAIL PROTECTED]] Sent: Monday, February 04, 2002 5:41 PM To: Tomcat User Subject: Session Binding with IIS (Is it Possible?) I am not sure if this is possible, but what possibilities are out there to bind the IIS session with Tomcat's Session Management and vice versa? Thanks Paul -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Session Binding with IIS (is it possible??)))
I am not sure if this is possible, but what possibilities are out there to bind the IIS session with Tomcat's Session Management and vice versa? Thanks Paul -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Fixed - RE: RE: Catalina Beans - Class Path Problem
I would have assumed that once you load a JAR into the ClassLoader, that any changes will not be taken into account unless you reload the application (Tomcat). However, I took the approach of replacing the JAR's, not really updating them. I will have to give that a try to see if that works. :-) Thanks for the update. Paul -Original Message- From: August Detlefsen [mailto:[EMAIL PROTECTED]] Sent: Monday, February 04, 2002 4:20 PM To: Tomcat Users List Subject: Re: Fixed - RE: RE: Catalina Beans - Class Path Problem I have found that it does not pick up changes to WEB-INF/classes, though it does recognise changes to WEB-INF/lib. My solution is to update the jar (jar -uvf) whenever I change a class. My build script (run from WEB-INF/src dev directory) goes something like this: #!/bin/bash export CLASSPATH=$CLASSPATH:.:/usr/local/catalina/classes/:/usr/local/j2sdkee1.2.1/ lib/j2ee.jar echo $CLASSPATH FILE=$1 if [ $1 = ]; then echo building all java files FILE=* fi find . -name $FILE.java -exec javac {} \; -print find . -name $FILE.class -exec jar -uvf ../lib/myWebapp.jar {} \; --- Jon Shoberg [EMAIL PROTECTED] wrote: All fixed :) Can tomcat/catalina check the classes directory to make sure none of them have been modified. Obviosuly it will check my JSPs but apparently not so when I have to change a class. Currently I have to reload the applciation. Any thoughts? Thanks for the help. -Original Message- From: Pavel Brun [mailto:[EMAIL PROTECTED]] Sent: Sunday, February 03, 2002 9:10 AM To: Tomcat Users List Subject: RE: RE: Catalina Beans - Class Path Problem I am not sure if you are running this in Windows but if you go to something equivalent to starting this at the command line, type startup debug in the %CATALINA_HOME%\bin directory and see if your classes or jars are loaded? Paul -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Sunday, February 03, 2002 8:29 AM To: Tomcat Users List Subject: Re: RE: Catalina Beans - Class Path Problem I am having the same problem only my clases ARE directly in the classes folder. Also, my utility classes, which are neither servlets nor Beans, are also giving me the same problem. Please help!!! I have tried packaging them and then without packaging. I am not sure what to do now. I am not using any IDE nor am I using a deployment tool. Tomcat Users List [EMAIL PROTECTED] wrote: Please see my comments below: All your classes and/or beans should go into: ./webapps/gateway/WEB-INF/classes, or ./webapps/gateway/WEB-INF/lib This should help you out. :-) Paul -Original Message- From: Jon Shoberg [mailto:[EMAIL PROTECTED]] Sent: Saturday, February 02, 2002 8:12 PM To: Tomcat Users List Subject: Catalina Beans - Class Path Problem Short Version: For some reason, I can not get my JSP pages to compile when loading a little bean ... It is not reading web-inf/classes. Although, it is reading web-inf/web.xml Long Version: A)Installed tomcat, got it running, all of the example programs work. B)I am building an application called Gateway I created ./webapps/gateway ./webapps/gateway/index.jsp ./webapps/gateway/WEB-INF/ ./webapps/gatewayWEB-INF/web.xml So I understand this to be creating a bean with id Words from the class ./webapps/gateway/classes/gwclasses/words.class in the kw.jsp. However, I am getting a compiler error saying C:\apache\Tomcat4\work\localhost\gateway\kw$jsp.java:63: Class gwclasses.words not found Any thoughts ? Thanks -- To unsubscribe: For additional commands: Troubles with the list: -- To unsubscribe: For additional commands: Troubles with the list: -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] __ Do You Yahoo!? Great stuff seeking new owners in Yahoo! Auctions! http://auctions.yahoo.com -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Session Binding with IIS (Is it Possible?)
I am not sure if this is possible, but what possibilities are out there to bind the IIS session with Tomcat's Session Management and vice versa? Thanks Paul -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: JRE or JDK
you need the JDK for JSP page compilation. JRE (Java Runtime) is only good for running Java Applications. The JDK is used to compile the JSP pages into servlets. Paul -Original Message- From: Ken Sanderson [mailto:[EMAIL PROTECTED]] Sent: Monday, February 04, 2002 6:45 PM To: [EMAIL PROTECTED] Subject: JRE or JDK Hello all. I have installed tomcat on my NT machine, in order to run a software application that requires it. In the install instructions it talks about setting the JAVA_HOME variable to the JDK bin folder. However, it cannot find the necessary files it needs in that location. Instead if I set the JAVA_HOME variable to my JRE bin folder, it works fine. Is JDK supposed to be JRE? Everything is working great with the JRE setup, however I noticed that when I go to the log on window, tomcat is shut down. After some research I found that the problem is my JDK, and I need to upgrade it to 1.3.1, which I did. Now the question is, since my JAVA_HOME is pointing to the JRE, is it really 1.3.1 of JRE I need, not the JDK? Sorry thats probably confusing, thoughts appreciated. Ken Sanderson Miistakis Institute for the Rockies c/o Faculty of Environmental Design 2500 University Drive NW Calgary, Alberta T2N 1N4 t 1 (403) 220-8968 1 (403) 220-2573 w www.rockies.ca facilitating ecosystem research management in the Rocky Mountains -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: can't get tomat working with IIS (complete email...earlier one was incomplete)
Is the IIS virtual directory set to execute (with scripts) mode? Did you register your iisredirect.reg file? Also, did you load your redirector at the level of your computer name in the Internet Information Services area? Could you send me screen captures of your settings? You can send it to my email address if you wish... Thanks Paul -Original Message- From: Scott Adamson [mailto:[EMAIL PROTECTED]] Sent: Saturday, February 02, 2002 4:55 PM To: Tomcat Users List Subject: Re: can't get tomat working with IIS (complete email...earlier one was incomplete) I have tried this uriworkermap.properties file, but it made no difference. I have setup the 'jakarta' virtual directory under the default web site, is there anythng else required with IIS ? I've set the website IIS to allow anonymous access. I have only modified worker.properties servlet.xml, is there anything else that needs to be done thats NOT mentioned in the official HOWTO?(no mention of modifying server.xml). I suspect the following log file entries may have something to do with it - [Sun Feb 03 08:39:10 2002] [jk_isapi_plugin.c (606)]: In HttpFilterProc test Default redirection of /examples/ [Sun Feb 03 08:39:10 2002] [jk_uri_worker_map.c (351)]: Into jk_uri_worker_map_t::map_uri_to_worker [Sun Feb 03 08:39:10 2002] [jk_uri_worker_map.c (368)]: Attempting to map URI '/examples/' [Sun Feb 03 08:39:10 2002] [jk_uri_worker_map.c (456)]: jk_uri_worker_map_t::map_uri_to_worker, done without a match [Sun Feb 03 08:39:10 2002] [jk_isapi_plugin.c (638)]: HttpFilterProc [/examples/] is not a servlet url [Sun Feb 03 08:39:10 2002] [jk_isapi_plugin.c (647)]: HttpFilterProc check if [/examples/] is points to the web-inf directory some problem not mapping to the directory 'example', but it is in the standard place under webapps. Are there any permissions that need to be set with the /examples directory ? - Original Message - From: Pavel Brun [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Sunday, February 03, 2002 5:30 PM Subject: RE: can't get tomat working with IIS (complete email...earlier one was incomplete) woopssent it prematurely. :-) The uriworkermap.properties has the following format: -- # Default worker to be used through our mappings # default.worker=ajp13 # # Sites to be redirected to Tomcat # /example=$(default.worker) /example/*=$(default.worker) -- If example was a directory located under webapps, then this would define what IIS would redirect to Tomcat for processing. As for server.xml, there is something that looks like this: -- !-- Define an AJP 1.3 Connector on port 8009 -- Connector className=org.apache.ajp.tomcat4.Ajp13Connector port=8009 minProcessors=5 maxProcessors=75 acceptCount=10 debug=0/ -- Hope this helpsany questions, just shout... Paul -Original Message- From: Scott Adamson [mailto:[EMAIL PROTECTED]] Sent: Saturday, February 02, 2002 1:27 PM To: Tomcat Users List Subject: Re: can't get tomat working with IIS What is required in uriworkermap.properties ? No, I haven't modified this file. I can't find any reference to 'ajp13' in server.xml, what is meant to be there ? - Original Message - From: Pavel Brun [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Sunday, February 03, 2002 5:15 PM Subject: RE: can't get tomat working with IIS Did you add the appropriate directories to uriworkermap.properties? Also, did you uncomment the reference to the ajp13 connector in server.xml? I am also running Windows 2K IIS and Tomcat and they both work well. Thanks PAul -Original Message- From: Scott Adamson [mailto:[EMAIL PROTECTED]] Sent: Saturday, February 02, 2002 1:00 PM To: [EMAIL PROTECTED] Subject: can't get tomat working with IIS I'm trying to get Tomcat 4.0 working with IIS, the ISAPI redirect has loaded correctly (green arrow) but still nothing. Works fine with 8080. I have checked the iis_redirect.log - it generates - [Sun Feb 03 04:42:55 2002] [jk_isapi_plugin.c (555)]: HttpFilterProc started [Sun Feb 03 04:42:55 2002] [jk_isapi_plugin.c (600)]: In HttpFilterProc Virtual Host redirection of /localhost/examples/jsp/index.html [Sun Feb 03 04:42:55 2002] [jk_uri_worker_map.c (351)]: Into jk_uri_worker_map_t::map_uri_to_worker [Sun Feb 03 04:42:55 2002] [jk_uri_worker_map.c (368)]: Attempting to map URI '/localhost/examples/jsp/index.html' [Sun Feb 03 04:42:55 2002] [jk_uri_worker_map.c (456)]: jk_uri_worker_map_t::map_uri_to_worker, done without a match [Sun Feb 03 04:42:55 2002] [jk_isapi_plugin.c (606)]: In HttpFilterProc test
RE: RE: Catalina Beans - Class Path Problem
I am not sure if you are running this in Windows but if you go to something equivalent to starting this at the command line, type startup debug in the %CATALINA_HOME%\bin directory and see if your classes or jars are loaded? Paul -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Sunday, February 03, 2002 8:29 AM To: Tomcat Users List Subject: Re: RE: Catalina Beans - Class Path Problem I am having the same problem only my clases ARE directly in the classes folder. Also, my utility classes, which are neither servlets nor Beans, are also giving me the same problem. Please help!!! I have tried packaging them and then without packaging. I am not sure what to do now. I am not using any IDE nor am I using a deployment tool. Tomcat Users List [EMAIL PROTECTED] wrote: Please see my comments below: All your classes and/or beans should go into: ./webapps/gateway/WEB-INF/classes, or ./webapps/gateway/WEB-INF/lib This should help you out. :-) Paul -Original Message- From: Jon Shoberg [mailto:[EMAIL PROTECTED]] Sent: Saturday, February 02, 2002 8:12 PM To: Tomcat Users List Subject: Catalina Beans - Class Path Problem Short Version: For some reason, I can not get my JSP pages to compile when loading a little bean ... It is not reading web-inf/classes. Although, it is reading web-inf/web.xml Long Version: A)Installed tomcat, got it running, all of the example programs work. B)I am building an application called Gateway I created ./webapps/gateway ./webapps/gateway/index.jsp ./webapps/gateway/WEB-INF/ ./webapps/gatewayWEB-INF/web.xml So I understand this to be creating a bean with id Words from the class ./webapps/gateway/classes/gwclasses/words.class in the kw.jsp. However, I am getting a compiler error saying C:\apache\Tomcat4\work\localhost\gateway\kw$jsp.java:63: Class gwclasses.words not found Any thoughts ? Thanks -- To unsubscribe: For additional commands: Troubles with the list: -- To unsubscribe: For additional commands: Troubles with the list: -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: can't get tomat working with IIS
Just to confirm, when you right click on the iis_redirect.reg file, you should see the option to merge. When you do that, you should see six entries in: HKEY_LOCAL_MACHINE\SOFTWARE\Apache Software Foundation\Jakarta Isapi Redirector\1.0 If those entries are not there, then, you wouldn't be able to properly redirect. However, it does sound strange that the registry changes didn't take affect. Interesting, please let me know if this works out. Paul -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Catalina Beans - Class Path Problem
Please see my comments below: All your classes and/or beans should go into: ./webapps/gateway/WEB-INF/classes, or ./webapps/gateway/WEB-INF/lib This should help you out. :-) Paul -Original Message- From: Jon Shoberg [mailto:[EMAIL PROTECTED]] Sent: Saturday, February 02, 2002 8:12 PM To: Tomcat Users List Subject: Catalina Beans - Class Path Problem Short Version: For some reason, I can not get my JSP pages to compile when loading a little bean ... It is not reading web-inf/classes. Although, it is reading web-inf/web.xml Long Version: A)Installed tomcat, got it running, all of the example programs work. B)I am building an application called Gateway I created ./webapps/gateway ./webapps/gateway/index.jsp --- works no problem ./webapps/gateway/kw.jsp calls bean, has problem modified server.xml and reloaded ... my index.jsp works no problem on this web app ./webapps/gateway/WEB-INF/ ./webapps/gatewayWEB-INF/web.xml --- this app is a proteced resource, I know it is reading this properly ./webapps/gateway/classes/ ./webapps/gateway/classes/gwclasses gateway classes and beans go in here ./webapps/gateway/classes/gwclasses/words.java ./webapps/gateway/classes/gwclasses/words.class - yeah, testing my code with another ide first so I know it works C)So from kw.jsp I cam calling a bean such as jsp:useBean id=Words scope=session class=gwclasses.words / So I understand this to be creating a bean with id Words from the class ./webapps/gateway/classes/gwclasses/words.class in the kw.jsp. However, I am getting a compiler error saying C:\apache\Tomcat4\work\localhost\gateway\kw$jsp.java:63: Class gwclasses.words not found Any thoughts ? Thanks -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: can't get tomat working with IIS
Did you add the appropriate directories to uriworkermap.properties? Also, did you uncomment the reference to the ajp13 connector in server.xml? I am also running Windows 2K IIS and Tomcat and they both work well. Thanks PAul -Original Message- From: Scott Adamson [mailto:[EMAIL PROTECTED]] Sent: Saturday, February 02, 2002 1:00 PM To: [EMAIL PROTECTED] Subject: can't get tomat working with IIS I'm trying to get Tomcat 4.0 working with IIS, the ISAPI redirect has loaded correctly (green arrow) but still nothing. Works fine with 8080. I have checked the iis_redirect.log - it generates - [Sun Feb 03 04:42:55 2002] [jk_isapi_plugin.c (555)]: HttpFilterProc started [Sun Feb 03 04:42:55 2002] [jk_isapi_plugin.c (600)]: In HttpFilterProc Virtual Host redirection of /localhost/examples/jsp/index.html [Sun Feb 03 04:42:55 2002] [jk_uri_worker_map.c (351)]: Into jk_uri_worker_map_t::map_uri_to_worker [Sun Feb 03 04:42:55 2002] [jk_uri_worker_map.c (368)]: Attempting to map URI '/localhost/examples/jsp/index.html' [Sun Feb 03 04:42:55 2002] [jk_uri_worker_map.c (456)]: jk_uri_worker_map_t::map_uri_to_worker, done without a match [Sun Feb 03 04:42:55 2002] [jk_isapi_plugin.c (606)]: In HttpFilterProc test Default redirection of /examples/jsp/index.html [Sun Feb 03 04:42:55 2002] [jk_uri_worker_map.c (351)]: Into jk_uri_worker_map_t::map_uri_to_worker [Sun Feb 03 04:42:55 2002] [jk_uri_worker_map.c (368)]: Attempting to map URI '/examples/jsp/index.html' [Sun Feb 03 04:42:55 2002] [jk_uri_worker_map.c (391)]: jk_uri_worker_map_t::map_uri_to_worker, Found a context match ajp13 - /examples/ [Sun Feb 03 04:42:55 2002] [jk_isapi_plugin.c (625)]: HttpFilterProc [/examples/jsp/index.html] is a servlet url - should redirect to ajp13 [Sun Feb 03 04:42:55 2002] [jk_isapi_plugin.c (647)]: HttpFilterProc check if [/examples/jsp/index.html] is points to the web-inf directory every request. I have read that the existance of the line 'In HttpFilterProc Virtual Host redirection of /localhost/examples/jsp/index.html' indicates that the 'Filter DLLs' registry key is incorrectly set (as this is a W2K server). But I have NOT set this, and I can't find anything like it in the registry. As previously mentioned I'm running Tomcat4.0 on Windows 2000 server, I don't know what version of IIS - can't find this information, don't know which stinkin GUI panel will show this. Any help or advice anyone can offer would be much appreciated, as I have been thru all the docos and have searched the web. I have included my settings below. Thanks, Scott. Tomcat worker.properties - # Begin worker.properties ** worker.ajp13.type=ajp13 # # Specifies the load balance factor when used with # a load balancing worker. # Note: # lbfactor must be 0 # Low lbfactor means less work done by the worker. worker.ajp13.lbfactor=1 # # Specify the size of the open connection cache. #worker.ajp13.cachesize # #-- DEFAULT LOAD BALANCER WORKER DEFINITION -- #- # # # The loadbalancer (type lb) worker perform weighted round-robin # load balancing with sticky sessions. # Note: # If a worker dies, the load balancer will check its state #once in a while. Until then all work is redirected to peer #worker. worker.loadbalancer.type=lb worker.loadbalancer.balanced_workers=ajp13 # # worker.tomcat_home should point to the location where you # installed tomcat. This is where you have your conf, webapps and lib # directories. # worker.tomcat_home=D:\Apache Tomcat 4.0 # # worker.java_home should point to your Java installation. Normally # you should have a bin and lib directories beneath it. # worker.java_home=D:\jdk1.3.1_01 # # You should configure your environment slash... ps=\ on NT and / on UNIX # and maybe something different elsewhere. # ps=\ # #-- ADVANCED MODE #- # # #-- DEFAULT worker list -- #- # # The worker that your plugins should create and work with worker.list=ajp13 # #-- DEFAULT ajp13 WORKER DEFINITION -- #- # # # Defining a worker named ajp13 and of type ajp13 # Note that the name and the type do not have to match. # worker.ajp13.port=8009 worker.ajp13.host=localhost # End worker.properties ** Note : no other Tomcat files have been modified registry - REGEDIT4 [HKEY_LOCAL_MACHINE\SOFTWARE\Apache Software Foundation\Jakarta Isapi Redirector\1.0] extension_uri=/jakarta/isapi_redirect.dll log_file=D:\\Apache Tomcat 4.0\\logs\\iis_redirect.log log_level=info worker_file=D:\\Apache Tomcat 4.0\\conf\\worker.properties
RE: can't get tomat working with IIS
The uriworkermap.properties has the following format: - # # Default worker to be used through our mappings # default.worker=ajp13 # # Sites to be redirected to Tomcat # /example=$(default.worker) /example/*=$(default.worker) - If example was a directory located under webapps, then this would define what IIS would redirect to Tomcat for processing. As for server.xml, there is something that looks like this: - !-- Define an AJP 1.3 Connector on port 8009 -- Connector className=org.apache.ajp.tomcat4.Ajp13Connector port=8009 minProcessors=5 maxProcessors=75 acceptCount=10 debug=0/ -Original Message- From: Scott Adamson [mailto:[EMAIL PROTECTED]] Sent: Saturday, February 02, 2002 1:27 PM To: Tomcat Users List Subject: Re: can't get tomat working with IIS What is required in uriworkermap.properties ? No, I haven't modified this file. I can't find any reference to 'ajp13' in server.xml, what is meant to be there ? - Original Message - From: Pavel Brun [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Sunday, February 03, 2002 5:15 PM Subject: RE: can't get tomat working with IIS Did you add the appropriate directories to uriworkermap.properties? Also, did you uncomment the reference to the ajp13 connector in server.xml? I am also running Windows 2K IIS and Tomcat and they both work well. Thanks PAul -Original Message- From: Scott Adamson [mailto:[EMAIL PROTECTED]] Sent: Saturday, February 02, 2002 1:00 PM To: [EMAIL PROTECTED] Subject: can't get tomat working with IIS I'm trying to get Tomcat 4.0 working with IIS, the ISAPI redirect has loaded correctly (green arrow) but still nothing. Works fine with 8080. I have checked the iis_redirect.log - it generates - [Sun Feb 03 04:42:55 2002] [jk_isapi_plugin.c (555)]: HttpFilterProc started [Sun Feb 03 04:42:55 2002] [jk_isapi_plugin.c (600)]: In HttpFilterProc Virtual Host redirection of /localhost/examples/jsp/index.html [Sun Feb 03 04:42:55 2002] [jk_uri_worker_map.c (351)]: Into jk_uri_worker_map_t::map_uri_to_worker [Sun Feb 03 04:42:55 2002] [jk_uri_worker_map.c (368)]: Attempting to map URI '/localhost/examples/jsp/index.html' [Sun Feb 03 04:42:55 2002] [jk_uri_worker_map.c (456)]: jk_uri_worker_map_t::map_uri_to_worker, done without a match [Sun Feb 03 04:42:55 2002] [jk_isapi_plugin.c (606)]: In HttpFilterProc test Default redirection of /examples/jsp/index.html [Sun Feb 03 04:42:55 2002] [jk_uri_worker_map.c (351)]: Into jk_uri_worker_map_t::map_uri_to_worker [Sun Feb 03 04:42:55 2002] [jk_uri_worker_map.c (368)]: Attempting to map URI '/examples/jsp/index.html' [Sun Feb 03 04:42:55 2002] [jk_uri_worker_map.c (391)]: jk_uri_worker_map_t::map_uri_to_worker, Found a context match ajp13 - /examples/ [Sun Feb 03 04:42:55 2002] [jk_isapi_plugin.c (625)]: HttpFilterProc [/examples/jsp/index.html] is a servlet url - should redirect to ajp13 [Sun Feb 03 04:42:55 2002] [jk_isapi_plugin.c (647)]: HttpFilterProc check if [/examples/jsp/index.html] is points to the web-inf directory every request. I have read that the existance of the line 'In HttpFilterProc Virtual Host redirection of /localhost/examples/jsp/index.html' indicates that the 'Filter DLLs' registry key is incorrectly set (as this is a W2K server). But I have NOT set this, and I can't find anything like it in the registry. As previously mentioned I'm running Tomcat4.0 on Windows 2000 server, I don't know what version of IIS - can't find this information, don't know which stinkin GUI panel will show this. Any help or advice anyone can offer would be much appreciated, as I have been thru all the docos and have searched the web. I have included my settings below. Thanks, Scott. Tomcat worker.properties - # Begin worker.properties ** worker.ajp13.type=ajp13 # # Specifies the load balance factor when used with # a load balancing worker. # Note: # lbfactor must be 0 # Low lbfactor means less work done by the worker. worker.ajp13.lbfactor=1 # # Specify the size of the open connection cache. #worker.ajp13.cachesize # #-- DEFAULT LOAD BALANCER WORKER DEFINITION -- #- # # # The loadbalancer (type lb) worker perform weighted round-robin # load balancing with sticky sessions. # Note: # If a worker dies, the load balancer will check its state #once in a while. Until then all work is redirected to peer #worker. worker.loadbalancer.type=lb worker.loadbalancer.balanced_workers=ajp13 # # worker.tomcat_home should point to the location where you # installed tomcat. This is where you have your conf, webapps and lib # directories. # worker.tomcat_home=D
RE: can't get tomat working with IIS (complete email...earlier one was incomplete)
woopssent it prematurely. :-) The uriworkermap.properties has the following format: -- # Default worker to be used through our mappings # default.worker=ajp13 # # Sites to be redirected to Tomcat # /example=$(default.worker) /example/*=$(default.worker) -- If example was a directory located under webapps, then this would define what IIS would redirect to Tomcat for processing. As for server.xml, there is something that looks like this: -- !-- Define an AJP 1.3 Connector on port 8009 -- Connector className=org.apache.ajp.tomcat4.Ajp13Connector port=8009 minProcessors=5 maxProcessors=75 acceptCount=10 debug=0/ -- Hope this helpsany questions, just shout... Paul -Original Message- From: Scott Adamson [mailto:[EMAIL PROTECTED]] Sent: Saturday, February 02, 2002 1:27 PM To: Tomcat Users List Subject: Re: can't get tomat working with IIS What is required in uriworkermap.properties ? No, I haven't modified this file. I can't find any reference to 'ajp13' in server.xml, what is meant to be there ? - Original Message - From: Pavel Brun [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Sunday, February 03, 2002 5:15 PM Subject: RE: can't get tomat working with IIS Did you add the appropriate directories to uriworkermap.properties? Also, did you uncomment the reference to the ajp13 connector in server.xml? I am also running Windows 2K IIS and Tomcat and they both work well. Thanks PAul -Original Message- From: Scott Adamson [mailto:[EMAIL PROTECTED]] Sent: Saturday, February 02, 2002 1:00 PM To: [EMAIL PROTECTED] Subject: can't get tomat working with IIS I'm trying to get Tomcat 4.0 working with IIS, the ISAPI redirect has loaded correctly (green arrow) but still nothing. Works fine with 8080. I have checked the iis_redirect.log - it generates - [Sun Feb 03 04:42:55 2002] [jk_isapi_plugin.c (555)]: HttpFilterProc started [Sun Feb 03 04:42:55 2002] [jk_isapi_plugin.c (600)]: In HttpFilterProc Virtual Host redirection of /localhost/examples/jsp/index.html [Sun Feb 03 04:42:55 2002] [jk_uri_worker_map.c (351)]: Into jk_uri_worker_map_t::map_uri_to_worker [Sun Feb 03 04:42:55 2002] [jk_uri_worker_map.c (368)]: Attempting to map URI '/localhost/examples/jsp/index.html' [Sun Feb 03 04:42:55 2002] [jk_uri_worker_map.c (456)]: jk_uri_worker_map_t::map_uri_to_worker, done without a match [Sun Feb 03 04:42:55 2002] [jk_isapi_plugin.c (606)]: In HttpFilterProc test Default redirection of /examples/jsp/index.html [Sun Feb 03 04:42:55 2002] [jk_uri_worker_map.c (351)]: Into jk_uri_worker_map_t::map_uri_to_worker [Sun Feb 03 04:42:55 2002] [jk_uri_worker_map.c (368)]: Attempting to map URI '/examples/jsp/index.html' [Sun Feb 03 04:42:55 2002] [jk_uri_worker_map.c (391)]: jk_uri_worker_map_t::map_uri_to_worker, Found a context match ajp13 - /examples/ [Sun Feb 03 04:42:55 2002] [jk_isapi_plugin.c (625)]: HttpFilterProc [/examples/jsp/index.html] is a servlet url - should redirect to ajp13 [Sun Feb 03 04:42:55 2002] [jk_isapi_plugin.c (647)]: HttpFilterProc check if [/examples/jsp/index.html] is points to the web-inf directory every request. I have read that the existance of the line 'In HttpFilterProc Virtual Host redirection of /localhost/examples/jsp/index.html' indicates that the 'Filter DLLs' registry key is incorrectly set (as this is a W2K server). But I have NOT set this, and I can't find anything like it in the registry. As previously mentioned I'm running Tomcat4.0 on Windows 2000 server, I don't know what version of IIS - can't find this information, don't know which stinkin GUI panel will show this. Any help or advice anyone can offer would be much appreciated, as I have been thru all the docos and have searched the web. I have included my settings below. Thanks, Scott. Tomcat worker.properties - # Begin worker.properties ** worker.ajp13.type=ajp13 # # Specifies the load balance factor when used with # a load balancing worker. # Note: # lbfactor must be 0 # Low lbfactor means less work done by the worker. worker.ajp13.lbfactor=1 # # Specify the size of the open connection cache. #worker.ajp13.cachesize # #-- DEFAULT LOAD BALANCER WORKER DEFINITION -- #- # # # The loadbalancer (type lb) worker perform weighted round-robin # load balancing with sticky sessions. # Note: # If a worker dies, the load balancer will check its state #once in a while. Until then all work is redirected to peer #worker
RE: JasperLoader Exception
sureI will set up a test caseI will have something up by about noon time or so...and I will post a download of the java source code, JSP file within a ZIP File as well Thanks Paul -Original Message- From: Remy Maucherat [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 31, 2002 5:36 AM To: Tomcat Users List Subject: Re: JasperLoader Exception Thanks for your reply...but could this be the problem that is related to the Jasper ClassLoader Exception error I am getting when first accessing this page. After I refresh the page (this is after the Singleton instance of my object is created), the page loads up without any problems... Could this be related to a Security Manager (or lack of) within the context of this application? And how about sending a test case ? Remy -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: JasperLoader Exception
Wellthere is only one problem thissince I am creating a Singleton object...it exists for all of time. As a resultnobody will see it after the first time the page is ever accessed. I will try to change this, so the object is create every time the page is accesed. Thanks Paul -Original Message- From: Pavel Brun [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 31, 2002 8:12 AM To: Tomcat Users List Subject: RE: JasperLoader Exception sureI will set up a test caseI will have something up by about noon time or so...and I will post a download of the java source code, JSP file within a ZIP File as well Thanks Paul -Original Message- From: Remy Maucherat [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 31, 2002 5:36 AM To: Tomcat Users List Subject: Re: JasperLoader Exception Thanks for your reply...but could this be the problem that is related to the Jasper ClassLoader Exception error I am getting when first accessing this page. After I refresh the page (this is after the Singleton instance of my object is created), the page loads up without any problems... Could this be related to a Security Manager (or lack of) within the context of this application? And how about sending a test case ? Remy -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: JasperLoader Exception
Unfortunately, even changing to an object that is created every time the page is accessed still gives me the same result. I get a NullPointerException in the ClassLoader the first time I access this particular page after starting the Tomcat service, yet on each subsequent access (even after a session times out), the page loads up without any problems (even with a new browser window)... This will forever puzzle me because it is something I can't really prove to you unless I start the service and one of you accesses it for the first time. Any suggestions??? Paul -Original Message- From: Pavel Brun [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 31, 2002 12:13 PM To: Tomcat Users List Subject: RE: JasperLoader Exception Wellthere is only one problem thissince I am creating a Singleton object...it exists for all of time. As a resultnobody will see it after the first time the page is ever accessed. I will try to change this, so the object is create every time the page is accesed. Thanks Paul -Original Message- From: Pavel Brun [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 31, 2002 8:12 AM To: Tomcat Users List Subject: RE: JasperLoader Exception sureI will set up a test caseI will have something up by about noon time or so...and I will post a download of the java source code, JSP file within a ZIP File as well Thanks Paul -Original Message- From: Remy Maucherat [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 31, 2002 5:36 AM To: Tomcat Users List Subject: Re: JasperLoader Exception Thanks for your reply...but could this be the problem that is related to the Jasper ClassLoader Exception error I am getting when first accessing this page. After I refresh the page (this is after the Singleton instance of my object is created), the page loads up without any problems... Could this be related to a Security Manager (or lack of) within the context of this application? And how about sending a test case ? Remy -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: JasperLoader Exception
Hello all, Well...I did have a chance to get up a Website to try to prove my example, but I couldn't with the example I tried to show. It actually is a problem related to creating an object that queries an LDAP server for certain attributes in order to use them later in the application. Does anybody know of any latency issues with regards to LDAP queries and trying to access an object that does this?? Thanks Paul -Original Message- From: Pavel Brun [mailto:[EMAIL PROTECTED]] Sent: Sunday, January 27, 2002 9:48 PM To: Tomcat Users List Subject: RE: JasperLoader Exception Thanks...I will try to get one up as soon as possible. I will let you know when I have something up and running. Thanks Paul -Original Message- From: Remy Maucherat [mailto:[EMAIL PROTECTED]] Sent: Sunday, January 27, 2002 6:29 PM To: Tomcat Users List Subject: Re: JasperLoader Exception Hello all, I am new this this mailing list. I am developing software and am using Java Beans and Tags for this particular application. From time to time, when I first access a particular page, I get a Class Loader exception when loading a class: java.lang.NullPointerException at org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:198) at org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:132) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:313) at org.apache.jsp.settings$jsp._jspService(settings$jsp.java:115) . . I leave out these details because it does not bring any . value. . In this particular case, it crashed when trying to use the pageContext variable name when using: pageContext.getAttribute() method. Does anybody know what the root cause of a Jasper Loader exception is? Is it at all related to insantiating beans or using the jsp:useBean parameter? I have tried looking everywhere, but couldn't find any description or solutions.. Could you post a simple JSP file that would cause the problem ? Remy -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: JasperLoader Exception
thanks.was it within code related to Tomcat? Or your own code that does the calling to an RMI server??? -Original Message- From: Richard Bushell [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 30, 2002 6:12 PM To: Tomcat Users List Subject: RE: JasperLoader Exception We had a similiar problem calling an RMI server from within Tomcat. It turned out that deep down inside some library code there was a call to System.setSecurityManager(...). Hope this helps. Richard -Original Message- From: Pavel Brun [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 31, 2002 9:36 AM To: Tomcat Users List Subject: RE: JasperLoader Exception Hello all, Well...I did have a chance to get up a Website to try to prove my example, but I couldn't with the example I tried to show. It actually is a problem related to creating an object that queries an LDAP server for certain attributes in order to use them later in the application. Does anybody know of any latency issues with regards to LDAP queries and trying to access an object that does this?? Thanks Paul -Original Message- From: Pavel Brun [mailto:[EMAIL PROTECTED]] Sent: Sunday, January 27, 2002 9:48 PM To: Tomcat Users List Subject: RE: JasperLoader Exception Thanks...I will try to get one up as soon as possible. I will let you know when I have something up and running. Thanks Paul -Original Message- From: Remy Maucherat [mailto:[EMAIL PROTECTED]] Sent: Sunday, January 27, 2002 6:29 PM To: Tomcat Users List Subject: Re: JasperLoader Exception Hello all, I am new this this mailing list. I am developing software and am using Java Beans and Tags for this particular application. From time to time, when I first access a particular page, I get a Class Loader exception when loading a class: java.lang.NullPointerException at org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:198) at org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:132) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:313) at org.apache.jsp.settings$jsp._jspService(settings$jsp.java:115) . . I leave out these details because it does not bring any . value. . In this particular case, it crashed when trying to use the pageContext variable name when using: pageContext.getAttribute() method. Does anybody know what the root cause of a Jasper Loader exception is? Is it at all related to insantiating beans or using the jsp:useBean parameter? I have tried looking everywhere, but couldn't find any description or solutions.. Could you post a simple JSP file that would cause the problem ? Remy -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: JasperLoader Exception
Thanks for your reply...but could this be the problem that is related to the Jasper ClassLoader Exception error I am getting when first accessing this page. After I refresh the page (this is after the Singleton instance of my object is created), the page loads up without any problems... Could this be related to a Security Manager (or lack of) within the context of this application? Thanks Paul -Original Message- From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 30, 2002 7:17 PM To: Tomcat Users List Subject: RE: JasperLoader Exception On Wed, 30 Jan 2002, Pavel Brun wrote: Date: Wed, 30 Jan 2002 18:34:41 -0500 From: Pavel Brun [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Subject: RE: JasperLoader Exception thanks.was it within code related to Tomcat? Or your own code that does the calling to an RMI server??? Tomcat 4 has zero calls to System.setSecurityManager in it. If you start it with the appropriate command line option (-security), the standard startup scripts add the following system property settings to the command line: -Djava.security.manager -Djava.security.policy==$CATALINA_BASE/conf/catalina.policy which tells the JVM to install a security manager at startup time, using the specified policy file as a replacement for the one in the JDK directory (that's what the '==' does). If you start Tomcat without a security manager, and some code that is executed calls System.setSecurityManager, that is exactly what the JVM does. (Of course, if somebody calls System.exit() it will shut down Tomcat as well :-). Moral of the story - you are advised to bone up on how security managers work in Java, and run Tomcat with the -security option at startup time. You'll need to add any permissions your apps require to the catalina.policy file (the default sandbox is fairly restrictive), but you can avoid some nasty things that bad code (or inadvertently called code) might do to you. Craig McClanahan -Original Message- From: Richard Bushell [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 30, 2002 6:12 PM To: Tomcat Users List Subject: RE: JasperLoader Exception We had a similiar problem calling an RMI server from within Tomcat. It turned out that deep down inside some library code there was a call to System.setSecurityManager(...). Hope this helps. Richard -Original Message- From: Pavel Brun [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 31, 2002 9:36 AM To: Tomcat Users List Subject: RE: JasperLoader Exception Hello all, Well...I did have a chance to get up a Website to try to prove my example, but I couldn't with the example I tried to show. It actually is a problem related to creating an object that queries an LDAP server for certain attributes in order to use them later in the application. Does anybody know of any latency issues with regards to LDAP queries and trying to access an object that does this?? Thanks Paul -Original Message- From: Pavel Brun [mailto:[EMAIL PROTECTED]] Sent: Sunday, January 27, 2002 9:48 PM To: Tomcat Users List Subject: RE: JasperLoader Exception Thanks...I will try to get one up as soon as possible. I will let you know when I have something up and running. Thanks Paul -Original Message- From: Remy Maucherat [mailto:[EMAIL PROTECTED]] Sent: Sunday, January 27, 2002 6:29 PM To: Tomcat Users List Subject: Re: JasperLoader Exception Hello all, I am new this this mailing list. I am developing software and am using Java Beans and Tags for this particular application. From time to time, when I first access a particular page, I get a Class Loader exception when loading a class: java.lang.NullPointerException at org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:198) at org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:132) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:313) at org.apache.jsp.settings$jsp._jspService(settings$jsp.java:115) . . I leave out these details because it does not bring any . value. . In this particular case, it crashed when trying to use the pageContext variable name when using: pageContext.getAttribute() method. Does anybody know what the root cause of a Jasper Loader exception is? Is it at all related to insantiating beans or using the jsp:useBean parameter? I have tried looking everywhere, but couldn't find any description or solutions.. Could you post a simple JSP file that would cause the problem ? Remy -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED
RE: Tomcat shuts down logoff Windows 2000 Server
you may need to run the Tomcat 4.0.1 service as an actual NT service. If you start the application at a command line...then the application will shut down since it has been loaded within the context of tye logged in user. Paul -Original Message- From: Atok Koenig [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 30, 2002 7:22 PM To: [EMAIL PROTECTED] Subject: Tomcat shuts down logoff Windows 2000 Server New to Tomcat Installed Tomcat 4.0.1 on Windows 2000 server using local Admin account via Windows Terminal Services. Runs fine when logged in and started via startup.bat. DOS-type window titled Catalina opens saying starting service tomcat-standalone and starting service tomcat-apache each followed by Apache Tomkat/4.0.1. When I log out of terminal services java.exe stops running so server stops responding. Thanks Jakarta Tomcat 4.0.1 JDK 1.3.1_02 Windows 2000 Server SP2 -- ___ Sign-up for your own FREE Personalized E-mail at Mail.com http://www.mail.com/?sr=signup Win a ski trip! http://www.nowcode.com/register.asp?affiliate=1net2phone3a -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Question regarding loading Classpath for Tomcat
Hi all, I uderstand that Tomcat loads its own classpath based on the startup ClassLoader factory. However, is there any way to include other directories that are not located within the Tomcat hierarchy?? I am just curious to see if anybody has done this without diving into the Tomcat code. Thanks Paul -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Question regarding loading Classpath for Tomcat
Would this not be possible in Tomcat 4.0.1??? Paul -Original Message- From: Larry Isaacs [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 29, 2002 8:47 AM To: 'Tomcat Users List' Subject: RE: Question regarding loading Classpath for Tomcat For Tomcat 3.3, see the online documentation at: http://jakarta.apache.org/tomcat/tomcat-3.3-doc/tomcat-ug.html#configuring_ classes Item #2 towards the end of this section mentions two System properties that can used to add entries to a couple of the classloaders. Cheers, Larry -Original Message- From: Pavel Brun [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 29, 2002 8:14 AM To: Tomcat Users List Subject: Question regarding loading Classpath for Tomcat Hi all, I uderstand that Tomcat loads its own classpath based on the startup ClassLoader factory. However, is there any way to include other directories that are not located within the Tomcat hierarchy?? I am just curious to see if anybody has done this without diving into the Tomcat code. Thanks Paul -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
JasperLoader Exception
Hello all, I am new this this mailing list. I am developing software and am using Java Beans and Tags for this particular application. From time to time, when I first access a particular page, I get a Class Loader exception when loading a class: java.lang.NullPointerException at org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:198) at org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:132) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:313) at org.apache.jsp.settings$jsp._jspService(settings$jsp.java:115) . . I leave out these details because it does not bring any . value. . In this particular case, it crashed when trying to use the pageContext variable name when using: pageContext.getAttribute() method. Does anybody know what the root cause of a Jasper Loader exception is? Is it at all related to insantiating beans or using the jsp:useBean parameter? I have tried looking everywhere, but couldn't find any description or solutions.. Thanks Paul -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]