Re: my question: how to make tomcat6 and java1.6 more effect
James liu wrote: i use windows。 Good for you! Now, just a touch more information and someone might be able to help... p smime.p7s Description: S/MIME Cryptographic Signature
Re: my question: how to make tomcat6 and java1.6 more effect
I have web and back program. web i use php+apache back: i use tomcat+ solr php create xml and curl it to tomcat...this process will take more cpu(i tract it by windows monitor,cpu will taked up with current process, and this process will take bigest cpu resource) but this pc should do other work(like people search something),,so how to let index process not take more cpu resource...like limit it to take defined cpu resource. I m tomcat newer, i just know how to limit tomcat take cpu. Maybe other way can fix it when i wanna index and search can do in the same time. They will not affect each other like now.
Re: Strange characters appear in my compiled JSP files - Problem solved
Thanks for your answers, and especially to Rashmi. You were right: my text editor (Ultra Edit) was to blame. After copying the plain text to another editor, the problem was solved. From: Rashmi Rubdi [EMAIL PROTECTED] Reply-To: Tomcat Users List users@tomcat.apache.org To: Tomcat Users List users@tomcat.apache.org Subject: Re: Strange characters appear in my compiled JSP files Date: Thu, 15 Mar 2007 06:33:12 -0700 (PDT) I had a similar problem with one of the JSPs, the only way I could solve it was, copy the original JSP's source code into another plain-text editor like jEdit (or any editor that doesn't alter text, or has unusual encoding) then, delete the JSP file , and re-create a new JSP with the same name and re-paste the text from jEdit, perform a clean build. The problem could most likely be occuring because the editor or some other application might have inserted those characters. Also have this %@ page contentType=text/html;charset=UTF-8 language=java % on top of the JSP. -Rashmi - Original Message From: Langas de los Langas [EMAIL PROTECTED] To: users@tomcat.apache.org Sent: Thursday, March 15, 2007 8:29:16 AM Subject: Strange characters appear in my compiled JSP files Hello to everyone. Sorry if my English isn't perfect. I have a problem with Tomcat for which I have found explanation neither in the FAQ, nor searching the web, nor asking other programmers... So, I guess you're my only hope. I have developed a JSP application in Tomcat 5.5, and everything is OK with it when you use Microsoft Internet Explorer; but, in a couple of pages, with Mozilla Firefox and Netscape, these characters appeared at the top of the page (and at the beginning of the source code):  All the JSP files have the same structure, the Java code is virtually the same, with differences just in the HTML. Looking at the Java source code of the pages, (at Tomcat 5.5\work\Catalina\localhost\tarific\org\apache\jsp - 'tarific' being the name of the application) I found the cause: the pages that work fine include the next fragment of code: try { _jspxFactory = JspFactory.getDefaultFactory(); response.setContentType(text/html; charset=iso-8859-1); pageContext = _jspxFactory.getPageContext(this, request, response, null, true, 8192, true); _jspx_page_context = pageContext; application = pageContext.getServletContext(); config = pageContext.getServletConfig(); session = pageContext.getSession(); out = pageContext.getOut(); _jspx_out = out; out.write('\r'); out.write('\n'); But the three pages that don't work properly have this code, instead: try { _jspxFactory = JspFactory.getDefaultFactory(); response.setContentType(text/html; charset=iso-8859-1); pageContext = _jspxFactory.getPageContext(this, request, response, null, true, 8192, true); _jspx_page_context = pageContext; application = pageContext.getServletContext(); config = pageContext.getServletConfig(); session = pageContext.getSession(); out = pageContext.getOut(); _jspx_out = out; out.write(\r\n); Which leads me me to my question: can anyone tell me where to find information about this strange behaviour of the compiler, so I can prevent this from happening? Thank you all for your attention. _ Dale rienda suelta a tu tiempo libre. Mil ideas para exprimir tu ocio con MSN Entretenimiento. http://entretenimiento.msn.es/ - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] It's here! Your new message! Get new email alerts with the free Yahoo! Toolbar. http://tools.search.yahoo.com/toolbar/features/mail/ - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ Un amor, una aventura, compañía para un viaje. Regístrate gratis en MSN Amor Amistad. http://match.msn.es/match/mt.cfm?pg=channeltcid=162349 - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Another question about filter
Now I want to change responses by use of a filter. Firstly, it will remember the request url, based on the url, it gets the content of one file and append the content of this file to the responses. Here, the content appended is not correct and it becomes into weird characters. I do not know why. Is there somebody encountering such kind of things ? Thanks Erica - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
disable security manager
Hello all, i have a tomcat 5.5.9 instance with security manager enabled. Can someone tell-me how to disable it? Thanks's in advance Hernâni - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Image File redirection with Tomcat5.5
I've got an application that reads from a collection of data in a directory outside the WEB-INF directory. I am able to read the data and use it to create an html stream to send to the user. This part is working well. Now, I'd like to include graphics (jpegs, for example), and when I build img elements that have links to the real location of the graphic (with file:///c:/wherever/my.jpg) they work in IE and fail in Firefox. My thought is that FireFox is asking Tomcat for the graphics file and it is trying to find it relative to the WEB-INF directory, and failing. Is there a way to spacify a mapping capability for images in Tomcat? Is there a way to have some servlet code to receive requests for an image, locate the file and pass it to the browser? Thanks. Dave Patterson - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Servlet Caching
Hi, I have a servlet which connects to a database; once the connection is made I pass a connection object into another class which uses this object to execute queries on the database. When i run the servlet my queries are executed fine, when i try to run the application for a second time my class executing the queries doesn't work - it appears that it doesnt recieve the connection object properly it bombs out at the stage stmt = conn.createStatement(); I am creating a connention within the inint() method of my servlet. When i re-start tomcat everything works fine again - this leads me to believe hat i have connection caching issuse. I have set the context param in server.xml to reloadable = true (not sure if this makes any difference) I am also not using a connection pool to connect to my database. I am using tomcat v.4.0 with Java 1.4 Any advice is appreciated Cheers Natasha This message has been checked for viruses but the contents of an attachment may still contain software viruses, which could damage your computer system: you are advised to perform your own checks. Email communications with the University of Nottingham may be monitored as permitted by UK legislation. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Servlet Caching
Tim Lucia wrote: -Original Message- From: Natasha N Wright [mailto:[EMAIL PROTECTED] Sent: Friday, March 16, 2007 6:08 AM To: Tomcat Users List Subject: Servlet Caching Hi, I have a servlet which connects to a database; once the connection is made I pass a connection object into another class which uses this object to execute queries on the database. When i run the servlet my queries are executed fine, when i try to run the application for a second time my class executing the queries doesn't work - it appears that it doesnt recieve the connection object properly it bombs out at the stage stmt = conn.createStatement(); What exception are you getting? Connection closed? Odds are very good you closed the connection somewhere. Per the servlet spec, init() is called once when the servlet is initialized. It is generally a bad idea to use a single connection in a servlet as all threads running in that instance will be forced to use that connection, which leads to synchronization issues. It is far better to have a connection per request, allocated from a connection pool. ...which is dead easy to configure via JNDI http://tomcat.apache.org/tomcat-4.1-doc/jndi-datasource-examples-howto.html I think we'd all recommend pretty strongly that you upgrade your version of Tomcat to something newer if you can. If you're stuck with Java 1.4, then go for 5.0.latest (4.0 is , 4.1.n is better). If you can install Java 1.5+ and go for 5.5 or 6.0 then all the better. The J1.5+ TC5.5+ combo is faster, better... Tim I am creating a connention within the inint() method of my servlet. When i re-start tomcat everything works fine again - this leads me to believe hat i have connection caching issuse. I have set the context param in server.xml to reloadable = true (not sure if this makes any difference) I am also not using a connection pool to connect to my database. I am using tomcat v.4.0 with Java 1.4 Any advice is appreciated Cheers Natasha This message has been checked for viruses but the contents of an attachment may still contain software viruses, which could damage your computer system: you are advised to perform your own checks. Email communications with the University of Nottingham may be monitored as permitted by UK legislation. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] smime.p7s Description: S/MIME Cryptographic Signature
Server DB Connects are very slow after restart
Hello, I have trouble with my tomcat server 5.5.9, java 1.5 and oracle db 9i. CATALINA_OPTS=-Xmx1900m -Xms256m -XX:MaxPermSize=256m -XX:ReservedCodeCacheSize=64m -Dcom.sun.management.jmxremote After the restart of the server the db connects from my webapps are very slow. I can't see why no trace in the logs, enough physical memory The log file is not too big. What can I check to find out what is wrong? Cheers, Pete - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Same session for one IP
None that I no of. More to the point, it's a security issue to have all the browsers behind one IP share a common session. Witness how cable routers can share one IP with an entire apartment building. Would you really want your neighbor with the super loud metal rock to see your credit card statements? All browser windows spawned from a single process can share (and often do to the frustration of some web developers). So, if you use New Window or Ctrl-N from within IE you'll get the same session as the window that started the session. Firefox does the same thing regardless of whether you open from Explorer or New Window in the File menu. Is there a reason you need to guarantee all the browsers from a given user have the exact same session? --David kz wrote: Hi, Is there any option in Tomcat which can assign a new session ID only if the IP address is changed and not a browser window? Actually right now a new session ID comes in request for every new browser window (even if the IP address is same). Is there any option to make Tomcat assign new session ID only if IP address is changed and the session remains the same even if there are multiple browser windows hitting the server? Thank you so much. Khurram. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Image File redirection with Tomcat5.5
From: David R. Patterson [mailto:[EMAIL PROTECTED] Subject: Image File redirection with Tomcat5.5 Now, I'd like to include graphics (jpegs, for example), and when I build img elements that have links to the real location of the graphic (with file:///c:/wherever/my.jpg) they work in IE and fail in Firefox. This is a bug (feature?) in Firefox - if you use four leading slashes, the file: reference should work. However, this begs the question: why are you generating local file system references for such images? Then can only work when the browser is running on the same system as the server. You webapp should be generating links that Tomcat can process; if you want to keep these separate from the app, treat the images as a separate, static-content only webapp deployed under Tomcat. Put an imageAppName.xml file in conf/Catalina/[host] containing a Context element with a docBase attribute pointing to the absolute path of the image directory. - 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 start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Image File redirection with Tomcat5.5
Caldarale, Charles R wrote: From: David R. Patterson [mailto:[EMAIL PROTECTED] Subject: Image File redirection with Tomcat5.5 Now, I'd like to include graphics (jpegs, for example), and when I build img elements that have links to the real location of the graphic (with file:///c:/wherever/my.jpg) they work in IE and fail in Firefox. This is a bug (feature?) in Firefox - if you use four leading slashes, the file: reference should work. However, this begs the question: why are you generating local file system references for such images? Then can only work when the browser is running on the same system as the server. You webapp should be generating links that Tomcat can process; if you want to keep these separate from the app, treat the images as a separate, static-content only webapp deployed under Tomcat. Put an imageAppName.xml file in conf/Catalina/[host] containing a Context element with a docBase attribute pointing to the absolute path of the image directory. - 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 start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Thanks for the comment. For the time being this application is for a single, local user. I'll investigate the imageAppName.xml approach. That is probably the missing link I was unable to find. Dave Patterson - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
SSL on Apache is falling out - no errors...
Sorry for the resend, but it's nice to have a subject on this as well :~ Hello, I've got a system Apache on a NetWare 6.5 SP6 server where we're experiencing problems with Apache listening on 443. Initially HTTPS is working fine, but suddenly Apache is not listening anymore on port 443. Apache nor NetWare is giving any errors, Apache2.nlm is still running and working fine on port 80. When this occurs we have to stop Apache and restart (ap2webdn and ap2webup), then port 443 is up again - for a while. As this is an Apache problem, I give a shot that someone on this list can help me. Haven't had luck on other lists... Anyone have experience with this type of error? Any ideas on where to look?? Best regards, Patrick Frontéri Frontéri Network Consulting - http://fronteri.com ( http://fronteri.com/ ) #--- GroupWiseR of Norway #--- Part of the NetworkPartners.no Collaboration mobile: +47 9092 9470 fax: +47 6399 2600 #- Master CNI, GWAVA Certified, CNS, CCSI, CQS, CCNP, INFOSEC (by NSA CNSS), MCP, CLS #-
AW: Server DB Connects are very slow after restart
Damn, this isn't tomcat's fault. We got network issues. ;o( -Pete -Ursprüngliche Nachricht- Von: Peter Neu [mailto:[EMAIL PROTECTED] Gesendet: Freitag, 16. März 2007 12:04 An: 'Tomcat Users List' Betreff: Server DB Connects are very slow after restart Hello, I have trouble with my tomcat server 5.5.9, java 1.5 and oracle db 9i. CATALINA_OPTS=-Xmx1900m -Xms256m -XX:MaxPermSize=256m -XX:ReservedCodeCacheSize=64m -Dcom.sun.management.jmxremote After the restart of the server the db connects from my webapps are very slow. I can't see why no trace in the logs, enough physical memory The log file is not too big. What can I check to find out what is wrong? Cheers, Pete - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: apache-tomcat-6.0.10 OutOfMemoryError
hi aces i am giving this reply with hope that it wont be too childish, if it is useful just enjoy it or else just ignore it finally { try { System.out.println(inside finally); if (rs != null) { rs.close(); rs=null; } System.out.println(final); } catch (SQLException e){System.out.println(exception in closing + e.getMessage()); } here rs is the object reference once the http request and response is over there is no need for this object reference, so we can assign rs=null, the basic logic behind this is rs.close() statement is not ready for garbage collection, it will be available only when it is set to rs=null. If the heap size reaches the maximum, garbage collector put in to action. In some situation rs will not be reachable, if rs is put to null means it will be easily collected by the garbage collector. One more way to over memory.out.oferror is to run the garbage collector at reasonable intervals. bye with regards prakash.S On 3/15/07, Caldarale, Charles R [EMAIL PROTECTED] wrote: From: Vinu Varghese [mailto:[EMAIL PROTECTED] Subject: Re: apache-tomcat-6.0.10 OutOfMemoryError Please check this http://my.opera.com/karmazilla/blog/2007/03/13/good-riddance-p ermgen-outofmemoryerror Unfortunately, the blogger is simply wrong in his premise that the default GC mechanism won't collect objects in the PermGen. All Sun JVMs have always garbage collected unreachable class objects unless prevented by command line options. It's only the relatively new concurrent GC implementation that does not, by default, free up dead classes; for that, you need the extra parameters as described in the blog. Enabling concurrent GC can have some side effects: it's less efficient, requiring more CPU cycles to get the job done, and requires more frequent, albeit very short, app pauses. Whether it's better in your particular environment depends entirely on the requirements of that environment. - 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 start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Thanks and Regards S.Prakash
RE: SSL on Apache is falling out - no errors...
From: Patrick Frontéri [mailto:[EMAIL PROTECTED] Subject: SSL on Apache is falling out - no errors... I've got a system Apache on a NetWare 6.5 SP6 server where we're experiencing problems with Apache listening on 443. Apache is an open source software organization, with numerous products. If you're referring to the httpd product, you're on the wrong mailing list. If you're referring to Tomcat, then provide some real information, such as version, Connector configuration, SSL config, etc. - 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 start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Server DB Connects are very slow after restart
we had similar connection problems with Oracle here. At first I changed drivers, which I thought would help, then while I was furiously trying to implement connection pooling, which I ended up doing, we discovered there were big problems with the network connection to Oracle, as well as the listeners cache on the DB being full. They rebooted the oracle server and all was immediately well. Might see if they can try that where you are. -Original Message- From: Peter Neu [mailto:[EMAIL PROTECTED] Sent: Friday, March 16, 2007 6:04 AM To: 'Tomcat Users List' Subject: Server DB Connects are very slow after restart Hello, I have trouble with my tomcat server 5.5.9, java 1.5 and oracle db 9i. CATALINA_OPTS=-Xmx1900m -Xms256m -XX:MaxPermSize=256m -XX:ReservedCodeCacheSize=64m -Dcom.sun.management.jmxremote After the restart of the server the db connects from my webapps are very slow. I can't see why no trace in the logs, enough physical memory The log file is not too big. What can I check to find out what is wrong? Cheers, Pete - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: apache-tomcat-6.0.10 OutOfMemoryError
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Prakash, prakash shanmugam wrote: One more way to over memory.out.oferror is to run the garbage collector at reasonable intervals. This is bad advice: the garbage collector will run itself at appropriate intervals. Also, there's no way to force garbage collection to occur. Lastly, putting GC calls in your code can lead you to believe that you are actually accomplishing something when you really aren't. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.7 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFF+rCy9CaO5/Lv0PARAmL+AJ973q/0XiT816bBVpOL9YsQ3pbwMACbBT+f qix2yZKUYFKdQseUlxoDqS4= =bOjJ -END PGP SIGNATURE- - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Server DB Connects are very slow after restart
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 All, Propes, Barry L [GCG-NAOT] wrote: we had similar connection problems with Oracle here. At first I changed drivers, which I thought would help, then while I was furiously trying to implement connection pooling, which I ended up doing, we discovered there were big problems with the network connection to Oracle, as well as the listeners cache on the DB being full. They rebooted the oracle server and all was immediately well. Might see if they can try that where you are. If rebooting the database server worked, you might be leaking cursors or even connections. IIRC, Oracle won't release a cursor on the server unless you actually call ResultSet.close. So, even if you don't have a connection leak, you still might have a cursor leak. And, of course, if you have a connection leak -- even one that doesn't snowball over time... like if you have one that runs on startup only but gets leaked -- the server will never drop that connection (at least, this was the behavior of Oracle last time I used it with Java). Connections on the server side require obscene amounts of memory, and you can really bring your Oracle server to its knees with leaky connections and/or cursors. Maybe that doesn't help, but I figured I'd point it out, anyway. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.7 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFF+rGa9CaO5/Lv0PARAqfMAJ0XzFWKZ+3enY0ge6YPBogaMLHAeACfUmmX nb0jR7W/j1g7TFwug8RaKRw= =fORQ -END PGP SIGNATURE- - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: org.apache.jasper.compiler.DefaultErrorHandler.javacError
On 3/15/07, Raghuveer [EMAIL PROTECTED] wrote: C:\Program Files\Apache Group\Tomcat 4.1\work\Standalone\localhost\edrsystem\jsp \EDR\EDRSelection_jsp.java:123: cannot access pwDashUtil.EDRUtil.EDRUtil bad class file: C:\Program Files\Apache Group\Tomcat 4.1\webapps\edrsystem\WEB-I NF\classes\pwDashUtil\EDRUtil\EDRUtil.class class file has wrong version 49.0, should be 48.0 There's the error message. What it means is that it's trying to process the JSP file using a Java version 1.4 compiler, but the class EDRUtil was compiled with a newer version of Java (1.5) so the older compiler can't understand it. You should use the same version of Java to compile everything. Either use a 1.4 compiler for your Java classes, or use a newer version of Tomcat that is compatible with version 1.5 class files. -- Len - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Server DB Connects are very slow after restart
I'm almost positive we did that (I did that); contributed to that, though not alone. We may have had some cursor leaks as well. Rebooting alone didn't sufficethey did tweak some stuff to how it handles incoming connections. I imagine they either hardcoded some IP addresses as acceptable always, so that the DB listeners would always see those. I think that was a big problem, was that out of all 32 listeners they had, two recognized the IP address, the rest either had run out of memory or maybe the cursor leaks potentially caused them to run out of memory? -Original Message- From: Christopher Schultz [mailto:[EMAIL PROTECTED] Sent: Friday, March 16, 2007 10:03 AM To: Tomcat Users List Subject: Re: Server DB Connects are very slow after restart -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 All, Propes, Barry L [GCG-NAOT] wrote: we had similar connection problems with Oracle here. At first I changed drivers, which I thought would help, then while I was furiously trying to implement connection pooling, which I ended up doing, we discovered there were big problems with the network connection to Oracle, as well as the listeners cache on the DB being full. They rebooted the oracle server and all was immediately well. Might see if they can try that where you are. If rebooting the database server worked, you might be leaking cursors or even connections. IIRC, Oracle won't release a cursor on the server unless you actually call ResultSet.close. So, even if you don't have a connection leak, you still might have a cursor leak. And, of course, if you have a connection leak -- even one that doesn't snowball over time... like if you have one that runs on startup only but gets leaked -- the server will never drop that connection (at least, this was the behavior of Oracle last time I used it with Java). Connections on the server side require obscene amounts of memory, and you can really bring your Oracle server to its knees with leaky connections and/or cursors. Maybe that doesn't help, but I figured I'd point it out, anyway. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.7 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFF+rGa9CaO5/Lv0PARAqfMAJ0XzFWKZ+3enY0ge6YPBogaMLHAeACfUmmX nb0jR7W/j1g7TFwug8RaKRw= =fORQ -END PGP SIGNATURE- - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Image File redirection with Tomcat5.5
David R. Patterson wrote: Caldarale, Charles R wrote: You webapp should be generating links that Tomcat can process; if you want to keep these separate from the app, treat the images as a separate, static-content only webapp deployed under Tomcat. Put an imageAppName.xml file in conf/Catalina/[host] containing a Context element with a docBase attribute pointing to the absolute path of the image directory. Thanks for the comment. For the time being this application is for a single, local user. I'll investigate the imageAppName.xml approach. That is probably the missing link I was unable to find. In simple words: 1. You have your webapp deployed with /app context. 2. You have images stored outside app's directory, i.e. in /home/images directory. 3. You generate img/ elements with src attribute pointing to /images, i.e. img src=/images/image1.jpg/ which refers to /home/images/image1.jpg file 4. Create file images.xml in Tomcat's conf/Catalina/localhost directory (may vary depending on hostname used) with following content: Context docBase=/home/images /Context -- Mikolaj Rydzewski [EMAIL PROTECTED] smime.p7s Description: S/MIME Cryptographic Signature
Tomcat Clustering
Hi, I would like to know if somebody can help me with my tomcat clustering. I have to applications running under webapps. The clustering is set up between 2 web servers. The one application running in this setup is running perfectly the other application is extremely slow. Any suggestions or reason why this is the situation? Kr Neil meyer - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Possible JSTL/EL bug in 6.0.10
Hi Gerald, I wrote the example [1] please verify your web.xml and faces-config.xml with example [1] And make sure to remove all tld file from WEB-INF folder and also mare sure you delete old jstl.jar Regards, Ali Gerald Holl wrote: Rémy Maucherat wrote: On 3/8/07, Gerald Holl [EMAIL PROTECTED] wrote: Well, I think I can't give you access to all the details of our (secret) project. Anyway, thanks for the offer. Ok, I am obviously not going to look at your application. What I meant is I would look at a minimal war (containing only one JSP). I tried the example from [1]and it works ... I have no idea what's wrong with my application. Gerald [1] http://groups.google.com/group/javaee5/web/setup-enironment-tomcat-6-jsf-1-2-jstl-1-2 - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/Possible-JSTL-EL-bug-in-6.0.10-tf3361198.html#a9518081 Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat Administrator
Hi All, I'm working with Tomcat 5.5.17 installed on a Solarix box, and have successfully accessed the Tomcat Manager console. However, when I try to go to the Tomcat Adminsitration console I get Tomcat's administration web application is no longer installed by default. Download and install the admin package to use it. What should I download and where? Thanks, Fabian
Tomcat SSL Multiple Instances
Hi everybody, I wanna set one application with ssl support, but there are others applitations on the same apache server; what do I do for configure only this application with ssl support, I should install other tomcat instance? or how do I do for configure only one application with ssl support and the other ones not. Tanks -- Gracias. Atentamente, Carlos Arturo Trujillo Silva Ingeniero de Sistemas
RE: Tomcat SSL Multiple Instances
From: Cartman [mailto:[EMAIL PROTECTED] Subject: Tomcat SSL Multiple Instances or how do I do for configure only one application with ssl support and the other ones not. Read the servlet spec: http://jcp.org/aboutJava/communityprocess/final/jsr154/index.html Section 12.8 discusses how to set the transport-guarantee in the WEB-INF/web.xml file. - 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 start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat Administrator
You'd download it http://tomcat.apache.org/download-55.cgi IMHO you're better off without it though Filip Fabian Arocena wrote: Hi All, I'm working with Tomcat 5.5.17 installed on a Solarix box, and have successfully accessed the Tomcat Manager console. However, when I try to go to the Tomcat Adminsitration console I get Tomcat's administration web application is no longer installed by default. Download and install the admin package to use it. What should I download and where? Thanks, Fabian No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.446 / Virus Database: 268.18.11/722 - Release Date: 3/14/2007 3:38 PM - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat Administrator
From: Filip Hanik - Dev Lists [mailto:[EMAIL PROTECTED] Subject: Re: Tomcat Administrator You'd download it http://tomcat.apache.org/download-55.cgi IMHO you're better off without it though For curiosity's sake, why do you say that? It's one of the things I'd like to have available before putting 6.0 into production. - 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 start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: JK 1.2.21 DLL does not work with IIS 6?
Well, I tried the 1.2.22 build. No difference. Same error. Are there any tricks to getting this working that I should be aware of? Considering the fact that Mr. Cory Bestgen has it working, I must be doing something wrong. I would be most grateful if someone could give me some advice. I hesitate to spam this list with my configs and logs, but I'll gladly send them to anyone who might like to offer assistance. Thanks Timothy Dobbins Senior Systems Administrator [EMAIL PROTECTED] 704-733-5545 Premier, Inc http://www.premierinc.com . 2320 Cascade Pointe Blvd. Charlotte, NC 28208 _ From: Dobbins, Tim Sent: Wednesday, March 14, 2007 3:15 PM To: 'users@tomcat.apache.org' Subject: JK 1.2.21 DLL does not work with IIS 6? Greetings, I'm trying to get the 1.2.21 JK connector working with IIS 6 and TomCat 5.5. Thus far, I have not been successful. Is there anyone out there who has successfully configured this? I have followed the documentation to a 'T' and have been frigging around with this for days trying to get it working. As far as I'm concerned, the 1.2.21 version simply does not work. Can somebody please prove me otherwise? I have RTFM and I am NOT a newbie. Based on debug data from the JK, the ISAPI is intercepting the request and catching the uri worker rule. It also appears that the ajp connector is servicing the request. But the response never makes it back through IIS. As a result, the browser displays a generic page can't be displayed error. The IIS logs capture NO data as if the IIS process was never aware that a request was made. Incidentally, I attempted to debug IIS with the new tracing feature available with service pack 1, but I was not able to get the damn tracing working either. I don't know why Microsoft makes everything so damn difficult, but I'll save that for another post elsewhere. :) I have included parts of the JK debug logs below. I can send the complete logs, configuration files and anything else to whomever is interested. The error printed to the logs, HSE_REQ_SEND_RESPONSE_HEADER_EX failed has shown up in a few previous posts. However, in those cases, the error event occurring only after IIS/TomCat had been working properly for a few hours. In my case, it does not work at all and I get that error on this first request. [Wed Mar 14 13:38:38 2007] [22868:21600] [debug] jk_isapi_plugin.c (910): [/servlets-examples/servlet/RequestHeaderExample] is a servlet url - should redirect to local [Wed Mar 14 13:38:38 2007] [22868:21600] [debug] jk_worker.c (321): Maintaining worker local [Wed Mar 14 13:38:38 2007] [22868:21600] [debug] jk_worker.c (114): found a worker local [Wed Mar 14 13:38:38 2007] [22868:21600] [debug] jk_isapi_plugin.c (1098): got a worker for name local [Wed Mar 14 13:38:38 2007] [22868:21600] [debug] jk_ajp_common.c (2329): acquired connection pool slot=0 [Wed Mar 14 13:38:38 2007] [22868:21600] [debug] jk_ajp_common.c (548): ajp marshaling done [Wed Mar 14 13:38:38 2007] [22868:21600] [debug] jk_ajp_common.c (1785): processing local with 2 retries [Wed Mar 14 13:38:38 2007] [22868:21600] [debug] jk_connect.c (335): socket TCP_NODELAY set to On [Wed Mar 14 13:38:38 2007] [22868:21600] [debug] jk_connect.c (433): trying to connect socket 1056 to 10.2.0.163:8009 [Wed Mar 14 13:38:38 2007] [22868:21600] [debug] jk_connect.c (459): socket 1056 connected to 10.2.0.163:8009 [Wed Mar 14 13:38:38 2007] [22868:21600] [debug] jk_ajp_common.c (850): Connected socket 1056 to (10.2.0.163:8009) [Wed Mar 14 13:38:38 2007] [22868:21600] [debug] jk_ajp_common.c (896): sending to ajp13 pos=4 len=527 max=8192 ... ... [Wed Mar 14 13:38:38 2007] [22868:21600] [debug] jk_ajp_common.c (1287): request body to send 0 - request body to resend 0 [Wed Mar 14 13:38:39 2007] [22868:21600] [debug] jk_ajp_common.c (1043): received from ajp13 pos=0 len=80 max=8192 ... ... [Wed Mar 14 13:38:39 2007] [22868:21600] [debug] jk_ajp_common.c (603): status = 200 [Wed Mar 14 13:38:39 2007] [22868:21600] [debug] jk_ajp_common.c (610): Number of headers is = 2 [Wed Mar 14 13:38:39 2007] [22868:21600] [debug] jk_ajp_common.c (666): Header[0] [Content-Type] = [text/html;charset=ISO-8859-1] [Wed Mar 14 13:38:39 2007] [22868:21600] [debug] jk_ajp_common.c (666): Header[1] [Content-Length] = [1258] [Wed Mar 14 13:38:39 2007] [22868:21600] [error] jk_isapi_plugin.c (588): HSE_REQ_SEND_RESPONSE_HEADER_EX failed ... ... [Wed Mar 14 13:38:39 2007] [22868:21600] [error] jk_isapi_plugin.c (680): WriteClient failed with 2746 [Wed Mar 14 13:38:39 2007] [22868:21600] [info] jk_ajp_common.c (1447): Writing to client aborted or client network problems [Wed Mar 14 13:38:39 2007] [22868:21600] [info] jk_ajp_common.c (1846): (local) request failed, because of client write error without recovery in send loop attempt=0
Non-Latin Character Display
I have several Java web applications on Tomcat where non-Latin characters function properly with only one exception. Non-Latin characters, Chinese in this case, can be displayed properly thorough the JSTL message tag. The related configuration are followings: HTML: JSP: %@ page contentType=text/html;charset=UTF-8 language=java % The applications can take Chinese character inputs correctly with a filter of converting request character encoding to UTF-8. The only problem is that Chinese characters don't displayed properly when they are directly typied on a JSP file. I have set the Eclipse file text encoding to utf-8 and the characters are shown correctly in the IDE. I believe that is a TC configuration related issue. After having set JAVA_OPTS= -Dfile.encoding=UTF-8 in the catalina.bat file, nothing has changed. How to solve this problem? Thanks in advance. _ Exercise your brain! Try Flexicon. http://games.msn.com/en/flexicon/default.htm?icid=flexicon_hmemailtaglinemarch07 - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat Administrator
Caldarale, Charles R wrote: From: Filip Hanik - Dev Lists [mailto:[EMAIL PROTECTED] Subject: Re: Tomcat Administrator You'd download it http://tomcat.apache.org/download-55.cgi IMHO you're better off without it though For curiosity's sake, why do you say that? It's one of the things I'd like to have available before putting 6.0 into production. Mainly cause it wasn't done right. If I understood the way it was done correct, it was done backwards. The admin app, changed the config in the running server, then the running server needed an extra module to save itself into a file format. Obviously, the admin app and the store module get out of synch faster than I can type this email. The correct, and 1000 times easier way, would just be to write an admin app, that follows a ruleset, and writes an external file. I have a hard time trying to figure out why the live server has to be involved at all, and why it has to overwrite the existing server.xml file The storeconfig module has not made it to TC6, and I doubt it ever will, instead I'm hoping that someone will step up and write an admin app the easy way. Filip - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: JK 1.2.21 DLL does not work with IIS 6?
Dobbins, Tim wrote: Well, I tried the 1.2.22 build. No difference. Same error. Are there any tricks to getting this working that I should be aware of? I'm really not sure why it doesn't work for you. Can you post the log from 1.2.22 where WriteClient fails? Regards, Mladen. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Virtual hosts - Context in META-INF (fails), server.xml (works)....?
Hello, I am trying to run several virtual hosts using Tomcat 5.5.x and am having trouble with the Context tag. I would like it to be in a file called context.xml within the META-INF directory of my .war file. When I put it in the .war file, upon restarting tomcat, the context.xml file ends up in... $CATALINA_HOME/conf/Catalina/localhost/domain.xml (where domain is my domain name without the .com bit). This does not work, I get a 400 error when trying to browse the domain. When I remove the context.xml file from the META-INF (and resulting .war) and add the Context tag to the Host tag in server.xml, it all works and my domain is reachable. However, I do not want the Context tag in server.xml. In my context.xml tag, both my path and docBase are set to which is how I understand they should be set (believe me, I've tried very many combinations of these two attributes as well as eg. privileged=true, etc.). Having looked at hundreds of web pages, I cannot find a single working example demonstrating the successful inclusion of context.xml in the META-INF directory and subsequent deployment. If someone out there has got it working for Tomcat 5.5.x, I would appreciate hearing about it (please be as specific as possible because I'm thinking the devil is in the details). Thanks, Matthew - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Should EL (Expression Language) expressions result in the TagData.REQUEST_TIME_VALUE object?
I don't know about Custom Tag Libraries, but I do know about installing and configuring JSTL 1.1 on Tomcat 5.5.x Have you tried something like this with JSTL , before attempting Custom Tags ? c:set var=someVariable value=some string value/ ${someVariable} In the above case do you see some string value , or do you see ${someVariable} ? If you see ${someVariable} , then EL is not evaluating because your project's web.xml might not be configured correctly to Servlet 2.4 spec. Your project's web.xml for Tomcat 5.5 should be like this: ?xml version=1.0 encoding=UTF-8? web-app version=2.4 xmlns=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; /web-app For JSTL1.1 and Custom Tag libs I recommend these forums/ mailing lists: http://forum.java.sun.com/forum.jspa?forumID=45start=0 http://jakarta.apache.org/taglibs/#MailingLists -Rashmi - Original Message From: David Diehl [EMAIL PROTECTED] To: Tomcat Users List users@tomcat.apache.org Sent: Friday, March 16, 2007 2:26:32 PM Subject: Re: Should EL (Expression Language) expressions result in the TagData.REQUEST_TIME_VALUE object? Sorry to be a pest, but no replies in 2 days. Any tomcat developers willing to help me? Should I just post this as a bug? Any advice is appreciated. thanks. dave --- David Diehl [EMAIL PROTECTED] wrote: I have a custom tag with attributes defined in the TLD file as allowing run-time expression values, meaning: rtexprvaluetrue/rtexprvalue I also have a TagExtraInfo class that I am using to validate the values provided. Inside my TagExtraInfo sub-class I have code such as this: Object attr = data.getAttribute(groupSize); if ( attr != null !attr.equals(TagData.REQUEST_TIME_VALUE) { and so on. When, in my JSP, I provide attribute values such as %= 10 * 14 % (JSP scriplet) I do indeed get the TagData.REQUEST_TIME_VALUE object back on this call. However, when I instead have an EL value, something like ${groupSizeValue}, I do not received the REQUEST_TIME_VALUE distinguished object back. I receive a String object, containing the text ${groupSizeValue}. Is this the correct behavior? Everything I have read (books, Google searches, etc.) seems to point me in the thinking that this is a bug. From looking at the tomcat 5.5.20 and 5.5.23 source code, I see where the JspAttribute (nested class of Node) is created. In the Validator class, line 1117, is the creation for this object passing the constant false for the expr argument (5th argument to the 1st ctor of this class). I believe it is line 1117 that would be getting executed since the if statement preceding this is: if (el.containsEL() !pageInfo.isELIgnored()) { So, my question is, why would an EL expression when EL is not being ignored be considered not an expression? Thanks in advance. dave Now that's room service! Choose from over 150,000 hotels in 45,000 destinations on Yahoo! Travel to find your fit. http://farechase.yahoo.com/promo-generic-14795097 - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Food fight? Enjoy some healthy debate in the Yahoo! Answers Food Drink QA. http://answers.yahoo.com/dir/?link=listsid=396545367 - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Sucker-punch spam with award-winning protection. Try the free Yahoo! Mail Beta. http://advision.webevents.yahoo.com/mailbeta/features_spam.html - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: OutOfMemoryError
Thanks Kevan. I tried changing stack size (ulimit -s 8192) to 8 MB and thought it should sovle the problem, but it did not..rather it gave error: Previous stack size was 10240 kbytes when the application works with -Xmx704m Any more thoughts? # # An unexpected error has been detected by HotSpot Virtual Machine: # # SIGSEGV (0xb) at pc=0xbf0bd45e, pid=11734, tid=16384 # # Java VM: Java HotSpot(TM) Server VM (1.5.0_06-b05 mixed mode) # Problematic frame: # [error occurred during error reporting, step 60, id 0xb] # An error report file with more information is saved as hs_err_pid11734.log # # If you would like to submit a bug report, please visit: # http://java.sun.com/webapps/bugreport/crash.jsp # # # An unexpected error has been detected by HotSpot Virtual Machine: # # SIGSEGV (0xb) at pc=0xbefbd45e, pid=11821, tid=16384 # # Java VM: Java HotSpot(TM) Server VM (1.5.0_06-b05 mixed mode) # Problematic frame: # [error occurred during error reporting, step 60, id 0xb] # An error report file with more information is saved as hs_err_pid11821.log # # If you would like to submit a bug report, please visit: # http://java.sun.com/webapps/bugreport/crash.jsp Rahul Tandon -Original Message- From: Kevan Miller [mailto:[EMAIL PROTECTED] Sent: Thursday, March 15, 2007 10:05 PM To: Tomcat Users List Subject: Re: OutOfMemoryError Rahul, There's an inverse relationship between your maximum heap size and the number of threads that can be allocated within your process. Your OS (and Java) will allocate memory for each Thread you create. By increasing your max heap, you're actually reducing the amount of memory available for thread creation. --kevan - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Explicit header definition
If I want to remove or alter headers that are the default for a specific servlet, webapp or instance of tomcat, how might I? Either programmtically or in a config file. ie: - remove or replace the Date: header. - remove or replace the Server: header. The reasoning is for servicing a special client's requests. I would still want other browser serving servlets in the same tomcat instance to use the normal headers. Thanks. PK - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Should EL (Expression Language) expressions result in the TagData.REQUEST_TIME_VALUE object?
Oh, yes, tomcat 5.5.x is working fine for me regarding EL. Thanks for the advice on the other mailing lists. I'll give them a try. dave --- Rashmi Rubdi [EMAIL PROTECTED] wrote: I don't know about Custom Tag Libraries, but I do know about installing and configuring JSTL 1.1 on Tomcat 5.5.x Have you tried something like this with JSTL , before attempting Custom Tags ? c:set var=someVariable value=some string value/ ${someVariable} In the above case do you see some string value , or do you see ${someVariable} ? If you see ${someVariable} , then EL is not evaluating because your project's web.xml might not be configured correctly to Servlet 2.4 spec. Your project's web.xml for Tomcat 5.5 should be like this: ?xml version=1.0 encoding=UTF-8? web-app version=2.4 xmlns=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; /web-app For JSTL1.1 and Custom Tag libs I recommend these forums/ mailing lists: http://forum.java.sun.com/forum.jspa?forumID=45start=0 http://jakarta.apache.org/taglibs/#MailingLists -Rashmi - Original Message From: David Diehl [EMAIL PROTECTED] To: Tomcat Users List users@tomcat.apache.org Sent: Friday, March 16, 2007 2:26:32 PM Subject: Re: Should EL (Expression Language) expressions result in the TagData.REQUEST_TIME_VALUE object? Sorry to be a pest, but no replies in 2 days. Any tomcat developers willing to help me? Should I just post this as a bug? Any advice is appreciated. thanks. dave --- David Diehl [EMAIL PROTECTED] wrote: I have a custom tag with attributes defined in the TLD file as allowing run-time expression values, meaning: rtexprvaluetrue/rtexprvalue I also have a TagExtraInfo class that I am using to validate the values provided. Inside my TagExtraInfo sub-class I have code such as this: Object attr = data.getAttribute(groupSize); if ( attr != null !attr.equals(TagData.REQUEST_TIME_VALUE) { and so on. When, in my JSP, I provide attribute values such as %= 10 * 14 % (JSP scriplet) I do indeed get the TagData.REQUEST_TIME_VALUE object back on this call. However, when I instead have an EL value, something like ${groupSizeValue}, I do not received the REQUEST_TIME_VALUE distinguished object back. I receive a String object, containing the text ${groupSizeValue}. Is this the correct behavior? Everything I have read (books, Google searches, etc.) seems to point me in the thinking that this is a bug. From looking at the tomcat 5.5.20 and 5.5.23 source code, I see where the JspAttribute (nested class of Node) is created. In the Validator class, line 1117, is the creation for this object passing the constant false for the expr argument (5th argument to the 1st ctor of this class). I believe it is line 1117 that would be getting executed since the if statement preceding this is: if (el.containsEL() !pageInfo.isELIgnored()) { So, my question is, why would an EL expression when EL is not being ignored be considered not an expression? Thanks in advance. dave Now that's room service! Choose from over 150,000 hotels in 45,000 destinations on Yahoo! Travel to find your fit. http://farechase.yahoo.com/promo-generic-14795097 - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Food fight? Enjoy some healthy debate in the Yahoo! Answers Food Drink QA. http://answers.yahoo.com/dir/?link=listsid=396545367 - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Sucker-punch spam with award-winning protection. Try the free Yahoo! Mail Beta. http://advision.webevents.yahoo.com/mailbeta/features_spam.html - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] It's here! Your new message! Get new email alerts with the free Yahoo! Toolbar.
Re: Kerberose+tomcat
Any luck with single sign on. --- Dhanunjay kumar [EMAIL PROTECTED] wrote: Hello All, i want to use Single Sign On for my application,to achive this i need to use kerberose. how to use krb5LoginModule. thanks for your understanding. Regards Kumar. Be a PS3 game guru. Get your game face on with the latest PS3 news and previews at Yahoo! Games. http://videogames.yahoo.com/platform?platform=120121 - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
creating user url...
Hi fellas, I am looking to develop the following and would be grateful if anyone can offer any assistance as to how I can make it happen - what do i have to read up on etc. ive developed my app in jsf/hibernate and spring and i have this still to work out. I would like to give users access from their own url e.g. www.domain-name.com/~companyname which should be set automatically upon registration (if that is possible). Would be hosting on tomcat. Any advice would be appreciated. thanks kace -- View this message in context: http://www.nabble.com/creating-user-url...-tf3417316.html#a9524122 Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How does one configure Plain host domain url to run web app?
Rashmi Rubdi wrote: You are right, the set-up I've mentioned only works for one application. Perhaps you want to configure multiple virtual hosts. I already use virtual hosts.. There's an example on that here: http://confluence.atlassian.com/display/DOC/Guide+to+using+Apache+Tomcat's+Virtual+Hosts Interesting but.. I already do that, as best as I can tell.. You won't need Apache HTTP connector, just Tomcat is fine I think (not sure). My understanding is that Tomcat by itself is not nearly as a robust and HTTP service.. At least that is what I used to hear, both here and in many other postings and books.. because the above configuration uses name-based virtual hosting, you need to have entries in your DNS server for app1 and app2 that point to the application server .. yes I also do that already.. The problem I'm having is that a java web app is generally called via a context Since there are MANY webapps in the system I can place a single webapp in the root.. therefore how do I map a single host.domain to a virtual host.. Currently I have http://www.mydomain.com/mysite/thecontext ..where mysite is a sub-directory under webapps and thecontext is the context of that web application using JkMount I would like to configure it so that.. http://www.mydomain.com ..also brings up that same webapp.. Make sense..??? I can currently do this by mapping http://www.mydomain.com to an Apache Htdocs virtual host service with a redirect to.. http://otherhost.mydomain.com/mysite/thecontext ..where otherhost is a DNS entry for that domain of which there is also a virtual host in Tomcat. I was hopping I did not have to do this convolluted system, as it is easy to forget what is happening and someone (employee) could easily mess it up.. Is that clearer now..?? Thanks for any ideas or suggestions.. John.. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: creating user url...
I have never implemented such a solution but I know a lot of sites have similar setup. There are two ways you could do it, one would be to create a directory for each company and then drop an index.jsp file in there . A second and perhaps better solution would be to get the path info of the request from javax.servlet.http.HttpServletRequest.getPathInfo(). so in essence whenever a request comes to your servlet, getPathInfo would extract the part that has the company name. Google to get further info. On 3/16/07, kace [EMAIL PROTECTED] wrote: Hi fellas, I am looking to develop the following and would be grateful if anyone can offer any assistance as to how I can make it happen - what do i have to read up on etc. ive developed my app in jsf/hibernate and spring and i have this still to work out. I would like to give users access from their own url e.g. www.domain-name.com/~companyname which should be set automatically upon registration (if that is possible). Would be hosting on tomcat. Any advice would be appreciated. thanks kace -- View this message in context: http://www.nabble.com/creating-user-url...-tf3417316.html#a9524122 Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- talk trash and carry a small stick. PAUL KRUGMAN (NYT)
Re: Same session for one IP
Actually yeah. Im working on a product which requires that only a single client instance can be connected through a machine. Actually I thought if there would be anything in Tomcat which supports this then it wouldve considered the problem you mentioned and would be solving it somehow (using mac address or something). I cannot use the IP address coming in request because of this proxy problem. I have to bind something with the session. Even if tomcat gives me the actual IP address (whic considers the fact that the client machine can be sitting behind proxy) then it would be great. What other options do I have to implement this thing? Regards, Khurram. On 3/16/07, David Smith [EMAIL PROTECTED] wrote: None that I no of. More to the point, it's a security issue to have all the browsers behind one IP share a common session. Witness how cable routers can share one IP with an entire apartment building. Would you really want your neighbor with the super loud metal rock to see your credit card statements? All browser windows spawned from a single process can share (and often do to the frustration of some web developers). So, if you use New Window or Ctrl-N from within IE you'll get the same session as the window that started the session. Firefox does the same thing regardless of whether you open from Explorer or New Window in the File menu. Is there a reason you need to guarantee all the browsers from a given user have the exact same session? --David kz wrote: Hi, Is there any option in Tomcat which can assign a new session ID only if the IP address is changed and not a browser window? Actually right now a new session ID comes in request for every new browser window (even if the IP address is same). Is there any option to make Tomcat assign new session ID only if IP address is changed and the session remains the same even if there are multiple browser windows hitting the server? Thank you so much. Khurram. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How does one configure Plain host domain url to run web app?
John Moore wrote: Thanks for any ideas or suggestions.. A how to has been added to the documentation. http://tomcat.apache.org/tomcat-5.5-doc/virtual-hosting-howto.html Mark - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Newbie..localhost works but not IP
Hi I am total tomcat Newbie..I tried a lot to search for an effective solution for this problem but could not find the solution: I have installed Tomcat 6 on my Windows Xp machine. http://localhost:8080/ works. When I enter http://[myIPaddress]:8080/ from my machine this too works. But when I enter http://[myIPaddress]:8080/ from a different machine, I not able to see the Tomcat homepage. Please provide me a few pointers on this issue. Thanks a lot, Anna -- View this message in context: http://www.nabble.com/Newbie..localhost-works-but-not-IP-tf3417698.html#a9525336 Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Non-Latin Character Display
Thanks, Mark. As I mentioned in my post, I already have the JSP page set as HTML: meta http-equiv=Content-Type content=text/html; charset=utf-8 / JSP: %@ page contentType=text/html;charset=UTF-8 language=java % I use a MVC framework. So, I am not sure anywhere using GET. I have this issue for ages. I haven't been able to resolve. I have to move long text into a message property file to go around this problem. Original Message Follows From: Mark Thomas [EMAIL PROTECTED] Reply-To: Tomcat Users List users@tomcat.apache.org To: Tomcat Users List users@tomcat.apache.org Subject: Re: Non-Latin Character Display Date: Fri, 16 Mar 2007 21:17:37 -0400 Vernon _ wrote: I believe that is a TC configuration related issue. After having set JAVA_OPTS= -Dfile.encoding=UTF-8 There is no need to do this. This setting is read only on some JVMs. Try the following. If you use GET, you'll need to set the encoding in the connector as well. %@ page contentType=text/html; charset=UTF-8 % !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN html head titleCharacter encoding test page/title /head body pData posted to this form was: % request.setCharacterEncoding(UTF-8); out.print(request.getParameter(mydata)); % /p form method=post action=index.jsp input type=text name=mydata input type=submit value=Submit / input type=reset value=Reset / /form /body /html HTH, Mark - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ Watch free concerts with Pink, Rod Stewart, Oasis and more. Visit MSN Presents today. http://music.msn.com/presents?icid=ncmsnpresentstaglineocid=T002MSN03A07001 - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Newbie..localhost works but not IP
if you're trying to access tomcat running on your pc via the internet you'll need to open ports on your router. If both PCs are behind the same router then you should be able to type in your IP and get tomcat. In any case, you should try google for help with networking, the mailing list is for tomcat issues. On 3/16/07, anna24 [EMAIL PROTECTED] wrote: Hi I am total tomcat Newbie..I tried a lot to search for an effective solution for this problem but could not find the solution: I have installed Tomcat 6 on my Windows Xp machine. http://localhost:8080/ works. When I enter http://[myIPaddress]:8080/ from my machine this too works. But when I enter http://[myIPaddress]:8080/ from a different machine, I not able to see the Tomcat homepage. Please provide me a few pointers on this issue. Thanks a lot, Anna -- View this message in context: http://www.nabble.com/Newbie..localhost-works-but-not-IP-tf3417698.html#a9525336 Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- talk trash and carry a small stick. PAUL KRUGMAN (NYT)
RE: Newbie..localhost works but not IP
From: anna24 [mailto:[EMAIL PROTECTED] Subject: Newbie..localhost works but not IP But when I enter http://[myIPaddress]:8080/ from a different machine, I not able to see the Tomcat homepage. If the different machine is on the same LAN segment, the XP firewall may well be blocking the port. You'll have to open up 8080 using the Windows Firewall utility in Control Panel. If the other machine is not on the same LAN segment, something else may be blocking the port, such as your router or your ISP. - 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 start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Non-Latin Character Display
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Vernon, Vernon _ wrote: As I mentioned in my post, I already have the JSP page set as HTML: meta http-equiv=Content-Type content=text/html; charset=utf-8 / JSP: %@ page contentType=text/html;charset=UTF-8 language=java % Mark was suggesting that you set the request encoding, not the response encoding. I use a MVC framework. So, I am not sure anywhere using GET. Uhh right. I'm sure you use GET requests sometimes. Better set it in the connector. Honestly, the client should be reporting the request encoding, and you should be honoring it. I have this issue for ages. I haven't been able to resolve. I have to move long text into a message property file to go around this problem. Localized text should probably be in a separate file, anyway. How are you typing those characters into your java source files? If you are using a source file encoding other than the default encoding on your system, you might have to tell the JSP compiler what encoding the files are in. You can't go wrong using \uWXYZ instead of native characters. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.7 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFF+32M9CaO5/Lv0PARAkMrAJ9/cfgcX2drWxcFLAUUGTwgOc5bygCfYwp8 6NszrV4jEM2cVQqFiyH+b6o= =iC5l -END PGP SIGNATURE- - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]