Re: tomcat 5.5.25 and loosing spaces between printing jstl variables
private final String emptyText = new String(); Anyhow, it probably makes sense to change the emptyText string from to (that is, use a space instead of nothing). This bugzilla entry might be interesting to you: https://issues.apache.org/bugzilla/show_bug.cgi?id=45931 Changing emptyText from to would break the workaround. It would lead to 2 spaces in the html. Please don't do it. regards -- Markus Stauffer
Re: Opening up multiple ports on Single Tomcat Instance
2009/10/17 M.N.V Kishore mnv.kish...@gmail.com We have a requirement for the client to migrate the tomcat server running on port 8080 on Solaris machine onto Windows machine. This windows machine has already a tomcat instance running on port 80. I would now need to migrate all the applications running on port 8080 onto windows machine..i.e, few applications will run on port 8080 and some other need to run on port 80 as per the requirement. I have tried opening multiple ports on single tomcat instance by adding multiple Server the server.xml on my local dev machine and it is working fine. What I need to know now is the best method to achieve this functionality. Is it better to have multiple tomcat instances with multiple ports or single tomcat instance with multiple ports? As usual, the answer is it depends :-). A single Tomcat will use less memory. That's good if you're limited by the machine memory. However, if one web application fails, that application might take the whole Tomcat instance down with it. Also, garbage collection with more live objects on the heap does take more time - so depending on your GC settings you might see longer pauses in the system response. One Tomcat is a good setup if you believe your webapps are reliable and you can live with the pauses you see in garbage collection. Multiple Tomcats will use more memory, as there are more copies of the Tomcat internals and per-process stuff. They are more resilient against failure, and depending on your GC settings the pauses for garbage collection can be shorter. Multiple tomcats is a good setup if you can separate out your less reliable webapps, or if you need short pauses in garbage collection. As a side note: on modern processors, you can get some unexpected slowdowns due to the limited cache on the processor die, as more memory addresses will typically need to be accessed frequently by the multiple-Tomcat setup. Summary: If your single-Tomcat setup works for you (acceptable reliability, acceptable response times)... I wouldn't change it! - Peter
Re: Shared email resource
On Fri, 16 Oct 2009 10:00:46 -0500, Curtis Garman wrote: Ken, have you got your problem resolved? Yes, I just got it working! Thank you all for your help! -- Ken T. ktectr...@gmail.com - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: Shared email resource
Curt/Ken what is the solution? How did you get this to work? Martin Gainty __ Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen. Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni. To: users@tomcat.apache.org From: ktectr...@gmail.com Subject: Re: Shared email resource Date: Sat, 17 Oct 2009 12:07:28 + On Fri, 16 Oct 2009 10:00:46 -0500, Curtis Garman wrote: Ken, have you got your problem resolved? Yes, I just got it working! Thank you all for your help! -- Ken T. ktectr...@gmail.com - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org _ Hotmail: Trusted email with Microsoft’s powerful SPAM protection. http://clk.atdmt.com/GBL/go/177141664/direct/01/
Adding a new webapps directory
It's possible to add a new webapps directroy more then the default tomcat webapps (/opt/tomcat/webapps) ? For now i have to put my servlets in /opt/tomcat/webapps i would add a new webapps directory where i can put my servlets for example in /home/myuser/myapplets It's possible? If yes, how ? Thanks You Marco Rocco - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: Adding a new webapps directory
From: Marco Rocco [mailto:mr8...@gmail.com] Subject: Adding a new webapps directory It's possible to add a new webapps directroy more then the default tomcat webapps (/opt/tomcat/webapps) ? There is no means of specifying more than one appBase directory per Host. However, each Host element can specify a separate appBase directory, so you can segregate your webapps that way. You can also create Context elements in conf/Catalina/[host]/[appName].xml that have docBase attributes pointing to a specific deployment location for the webapp outside of the Host appBase. - 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: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Adding a new webapps directory
Caldarale, Charles R ha scritto: From: Marco Rocco [mailto:mr8...@gmail.com] Subject: Adding a new webapps directory It's possible to add a new webapps directroy more then the default tomcat webapps (/opt/tomcat/webapps) ? There is no means of specifying more than one appBase directory per Host. However, each Host element can specify a separate appBase directory, so you can segregate your webapps that way. You can also create Context elements in conf/Catalina/[host]/[appName].xml that have docBase attributes pointing to a specific deployment location for the webapp outside of the Host appBase. - 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: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org Ok, i think that I would add a new Host, io order to do this: I have to add a new Host section in /opt/tomcat/conf/server.xml ? - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Adding a new webapps directory
Caldarale, Charles R ha scritto: From: Marco Rocco [mailto:mr8...@gmail.com] Subject: Adding a new webapps directory It's possible to add a new webapps directroy more then the default tomcat webapps (/opt/tomcat/webapps) ? There is no means of specifying more than one appBase directory per Host. However, each Host element can specify a separate appBase directory, so you can segregate your webapps that way. You can also create Context elements in conf/Catalina/[host]/[appName].xml that have docBase attributes pointing to a specific deployment location for the webapp outside of the Host appBase. - 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: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org But it's possible to Add a new appBase directory per Host ? How ? - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: Adding a new webapps directory
From: Marco Rocco [mailto:mr8...@gmail.com] Subject: Re: Adding a new webapps directory Ok, i think that I would add a new Host, io order to do this: I have to add a new Host section in /opt/tomcat/conf/server.xml ? Correct. Doc for virtual hosting for the current level is here: http://tomcat.apache.org/tomcat-6.0-doc/virtual-hosting-howto.html - 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: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Erreur : Could not initialize class com.sun.xml.ws.spi.ProviderImpl
I don't be able to manage this tomcat server on the Linux Box. This machine is managed by an ISP. I will find an other way to propose this service to my customers. Many thanks Jean-Pierre Le 16 oct. 2009 à 19:24, Caldarale, Charles R a écrit : From: Jean-Pierre ASTIER [mailto:jpast...@analogue-paris.com] Subject: Re: Erreur : Could not initialize class com.sun.xml.ws.spi.ProviderImpl If I put the jax-ws-2.1 library in the WEB-INF/lib directory in my webapp I've got this error : Oct 16, 2009 4:46:39 PM org.apache.catalina.core.StandardWrapperValve invoke SEVERE: Servlet.service() for servlet myPhotothequeControleur threw exception java.security.AccessControlException: access denied (java.lang.RuntimePermission accessDeclaredMembers) Looks like the Tomcat on your Linux box is running with a SecurityManager, whereas your development environment isn't. You'll need to either turn off the SecurityManager, or enable the necessary access for the code in question (which we can't see, because it's deeper in the call stack than the snippet you posted). When you speak about the shared/lib directory, is this the tomcat shared/lib directory ? Yes - but it probably won't make any difference for the access problem. - 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: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Adding a new webapps directory
Caldarale, Charles R ha scritto: From: Marco Rocco [mailto:mr8...@gmail.com] Subject: Re: Adding a new webapps directory Ok, i think that I would add a new Host, io order to do this: I have to add a new Host section in /opt/tomcat/conf/server.xml ? Correct. Doc for virtual hosting for the current level is here: http://tomcat.apache.org/tomcat-6.0-doc/virtual-hosting-howto.html - 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: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org Thanks, I have read http://tomcat.apache.org/tomcat-6.0-doc/virtual-hosting-howto.html . But i have the problem that tomcat doesn't views my Servlet for example: in /opt/tomcat/conf/server.xml i have added: Host name=Myservlets appBase=/home/marco/Myservlets/ I have created /home/marco/Myservlets $ mkdir /home/marco/Myservlets After i have copied my servlet (ServletExample) in /home/marco/Myservlets/ and i have restarted TomCat Daemon. But if i try to access it at http://localhost:8080/ServletExample i get: _The requested resource (/ServletExample) is not available. _the same error also if i access at http://localhost:8080/Myservlets/ServletExample The content of ServletExample is this: $ pwd /home/marco/Myservlets/ServletExample $ ls WEB-INF $ cd WEB-INF/ $ ls classes lib web.xml $ cat web.xml ?xml version=1.0 encoding=UTF-8? web-app id=WebApp_ID 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; display-nameServletExample/display-name servlet description /description display-nameServletExample/display-name servlet-nameServletExample/servlet-name servlet-classhello.ServletExample/servlet-class /servlet servlet-mapping servlet-nameServletExample/servlet-name url-pattern//url-pattern /servlet-mapping welcome-file-list welcome-fileindex.html/welcome-file welcome-fileindex.htm/welcome-file welcome-fileindex.jsp/welcome-file welcome-filedefault.html/welcome-file welcome-filedefault.htm/welcome-file welcome-filedefault.jsp/welcome-file /welcome-file-list /web-app If i copy this directory (ServletExample) in /opt/tomcat/webapps, my servlet works at this location: http://localhost:8080/ServletExample What is the problem ? - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: Adding a new webapps directory
From: Marco Rocco [mailto:mr8...@gmail.com] Subject: Re: Adding a new webapps directory in /opt/tomcat/conf/server.xml i have added: Host name=Myservlets appBase=/home/marco/Myservlets/ But if i try to access it at http://localhost:8080/ServletExample i get: _The requested resource (/ServletExample) is not available. As you should. Your Host name is Myservlets, so that will need to be used on the URL: http://Myservlets:8080/ServletExample You will need to insure that the name Myservlets resolves to the IP address of your server. Alternatively, change the defaultHost attribute of your Engine to point to Myservlets; this will allow you to access your ServletExample via any URL *other* than localhost, such as the IP address: http://127.0.0.1:8080/ServletExample - 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: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Adding a new webapps directory
Caldarale, Charles R ha scritto: From: Marco Rocco [mailto:mr8...@gmail.com] Subject: Re: Adding a new webapps directory in /opt/tomcat/conf/server.xml i have added: Host name=Myservlets appBase=/home/marco/Myservlets/ But if i try to access it at http://localhost:8080/ServletExample i get: _The requested resource (/ServletExample) is not available. As you should. Your Host name is Myservlets, so that will need to be used on the URL: http://Myservlets:8080/ServletExample You will need to insure that the name Myservlets resolves to the IP address of your server. Alternatively, change the defaultHost attribute of your Engine to point to Myservlets; this will allow you to access your ServletExample via any URL *other* than localhost, such as the IP address: http://127.0.0.1:8080/ServletExample - 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: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org at http://127.0.0.1:8080/ServletExample i get blank page. Any way this is server.xml if this can help you: http://pastebin.com/f5fecfa93 Note: I have changed all Myservlets to myservlets. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: Adding a new webapps directory
From: Marco Rocco [mailto:mr8...@gmail.com] Subject: Re: Adding a new webapps directory at http://127.0.0.1:8080/ServletExample i get blank page. Any way this is server.xml if this can help you: http://pastebin.com/f5fecfa93 That looks ok. Is there anything in the logs? Try configuring an AccessLogValve for this Host to see what's coming in and going out: Host name=myservlets appBase=/home/marco/myservlets Valve className=org.apache.catalina.valves.AccessLogValve directory=logs prefix=myservlets_access_log. suffix=.txt pattern=common resolveHosts=false/ /Host - 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: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Shared email resource
On Sat, 17 Oct 2009 08:28:30 -0400, Martin Gainty wrote: Curt/Ken what is the solution? How did you get this to work? I'm not sure exactly what the problem was, but moving the declaration to the global section of the server.xml file and then back to the context.xml file after I got it working fixed it. There is a blog on it here: http://www.electricsenator.net/2009/10/17/125579682.html Thanks again! -- Ken T. ktectr...@gmail.com - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org