Re: Java and Java 1.5 on same machine
Hi Didier - I think it might be better to leave the body of the scripts as they are but reassign the environment variables at the beginning of the script (shell-dependant obviously). You might even (?) want to unset JAVA_HOME/CATALINA_HOME globally and re-assign it on a script-by-script basis... Tim -- Dakota Jack wrote: Just use different ports. On 5/19/05, Didier McGillis [EMAIL PROTECTED] wrote: How can Java 1.4.2 and Java 1.5 co-exist on one server. I need to run Tomcat 55 with Java 1.5 and my development Tomcat with java 1.4.2 on the same machine. I have just installed Java 5 and Tomcat 5.5.9 for evaluation and testing before migrating to the newer versions. However I only have one test machine and that is also used for the existing development server and so therefore has Tomcat 5.0.18 and Java 1.4.2. Even though I went in to the profile and added JAVA5_HOME and CATALINA55_HOME and JRE5_HOME, and substituted those in the catalina.sh file. When I run startup.sh it will show JRE5_HOME as java1.5... but doing a ps will show that its actually using java1.4. - 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 vs Apache
Hi Woodchuck, Am Mittwoch, 18. Mai 2005 21:46 schrieb Woodchuck: another (simple) way to think about the difference is that Apache serves static web pages, whereas Tomcat *can* do some server-side processing and serve dynamic web pages. all else being equal (and with no mods installed on Apache such as CGI/SSI/PHP), everyone visiting an Apache hosted website will see exactly the same set of web pages. in contrast, a Tomcat hosted website *can* display different content for the same requested web page for each visitor. you can use Tomcat to host totally static websites and not use Apache if you wanted to. but Tomcat is meant for dynamic websites that interact in some way with the user (ie. capture and process user information) to produce custom results. You are aware, that Apache can do the same as Tomcat. The only difference is that it will use PHP or Perl for doing this. You can run totally dynamic php websites with Apache and they can be as scalable and performant as JSP websites. I.e. PHP provides caching technologies which are very simple but at the same time close to static page performance. It only depends on your programming capabilities and your understanding of how the technology you are using ist working. You can write non-scalable and unperformant applications with both, PHP and Java. And if you try to programme PHP like Java or the other way round, yo will very likely not get the best results. So, the real difference between Tomcat and Apache - in my eyes - is not what each of them can do but how heydo it. The technology makes the difference. It is a decision between two different worlds and philosophies. I like both. Both have there strengthes. Best wishes Lutz - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
5.5 FreeBSD Port
Hi - I was just wondering if anyone out there had installed 5.5 on FreeBSD? I've been using 5.0 on BSD, which was easy to install, as there is a portfile defined. Was wondering whether to wait for /try to hack my own portfile, or just install 5.5 manually (the instructions seem fairly straightforward). (and yes, I know jdk1.5 is a bit flaky on BSD, I'm going to use the linux 1.5jdk and see what happens... for development at least). thanks Tim - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Java and Java 1.5 on same machine
Don't change the name of the variables but the value. On 5/19/05, Didier McGillis [EMAIL PROTECTED] wrote: How can Java 1.4.2 and Java 1.5 co-exist on one server. I need to run Tomcat 55 with Java 1.5 and my development Tomcat with java 1.4.2 on the same machine. I have just installed Java 5 and Tomcat 5.5.9 for evaluation and testing before migrating to the newer versions. However I only have one test machine and that is also used for the existing development server and so therefore has Tomcat 5.0.18 and Java 1.4.2. Even though I went in to the profile and added JAVA5_HOME and CATALINA55_HOME and JRE5_HOME, and substituted those in the catalina.sh file. When I run startup.sh it will show JRE5_HOME as java1.5... but doing a ps will show that its actually using java1.4. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- You can lead a horse to water but you cannot make it float on its back. ~Dakota Jack~ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Help Tomcat session replication!!!!!!!!!!!!!!!!!!!!!
Hello, I would like to know how session replication works with TOMCAT. And what is the configuration? My configuration is: One Apache 192.168.0.122 Three tomcat servers 192.168.0.121-123 The load balancing with Apache and Tomcat works. I tested the configuration with a simple JSP like this: html body bgcolor=red center %= request.getSession().getId() % h1Tomcat 1/h1 /body /html When I test I obtain three pages (red, blue, green) with different ID. I want to have only ID in order to see Session Replication works correctly. Best regards, Etienne mailto:[EMAIL PROTECTED] [EMAIL PROTECTED]
Re: 5.5 FreeBSD Port
You can try to mail the port maintainer of the tomcat5 port. See /usr/ports/www/jakarta-tomcat5/Makefile. If you have issues about jdk 1.5 on bsd being flaky, please post them on [EMAIL PROTECTED] Ronald. On Fri May 20 11:06:03 CEST 2005 Tomcat Users List tomcat-user@jakarta.apache.org wrote: Hi - I was just wondering if anyone out there had installed 5.5 on FreeBSD? I've been using 5.0 on BSD, which was easy to install, as there is a portfile defined. Was wondering whether to wait for /try to hack my own portfile, or just install 5.5 manually (the instructions seem fairly straightforward). (and yes, I know jdk1.5 is a bit flaky on BSD, I'm going to use the linux 1.5jdk and see what happens... for development at least). thanks Tim - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Environment in Tomcat 5.0.28 not working with multiple tomcat services in server.xml
You did specify a different IP for each connector? Else the 2nd one will fail because the port is in use. Unless the ports on all connectors are different. Doug - Original Message - From: Iannis Hanen [EMAIL PROTECTED] To: tomcat-user@jakarta.apache.org Cc: [EMAIL PROTECTED] Sent: Thursday, May 19, 2005 8:11 PM Subject: Environment in Tomcat 5.0.28 not working with multiple tomcat services in server.xml Hi, I am back with some more questions. I have configured Tomcat to operate with multiple services and engines (I have different services since I need separate connector for different set of web applications). For some web applications inside the host, I have specified some environment entries. In the first service, everything works great. But in the second service, I cannot access any of them. Is it a problem in Tomcat, or a misconfiguration? Here is an outline of my server.xml file below. Basically, AttrName2 in the foo2 context cannot be found. If I swap the order of the services in server.xml, only the first service (on the top) behaves properly. Thanks, Iannis Server ... Listener .../ Listener .../ Service name=Service1 Connector ... / Engine name=Engine1 defaultHost=localhost ... Logger .../ Host name=localhost ... DefaultContext Environment name=DefaultAttrName type=java.lang.String value=Some default value/ /DefaultContext Context path=/foo reloadable=false docBase=C:\foo.war workDir=C:\ tomcat\work\foo Environment name=AttrName type=java.lang.String value=myValueOK/ /Context /Host /Engine /Service Service name=Service2 Connector .../ Engine name=Engine2 defaultHost=localhost ... Logger .../ Host name=localhost ... Context path=/foo2 reloadable=false docBase=C:\foo2.war workDir=C:\ tomcat\work\foo2 Environment name=AttrName2 type=java.lang.String value=MyLostValue/ /Context /Host /Engine /Service /Server - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: start tomcat-4.1.31 with jsvc?
http://jakarta.apache.org/commons/daemon/jsvc.html http://jakarta.apache.org/tomcat/tomcat-5.0-doc/setup.html Don't use the args from the website. I never got them to work. Use the script files included for jsvc, tomcat.sh . There is a note on the second link about changing the filename to Bootstrap, this may already be done and needs to be reversed in your case. You may want to look in the archives and get an old copy of 5.0 and use the tomcat.sh from it to guide you. I know there were some changes made but because I run 5.0, I haven't look them up yet. Doug - Original Message - From: [EMAIL PROTECTED] To: tomcat-user@jakarta.apache.org Sent: Thursday, May 19, 2005 5:42 PM Subject: start tomcat-4.1.31 with jsvc? Is it possible to start tomcat 4 with jsvc from tomcat-5.5.0? If so, how are you doing it? I tried it using the args given on the tomcat 5 doc page but it doesn't start, it just immediately exits with no error. 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]
Re: Cannot Login After Upgrade From 4.0.4 to 5.0.28
Look at the admin app. It uses a form login. Also compare the web.xml of the admin app. Hopefully you can spot any differences. Doug - Original Message - From: John Lindley [EMAIL PROTECTED] To: tomcat-user@jakarta.apache.org Sent: Thursday, May 19, 2005 5:51 PM Subject: Cannot Login After Upgrade From 4.0.4 to 5.0.28 Hi all, we recently upgraded from 4.0.4 to 5.0.28. We had a login page under 4.0.4 that worked fine. Now under 5.0.28, after we enter the username and password, we get a Page cannot be found and the address it's looking for is http://ipaddress:8080/WebApp/jsp/security/login/j_security_check. I have checked the tomcat-users.xml file and it looks fine. I believe that the web.xml file is fine. As I said, all was fine under 4.0.4 with the same web.xml. Does anyone have any suggestions? Thanks! John __ Yahoo! Mail Mobile Take Yahoo! Mail with you! Check email on your mobile phone. http://mobile.yahoo.com/learn/mail - 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 vs Apache
Hi - thanks for that, I hadn't realised that the servlet-name default would still work in my webapp's web.xml. So I can reverse the logic as you suggest. Works great. Tim Parsons Technical Services wrote: Look here: http://jakarta.apache.org/tomcat/tomcat-5.0-doc/default-servlet.html If you override the mapping by putting your own reference to the default in your web.xml for the app, you should be able to map it the way you want and then have a mapping to your servlet with the / path. Or have your Spring dispatcher catch everything and parse the path to redirect the static stuff. Haven't tried this myself, just some thoughts. Doug - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: DBCP Exception
Post the parts of your config files that pertain to the database and a code snippet where you are calling out the connection. Looks like a misconfiguration but only a guess until we see the configs. Don't forget to change passwords and user names before posting. Also what OS JVM and Tomcat version are you running? Doug - Original Message - From: Joy Kenneth Harry [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, May 20, 2005 8:40 AM Subject: DBCP Exception Hi, Can you tell why I am getting this exception. SEVERE: Null component Catalina:type=DataSource,path=/,host=localhost,class=javax.sql.DataSourc e, name=jdbc/oracle Thanks Joy Kenneth Harry Infosys Tech Ltd - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
ip-based virtual hosting
I know name-based virtual hosting works great in Tomcat but I am interested in setting up ip-based virtual hosting in standalone Tomcat. Is that possible? /Mirko - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat/Apache/JK(2)?
The only change I made to httpd.conf was to add the line: Include C:\Program Files\Apache Software Foundation\Tomcat 5.5\conf\mod_jk.conf. (You can put the .conf file anywhere, you just have to tell Apache where it's located.) I did find that the HowTo instructions directed you to use Auto-configure. I ran that once to build the mod_jk.conf-auto file. What I found was that it didn't build it correctly. The JKMount paths didn't match what I had in Tomcat. I don't recall what it put in the file, but it wasn't right. I ended up removing the line that they tell you to add to server.xml to auto-configure once I had the format of the mod_jk.conf file. Also, if you examine the mod_jk.conf file, one of the first things it does is to instruct Apache to LoadModule jk_module modules/mod_jk.so, so it isn't necessary to add that to the httpd.conf file. I did populate the information for JkWorkersFile and JkLogfile. Once I had the url's correctly defined, it just worked. I wondered if it would be helpful for those who have been successful at configuring the connector to just publish a document for the various versions of Tomcat; 4.x, 5.0.x, and 5.5.x. I only say that because even the HowTo document that I used seemed to only get me about 50% of the way there. DW --- Tom Holmes Jr. [EMAIL PROTECTED] wrote: I agree I should work with the files first to see if I can get it to work. I used the sample workers.properties file from Tomcat 5.5 in order to create my working workers,properties file. So, now when I restart Apache2, it doesn't complain and it looks like it is communicating with Tomcat 5.5. However, when I try my JSP page, I get a big 'OK' at the top of the screen and then I get this error message: The server encountered an internal error or misconfiguration and was unable to complete your request. Please contact the server administrator, [EMAIL PROTECTED] and inform them of the time the error occurred, and anything you might have done that may have caused the error. More information about this error may be available in the server error log. So . after reading the documentation you referred me to, it looks like I need to update my httpd.conf file a bit more. I mean I got the LoadModule working, but it looks like I need to add some Jk commands like JkMount to my httpd.conf file. So, I am playing with that now. I might need your files as a sample, but I'll work on this on my own for a little while. Thanks very much. Tom Darryl Wilburn wrote: Tom, If you need them, I can send you my actual files. Although I encourage you to do all you can do on your own to figure it out. It'll pay huge dividends in the end if you understand what you had to do to make it work. DW --- Tom Holmes Jr. [EMAIL PROTECTED] wrote: I can't thank you enough. I was wondering if anyone had done it, and you certainly have. The sample files I have has always been the biggest hurdle for me also. The mod_jk.so I am using is mod_jk-1.2.13-apache-2.0.54.so which I think is for Windows. I'll refer to the same directions you used, and I am sure I will get it also. Thanks for giving me hope that it can be done! Now I just have to get past those sample files also. Thanks again! Tom Darryl Wilburn wrote: Tom, I have Tomcat 5.5.7, Apache 2.0.54, JRE 1.5.0_03, JK 1.2.11, running on Win2k3 server with no problems. The biggest hurdle I had to get over was making the necessary changes on the sample files included with the software. (the worker names didn't match) The files required are mod_jk.so (downloaded at http://www.apache.org/dist/jakarta/tomcat-connectors/jk/binaries/) The instructions I followed are at http://jakarta.apache.org/tomcat/connectors-doc/howto/apache.html. The other files involved are workers.properties, mod_jk.conf. The HowTo instructions at the above link are excellent. DW --- Tom Holmes Jr. [EMAIL PROTECTED] wrote: Ok, I'm not a newbie to Apache 2.x, Tomcat 4.x, JK2 with Java SDK 1.4.x ... I have gotten these to work over the years with few problems either on a Windows or Linux environment. I've modified the httpd.conf file and workers2.properties files under Apache 2.x, and the server.xml and jk2.properties under Tomcat 4.x. However, now I am in unfamiliar territory once more. I am working on Windows 2000, and I want to use Apache 2.x which I have no problems working with. But now, I want it to work with Tomcat 5.5.x ... so, here the questions begins: I understand that I should be using the Java SDK 1.5 now with Tomcat 5.5.x, is that correct? I
What happened to the searchable list archive?
It's been a few months since I've been active on the list, and the list archive seems to have changed in that time, could someone please advise? I used to search the list archives here: http://nagoya.apache.org/eyebrowse/[EMAIL PROTECTED] pache.org But that archive appears to contain very few of the current messages (e.g. only 7 from April, none at all for this month), is there a reason for that? It appears to have gone quiet after Jan 2005 for some reason, see here: http://nagoya.apache.org/eyebrowse/[EMAIL PROTECTED] a.apache.org I see that there is an archive here now http://mail-archives.apache.org/mod_mbox/jakarta-tomcat-user but it doesn't appear to be searchable...? Of course we can use google site search to search this list, but it's not quite the same thing because you can't select a list to search. Also the thread browsing is not as easy from this archive, once you have found a post via google. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat/Apache/JK(2)?
I have Tomcat 5.5.9 using JK to communicate with Apache 2.0.54 just fine. The workers.properties file is configured correctly, the httpd.conf is configured correctly, and I had to make a small change to server.xml to call my new site. This is all running on one Windows 2000 Server machine. When I first started this I was getting the problem listed below. Looking at the mod_jk.log I found that Tomcat 5.5.9 wasn't listening. So, basically what I had to do was start Tomcat MANUALLY, and then everything worked perfectly. So, what I'd like to do is configure JNI so with JK (not JK2 since it is now deprecated) and get Apache 2.0.54 to automatically start Tomcat 5.5.9. Or, I'd like to use JK (via Apache 2.0.54) to start Tomcat 5.5.9 in-process. In short, can I do this? If I can, can someone refer me to the steps I have to take in workers.properties, server.xml, and httpd.config to make this happen. BTW, in my research I have found people using JK to connect Apache 2.0.x to Tomat 4.x, but it usually involves modifying server.xml to use the Tomcat4 CoyoteConnector, and I wasn;t sure if that was available for Tomcat 5.5. Any help would be much appreciated, and if you need any more information from me, please let me know. Thanks. Tom Tom Holmes Jr. wrote: I agree I should work with the files first to see if I can get it to work. I used the sample workers.properties file from Tomcat 5.5 in order to create my working workers,properties file.So, now when I restart Apache2, it doesn't complain and it looks like it is communicating with Tomcat 5.5. However, when I try my JSP page, I get a big 'OK' at the top of the screen and then I get this error message: The server encountered an internal error or misconfiguration and was unable to complete your request. Please contact the server administrator, [EMAIL PROTECTED] and inform them of the time the error occurred, and anything you might have done that may have caused the error. More information about this error may be available in the server error log. So . after reading the documentation you referred me to, it looks like I need to update my httpd.conf file a bit more. I mean I got the LoadModule working, but it looks like I need to add some Jk commands like JkMount to my httpd.conf file. So, I am playing with that now. I might need your files as a sample, but I'll work on this on my own for a little while. Thanks very much. Tom Darryl Wilburn wrote: Tom, If you need them, I can send you my actual files. Although I encourage you to do all you can do on your own to figure it out. It'll pay huge dividends in the end if you understand what you had to do to make it work. DW --- Tom Holmes Jr. [EMAIL PROTECTED] wrote: I can't thank you enough. I was wondering if anyone had done it, and you certainly have. The sample files I have has always been the biggest hurdle for me also. The mod_jk.so I am using is mod_jk-1.2.13-apache-2.0.54.so which I think is for Windows. I'll refer to the same directions you used, and I am sure I will get it also. Thanks for giving me hope that it can be done! Now I just have to get past those sample files also. Thanks again! Tom Darryl Wilburn wrote: Tom, I have Tomcat 5.5.7, Apache 2.0.54, JRE 1.5.0_03, JK 1.2.11, running on Win2k3 server with no problems. The biggest hurdle I had to get over was making the necessary changes on the sample files included with the software. (the worker names didn't match) The files required are mod_jk.so (downloaded at http://www.apache.org/dist/jakarta/tomcat-connectors/jk/binaries/) The instructions I followed are at http://jakarta.apache.org/tomcat/connectors-doc/howto/apache.html. The other files involved are workers.properties, mod_jk.conf. The HowTo instructions at the above link are excellent. DW --- Tom Holmes Jr. [EMAIL PROTECTED] wrote: Ok, I'm not a newbie to Apache 2.x, Tomcat 4.x, JK2 with Java SDK 1.4.x ... I have gotten these to work over the years with few problems either on a Windows or Linux environment. I've modified the httpd.conf file and workers2.properties files under Apache 2.x, and the server.xml and jk2.properties under Tomcat 4.x. However, now I am in unfamiliar territory once more. I am working on Windows 2000, and I want to use Apache 2.x which I have no problems working with. But now, I want it to work with Tomcat 5.5.x ... so, here the questions begins: I understand that I should be using the Java SDK 1.5 now with Tomcat 5.5.x, is that correct? I always thought that JK2 was the new version of JK. I have always used JK2 to connect tomcat 4.x to Apache 2.x. I understand that JK2 is now deprecated and is no longer getting any support? Does this mean I should now use JK to connect Tomcat 5.5.x
sending redirects to relative/absolute URLs
Hi, Does anybody know why Tomcat always redirects to absolute links? I looked at the implementation and the sendRedirect calls the toAbsolute method which always constructs an absolute URL. Is there any way to make Tomcat return relative URLs the way they were requested for redirecting? Ross This communication is intended solely for the addressee and is confidential and not for third party unauthorized distribution.
Re: JRE vs. JDK for Tomcat
Tomcat used to require javac (the Java compiler from the SDK) in order to compile the java code generated from the jsps. Tomcat 5 now comes packaged with the jasper compiler, so all you need is the Java 5.0 JRE. When I tried running 5.5.9 off of the 1.5 jre, it told me that I needed to have the jdk, not the jre. Chris - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Using Tiger in jsp
Hello, I use Tomcat 5.5 and I would like to use jdk5.0 features such as enhanced for loop in my jsp. I am having problems: Tomcat seems to be expecting jdk1.4 syntax. Can anyone help please? Julien. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Deploy War Message
Hi, While deploying a war in tomcat 4.1.31, this message appears in logs every 15 seconds *HostConfig[localhost]: Deploying discovered web applications* How can I disable this warning? Thanks, Nuno Martins
Re: sending redirects to relative/absolute URLs
No, because the HTTP protocol requires an absolute URL in redirect responses. On 5/20/05, Angelov, Rossen [EMAIL PROTECTED] wrote: Hi, Does anybody know why Tomcat always redirects to absolute links? I looked at the implementation and the sendRedirect calls the toAbsolute method which always constructs an absolute URL. Is there any way to make Tomcat return relative URLs the way they were requested for redirecting? Ross This communication is intended solely for the addressee and is confidential and not for third party unauthorized distribution. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: sending redirects to relative/absolute URLs
Len, Can you point me a place where I can read about these HTTP requirements? I thought this might be the case but I couldn't find anything helpful online. Probably didn't search enough. -Original Message- From: Len Popp [mailto:[EMAIL PROTECTED] Sent: Friday, May 20, 2005 9:28 AM To: Tomcat Users List Subject: Re: sending redirects to relative/absolute URLs No, because the HTTP protocol requires an absolute URL in redirect responses. On 5/20/05, Angelov, Rossen [EMAIL PROTECTED] wrote: Hi, Does anybody know why Tomcat always redirects to absolute links? I looked at the implementation and the sendRedirect calls the toAbsolute method which always constructs an absolute URL. Is there any way to make Tomcat return relative URLs the way they were requested for redirecting? Ross This communication is intended solely for the addressee and is confidential and not for third party unauthorized distribution. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This communication is intended solely for the addressee and is confidential and not for third party unauthorized distribution.
Re: sending redirects to relative/absolute URLs
Section 14.30 of the http spec. rfc2616 http://www.faqs.org/rfcs/rfc2616.html Jon Angelov, Rossen wrote: Len, Can you point me a place where I can read about these HTTP requirements? I thought this might be the case but I couldn't find anything helpful online. Probably didn't search enough. -Original Message- From: Len Popp [mailto:[EMAIL PROTECTED] Sent: Friday, May 20, 2005 9:28 AM To: Tomcat Users List Subject: Re: sending redirects to relative/absolute URLs No, because the HTTP protocol requires an absolute URL in redirect responses. On 5/20/05, Angelov, Rossen [EMAIL PROTECTED] wrote: Hi, Does anybody know why Tomcat always redirects to absolute links? I looked at the implementation and the sendRedirect calls the toAbsolute method which always constructs an absolute URL. Is there any way to make Tomcat return relative URLs the way they were requested for redirecting? Ross This communication is intended solely for the addressee and is confidential and not for third party unauthorized distribution. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This communication is intended solely for the addressee and is confidential and not for third party unauthorized distribution. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: sending redirects to relative/absolute URLs
Hi Angelov, Am Freitag, 20. Mai 2005 15:53 schrieb Angelov, Rossen: Hi, Does anybody know why Tomcat always redirects to absolute links? I looked at the implementation and the sendRedirect calls the toAbsolute method which always constructs an absolute URL. Is there any way to make Tomcat return relative URLs the way they were requested for redirecting? I would say that sendRedirect will set the HTTP header field Location. According to the specification of the Hypertext Transfer Protocol -- HTTP/1.1 / RFC 2616, this field requires an absolute URL: The field value consists of a single absolute URI. - http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.30 Best wishes Lutz - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
DBCP datasource works on 5.0.28 but fails on 5.5.9
I know that DBCP is a common problem discussed on this list - I have been helped, and have helped other people, with it before. So before posting this message, I have recently re-read the 5.5 release notes and 5.0/5.5 DBCP/JNDI how-to docs and checked the list archives. But can't find a solution to my current problem. Until recently I had a working webapp running on tomcat 5.0.28 with connector/j 3.1.7 and mysql 4.1.11-nt, all on windows XP and jdk1.4.2_08. The app uses container-managed commons DBCP for all its database access. The DBCP resource config has been set up and working unchanged for a long time on various builds of TC 5.0. I have it set up like this: ResourceParams defined in context.xml, in war file's META-INF folder resource-ref declared in web.xml in war file's WEB-INF folder The connector/j jar file is in tomcat's /common/lib folder name of JNDI resource matches in ResourceParams, resource-ref and Java source code. This all works on TC5.0.28 / JDK1.4.2_08. However, I am attempting to upgrade to TC 5.5.9 / JDK1.5.0_02. I did a fresh install of both of these to standard directories, recompiled the webapp for jdk1.5, and deployed it with the same config files and setup above from TC 5.0.28. However the webapp now reports an error when requesting a connection from the pool, see stacktrace below (from the TC stdout logfile under TC logs directory). I tried changing my context.xml so that the params are all pairs of name=value within a single Resource/ tag, as now seems to be preferred in the 5.5 DBCP how-to, rather than my original nested set of tags under ResourceParams, which was the approach used in the 5.0 equivalent how-to. But still no joy. I also tried upgrading to connector/j 3.1.8, no joy there either. When TC starts up, the webapp deploys OK from its war file, and the context.xml is copied to the /conf/[engine]/[host]/ folder OK, without any parsing errors logged. The connection pool initially seems to work, in the sense that this code executes OK: Context ctx = new InitialContext(); String resourceString = java:comp/env/jdbc/ + config.getString(ConfigConstants.JNDI_DATABASE_RESOURCE_NAME); DataSource pool = (DataSource)ctx.lookup(resourceString); However, an Exception is thrown the first time that I do this: Connection conn = pool.getConnection(); I'm stumped after hours working on this. I've read through all the docs, how-tos, and release notes that I can find, and searched the mail list archives on mysql and tomcat sites, as well as googling various searches. Has anyone had this problem themselves or have any insight to offer please? Thanks, Steve. - Exception caught when establishing/testing database pool cause[0]: org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot create JDBC driver of class '' for connect URL 'null' at org.apache.tomcat.dbcp.dbcp.BasicDataSource.createDataSource(BasicDataSource .java:780) at org.apache.tomcat.dbcp.dbcp.BasicDataSource.getConnection(BasicDataSource.ja va:540) at core.sql.SqlQuery.prepare(SqlQuery.java:80) at core.sql.SqlQuery.executeSingleValue(SqlQuery.java:133) at core.servlet.Invoker.setUpDataSource(Invoker.java:325) at core.servlet.Invoker.init(Invoker.java:129) at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:10 91) at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:925) at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java: 3857) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4118) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:7 59) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524) at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:589) at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:536 ) at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:471) at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1102) at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSuppor t.java:119) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1020) at org.apache.catalina.core.StandardHost.start(StandardHost.java:718) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1012) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442) at org.apache.catalina.core.StandardService.start(StandardService.java:450) at org.apache.catalina.core.StandardServer.start(StandardServer.java:683) at org.apache.catalina.startup.Catalina.start(Catalina.java:537) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at
Re: DBCP datasource works on 5.0.28 but fails on 5.5.9
Steve Kirk wrote: When TC starts up, the webapp deploys OK from its war file, and the context.xml is copied to the /conf/[engine]/[host]/ folder OK, without any parsing errors logged. The connection pool initially seems to work, in the sense that this code executes OK: Context ctx = new InitialContext(); String resourceString = java:comp/env/jdbc/ + config.getString(ConfigConstants.JNDI_DATABASE_RESOURCE_NAME); DataSource pool = (DataSource)ctx.lookup(resourceString); However, an Exception is thrown the first time that I do this: Connection conn = pool.getConnection(); This doens't mean much. You will get a DBCP object event if connection data is wrong. It will however fail on attempting to obtain a connection. In my oppinion it would be nice if it failed during web app deployment, thus not leading us to believe all is OK. Although it would be yet another source of frustration. And I can see an argument that failing to correctly setup a DataSource should not invalidate the entire web app, since it could be setup with N DataSources and inteligence to choose one that works. - Exception caught when establishing/testing database pool cause[0]: org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot create JDBC driver of class '' for connect URL 'null' This most commonly means that the definition of the DataSource resource lacks driver definition. Could it be that you've missed the fact that DataSource JNDI resource setup definition has changed in TC 5.5? It is no longer with those parametername.../namevalue.../value/parameter. Check it out. Nix. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re[2]: server options
Thank you a lot Fritz, I have downloaded and install JDK 1.5.0.3 and set the following pass in the configuration. ( C:\Program Files\Java\jdk1.5.0_03\jre\bin\server\jvm.dll ) Then I have added the line -server -Xmx256m and tried to start it but the result was the same. Do you have any more ideas? FS Sergey, FS The -server option is not used in Windows. Instead, you copy the FS jre\bin\server folder from the JDK into your JRE installation folder and FS select that JVM in your service configuration. FS Fritz FS -Original Message- FS From: Sergey Livanov [mailto:[EMAIL PROTECTED] FS Sent: Thursday, May 19, 2005 1:15 PM FS To: Tomcat users FS Subject: server options FS Could you, please, give me a peace of advice? FS I want to set Xmx parameter. FS When I enter the line -server -Xmx256m on the FS console in the Java Options Tab , the server does not FS start. FS [2005-05-19 20:38:54] [418 javajni.c] [error] CreateJavaVM Failed FS [2005-05-19 20:38:54] [903 prunsrv.c] [error] Failed initializing java FS C:\Apache\Tomcat\bin\bootstrap.jar FS [2005-05-19 20:38:54] [1131 prunsrv.c] [error] ServiceStart returned 2 FS When I enter the line -Xmx256m - the server starts. FS If the line -Xmx256m is stayed, will it be correct ? FS Thanks in advance, FS regards, FS Sergey mailto:[EMAIL PROTECTED] FS - FS To unsubscribe, e-mail: [EMAIL PROTECTED] FS For additional commands, e-mail: [EMAIL PROTECTED] FS - FS To unsubscribe, e-mail: [EMAIL PROTECTED] FS For additional commands, e-mail: [EMAIL PROTECTED] -- regards Sergey mailto:[EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Java and Java 1.5 on same machine
Yep thats what I ended up doing and it works like a charm, just some minor tweaks and then it should be all good to go. thanks everyone. From: Tim Diggins [EMAIL PROTECTED] Reply-To: Tomcat Users List tomcat-user@jakarta.apache.org To: Tomcat Users List tomcat-user@jakarta.apache.org Subject: Re: Java and Java 1.5 on same machine Date: Fri, 20 May 2005 09:32:26 +0100 Hi Didier - I think it might be better to leave the body of the scripts as they are but reassign the environment variables at the beginning of the script (shell-dependant obviously). You might even (?) want to unset JAVA_HOME/CATALINA_HOME globally and re-assign it on a script-by-script basis... Tim -- Dakota Jack wrote: Just use different ports. On 5/19/05, Didier McGillis [EMAIL PROTECTED] wrote: How can Java 1.4.2 and Java 1.5 co-exist on one server. I need to run Tomcat 55 with Java 1.5 and my development Tomcat with java 1.4.2 on the same machine. I have just installed Java 5 and Tomcat 5.5.9 for evaluation and testing before migrating to the newer versions. However I only have one test machine and that is also used for the existing development server and so therefore has Tomcat 5.0.18 and Java 1.4.2. Even though I went in to the profile and added JAVA5_HOME and CATALINA55_HOME and JRE5_HOME, and substituted those in the catalina.sh file. When I run startup.sh it will show JRE5_HOME as java1.5... but doing a ps will show that its actually using java1.4. - 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]
Problems with gzip compression with Apache/Tomcat cluster and Firefox
We have recently been experimenting with enabling gzip/deflate compression via our Apache/Tomcat cluster, but have encountered some problems with the way the compression works with the Firebox browser. When Firefox brings up a compressed page for the first time, it looks fine. If they reload a static html page, bizarre things start to happen. In some cases, garbage just gets displayed on screen (looks like the actual gzip encoded stream), and other times Firefox displays a dialog box asking if you want to download the html files. When IE is used, it works fine. Some background: Running two-node Tomcat 5.5.4 cluster using JK2 2.0.4 protocol to communicate back to Apache2 2.0.52 for load balancing. Browsers tried were Firefox 1.0.3 and Internet Explorer 6.0. If I use Tomcat's gzip compression alone with Firefox, it works fine. It's only when we through in Apache and JK2 into the mix with the cluster that Firefox displays charged. It seems to be an issue related to the way that compressed pages get cached. I'm not sure if the problem lies with Tomcat, Apache, JK2, or Firefox itself. Can anyone provide some pointers? Thanks. Regards, B.J. Guillot
Re: DBCP datasource works on 5.0.28 but fails on 5.5.9
Hi, Am Freitag, 20. Mai 2005 17:22 schrieb Nikola Milutinovic: Steve Kirk wrote: This most commonly means that the definition of the DataSource resource lacks driver definition. Could it be that you've missed the fact that DataSource JNDI resource setup definition has changed in TC 5.5? It is no longer with those parametername.../namevalue.../value/parameter. Check it out. This is exactly what I would guess, too. From Tomcat 5.0 to 5.5, the Resource element syntax has changed. It is now like: Resource name=... auth=Container type=javax.sql.DataSource driverClassName=... url=jdbc:... username=... password=... maxActive=20 maxIdle=10 maxWait=-1 removeAbandoned=true removeAbandonedTimeout=300 logAbandoned=true / Best wishes Lutz - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: DBCP datasource works on 5.0.28 but fails on 5.5.9
Thanks nix. Could it be that you've missed the fact that DataSource JNDI resource setup definition has changed in TC 5.5? It is no longer with those parametername.../namevalue.../value/parameter. Yes I already changed that. I used to use the approach you mention in 5.0.28, i.e.: ResourceParams name=jdbc/myResource parameter nameusername/name value.../value /parameter parameter namepassword/name value.../value /parameter etc /ResourceParams But noticed that the new 5.5 DBCP example used this approach: Resource username= password=... etc / So I switched to that, but still no joy. PS does it actually say in the docs anywhere that the parametername.../namevalue.../value/parameter approach is *NOT* valid in 5.5? If so then I've missed some docs somewhere, maybe there is other new stuff that I haven't seen. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: DBCP datasource works on 5.0.28 but fails on 5.5.9
Thanks lutz, that's in fact exactly how I now have it. I have also deleted the webapp (and the context xml file under /conf) and recompiled/restarted, to make sure the new context config is loaded, but still no joy. -Original Message- From: Lutz Zetzsche [mailto:[EMAIL PROTECTED] Sent: Friday 20 May 2005 16:59 To: Tomcat Users List Subject: Re: DBCP datasource works on 5.0.28 but fails on 5.5.9 Hi, Am Freitag, 20. Mai 2005 17:22 schrieb Nikola Milutinovic: Steve Kirk wrote: This most commonly means that the definition of the DataSource resource lacks driver definition. Could it be that you've missed the fact that DataSource JNDI resource setup definition has changed in TC 5.5? It is no longer with those parametername.../namevalue.../value/parameter. Check it out. This is exactly what I would guess, too. From Tomcat 5.0 to 5.5, the Resource element syntax has changed. It is now like: Resource name=... auth=Container type=javax.sql.DataSource driverClassName=... url=jdbc:... username=... password=... maxActive=20 maxIdle=10 maxWait=-1 removeAbandoned=true removeAbandonedTimeout=300 logAbandoned=true / Best wishes Lutz - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Using Tiger in jsp
Am Freitag, 20. Mai 2005 16:11 schrieb Julien Martin: I use Tomcat 5.5 and I would like to use jdk5.0 features such as enhanced for loop in my jsp. I am having problems: Tomcat seems to be expecting jdk1.4 syntax. Can anyone help please? http://jakarta.apache.org/tomcat/tomcat-5.5-doc/jasper-howto.html#Configuration Set the compiler init-param so that javac from jdk5 is used. Also set the compilerSourceVM and compilerTargetVM appropriately. Alternatively, you could try to replace the Eclipse compiler bundled with Tomcat with a more recent release from the Eclipse 3.1 builds. Don't know wether this is easily achieved, though. Regards mks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Compatibility of tomcat 5 with Win2003
Tomcat 5 or higher work 100% compatible with Win2003? Thanks, Leonardo Otoni de Assis Powerlogic Consultoria e Sistemas S.A. Tel: (31) 3286-1691 Fax: (31) 3286-1631 www.powerlogic.com.br
RE: What happened to the searchable list archive?
I like marc. http://marc.theaimsgroup.com/?l=tomcat-userr=1w=2 -Original Message- From: Steve Kirk [mailto:[EMAIL PROTECTED] Sent: Friday, May 20, 2005 8:14 AM To: tomcat-user@jakarta.apache.org Subject: What happened to the searchable list archive? It's been a few months since I've been active on the list, and the list archive seems to have changed in that time, could someone please advise? I used to search the list archives here: http://nagoya.apache.org/eyebrowse/SearchList?listName=tomcat- [EMAIL PROTECTED] pache.org But that archive appears to contain very few of the current messages (e.g. only 7 from April, none at all for this month), is there a reason for that? It appears to have gone quiet after Jan 2005 for some reason, see here: http://nagoya.apache.org/eyebrowse/[EMAIL PROTECTED] a.apache.org I see that there is an archive here now http://mail-archives.apache.org/mod_mbox/jakarta-tomcat-user but it doesn't appear to be searchable...? Of course we can use google site search to search this list, but it's not quite the same thing because you can't select a list to search. Also the thread browsing is not as easy from this archive, once you have found a post via google. - 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: Using Tiger in jsp
Am Freitag, 20. Mai 2005 18:32 schrieb Markus Schönhaber: Am Freitag, 20. Mai 2005 16:11 schrieb Julien Martin: I use Tomcat 5.5 and I would like to use jdk5.0 features such as enhanced for loop in my jsp. I am having problems: Tomcat seems to be expecting jdk1.4 syntax. Can anyone help please? http://jakarta.apache.org/tomcat/tomcat-5.5-doc/jasper-howto.html#Configura tion Set the compiler init-param so that javac from jdk5 is used. Also set the compilerSourceVM and compilerTargetVM appropriately. Did remember slightly wrong: Leave the compiler init-param alone. Just set compilerSourceVM and compilerTargetVM to 1.5. Then move jasper-compiler-jdt.jar out of $CATALINA_HOME/common/lib and move in ant.jar instead. Regards mks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Sybase DB Failure
I am trying to use the UserDatabaseRealm connecting to a Sybase DB server. I get the following error: --- May 20, 2005 11:17:34 AM org.apache.catalina.realm.DataSourceRealm open SEVERE: Exception performing authentication org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot create PoolableConnectionFactory (JZ0SJ: Metadata accessor information was not found on this database. Please install the required tables as mentioned in the jConnect documentation.) at org.apache.tomcat.dbcp.dbcp.BasicDataSource.createDataSource(BasicDataSource .java:855) --- I looked up the error on Sybases's documentation and the message is: Metadata accessor information was not found on this database. Action: Install metadata information before making metadata calls. -- Any suggestions? There seem to be many references to the same error on the WEB but they are not answered. What metadata are thy talking about - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Sybase DB Failure
I haven't done this in a long time, but Sybase has a utility, a SQL script if I recall, that will configure the DB to allow you to connect via JDBC. I believe it comes with the JConnect distribution, which you can download from Sybase. Ed Jim Henderson wrote: I am trying to use the UserDatabaseRealm connecting to a Sybase DB server. I get the following error: --- May 20, 2005 11:17:34 AM org.apache.catalina.realm.DataSourceRealm open SEVERE: Exception performing authentication org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot create PoolableConnectionFactory (JZ0SJ: Metadata accessor information was not found on this database. Please install the required tables as mentioned in the jConnect documentation.) at org.apache.tomcat.dbcp.dbcp.BasicDataSource.createDataSource(BasicDataSource .java:855) --- I looked up the error on Sybases's documentation and the message is: Metadata accessor information was not found on this database. Action: Install metadata information before making metadata calls. -- Any suggestions? There seem to be many references to the same error on the WEB but they are not answered. What metadata are thy talking about - 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]
Error on Running Perl CGI on Tomcat
I know this has been asked for millions of time, but I searched google for the entire day but did not get an answer, instead I found millions of ppl who have the same problem as I am. The problem is simple: 1. The same code runs well on command line 2. When Running on Tomcat, the html file gives such error: Software error: Can't connect to MySQL database: Can't create TCP/IP socket (10106) 3. OS is Windows XP 4. I am pretty sure that Tomcat, Perl interpreter, MySQL runs well seperately. I don't know what to do and since it is a joint question of 3 softwares, I'm gonna send it to the three maillist and see finally if anybody could give correct answers to it. Thanks Regards, Robert. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
war deploy
How can I depoly a war to a path like '/x/y'? If I name the war x#y.war (and unpackWar=false) and put a /META-INF/context.xml into the war, I get a work/Catalina/localhost/x#y directory. Calling localhost/x/y in the browser causes a directory work/Catalina/localhost/x_y will be created. In the manager app there are listed 2 apps (x#y and x/y)!! Thx, Gernot - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
AW: war deploy
Sorry - I forgot to say: I'm using tc 5.5.9 -Ursprüngliche Nachricht- Von: Pfingstl Gernot Gesendet: Freitag, 20. Mai 2005 22:52 An: Tomcat User (E-Mail) Betreff: war deploy How can I depoly a war to a path like '/x/y'? If I name the war x#y.war (and unpackWar=false) and put a /META-INF/context.xml into the war, I get a work/Catalina/localhost/x#y directory. Calling localhost/x/y in the browser causes a directory work/Catalina/localhost/x_y will be created. In the manager app there are listed 2 apps (x#y and x/y)!! Thx, Gernot - 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 mulitple domains share one web app?
Hello, I will try to ask this question so it makes sense. I have a webapp. Currently I have 2000 people that share the same web app For example www.mydomain.com/sue www.mydomain.com/fred Etc All these guys have their own directories, but they are a single web app. Now I have many (100s ) that want their own domains. I do not want to create 100 webapps Currently have a work around where www.sue.com gets redirected via apache to www.mydomain.com/sue So this way they start at their domain, but the immediately they see the www.mydomain.com/sue So is there a way to have one webapp share multiple domains? Thanks Randy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Problems with filters in 5.5.9?
I recently upgraded from 5.5.4 - 5.5.9. Now when starting my app I get the error: May 20, 2005 4:28:10 PM org.apache.catalina.core.StandardContext filterStart SEVERE: Exception starting filter addressFilter java.lang.ClassNotFoundException: com.mycompany.servlet.AddressFilter [...] May 20, 2005 4:28:10 PM org.apache.catalina.core.StandardContext start SEVERE: Error filterStart AddressFilter is located in a JAR that can be found in /webapps/WEB-INF/lib (as usual) so I'm not sure why it can't find the class? Any ideas? Cheers, Brandon Get your own 800 number Voicemail, fax, email, and a lot more http://www.ureach.com/reg/tag - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Error on Running Perl CGI on Tomcat
On 5/20/05, Robert Kerry [EMAIL PROTECTED] wrote: I know this has been asked for millions of time, but I searched google for the entire day but did not get an answer, instead I found millions of ppl who have the same problem as I am. The problem is simple: 1. The same code runs well on command line 2. When Running on Tomcat, the html file gives such error: Software error: Can't connect to MySQL database: Can't create TCP/IP socket (10106) 3. OS is Windows XP 4. I am pretty sure that Tomcat, Perl interpreter, MySQL runs well seperately. I don't know what to do and since it is a joint question of 3 softwares, I'm gonna send it to the three maillist and see finally if anybody could give correct answers to it. Thanks Look at the very bottom post on this page: http://sunsite.mff.cuni.cz/MIRRORS/ftp.mysql.com/doc/en/Can_not_connect_to_server.html I would say at a guess you are running XP SP2 and that just causes headaches when trying to do anything server related, when you run the app from the command line you run it as you but I would say your Tomcat is installed as a service and is running as LocalSystem so it has trouble opening the port. You could also try running the Tomcat service as yourself and if that works create a special Tomcat service account. 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]
Re: Can mulitple domains share one web app?
Alias might do what you want with one reservation, you cannot have www.mydomain.com/bob www.yourdomain.com/bob as different folders. These will be the same folder. So each /folder will have to be unique even though the domain names are different. Doug - Original Message - From: Randy Paries [EMAIL PROTECTED] To: 'Tomcat Users List' tomcat-user@jakarta.apache.org Sent: Friday, May 20, 2005 4:55 PM Subject: Can mulitple domains share one web app? Hello, I will try to ask this question so it makes sense. I have a webapp. Currently I have 2000 people that share the same web app For example www.mydomain.com/sue www.mydomain.com/fred Etc All these guys have their own directories, but they are a single web app. Now I have many (100s ) that want their own domains. I do not want to create 100 webapps Currently have a work around where www.sue.com gets redirected via apache to www.mydomain.com/sue So this way they start at their domain, but the immediately they see the www.mydomain.com/sue So is there a way to have one webapp share multiple domains? Thanks Randy - 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]
5.5.9 jasper ant compile options
I want to compile my jsps before depolying my war, so I'm using the standalone deployer build.xml. In the web.xml (for the jsp servlet) I can set some options eg. genStrAsCharArray or trimSpaces. How can I set these compile options in the ant task? Thx Gernot - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: What happened to the searchable list archive?
Thanks - great site. Just what I was looking for. -Original Message- From: GB Developer [mailto:[EMAIL PROTECTED] Sent: Friday 20 May 2005 18:05 To: 'Tomcat Users List' Subject: RE: What happened to the searchable list archive? I like marc. http://marc.theaimsgroup.com/?l=tomcat-userr=1w=2 -Original Message- From: Steve Kirk [mailto:[EMAIL PROTECTED] Sent: Friday, May 20, 2005 8:14 AM To: tomcat-user@jakarta.apache.org Subject: What happened to the searchable list archive? It's been a few months since I've been active on the list, and the list archive seems to have changed in that time, could someone please advise? I used to search the list archives here: http://nagoya.apache.org/eyebrowse/SearchList?listName=tomcat- [EMAIL PROTECTED] pache.org But that archive appears to contain very few of the current messages (e.g. only 7 from April, none at all for this month), is there a reason for that? It appears to have gone quiet after Jan 2005 for some reason, see here: http://nagoya.apache.org/eyebrowse/SummarizeList?listName=tomc [EMAIL PROTECTED] a.apache.org I see that there is an archive here now http://mail-archives.apache.org/mod_mbox/jakarta-tomcat-user but it doesn't appear to be searchable...? Of course we can use google site search to search this list, but it's not quite the same thing because you can't select a list to search. Also the thread browsing is not as easy from this archive, once you have found a post via google. - 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]
Connecting Tomcat 5.0.30 to Apache 2.0.54
I am on FreeBSD 5.4. I installed Tomcat just fine and Apache just fine and all is well. Now I am trying to connect them together with the JK 1.2.10 source. I do the ./configure --with-apxs=/usr/local/apache2/bin/apxs and it runs fine. I then do a cd apache-2.0 and then run gmake and I get the following error: ../common/jk_util.c: In function 'jk_gettid': ../common/jk_util.c:1163:error: invalid operands to binary gmake: *** [../common/jk_util.lo] Error 1 I looked at the code and it has the following: int tid = (int)(t Ox); Thanks for your help. Eric Short -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.322 / Virus Database: 266.11.14 - Release Date: 5/20/05
JasperException: java.lang.String.replace
Tomcat 4.1 on HP-UX 11.11, Java version 1.5.0 I'm getting the following in the webapp's log file: 15:12:18,422 - ERROR org.apache.struts.taglib.tiles.InsertTag - ServletException in '/WEB-INF/jsp/layout/vboxLayout.jsp': ServletException in '/WEB-INF/jsp/prof ile/profileGivingSummary.jsp': java.lang.String.replace(Ljava/lang/String;Ljava/ lang/String;)Ljava/lang/String; org.apache.jasper.JasperException: ServletException in '/WEB-INF/jsp/profile/pro fileGivingSummary.jsp': java.lang.String.replace(Ljava/lang/String;Ljava/lang/St ring;)Ljava/lang/String; Which seems to say it doesn't like the 'replace' method being used on some String in the code resulting from profileGivingSummary.jsp. (It's mostly JSTL that displays a collection of beans. It does use fmt which I initially assumed is where the 'replace' was coming from.) However... # ll profileGivingSummary_jsp.java -rw-rw 1 wwwother63426 May 20 15:11 profileGivingSummary_jsp.java # grep replace profileGivingSummary_jsp.java # There are no instances of 'replace' in the JSP. So WHAT is it complaining about?! Thanks for any ideas, I swear this worked yesterday... -- Wendy Smoak - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Clustering Tomcat
Hi I'm trying to configure clustering of 2 Tomcat servers on a single CentOS 4 machine. When I start the first Tomcat, I get error messages like this in the catalina.out log file: org.apache.catalina.cluster.mcast.McastServiceImpl$SenderThread run WARNING: Unable to send mcast message. java.net.SocketException: Operation not permitted at jrockit.net.SocketNativeIO.send(Ljava.io.FileDescriptor;[BIILjava.net.InetAddress;II)I(Unknown Source) at java.net.PlainDatagramSocketImpl.send(Ljava.net.DatagramPacket;[BI)V(Unknown Source) at java.net.PlainDatagramSocketImpl.send(Ljava.net.DatagramPacket;)V(Unknown Source) at java.net.DatagramSocket.send(DatagramSocket.java:612) at org.apache.catalina.cluster.mcast.McastServiceImpl.send(McastServiceImpl.java:228) at org.apache.catalina.cluster.mcast.McastServiceImpl$SenderThread.run(McastServiceImpl.java:264) I am using JRockit 5.0_02 and Tomcat 5.5.9. Where can I find more information about this error? Thanks, Ben - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat restart leaving mod_jk threads in CLOSE_WAIT status
There was an issue where using mod_jk with the AJP13 protocol and restarting Tomcat left the mod_jk connections from Apache to Tomcat in CLOSE_WAIT status. The only thing that would free them was if you restarted Apache. I have in my notes that this issue was fixed w/ the 1.2.6 connector release. However, I am still seeing this behavior on Solaris running Apache 1.3.27 + mod_jk 1.2.6 (binary version downloaded from Jakarta website) + Tomcat 4.1.30. I know that I don't have this problem on RedHat Enterprise Linux 3. I can restart Tomcat w/o having to restart Apache. Is this a bug related to the Solaris version of mod_jk? Anyone out there able to successfully restart Tomcat on Solaris w/o having to restart Apache? Thank you, Mike - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: server options
Running java -h from Windows XP w/ JRE 1.5.0_02 claims that it supports the -server flag. Try creating an environment variable JAVA_OPTS and setting it to be -server -Xmx256m. -- Robert r. Sanders Chief Technologist iPOV (334) 821-5412 www.ipov.net - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: What happened to the searchable list archive?
You can also use: http://dir.gmane.org/gmane.comp.jakarta.tomcat.user I tend to like its interface a little bit better. Steve Kirk wrote: Thanks - great site. Just what I was looking for. -Original Message- From: GB Developer [mailto:[EMAIL PROTECTED] Sent: Friday 20 May 2005 18:05 To: 'Tomcat Users List' Subject: RE: What happened to the searchable list archive? I like marc. http://marc.theaimsgroup.com/?l=tomcat-userr=1w=2 -Original Message- From: Steve Kirk [mailto:[EMAIL PROTECTED] Sent: Friday, May 20, 2005 8:14 AM To: tomcat-user@jakarta.apache.org Subject: What happened to the searchable list archive? It's been a few months since I've been active on the list, and the list archive seems to have changed in that time, could someone please advise? I used to search the list archives here: http://nagoya.apache.org/eyebrowse/SearchList?listName=tomcat- [EMAIL PROTECTED] pache.org But that archive appears to contain very few of the current messages (e.g. only 7 from April, none at all for this month), is there a reason for that? It appears to have gone quiet after Jan 2005 for some reason, see here: http://nagoya.apache.org/eyebrowse/SummarizeList?listName=tomc [EMAIL PROTECTED] a.apache.org I see that there is an archive here now http://mail-archives.apache.org/mod_mbox/jakarta-tomcat-user but it doesn't appear to be searchable...? Of course we can use google site search to search this list, but it's not quite the same thing because you can't select a list to search. Also the thread browsing is not as easy from this archive, once you have found a post via google. - 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] -- Robert r. Sanders Chief Technologist iPOV (334) 821-5412 www.ipov.net
Re: Accessing images through FrontController Servlet
Do you have any logs of what's going on? Also, make sure the pages are using the c:url / tag (or equivalent), as the image paths need to be relative to the url that the client browser see - should be able to hard code the path to be /ntrr/images/whatever.jpg To check for bad paths first view page source from your browser, then you can get the image urls and see if they map to the correct path. There are also some nice tools that you can run to see what's going on, for instance the Live Headers extension for Firefox, or Ethereal for a more general solution William BC Crandall wrote: Hello, I'm starting a new project, using a FrontController servlet (http://java.sun.com/j2ee/patterns/FrontController.html), and am unable to access image files. My understanding is that each img invokes another call to the server/servlet, which, due to the mapping in web.xml, is channeled through the controller servlet, which rejects the call because it does not point to a sub-servlet. How can I access images in webapps/ntrr/images/ ? My web.xml: web-app servlet servlet-name controller /servlet-name servlet-class org.ntrr.core.ControlServlet /servlet-class /servlet servlet-mapping servlet-name controller /servlet-name url-pattern /* /url-pattern /servlet-mapping /web-app I have tried, without success, adding: init-param param-nameimageUrl/param-name param-valuehttp://localhost:8080/ntrr/images//param-value /init-param The files in webapps/ntrr/images/ ARE accessible from webapps/ntrr/css/ntrr.css, when called as background page images, for example. Any suggestions welcomed. Thanks, -BC William BC Crandall bc.crandall [around] earthlink.net - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Robert r. Sanders Chief Technologist iPOV (334) 821-5412 www.ipov.net