RE: Tomcat4 on a Cobalt box
||| -Original Message- ||| From: Christopher K. St. John Thank you Christopher for that. Much appreciated. -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Tomcat corrupts file during download
Hello If this problem indeed exists, then it is a JVM problem. Tomcat obviously can't make a difference it is sending bytes on the LAN or on a WAN, and doesn't do anything unusal when it comes to bytes output. That being said, some people are actually using TC on the internet without corruption or any problem, so I think even if you think it is not your fault, it is a configuration issue on your side. I'm regularly closing bug 4668 for that reason. When I use Tomcat from the Internet I don't have the problem with corruption either. The bug appears only when I connect from the LAN to the server in the same network using Tomcat's WAN IP address. This is not a common situation and it doesn't really spoil the work. I can always connect using LAN server IP address. But the bug is in Tomcat for sure. I used IIS and Apache and no problems appeared. I tried to use Jetty, which is 100% pure Java HTTP server, and it didn't corrupt the file either, so the problem is not in JVM. I don't think that the problem lies in network configuration. In such a case none of the above servers would have worked. Best regards, Dan -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Is there a native JDBC driver for MS Access?
G'day all, Is there a native JDBC driver for MS Access? A few postings I've seen in the list archive make mentioned that the JDBC/ODBC bridge is a bit dodgy. I have Tomcat 4.03 running as a standalone on a Win 2k pro box with JDK 1.3.1 installed. I'm rather new to Tomcat, JSP, JDBC, etc... Any help would be appreciated. Adrian Beech [EMAIL PROTECTED]
Tomcat 3.3.1 : web.xml validation
I have the following message when Tomcat starts : 2002-04-06 14:24:19 - Ctx(/salon) : Validating web.xml 2002-04-06 14:24:19 - Ctx(/salon) : web.xml: Error org.xml.sax.SAXParseException: Element web-app does not allow servlet here. 2002-04-06 14:24:19 - Ctx(/salon) : Line 19 /web-app/ 2002-04-06 14:24:19 - Ctx(/salon) : web.xml: Error org.xml.sax.SAXParseException: Element web-app does not allow servlet-mapping here. 2002-04-06 14:24:19 - Ctx(/salon) : Line 24 /web-app/ 2002-04-06 14:24:19 - Ctx(/salon) : web.xml: Error org.xml.sax.SAXParseException: Element web-app does not allow servlet here. 2002-04-06 14:24:19 - Ctx(/salon) : Line 28 /web-app/ 2002-04-06 14:24:19 - Ctx(/salon) : web.xml: Error org.xml.sax.SAXParseException: Element web-app does not allow servlet-mapping here. 2002-04-06 14:24:19 - Ctx(/salon) : Line 33 /web-app/ ... I have such a message for each servlet servlet mapping. Though the site works fine. Any idea about what's wrong with my web.xml ? Emmanuel Guyot 8 Rue des Montées 45100 Orléans France Phone : [33] (0)2 38 56 42 72 GSM : [33] (0)6 84 61 82 73 Email : [EMAIL PROTECTED] ICQ : 6945538 Home Page : http://emmguyot.dynip.com -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Warp and Virtual Hosts (quick question)
Charlie Toohey wrote: When configuring Apache's httpd.conf (or Vhosts.conf) with multiple name-based virtual hosts, I can not find any documentation regarding the WebAppConnection statement. Should I have a separate WebAppConnection within each virtual host section, or should I just have one WebAppConnection in the main section of httpd.conf, and then refer to that in each of the WebAppDeploy statements that are within the virtual host sections (I do understand that the WebAppDeploy statements for each given webapp needs to be within the virtual host section --- it is the WebAppConnection which I'm not sure about). Never done this myself, since I'm still not in production environment, but... There was an excellent article on java.sun.com on thi subject and basically it boils to this - docs on Tomcat side are lacking. In your server.xml, warp connector should reflect the VirtualHosts of your Apache setup. In the comments it says: !-- Replace localhost with what your Apache ServerName is set to -- They meant Apache instead of localhost. From that I'd conclude that each VirtualHost should have: - one DNS entry - one apache VirtualHost ... - one Tomcat Engine ../Engine - one (at least) Warp connection between the two For larger virtual hostings you might want to consider running several Tomcat instances for, either each one or groups of virtual hosts. Nix. -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Tomcat corrupts file during download
Are you downloading the file with a jsp page? It should be noted that if you write to the output stream of a jsp page: [HttpServletResponse/ServletResponse.getOutputStream()], then the output stream returned is a character output stream and will mangle binary files and not handle all output correctly. Just thought I would point that out since it gave me some serious headaches. - Original Message - From: Dan Gabdullin [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Saturday, April 06, 2002 5:55 AM Subject: RE: Tomcat corrupts file during download Hello If this problem indeed exists, then it is a JVM problem. Tomcat obviously can't make a difference it is sending bytes on the LAN or on a WAN, and doesn't do anything unusal when it comes to bytes output. That being said, some people are actually using TC on the internet without corruption or any problem, so I think even if you think it is not your fault, it is a configuration issue on your side. I'm regularly closing bug 4668 for that reason. When I use Tomcat from the Internet I don't have the problem with corruption either. The bug appears only when I connect from the LAN to the server in the same network using Tomcat's WAN IP address. This is not a common situation and it doesn't really spoil the work. I can always connect using LAN server IP address. But the bug is in Tomcat for sure. I used IIS and Apache and no problems appeared. I tried to use Jetty, which is 100% pure Java HTTP server, and it didn't corrupt the file either, so the problem is not in JVM. I don't think that the problem lies in network configuration. In such a case none of the above servers would have worked. Best regards, Dan -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Is there a native JDBC driver for MS Access?
No, you are forced to use the JDBC/ODBC bridge or purchase one of the proprietary drivers available. I know there are Paradox, FoxPro and dBase IV drivers but I have not seen any for Access. - Original Message - From: Adrian Beech [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Sunday, April 07, 2002 6:47 AM Subject: Is there a native JDBC driver for MS Access? G'day all, Is there a native JDBC driver for MS Access? A few postings I've seen in the list archive make mentioned that the JDBC/ODBC bridge is a bit dodgy. I have Tomcat 4.03 running as a standalone on a Win 2k pro box with JDK 1.3.1 installed. I'm rather new to Tomcat, JSP, JDBC, etc... Any help would be appreciated. Adrian Beech [EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Tomcat corrupts file during download
Are you downloading the file with a jsp page? It should be noted that if you write to the output stream of a jsp page: [HttpServletResponse/ServletResponse.getOutputStream()], then the output stream returned is a character output stream and will mangle binary files and not handle all output correctly. Just thought I would point that out since it gave me some serious headaches. Thank you, but it is not the case with me. I just put the file into the root webapp and try to download it using the http://serverip/filename string in the browser address bar. -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: inter-webapp communications
Thanks Joe, yeah - we can use HTTP. Was just trying to make sure that I wasn't overlooking a simpler, more standardized method of building webapps for use within a larger site. cheers, chas Well if the folks can actually write servlets (or even other simpler things) then there certainly are options. a) First, they could send you some XML over some HTTP post operation. Doing a post operation is simple and creating XML is simple. You then return what you wish ... easiest is probably more XML since parsers are all over the place. Essentially that is what SOAP and XMLRPC do, except they are very well structured on what they look like (and have extra associated overhead of learning a standard). b) You can do a simple form post (either via GET or POST), one name value pair can represent the 'function' and the other name value pairs can represent the 'parameters' to the function and you return the 'value' as you see fit (in any format you wish ... again XML is probably easiest due to parsers, etc). Both of these can be done (by your users) in JSP, Servlets, ASP, Perl, etc. They are both fairly simple, but they are conceptually the same as SOAP and XMLRPC, you are using HTTP to perform an operation. Before the SOAP and XMLRPC standards I used the a) approach quite often when it came to simple non-speed oriented systems, otherwise I used RMI on Java and either DCE or ONC RPC on C++ systems. Joseph Molnar http://www.codesta.com/ - Original Message - From: chas [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Saturday, April 06, 2002 12:29 PM Subject: Re: inter-webapp communications Thanks for the speedy response, Joseph. At 18:47 05/04/2002 -0800, Joseph Molnar wrote: Generally people are using SOAP or XMLRPC or some other mechanism that would constitute being a 'web service'. Was hoping to avoid SOAP or XMLRPC - they're a bit beyond the end-developers who'll use my webapp and it's just that added barrier to entry. Really, would love for them to be able to integrate my webapp into their own website with no further experience other than the ability to write a servlet (which I know they can). Have just realized that RequestDispatcher won't cut it either - because it relies on the called servlet being within the same context (/...) which isn't the case with a separate webapp. Taglibs are certainly looking like the cleanest mechanism now... but I dislike JSPs myself. still searching. thanks again, chas - Original Message - From: chas [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Saturday, April 06, 2002 10:24 AM Subject: inter-webapp communications - anything better than RequestDispatcher? Is there any standard mechanism for inter-webapp communication ? Perhaps an example would explain this better: On my production server, our website is in tomcat_home/webapps/mainsite This contains content, forms, JSPs, servlets, the standard corporate website. Now, on my laptop I've created a standalone webapp for an events calendar, and another webapp that is a discussion forum. tomcat_home/webapps/eventscal tomcat_home/webapps/forum Of course, I can deploy these 2 webapps on the production server but do not wish them to be independent sites. Instead, I wish to make calls to these from the main website - treating them as individual components. For example, a servlet or JSP in my main site might call (pseudocode) - eventscal.addEvent() or forum.addDisplayThread() Is there a standard mechanism for this ? Options I've considered : a. Creating a custom taglib. Don't wish to do this because I wish to be free of JSPs. Also, I still want to be able to deploy the webapp as a standalone application if needs be. b. I could do this with RMI but that seems like overkill and slower performance. However, it has the advantage that it's scalable (if ever I had to deploy over multiple machines). c. RequestDispatcher is the closest that I've seen and I'm happy to continue using this unless there is a better way to do it. Really, I'm looking at the best mechanism for packaging a webapp so that other people can use it as part of their existing site. eg. one that is perhaps more J2EE or framework friendly, so that the webapp can be used by a greater number of people. If I'm going about this completely wrong, pls do say. Thank you very much for bearing with me, chas -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL
Re: Is there a native JDBC driver for MS Access?
There is NO native Access Driver... for NON-Microsoft Platforms... OBDC only... It is possible to run a JDBC Driver to get to an ODBC Connection on a Microsoft Machine. For developers, I believe even Microsoft suggests you use Foxpro. There is a fellow who wrote a Class 4 JDBC Driver for Foxpro, and it works great I've been working with him on better UltraDev Integration. There will be File Locking Soon, that will allow native foxpro applications to seemlessly work with web applications. http://www.hxtt.net/jdbc.html todd http://www.wiserlabz.com collaborative effort to promote Novell and Open Source solutions Adrian Beech wrote: G'day all, Is there a native JDBC driver for MS Access? A few postings I've seen in the list archive make mentioned that the JDBC/ODBC bridge is a bit dodgy. I have Tomcat 4.03 running as a standalone on a Win 2k pro box with JDK 1.3.1 installed. I'm rather new to Tomcat, JSP, JDBC, etc... Any help would be appreciated. Adrian Beech [EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Tomcat Forum
Why don't all of use support / forum sites, standardize, on let's say an NNTP backbone, and synchronize all our apache / tomcat etc.. support forums... let's show what technology can do... todd [EMAIL PROTECTED] wrote: Hello I just registered jspforums.com, and asked to jive for a non commercial license, let's see what happen :). If I don't get the jive license I'll use Vbulletin. -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Tomcat 3.3.1 : web.xml validation
You probably have the tags in the web.xml (context salon) in an incorrect order. Post the web.xml file here. Some might point out the correct order. RS Emmanuel Guyot [EMAIL PROTECTED] on 04/06/2002 06:29:03 AM Please respond to Tomcat Users List [EMAIL PROTECTED] To: Liste tomcat-user [EMAIL PROTECTED] cc: Subject: Tomcat 3.3.1 : web.xml validation I have the following message when Tomcat starts : 2002-04-06 14:24:19 - Ctx(/salon) : Validating web.xml 2002-04-06 14:24:19 - Ctx(/salon) : web.xml: Error org.xml.sax.SAXParseException: Element web-app does not allow servlet here. 2002-04-06 14:24:19 - Ctx(/salon) : Line 19 /web-app/ 2002-04-06 14:24:19 - Ctx(/salon) : web.xml: Error org.xml.sax.SAXParseException: Element web-app does not allow servlet-mapping here. 2002-04-06 14:24:19 - Ctx(/salon) : Line 24 /web-app/ 2002-04-06 14:24:19 - Ctx(/salon) : web.xml: Error org.xml.sax.SAXParseException: Element web-app does not allow servlet here. 2002-04-06 14:24:19 - Ctx(/salon) : Line 28 /web-app/ 2002-04-06 14:24:19 - Ctx(/salon) : web.xml: Error org.xml.sax.SAXParseException: Element web-app does not allow servlet-mapping here. 2002-04-06 14:24:19 - Ctx(/salon) : Line 33 /web-app/ ... I have such a message for each servlet servlet mapping. Though the site works fine. Any idea about what's wrong with my web.xml ? Emmanuel Guyot 8 Rue des Montées 45100 Orléans France Phone : [33] (0)2 38 56 42 72 GSM : [33] (0)6 84 61 82 73 Email : [EMAIL PROTECTED] ICQ : 6945538 Home Page : http://emmguyot.dynip.com -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Tomcat 3.3.1 : web.xml validation
That's right. The order is important : I had to put the servlet tags then the servlet-mapping tags and now it works fine. Thanks. E.G. - Original Message - From: [EMAIL PROTECTED] To: Tomcat Users List Sent: Saturday, April 06, 2002 7:01 PM Subject: Re: Tomcat 3.3.1 : web.xml validation You probably have the tags in the web.xml (context salon) in an incorrect order. Post the web.xml file here. Some might point out the correct order. RS Emmanuel Guyot [EMAIL PROTECTED] on 04/06/2002 06:29:03 AM Please respond to Tomcat Users List [EMAIL PROTECTED] To: Liste tomcat-user [EMAIL PROTECTED] cc: Subject: Tomcat 3.3.1 : web.xml validation I have the following message when Tomcat starts : 2002-04-06 14:24:19 - Ctx(/salon) : Validating web.xml 2002-04-06 14:24:19 - Ctx(/salon) : web.xml: Error org.xml.sax.SAXParseException: Element web-app does not allow servlet here. 2002-04-06 14:24:19 - Ctx(/salon) : Line 19 /web-app/ 2002-04-06 14:24:19 - Ctx(/salon) : web.xml: Error org.xml.sax.SAXParseException: Element web-app does not allow servlet-mapping here. 2002-04-06 14:24:19 - Ctx(/salon) : Line 24 /web-app/ 2002-04-06 14:24:19 - Ctx(/salon) : web.xml: Error org.xml.sax.SAXParseException: Element web-app does not allow servlet here. 2002-04-06 14:24:19 - Ctx(/salon) : Line 28 /web-app/ 2002-04-06 14:24:19 - Ctx(/salon) : web.xml: Error org.xml.sax.SAXParseException: Element web-app does not allow servlet-mapping here. 2002-04-06 14:24:19 - Ctx(/salon) : Line 33 /web-app/ ... I have such a message for each servlet servlet mapping. Though the site works fine. Any idea about what's wrong with my web.xml ? Emmanuel Guyot 8 Rue des Montées 45100 Orléans France Phone : [33] (0)2 38 56 42 72 GSM : [33] (0)6 84 61 82 73 Email : [EMAIL PROTECTED] ICQ : 6945538 Home Page : http://emmguyot.dynip.com -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
build 4.1 broken
builds for last 2 days are not. 4/5-6 todd http://www.wiserlabz.com collaborative effort to promote Novell and Open Source solutions -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Warp and Virtual Hosts (quick question)
Hey folks. I think I am going to write something up on this because I have a fairly complex situation that covers what you need to do to get virtual hosts working and since documentation is non-existent. I figured it out by experimenting and I now have a completely operational systems. I don't have the complete config where I am now so I will just describe and then send a pointer out when the write up is done. My general setup is as follows: I am using JDK 1.4 with Tomcat 4.0.3, Apache 1.3.22 (with WARP so). I have 4 virtual hosts, some of them require (additionally) to be used via SSL and non-SSL (so it is basically 8 name/port combinations). Also, I wanted some of them to be in different Java/Tomcat VM's since I don't want one going down to take out others. Generally speaking this is what I do: In my httpd.conf, at the top, I list all of my connections since I share some of the connections between different hosts (essentially you can and should share a connection when you don't care if the VM goes down between the two and if they are both either SSL or both not SSL covered). Also, make sure you tell Apache you are doing name virtual hosts (if they don't have different IP's). Then in the virtual hosts I put the WebAppDeploy. BUT since I am using JSP's right off the bat and since I only want to manage the contents of a virtual host in one place, the WebAppDeploy looks like this (even when the connection is shared): WebApp Deploy.connectiion Yes it looks like they would then be sharing the exact same applications...but that isn't true, I manage the virtual hosts in the server.xml, which imo, is what you want to do (again manage from one place). So let's switch to the server.xml's. Since I run more than Tomcat instance I have a set of scripts that startup the different instances, making sure to set $CATALINA_HOME (mainly for the bin directory), and $CATALINA_BASE (for the specific server instance). In the server.xml (I will recall just one), I have one Server tag, and then I have 2 Service takes. The difference Service areas are to make sure that I properly cover SSL and non-SSL connections. So in each of the Service areas I tell it scheme=http (or https) and secure=false (or true) as is necessary. BUT this doesn't actually turn on SSL, remember that SSL handling is covered by Apache. This is so that when a JSP or Servlet asks if the connection is secure, the answer will be yes. So then in the Engine area you place your virtual hosts. This is through the Host tag, making sure you specify name=virtual host name. I then have a Context in that which directs to the appropriate root location (in the same directory on the server I have different sub-directories for the http and https based roots). Anyway, this should be enough pointers, without many examples, to get you going. Basically the sample server.xml in Tomcat has what you are looking for BUT it implies that you don't do it with WARP because it is all under the HTTP connector. But much of that you can actually use with WARP, and it works well. When I write it up I will include example scripts/conf/xml files and some of the interesting things I found. I think it will be a useful resource for the community in generally (it can be frustrating, but I generally had fun figuring it out). Joseph Molnar http://www.codesta.com/ - Original Message - From: Nikola Milutinovic [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Saturday, April 06, 2002 5:04 AM Subject: Re: Warp and Virtual Hosts (quick question) Charlie Toohey wrote: When configuring Apache's httpd.conf (or Vhosts.conf) with multiple name-based virtual hosts, I can not find any documentation regarding the WebAppConnection statement. Should I have a separate WebAppConnection within each virtual host section, or should I just have one WebAppConnection in the main section of httpd.conf, and then refer to that in each of the WebAppDeploy statements that are within the virtual host sections (I do understand that the WebAppDeploy statements for each given webapp needs to be within the virtual host section --- it is the WebAppConnection which I'm not sure about). Never done this myself, since I'm still not in production environment, but... There was an excellent article on java.sun.com on thi subject and basically it boils to this - docs on Tomcat side are lacking. In your server.xml, warp connector should reflect the VirtualHosts of your Apache setup. In the comments it says: !-- Replace localhost with what your Apache ServerName is set to -- They meant Apache instead of localhost. From that I'd conclude that each VirtualHost should have: - one DNS entry - one apache VirtualHost ... - one Tomcat Engine ../Engine - one (at least) Warp connection between the two For larger virtual hostings you might want to consider running several Tomcat instances for, either each one or
autoDeploy scan timer setting?
In org.apache.catalina.startup.HostConfig I see a variable that sets the scan timer to deploy new contexts: /** * The number of seconds between checks for web app deployment. */ private int checkInterval = 15; is there a server.xml config file setting to alter this? 15 seconds is a bit too fast... I've noticed that if you happen to hit the URL for the context while it's being deployed then the deployment aborts and you have to restart tomcat to be able to start that context. Is this a known bug? Thanks, Adi -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Some body Help
Hi All Iam using Tomcat 4.0 on NT. When a client kills a browser, I dont have any idea whether the client is alive or not from a servlet. when client is not alive I want release database connections and objects instances. how do I know which user is alive or which session is alive. Is there any software available. Please help Thanks Uma -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
W2000/isapi Redirection to Tomcat Problem
Gentlepeople, I have previously installed Tomcat to work properly behind IIS. I have now attempted to duplicate that success on another system. In the latest case, I cannot get the isapi redirector to work. The symptoms are... //localhost/examples/jsp/index.html returns a 404 error. The IIS log shows that this request was redirected as follows... 2002-04-06 19:30:48 134.156.64.5 - 134.156.12.86 80 GET /jakarta/isapi_redirect.dll - 404 Mozilla/4.0+(compatible;+MSIE+5.01;+Windows+NT+5.0) Tomcat is running, as the page properly displays if I //localhost:8080/examples/jsp/index.html. The isapi log appears to be unhelpful. It contains only entries of the form... [jk_uri_worker_map.c (335)]: jk_uri_worker_map_t::uri_worker_map_close, NULL parameter [jk_uri_worker_map.c (185)]: In jk_uri_worker_map_t::uri_worker_map_free, NULL parameters I am unsure where else to look for clues. The two machines were configured very closely to one another. Both have W2000 with SP2. The differences between the new (non-working) machine and the older (working machine) are... New machine has 9 additional MS hotfixes (although I am in the process of systematically removing them). New machine is a dual-proc, 1.3GHz box, old one is a mono-proc 1.0GHz. Any ideas on what to try would be appreciated. Tim Perala Minnesota Power -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
linux servlet - /etc/passwd authentication
I am playing with trying to get a tomcat servlet to get username and password from a user and authenticate with the underlying linux /etc/passwd /etc/shadow file. I have looked into JAAS, it only seems to support NT, database, and flat text file authentication. From what I can tell, it may not exist. Have you seen anything on this or have any ideas of how to make it work? If I have to, I will turn off shadowing for this application... Examples of code would be greatly appreciated. allen
RE: why does tomcat stop suddenly
Does your site contain a lot of JSP that is not pre-compiled??? I have had problems with the jspc jsp compiler running my machine out of memory before. Regards, --Jay Gardner -Original Message- From: Lalit Nagpal [mailto:[EMAIL PROTECTED]] Sent: Thursday, April 04, 2002 11:20 PM To: [EMAIL PROTECTED] Subject: why does tomcat stop suddenly hi, i am using tomcat version 4.0 (standalone). I run it executing the startup.sh file only to discover the next morning that the server has stopped. catalina.out has no stopping tomcat message. i have already tried with nohup command as suggested by some people, did not work. what could be the possible reason. any ideas. plz help ... thanx Lalit Nagpal - Do You Yahoo!? Yahoo! Tax Center - online filing with TurboTax -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
AW: linux servlet - /etc/passwd authentication
hi, i thinlk using the /etc/passwd(shadow) file isnt a good idea for a servlet authentication. think about security. do you have read the tomcat-documentation about JDBCRealm? localhost:8080/doc/JDBCRealm-howto.html (or something) its very easy to set up this realm and also not so insecure. i bet, when u r using /etc stuff you will run into trouble. cheers sven --- sven (e)wert !!! ___ ()_() ` _ _ ' _*_ (o o) - (OXO) - (o o) ooO--`o'--Ooo-ooO--(_)--Ooo--8---(_)--Ooo- (?`..,(?`.., I`ll greetz you ,..??),..??) In a time of insanity, let a madman lead the way -Ursprungliche Nachricht- Von: Allen Harper [mailto:[EMAIL PROTECTED]] Gesendet: Samstag, 6. April 2002 22:37 An: [EMAIL PROTECTED] Betreff: linux servlet - /etc/passwd authentication I am playing with trying to get a tomcat servlet to get username and password from a user and authenticate with the underlying linux /etc/passwd /etc/shadow file. I have looked into JAAS, it only seems to support NT, database, and flat text file authentication. From what I can tell, it may not exist. Have you seen anything on this or have any ideas of how to make it work? If I have to, I will turn off shadowing for this application... Examples of code would be greatly appreciated. allen -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Is there a native JDBC driver for MS Access?
Um, okay then how stable is the JDBC/ODBC bridge? As I previously mentioned in my initial posting some bits and peices that I've read suggest that this method of connecting to a DB back end is, or can be, a little dodgy. The comments basically revolved around the premise that the bridge is not capable of being threaded and it is considered by Sun to still be experimental. I got the impression that there is potential for data loss or corruption along with performance related issues. I guess I really need to know if it is reasonable to use Tomcat to host an environment that relies on this sort of DB connectivity. Adrian [EMAIL PROTECTED] - Original Message - From: Matt Gregory [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Saturday, April 06, 2002 11:06 PM Subject: Re: Is there a native JDBC driver for MS Access? No, you are forced to use the JDBC/ODBC bridge or purchase one of the proprietary drivers available. I know there are Paradox, FoxPro and dBase IV drivers but I have not seen any for Access. - Original Message - From: Adrian Beech [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Sunday, April 07, 2002 6:47 AM Subject: Is there a native JDBC driver for MS Access? G'day all, Is there a native JDBC driver for MS Access? A few postings I've seen in the list archive make mentioned that the JDBC/ODBC bridge is a bit dodgy. I have Tomcat 4.03 running as a standalone on a Win 2k pro box with JDK 1.3.1 installed. I'm rather new to Tomcat, JSP, JDBC, etc... Any help would be appreciated. Adrian Beech [EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Is there a native JDBC driver for MS Access?
On Mon, 8 Apr 2002, Adrian Beech wrote: Date: Mon, 8 Apr 2002 10:38:45 +1000 From: Adrian Beech [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Subject: Re: Is there a native JDBC driver for MS Access? Um, okay then how stable is the JDBC/ODBC bridge? As I previously mentioned in my initial posting some bits and peices that I've read suggest that this method of connecting to a DB back end is, or can be, a little dodgy. The comments basically revolved around the premise that the bridge is not capable of being threaded and it is considered by Sun to still be experimental. I got the impression that there is potential for data loss or corruption along with performance related issues. The JDBC/ODBC bridge is not appropriate for use in a multithreaded environment like a servlet container. Also, lots of people have had problems trying to use MS Access (designed for personal desktop use) in environments like this, even with a for-pay JDBC driver. I'd start by choosing a different database. I guess I really need to know if it is reasonable to use Tomcat to host an environment that relies on this sort of DB connectivity. Adrian [EMAIL PROTECTED] Craig -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: autoDeploy scan timer setting?
In org.apache.catalina.startup.HostConfig I see a variable that sets the scan timer to deploy new contexts: /** * The number of seconds between checks for web app deployment. */ private int checkInterval = 15; is there a server.xml config file setting to alter this? 15 seconds is a bit too fast... I've noticed that if you happen to hit the URL for the context while it's being deployed then the deployment aborts and you have to restart tomcat to be able to start that context. Is this a known bug? I've been doing this, and this does not happen. Remy -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Is there a native JDBC driver for MS Access?
--- Craig R. McClanahan [EMAIL PROTECTED] wrote: On Mon, 8 Apr 2002, Adrian Beech wrote: Date: Mon, 8 Apr 2002 10:38:45 +1000 From: Adrian Beech [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Subject: Re: Is there a native JDBC driver for MS Access? Um, okay then how stable is the JDBC/ODBC bridge? As I previously mentioned in my initial posting some bits and peices that I've read suggest that this method of connecting to a DB back end is, or can be, a little dodgy. The comments basically revolved around the premise that the bridge is not capable of being threaded and it is considered by Sun to still be experimental. I got the impression that there is potential for data loss or corruption along with performance related issues. The JDBC/ODBC bridge is not appropriate for use in a multithreaded environment like a servlet container. Also, lots of people have had problems trying to use MS Access (designed for personal desktop use) in environments like this, even with a for-pay JDBC driver. I'd start by choosing a different database. How about MySQL (http://www.mysql.org) ? They have a type 4 JDBC driver. Is this OK in a multithreaded environment ? I guess I really need to know if it is reasonable to use Tomcat to host an environment that relies on this sort of DB connectivity. Adrian [EMAIL PROTECTED] Craig Sriram __ Do You Yahoo!? Yahoo! Tax Center - online filing with TurboTax http://taxes.yahoo.com/ -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Is there a native JDBC driver for MS Access?
mysql, postgresql, anything but ms access even sqlserver would be vast improvement. On Sat, 6 Apr 2002, Sriram N wrote: --- Craig R. McClanahan [EMAIL PROTECTED] wrote: On Mon, 8 Apr 2002, Adrian Beech wrote: Date: Mon, 8 Apr 2002 10:38:45 +1000 From: Adrian Beech [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Subject: Re: Is there a native JDBC driver for MS Access? Um, okay then how stable is the JDBC/ODBC bridge? As I previously mentioned in my initial posting some bits and peices that I've read suggest that this method of connecting to a DB back end is, or can be, a little dodgy. The comments basically revolved around the premise that the bridge is not capable of being threaded and it is considered by Sun to still be experimental. I got the impression that there is potential for data loss or corruption along with performance related issues. The JDBC/ODBC bridge is not appropriate for use in a multithreaded environment like a servlet container. Also, lots of people have had problems trying to use MS Access (designed for personal desktop use) in environments like this, even with a for-pay JDBC driver. I'd start by choosing a different database. How about MySQL (http://www.mysql.org) ? They have a type 4 JDBC driver. Is this OK in a multithreaded environment ? I guess I really need to know if it is reasonable to use Tomcat to host an environment that relies on this sort of DB connectivity. Adrian [EMAIL PROTECTED] Craig Sriram __ Do You Yahoo!? Yahoo! Tax Center - online filing with TurboTax http://taxes.yahoo.com/ -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Apache 2.0.35 + mod_jk-3.3-ap20.so
Hi I got all excited when I got the announcement that Apache 2.0.35 was no longer a beta and was an official release so I downloaded the archive httpd-2.0.35.tar.gz and installed it. I have only one hangup as of right now and that's the inability to make use of the mod_jk connector. I am currently getting the error from apache httpd: module mod_jk.c is not compatible with this version of Apache. Please contact the vendor for the correct version. I am using the exact same configuration as with my old 1.3.24 apache. With the exception of using the mod_jk-3.3-ap20.so module. It sounds as if I would have to somehow know how to change the source code of this module to account for the differences between whatever version of Apache 2.0 this was compiled for and re-compile but frankly I haven't a clue where to start. I ran a search on google and was unable to find anybody successfully using mod_jk with Apache 2.0. As a matter of fact, I couldn't find any reference to this ap20 module anywhere except the Jakarta site. I cam currently using tomcat from the archive, jakarta-tomcat-4.0.3-LE-jdk14.tar.gz if this helps, currently tomcat is running fine. Does anybody have a copy of a mod_jk.so that will work for Apache 2.0.35? Thanks Don Lee -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Apache 2.0.35 + mod_jk-3.3-ap20.so
At Saturday 4/6/02 10:43 PM, you wrote: Hi I got all excited when I got the announcement that Apache 2.0.35 was no longer a beta and was an official release so I downloaded the archive httpd-2.0.35.tar.gz and installed it. I have only one hangup as of right now and that's the inability to make use of the mod_jk connector. I am currently getting the error from apache httpd: module mod_jk.c is not compatible with this version of Apache. Please contact the vendor for the correct version. I am using the exact same configuration as with my old 1.3.24 apache. With the exception of using the mod_jk-3.3-ap20.so module. It sounds as if I would have to somehow know how to change the source code of this module to account for the differences between whatever version of Apache 2.0 this was compiled for and re-compile but frankly I haven't a clue where to start. Donald, That's exactly correct. Modules written for Apache 1.3 will _not_ work with Apache 2.0 unless they are re-written in order to be specific to 2.0. You should probably stick with 1.3. -- Paul Bain -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: saving object
I have done this with some row_id defined to be auto-insert on mysql. With auto-insert you know it will be unique but might want to make that a constraint. insert .blah blah select max(row_id) - yields the number of the last tx. row_id is just an example for your purpses. Good luck At 01:41 PM 4/5/02, you wrote: a little bit off topic. I have a table with each row corresponds to a javabean object. The objects don't necessarily have a primary key, so i use a sequence number as its primary key, and a trigger to assign the sequence number to its ID column when a new object is inserted into the database. However, after I insert the object into the table, how can i know the object's ID in the table? If I simply do a ..._seq.cur_val, it is not safe when multiple users can access the database and save their javabean into it at the same time. How could you guys accomplish that? -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Is there a native JDBC driver for MS Access?
i agree, access is a very poor choice of db for ANY production system. matt - Original Message - From: Craig R. McClanahan [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Saturday, April 06, 2002 8:08 PM Subject: Re: Is there a native JDBC driver for MS Access? On Mon, 8 Apr 2002, Adrian Beech wrote: Date: Mon, 8 Apr 2002 10:38:45 +1000 From: Adrian Beech [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Subject: Re: Is there a native JDBC driver for MS Access? Um, okay then how stable is the JDBC/ODBC bridge? As I previously mentioned in my initial posting some bits and peices that I've read suggest that this method of connecting to a DB back end is, or can be, a little dodgy. The comments basically revolved around the premise that the bridge is not capable of being threaded and it is considered by Sun to still be experimental. I got the impression that there is potential for data loss or corruption along with performance related issues. The JDBC/ODBC bridge is not appropriate for use in a multithreaded environment like a servlet container. Also, lots of people have had problems trying to use MS Access (designed for personal desktop use) in environments like this, even with a for-pay JDBC driver. I'd start by choosing a different database. I guess I really need to know if it is reasonable to use Tomcat to host an environment that relies on this sort of DB connectivity. Adrian [EMAIL PROTECTED] Craig -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: saving object
What database are you using? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Saturday, April 06, 2002 9:15 PM To: Tomcat Users List Subject: Re: saving object I have done this with some row_id defined to be auto-insert on mysql. With auto-insert you know it will be unique but might want to make that a constraint. insert .blah blah select max(row_id) - yields the number of the last tx. row_id is just an example for your purpses. Good luck At 01:41 PM 4/5/02, you wrote: a little bit off topic. I have a table with each row corresponds to a javabean object. The objects don't necessarily have a primary key, so i use a sequence number as its primary key, and a trigger to assign the sequence number to its ID column when a new object is inserted into the database. However, after I insert the object into the table, how can i know the object's ID in the table? If I simply do a ..._seq.cur_val, it is not safe when multiple users can access the database and save their javabean into it at the same time. How could you guys accomplish that? -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]