RE: How to send hidden variables to next page
Then you must use the window.returnValue of Java Script. Best Regards, S H A K E E L A H M A D http://members.fortunecity.com/javaclub/shakeel.htm Voice: 00923002723316 Senior Software Engineer. NorthStar Technologies. www.globalnorthstar.com EE(Computer Engineering), UET Lahore, Pakistan. SCJP,SCWCD & SCBCD Sun Microsystems, Inc. Brain Bench Certified Java Programmer. -Original Message- From: U K Laxmi [mailto:[EMAIL PROTECTED] Sent: 23 February, 2005 12:30 PM To: Tomcat Users List Subject: RE: How to send hidden variables to next page Thanks for the answers Shakeel. My problem is, i've a page that doesn't have submit button. I need to send the hidden variables in that HTML page to next HTML page. Here the hidden value is set based on the type of option selected from 'select' drpo down box in HTML. To put it in session, i need to identify the selected option and assign it to java varialbe. I don't think it's possible to assign a javascript variable to java variable. Pls help to solve this problem. --- Shakeel Ahmad <[EMAIL PROTECTED]> wrote: > Wel this might help... > > // You write following two lines in first JSP page. > String name = "Java";// This might be your hidden > field. > session.setAttribute("HiddenName", name); > > > //Then you get the name on next page as follows. > > String userName = > (String)session.getAttribute("HiddenName"); > > > The "name" attribute will be available throught the > session life, unless we > remove it explicitly or restart Tomcat. > We can use it on any page once it is placed > properly. > > Best Regards, > S H A K E E L A H M A D > http://members.fortunecity.com/javaclub/shakeel.htm > Voice: 00923002723316 > Senior Software Engineer. > NorthStar Technologies. www.globalnorthstar.com > > EE(Computer Engineering), UET Lahore, Pakistan. > SCJP,SCWCD & SCBCD Sun Microsystems, Inc. > Brain Bench Certified Java Programmer. > > -Original Message- > From: U K Laxmi [mailto:[EMAIL PROTECTED] > Sent: 23 February, 2005 10:37 AM > To: Tomcat Users List > Subject: RE: How to send hidden variables to next > page > > > Yes. I'm using JSP. Can you pls tell me the syntax > or > guidelines as how to do it. > > Thank you. > > --- Shakeel Ahmad <[EMAIL PROTECTED]> > wrote: > > > If you are developing a JSP/Servlet then you can > do > > this by keeping those > > variables in session. > > > > Best Regards, > > S H A K E E L A H M A D > > > http://members.fortunecity.com/javaclub/shakeel.htm > > Voice: 00923002723316 > > Senior Software Engineer. > > NorthStar Technologies. www.globalnorthstar.com > > > > EE(Computer Engineering), UET Lahore, Pakistan. > > SCJP,SCWCD & SCBCD Sun Microsystems, Inc. > > Brain Bench Certified Java Programmer. > > > > -Original Message- > > From: U K Laxmi [mailto:[EMAIL PROTECTED] > > Sent: 23 February, 2005 10:31 AM > > To: Tomcat Users List > > Subject: How to send hidden variables to next page > > > > > > Sorry if it's not the right place to post this > > question. Excuse me. > > > > I've some hidden variables in a web page. I want > to > > send them to next page without using submit > button. > > I > > don't know how to do it. More over i don't know > how > > to > > access those variables in the next page. Is there > > any > > option available to do this html or tomcat or > > apache? > > > > Thanks!! > > > > --- Matt <[EMAIL PROTECTED]> wrote: > > > > > Ah-ha, somehow I changed a line in the > > > uriworkermap.properties file from > > > this (some pointless experiment out of past > > > frustrated delirium): > > > /jsp-examples/*=ajp13w > > > ...to this: > > > /jsp-examples/*.jsp > > > ...so changing it back (which is how it was > > > out-of-the-box after > > > jk_1.2.8.exe was run) to: > > > /jsp-examples/*=ajp13w > > > ...fixes it, and I can now access both > directories > > > fine (inside and > > > outside of $CATALINA_HOME/webapps)!!! YAY!!! > > > > > > I now get the expected results for: > > > http://localhost/jsp-examples/ (the webapps/ > > > examples page) > > > ...and for: > > > http://localhost:8080/jsp-examples/ (the > webapps/ > > > examples page) > > > ...and for: > > > http://localhost:8080 (Tomcat home page) > > > ...and for: > > > http://localhost (IIS home page) > > > ...and for: > > > http://localhost/JSP/MYwebapps/MYjsp-examples > > > (the C:\Inetpub\wwwroot\JSP\MYwebapps\ examples > > > page) > > > ...and the .JSP pages work as expected in both > > > places! > > > Now I can add docabses to my heart's content - > > > *relieved sigh* > > > > > > SO...the easy answer is a simple, single CONTEXT > > > addition, but making sure > > > to overlap the end of the "docbase" path with > the > > > "path": > > > > > docbase="C:/Inetpub/wwwroot/JSP" debug="0" > > > reloadable="true" crossContext="false" /> > > > > > > As an aside, I got rid of the <...path="" > > > docbase=""...> CONTEXT, so I > > > have no idea why you're using that line in your > > > server.xml file, Wendy? > > > > > > THAN
RE: How to send hidden variables to next page
Thanks for the answers Shakeel. My problem is, i've a page that doesn't have submit button. I need to send the hidden variables in that HTML page to next HTML page. Here the hidden value is set based on the type of option selected from 'select' drpo down box in HTML. To put it in session, i need to identify the selected option and assign it to java varialbe. I don't think it's possible to assign a javascript variable to java variable. Pls help to solve this problem. --- Shakeel Ahmad <[EMAIL PROTECTED]> wrote: > Wel this might help... > > // You write following two lines in first JSP page. > String name = "Java";// This might be your hidden > field. > session.setAttribute("HiddenName", name); > > > //Then you get the name on next page as follows. > > String userName = > (String)session.getAttribute("HiddenName"); > > > The "name" attribute will be available throught the > session life, unless we > remove it explicitly or restart Tomcat. > We can use it on any page once it is placed > properly. > > Best Regards, > S H A K E E L A H M A D > http://members.fortunecity.com/javaclub/shakeel.htm > Voice: 00923002723316 > Senior Software Engineer. > NorthStar Technologies. www.globalnorthstar.com > > EE(Computer Engineering), UET Lahore, Pakistan. > SCJP,SCWCD & SCBCD Sun Microsystems, Inc. > Brain Bench Certified Java Programmer. > > -Original Message- > From: U K Laxmi [mailto:[EMAIL PROTECTED] > Sent: 23 February, 2005 10:37 AM > To: Tomcat Users List > Subject: RE: How to send hidden variables to next > page > > > Yes. I'm using JSP. Can you pls tell me the syntax > or > guidelines as how to do it. > > Thank you. > > --- Shakeel Ahmad <[EMAIL PROTECTED]> > wrote: > > > If you are developing a JSP/Servlet then you can > do > > this by keeping those > > variables in session. > > > > Best Regards, > > S H A K E E L A H M A D > > > http://members.fortunecity.com/javaclub/shakeel.htm > > Voice: 00923002723316 > > Senior Software Engineer. > > NorthStar Technologies. www.globalnorthstar.com > > > > EE(Computer Engineering), UET Lahore, Pakistan. > > SCJP,SCWCD & SCBCD Sun Microsystems, Inc. > > Brain Bench Certified Java Programmer. > > > > -Original Message- > > From: U K Laxmi [mailto:[EMAIL PROTECTED] > > Sent: 23 February, 2005 10:31 AM > > To: Tomcat Users List > > Subject: How to send hidden variables to next page > > > > > > Sorry if it's not the right place to post this > > question. Excuse me. > > > > I've some hidden variables in a web page. I want > to > > send them to next page without using submit > button. > > I > > don't know how to do it. More over i don't know > how > > to > > access those variables in the next page. Is there > > any > > option available to do this html or tomcat or > > apache? > > > > Thanks!! > > > > --- Matt <[EMAIL PROTECTED]> wrote: > > > > > Ah-ha, somehow I changed a line in the > > > uriworkermap.properties file from > > > this (some pointless experiment out of past > > > frustrated delirium): > > > /jsp-examples/*=ajp13w > > > ...to this: > > > /jsp-examples/*.jsp > > > ...so changing it back (which is how it was > > > out-of-the-box after > > > jk_1.2.8.exe was run) to: > > > /jsp-examples/*=ajp13w > > > ...fixes it, and I can now access both > directories > > > fine (inside and > > > outside of $CATALINA_HOME/webapps)!!! YAY!!! > > > > > > I now get the expected results for: > > > http://localhost/jsp-examples/ (the webapps/ > > > examples page) > > > ...and for: > > > http://localhost:8080/jsp-examples/ (the > webapps/ > > > examples page) > > > ...and for: > > > http://localhost:8080 (Tomcat home page) > > > ...and for: > > > http://localhost (IIS home page) > > > ...and for: > > > http://localhost/JSP/MYwebapps/MYjsp-examples > > > (the C:\Inetpub\wwwroot\JSP\MYwebapps\ examples > > > page) > > > ...and the .JSP pages work as expected in both > > > places! > > > Now I can add docabses to my heart's content - > > > *relieved sigh* > > > > > > SO...the easy answer is a simple, single CONTEXT > > > addition, but making sure > > > to overlap the end of the "docbase" path with > the > > > "path": > > > > > docbase="C:/Inetpub/wwwroot/JSP" debug="0" > > > reloadable="true" crossContext="false" /> > > > > > > As an aside, I got rid of the <...path="" > > > docbase=""...> CONTEXT, so I > > > have no idea why you're using that line in your > > > server.xml file, Wendy? > > > > > > THANKS, Wendy!!! > > > -Matt > > > > > > > > > On Tue, 22 Feb 2005, Matt wrote: > > > > > > > OK, we've at least gotten to the point where I > > can > > > now run the examples > > > > from my own directory outside of > > > $CATALINA_HOME/webapps, and by ONLY > > > > editing server.xml and uriworkermap.properties > > > slightly, and NOTHING > > > > ELSE, which is not only nice, but also what I > > > expected all along! > > > > (THANK YOU!THANK YOU!THANK YOU!)* > > > > > > > > *HOWEVER, now that I made the changes you > > > recommended, the webapps area > > > >
RE: How to send hidden variables to next page
Wel this might help... // You write following two lines in first JSP page. String name = "Java";// This might be your hidden field. session.setAttribute("HiddenName", name); //Then you get the name on next page as follows. String userName = (String)session.getAttribute("HiddenName"); The "name" attribute will be available throught the session life, unless we remove it explicitly or restart Tomcat. We can use it on any page once it is placed properly. Best Regards, S H A K E E L A H M A D http://members.fortunecity.com/javaclub/shakeel.htm Voice: 00923002723316 Senior Software Engineer. NorthStar Technologies. www.globalnorthstar.com EE(Computer Engineering), UET Lahore, Pakistan. SCJP,SCWCD & SCBCD Sun Microsystems, Inc. Brain Bench Certified Java Programmer. -Original Message- From: U K Laxmi [mailto:[EMAIL PROTECTED] Sent: 23 February, 2005 10:37 AM To: Tomcat Users List Subject: RE: How to send hidden variables to next page Yes. I'm using JSP. Can you pls tell me the syntax or guidelines as how to do it. Thank you. --- Shakeel Ahmad <[EMAIL PROTECTED]> wrote: > If you are developing a JSP/Servlet then you can do > this by keeping those > variables in session. > > Best Regards, > S H A K E E L A H M A D > http://members.fortunecity.com/javaclub/shakeel.htm > Voice: 00923002723316 > Senior Software Engineer. > NorthStar Technologies. www.globalnorthstar.com > > EE(Computer Engineering), UET Lahore, Pakistan. > SCJP,SCWCD & SCBCD Sun Microsystems, Inc. > Brain Bench Certified Java Programmer. > > -Original Message- > From: U K Laxmi [mailto:[EMAIL PROTECTED] > Sent: 23 February, 2005 10:31 AM > To: Tomcat Users List > Subject: How to send hidden variables to next page > > > Sorry if it's not the right place to post this > question. Excuse me. > > I've some hidden variables in a web page. I want to > send them to next page without using submit button. > I > don't know how to do it. More over i don't know how > to > access those variables in the next page. Is there > any > option available to do this html or tomcat or > apache? > > Thanks!! > > --- Matt <[EMAIL PROTECTED]> wrote: > > > Ah-ha, somehow I changed a line in the > > uriworkermap.properties file from > > this (some pointless experiment out of past > > frustrated delirium): > > /jsp-examples/*=ajp13w > > ...to this: > > /jsp-examples/*.jsp > > ...so changing it back (which is how it was > > out-of-the-box after > > jk_1.2.8.exe was run) to: > > /jsp-examples/*=ajp13w > > ...fixes it, and I can now access both directories > > fine (inside and > > outside of $CATALINA_HOME/webapps)!!! YAY!!! > > > > I now get the expected results for: > > http://localhost/jsp-examples/ (the webapps/ > > examples page) > > ...and for: > > http://localhost:8080/jsp-examples/ (the webapps/ > > examples page) > > ...and for: > > http://localhost:8080 (Tomcat home page) > > ...and for: > > http://localhost (IIS home page) > > ...and for: > > http://localhost/JSP/MYwebapps/MYjsp-examples > > (the C:\Inetpub\wwwroot\JSP\MYwebapps\ examples > > page) > > ...and the .JSP pages work as expected in both > > places! > > Now I can add docabses to my heart's content - > > *relieved sigh* > > > > SO...the easy answer is a simple, single CONTEXT > > addition, but making sure > > to overlap the end of the "docbase" path with the > > "path": > > > docbase="C:/Inetpub/wwwroot/JSP" debug="0" > > reloadable="true" crossContext="false" /> > > > > As an aside, I got rid of the <...path="" > > docbase=""...> CONTEXT, so I > > have no idea why you're using that line in your > > server.xml file, Wendy? > > > > THANKS, Wendy!!! > > -Matt > > > > > > On Tue, 22 Feb 2005, Matt wrote: > > > > > OK, we've at least gotten to the point where I > can > > now run the examples > > > from my own directory outside of > > $CATALINA_HOME/webapps, and by ONLY > > > editing server.xml and uriworkermap.properties > > slightly, and NOTHING > > > ELSE, which is not only nice, but also what I > > expected all along! > > > (THANK YOU!THANK YOU!THANK YOU!)* > > > > > > *HOWEVER, now that I made the changes you > > recommended, the webapps area > > > now is NOT FOUND when using plain URL's. I get > a > > (Tomcat-based) directory > > > listing when using the following URL (instead of > > the Tomcat welcome page): > > > http://localhost:8080 > > > ...which includes my outside folder and then all > > of the folders in > > > $CATALINA_HOME/webapps, AND if I go deeper into > > any of these listed > > > directories with the explicit port :8080 set it > > works, BUT if I try the > > > following URL: > > > http://localhost/jsp-examples > > > ...then I get a 404 page not found error (not a > > Tomcat page - standard > > > IE stuff). > > > With or without the :8080 port in my URL, my > > outside directory can be > > > found just fine: > > > > > > http://localhost/JSP/MYwebapps/MYjsp-examples/index.html > > (and so on) > > > ...so I have the inverse problem. > > > Good grief! Can't we
RE: Tomcat 5.5 working, BUT not outside of webapps/
Well, I spoke a little too soon. The examples in webapps/ work fine, but some of the same examples in my outside folder balk (recall I copied the whole webapps folder to C:\Inetpub\wwwroot\JSP\ and renamed it MYwebapps and MYjsp-examples underneath that). Some example errors follow... Implicit Objects: (BEGIN ERROR) HTTP Status 500 - type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception org.apache.jasper.JasperException: The absolute uri: http://java.sun.com/jsp/jstl/functions cannot be resolved in either web.xml or the jar files deployed with this application org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:50) org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:407) org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:114) org.apache.jasper.compiler.TagLibraryInfoImpl.generateTLDLocation(TagLibraryInfoImpl.java:316) org.apache.jasper.compiler.TagLibraryInfoImpl.(TagLibraryInfoImpl.java:147) org.apache.jasper.compiler.Parser.parseTaglibDirective(Parser.java:418) org.apache.jasper.compiler.Parser.parseDirective(Parser.java:483) org.apache.jasper.compiler.Parser.parseElements(Parser.java:1539) org.apache.jasper.compiler.Parser.parse(Parser.java:126) org.apache.jasper.compiler.ParserController.doParse(ParserController.java:211) org.apache.jasper.compiler.ParserController.parse(ParserController.java:100) org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:146) org.apache.jasper.compiler.Compiler.compile(Compiler.java:286) org.apache.jasper.compiler.Compiler.compile(Compiler.java:267) org.apache.jasper.compiler.Compiler.compile(Compiler.java:255) org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:556) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:296) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:245) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) note The full stack trace of the root cause is available in the Apache Tomcat/5.5.7 logs. Apache Tomcat/5.5.7 (END ERROR) ...or Hello World Tag: (BEGIN ERROR) HTTP Status 500 - type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception org.apache.jasper.JasperException: File "/WEB-INF/jsp2/jsp2-example-taglib.tld" not found org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:50) org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:407) org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:114) org.apache.jasper.compiler.TagLibraryInfoImpl.(TagLibraryInfoImpl.java:159) org.apache.jasper.compiler.Parser.parseTaglibDirective(Parser.java:418) org.apache.jasper.compiler.Parser.parseDirective(Parser.java:483) org.apache.jasper.compiler.Parser.parseElements(Parser.java:1539) org.apache.jasper.compiler.Parser.parse(Parser.java:126) org.apache.jasper.compiler.ParserController.doParse(ParserController.java:211) org.apache.jasper.compiler.ParserController.parse(ParserController.java:100) org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:146) org.apache.jasper.compiler.Compiler.compile(Compiler.java:286) org.apache.jasper.compiler.Compiler.compile(Compiler.java:267) org.apache.jasper.compiler.Compiler.compile(Compiler.java:255) org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:556) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:296) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:245) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) note The full stack trace of the root cause is available in the Apache Tomcat/5.5.7 logs. Apache Tomcat/5.5.7 (END ERROR) ...and similar. Anyone know what's wrong here? Is it web.xml files or another place? Thanks, -Matt On Tue, 22 Feb 2005, Matt wrote: > Ah-ha, somehow I changed a line in the uriworkermap.properties file from > this (some pointless experiment out of past frustrated delirium): > /jsp-examples/*=ajp13w > ...to this: > /jsp-examples/*.jsp > ...so changing it back (which is how it was out-of-the-box after > jk_1.2.8.exe was run) to: > /jsp-examples/*=ajp13w > ...fixes it, and I can now access both directo
RE: How to send hidden variables to next page
I need help in redirecting to next page based on some condition without using location.href in java script. Is it possible in Jsp or tomcat or apache? If so, how. I'm bit new. --- U K Laxmi <[EMAIL PROTECTED]> wrote: > Yes. I'm using JSP. Can you pls tell me the syntax > or > guidelines as how to do it. > > Thank you. > > --- Shakeel Ahmad <[EMAIL PROTECTED]> > wrote: > > > If you are developing a JSP/Servlet then you can > do > > this by keeping those > > variables in session. > > > > Best Regards, > > S H A K E E L A H M A D > > > http://members.fortunecity.com/javaclub/shakeel.htm > > Voice: 00923002723316 > > Senior Software Engineer. > > NorthStar Technologies. www.globalnorthstar.com > > > > EE(Computer Engineering), UET Lahore, Pakistan. > > SCJP,SCWCD & SCBCD Sun Microsystems, Inc. > > Brain Bench Certified Java Programmer. > > > > -Original Message- > > From: U K Laxmi [mailto:[EMAIL PROTECTED] > > Sent: 23 February, 2005 10:31 AM > > To: Tomcat Users List > > Subject: How to send hidden variables to next page > > > > > > Sorry if it's not the right place to post this > > question. Excuse me. > > > > I've some hidden variables in a web page. I want > to > > send them to next page without using submit > button. > > I > > don't know how to do it. More over i don't know > how > > to > > access those variables in the next page. Is there > > any > > option available to do this html or tomcat or > > apache? > > > > Thanks!! > > > > --- Matt <[EMAIL PROTECTED]> wrote: > > > > > Ah-ha, somehow I changed a line in the > > > uriworkermap.properties file from > > > this (some pointless experiment out of past > > > frustrated delirium): > > > /jsp-examples/*=ajp13w > > > ...to this: > > > /jsp-examples/*.jsp > > > ...so changing it back (which is how it was > > > out-of-the-box after > > > jk_1.2.8.exe was run) to: > > > /jsp-examples/*=ajp13w > > > ...fixes it, and I can now access both > directories > > > fine (inside and > > > outside of $CATALINA_HOME/webapps)!!! YAY!!! > > > > > > I now get the expected results for: > > > http://localhost/jsp-examples/ (the webapps/ > > > examples page) > > > ...and for: > > > http://localhost:8080/jsp-examples/ (the > webapps/ > > > examples page) > > > ...and for: > > > http://localhost:8080 (Tomcat home page) > > > ...and for: > > > http://localhost (IIS home page) > > > ...and for: > > > http://localhost/JSP/MYwebapps/MYjsp-examples > > > (the C:\Inetpub\wwwroot\JSP\MYwebapps\ examples > > > page) > > > ...and the .JSP pages work as expected in both > > > places! > > > Now I can add docabses to my heart's content - > > > *relieved sigh* > > > > > > SO...the easy answer is a simple, single CONTEXT > > > addition, but making sure > > > to overlap the end of the "docbase" path with > the > > > "path": > > > > > docbase="C:/Inetpub/wwwroot/JSP" debug="0" > > > reloadable="true" crossContext="false" /> > > > > > > As an aside, I got rid of the <...path="" > > > docbase=""...> CONTEXT, so I > > > have no idea why you're using that line in your > > > server.xml file, Wendy? > > > > > > THANKS, Wendy!!! > > > -Matt > > > > > > > > > On Tue, 22 Feb 2005, Matt wrote: > > > > > > > OK, we've at least gotten to the point where I > > can > > > now run the examples > > > > from my own directory outside of > > > $CATALINA_HOME/webapps, and by ONLY > > > > editing server.xml and uriworkermap.properties > > > slightly, and NOTHING > > > > ELSE, which is not only nice, but also what I > > > expected all along! > > > > (THANK YOU!THANK YOU!THANK YOU!)* > > > > > > > > *HOWEVER, now that I made the changes you > > > recommended, the webapps area > > > > now is NOT FOUND when using plain URL's. I > get > > a > > > (Tomcat-based) directory > > > > listing when using the following URL (instead > of > > > the Tomcat welcome page): > > > > http://localhost:8080 > > > > ...which includes my outside folder and then > all > > > of the folders in > > > > $CATALINA_HOME/webapps, AND if I go deeper > into > > > any of these listed > > > > directories with the explicit port :8080 set > it > > > works, BUT if I try the > > > > following URL: > > > > http://localhost/jsp-examples > > > > ...then I get a 404 page not found error (not > a > > > Tomcat page - standard > > > > IE stuff). > > > > With or without the :8080 port in my URL, my > > > outside directory can be > > > > found just fine: > > > > > > > > > > http://localhost/JSP/MYwebapps/MYjsp-examples/index.html > > > (and so on) > > > > ...so I have the inverse problem. > > > > Good grief! Can't we have both? > > > > > > > > Here's the beginning of my HOST tag through > the > > > CONTEXT (everything else > > > > in server.xml is out-of-the-box, unless > > > jk_1.2.8.exe does anything here as > > > > well): > > > >> > >unpackWARs="true" autoDeploy="true" > > > >xmlValidation="false" > > > xmlNamespaceAware="false"> > > > > > > > > > > reloadable="true" > > > > crossContext="true" /> >
RE: How to send hidden variables to next page
Yes. I'm using JSP. Can you pls tell me the syntax or guidelines as how to do it. Thank you. --- Shakeel Ahmad <[EMAIL PROTECTED]> wrote: > If you are developing a JSP/Servlet then you can do > this by keeping those > variables in session. > > Best Regards, > S H A K E E L A H M A D > http://members.fortunecity.com/javaclub/shakeel.htm > Voice: 00923002723316 > Senior Software Engineer. > NorthStar Technologies. www.globalnorthstar.com > > EE(Computer Engineering), UET Lahore, Pakistan. > SCJP,SCWCD & SCBCD Sun Microsystems, Inc. > Brain Bench Certified Java Programmer. > > -Original Message- > From: U K Laxmi [mailto:[EMAIL PROTECTED] > Sent: 23 February, 2005 10:31 AM > To: Tomcat Users List > Subject: How to send hidden variables to next page > > > Sorry if it's not the right place to post this > question. Excuse me. > > I've some hidden variables in a web page. I want to > send them to next page without using submit button. > I > don't know how to do it. More over i don't know how > to > access those variables in the next page. Is there > any > option available to do this html or tomcat or > apache? > > Thanks!! > > --- Matt <[EMAIL PROTECTED]> wrote: > > > Ah-ha, somehow I changed a line in the > > uriworkermap.properties file from > > this (some pointless experiment out of past > > frustrated delirium): > > /jsp-examples/*=ajp13w > > ...to this: > > /jsp-examples/*.jsp > > ...so changing it back (which is how it was > > out-of-the-box after > > jk_1.2.8.exe was run) to: > > /jsp-examples/*=ajp13w > > ...fixes it, and I can now access both directories > > fine (inside and > > outside of $CATALINA_HOME/webapps)!!! YAY!!! > > > > I now get the expected results for: > > http://localhost/jsp-examples/ (the webapps/ > > examples page) > > ...and for: > > http://localhost:8080/jsp-examples/ (the webapps/ > > examples page) > > ...and for: > > http://localhost:8080 (Tomcat home page) > > ...and for: > > http://localhost (IIS home page) > > ...and for: > > http://localhost/JSP/MYwebapps/MYjsp-examples > > (the C:\Inetpub\wwwroot\JSP\MYwebapps\ examples > > page) > > ...and the .JSP pages work as expected in both > > places! > > Now I can add docabses to my heart's content - > > *relieved sigh* > > > > SO...the easy answer is a simple, single CONTEXT > > addition, but making sure > > to overlap the end of the "docbase" path with the > > "path": > > > docbase="C:/Inetpub/wwwroot/JSP" debug="0" > > reloadable="true" crossContext="false" /> > > > > As an aside, I got rid of the <...path="" > > docbase=""...> CONTEXT, so I > > have no idea why you're using that line in your > > server.xml file, Wendy? > > > > THANKS, Wendy!!! > > -Matt > > > > > > On Tue, 22 Feb 2005, Matt wrote: > > > > > OK, we've at least gotten to the point where I > can > > now run the examples > > > from my own directory outside of > > $CATALINA_HOME/webapps, and by ONLY > > > editing server.xml and uriworkermap.properties > > slightly, and NOTHING > > > ELSE, which is not only nice, but also what I > > expected all along! > > > (THANK YOU!THANK YOU!THANK YOU!)* > > > > > > *HOWEVER, now that I made the changes you > > recommended, the webapps area > > > now is NOT FOUND when using plain URL's. I get > a > > (Tomcat-based) directory > > > listing when using the following URL (instead of > > the Tomcat welcome page): > > > http://localhost:8080 > > > ...which includes my outside folder and then all > > of the folders in > > > $CATALINA_HOME/webapps, AND if I go deeper into > > any of these listed > > > directories with the explicit port :8080 set it > > works, BUT if I try the > > > following URL: > > > http://localhost/jsp-examples > > > ...then I get a 404 page not found error (not a > > Tomcat page - standard > > > IE stuff). > > > With or without the :8080 port in my URL, my > > outside directory can be > > > found just fine: > > > > > > http://localhost/JSP/MYwebapps/MYjsp-examples/index.html > > (and so on) > > > ...so I have the inverse problem. > > > Good grief! Can't we have both? > > > > > > Here's the beginning of my HOST tag through the > > CONTEXT (everything else > > > in server.xml is out-of-the-box, unless > > jk_1.2.8.exe does anything here as > > > well): > > >> >unpackWARs="true" autoDeploy="true" > > >xmlValidation="false" > > xmlNamespaceAware="false"> > > > > > > > reloadable="true" > > > crossContext="true" /> > > > > > > > docbase="C:/Inetpub/wwwroot/JSP" debug="0" > > > reloadable="true" crossContext="false" /> > > > > > > ...the trick seems to be in the overlapping > ending > > directory in path and > > > docbase, which is kinda annoying since EVERY > > example I found showed path > > > set to "" or "/" - hence my frustration up to > this > > point. I have tried > > > removing the first CONTEXT (seems weird with > path > > and docbase both set to > > > ""). When I remove that, I get the same results > - > > so what is this CONTEXT > > > for, if a
Re: Getting other Sessions
Antony Paul wrote: You can put all the sessions in List or Map when they login or use HttpSessionListener to listen to session events. That was my fallback plan, if there wasn't an easier way. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: How to send hidden variables to next page
If you are developing a JSP/Servlet then you can do this by keeping those variables in session. Best Regards, S H A K E E L A H M A D http://members.fortunecity.com/javaclub/shakeel.htm Voice: 00923002723316 Senior Software Engineer. NorthStar Technologies. www.globalnorthstar.com EE(Computer Engineering), UET Lahore, Pakistan. SCJP,SCWCD & SCBCD Sun Microsystems, Inc. Brain Bench Certified Java Programmer. -Original Message- From: U K Laxmi [mailto:[EMAIL PROTECTED] Sent: 23 February, 2005 10:31 AM To: Tomcat Users List Subject: How to send hidden variables to next page Sorry if it's not the right place to post this question. Excuse me. I've some hidden variables in a web page. I want to send them to next page without using submit button. I don't know how to do it. More over i don't know how to access those variables in the next page. Is there any option available to do this html or tomcat or apache? Thanks!! --- Matt <[EMAIL PROTECTED]> wrote: > Ah-ha, somehow I changed a line in the > uriworkermap.properties file from > this (some pointless experiment out of past > frustrated delirium): > /jsp-examples/*=ajp13w > ...to this: > /jsp-examples/*.jsp > ...so changing it back (which is how it was > out-of-the-box after > jk_1.2.8.exe was run) to: > /jsp-examples/*=ajp13w > ...fixes it, and I can now access both directories > fine (inside and > outside of $CATALINA_HOME/webapps)!!! YAY!!! > > I now get the expected results for: > http://localhost/jsp-examples/ (the webapps/ > examples page) > ...and for: > http://localhost:8080/jsp-examples/ (the webapps/ > examples page) > ...and for: > http://localhost:8080 (Tomcat home page) > ...and for: > http://localhost (IIS home page) > ...and for: > http://localhost/JSP/MYwebapps/MYjsp-examples > (the C:\Inetpub\wwwroot\JSP\MYwebapps\ examples > page) > ...and the .JSP pages work as expected in both > places! > Now I can add docabses to my heart's content - > *relieved sigh* > > SO...the easy answer is a simple, single CONTEXT > addition, but making sure > to overlap the end of the "docbase" path with the > "path": > docbase="C:/Inetpub/wwwroot/JSP" debug="0" > reloadable="true" crossContext="false" /> > > As an aside, I got rid of the <...path="" > docbase=""...> CONTEXT, so I > have no idea why you're using that line in your > server.xml file, Wendy? > > THANKS, Wendy!!! > -Matt > > > On Tue, 22 Feb 2005, Matt wrote: > > > OK, we've at least gotten to the point where I can > now run the examples > > from my own directory outside of > $CATALINA_HOME/webapps, and by ONLY > > editing server.xml and uriworkermap.properties > slightly, and NOTHING > > ELSE, which is not only nice, but also what I > expected all along! > > (THANK YOU!THANK YOU!THANK YOU!)* > > > > *HOWEVER, now that I made the changes you > recommended, the webapps area > > now is NOT FOUND when using plain URL's. I get a > (Tomcat-based) directory > > listing when using the following URL (instead of > the Tomcat welcome page): > > http://localhost:8080 > > ...which includes my outside folder and then all > of the folders in > > $CATALINA_HOME/webapps, AND if I go deeper into > any of these listed > > directories with the explicit port :8080 set it > works, BUT if I try the > > following URL: > > http://localhost/jsp-examples > > ...then I get a 404 page not found error (not a > Tomcat page - standard > > IE stuff). > > With or without the :8080 port in my URL, my > outside directory can be > > found just fine: > > > http://localhost/JSP/MYwebapps/MYjsp-examples/index.html > (and so on) > > ...so I have the inverse problem. > > Good grief! Can't we have both? > > > > Here's the beginning of my HOST tag through the > CONTEXT (everything else > > in server.xml is out-of-the-box, unless > jk_1.2.8.exe does anything here as > > well): > >>unpackWARs="true" autoDeploy="true" > >xmlValidation="false" > xmlNamespaceAware="false"> > > > > reloadable="true" > > crossContext="true" /> > > > > docbase="C:/Inetpub/wwwroot/JSP" debug="0" > > reloadable="true" crossContext="false" /> > > > > ...the trick seems to be in the overlapping ending > directory in path and > > docbase, which is kinda annoying since EVERY > example I found showed path > > set to "" or "/" - hence my frustration up to this > point. I have tried > > removing the first CONTEXT (seems weird with path > and docbase both set to > > ""). When I remove that, I get the same results - > so what is this CONTEXT > > for, if anything? > > > > My uriworkermap.properties file is as follows: > > # uriworker.properties - > > # > > # This file provides sample mappings for example > > # ajp13w worker defined in > workermap.properties.minimal > > > > /servlets-examples/*=ajp13w > > /jsp-examples/*.jsp=ajp13w > > /*.jsp=ajp13w > > /JSP/*.jsp=ajp13w > > > > # Now filter out all .jpeg files inside that > context > > # For no mapping the url has to start with > exclamation (!) > > > > !/servlets-e
How to send hidden variables to next page
Sorry if it's not the right place to post this question. Excuse me. I've some hidden variables in a web page. I want to send them to next page without using submit button. I don't know how to do it. More over i don't know how to access those variables in the next page. Is there any option available to do this html or tomcat or apache? Thanks!! --- Matt <[EMAIL PROTECTED]> wrote: > Ah-ha, somehow I changed a line in the > uriworkermap.properties file from > this (some pointless experiment out of past > frustrated delirium): > /jsp-examples/*=ajp13w > ...to this: > /jsp-examples/*.jsp > ...so changing it back (which is how it was > out-of-the-box after > jk_1.2.8.exe was run) to: > /jsp-examples/*=ajp13w > ...fixes it, and I can now access both directories > fine (inside and > outside of $CATALINA_HOME/webapps)!!! YAY!!! > > I now get the expected results for: > http://localhost/jsp-examples/ (the webapps/ > examples page) > ...and for: > http://localhost:8080/jsp-examples/ (the webapps/ > examples page) > ...and for: > http://localhost:8080 (Tomcat home page) > ...and for: > http://localhost (IIS home page) > ...and for: > http://localhost/JSP/MYwebapps/MYjsp-examples > (the C:\Inetpub\wwwroot\JSP\MYwebapps\ examples > page) > ...and the .JSP pages work as expected in both > places! > Now I can add docabses to my heart's content - > *relieved sigh* > > SO...the easy answer is a simple, single CONTEXT > addition, but making sure > to overlap the end of the "docbase" path with the > "path": > docbase="C:/Inetpub/wwwroot/JSP" debug="0" > reloadable="true" crossContext="false" /> > > As an aside, I got rid of the <...path="" > docbase=""...> CONTEXT, so I > have no idea why you're using that line in your > server.xml file, Wendy? > > THANKS, Wendy!!! > -Matt > > > On Tue, 22 Feb 2005, Matt wrote: > > > OK, we've at least gotten to the point where I can > now run the examples > > from my own directory outside of > $CATALINA_HOME/webapps, and by ONLY > > editing server.xml and uriworkermap.properties > slightly, and NOTHING > > ELSE, which is not only nice, but also what I > expected all along! > > (THANK YOU!THANK YOU!THANK YOU!)* > > > > *HOWEVER, now that I made the changes you > recommended, the webapps area > > now is NOT FOUND when using plain URL's. I get a > (Tomcat-based) directory > > listing when using the following URL (instead of > the Tomcat welcome page): > > http://localhost:8080 > > ...which includes my outside folder and then all > of the folders in > > $CATALINA_HOME/webapps, AND if I go deeper into > any of these listed > > directories with the explicit port :8080 set it > works, BUT if I try the > > following URL: > > http://localhost/jsp-examples > > ...then I get a 404 page not found error (not a > Tomcat page - standard > > IE stuff). > > With or without the :8080 port in my URL, my > outside directory can be > > found just fine: > > > http://localhost/JSP/MYwebapps/MYjsp-examples/index.html > (and so on) > > ...so I have the inverse problem. > > Good grief! Can't we have both? > > > > Here's the beginning of my HOST tag through the > CONTEXT (everything else > > in server.xml is out-of-the-box, unless > jk_1.2.8.exe does anything here as > > well): > >>unpackWARs="true" autoDeploy="true" > >xmlValidation="false" > xmlNamespaceAware="false"> > > > > reloadable="true" > > crossContext="true" /> > > > > docbase="C:/Inetpub/wwwroot/JSP" debug="0" > > reloadable="true" crossContext="false" /> > > > > ...the trick seems to be in the overlapping ending > directory in path and > > docbase, which is kinda annoying since EVERY > example I found showed path > > set to "" or "/" - hence my frustration up to this > point. I have tried > > removing the first CONTEXT (seems weird with path > and docbase both set to > > ""). When I remove that, I get the same results - > so what is this CONTEXT > > for, if anything? > > > > My uriworkermap.properties file is as follows: > > # uriworker.properties - > > # > > # This file provides sample mappings for example > > # ajp13w worker defined in > workermap.properties.minimal > > > > /servlets-examples/*=ajp13w > > /jsp-examples/*.jsp=ajp13w > > /*.jsp=ajp13w > > /JSP/*.jsp=ajp13w > > > > # Now filter out all .jpeg files inside that > context > > # For no mapping the url has to start with > exclamation (!) > > > > !/servlets-examples/*.jpeg=ajp13w > > > > So, I'm still trying to get BOTH to work right, > but making some progress! > > -Matt > > > > > > On Tue, 22 Feb 2005 [EMAIL PROTECTED] wrote: > > > > > Hi Matt, > > > > > > I'm not sure if this would solve your problem, > but I have my server.xml set up with the following > configuration: > > > > > > > > > > appBase="webapps/myApp" > > > unpackWARs="false" autoDeploy="true" > > > xmlValidation="true" > xmlNamespaceAware="true"> > > > > > > reloadable=
Re: how to print to web page instead of catalina.out
Why not use out.print() or you are trying to do something else ?. rgds Antony Paul On Tue, 22 Feb 2005 20:26:41 -0800 (PST), Jin Wu <[EMAIL PROTECTED]> wrote: > Hi, > > It seems that System.out.printlin("...") prints to catalina.out. Is there a > way I can print to web page? > > Thanks, > James > > __ > Do You Yahoo!? > Tired of spam? Yahoo! Mail has the best spam protection around > http://mail.yahoo.com > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat 5.5 working, BUT not outside of webapps/
Ah-ha, somehow I changed a line in the uriworkermap.properties file from this (some pointless experiment out of past frustrated delirium): /jsp-examples/*=ajp13w ...to this: /jsp-examples/*.jsp ...so changing it back (which is how it was out-of-the-box after jk_1.2.8.exe was run) to: /jsp-examples/*=ajp13w ...fixes it, and I can now access both directories fine (inside and outside of $CATALINA_HOME/webapps)!!! YAY!!! I now get the expected results for: http://localhost/jsp-examples/ (the webapps/ examples page) ...and for: http://localhost:8080/jsp-examples/ (the webapps/ examples page) ...and for: http://localhost:8080 (Tomcat home page) ...and for: http://localhost (IIS home page) ...and for: http://localhost/JSP/MYwebapps/MYjsp-examples (the C:\Inetpub\wwwroot\JSP\MYwebapps\ examples page) ...and the .JSP pages work as expected in both places! Now I can add docabses to my heart's content - *relieved sigh* SO...the easy answer is a simple, single CONTEXT addition, but making sure to overlap the end of the "docbase" path with the "path": As an aside, I got rid of the <...path="" docbase=""...> CONTEXT, so I have no idea why you're using that line in your server.xml file, Wendy? THANKS, Wendy!!! -Matt On Tue, 22 Feb 2005, Matt wrote: > OK, we've at least gotten to the point where I can now run the examples > from my own directory outside of $CATALINA_HOME/webapps, and by ONLY > editing server.xml and uriworkermap.properties slightly, and NOTHING > ELSE, which is not only nice, but also what I expected all along! > (THANK YOU!THANK YOU!THANK YOU!)* > > *HOWEVER, now that I made the changes you recommended, the webapps area > now is NOT FOUND when using plain URL's. I get a (Tomcat-based) directory > listing when using the following URL (instead of the Tomcat welcome page): > http://localhost:8080 > ...which includes my outside folder and then all of the folders in > $CATALINA_HOME/webapps, AND if I go deeper into any of these listed > directories with the explicit port :8080 set it works, BUT if I try the > following URL: > http://localhost/jsp-examples > ...then I get a 404 page not found error (not a Tomcat page - standard > IE stuff). > With or without the :8080 port in my URL, my outside directory can be > found just fine: > http://localhost/JSP/MYwebapps/MYjsp-examples/index.html (and so on) > ...so I have the inverse problem. > Good grief! Can't we have both? > > Here's the beginning of my HOST tag through the CONTEXT (everything else > in server.xml is out-of-the-box, unless jk_1.2.8.exe does anything here as > well): > unpackWARs="true" autoDeploy="true" >xmlValidation="false" xmlNamespaceAware="false"> > > crossContext="true" /> > > reloadable="true" crossContext="false" /> > > ...the trick seems to be in the overlapping ending directory in path and > docbase, which is kinda annoying since EVERY example I found showed path > set to "" or "/" - hence my frustration up to this point. I have tried > removing the first CONTEXT (seems weird with path and docbase both set to > ""). When I remove that, I get the same results - so what is this CONTEXT > for, if anything? > > My uriworkermap.properties file is as follows: > # uriworker.properties - > # > # This file provides sample mappings for example > # ajp13w worker defined in workermap.properties.minimal > > /servlets-examples/*=ajp13w > /jsp-examples/*.jsp=ajp13w > /*.jsp=ajp13w > /JSP/*.jsp=ajp13w > > # Now filter out all .jpeg files inside that context > # For no mapping the url has to start with exclamation (!) > > !/servlets-examples/*.jpeg=ajp13w > > So, I'm still trying to get BOTH to work right, but making some progress! > -Matt > > > On Tue, 22 Feb 2005 [EMAIL PROTECTED] wrote: > > > Hi Matt, > > > > I'm not sure if this would solve your problem, but I have my server.xml set > > up with the following configuration: > > > > > > > unpackWARs="false" autoDeploy="true" > > xmlValidation="true" xmlNamespaceAware="true"> > > > > > crossContext="true" /> > > > > > > > reloadable="true" crossContext="false" /> > > > > > > > reloadable="true" crossContext="false" /> > > > > > > > > > > This means my root webapp for http://localhost resolves to webapps/myApp, > > and the http://localhost/ini url goes to c:\\koba\c\releases\ini, etc. > > > > When we first set this up Tomcat had problems starting up because it was > > reading in old web.xml files under the Tomcat/conf/Catalina... dir(s) but > > it couldn't find that path under Tomcat/webapps/myApp/. So we had to > > remove those old xml files (since the localhost root no longer went to > > Tomcat/webapps/). > > > > > > As a test, I just tried directing my Host's appBase to an external > > directory, and it worked for me.
how to print to web page instead of catalina.out
Hi, It seems that System.out.printlin("...") prints to catalina.out. Is there a way I can print to web page? Thanks, James __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
Re: Getting other Sessions
You can put all the sessions in List or Map when they login or use HttpSessionListener to listen to session events. rgds Antony Paul On Tue, 22 Feb 2005 23:17:56 -0500, Joseph Shraibman wrote: > I want to make an admin page in my application. I needs to be able to > get access to all the current Session objects to access their > attributes. Is this possible? > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat 5.5.7 - error trying to replicate session on Linux [SOLVED]
OK, I just had to re-read the comments in server.xml and think about my setup a bit more. It still seems like it should have worked the other way [shrug]. Basically I had to tell the cluster setup to use only the network adapters that represent the private link between the two servers (ignoring the other NIC that is my outlet to the Internet). Anyway I changed server.xml as follows: 1) Added mcastBindAddr to thee " --- Richard Richard Mixon (qwest) wrote: > OK, we still have one more issue with our Tomcat cluster as we move > to our Linux environment. > > For some reason, both instances (jvmRoute=srv1 and jvmRoute=srv2) see > each other at startup. We see that they each join the cluster just > fine. But when the first request comes through we get an exception > timeout trying to replicate. > > Of course it works fine in our Windows development environment, but > now we are moving to our testing and production environments - SuSE > Linux SLES9. > > Any ideas and suggestions are much appreciated. The catalina.log > messages for both Tomcat instances are below. > > Thanks - Richard > > CLUSTER MEMBER 2 (jvmRoute=srv1): > > INFO: Server startup in 7332 ms > Feb 21, 2005 9:02:58 PM > org.apache.catalina.cluster.tcp.SimpleTcpCluster > memberAdded > INFO: Replication member > added:org.apache.catalina.cluster.mcast.McastMember[tcp://140.99.50.58:4 > 001,140.99.50.58,4001, alive=2] > 21:03:36,258 INFO [TP-Processor3] UserCounterListener:137 - Before > increment, User Count: 0 21:03:36,262 INFO [TP-Processor3] > UserCounterListener:140 - After increment, User Count: 1 21:03:36,263 > INFO [TP-Processor3] UserCounterListener:73 - sessionCreated - > Session info: id: '6615ABC7BD43B096AB54C031B7BE02C5.srv1'; createdAt > '21:03:36'; lastAccessedAt '21:03:36'; currentTime '21:03:36; session > count: '1 21:03:36,264 INFO [TP-Processor3] UserCounterListener:76 - > sessionCreated - Session info: id: > '6615ABC7BD43B096AB54C031B7BE02C5.srv1'; createdAt '21:03:36'; > lastAccessedAt '21:03:36'; currentTime '21:03:36; session count: '1 > 21:05:14,482 INFO [TP-Processor2] UserCounterListener:137 - Before > increment, User Count: 1 21:05:14,483 INFO [TP-Processor2] > UserCounterListener:140 - After increment, User Count: 2 21:05:14,484 > INFO [TP-Processor2] UserCounterListener:73 - sessionCreated - > Session info: id: '61B3F35D9B0AAAE46F75AAA19FFC7D1B.srv1'; createdAt > '21:05:14'; lastAccessedAt '21:05:14'; currentTime '21:05:14; session > count: '2 21:05:14,485 INFO [TP-Processor2] UserCounterListener:76 - > sessionCreated - Session info: id: > '61B3F35D9B0AAAE46F75AAA19FFC7D1B.srv1'; createdAt '21:05:14'; > lastAccessedAt '21:05:14'; currentTime '21:05:14; session count: '2 > Feb 21, 2005 9:06:45 PM > org.apache.catalina.cluster.tcp.ReplicationTransmitter > sendMessageData WARNING: Unable to send replicated message, is server > down? java.net.ConnectException: Connection timed out at > java.net.PlainSocketImpl.socketConnect(Native Method) > at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333) at > > > > > > > > java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195) > at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182) > at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:364) at > java.net.Socket.connect(Socket.java:507) at > java.net.Socket.connect(Socket.java:457) at > java.net.Socket.(Socket.java:365) at > java.net.Socket.(Socket.java:207) at > org.apache.catalina.cluster.tcp.SocketSender.connect(SocketSender.java:1 > 10) at > org.apache.catalina.cluster.tcp.SocketSender.sendMessage(SocketSender.ja > va:157) at > org.apache.catalina.cluster.tcp.PooledSocketSender.sendMessage(PooledSoc > ketSender.java:147) at > org.apache.catalina.cluster.tcp.ReplicationTransmitter.sendMessageData(R > eplicationTransmitter.java:247) at > org.apache.catalina.cluster.tcp.ReplicationTransmitter.sendMessage(Repli > cationTransmitter.java:281) at > org.apache.catalina.cluster.tcp.SimpleTcpCluster.send(SimpleTcpCluster.j > ava:454) at > org.apache.catalina.cluster.tcp.SimpleTcpCluster.send(SimpleTcpCluster.j > ava:467) at > > org.apache.catalina.cluster.session.DeltaManager.createSession(DeltaMana > ger.java:290) at > org.apache.catalina.cluster.session.DeltaManager.createSession(DeltaMana > ger.java:239) at > org.apache.catalina.connector.Request.doGetSession(Request.java:2199) > at > org.apache.catalina.connector.Request.getSessionInternal(Request.java:21 > 50) at > org.apache.catalina.authenticator.FormAuthenticator.authenticate(FormAut > henticator.java:230) at > org.apache.catalina.authenticator.AuthenticatorBase.invoke(Authenticator > Base.java:446) at > org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java >> 126) > at > org.apache.catalina.cluster.tcp.ReplicationValve.invoke(Replic
Getting other Sessions
I want to make an admin page in my application. I needs to be able to get access to all the current Session objects to access their attributes. Is this possible? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat 5.5 working, BUT not outside of webapps/
OK, we've at least gotten to the point where I can now run the examples from my own directory outside of $CATALINA_HOME/webapps, and by ONLY editing server.xml and uriworkermap.properties slightly, and NOTHING ELSE, which is not only nice, but also what I expected all along! (THANK YOU!THANK YOU!THANK YOU!)* *HOWEVER, now that I made the changes you recommended, the webapps area now is NOT FOUND when using plain URL's. I get a (Tomcat-based) directory listing when using the following URL (instead of the Tomcat welcome page): http://localhost:8080 ...which includes my outside folder and then all of the folders in $CATALINA_HOME/webapps, AND if I go deeper into any of these listed directories with the explicit port :8080 set it works, BUT if I try the following URL: http://localhost/jsp-examples ...then I get a 404 page not found error (not a Tomcat page - standard IE stuff). With or without the :8080 port in my URL, my outside directory can be found just fine: http://localhost/JSP/MYwebapps/MYjsp-examples/index.html (and so on) ...so I have the inverse problem. Good grief! Can't we have both? Here's the beginning of my HOST tag through the CONTEXT (everything else in server.xml is out-of-the-box, unless jk_1.2.8.exe does anything here as well): ...the trick seems to be in the overlapping ending directory in path and docbase, which is kinda annoying since EVERY example I found showed path set to "" or "/" - hence my frustration up to this point. I have tried removing the first CONTEXT (seems weird with path and docbase both set to ""). When I remove that, I get the same results - so what is this CONTEXT for, if anything? My uriworkermap.properties file is as follows: # uriworker.properties - # # This file provides sample mappings for example # ajp13w worker defined in workermap.properties.minimal /servlets-examples/*=ajp13w /jsp-examples/*.jsp=ajp13w /*.jsp=ajp13w /JSP/*.jsp=ajp13w # Now filter out all .jpeg files inside that context # For no mapping the url has to start with exclamation (!) !/servlets-examples/*.jpeg=ajp13w So, I'm still trying to get BOTH to work right, but making some progress! -Matt On Tue, 22 Feb 2005 [EMAIL PROTECTED] wrote: > Hi Matt, > > I'm not sure if this would solve your problem, but I have my server.xml set > up with the following configuration: > > > unpackWARs="false" autoDeploy="true" > xmlValidation="true" xmlNamespaceAware="true"> > > crossContext="true" /> > > > reloadable="true" crossContext="false" /> > > > reloadable="true" crossContext="false" /> > > > > > This means my root webapp for http://localhost resolves to webapps/myApp, and > the http://localhost/ini url goes to c:\\koba\c\releases\ini, etc. > > When we first set this up Tomcat had problems starting up because it was > reading in old web.xml files under the Tomcat/conf/Catalina... dir(s) but it > couldn't find that path under Tomcat/webapps/myApp/. So we had to remove > those old xml files (since the localhost root no longer went to > Tomcat/webapps/). > > > As a test, I just tried directing my Host's appBase to an external directory, > and it worked for me. For that test I configured server.xml per the > following: > >unpackWARs="false" autoDeploy="true" > xmlValidation="true" xmlNamespaceAware="true"> > >crossContext="true" /> > > > > > I am running Tomcat 5.0.25. > - Wendy > > p.s. The Apache webserver allows you to manage aliases and the like better, > if you're in a position to install that in front of Tomcat. > > > -Original Message- > From: Matt [mailto:[EMAIL PROTECTED] > Sent: Tuesday, February 22, 2005 11:40 AM > To: Tomcat Users List > Subject: Re: Tomcat 5.5 working, BUT not outside of webapps/ > > > Well, I've tried all sorts of configurations, so I was hoping to get a > clean example from someone who had it working. I changed the stock Tomcat > 5.5 server.xml file to add the following (within the pre-existing, as well > as the only, HOST tag for localhost, and I have tried with/without a slash > for path, and with forward or backward slashes in docbase): > reloadable="true" /> > ...and I have edited the stock Tomcat 5.5 uriworkermap.properties file to > add the directory relative to the additional docbase (I've also tried > without the .jsp specificity at the end of the line to handle everything): > /MYjsp-examples/*.jsp > (the jk_1.2.8.exe installer puts it all in its own folders in > $CATALINA_HOME's parent, not within $CATALINA_HOME/bin, and also sets the > registry properly - anything else this nice installer does for me? It > doesn't appear to set environment variables $CATALINA_HOME or JAVA_HOME - > do I need to do this manually? The webapps examples work fine without > these var
[OT] Duration between two timestamps
Hi All, In my java application I need to subtract two java.sql.timestamps. and I want to store the result as sql type "interval". But my insert statement is failing. Does anyone know what java type I need to use in the insert statement? (it must accept null values) thanks in advance, Phil - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Can servlet mappings be done somewhere other than web.xml?
Yup. Tomcat 3.3 has the Invoker enabled by default (although 3.3 doesn't have a global web.xml file, so it's declared in server.xml :). "Drew Jorgenson" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Looks like the invoker servlet is being used, which is declared in the > global web.xml file. The and that you see > are used to map a name to a servlet, which are all accessed through > /servlet/* > > Drew. > > On Tue, 2005-02-22 at 10:43, Beckle, Steven R wrote: >> I'm currently working on a legacy Tomcat 3.3 project that was developed >> (not by me) a couple of years ago, and I am having a heck of a time >> understanding how servlets are getting mapped properly. A typical URL in >> the application is of the form CONTEXT/servlet/servletName - nothing >> fancy there. However, the webapp's web.xml file contains no >> tags, but just the and >> tags. Is there another way in Tomcat to map URL's to servlets, either >> through a server configuration setting or some other "global" >> information contained in a conf/xml file that I'm not aware of? My >> problem isn't that the servlets aren't being accessed - they display >> content fine. I'm for now just trying to understand how Tomcat is >> associating the URL string with the actual servlet class since there is >> no servlet mapping being done in the web.xml file. >> >> >> >> The servlets themselves reside in jar files under CONTEXT/WEB-INF/lib. >> >> >> >> Thank you. >> >> >> >> Steve Beckle >> Computer Associates >> tel: +1 (630) 505 6855 >> >> fax: +1 (630) 505 6983 >> >> [EMAIL PROTECTED] >> >> - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
loading JNI .so file with tomcat 5.5.4
Hi folks, Correct me if I sound stupid here :) I am trying to load a simple JNI based .so lib file with Tomcat 5.5.4.(on linux) I am trying to load the .so file within the JSP page. I am not sure if this is allowed. I have tried all the following methods.. 1. putting the .so file in JAVA_HOME//jre/lib/i386/ 2. setting the LD_LIBRARY_PATH to where my lib is and exporting it 3. inside the catelina.sh file added an extra -Djava.library.path=mylibpath Inside the JSP i tried the following options... 1. try { //System.loadLibrary("AriaJava"); // the name of the file is libAriaJava.so } catch (UnsatisfiedLinkError e) { System.err.println("Native code library failed to load.\n" + e); } 2. try { System.load( "/home/path_to_lib/libAriaJava.so"); } catch (UnsatisfiedLinkError e) { System.err.println("Native code library failed to load.\n" + e); } in all these trials it fails with unsatisfied link error !! Any help is appreciated !! r -Vaheesan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Merge webapp doc roots
QM, Yes, I could definitely do that but the nice thing now is that I don't need to use a build process to copy & merge so it's nice and fast. Thanks anyway, --Bill On Tue, 22 Feb 2005 19:12:23 -0600, QM <[EMAIL PROTECTED]> wrote: > On Tue, Feb 22, 2005 at 02:08:50PM -0800, Bill Lynch wrote: > : Resin has a new "merge()" function which will merge together different > : doc roots for a webapp: > : [snip] > : : document-directory="merge:(c:\webapp;c:\webapp-editionA);" .. /> > : > : This means everything in webapp-editionA will override what's in > : webapp. I do this right now and it works perfectly for development. > : > : My question is -- is this possible in Tomcat? > > To my knowledge, no, this is not possible using Tomcat alone. Tomcat > expects a standard webapp (that is, either wrapped in a WAR file or in > exploded-dir format). > > You can achieve what you're after by moving the merge into your build > process -- that is, have Ant (or whatever you use) create the dir/WAR by > copying all of those webapps to it (that is, copy them over one > another). > > -QM - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Merge webapp doc roots
On Tue, Feb 22, 2005 at 02:08:50PM -0800, Bill Lynch wrote: : Resin has a new "merge()" function which will merge together different : doc roots for a webapp: : [snip] : : : This means everything in webapp-editionA will override what's in : webapp. I do this right now and it works perfectly for development. : : My question is -- is this possible in Tomcat? To my knowledge, no, this is not possible using Tomcat alone. Tomcat expects a standard webapp (that is, either wrapped in a WAR file or in exploded-dir format). You can achieve what you're after by moving the merge into your build process -- that is, have Ant (or whatever you use) create the dir/WAR by copying all of those webapps to it (that is, copy them over one another). -QM -- software -- http://www.brandxdev.net tech news -- http://www.RoarNetworX.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: can I develop dan deploy myapps as regular user at linux?
On Tue, Feb 22, 2005 at 09:47:51PM +0800, Mohd. Jeffry wrote: : Hi, I'm pretty new with tomcat, 1 month to be exect. So what are the : standart operating procedure to develop and deploy at linux : environtment? For the time being this is what I do and it's kinda : troublesome. : : 1. compile my app at /home/devel/myapps : 2. su as root and move it to /usr/local/tomcat/webapps/myapps : 3. and chown myapps for tomcat:tomcat. : 4. and restart tomcat You could look into setting up a private Tomcat instance for yourself. This uses a single Tomcat install on the machine, but leaves the relevant files writable by you. Look into $CATALINA_HOME vs $CATALINA_BASE, it's in the docs. : If possible I don't want to use any IDE tools for time being because I : want to focus on servlet/jsp and not on IDE. Good call. I've seen container/IDE integration cause all sorts of problems. Until you're familiar with Tomcat and know what to look for, this is the way to go. -QM -- software -- http://www.brandxdev.net tech news -- http://www.RoarNetworX.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: My jsp file interrupt when it met the exception
Sorry for my description's not clear.I want to output the simple exception information to the user and the detail to my log.But sometimes when I do not enlarge the buffer(1024kb is too large but it ensure the buffer is sufficient),my jsp program show the exception while the other time it do not.It simply stopped.I do not want it to do so and want it to continue running until it output the detail both to the user and the log. >Hi Nap, > Why do you want to output the full exception >on the browser? Why >not just log it at the server-side and present >the user (read: >browser) with a simple error information. > btw, what's the size of exception (error >report) that you are >getting? I don't think it should be so huge that >you need to buffer >for "1024kb"... :-?
Native session replication/failover in tomcat 5.0.30
I have the tomcat 5.0.30 replication partially working on redhat as3. Here's what I see: 1. both tomcats up 2. use tcrepl (provided by Richard Mixon) app to etablish session on one tomcat (verify by tailing log file) 3. kill that tomcat 4. session fails over to other tomcat successfully 5. Problems occur after bringing downed tomcat back up. When I start the tomcat instance that I had taken down I get three java errors during tomcat startup (listed below) 6. After the downed tomcat finally comes back up it causes the session to try to fail back over. But that fail over fails and the session croaks, resulting in 500 errors. (first error) Feb 22, 2005 3:49:46 PM org.apache.struts.util.MessageResourcesFactory createFactory SEVERE: MessageResourcesFactory.createFactory java.lang.ClassNotFoundException: org.apache.struts.util.PropertyMessageResourcesFactory (second error) Feb 22, 2005 3:50:16 PM org.apache.catalina.cluster.tcp.ReplicationTransmitter sendMessageData WARNING: Unable to send replicated message, is server down? java.net.SocketTimeoutException: Read timed out at java.net.SocketInputStream.socketRead0(Native Method) (third error) java.lang.ExceptionInInitializerError at sun.misc.Unsafe.ensureClassInitialized(Native Method) at sun.reflect.UnsafeFieldAccessorFactory.newFieldAccessor(UnsafeFieldAcces sorFactory.java:20) at sun.reflect.ReflectionFactory.newFieldAccessor(ReflectionFactory.java:12 2) at java.lang.reflect.Field.acquireFieldAccessor(Field.java:779) at java.lang.reflect.Field.getFieldAccessor(Field.java:760) What is the expected behavior? Side note - differences between clustering in 5.0 and 5.5: 5.0 doesn't have the JvmRouteBinderValve 5.0 doesn't have the JvmRouteSessionIDBinderLifecycleListener 5.0 doesn't have StoreConfigLifecycleListener - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: help installing
Thank you, thank you, thank you! This is exactly what I was hoping for. Something simple and straight forward! -J. Case Pete Stevens wrote: On Tue, 22 Feb 2005, Jeanne Case wrote: I am new to the list and Tomcat. I know this has probably been answered, but I am having trouble finding it in the archives. Is there an installation guide that makes sense some where? I would like some thing with a definition of files, what to edit, what works, how to install from source. I find the documentation on jakarta.apache.org/tomcat to be confusing. Any help is appreciated. If you're installig on a linux machine, we have a brief guide on setting up Tomcat for our virtual linux machine service at http://www.mythic-beasts.com/support/topic_vds_java.html This is designed for low volume simple usage, everything is done directly by Tomcat and there is no challenges with connectors and apache for example. We're in the process of finalising our virtual hosting guide. Hope this helps, Pete Stevens -- Pete Stevens [EMAIL PROTECTED] http://www.ex-parrot.com/~pete/ I'd be a morning person if it didn't start so early in the day. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: help installing
Thanks to all for responding. The information I received was much clearer and easier to understand then the apache site! -J.Case Jason Bainbridge wrote: On Tue, 22 Feb 2005 14:00:14 -0800, Jeanne Case <[EMAIL PROTECTED]> wrote: I am new to the list and Tomcat. I know this has probably been answered, but I am having trouble finding it in the archives. Is there an installation guide that makes sense some where? Welcome. :) I actually had to scratch my head thinking about if there was such a guide and finally had to do a google to find http://www.coreservlets.com/Apache-Tomcat-Tutorial/ That seems like just what you're after. Although I don't know what they were thinking with all that pink and magenta on the page... Cheers, - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Load balancing SSL sessions
Thanks Andrew. In answer to your question, some of our app requires SSL -- exactly like an order-style app (but it's not a product ordering app). So, a person's session might involve the following path: 1. non SSL req 2. non SSL req 3. SSL req 4. non SSL req and we'd like that entire session to be persistent (i.e., sticky with one particular app server). BTW, it is not an issue for us if that server fails during the session. It will happen rarely and it's an acceptable failure for us (i.e., not mission critical data). I should have mentioned that we expect 1000 req/hour with this app. However, our app is not necessarily quick (dependent on external resources) and does keep a lot of state. I'm personally someone in favor of a H/W LB solution, but looking to be convinced that a valid S/W solution exists which is better (or just as good) as a H/W solution. I know the S/W solution will be less reliable (not solid state), but I'm looking to hear from folks who have done SSL session affinity with a S/W only approach. Thanks again, From: Andrew Miehs <[EMAIL PROTECTED]> Reply-To: "Tomcat Users List" To: "Tomcat Users List" Subject: Re: Load balancing SSL sessions Date: Tue, 22 Feb 2005 22:40:14 +0100 We use F5 BigIPs, but they are probably overkill for your application - The cisco probably will be as well. A 'Cheap' software solution might be to work with redirects, and 2 separate IP addresses. ie: ssl1.mysite.com and ssl2.mysite.com - You will need 2 ssl keys though for this to work. Does all of your app require ssl? or just a certain part, ie: payment. Do you need the stickiness for the whole app? or just for the ssl (seeing you are using tomcat, you will probably need it for the whole app)... Andrew On Feb 22, 2005, at 10:24 PM, Kelly Vista wrote: Hi - We are looking to deploy our app, running on Tomcat 5, soon and are exploring load balancing options. We are looking at H/W and S/W solutions, and I was wondering if anyone had any past experience/advice they would like to share. Our deployment is as pretty run-of-the-mill as it gets: 2 machines, each running Tomcat. We would like to avoid replicating state (since we have a lot of state in these apps, for reasons beyond our current control). Even in-memory session replication would not be option here, so we're punting on the Tomcat cluster solution. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ Express yourself instantly with MSN Messenger! Download today - it's FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to prevent Context Reload upon changing web.xml
On Tue, 22 Feb 2005 14:21:24 -0800, Neeraj Vora <[EMAIL PROTECTED]> wrote: > I migrated from Tomcat 4.0.2 to Tomcat 5.5.7. The former was not reloading > the context if I changed application's web.xml file after deployment. The > latter does that. Is there a way to prevent it? During the searching for > this I read a post that having a context entry with reloadable attribute set > to false does not prevent Tomcat from reloading the WebApp upon touching the > web.xml. Look in conf/context.xml. -- x Rémy Maucherat Developer & Consultant JBoss Group (Europe) SàRL x - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Load balancing SSL sessions
Problem with round robin dns is that you can not guarantee that the web browser/ client will not make a second request to the dns server during the session - although very very unlikely. Andrew On Feb 22, 2005, at 11:01 PM, Filip Hanik - Dev Lists wrote: you can also use DNS round robin, www.mysite.com resolves to two or more IP addresses. Filip Andrew Miehs wrote: We use F5 BigIPs, but they are probably overkill for your application - The cisco probably will be as well. A 'Cheap' software solution might be to work with redirects, and 2 separate IP addresses. ie: ssl1.mysite.com and ssl2.mysite.com - You will need 2 ssl keys though for this to work. Does all of your app require ssl? or just a certain part, ie: payment. Do you need the stickiness for the whole app? or just for the ssl (seeing you are using tomcat, you will probably need it for the whole app)... Andrew On Feb 22, 2005, at 10:24 PM, Kelly Vista wrote: Hi - We are looking to deploy our app, running on Tomcat 5, soon and are exploring load balancing options. We are looking at H/W and S/W solutions, and I was wondering if anyone had any past experience/advice they would like to share. Our deployment is as pretty run-of-the-mill as it gets: 2 machines, each running Tomcat. We would like to avoid replicating state (since we have a lot of state in these apps, for reasons beyond our current control). Even in-memory session replication would not be option here, so we're punting on the Tomcat cluster solution. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: help installing
On Tue, 22 Feb 2005, Jeanne Case wrote: > I am new to the list and Tomcat. I know this has probably been answered, > but I am having trouble finding it in the archives. Is there an > installation guide that makes sense some where? > > I would like some thing with a definition of files, what to edit, what > works, how to install from source. I find the documentation on > jakarta.apache.org/tomcat to be confusing. Any help is appreciated. If you're installig on a linux machine, we have a brief guide on setting up Tomcat for our virtual linux machine service at http://www.mythic-beasts.com/support/topic_vds_java.html This is designed for low volume simple usage, everything is done directly by Tomcat and there is no challenges with connectors and apache for example. We're in the process of finalising our virtual hosting guide. Hope this helps, Pete Stevens -- Pete Stevens [EMAIL PROTECTED] http://www.ex-parrot.com/~pete/ I'd be a morning person if it didn't start so early in the day. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
How to prevent Context Reload upon changing web.xml
I migrated from Tomcat 4.0.2 to Tomcat 5.5.7. The former was not reloading the context if I changed applications web.xml file after deployment. The latter does that. Is there a way to prevent it? During the searching for this I read a post that having a context entry with reloadable attribute set to false does not prevent Tomcat from reloading the WebApp upon touching the web.xml. TIA. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Re: out of memory when there is plenty
Any tips on optimizing usage of Virtual Hosts, I narrowed down the problem a bit. I can have 500 users running without any memory problems on the server if I set them all up under localhost/userXXX but as soon as I start assigning virtual hosts to each user, I crash at about a 100. Same problem 1GB ram avaiable but server crashes at like 350MB, any ideas? Thanks Oleg On Sun, 20 Feb 2005 0:02:48 -0500, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > JProfiler is best in case of Tomcat. > Shakeel. > > > > From: Oleg <[EMAIL PROTECTED]> > > Date: 2005/02/19 Sat PM 06:15:10 EST > > To: Tomcat Users List > > Subject: Re: out of memory when there is plenty > > > > Hey guys, thanks for response. > > Yes JVM is 1.4.2_06 > > So it can be pretty much anything not just the memory, alright that > > makes perfect sense, but creates a bigger problem, how do I find out > > now whats wrong. Will memory profiling help? JProbe or Optimizeit I > > think those are the only two I keep on hearing about. > > > > Thansk > > Oleg > > > > > > On Sat, 19 Feb 2005 08:38:34 -0600, Caldarale, Charles R > > <[EMAIL PROTECTED]> wrote: > > > > From: Oleg [mailto:[EMAIL PROTECTED] > > > > Subject: out of memory when there is plenty > > > > > > > > My question is what can cause Tomcat to report out of memory error > > > > when so much is still available. > > > > > > As has been discussed before on this mailing list, the OutOfMemory > > > exception is somewhat of a catch-all. The JVM generates this exception > > > not just for overflowing heap space, but also pretty much anytime limits > > > imposed by the underlying OS are reached. These limits include such > > > things as stack space, open files, and number of threads. > > > > > > You didn't mention the JVM version you're using (this is often critical), > > > but a 1.4 and above JVM can run out of space in the Permanent Generation > > > portion of the heap, even though there's plenty of room available in the > > > other portions. This occurs more frequently in multiple classloader > > > environments such as Tomcat, and, again, has been discussed in some > > > detail on this mailing list. > > > > > > - Chuck > > > > > > THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY > > > MATERIAL and is thus for use only by the intended recipient. If you > > > received this in error, please contact the sender and delete the e-mail > > > and its attachments from all computers. > > > > > > - > > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > > > - > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: help installing
On Tue, 22 Feb 2005 14:00:14 -0800, Jeanne Case <[EMAIL PROTECTED]> wrote: > I am new to the list and Tomcat. I know this has probably been answered, > but I am having trouble finding it in the archives. Is there an > installation guide that makes sense some where? Welcome. :) I actually had to scratch my head thinking about if there was such a guide and finally had to do a google to find http://www.coreservlets.com/Apache-Tomcat-Tutorial/ That seems like just what you're after. Although I don't know what they were thinking with all that pink and magenta on the page... Cheers, -- Jason Bainbridge http://kde.org - [EMAIL PROTECTED] Personal Site - http://jasonbainbridge.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
help installing
I am new to the list and Tomcat. I know this has probably been answered, but I am having trouble finding it in the archives. Is there an installation guide that makes sense some where? I would like some thing with a definition of files, what to edit, what works, how to install from source. I find the documentation on jakarta.apache.org/tomcat to be confusing. Any help is appreciated. Thanks in advance, J. Case - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Merge webapp doc roots
All, I'm developing a webapp and for various reasons it has multiple document roots which can override each other. For example, c:\webapp is one directory, but c:\webapp-editionA and c:\webapp-editionB are other editions of the same application. There are a base set of JSPs in the 'webapp' directory and some of those are overridden in the 'edition' directories. I do my development in different modes -- so if I'm developing the webapp for edition A I'll need the jsp's from the base directory plus those in the A directory. Resin has a new "merge()" function which will merge together different doc roots for a webapp: This means everything in webapp-editionA will override what's in webapp. I do this right now and it works perfectly for development. My question is -- is this possible in Tomcat? I'd like to use Tomcat for more dev, mostly because of it's blazing fast JSP compilation in 5.5 (very impressive BTW!). Thanks in advance, --Bill - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat 5.5 working, BUT not outside of webapps/
The original $CATALINA_HOME/webapps works fine, yes, but nothing will work outside of that, so I'm just looking for the steps (and files I need to edit) to have my own webapps work outside of $CATALINA_HOME/webapps. That's all - it's quite simple, really. C:\Inetpub\wwwroot is just a sample path on my Windows box, so how would I get Tomcat to also work on files in there, not just $CATALINA_HOME/webapps? The CONTEXT tag below is one sample of what I've tried (in server.xml), but it does *not* work. I have also edited uriworkermap.properties, but when I do that, Tomcat says it can't find any resources in that location, so the issue is how to setup another web applications area/folder/directory properly, step-by-step, file-by-file. It seems it shouldn't take more than 5 steps at most, no? If it helps, recall that I have setup Tomcat, jk_1.2.8 and my web server up out of the box and they work just fine with the stock usage and I can run jsp-examples, BUT I now want to *add* another location besides $CATALINA_HOME/webapps and have jsp files and servlets work in there as well, and that location could be (for example's sake) C:\Inetpub\wwwroot (and anywhere below). You threw me off when you mentioned $CATALINA_HOME/Catalina//, b/c I *do* have $CATALINA_HOME/localhost/manager.xml, but am completely clueless as to what that file has to do with server.xml. You say I have to delete it to have any of my changes in server.xml to actually take? That's the clarification I was looking for, but if I can address the original issue above (whether it includes this as part of it ot not) then that'd be the solution with which I'm struggling. Thanks, -Matt On Tue, 22 Feb 2005, Michael Greer wrote: > Ah, I see the problem ! It is working fine, and following your config: > >>> >>> reloadable="true" /> > > The "path" says how to access the context (ie, the URL path from the > root of the serv). > > Maybe I'm wrong. I can't keep track of what works and does not in your > issue. If you can reach the apps at the "old" address, then the docbase > property works. > > On Feb 22, 2005, at 2:55 PM, Matt wrote: > > > There is a folder called "localhost" and in there is "manager.xml" > > Do I destroy this folder and file? SOmeone had mentioned adding a > > site.xml file in there, and I didn;t see anything in the docs re: this > > in > > terms of adding contexts? > > > > Thanks for clarifying, > > -Matt Matthew Kozak Rutgers University-Camden [EMAIL PROTECTED] ** "They that can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety." -Ben Franklin ** - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Load balancing SSL sessions
you can also use DNS round robin, www.mysite.com resolves to two or more IP addresses. Filip Andrew Miehs wrote: We use F5 BigIPs, but they are probably overkill for your application - The cisco probably will be as well. A 'Cheap' software solution might be to work with redirects, and 2 separate IP addresses. ie: ssl1.mysite.com and ssl2.mysite.com - You will need 2 ssl keys though for this to work. Does all of your app require ssl? or just a certain part, ie: payment. Do you need the stickiness for the whole app? or just for the ssl (seeing you are using tomcat, you will probably need it for the whole app)... Andrew On Feb 22, 2005, at 10:24 PM, Kelly Vista wrote: Hi - We are looking to deploy our app, running on Tomcat 5, soon and are exploring load balancing options. We are looking at H/W and S/W solutions, and I was wondering if anyone had any past experience/advice they would like to share. Our deployment is as pretty run-of-the-mill as it gets: 2 machines, each running Tomcat. We would like to avoid replicating state (since we have a lot of state in these apps, for reasons beyond our current control). Even in-memory session replication would not be option here, so we're punting on the Tomcat cluster solution. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat 5.5 working, BUT not outside of webapps/
Hi Matt, I'm not sure if this would solve your problem, but I have my server.xml set up with the following configuration: This means my root webapp for http://localhost resolves to webapps/myApp, and the http://localhost/ini url goes to c:\\koba\c\releases\ini, etc. When we first set this up Tomcat had problems starting up because it was reading in old web.xml files under the Tomcat/conf/Catalina... dir(s) but it couldn't find that path under Tomcat/webapps/myApp/. So we had to remove those old xml files (since the localhost root no longer went to Tomcat/webapps/). As a test, I just tried directing my Host's appBase to an external directory, and it worked for me. For that test I configured server.xml per the following: I am running Tomcat 5.0.25. - Wendy p.s. The Apache webserver allows you to manage aliases and the like better, if you're in a position to install that in front of Tomcat. -Original Message- From: Matt [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 22, 2005 11:40 AM To: Tomcat Users List Subject: Re: Tomcat 5.5 working, BUT not outside of webapps/ Well, I've tried all sorts of configurations, so I was hoping to get a clean example from someone who had it working. I changed the stock Tomcat 5.5 server.xml file to add the following (within the pre-existing, as well as the only, HOST tag for localhost, and I have tried with/without a slash for path, and with forward or backward slashes in docbase): ...and I have edited the stock Tomcat 5.5 uriworkermap.properties file to add the directory relative to the additional docbase (I've also tried without the .jsp specificity at the end of the line to handle everything): /MYjsp-examples/*.jsp (the jk_1.2.8.exe installer puts it all in its own folders in $CATALINA_HOME's parent, not within $CATALINA_HOME/bin, and also sets the registry properly - anything else this nice installer does for me? It doesn't appear to set environment variables $CATALINA_HOME or JAVA_HOME - do I need to do this manually? The webapps examples work fine without these variables set though, so is this a deprecated step?) So, if I have copied the webapps folder (and everything in it) to the C:\Inetpub\wwwroot folder and renamed it MYwebapps, and renamed jsp-examples therein to be MYjsp-examples (and fixed the .html to point to the right path), I would have thought that I could run examples from the new directory as well. I don't see any path info. (non-relative) elsewhere that would cause problems and need to be changed? However, if uriworkermap.properties is edited properly, I get a Tomcat 404 error starting with the docbase, when clicking any example (.jsp link; the .html ones still work fine, since they're not handed-off to Tomcat) from the main page: http://localhost/MYwebapps/MYjsp-examples/index.html ...the same files still work fine if I go back to the original location: http://localhost/jsp-examples I've even tried making new HOST tags as well, but Tomcat won't start if you try to define two HOST tags for the same "system" whether I use a machine name, IP or whatever. Perhaps I misread the docs somewhere, or there's more to it than the above two steps, I'd love to know! Thanks, -Matt On Tue, 22 Feb 2005, Michael Greer wrote: > Why don't you show us your config file. This behavior work fine for me > with 5.5.7, with Apache & mod_jk. > > On Feb 22, 2005, at 1:20 AM, Matt wrote: > > > Is this simply not possible? I have tried extrapolating form the docs > > (which seems to work fine under webapps/ or $CATALINA_HOME) but > > anything > > outside of it fails as badly as the other works perfectly, even if I > > try > > to swap-out webapps/ for an otuside docbase using the tag > > already > > present. > > > > There's got to be a file or simple edit that I'm missing for this? > > Anyone? > > > > Thanks, > > -Matt > > > > > > On Sun, 20 Feb 2005, Matt wrote: > > > >> OK, the docs out there are good, but they either concern old versions > >> of > >> IIS and/or Tomcat -OR- they concern the JK2 module (including this > >> list's > >> archives I have searched). > >> If JK2 is NO LONGER SUPPORTED, why in the heck would I care to use it? > >> So, I am using the very nice jk_1.2.8.exe installer. With that, most > >> of > >> the "steps" found in the various, partially-helpful docs are already > >> done! > >> ;^) > >> > >> That said: > >> I am using Win2K + IIS5, and also Win2K3 + IIS6, and in either case, > >> also > >> Tomcat 5.5: > >> I can go to http://localhost and get my IIS index page. > >> I can go to http://localhost:8080 and get my Tomcat index page. > >> I can go to http://localhost/jsp-examples/index.html and run all the > >> wonderful examples. > >> HOWEVER, if I simply want to -ALSO- hand-off jsp pages
Re: Tomcat 5.0.28 and ssl
I am not sure, this may have nothing to do with it but On the documentation I read it said you should use your domain name for the first and last name of the process when you created the csr to send to verisign. What name did you use when you ran the keytool to create the csr to send to verisign ? Did you use your domain name first name =mydomain.com o=xxx ou=xxx state=xxx city= xxx country=us I hope this helps. Christopher W. Hosler Network Administrator Ingham County MIS Department Email [EMAIL PROTECTED] As water reflects the face So a mans heart reflects the man >>> [EMAIL PROTECTED] 2/22/2005 3:44:23 PM >>> I have set a Tomcat 5.0.28 server with jsdk 1.4.2_04. I had setup the keystore and imported the received certificate from verisign. I have configured the Tomcat server to use SSL and it shows the certificate is valid but it says the name on certificate does not match the site. I look at the name on the certificate and it is the dsn name of the server. Is there something I am missing? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Load balancing SSL sessions
We use F5 BigIPs, but they are probably overkill for your application - The cisco probably will be as well. A 'Cheap' software solution might be to work with redirects, and 2 separate IP addresses. ie: ssl1.mysite.com and ssl2.mysite.com - You will need 2 ssl keys though for this to work. Does all of your app require ssl? or just a certain part, ie: payment. Do you need the stickiness for the whole app? or just for the ssl (seeing you are using tomcat, you will probably need it for the whole app)... Andrew On Feb 22, 2005, at 10:24 PM, Kelly Vista wrote: Hi - We are looking to deploy our app, running on Tomcat 5, soon and are exploring load balancing options. We are looking at H/W and S/W solutions, and I was wondering if anyone had any past experience/advice they would like to share. Our deployment is as pretty run-of-the-mill as it gets: 2 machines, each running Tomcat. We would like to avoid replicating state (since we have a lot of state in these apps, for reasons beyond our current control). Even in-memory session replication would not be option here, so we're punting on the Tomcat cluster solution. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Load balancing SSL sessions
Hi - We are looking to deploy our app, running on Tomcat 5, soon and are exploring load balancing options. We are looking at H/W and S/W solutions, and I was wondering if anyone had any past experience/advice they would like to share. Our deployment is as pretty run-of-the-mill as it gets: 2 machines, each running Tomcat. We would like to avoid replicating state (since we have a lot of state in these apps, for reasons beyond our current control). Even in-memory session replication would not be option here, so we're punting on the Tomcat cluster solution. Our only other requirement is that the LB solution support sticky SSL sessions. I know that H/W LB (like Coyote Point Equalizer and Cisco LocalDirector) can do the LB + SSL acceleration, which I believe would do the job. However, I would be interested to know if there is a S/W LB solution that people would recommend as an alternative. It would need to support sticky SSL sessions -- the only solution I know that can do that is Windows Network Load Balancing. I'm assuming that Tomcat's basic balancer app *does not* support sticky SSL sessions, though I cannot confirm that based on available documentation. What do people do who want to balance SSL sessions across Tomcat servers? Thanks very much for your feedback, _ Dont just search. Find. Check out the new MSN Search! http://search.msn.click-url.com/go/onm00200636ave/direct/01/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [RESOLVED] log4j.properties not found in tomcat
You've got to have something wacky set up on your systems. File IO is not used when Log4j picks the config file up from the classpath. This leads me to believe that log4j.configuration is set somewhere else upon each invocation of Tomcat. You probably just set it earlier in the launching of Tomcat overriding the one pointing to a log4j.properties file that doesn't exist. I and others have use the auto-configuration paradigm with log4j.jar in WEB-INF/lib and the config file in WEB-INF/classes for ages and haven't ever seen the issue you are seeing. That tells me that the problem is in your setup, not in Log4j. I suggest you set up a clean-room environment and try this out. I bet it works. Then try to figure out what's wrong in your other environments. Jake Quoting Brian McGovern <[EMAIL PROTECTED]>: > Then theres something else going on. I didnt set log4j.configuration when i > started, i just had my log4j.jar in my WEB-INF/lib/ and my log4j.properties > in my /WEB-INF/classes/ However i still got that file not found exception. > > I think its gotta either the way im calling it or the properties file itself. > I say this because ive now tried on 2 machines 2 OS's and same thing > happened. It MAKES me define a system wide log4j.configuration. This cannot > be right. Makes the whole use of log4j pointless and non portable. > > At any rate, ive got that wacky system-wide var defined and it supresses > errors, just doesnt work the way i want. > > > Calling like this: > private static final Logger zLogger = > Logger.getLogger(RepsMainController.class); > zLogger.debug("something logged here"); > > log4j.properties like this: > log4j.rootLogger=DEBUG, nycbbuilderlog > log4j.appender.nycbbuilderlog=org.apache.log4j.RollingFileAppender > log4j.appender.nycbbuilderlog.File=${catalina.home}/logs/catalina.out > log4j.appender.nycbbuilderlog.MaxFileSize=1KB > log4j.appender.nycbbuilderlog.MaxBackupIndex=2 > log4j.appender.nycbbuilderlog.layout=org.apache.log4j.PatternLayout > log4j.appender.nycbbuilderlog.layout.ConversionPattern=%5p > [EMAIL PROTECTED]:mm:ss,SSS}] - %m%n > > > -Original Message- > From: Jacob Kjome [mailto:[EMAIL PROTECTED] > Sent: Tuesday, February 22, 2005 3:01 PM > To: Tomcat Users List > Subject: RE:[RESOLVED] log4j.properties not found in tomcat > > > Quoting Brian McGovern <[EMAIL PROTECTED]>: > > > Thanks for the repliess. My issue was that I needed to set a system wide > > environment variable called log4j.configuration and set its value to > > "log4j.properties", the name of my config file for log4j. This was in the > > log4j documentation but I guess i skimmed over that part. Log4j is a > > application completely separate from web container, hence the need for a > > system wide var. Definately liking log4j more and more. > > > > My file was located in my /webapps/myappuri/WEB-INF/classes/ So the answer > > turns out that log4j looks for a system env var log4j.configuration and > looks > > in your webapps class path for it. > > > > No, I'm pretty sure this is not the case. log4j.configuration does not need > to > be specified. If it is, I believe it is assumed to be a file location. If > relatively defined, it is resolved relative to the location that the JVM > started. If not defined, Log4j looks in the classloader. Actually, I > haven't > checked, but it may fall back to the classloader if it can't find the log4j > config file in the location specified by the system property. You'll have to > verify that. > > > Additionally I set up tomcat to use my log4j file as well by makin a file > > called commons-logging.properties in /webapps/myappuri/WEB-INF/classes/ > whos > > only line was: > > > > org.apache.commons.logging.Log=org.apache.commons.logging.impl.Log4JLogger > > > > Note that commons-logging.jar needs to be in your > > /webapps/myappuri/WEB-INF/lib/ dir for this to work. > > > If you want Log4j to be a system-wide service, you should really add > log4j.jar > and commons-logging.jar to CATALINA_HOME/common/lib and add log4j.properties > to > CATALINA_HOME/common/classes. There is no need for the > commons-logging.properties file in that case. And it is kludgy to provide > server-level properties inside a webapp. BTW, do you have log4j.jar in your > WEB-INF/lib? If so, you are simply logging for your webapp alone, not > system-wide. > > Jake > > > > > Thanks > > -B > > > > > > > > -Original Message- > > From: Jacob Kjome [mailto:[EMAIL PROTECTED] > > Sent: Tuesday, February 22, 2005 12:30 AM > > To: Tomcat Users List > > Subject: Re: log4j.properties not found in tomcat > > > > > > > > You have to understand that any relative path is going to be resolved > > relative to the location where the JVM started. If you started Tomcat via > > the service rather than the batch files, then the VM would be run, by > > default, from C:\winnt\System32. So, when you supplied > > "-Dlog4j.configuration=log4j.properties", you got exactly what s
Tomcat 5.0.28 and ssl
I have set a Tomcat 5.0.28 server with jsdk 1.4.2_04. I had setup the keystore and imported the received certificate from verisign. I have configured the Tomcat server to use SSL and it shows the certificate is valid but it says the name on certificate does not match the site. I look at the name on the certificate and it is the dsn name of the server. Is there something I am missing?
RE: [RESOLVED] log4j.properties not found in tomcat
Then theres something else going on. I didnt set log4j.configuration when i started, i just had my log4j.jar in my WEB-INF/lib/ and my log4j.properties in my /WEB-INF/classes/ However i still got that file not found exception. I think its gotta either the way im calling it or the properties file itself. I say this because ive now tried on 2 machines 2 OS's and same thing happened. It MAKES me define a system wide log4j.configuration. This cannot be right. Makes the whole use of log4j pointless and non portable. At any rate, ive got that wacky system-wide var defined and it supresses errors, just doesnt work the way i want. Calling like this: private static final Logger zLogger = Logger.getLogger(RepsMainController.class); zLogger.debug("something logged here"); log4j.properties like this: log4j.rootLogger=DEBUG, nycbbuilderlog log4j.appender.nycbbuilderlog=org.apache.log4j.RollingFileAppender log4j.appender.nycbbuilderlog.File=${catalina.home}/logs/catalina.out log4j.appender.nycbbuilderlog.MaxFileSize=1KB log4j.appender.nycbbuilderlog.MaxBackupIndex=2 log4j.appender.nycbbuilderlog.layout=org.apache.log4j.PatternLayout log4j.appender.nycbbuilderlog.layout.ConversionPattern=%5p [EMAIL PROTECTED]:mm:ss,SSS}] - %m%n -Original Message- From: Jacob Kjome [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 22, 2005 3:01 PM To: Tomcat Users List Subject: RE:[RESOLVED] log4j.properties not found in tomcat Quoting Brian McGovern <[EMAIL PROTECTED]>: > Thanks for the repliess. My issue was that I needed to set a system wide > environment variable called log4j.configuration and set its value to > "log4j.properties", the name of my config file for log4j. This was in the > log4j documentation but I guess i skimmed over that part. Log4j is a > application completely separate from web container, hence the need for a > system wide var. Definately liking log4j more and more. > > My file was located in my /webapps/myappuri/WEB-INF/classes/ So the answer > turns out that log4j looks for a system env var log4j.configuration and looks > in your webapps class path for it. > No, I'm pretty sure this is not the case. log4j.configuration does not need to be specified. If it is, I believe it is assumed to be a file location. If relatively defined, it is resolved relative to the location that the JVM started. If not defined, Log4j looks in the classloader. Actually, I haven't checked, but it may fall back to the classloader if it can't find the log4j config file in the location specified by the system property. You'll have to verify that. > Additionally I set up tomcat to use my log4j file as well by makin a file > called commons-logging.properties in /webapps/myappuri/WEB-INF/classes/ whos > only line was: > > org.apache.commons.logging.Log=org.apache.commons.logging.impl.Log4JLogger > > Note that commons-logging.jar needs to be in your > /webapps/myappuri/WEB-INF/lib/ dir for this to work. If you want Log4j to be a system-wide service, you should really add log4j.jar and commons-logging.jar to CATALINA_HOME/common/lib and add log4j.properties to CATALINA_HOME/common/classes. There is no need for the commons-logging.properties file in that case. And it is kludgy to provide server-level properties inside a webapp. BTW, do you have log4j.jar in your WEB-INF/lib? If so, you are simply logging for your webapp alone, not system-wide. Jake > > Thanks > -B > > > > -Original Message- > From: Jacob Kjome [mailto:[EMAIL PROTECTED] > Sent: Tuesday, February 22, 2005 12:30 AM > To: Tomcat Users List > Subject: Re: log4j.properties not found in tomcat > > > > You have to understand that any relative path is going to be resolved > relative to the location where the JVM started. If you started Tomcat via > the service rather than the batch files, then the VM would be run, by > default, from C:\winnt\System32. So, when you supplied > "-Dlog4j.configuration=log4j.properties", you got exactly what should be > expected if log4j.properties were located in c:\winnt\System32. Same goes > for relatively defined paths to log files defined for FileAppenders in > log4j.properties. > > BTW, can you post your error? FileNotFoundExceptions aren't thrown when > Log4j can't find its config file. You'd get a simple error saying as > much. The FileNotFoundExceptions are usually thrown when you specify a > file for a FileAppender in a directory that doesn't exist. Log4j makes no > attempt to create directories if they don't exist already. This is the > correct and safe thing to do. It is your responsibility to make sure the > directory exists before Log4j attempts to use it. > > > Jake > > At 11:09 PM 2/21/2005 -0500, you wrote: > >Where do you put log4j.properties currently? > >-Michael Greer > > > >On Feb 21, 2005, at 5:02 PM, Brian McGovern wrote: > > > >> I have a wierd problem. Tomcat on W2k barks FileNotFound Exceptions > >> for the log4j.properties file when i execute a se
RE: challenging JK connector problem: java.net.SocketException
Hi : This is most likely an issue with the version of JDK that is deployed on your machine. Try using a newer version of the JDK which is comaptible with the version of tomcat that is deployed on your machine. Patrick King Patrick King BSc.(Hon.) Geophysics Senior Systems Scientist Canada Centre For Remote Sensing 615 Booth St. Room 650 Ottawa, Ontario K1A0E9 Phone: 613-947-0463 E-mail : [EMAIL PROTECTED] -Original Message- From: Woodchuck [mailto:[EMAIL PROTECTED] Sent: February 22, 2005 2:15 PM To: tomcat; struts Subject: challenging JK connector problem: java.net.SocketException hihi all, i have installed the JK connector (setupJK204.exe) with my IIS 5.1 and Tomcat 4.1.24. everything is working fine, except that i'm noticing in the Tomcat console display i see the following exceptions at run-time: java.net.SocketException: Software caused connection abort: recv failed at java.net.SocketInputStream.socketRead0(Native Method) at java.net.SocketInputStream.read(SocketInputStream.java:129) at java.io.BufferedInputStream.fill(BufferedInputStream.java:183) at java.io.BufferedInputStream.read1(BufferedInputStream.java:222) at java.io.BufferedInputStream.read(BufferedInputStream.java:277) at org.apache.jk.common.ChannelSocket.read(ChannelSocket.java:498) at org.apache.jk.common.ChannelSocket.receive(ChannelSocket.java:436) . and java.net.SocketException: Connection reset by peer: socket write error at java.net.SocketOutputStream.socketWrite0(Native Method) at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:92) at java.net.SocketOutputStream.write(SocketOutputStream.java:136) at org.apache.jk.common.ChannelSocket.send(ChannelSocket.java:407) at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:599) at org.apache.jk.server.JkCoyoteHandler.action(JkCoyoteHandler.java:372) at org.apache.coyote.Response.action(Response.java:222) at org.apache.coyote.Response.finish(Response.java:343) in particular these exceptions are coming up when i use my app's search functionality the weird part is that the exceptions only occur when i access my web site through IIS (ie. via JK connector). i *don't* get any exceptions at all when accessing Tomcat directly by specifying port 8080 in my URL. these exceptions are causing weird/incorrect app behaviour in the search functionality as well, so it's not just harmless exception logs being generated. if i use my application by connecting to Tomcat directly (port 8080), the search functionality works perfectly and there's no errors at all. i have looked at my code and cannot see what i could be doing that may cause such errors to happen in the JK connector. has anyone any suggestions on how to go about debugging this? or has come across this before and found a solution? in my search page, i am using and struts tags to detect if my collection (of search results) object is null or not, and if not, is it an empty collection or not respectively. is this a known bug/issue perhaps with some struts tags being used through JK connector? why is "connection reset by peer" happening? doesn't this mean the request/form being submitted is suddenly cut off? any help is appreciated. please and thanks, woodchuck __ Do you Yahoo!? All your favorites on one personal page - Try My Yahoo! http://my.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE:[RESOLVED] log4j.properties not found in tomcat
Quoting Brian McGovern <[EMAIL PROTECTED]>: > Thanks for the repliess. My issue was that I needed to set a system wide > environment variable called log4j.configuration and set its value to > "log4j.properties", the name of my config file for log4j. This was in the > log4j documentation but I guess i skimmed over that part. Log4j is a > application completely separate from web container, hence the need for a > system wide var. Definately liking log4j more and more. > > My file was located in my /webapps/myappuri/WEB-INF/classes/ So the answer > turns out that log4j looks for a system env var log4j.configuration and looks > in your webapps class path for it. > No, I'm pretty sure this is not the case. log4j.configuration does not need to be specified. If it is, I believe it is assumed to be a file location. If relatively defined, it is resolved relative to the location that the JVM started. If not defined, Log4j looks in the classloader. Actually, I haven't checked, but it may fall back to the classloader if it can't find the log4j config file in the location specified by the system property. You'll have to verify that. > Additionally I set up tomcat to use my log4j file as well by makin a file > called commons-logging.properties in /webapps/myappuri/WEB-INF/classes/ whos > only line was: > > org.apache.commons.logging.Log=org.apache.commons.logging.impl.Log4JLogger > > Note that commons-logging.jar needs to be in your > /webapps/myappuri/WEB-INF/lib/ dir for this to work. If you want Log4j to be a system-wide service, you should really add log4j.jar and commons-logging.jar to CATALINA_HOME/common/lib and add log4j.properties to CATALINA_HOME/common/classes. There is no need for the commons-logging.properties file in that case. And it is kludgy to provide server-level properties inside a webapp. BTW, do you have log4j.jar in your WEB-INF/lib? If so, you are simply logging for your webapp alone, not system-wide. Jake > > Thanks > -B > > > > -Original Message- > From: Jacob Kjome [mailto:[EMAIL PROTECTED] > Sent: Tuesday, February 22, 2005 12:30 AM > To: Tomcat Users List > Subject: Re: log4j.properties not found in tomcat > > > > You have to understand that any relative path is going to be resolved > relative to the location where the JVM started. If you started Tomcat via > the service rather than the batch files, then the VM would be run, by > default, from C:\winnt\System32. So, when you supplied > "-Dlog4j.configuration=log4j.properties", you got exactly what should be > expected if log4j.properties were located in c:\winnt\System32. Same goes > for relatively defined paths to log files defined for FileAppenders in > log4j.properties. > > BTW, can you post your error? FileNotFoundExceptions aren't thrown when > Log4j can't find its config file. You'd get a simple error saying as > much. The FileNotFoundExceptions are usually thrown when you specify a > file for a FileAppender in a directory that doesn't exist. Log4j makes no > attempt to create directories if they don't exist already. This is the > correct and safe thing to do. It is your responsibility to make sure the > directory exists before Log4j attempts to use it. > > > Jake > > At 11:09 PM 2/21/2005 -0500, you wrote: > >Where do you put log4j.properties currently? > >-Michael Greer > > > >On Feb 21, 2005, at 5:02 PM, Brian McGovern wrote: > > > >> I have a wierd problem. Tomcat on W2k barks FileNotFound Exceptions > >> for the log4j.properties file when i execute a servlet that > >> instantiates log4j. Strangely enough the actual file that i create > >> and log to with log4j.properties file logs out just fine even though > >> stdout.log said that it couldn't find my log4j.properties file. > >> > >> Only time i don't get an error is when i put log4j.properites in my > >> winnt/system32 directory. But this doesnt make sense to me. I supply > >> -Dlog4j.configuration=log4j.properties to Java at startup and still > >> get the same error. I also tried the FULL path to my log4j.properties > >> in the -D option. > >> > >> Instantiated like this across my app. > >> > >> private static final Logger zLogger = > >> Logger.getLogger(MyClassName.class); > >> > >> Can anyone tell me where I went wrong. > >> > >> thanks > > > > > >- > >To unsubscribe, e-mail: [EMAIL PROTECTED] > >For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands,
challenging JK connector problem: java.net.SocketException
hihi all, i have installed the JK connector (setupJK204.exe) with my IIS 5.1 and Tomcat 4.1.24. everything is working fine, except that i'm noticing in the Tomcat console display i see the following exceptions at run-time: java.net.SocketException: Software caused connection abort: recv failed at java.net.SocketInputStream.socketRead0(Native Method) at java.net.SocketInputStream.read(SocketInputStream.java:129) at java.io.BufferedInputStream.fill(BufferedInputStream.java:183) at java.io.BufferedInputStream.read1(BufferedInputStream.java:222) at java.io.BufferedInputStream.read(BufferedInputStream.java:277) at org.apache.jk.common.ChannelSocket.read(ChannelSocket.java:498) at org.apache.jk.common.ChannelSocket.receive(ChannelSocket.java:436) . and java.net.SocketException: Connection reset by peer: socket write error at java.net.SocketOutputStream.socketWrite0(Native Method) at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:92) at java.net.SocketOutputStream.write(SocketOutputStream.java:136) at org.apache.jk.common.ChannelSocket.send(ChannelSocket.java:407) at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:599) at org.apache.jk.server.JkCoyoteHandler.action(JkCoyoteHandler.java:372) at org.apache.coyote.Response.action(Response.java:222) at org.apache.coyote.Response.finish(Response.java:343) in particular these exceptions are coming up when i use my app's search functionality the weird part is that the exceptions only occur when i access my web site through IIS (ie. via JK connector). i *don't* get any exceptions at all when accessing Tomcat directly by specifying port 8080 in my URL. these exceptions are causing weird/incorrect app behaviour in the search functionality as well, so it's not just harmless exception logs being generated. if i use my application by connecting to Tomcat directly (port 8080), the search functionality works perfectly and there's no errors at all. i have looked at my code and cannot see what i could be doing that may cause such errors to happen in the JK connector. has anyone any suggestions on how to go about debugging this? or has come across this before and found a solution? in my search page, i am using and struts tags to detect if my collection (of search results) object is null or not, and if not, is it an empty collection or not respectively. is this a known bug/issue perhaps with some struts tags being used through JK connector? why is "connection reset by peer" happening? doesn't this mean the request/form being submitted is suddenly cut off? any help is appreciated. please and thanks, woodchuck __ Do you Yahoo!? All your favorites on one personal page Try My Yahoo! http://my.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Can servlet mappings be done somewhere other than web.xml?
Looks like the invoker servlet is being used, which is declared in the global web.xml file. The and that you see are used to map a name to a servlet, which are all accessed through /servlet/* Drew. On Tue, 2005-02-22 at 10:43, Beckle, Steven R wrote: > I'm currently working on a legacy Tomcat 3.3 project that was developed > (not by me) a couple of years ago, and I am having a heck of a time > understanding how servlets are getting mapped properly. A typical URL in > the application is of the form CONTEXT/servlet/servletName - nothing > fancy there. However, the webapp's web.xml file contains no > tags, but just the and > tags. Is there another way in Tomcat to map URL's to servlets, either > through a server configuration setting or some other "global" > information contained in a conf/xml file that I'm not aware of? My > problem isn't that the servlets aren't being accessed - they display > content fine. I'm for now just trying to understand how Tomcat is > associating the URL string with the actual servlet class since there is > no servlet mapping being done in the web.xml file. > > > > The servlets themselves reside in jar files under CONTEXT/WEB-INF/lib. > > > > Thank you. > > > > Steve Beckle > Computer Associates > tel: +1 (630) 505 6855 > > fax: +1 (630) 505 6983 > > [EMAIL PROTECTED] > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Help on config JNDI datasource for DB2
Hello All, Can some show how to set db2 jndi datasource in tomcat 5.5.7. DB2 and tomcat all in windows XP. tomcat can talk to db2 with direct jdbc connection. Why it is so hard for db2? Thank you very much! --tom - Do you Yahoo!? Yahoo! Search presents - Jib Jab's 'Second Term'
Re: Can servlet mappings be done somewhere other than web.xml?
Laba diena. Dėkojame, kad mums parašėte. Jūsų atsiųsta žinutė išsaugota mūsų duomenų bazėje. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Can servlet mappings be done somewhere other than web.xml?
I'm currently working on a legacy Tomcat 3.3 project that was developed (not by me) a couple of years ago, and I am having a heck of a time understanding how servlets are getting mapped properly. A typical URL in the application is of the form CONTEXT/servlet/servletName - nothing fancy there. However, the webapp's web.xml file contains no tags, but just the and tags. Is there another way in Tomcat to map URL's to servlets, either through a server configuration setting or some other "global" information contained in a conf/xml file that I'm not aware of? My problem isn't that the servlets aren't being accessed - they display content fine. I'm for now just trying to understand how Tomcat is associating the URL string with the actual servlet class since there is no servlet mapping being done in the web.xml file. The servlets themselves reside in jar files under CONTEXT/WEB-INF/lib. Thank you. Steve Beckle Computer Associates tel: +1 (630) 505 6855 fax: +1 (630) 505 6983 [EMAIL PROTECTED]
RE: Tomcat 5.5.7 - error trying to replicate session on Linux
BTW, Each of my two servers has two network cards: a) One facing the internet; b) the second is a private connection between the two servers. The second connection is intended for session replication. Also, I did not specify an mcastBindAddr - though it probably should be specified as the second network card. Thanks - Richard Mixon -Original Message- From: Richard Mixon (qwest) [mailto:[EMAIL PROTECTED] Sent: Monday, February 21, 2005 10:14 PM To: tomcat-user@jakarta.apache.org Subject: Tomcat 5.5.7 - error trying to replicate session on Linux OK, we still have one more issue with our Tomcat cluster as we move to our Linux environment. For some reason, both instances (jvmRoute=srv1 and jvmRoute=srv2) see each other at startup. We see that they each join the cluster just fine. But when the first request comes through we get an exception timeout trying to replicate. Of course it works fine in our Windows development environment, but now we are moving to our testing and production environments - SuSE Linux SLES9. Any ideas and suggestions are much appreciated. The catalina.log messages for both Tomcat instances are below. Thanks - Richard CLUSTER MEMBER 2 (jvmRoute=srv1): INFO: Server startup in 7332 ms Feb 21, 2005 9:02:58 PM org.apache.catalina.cluster.tcp.SimpleTcpCluster memberAdded INFO: Replication member added:org.apache.catalina.cluster.mcast.McastMember[tcp://140.99.50.58:4 001,140.99.50.58,4001, alive=2] 21:03:36,258 INFO [TP-Processor3] UserCounterListener:137 - Before increment, User Count: 0 21:03:36,262 INFO [TP-Processor3] UserCounterListener:140 - After increment, User Count: 1 21:03:36,263 INFO [TP-Processor3] UserCounterListener:73 - sessionCreated - Session info: id: '6615ABC7BD43B096AB54C031B7BE02C5.srv1'; createdAt '21:03:36'; lastAccessedAt '21:03:36'; currentTime '21:03:36; session count: '1 21:03:36,264 INFO [TP-Processor3] UserCounterListener:76 - sessionCreated - Session info: id: '6615ABC7BD43B096AB54C031B7BE02C5.srv1'; createdAt '21:03:36'; lastAccessedAt '21:03:36'; currentTime '21:03:36; session count: '1 21:05:14,482 INFO [TP-Processor2] UserCounterListener:137 - Before increment, User Count: 1 21:05:14,483 INFO [TP-Processor2] UserCounterListener:140 - After increment, User Count: 2 21:05:14,484 INFO [TP-Processor2] UserCounterListener:73 - sessionCreated - Session info: id: '61B3F35D9B0AAAE46F75AAA19FFC7D1B.srv1'; createdAt '21:05:14'; lastAccessedAt '21:05:14'; currentTime '21:05:14; session count: '2 21:05:14,485 INFO [TP-Processor2] UserCounterListener:76 - sessionCreated - Session info: id: '61B3F35D9B0AAAE46F75AAA19FFC7D1B.srv1'; createdAt '21:05:14'; lastAccessedAt '21:05:14'; currentTime '21:05:14; session count: '2 Feb 21, 2005 9:06:45 PM org.apache.catalina.cluster.tcp.ReplicationTransmitter sendMessageData WARNING: Unable to send replicated message, is server down? java.net.ConnectException: Connection timed out at java.net.PlainSocketImpl.socketConnect(Native Method) at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333) at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195) at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182) at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:364) at java.net.Socket.connect(Socket.java:507) at java.net.Socket.connect(Socket.java:457) at java.net.Socket.(Socket.java:365) at java.net.Socket.(Socket.java:207) at org.apache.catalina.cluster.tcp.SocketSender.connect(SocketSender.java:1 10) at org.apache.catalina.cluster.tcp.SocketSender.sendMessage(SocketSender.ja va:157) at org.apache.catalina.cluster.tcp.PooledSocketSender.sendMessage(PooledSoc ketSender.java:147) at org.apache.catalina.cluster.tcp.ReplicationTransmitter.sendMessageData(R eplicationTransmitter.java:247) at org.apache.catalina.cluster.tcp.ReplicationTransmitter.sendMessage(Repli cationTransmitter.java:281) at org.apache.catalina.cluster.tcp.SimpleTcpCluster.send(SimpleTcpCluster.j ava:454) at org.apache.catalina.cluster.tcp.SimpleTcpCluster.send(SimpleTcpCluster.j ava:467) at org.apache.catalina.cluster.session.DeltaManager.createSession(DeltaMana ger.java:290) at org.apache.catalina.cluster.session.DeltaManager.createSession(DeltaMana ger.java:239) at org.apache.catalina.connector.Request.doGetSession(Request.java:2199) at org.apache.catalina.connector.Request.getSessionInternal(Request.java:21 50) at org.apache.catalina.authenticator.FormAuthenticator.authenticate(FormAut henticator.java:230) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(Authenticator Base.java:446) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java :126) at org.apache.catalina.cluster.tcp.ReplicationValve.invoke(ReplicationValve .java:130) at org.apache.catalina.valves.ErrorReportValve.invo
RE: [SOLVED] Tomcat memory allocation as a Windows service
thanks for your help! i tried looking for the service.bat in the tomcat/bin folder but it is not there. it is an older version 4.1.24 and it was already installed as a service, i don't know how it was done (without the service.bat file) but it's there. i scanned the registry and found the location of where the service gets its Tomcat parameter values from: HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\Apache Tomcat\Parameters hope this helps anyone else that runs into the same problem! woodchuck --- Allistair Crossley <[EMAIL PROTECTED]> wrote: > Hi > > The way we do it is using the service.bat file to install the service > manually. You can tweak the values in that file. > > If all your apps are in 1 tomcat, then that uses 1 JVM and I think > you can only declare these parameters once. > > Cheers, Allistair. > > > -Original Message- > > From: Woodchuck [mailto:[EMAIL PROTECTED] > > Sent: 22 February 2005 17:30 > > To: tomcat > > Subject: Tomcat memory allocation as a Windows service > > > > > > hihi all, > > > > when Tomcat is installed as a service how do we control how > > much system > > memory we allocate to it? > > > > i have heard it reads the memory parameters and others from the > > registry but can anyone tell me exactly how/where to do this? i > can't > > seem to find this information.. > > > > also, is there a way to allocate memory on a per application > basis?... > > that is, if my Tomcat was hosting 3 apps, is it possible to > explicitly > > allocate a max amount of memory per app? > > > > please and thanks, > > woodchuck > > > > > > > > __ > > Do you Yahoo!? > > Yahoo! Mail - Easier than ever with enhanced search. Learn more. > > http://info.mail.yahoo.com/mail_250 > > > > > - > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: > [EMAIL PROTECTED] > > > > > > > > --- > QAS Ltd. > Developers of QuickAddress Software > http://www.qas.com";>www.qas.com > Registered in England: No 2582055 > Registered in Australia: No 082 851 474 > --- > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > __ Do you Yahoo!? Yahoo! Mail - Find what you need with new enhanced search. http://info.mail.yahoo.com/mail_250 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat memory allocation as a Windows service
Hi The way we do it is using the service.bat file to install the service manually. You can tweak the values in that file. If all your apps are in 1 tomcat, then that uses 1 JVM and I think you can only declare these parameters once. Cheers, Allistair. > -Original Message- > From: Woodchuck [mailto:[EMAIL PROTECTED] > Sent: 22 February 2005 17:30 > To: tomcat > Subject: Tomcat memory allocation as a Windows service > > > hihi all, > > when Tomcat is installed as a service how do we control how > much system > memory we allocate to it? > > i have heard it reads the memory parameters and others from the > registry but can anyone tell me exactly how/where to do this? i can't > seem to find this information.. > > also, is there a way to allocate memory on a per application basis?... > that is, if my Tomcat was hosting 3 apps, is it possible to explicitly > allocate a max amount of memory per app? > > please and thanks, > woodchuck > > > > __ > Do you Yahoo!? > Yahoo! Mail - Easier than ever with enhanced search. Learn more. > http://info.mail.yahoo.com/mail_250 > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --- QAS Ltd. Developers of QuickAddress Software http://www.qas.com";>www.qas.com Registered in England: No 2582055 Registered in Australia: No 082 851 474 --- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat memory allocation as a Windows service
hihi all, when Tomcat is installed as a service how do we control how much system memory we allocate to it? i have heard it reads the memory parameters and others from the registry but can anyone tell me exactly how/where to do this? i can't seem to find this information.. also, is there a way to allocate memory on a per application basis?... that is, if my Tomcat was hosting 3 apps, is it possible to explicitly allocate a max amount of memory per app? please and thanks, woodchuck __ Do you Yahoo!? Yahoo! Mail - Easier than ever with enhanced search. Learn more. http://info.mail.yahoo.com/mail_250 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat 5.5 working, BUT not outside of webapps/
Maybe take a look at the current $CATALINA_HOME/Catalina/localhost/ context files. Delete the old ones for your webapp and examples, so it will reload from server.xml On Feb 22, 2005, at 11:39 AM, Matt wrote: Well, I've tried all sorts of configurations, so I was hoping to get a clean example from someone who had it working. I changed the stock Tomcat 5.5 server.xml file to add the following (within the pre-existing, as well as the only, HOST tag for localhost, and I have tried with/without a slash for path, and with forward or backward slashes in docbase): reloadable="true" /> ...and I have edited the stock Tomcat 5.5 uriworkermap.properties file to add the directory relative to the additional docbase (I've also tried without the .jsp specificity at the end of the line to handle everything): /MYjsp-examples/*.jsp (the jk_1.2.8.exe installer puts it all in its own folders in $CATALINA_HOME's parent, not within $CATALINA_HOME/bin, and also sets the registry properly - anything else this nice installer does for me? It doesn't appear to set environment variables $CATALINA_HOME or JAVA_HOME - do I need to do this manually? The webapps examples work fine without these variables set though, so is this a deprecated step?) So, if I have copied the webapps folder (and everything in it) to the C:\Inetpub\wwwroot folder and renamed it MYwebapps, and renamed jsp-examples therein to be MYjsp-examples (and fixed the .html to point to the right path), I would have thought that I could run examples from the new directory as well. I don't see any path info. (non-relative) elsewhere that would cause problems and need to be changed? However, if uriworkermap.properties is edited properly, I get a Tomcat 404 error starting with the docbase, when clicking any example (.jsp link; the .html ones still work fine, since they're not handed-off to Tomcat) from the main page: http://localhost/MYwebapps/MYjsp-examples/index.html ...the same files still work fine if I go back to the original location: http://localhost/jsp-examples I've even tried making new HOST tags as well, but Tomcat won't start if you try to define two HOST tags for the same "system" whether I use a machine name, IP or whatever. Perhaps I misread the docs somewhere, or there's more to it than the above two steps, I'd love to know! Thanks, -Matt On Tue, 22 Feb 2005, Michael Greer wrote: Why don't you show us your config file. This behavior work fine for me with 5.5.7, with Apache & mod_jk. On Feb 22, 2005, at 1:20 AM, Matt wrote: Is this simply not possible? I have tried extrapolating form the docs (which seems to work fine under webapps/ or $CATALINA_HOME) but anything outside of it fails as badly as the other works perfectly, even if I try to swap-out webapps/ for an otuside docbase using the tag already present. There's got to be a file or simple edit that I'm missing for this? Anyone? Thanks, -Matt On Sun, 20 Feb 2005, Matt wrote: OK, the docs out there are good, but they either concern old versions of IIS and/or Tomcat -OR- they concern the JK2 module (including this list's archives I have searched). If JK2 is NO LONGER SUPPORTED, why in the heck would I care to use it? So, I am using the very nice jk_1.2.8.exe installer. With that, most of the "steps" found in the various, partially-helpful docs are already done! ;^) That said: I am using Win2K + IIS5, and also Win2K3 + IIS6, and in either case, also Tomcat 5.5: I can go to http://localhost and get my IIS index page. I can go to http://localhost:8080 and get my Tomcat index page. I can go to http://localhost/jsp-examples/index.html and run all the wonderful examples. HOWEVER, if I simply want to -ALSO- hand-off jsp pages to Tomcat that are in C:\Inetpub\wwwroot (and below) everything goes to hell. I have tried adding CONTEXT tags to server.xml until I turn blue in the face, and when I do so I get either 404 not found errors from Tomcat (can't find the subdirectory b/c I assume it is looking for it in webapps/, but then again it can't find it even if I copy the whole thing into webapps/) or "The specified module could not be found" message on the page (IIS result of a uriworkermap.properties issue). I have even tried editing the existing HOST tag to change "webapps" to "C:/Inetpub/wwwroot" and all sorts of folders below wwwroot. In those cases, if I manage to edit the uriworkermap.properties file correctly, all I get is a blank page for any .jsp, while IIS still handles the other stuff just fine. So, instead of these outdated docs everyone keeps pointing to, does anyone have any simple instructions to get Tomcat to properly use a folder OUTSIDE of webapps, and ALONG WITH webapps to work (especially assuming you've already got the basics working just fine as I do)? I'd like to start by getting a copy of jsp-examples working in wwwroot/ if possible (which is also how I was testing in the situation above, if that means anything), rather than also confusing
Re: Tomcat 5.5 working, BUT not outside of webapps/
Well, I've tried all sorts of configurations, so I was hoping to get a clean example from someone who had it working. I changed the stock Tomcat 5.5 server.xml file to add the following (within the pre-existing, as well as the only, HOST tag for localhost, and I have tried with/without a slash for path, and with forward or backward slashes in docbase): ...and I have edited the stock Tomcat 5.5 uriworkermap.properties file to add the directory relative to the additional docbase (I've also tried without the .jsp specificity at the end of the line to handle everything): /MYjsp-examples/*.jsp (the jk_1.2.8.exe installer puts it all in its own folders in $CATALINA_HOME's parent, not within $CATALINA_HOME/bin, and also sets the registry properly - anything else this nice installer does for me? It doesn't appear to set environment variables $CATALINA_HOME or JAVA_HOME - do I need to do this manually? The webapps examples work fine without these variables set though, so is this a deprecated step?) So, if I have copied the webapps folder (and everything in it) to the C:\Inetpub\wwwroot folder and renamed it MYwebapps, and renamed jsp-examples therein to be MYjsp-examples (and fixed the .html to point to the right path), I would have thought that I could run examples from the new directory as well. I don't see any path info. (non-relative) elsewhere that would cause problems and need to be changed? However, if uriworkermap.properties is edited properly, I get a Tomcat 404 error starting with the docbase, when clicking any example (.jsp link; the .html ones still work fine, since they're not handed-off to Tomcat) from the main page: http://localhost/MYwebapps/MYjsp-examples/index.html ...the same files still work fine if I go back to the original location: http://localhost/jsp-examples I've even tried making new HOST tags as well, but Tomcat won't start if you try to define two HOST tags for the same "system" whether I use a machine name, IP or whatever. Perhaps I misread the docs somewhere, or there's more to it than the above two steps, I'd love to know! Thanks, -Matt On Tue, 22 Feb 2005, Michael Greer wrote: > Why don't you show us your config file. This behavior work fine for me > with 5.5.7, with Apache & mod_jk. > > On Feb 22, 2005, at 1:20 AM, Matt wrote: > > > Is this simply not possible? I have tried extrapolating form the docs > > (which seems to work fine under webapps/ or $CATALINA_HOME) but > > anything > > outside of it fails as badly as the other works perfectly, even if I > > try > > to swap-out webapps/ for an otuside docbase using the tag > > already > > present. > > > > There's got to be a file or simple edit that I'm missing for this? > > Anyone? > > > > Thanks, > > -Matt > > > > > > On Sun, 20 Feb 2005, Matt wrote: > > > >> OK, the docs out there are good, but they either concern old versions > >> of > >> IIS and/or Tomcat -OR- they concern the JK2 module (including this > >> list's > >> archives I have searched). > >> If JK2 is NO LONGER SUPPORTED, why in the heck would I care to use it? > >> So, I am using the very nice jk_1.2.8.exe installer. With that, most > >> of > >> the "steps" found in the various, partially-helpful docs are already > >> done! > >> ;^) > >> > >> That said: > >> I am using Win2K + IIS5, and also Win2K3 + IIS6, and in either case, > >> also > >> Tomcat 5.5: > >> I can go to http://localhost and get my IIS index page. > >> I can go to http://localhost:8080 and get my Tomcat index page. > >> I can go to http://localhost/jsp-examples/index.html and run all the > >> wonderful examples. > >> HOWEVER, if I simply want to -ALSO- hand-off jsp pages to Tomcat that > >> are > >> in C:\Inetpub\wwwroot (and below) everything goes to hell. > >> > >> I have tried adding CONTEXT tags to server.xml until I turn blue in > >> the > >> face, and when I do so I get either 404 not found errors from Tomcat > >> (can't find the subdirectory b/c I assume it is looking for it in > >> webapps/, but then again it can't find it even if I copy the whole > >> thing > >> into webapps/) or "The specified module could not be found" message > >> on the > >> page (IIS result of a uriworkermap.properties issue). > >> I have even tried editing the existing HOST tag to change "webapps" > >> to "C:/Inetpub/wwwroot" and all sorts of folders below wwwroot. In > >> those > >> cases, if I manage to edit the uriworkermap.properties file > >> correctly, all > >> I get is a blank page for any .jsp, while IIS still handles the other > >> stuff just fine. > >> > >> So, instead of these outdated docs everyone keeps pointing to, does > >> anyone > >> have any simple instructions to get Tomcat to properly use a folder > >> OUTSIDE of webapps, and ALONG WITH webapps to work (especially > >> assuming > >> you've already got the basics working just fine as I do)? > >> I'd like to start by getting a copy of jsp-examples working in > >> wwwroot/ if > >> possible (which is also how I was testing in the situation
Re: Charset in Content Type: Tomcat 4 versus Tomcat 5
Neeraj Vora wrote: > Content Type: application/x-java-jnlp-file;charset=iso-8859-1 > > MS IE has an unfortunate bug whereby it cannot associate this with Java Web > Start. This has been documented as KB 871248. I tried AFAIK, real player has (or had) a similar problem, and can also not be served by Tomcat. Michiel -- Michiel Meeuwissen mihxil' Mediacentrum 140 H'sum[] () +31 (0)35 6772979 nl_NL eo_XX en_US - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Cluster: how to set mcast interface for dual LAN card?
there is an attribute "mcastBindAddr" that allows you to bind to the interface. Joseph Lam wrote: Hi, If I have two LAN cards and I want my Tomcat to mcast through one of them, what parameter should I set? Regards, Joseph - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Configuration for best performance in a high latency environment
All, I am wondering if anyone out there has any experience with tuning Tomcat to improve performance in high latency (~700ms) environments? I've basically just been experimenting and learning what I can from the available resources on the web but there doesn't seem to be much out there that mentions performance over high latency links. The situation we have is that we have a server in London running Tomcat 5.5.4 (the version released when we commenced testing, can upgrade this if need be) using the in-built Coyote HTTP connector with SSL enabled, which works great for most users but when some of our remote sites over a satellite link the performance is borderline unacceptable. The reason I haven't setup Apache in front of Tomcat is mainly as I needed a simplified solution to help me push Tomcat as an alternative as previously we were using Macromedia Jrun 4 and having no end of trouble with the complete lack of persistence. However if there are good, quantified reasons to put Apache on the server then that isn't out of the question. One thing our network guys have said after looking at traces is that the packets Tomcat sends seem to never be larger than 590 bytes but I can't find anything within Tomcat's configuration that would be governing that as they suggest if the packets were larger then the performance over high latency would increase, does anyone have any ideas on that? The only time the packets are greater than 590 bytes is when the browser sends it's request to the server. Another observation is that we've dropped from over 110 connections with Jrun down to 8 connections in our tests since the change to Tomcat, and we are getting 2 of those connections in parallel for our 11 step test script. Is there anything within Tomcat's configuration that would reduce the number of connections even more or is that just related to the nature of HTTP? Our current Connector properties are: The application isn't one under particularly high load and at the moment our main focus is the performance from our remote sites but the above setup more than adequately performs under our required load testing, Jrun plugged into IIS would handle (only just) about 150 concurrent users running our script and Tomcat flies along with 300 concurrent users so load handling wise I have mangement sold and just need to work on the performance over high latency links. Any insight anyone can provide would be much appreciated. Regards, -- Jason Bainbridge http://kde.org - [EMAIL PROTECTED] Personal Site - http://jasonbainbridge.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Where can I find Tomcat statistics?
Hi all, I'm looking for some tomcat/jakarta statistics. The kind of information I'm looking is: * Number of systems running jakarta. * Comparative between jakarta/iAS,. I mean something like the information for apache available in: http://news.netcraft.com/archives/web_server_survey.html If anyone know where can I find this info, please let me know. Regards - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [RESOLVED] log4j.properties not found in tomcat
Unbelievable. I'm still getting the error. I have no idea how or why this went away temporarily but heres whats up. Anyone who can help, its appreciated. Some googling shows that others are having same error. Again, system variable log4j.configuration is set to log4j.properties which points RollingFileAppender to a file on my server. The log4j Appender file is LOGGING PROPERLY. But any time i execute a servlet i get the followingn dump in stdout.log. NO idea why. log4j:ERROR Could not read configuration file [log4j.properties]. java.io.FileNotFoundException: log4j.properties (The system cannot find the file specified) at java.io.FileInputStream.open(Native Method) at java.io.FileInputStream.(Unknown Source) at java.io.FileInputStream.(Unknown Source) at org.apache.log4j.PropertyConfigurator.doConfigure(PropertyConfigurator.java:297) at org.apache.log4j.PropertyConfigurator.configure(PropertyConfigurator.java:315) at com.imediainc.nycballet.nycbbuilder.dataaccess.DBConnection.getConnection(Unknown Source) at com.imediainc.nycballet.nycbbuilder.dataaccess.NYCBData.getAllReps(Unknown Source) at com.imediainc.nycballet.nycbbuilder.control.RepsMainController.execute(Unknown Source) at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:421) at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:226) at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1164) at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:397) at javax.servlet.http.HttpServlet.service(HttpServlet.java:689) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157) at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:704) at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:474) at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:409) at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:312) at org.apache.jasper.runtime.PageContextImpl.doForward(PageContextImpl.java:670) at org.apache.jasper.runtime.PageContextImpl.forward(PageContextImpl.java:637) at org.apache.jsp.reps.index_jsp._jspService(index_jsp.java:43) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929) at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160) at org.apache.coyote.http11.Http11Processor.process(Http11Proces
Re: can I develop dan deploy myapps as regular user at linux?
On Tue, 22 Feb 2005, Mohd. Jeffry wrote: > Hi, I'm pretty new with tomcat, 1 month to be exect. So what are the > standart operating procedure to develop and deploy at linux > environtment? For the time being this is what I do and it's kinda > troublesome. > > 1. compile my app at /home/devel/myapps > 2. su as root and move it to /usr/local/tomcat/webapps/myapps > 3. and chown myapps for tomcat:tomcat. > 4. and restart tomcat > > If possible I don't want to use any IDE tools for time being because I > want to focus on servlet/jsp and not on IDE. I'd add yourself to the tomcat group, chmod -R g+w /usr/local/tomcat/webapps Then you can just overwrite the files and tomcat will pick up the changes. Yours, Pete Stevens -- Pete Stevens [EMAIL PROTECTED] http://www.ex-parrot.com/~pete/ Should anyone contact you with an after sales enquiry, please do not attempt to help them with the enquiry. -- Corporate advice on improving customer interaction - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: can I develop dan deploy myapps as regular user at linux?
Why not chown the whole tomcat directory to yourself (or your group)? Then you can just pop in your apps. Tomcat doesn't need to (and should not) run as root. No need to restart either. -Michael Greer On Feb 22, 2005, at 8:47 AM, Mohd. Jeffry wrote: Hi, I'm pretty new with tomcat, 1 month to be exect. So what are the standart operating procedure to develop and deploy at linux environtment? For the time being this is what I do and it's kinda troublesome. 1. compile my app at /home/devel/myapps 2. su as root and move it to /usr/local/tomcat/webapps/myapps 3. and chown myapps for tomcat:tomcat. 4. and restart tomcat If possible I don't want to use any IDE tools for time being because I want to focus on servlet/jsp and not on IDE. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
can I develop dan deploy myapps as regular user at linux?
Hi, I'm pretty new with tomcat, 1 month to be exect. So what are the standart operating procedure to develop and deploy at linux environtment? For the time being this is what I do and it's kinda troublesome. 1. compile my app at /home/devel/myapps 2. su as root and move it to /usr/local/tomcat/webapps/myapps 3. and chown myapps for tomcat:tomcat. 4. and restart tomcat If possible I don't want to use any IDE tools for time being because I want to focus on servlet/jsp and not on IDE. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: My jsp file interrupt when it met the exception
> When my jsp file met the exception,sometimes it stopped outputed the > exception Hi Nap, Why do you want to output the full exception on the browser? Why not just log it at the server-side and present the user (read: browser) with a simple error information. btw, what's the size of exception (error report) that you are getting? I don't think it should be so huge that you need to buffer for "1024kb"... :-? -- Cheers, Gaurav Vaish http://www.mastergaurav.org http://mastergaurav.blogspot.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE:[RESOLVED] log4j.properties not found in tomcat
Thanks for the repliess. My issue was that I needed to set a system wide environment variable called log4j.configuration and set its value to "log4j.properties", the name of my config file for log4j. This was in the log4j documentation but I guess i skimmed over that part. Log4j is a application completely separate from web container, hence the need for a system wide var. Definately liking log4j more and more. My file was located in my /webapps/myappuri/WEB-INF/classes/ So the answer turns out that log4j looks for a system env var log4j.configuration and looks in your webapps class path for it. Additionally I set up tomcat to use my log4j file as well by makin a file called commons-logging.properties in /webapps/myappuri/WEB-INF/classes/ whos only line was: org.apache.commons.logging.Log=org.apache.commons.logging.impl.Log4JLogger Note that commons-logging.jar needs to be in your /webapps/myappuri/WEB-INF/lib/ dir for this to work. Thanks -B -Original Message- From: Jacob Kjome [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 22, 2005 12:30 AM To: Tomcat Users List Subject: Re: log4j.properties not found in tomcat You have to understand that any relative path is going to be resolved relative to the location where the JVM started. If you started Tomcat via the service rather than the batch files, then the VM would be run, by default, from C:\winnt\System32. So, when you supplied "-Dlog4j.configuration=log4j.properties", you got exactly what should be expected if log4j.properties were located in c:\winnt\System32. Same goes for relatively defined paths to log files defined for FileAppenders in log4j.properties. BTW, can you post your error? FileNotFoundExceptions aren't thrown when Log4j can't find its config file. You'd get a simple error saying as much. The FileNotFoundExceptions are usually thrown when you specify a file for a FileAppender in a directory that doesn't exist. Log4j makes no attempt to create directories if they don't exist already. This is the correct and safe thing to do. It is your responsibility to make sure the directory exists before Log4j attempts to use it. Jake At 11:09 PM 2/21/2005 -0500, you wrote: >Where do you put log4j.properties currently? >-Michael Greer > >On Feb 21, 2005, at 5:02 PM, Brian McGovern wrote: > >> I have a wierd problem. Tomcat on W2k barks FileNotFound Exceptions >> for the log4j.properties file when i execute a servlet that >> instantiates log4j. Strangely enough the actual file that i create >> and log to with log4j.properties file logs out just fine even though >> stdout.log said that it couldn't find my log4j.properties file. >> >> Only time i don't get an error is when i put log4j.properites in my >> winnt/system32 directory. But this doesnt make sense to me. I supply >> -Dlog4j.configuration=log4j.properties to Java at startup and still >> get the same error. I also tried the FULL path to my log4j.properties >> in the -D option. >> >> Instantiated like this across my app. >> >> private static final Logger zLogger = >> Logger.getLogger(MyClassName.class); >> >> Can anyone tell me where I went wrong. >> >> thanks > > >- >To unsubscribe, e-mail: [EMAIL PROTECTED] >For additional commands, e-mail: [EMAIL PROTECTED] > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Free online presentation on native webserver integration and Tomcat
Ah ok $) Oops. > -Original Message- > From: Remy Maucherat [mailto:[EMAIL PROTECTED] > Sent: 22 February 2005 13:00 > To: Tomcat Users List > Subject: Re: Free online presentation on native webserver integration > and Tomcat > > > On Tue, 22 Feb 2005 12:24:28 -, Allistair Crossley > <[EMAIL PROTECTED]> wrote: > > Yep, > > > > I was just pointing out the the Jboss site is inaccurate > and may cause confusion. > > > > 1300 EDT is 1300-5 = 0800 not 1800, so us Europeans will > all have to get up rel early in the morning ;) > > No, it's the opposite, it's late ;) > > It's 13:00 + 6 for the Paris timezone (= 19:00 = 7 PM), and 6 PM for > London. I suppose the time is more to accomodate the west coast. > > -- > x > Rémy Maucherat > Developer & Consultant > JBoss Group (Europe) SàRL > x > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --- QAS Ltd. Developers of QuickAddress Software http://www.qas.com";>www.qas.com Registered in England: No 2582055 Registered in Australia: No 082 851 474 --- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
My jsp file interrupt when it met the exception
When my jsp file met the exception,sometimes it stopped outputed the exception message,but the other time it only stopped.Only when I write "<[EMAIL PROTECTED] buffer="1024kb" autoFlush="false"%>" it output the message.How can I avoid the enlarge the buffer and can let the exception message appear?
RE: Tomcat 5.5.7 cannot connect to mysql datasource - what changed?
Tom, thanks - finally figured out the "username" error. And thanks on the password. - Richard Tom A wrote: > Richard, > > In your context file change > > userName="ltojsw" > to > username="ltojsw" > > (and of course change your passwd now that it's on the 'net ;-) > > This is why you see the error: > Access denied for user ''@'kingfishS11' > > I just tried to find some docs to make sure I'm right but I can't see > anything under the 5.5 documentation :-S > > Hope this helps > Tom. > > On Mon, 21 Feb 2005 07:32:29 -0700, Richard Mixon (qwest) > <[EMAIL PROTECTED]> wrote: >> >> -Original Message- >> From: Richard Mixon (qwest) [mailto:[EMAIL PROTECTED] >> Sent: 21 February, 2005 7:53 AM >> To: tomcat-user@jakarta.apache.org >> Subject: Tomcat 5.5.7 cannot connect to mysql datasource - what >> changed? >> >> We have been using Sun Java 1.4.2, Tomcat 5.0.19, MySQL 4.1.7, MySQL >> Connector/J 3.0.15 with Hibernate 2.1.7c with no problems. This is on >> both Windows XP Pro SP2 (development) and SuSE Linux SLES9 (test and >> production). >> >> In order to get failover to work the way we wanted we upgraded to >> Tomcat >> 5.5.7 and Sun Java 1.5. The main change in our application was the >> new format for data soruces in the application context. No problem on >> Windows XP. We've tried to install on one of our Linux servers and >> are having no end of grief getting a DB connection to properly >> happen. >> >> Any help or ideas would be much appreciated. I've included the >> application context and the catalina log error messages below. >> >> Thanks in advance - Richard >> >> ***-> APPLICATION CONTEXT: >> > privileged="true" antiResourceLocking="false" >> antiJARLocking="true" >>> >> > prefix="stars." suffix=".log" timestamp="true"/> >> > driverName="com.mysql.jdbc.Driver" >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> connectionURL="jdbc:mysql://192.168.11.3:3306/ltojsw?autoReconnec >> t=true&autoCommit=true" connectionName="ltojsw" >> connectionPassword="586579" userTable="PoAssociate" >> userNameCol="userid" userCredCol="password" >> userRoleTable="PoUserRole" roleNameCol="roleName" /> > name="jdbc/stars" type="javax.sql.DataSource" auth="Container" >> maxActive="100" maxIdle="10" maxWait="1" >> defaultAutoCommit="true" userName="ltojsw" password="586579" >> driverClassName="com.mysql.jdbc.Driver" >> url="jdbc:mysql://192.168.11.3:3306/ltojsw?aut >> oReconnect=true&autoCommit=true" removeAbandoned="true" >> removeAbandonedTimeout="60" logAbandoned="true" /> >> >> ***-> CATALINA ERROR MESSAGES: >> >> >> 19:37:27,642 INFO [http-8080-Processor25] >> DatasourceConnectionProvider:51 - Using datasource: >> java:comp/env/jdbc/stars 19:37:27,648 INFO [http-8080-Processor25] >> TransactionManagerLookupFactory:33 - No TransactionManagerLookup >> configured (in JTA environment, use of process level read-write >> cache is not recommended) AbandonedObjectPool is used >> ([EMAIL PROTECTED]) >>LogAbandoned: true RemoveAbandoned: true >>RemoveAbandonedTimeout: 60 >> 19:37:41,696 WARN [http-8080-Processor25] SettingsFactory:107 - >> Could not obtain connection metadata >> org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot create >> PoolableConnectionFactory (Server connection failure during >> transaction. Due to underlying exception: 'java.sql.SQLException: >> Access denied for user ''@'kingfishS11' (using password: YES)'. >> >> ** BEGIN NESTED EXCEPTION ** >> >> java.sql.SQLException >> MESSAGE: Access denied for user ''@'kingfishS11' (using password: >> YES) >> >> STACKTRACE: >> >> java.sql.SQLException: Access denied for user ''@'kingfishS11' >> (using password: YES) >> >> - >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> - >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> - >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> - >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> - >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> - >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> - >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> > > -
Re: Free online presentation on native webserver integration and Tomcat
On Tue, 22 Feb 2005 12:24:28 -, Allistair Crossley <[EMAIL PROTECTED]> wrote: > Yep, > > I was just pointing out the the Jboss site is inaccurate and may cause > confusion. > > 1300 EDT is 1300-5 = 0800 not 1800, so us Europeans will all have to get up > rel early in the morning ;) No, it's the opposite, it's late ;) It's 13:00 + 6 for the Paris timezone (= 19:00 = 7 PM), and 6 PM for London. I suppose the time is more to accomodate the west coast. -- x Rémy Maucherat Developer & Consultant JBoss Group (Europe) SàRL x - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Free online presentation on native webserver integration and Tomcat
Yep, I was just pointing out the the Jboss site is inaccurate and may cause confusion. 1300 EDT is 1300-5 = 0800 not 1800, so us Europeans will all have to get up rel early in the morning ;) Cheers, Allistair. > -Original Message- > From: Mladen Turk [mailto:[EMAIL PROTECTED] > Sent: 22 February 2005 11:51 > To: Tomcat Users List > Subject: Re: Free online presentation on native webserver integration > and Tomcat > > > Allistair Crossley wrote: > > February 23, 2005 at 1pm Eastern Daylight Time (GMT -04:00, > New York). > > > > I believe this should be GMT -5 however? No? > > > > February 23, 2005 at 18:00 GMT. > So calculate to your own timezone :). > > regards, > Mladen > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --- QAS Ltd. Developers of QuickAddress Software http://www.qas.com";>www.qas.com Registered in England: No 2582055 Registered in Australia: No 082 851 474 --- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: JDBC connection - Please help
Hi, Looks like you are using the Tomcat Connection pool. Refer to the attached Readme.txt file and verify that you have done these steps. I think it should solve your problem. Have also attached the server.xml & web.xml files which worked fine for us. let me know whether ur problem gets solved by this. -Original Message- From: deepak suldhal [mailto:[EMAIL PROTECTED] Sent: Monday, February 21, 2005 11:53 AM To: tomcat users Subject: JDBC connection - Please help Please help me make my first JDBC connection My web.xml http://java.sun.com/xml/ns/j2ee"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"; version="2.4"> MySQL Test App DB Connection jdbc/TestDB javax.sql.DataSource Container --- In server.xml I have the following context ( trying to connect to Sybase database) --- I have copied the JDCB drive Jar under commons/lib I have a test.jsp as follows --- <%@ taglib uri="http://java.sun.com/jsp/jstl/sql"; prefix="sql" %> <%@ taglib uri="http://java.sun.com/jsp/jstl/core"; prefix="c" %> select id, foo, bar from testdata DB Test Results Foo ${row.foo} Bar ${row.bar} --- My directory structue is as follows webapps/DBTest/WEB-INF/web.mxl /DBTest/test.jsp --- And when I try the url http://localhost:8080/DBTest/test.jsp I am getting the following errors description The server encountered an internal error () that prevented it from fulfilling this request. exception javax.servlet.ServletException: Unable to get connection, DataSource invalid: "org.apache.commons.dbcp.SQLNestedException: Cannot create JDBC driver of class '' for connect URL 'null'" org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextI mpl.java:825) org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImp l.java:758) org.apache.jsp.test_jsp._jspService(test_jsp.java:82) org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:3 24) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) root cause javax.servlet.jsp.JspException: Unable to get connection, DataSource invalid: "org.apache.commons.dbcp.SQLNestedException: Cannot create JDBC driver of class '' for connect URL 'null'" org.apache.taglibs.standard.tag.common.sql.QueryTagSupport.getConnection(Unk nown Source) org.apache.taglibs.standard.tag.common.sql.QueryTagSupport.doStartTag(Unknow n Source) org.apache.jsp.test_jsp._jspx_meth_sql_query_0(test_jsp.java:101) org.apache.jsp.test_jsp._jspService(test_jsp.java:58) org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:3 24) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236) javax.servlet.http.HttpServlet.service(HttpServlet.java:802 --- My console server display is as follows eb 20, 2005 10:31:08 PM org.apache.coyote.http11.Http11Protocol init INFO: Initializing Coyote HTTP/1.1 on http-8080 Feb 20, 2005 10:31:08 PM org.apache.catalina.startup.Catalina load INFO: Initialization processed in 1422 ms Feb 20, 2005 10:31:09 PM org.apache.catalina.core.StandardService start INFO: Starting service Catalina Feb 20, 2005 10:31:09 PM org.apache.catalina.core.StandardEngine start INFO: Starting Servlet Engine: Apache Tomcat/5.0.28 Feb 20, 2005 10:31:09 PM org.apache.catalina.core.StandardHost start INFO: XML validation disabled Feb 20, 2005 10:31:10 PM org.apache.catalina.core.StandardHost getDeployer INFO: Create Host deployer for direct deployment ( non-jmx ) Feb 20, 2005 10:31:10 PM org.apache.catalina.core.StandardHostDeployer install INFO: Processing Context configuration file URL file:C:\jakarta-tomcat-5.0.28\conf\Catalina\localhost\admin.xml Feb 20, 2005 10:31:10 PM org.apache.struts.util.PropertyMessageResources INFO: Initializing, config='org.apache.struts.util.LocalStrings', returnNull=true Feb 20, 2005 10:31:10 PM org.apache.struts.util.PropertyMessageResources IN
Re: Free online presentation on native webserver integration and Tomcat
On Tue, 22 Feb 2005 12:50:59 +0100, Mladen Turk <[EMAIL PROTECTED]> wrote: > Allistair Crossley wrote: > > February 23, 2005 at 1pm Eastern Daylight Time (GMT -04:00, New York). > > > > I believe this should be GMT -5 however? No? > > > > February 23, 2005 at 18:00 GMT. > So calculate to your own timezone :). I think NY is GMT -5 indeed. -- x Rémy Maucherat Developer & Consultant JBoss Group (Europe) SàRL x - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat 5.5.7 cannot connect to mysql datasource - what changed?
Richard, In your context file change userName="ltojsw" to username="ltojsw" (and of course change your passwd now that it's on the 'net ;-) This is why you see the error: Access denied for user ''@'kingfishS11' I just tried to find some docs to make sure I'm right but I can't see anything under the 5.5 documentation :-S Hope this helps Tom. On Mon, 21 Feb 2005 07:32:29 -0700, Richard Mixon (qwest) <[EMAIL PROTECTED]> wrote: > > -Original Message- > From: Richard Mixon (qwest) [mailto:[EMAIL PROTECTED] > Sent: 21 February, 2005 7:53 AM > To: tomcat-user@jakarta.apache.org > Subject: Tomcat 5.5.7 cannot connect to mysql datasource - what changed? > > We have been using Sun Java 1.4.2, Tomcat 5.0.19, MySQL 4.1.7, MySQL > Connector/J 3.0.15 with Hibernate 2.1.7c with no problems. This is on > both Windows XP Pro SP2 (development) and SuSE Linux SLES9 (test and > production). > > In order to get failover to work the way we wanted we upgraded to Tomcat > 5.5.7 and Sun Java 1.5. The main change in our application was the new > format for data soruces in the application context. No problem on > Windows XP. We've tried to install on one of our Linux servers and are > having no end of grief getting a DB connection to properly happen. > > Any help or ideas would be much appreciated. I've included the > application context and the catalina log error messages below. > > Thanks in advance - Richard > > ***-> APPLICATION CONTEXT: > privileged="true" antiResourceLocking="false" antiJARLocking="true" > > > prefix="stars." suffix=".log" timestamp="true"/> >driverName="com.mysql.jdbc.Driver" >connectionURL="jdbc:mysql://192.168.11.3:3306/ltojsw?autoReconnec > t=true&autoCommit=true" > connectionName="ltojsw" connectionPassword="586579" >userTable="PoAssociate" userNameCol="userid" > userCredCol="password" >userRoleTable="PoUserRole" roleNameCol="roleName" /> > type="javax.sql.DataSource" > auth="Container" > maxActive="100" > maxIdle="10" > maxWait="1" > defaultAutoCommit="true" > userName="ltojsw" > password="586579" > driverClassName="com.mysql.jdbc.Driver" > url="jdbc:mysql://192.168.11.3:3306/ltojsw?aut > oReconnect=true&autoCommit=true" > removeAbandoned="true" > removeAbandonedTimeout="60" > logAbandoned="true" > /> > > > ***-> CATALINA ERROR MESSAGES: > > > 19:37:27,642 INFO [http-8080-Processor25] > DatasourceConnectionProvider:51 - Using datasource: > java:comp/env/jdbc/stars > 19:37:27,648 INFO [http-8080-Processor25] > TransactionManagerLookupFactory:33 - No TransactionManagerLookup > configured (in JTA environment, use of process level read-write cache is > not recommended) > AbandonedObjectPool is used > ([EMAIL PROTECTED]) >LogAbandoned: true >RemoveAbandoned: true >RemoveAbandonedTimeout: 60 > 19:37:41,696 WARN [http-8080-Processor25] SettingsFactory:107 - Could > not obtain connection metadata > org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot create > PoolableConnectionFactory (Server connection failure during transaction. > Due to underlying exception: 'java.sql.SQLException: Access denied for > user ''@'kingfishS11' (using password: YES)'. > > ** BEGIN NESTED EXCEPTION ** > > java.sql.SQLException > MESSAGE: Access denied for user ''@'kingfishS11' (using password: YES) > > STACKTRACE: > > java.sql.SQLException: Access denied for user ''@'kingfishS11' (using > password: YES) > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --
Re: Free online presentation on native webserver integration and Tomcat
Allistair Crossley wrote: February 23, 2005 at 1pm Eastern Daylight Time (GMT -04:00, New York). I believe this should be GMT -5 however? No? February 23, 2005 at 18:00 GMT. So calculate to your own timezone :). regards, Mladen - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Free online presentation on native webserver integration and Tomcat
February 23, 2005 at 1pm Eastern Daylight Time (GMT -04:00, New York). I believe this should be GMT -5 however? No? Cheers, Allistair > -Original Message- > From: Allistair Crossley > Sent: 22 February 2005 11:34 > To: Tomcat Users List > Subject: RE: Free online presentation on native webserver integration > and Tomcat > > > Hi, > > The JBoss site lists replays of past webinars, so I suppose > this won't be any different? > > Allistair. > > > -Original Message- > > From: Nikola Milutinovic [mailto:[EMAIL PROTECTED] > > Sent: 22 February 2005 11:14 > > To: Tomcat Users List > > Subject: Re: Free online presentation on native webserver > integration > > and Tomcat > > > > > > Remy Maucherat wrote: > > > > >Hi, > > > > > >Mladen Turk and myself will do a free (registration required) > > >presentation tomorrow (Wednesday, February 23, 2005 at 1pm Eastern > > >Daylight Time (GMT -04:00, New York)), mostly on native web server > > >integration with Tomcat. > > > > > >http://www.jboss.org/services/online_education > > > > > >Topics which will be discussed include: > > >- short intro on Tomcat inside JBoss > > >- mod_jk configuration > > >- presentation of upcoming mod_jk features > > >- mod_proxy presentation > > > > > >Nearly half of the presentation will focus on ongoing native > > connector > > >development and roadmap. It will be concluded by a demo of > a failover > > >scenario featuring the newly added jkstatus. I know there > are quite a > > >few people who are a bit confused about where this part of > the Tomcat > > >development is going ;) > > > > > > > > > > Will this be downloadable, by any chance? Some of us can't > > make it and > > have a shoddy Internet connection... > > > > Nix. > > > > > - > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > --- > QAS Ltd. > Developers of QuickAddress Software > http://www.qas.com";>www.qas.com > Registered in England: No 2582055 > Registered in Australia: No 082 851 474 > --- > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Free online presentation on native webserver integration and Tomcat
Hi, The JBoss site lists replays of past webinars, so I suppose this won't be any different? Allistair. > -Original Message- > From: Nikola Milutinovic [mailto:[EMAIL PROTECTED] > Sent: 22 February 2005 11:14 > To: Tomcat Users List > Subject: Re: Free online presentation on native webserver integration > and Tomcat > > > Remy Maucherat wrote: > > >Hi, > > > >Mladen Turk and myself will do a free (registration required) > >presentation tomorrow (Wednesday, February 23, 2005 at 1pm Eastern > >Daylight Time (GMT -04:00, New York)), mostly on native web server > >integration with Tomcat. > > > >http://www.jboss.org/services/online_education > > > >Topics which will be discussed include: > >- short intro on Tomcat inside JBoss > >- mod_jk configuration > >- presentation of upcoming mod_jk features > >- mod_proxy presentation > > > >Nearly half of the presentation will focus on ongoing native > connector > >development and roadmap. It will be concluded by a demo of a failover > >scenario featuring the newly added jkstatus. I know there are quite a > >few people who are a bit confused about where this part of the Tomcat > >development is going ;) > > > > > > Will this be downloadable, by any chance? Some of us can't > make it and > have a shoddy Internet connection... > > Nix. > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --- QAS Ltd. Developers of QuickAddress Software http://www.qas.com";>www.qas.com Registered in England: No 2582055 Registered in Australia: No 082 851 474 --- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Free online presentation on native webserver integration and Tomcat
Remy Maucherat wrote: Hi, Mladen Turk and myself will do a free (registration required) presentation tomorrow (Wednesday, February 23, 2005 at 1pm Eastern Daylight Time (GMT -04:00, New York)), mostly on native web server integration with Tomcat. http://www.jboss.org/services/online_education Topics which will be discussed include: - short intro on Tomcat inside JBoss - mod_jk configuration - presentation of upcoming mod_jk features - mod_proxy presentation Nearly half of the presentation will focus on ongoing native connector development and roadmap. It will be concluded by a demo of a failover scenario featuring the newly added jkstatus. I know there are quite a few people who are a bit confused about where this part of the Tomcat development is going ;) Will this be downloadable, by any chance? Some of us can't make it and have a shoddy Internet connection... Nix. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
isapi_redirect and HTTP PUT doesn't work
Hi @ll, my first post in this list ;) Well, I've a problem with the isapi_redirect.dll (versions 1.2.6 and 1.2.8) in combination with a http PUT request. With a old version, don't know which exact, it's from 2001, the request works without any problems. I'm using tomcat 5.5 and IIS5 on Windows 2000 Server and isapi_redirect.dll. For testing I use curl 7.10 with the following command: curl -T "E:\test.png" -X "PUT" "http://myhost/fileupload/FileUploadServlet"; With isapi_redirect.dll versions 1.2.6 and 1.2.8 I get the following error: "ErrorFalscher Parameter. curl: (55)" ... with the old version, it works. If I use the GET command, the servlet works and I get back the right message. In the logfiles I could see, IIS forwards a GET to /jakarta/isapi_redirect.dll but not a PUT command. thnx for your help kind regards Stefan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Free online presentation on native webserver integration and Tomcat
Hi, Mladen Turk and myself will do a free (registration required) presentation tomorrow (Wednesday, February 23, 2005 at 1pm Eastern Daylight Time (GMT -04:00, New York)), mostly on native web server integration with Tomcat. http://www.jboss.org/services/online_education Topics which will be discussed include: - short intro on Tomcat inside JBoss - mod_jk configuration - presentation of upcoming mod_jk features - mod_proxy presentation Nearly half of the presentation will focus on ongoing native connector development and roadmap. It will be concluded by a demo of a failover scenario featuring the newly added jkstatus. I know there are quite a few people who are a bit confused about where this part of the Tomcat development is going ;) -- x Rémy Maucherat Developer & Consultant JBoss Group (Europe) SàRL x - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Name jdbc is not bound in this Context error
In fact I hadnt installed it in windlws. You can connect to server suing psql. it will be in the bin directory. There is one GUI front end available PgAdmin. The documentation will be in doc directory. This contains installation, administration and tutorials on SQL. For further you can ask questions at PostgreSQL mailing lists(http://www.postgresql.org/community/lists/). rgds Antony Paul On Tue, 22 Feb 2005 02:07:20 -0800 (PST), U K Laxmi <[EMAIL PROTECTED]> wrote: > Hi Antony, > > I downloaded postgres and installed on my m/c. I > installed it as a service. > > Can you pls give step by step instruction as how to > connect to postgresql database. > > Thank you so much. > > --- Antony Paul <[EMAIL PROTECTED]> wrote: > > > You can name it the name of the context(web). The > > content should be > > similar to any other file there. I am giving a > > sample > > > > > antiResourceLocking="false" > > antiJARLocking="false"> > > > > > > > > rgds > > Antony Paul > > > > > > On Mon, 21 Feb 2005 23:18:55 -0800 (PST), U K Laxmi > > <[EMAIL PROTECTED]> wrote: > > > Thanks for the replies. What do u mean by the > > > following in ur erlier mail. > > > > > > > > > > > > Did you defined your newly created context > > web > > > > in > > > > > > server.xml or at > > > > > > TOMCAT_HOME\conf\Catalina\localhost\some > > > > name.xml > > > > > > > > > > > > Does it mean i need to create a new xml file in > > > TOMCAT_HOME\conf\Catalina\localhost? What should > > be > > > it's name? What should it contain? Pls let me > > know. I > > > will try that. I didn't create any file there. > > > > > > Thanks again. > > > > > > > > > hope it will help. > > > > > > > > > > > > rgds > > > > > > Antony Paul > > > > > > > > > > > > > > > > > > > > > > > > On Mon, 21 Feb 2005 22:25:59 -0800 (PST), U > > K > > > > Laxmi > > > > > > <[EMAIL PROTECTED]> wrote: > > > > > > > Yes i read and did as per the document. > > When > > > > it > > > > > > didn't > > > > > > > work, i followed the suggetions given to > > many > > > > > > users in > > > > > > > the mailing lists in the internet and now > > i > > > > guess > > > > > > i > > > > > > > messed up. Actually in the error, it says, > > no > > > > > > suitable > > > > > > > driver found. > > > > > > > > > > > > > > I'm using Ms Access as it's free. Do we > > have > > > > any > > > > > > free > > > > > > > driver available in the form of jar to use > > in > > > > > > place of > > > > > > > JDBC-ODBC bridge driver? Or it's not > > required > > > > if > > > > > > > configuration is correct. Pls let me know. > > > > I've > > > > > > pasted > > > > > > > all relevant code in my first mail itself. > > If > > > > time > > > > > > > permits, any of you can try & give me the > > > > > > solution. > > > > > > > It'll be a great help. > > > > > > > > > > > > > > I've integrated tomcat 5.5.7 with apache > > 2. > > > > Does > > > > > > this > > > > > > > has any impact on the above. > > > > > > > > > > > > > > --- Antony Paul <[EMAIL PROTECTED]> > > > > wrote: > > > > > > > > > > > > > > > If you followed the tomcat docs you will > > > > have no > > > > > > > > problem in DBCP > > > > > > > > getting to work. Going for > > > > Globalnamingresources > > > > > > is > > > > > > > > needed if you need > > > > > > > > to access it will all applications. Try > > to > > > > > > configure > > > > > > > > it as per the doc > > > > > > > > in following URL. > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > http://jakarta.apache.org/tomcat/tomcat-5.5-doc/jndi-datasource-examples-howto.html > > > > > > > > > > > > > > > > follow MySQL config. And no need to put > > > > > > commons*.jar > > > > > > > > in commons/lib as > > > > > > > > TC by default comes with it. > > > > > > > > > > > > > > > > rgds > > > > > > > > Antony Paul > > > > > > > > > > > > > > > > > > > > > > > > On Mon, 21 Feb 2005 21:52:13 -0800 > > (PST), U > > > > K > > > > > > Laxmi > > > > > > > > <[EMAIL PROTECTED]> wrote: > > > > > > > > > I tried without GlobalNamingResources. > > No > > > > > > luck. > > > > > > > > When > > > > > > > > > googled, i found that if we include > > > > > > > > > GlobalNamingResource tag, then it will > > be > > > > > > > > available in > > > > > > > > > all web context. > > > > > > > > > > > > > > > > > > After spending enough time on that, > > now i > > > > > > > === message truncated === > > > > > > __ > > > Do you Yahoo!? > > > Yahoo! Mail - Helps protect you from nasty > > viruses. > > > http://promotions.yahoo.com/new_mail > > > > > > > > - > > To unsubscribe, e-mail: > > [EMAIL PROTECTED] > > For additional commands, e-mail: > > [EMAIL PROTECTED] > > > > > > __ > Do you Yahoo!? > The all-new My Yahoo! - What will yours do? > http://my.yahoo.com > - To unsubscribe
Re: Name jdbc is not bound in this Context error
Hi Antony, I downloaded postgres and installed on my m/c. I installed it as a service. Can you pls give step by step instruction as how to connect to postgresql database. Thank you so much. --- Antony Paul <[EMAIL PROTECTED]> wrote: > You can name it the name of the context(web). The > content should be > similar to any other file there. I am giving a > sample > > antiResourceLocking="false" > antiJARLocking="false"> > > > > rgds > Antony Paul > > > On Mon, 21 Feb 2005 23:18:55 -0800 (PST), U K Laxmi > <[EMAIL PROTECTED]> wrote: > > Thanks for the replies. What do u mean by the > > following in ur erlier mail. > > > > > > > > > > Did you defined your newly created context > web > > > in > > > > > server.xml or at > > > > > TOMCAT_HOME\conf\Catalina\localhost\some > > > name.xml > > > > > > > > > Does it mean i need to create a new xml file in > > TOMCAT_HOME\conf\Catalina\localhost? What should > be > > it's name? What should it contain? Pls let me > know. I > > will try that. I didn't create any file there. > > > > Thanks again. > > > > > > > hope it will help. > > > > > > > > > > rgds > > > > > Antony Paul > > > > > > > > > > > > > > > > > > > > On Mon, 21 Feb 2005 22:25:59 -0800 (PST), U > K > > > Laxmi > > > > > <[EMAIL PROTECTED]> wrote: > > > > > > Yes i read and did as per the document. > When > > > it > > > > > didn't > > > > > > work, i followed the suggetions given to > many > > > > > users in > > > > > > the mailing lists in the internet and now > i > > > guess > > > > > i > > > > > > messed up. Actually in the error, it says, > no > > > > > suitable > > > > > > driver found. > > > > > > > > > > > > I'm using Ms Access as it's free. Do we > have > > > any > > > > > free > > > > > > driver available in the form of jar to use > in > > > > > place of > > > > > > JDBC-ODBC bridge driver? Or it's not > required > > > if > > > > > > configuration is correct. Pls let me know. > > > I've > > > > > pasted > > > > > > all relevant code in my first mail itself. > If > > > time > > > > > > permits, any of you can try & give me the > > > > > solution. > > > > > > It'll be a great help. > > > > > > > > > > > > I've integrated tomcat 5.5.7 with apache > 2. > > > Does > > > > > this > > > > > > has any impact on the above. > > > > > > > > > > > > --- Antony Paul <[EMAIL PROTECTED]> > > > wrote: > > > > > > > > > > > > > If you followed the tomcat docs you will > > > have no > > > > > > > problem in DBCP > > > > > > > getting to work. Going for > > > Globalnamingresources > > > > > is > > > > > > > needed if you need > > > > > > > to access it will all applications. Try > to > > > > > configure > > > > > > > it as per the doc > > > > > > > in following URL. > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > http://jakarta.apache.org/tomcat/tomcat-5.5-doc/jndi-datasource-examples-howto.html > > > > > > > > > > > > > > follow MySQL config. And no need to put > > > > > commons*.jar > > > > > > > in commons/lib as > > > > > > > TC by default comes with it. > > > > > > > > > > > > > > rgds > > > > > > > Antony Paul > > > > > > > > > > > > > > > > > > > > > On Mon, 21 Feb 2005 21:52:13 -0800 > (PST), U > > > K > > > > > Laxmi > > > > > > > <[EMAIL PROTECTED]> wrote: > > > > > > > > I tried without GlobalNamingResources. > No > > > > > luck. > > > > > > > When > > > > > > > > googled, i found that if we include > > > > > > > > GlobalNamingResource tag, then it will > be > > > > > > > available in > > > > > > > > all web context. > > > > > > > > > > > > > > > > After spending enough time on that, > now i > > > > > === message truncated === > > > > __ > > Do you Yahoo!? > > Yahoo! Mail - Helps protect you from nasty > viruses. > > http://promotions.yahoo.com/new_mail > > > > - > To unsubscribe, e-mail: > [EMAIL PROTECTED] > For additional commands, e-mail: > [EMAIL PROTECTED] > > __ Do you Yahoo!? The all-new My Yahoo! - What will yours do? http://my.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Pagecache framework?
Mike Fuellbrandt said: >How about this? > >http://www.servlets.com/cos/javadoc/com/oreilly/servlet/CacheHttpServlet.html Thanks Mike, I'll check it out. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
OT: JGroups problem
Hello! I am trying to integrate JGroups into web aplication. Does somebody know solution to JGroups problem described in http://jira.jboss.com/jira/browse/JGRP-31 Thank you, Igor
ANN: scalable clustered session manager
Tomcat users, I have created a plugin for Tomcat 5 that provides scalable session clustering by replicating each session to a single node rather than the whole cluster. For large-cluster deployments (the primary target audience of this work), the resource savings for both bandwidth and per-node memory usage can be dramatic compared to the current full replication scheme. The tomcat plugin is hosted at https://sourceforge.net/projects/tomcat-jg (formerly home to the full-replication jgroups-based session manager that is now integrated into Tomcat 5). The initial (alpha quality) release of the plugin is available to users and developers now and is under active development. To download the plugin: go to tomcat-jg site (above) and select tomcat-jcluster package under File Releases. It contains three jar files, plus release notes for setting it up: - catalina-ha.jar the tomcat plugin - jcluster.jar jcluster API - jcluster-plugin.jar jgroups impl of jcluster The plugin uses the jcluster API (http://jcluster.dev.java.net) for communication, membership and failover. Jcluster is a BSD-licensed set of APIs that specifies group communication functionality similar to jgroups. Jgroups is currently required as a separate download as it is the only jcluster impl. However, this is only temporary as I am working on a port to use Tomcat's internal communication classes. The jcluster javadoc is online at https://jcluster.dev.java.net/nonav/javadoc/index.html. The tomcat plugin source is viewable at: http://cvs.sourceforge.net/viewcvs.py/tomcat-jg/tomcat-javagroups/src/org/apache/catalina/cluster/session/ I would appreciate feedback about the usefulness of this project, in particular, how many of you are deploying Tomcat in large cluster configurations where current scalability limitations are a concern. Please address any questions to me at [EMAIL PROTECTED] Regards, Rob - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Yahoo! Auto Response
[EMAIL PROTECTED] Original Message: X-YahooFilteredBulk: 218.98.157.200 Authentication-Results: mta111.mail.cnb.yahoo.com from=jakarta.apache.org; domainkeys=neutral (no sig) X-Originating-IP: [218.98.157.200] Return-Path: Received: from 218.98.157.200 (EHLO jakarta.apache.org) (218.98.157.200) by mta111.mail.cnb.yahoo.com with SMTP; Tue, 22 Feb 2005 16:18:36 +0800 From: tomcat-user@jakarta.apache.org To: [EMAIL PROTECTED] Subject: Status Date: Tue, 22 Feb 2005 16:20:18 +0800 MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=_NextPart_000_0003_43C532B0.B35274EE" X-Priority: 3 X-MSMail-Priority: Normal This is a multi-part message in MIME format. --=_NextPart_000_0003_43C532B0.B35274EE Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: 7bit The message contains Unicode characters and has been sent as a binary attachment. --=_NextPart_000_0003_43C53 _ DO YOU YAHOO!? Get your free @yahoo.com address at http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Facing problems in tomcat configuration - on "XP Professional"
The virus known as "Norton Anti". (Sorry, couldn't resit;) -Original Message- From: raghavendra datt [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 22, 2005 12:04 AM To: Tomcat Users List Subject: RE: Facing problems in tomcat configuration - on "XP Professional" Sorry guys.. I got the problem.. Actually firewall was disabled but, norton antivirus was blocking the port.. now, its working... Thanks for all your sugestions I learnt a lot today --- [EMAIL PROTECTED] wrote: > By verified, do you mean > that you found Windows firewall and it was disabled? > or > that you didn't find Windows firewall? > > Control panel, Security Center might give you > another way in. > > Also, spaces WITHIN names can create almost as much > havok as spaces AFTER > names. > > -Original Message- > From: raghavendra datt > [mailto:[EMAIL PROTECTED] > Sent: Monday, February 21, 2005 9:22 PM > To: Tomcat Users List > Subject: RE: Facing problems in tomcat configuration > - on "XP > Professional" > > > I verified. No fire wall is enabled in my machine. > also I tried changing port to something else (8789) > and still am getting the page can not be diplayed > error. I dont understand what is preventing from > accessing port. > i tried giving telnet localhost 8789 and its not > connecting to it.. what else can be the reason for > not > hitting the port? > How to know whether the server is running properly > or > not? because, when i start tomcat it looks fine and > open in another window.. but, can not access it. > > --- [EMAIL PROTECTED] wrote: > > > Start, Control Panel, Windows Firewall > > (That's assuming that you've got it set up to show > > you the viruses > > (file extensions, system files, "system" and > > "hidden" files, etc) > > and to not show stuff as web-enabled whatever. > > SP2 will almost certainly have set up and enabled > a > > firewall. > > There may be something like "Switch to classic > view" > > that shows everything > > not just a selected few. > > Good Luck! > > > > > > -Original Message- > > From: raghavendra datt > > [mailto:[EMAIL PROTECTED] > > Sent: Monday, February 21, 2005 1:44 PM > > To: Tomcat Users List > > Subject: RE: Facing problems in tomcat > configuration > > - on "XP > > Professional" > > > > > > Yeah.. both machines are on service pack 2.. > > and I dont see any firewall in XP Pro machine. > > Can you please tell me how to figure out whether > > firewall is running or not? > > Do you think changing port would solve the > problem.. > > > > Thanks for the instant reply, > > Raghavendra > > --- Peter Crowther <[EMAIL PROTECTED]> > > wrote: > > > > > > From: raghavendra datt > > > [mailto:[EMAIL PROTECTED] > > > > I am new to this mailing list. for the > > past > > > one > > > > week i was trying to run tomcat on my XP > > > Professional > > > > OS but in vein. I downloaded the latest JDK > and > > > > downloaded tomcat 4.1 version and has set the > > > > CATALINA_HOME and JAVA_HOME respectively. when > I > > > start > > > > the server its getting started properly but, > > when > > > i > > > > try to access 8080 port I am getting "page can > > not > > > be > > > > displayed". I did the same installation on XP > > Home > > > and > > > > its working fine. Is there some problem ? Has > > any > > > one > > > > has configured tomcat on XP Professional.. If > > so, > > > > kindly reply back to this stating the > solution. > > > That > > > > will be very helpful. > > > > > > Are both machines on XP Service Pack 2? Does > the > > > Pro machine have the > > > XP firewall enabled, but the home one not? The > XP > > > firewall could easily > > > prevent access on port 8080 and not tell you. > > > > > > - Peter > > > > > > > > > - > > > To unsubscribe, e-mail: > > > [EMAIL PROTECTED] > > > For additional commands, e-mail: > > > [EMAIL PROTECTED] > > > > > > > > > > > > > > > > __ > > Do you Yahoo!? > > Meet the all-new My Yahoo! - Try it today! > > http://my.yahoo.com > > > > > > > > > - > > To unsubscribe, e-mail: > > [EMAIL PROTECTED] > > For additional commands, e-mail: > > [EMAIL PROTECTED] > > > > > - > > To unsubscribe, e-mail: > > [EMAIL PROTECTED] > > For additional commands, e-mail: > > [EMAIL PROTECTED] > > > > > > > > > __ > Do you Yahoo!? > Meet the all-new My Yahoo! - Try it today! > http://my.yahoo.com > > > > - > To unsubscribe, e-mail: > [EMAIL PROTECTED] > For additional commands, e-mail: > [EMAIL PROTECTED] > > > - > To unsubscribe, e-mail: > [EMAIL PROTECTED] > For additional commands, e-mail: > [EMAIL PROTECTED] > >