Re: Invalid DOAP file for the Tomcat Project
That's great :D So if I understand you correctly, all the DOAP files on Apache are created and updated manually? - Erling On Sun, Jul 27, 2008 at 3:34 PM, Mark Thomas [EMAIL PROTECTED] wrote: Erling Wegger Linde wrote: Hi, http://svn.apache.org/repos/asf/tomcat/site/trunk/docs/doap_Tomcat.rdf is invalid. Fixed - thanks for the report. The live site will update in ~ 1 hour. Of course, it is still horribly out of date... Mark - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Med vennlig hilsen Erling Wegger Linde - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
tomcat server hang when processing more request
i am using tomcat 4 on unix server. it hangs with in every 20-30 minutes when more requests are came to server. It only works when i restart the server. I cant find the possible cause to this problem...can any body told me the command to say how many threads of tomcat are running in server. or any other solution to the above mentioned problem. -- View this message in context: http://www.nabble.com/tomcat-server-hang-when-processing-more-request-tp18685348p18685348.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Invalid DOAP file for the Tomcat Project
Erling Wegger Linde wrote: That's great :D So if I understand you correctly, all the DOAP files on Apache are created and updated manually? Yep. That is my understanding. Mark - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Programmatically detecting login or logout events
Hello I'm trying to find a way to detect the events caused when a user logs into or logs out of an application I'm working on. I want to record these events so that I know the exact steps a user has taken through the application's JSPs and servlets. I want to do this without reference to the Apache Tomcat server logs as well. I have tried the following code in index.jsp (which is serving as each user's home page): % if (request.getParameter(logoff) != null) { session.invalidate(); response.sendRedirect(/myDataSharer/jsp/user/index.jsp); return; } % And I have tried using variations like: % if (request.getParameter(logon) == true) { But without success. I have used request.getRemoteUser() at various points in the application to identify the current user when they are authenticated by Apache Tomcat. However, request.getRemoteUser() does not tell me when the user logged in or off. Does anyone know a way that the login and logout events can be recorded by an event in a program, a session object and so on? I'm using NetBeans 6.1 with Apache Tomcat 6.X. Thanks Martin O'Shea. -- View this message in context: http://www.nabble.com/Programmatically-detecting-login-or-logout-events-tp18685933p18685933.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Programmatically detecting login or logout events
MartinOShea wrote: I have used request.getRemoteUser() at various points in the application to identify the current user when they are authenticated by Apache Tomcat. However, request.getRemoteUser() does not tell me when the user logged in or off. request.getRemoteUser() tells you if the user is authenticated. Does anyone know a way that the login and logout events can be recorded by an event in a program, a session object and so on? Have you looked at session listeners? It depends what you mean by login and logout. If login is the transition from request.getRemoteUser()==null to request.getRemoteUser()!=null and logout is when the session is invalidated then a combination of request.getRemoteUser() and a session listener should be all you need. Mark - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Programmatically detecting login or logout events
markt-2 wrote: MartinOShea wrote: I have used request.getRemoteUser() at various points in the application to identify the current user when they are authenticated by Apache Tomcat. However, request.getRemoteUser() does not tell me when the user logged in or off. request.getRemoteUser() tells you if the user is authenticated. Does anyone know a way that the login and logout events can be recorded by an event in a program, a session object and so on? Have you looked at session listeners? It depends what you mean by login and logout. If login is the transition from request.getRemoteUser()==null to request.getRemoteUser()!=null and logout is when the session is invalidated then a combination of request.getRemoteUser() and a session listener should be all you need. Mark - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Mark By login or logout, I mean the actual physical login and logout actions by the user concerned which I expect translate to request.getRemoteUser()==null for logout and request.getRemoteUser()!=null for login. But I'm not familiar with session listeners so I will be looking at them later. Do you have any sample code at all? Thanks Martin O'Shea. -- View this message in context: http://www.nabble.com/Programmatically-detecting-login-or-logout-events-tp18685933p18686159.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Programmatically detecting login or logout events
- Original Message - From: MartinOShea [EMAIL PROTECTED] To: users@tomcat.apache.org Sent: Monday, July 28, 2008 10:15 AM Subject: Programmatically detecting login or logout events Hello I'm trying to find a way to detect the events caused when a user logs into or logs out of an application I'm working on. I want to record these events so that I know the exact steps a user has taken through the application's JSPs and servlets. I want to do this without reference to the Apache Tomcat server logs as well. I have tried the following code in index.jsp (which is serving as each user's home page): % if (request.getParameter(logoff) != null) { session.invalidate(); response.sendRedirect(/myDataSharer/jsp/user/index.jsp); return; } % And I have tried using variations like: % if (request.getParameter(logon) == true) { But without success. I have used request.getRemoteUser() at various points in the application to identify the current user when they are authenticated by Apache Tomcat. However, request.getRemoteUser() does not tell me when the user logged in or off. Does anyone know a way that the login and logout events can be recorded by an event in a program, a session object and so on? Martin the problem is that even when you invalidat the session... the browser itself still knows that the user is cool... So TC will send it a new session ID and it will return the info without even asking the user to logon as such... Even when a user opens a new page in the browser... it knows they still cool Until the browser is closed they logged on ;) And there is no direct the browser is gone event... browsers are stateless yada yada if request.getRemoteUser() has the users name... they on... you dont know when they off but you can track the user... either you have that in every page and if you get a name you record time page url... or you can stick that in a filter... which sits in front of all your pages, so you dont have to doctor every page on a site... You know when they in... you dont know when they gone.. Some security systems do have the ability to timeout dormant browsers... ie the user has left it open and left their desk, but TC I dont think can do that without addon tools. request.getRemoteUser() in a filter will do what you need I think... you can track em... but you dont know when they having lunch ;) Good Luck --- HARBOR : http://www.kewlstuff.co.za/index.htm The most powerful application server on earth. The only real POJO Application Server. See it in Action : http://www.kewlstuff.co.za/cd_tut_swf/whatisejb1.htm --- - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to configure Toncat to accept HTTP PUT requests?
Hi Charles, I created a new servlet context and added the configuration you sent me in its web.xml and it worked fine ;-) Thanks a lot for your help! 2008/7/25 Caldarale, Charles R [EMAIL PROTECTED] From: Moley Harey [mailto:[EMAIL PROTECTED] Subject: How to configure Toncat to accept HTTP PUT requests? if I need to enable this for a single folder under webapps that is going to be used as a repository accesible via HTTP, how can I configure that? I am using Tomcat 5.5.7 (Thank you for telling us your Tomcat version up front.) Look in conf/web.xml for the DefaultServlet parameters, in particular readOnly. Copy the servlet section for it to the WEB-INF/web.xml for the webapp that you want to be able to dump things into. Change the servlet-name to something unique, and set the readOnly parameter value to true. Add a servlet-mapping for that unique name with a url-pattern of / (without the quotes) and you should be able to clobber whatever you want in just that webapp. You might also want to investigate various webdav-based mechanisms as an alternative. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- ~~~ El tiempo es vida y la vida se lleva en el corazon! http://moleyharey.blogspot.com/
Re: Programmatically detecting login or logout events
Martin the problem is that even when you invalidat the session... the browser itself still knows that the user is cool... So TC will send it a new session ID and it will return the info without even asking the user to logon as such... I can see this happening ONLY if the user is authenticating via BASIC auth or using a front end like Apache Httpd to perform authentication. With Form authentication, this behavior would not happen. With form auth, the user would be redirected to the login page before a secured page ever received another request from that user. --David Alan Chaney wrote: Martin the problem is that even when you invalidat the session... the browser itself still knows that the user is cool... So TC will send it a new session ID and it will return the info without even asking the user to logon as such... Please indicate the part of the Tomcat code which makes the above behavior happen. I quote from the Servlet 2.4 spec. If the user is authenticated using form login and has created an HTTP session, the timeout or invalidation of that sessions leads to the user being logged out in the sense that subsequent requests must be re-authenticated. (SRV.12.5.3.1 Login Form Notes) so I don't think what you say is correct. Even when a user opens a new page in the browser... it knows they still cool Until the browser is closed they logged on ;) And there is no direct the browser is gone event... browsers are stateless yada yada This isn't actually correct. Invalidating the session on the server means that the browser's record of the session is as though the session never existed. Tomcat will no longer 'associate' session state with the session Id provided by the browser and all the state in the session is lost (unless persisted by an application.) request.getRemoteUser() will return null because the browser and server can no longer agree on a sessionID, this is as other contributors have said the 'logged out' state. The standard servlet authentication mechanisms will redirect any furtheraccess to protected pages to the selected login mechanism as soon as the session is invalidated. if request.getRemoteUser() has the users name... they on... you dont know when they off but you can track the user... either you have that in every page and if you get a name you record time page url... or you can stick that in a filter... which sits in front of all your pages, so you dont have to doctor every page on a site... You know when they in... you dont know when they gone.. It is true that unless you have some javascript code which specifically generates an event to say that the browser is logged out AND the network connection is still valid, you don't actually know that the browser has 'gone'. However, you can easily generate a session timeout event. I have actually implemented user state logging (detect log in event, detect navigation events and detect either manual logout or session timeout and it works fine. It is driven entirely from looking at the state of 'getRemoteUser' and the session timeout event. Regards Alan Chaney - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Coyote connector and documentation..
Hi, I'm a bit confused about the documentation on the http connector. The tomcat documentation talks about parameters such as maxProcessors rather than maxThreads which seems to be the term used everywhere else. Are these the same or not? Also; The documentation on the http connector is linked in with the tomcat 4.1 docs. Is it the same as with Tomcat 5.5? Thanks! Dan
RE: Coyote connector and documentation..
From: Dan Keeley [mailto:[EMAIL PROTECTED] Subject: Coyote connector and documentation.. The tomcat documentation talks about parameters such as maxProcessors rather than maxThreads which seems to be the term used everywhere else. Which Tomcat doc still talks about maxProcessors? This is the link to the http connector doc for 5.5: http://tomcat.apache.org/tomcat-5.5-doc/config/http.html Also; The documentation on the http connector is linked in with the tomcat 4.1 docs. Again, where do see that? - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Coyote connector and documentation..
Dan Keeley wrote: Hi, I'm a bit confused about the documentation on the http connector. The tomcat documentation talks about parameters such as maxProcessors rather than maxThreads which seems to be the term used everywhere else. Are these the same or not? The name depends on which version of Tomcat you are using but yes, they are essentially the same thing. Also; The documentation on the http connector is linked in with the tomcat 4.1 docs. Is it the same as with Tomcat 5.5? Yes. Mark - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
address bar shows ip instead or domain name
Hi, I have a website hosted on netfirms. I have a domain,exmaple, mydomain.com and it forwards to an address http:/xx.xx.xxx.xx:8080/folder1/welcome.action where xx is the ip of the server. Im runningTomcat 5.5 alone without apache. The problem is that when a users goes to www.mydomain.com, it takes them to the site but in the address bar it shows http:/xx.xx.xxx.xx:8080/folder1/welcome.action instead of mydomain.com. Is this an issue with DNS or something in Tomcat? I will have multiple sites running in the future so I cannot place the site folder in the ROOT directory. Thanks. -- View this message in context: http://www.nabble.com/address-bar-shows-ip-instead-or-domain-name-tp18694567p18694567.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat Hosting
Fairly new but Kattare seems to be working for us. Don At 10:12 PM 7/27/2008, you wrote: Having been burnt a number of times, I was wondering if anyone knew of a reliable host that specializes in Java Hosting for Tomcat. Especially if they offer some sort of trial service, so I can evaluate the service without making any commitments. Thanks, Kerry
latest jk connector
Hello folks, I'm getting contradictory information about which is the latest version of mod_jk. In a few resources like Professional Apache Tomcat 5 book, and http://tomcat.apache.org/connectors-doc-archive/jk2 it says that mod_jk2 is a re-write of mod_jk and is much better for apache httpd 2.0 (this makes sense). However, when I go to http://tomcat.apache.org/connectors-doc/ I notice the latest release if JK-1.2.26. My final question is which JK version should I be using (i.e. which is the _latest_ jk connector version? If someone could additionally point me to a source url that would be awesome. Thanks a lot Alessandro Ferrucci
Re: address bar shows ip instead of domain name
Where ever you forward, that's what the address bar shows On Jul 28, 2008, at 7:45 PM, nilanthan wrote: Hi, I have a website hosted on netfirms. I have a domain,exmaple, mydomain.com and it forwards to an address http:/xx.xx.xxx.xx:8080/folder1/ welcome.action where xx is the ip of the server. Im runningTomcat 5.5 alone without apache. The problem is that when a users goes to www.mydomain.com, it takes them to the site but in the address bar it shows http:/xx.xx.xxx.xx:8080/folder1/welcome.action instead of mydomain.com. Is this an issue with DNS or something in Tomcat? I will have multiple sites running in the future so I cannot place the site folder in the ROOT directory. Thanks. -- View this message in context: http://www.nabble.com/address-bar-shows-ip-instead-of-domain-name-tp18694567p18694567.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: latest jk connector
Alessandro Ferrucci wrote: Hello folks, I'm getting contradictory information about which is the latest version of mod_jk. In a few resources like Professional Apache Tomcat 5 book, and http://tomcat.apache.org/connectors-doc-archive/jk2 it says that mod_jk2 is a re-write of mod_jk and is much better for apache httpd 2.0 (this makes sense). However, when I go to http://tomcat.apache.org/connectors-doc/ I notice the latest release if JK-1.2.26. That book is a few years out of date. mod_jk2 was abandoned and the important enhancements back-ported to mod_jk My final question is which JK version should I be using (i.e. which is the _latest_ jk connector version? If someone could additionally point me to a source url that would be awesome. http://tomcat.apache.org/tomcat-4.1-doc/config/connectors.html It is from Tomcat 4 but should give you all you need. YMMV - I prefer mod_proxy_ajp Mark - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: latest jk connector
ok sweet, then I've got the latest code in place :) thanks a bunch Alessandro Ferrucci On Mon, Jul 28, 2008 at 3:46 PM, Mark Thomas [EMAIL PROTECTED] wrote: Alessandro Ferrucci wrote: Hello folks, I'm getting contradictory information about which is the latest version of mod_jk. In a few resources like Professional Apache Tomcat 5 book, and http://tomcat.apache.org/connectors-doc-archive/jk2 it says that mod_jk2 is a re-write of mod_jk and is much better for apache httpd 2.0 (this makes sense). However, when I go to http://tomcat.apache.org/connectors-doc/ I notice the latest release if JK-1.2.26. That book is a few years out of date. mod_jk2 was abandoned and the important enhancements back-ported to mod_jk My final question is which JK version should I be using (i.e. which is the _latest_ jk connector version? If someone could additionally point me to a source url that would be awesome. http://tomcat.apache.org/tomcat-4.1-doc/config/connectors.html It is from Tomcat 4 but should give you all you need. YMMV - I prefer mod_proxy_ajp Mark - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: latest jk connector
Books are notorious for being out of date, so don't pay any attention to the book. Mod_jk2 was an attempted rewrite of mod_jk, but the effort died a couple years ago. Most of the feature set of mod_jk2 was back-ported to mod_jk code which is presently being actively developed. You should use the latest mod_jk 1.2.x release and it's associated online documentation. --David Alessandro Ferrucci wrote: Hello folks, I'm getting contradictory information about which is the latest version of mod_jk. In a few resources like Professional Apache Tomcat 5 book, and http://tomcat.apache.org/connectors-doc-archive/jk2 it says that mod_jk2 is a re-write of mod_jk and is much better for apache httpd 2.0 (this makes sense). However, when I go to http://tomcat.apache.org/connectors-doc/ I notice the latest release if JK-1.2.26. My final question is which JK version should I be using (i.e. which is the _latest_ jk connector version? If someone could additionally point me to a source url that would be awesome. Thanks a lot Alessandro Ferrucci - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Auth incorrectly redirects to img file
When attempting to log into a standard form-based login field, I'm always redirected to an image folder. My folder layout: /img /web-inf/ /web-inf/web.xml /index.jsp /login.jsp /error.jsp setup: Spring2.5/tiles2/tomcat5.5 in my web.xml: [code] security-constraint display-nameSecurity Constraint/display-name web-resource-collection web-resource-nameProtected Pages/web-resource-name url-pattern/*/url-pattern http-methodGET/http-method http-methodPOST/http-method /web-resource-collection auth-constraint role-namemyAdmin/role-name /auth-constraint /security-constraint login-config auth-methodFORM/auth-method form-login-config form-login-page/login.jsp/form-login-page form-error-page/error.jsp/form-error-page /form-login-config /login-config [/code] pretty standard stuff. If you want to see any of the other code, just ask... What happens: 1. I attempt to go to a url 2. It properly stops me and asks me to login 3. I enter user credentials and hit login 4. It sucessfully logins. 5. It redirects me to /img/myimage.gif every time. I know that the login works fine, as when I fix my url to the url i was originally at, everything is correctly authenticated. Is there a way to set a default url when you attempt to login? Anyone else get a similar problem before?
Re: address bar shows ip instead of domain name
So what Can I do so that that domain goes to that address but shows the domain in the address bar? Yuval Perlov wrote: Where ever you forward, that's what the address bar shows On Jul 28, 2008, at 7:45 PM, nilanthan wrote: Hi, I have a website hosted on netfirms. I have a domain,exmaple, mydomain.com and it forwards to an address http:/xx.xx.xxx.xx:8080/folder1/ welcome.action where xx is the ip of the server. Im runningTomcat 5.5 alone without apache. The problem is that when a users goes to www.mydomain.com, it takes them to the site but in the address bar it shows http:/xx.xx.xxx.xx:8080/folder1/welcome.action instead of mydomain.com. Is this an issue with DNS or something in Tomcat? I will have multiple sites running in the future so I cannot place the site folder in the ROOT directory. Thanks. -- View this message in context: http://www.nabble.com/address-bar-shows-ip-instead-of-domain-name-tp18694567p18694567.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/address-bar-shows-ip-instead-of-domain-name-tp18694567p1863.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: address bar shows ip instead of domain name
Apply a rewrite filter (http://tuckey.org/urlrewrite/) to map the ip expression to what you want. ken On Jul 28, 2008, at 5:36 PM, nilanthan wrote: So what Can I do so that that domain goes to that address but shows the domain in the address bar? Yuval Perlov wrote: Where ever you forward, that's what the address bar shows On Jul 28, 2008, at 7:45 PM, nilanthan wrote: Hi, I have a website hosted on netfirms. I have a domain,exmaple, mydomain.com and it forwards to an address http:/xx.xx.xxx.xx:8080/folder1/ welcome.action where xx is the ip of the server. Im runningTomcat 5.5 alone without apache. The problem is that when a users goes to www.mydomain.com, it takes them to the site but in the address bar it shows http:/xx.xx.xxx.xx:8080/folder1/welcome.action instead of mydomain.com. Is this an issue with DNS or something in Tomcat? I will have multiple sites running in the future so I cannot place the site folder in the ROOT directory. Thanks. -- View this message in context: http://www.nabble.com/address-bar-shows-ip-instead-of-domain-name-tp18694567p18694567.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/address-bar-shows-ip-instead-of-domain-name-tp18694567p1863.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: address bar shows ip instead of domain name
Thanks. I have looked at that before but am a bit confused about the instructions. Is there a good tutorial for this urlrewrite? Ken Bowen wrote: Apply a rewrite filter (http://tuckey.org/urlrewrite/) to map the ip expression to what you want. ken On Jul 28, 2008, at 5:36 PM, nilanthan wrote: So what Can I do so that that domain goes to that address but shows the domain in the address bar? Yuval Perlov wrote: Where ever you forward, that's what the address bar shows On Jul 28, 2008, at 7:45 PM, nilanthan wrote: Hi, I have a website hosted on netfirms. I have a domain,exmaple, mydomain.com and it forwards to an address http:/xx.xx.xxx.xx:8080/folder1/ welcome.action where xx is the ip of the server. Im runningTomcat 5.5 alone without apache. The problem is that when a users goes to www.mydomain.com, it takes them to the site but in the address bar it shows http:/xx.xx.xxx.xx:8080/folder1/welcome.action instead of mydomain.com. Is this an issue with DNS or something in Tomcat? I will have multiple sites running in the future so I cannot place the site folder in the ROOT directory. Thanks. -- View this message in context: http://www.nabble.com/address-bar-shows-ip-instead-of-domain-name-tp18694567p18694567.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/address-bar-shows-ip-instead-of-domain-name-tp18694567p1863.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/address-bar-shows-ip-instead-of-domain-name-tp18694567p18700955.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
compile failed: Tomcat-6.0.16 with jdk-1.6.0_06 - bcp/BasicDataSource.java:44 error
compiling tomcat-6.0.16 on LInux kernel 2.4.21-50.ELhugemem with jdk-1.6.0_06, I run into the following error: build-tomcat-dbcp: [copy] Copying 63 files to /path/to/apa che-tomcat-6.0.16/tomcat6-deps/dbcp [move] Moving 63 files to /path/to/apac he-tomcat-6.0.16/tomcat6-deps/dbcp/src/java/org/apache/tomcat/dbcp [javac] Compiling 63 source files to /grid/gro/vol/gbl_statcomp_prod/x86-32- linux/apache-tomcat-6.0.16/tomcat6-deps/dbcp/classes [javac] /path/to/apache-tomcat-6.0.16/to mcat6-deps/dbcp/src/java/org/apache/tomcat/dbcp/dbcp/BasicDataSource.java:44: or g.apache.tomcat.dbcp.dbcp.BasicDataSource is not abstract and does not override abstract method isWrapperFor(java.lang.Class?) in java.sql.Wrapper [javac] public class BasicDataSource implements DataSource { [javac]^ [javac] /path/to/apache-tomcat-6.0.16/to mcat6-deps/dbcp/src/java/org/apache/tomcat/dbcp/dbcp/DelegatingStatement.java:46 : org.apache.tomcat.dbcp.dbcp.DelegatingStatement is not abstract and does not o verride abstract method isPoolable() in java.sql.Statement [javac] public class DelegatingStatement extends AbandonedTrace implements S tatement { [javac]^ [javac] /path/to/apache-tomcat-6.0.16/to mcat6-deps/dbcp/src/java/org/apache/tomcat/dbcp/dbcp/DelegatingStatement.java:13 1: isClosed() in org.apache.tomcat.dbcp.dbcp.DelegatingStatement cannot implemen t isClosed() in java.sql.Statement; attempting to assign weaker access privilege s; was public [javac] protected boolean isClosed() { [javac] ^ [javac] /path/to/apache-tomcat-6.0.16/to mcat6-deps/dbcp/src/java/org/apache/tomcat/dbcp/dbcp/DelegatingPreparedStatement .java:50: org.apache.tomcat.dbcp.dbcp.DelegatingPreparedStatement is not abstrac t and does not override abstract method setNClob(int,java.io.Reader) in java.sql .PreparedStatement [javac] public class DelegatingPreparedStatement extends DelegatingStatement [javac]^ [javac] /path/to/apache-tomcat-6.0.16/to mcat6-deps/dbcp/src/java/org/apache/tomcat/dbcp/dbcp/DelegatingCallableStatement .java:53: org.apache.tomcat.dbcp.dbcp.DelegatingCallableStatement is not abstrac t and does not override abstract method setNClob(java.lang.String,java.io.Reader ) in java.sql.CallableStatement [javac] public class DelegatingCallableStatement extends DelegatingPreparedS tatement [javac]^ [javac] /path/to/apache-tomcat-6.0.16/to mcat6-deps/dbcp/src/java/org/apache/tomcat/dbcp/dbcp/DelegatingConnection.java:5 1: org.apache.tomcat.dbcp.dbcp.DelegatingConnection is not abstract and does not override abstract method createStruct(java.lang.String,java.lang.Object[]) in j ava.sql.Connection [javac] public class DelegatingConnection extends AbandonedTrace [javac]^ [javac] /path/to/apache-tomcat-6.0.16/to mcat6-deps/dbcp/src/java/org/apache/tomcat/dbcp/dbcp/DelegatingResultSet.java:55 : org.apache.tomcat.dbcp.dbcp.DelegatingResultSet is not abstract and does not o verride abstract method updateNClob(java.lang.String,java.io.Reader) in java.sql .ResultSet [javac] public class DelegatingResultSet extends AbandonedTrace implements R esultSet { [javac]^ [javac] /path/to/apache-tomcat-6.0.16/to mcat6-deps/dbcp/src/java/org/apache/tomcat/dbcp/dbcp/PoolablePreparedStatement.j ava:41: org.apache.tomcat.dbcp.dbcp.PoolablePreparedStatement is not abstract an d does not override abstract method setNClob(int,java.io.Reader) in java.sql.Pre paredStatement [javac] public class PoolablePreparedStatement extends DelegatingPreparedSta tement implements PreparedStatement { [javac]^ [javac] /path/to/apache-tomcat-6.0.16/to mcat6-deps/dbcp/src/java/org/apache/tomcat/dbcp/dbcp/PoolingConnection.java:42: org.apache.tomcat.dbcp.dbcp.PoolingConnection is not abstract and does not overr ide abstract method createStruct(java.lang.String,java.lang.Object[]) in java.sq l.Connection [javac] public class PoolingConnection extends DelegatingConnection implemen ts Connection, KeyedPoolableObjectFactory { [javac]^ [javac] /path/to/apache-tomcat-6.0.16/to mcat6-deps/dbcp/src/java/org/apache/tomcat/dbcp/dbcp/PoolingDataSource.java:45: org.apache.tomcat.dbcp.dbcp.PoolingDataSource is not abstract and does not overr ide abstract method isWrapperFor(java.lang.Class?) in java.sql.Wrapper [javac] public class PoolingDataSource implements DataSource { [javac]^ [javac] /path/to/apache-tomcat-6.0.16/to mcat6-deps/dbcp/src/java/org/apache/tomcat/dbcp/dbcp/cpdsadapter/ConnectionImpl. java:41: org.apache.tomcat.dbcp.dbcp.cpdsadapter.ConnectionImpl is not abstract and does not override abstract method createStruct(java.lang.String,java.lang.Ob ject[]) in java.sql.Connection [javac] class ConnectionImpl implements Connection { [javac] ^ [javac] /path/to/apache-tomcat-6.0.16/to
Re: address bar shows ip instead of domain name
I don't know of any tutorial -- I found the documentation gave me enough guidance. It's really pretty straight-forward. Drop a filter definition like this in your web.xml: filter filter-nameUrlRewriteFilter/filter-name filter-classorg.tuckey.web.filters.urlrewrite.UrlRewriteFilter/ filter-class !-- init-param param-namelogLevel/param-name param-valuesysout:DEBUG/param-value /init-param -- /filter filter-mapping filter-nameUrlRewriteFilter/filter-name url-pattern/*/url-pattern dispatcherFORWARD/dispatcher dispatcherREQUEST/dispatcher /filter-mapping Then add a file urlrewrite.xml in your WEB-INF containing mappings in the following spirit: rule from^/PrivacyPolicy$/from to type=forward/PrivacyPolicy.do/to /rule outbound-rule from^/PrivacyPolicy.do$/from to/PrivacyPolicy/to /outbound-rule The outbound-rule describes how to map something going from the server to the browser, and the (inbound) rule describes how to map what you mapped on output (now coming back from the browser) back into what you need to see on input. If you removed the comment symbols in the filter element, you get detailed debugging ouptut. Hope this helps. Ken On Jul 28, 2008, at 6:16 PM, nilanthan wrote: Thanks. I have looked at that before but am a bit confused about the instructions. Is there a good tutorial for this urlrewrite? Ken Bowen wrote: Apply a rewrite filter (http://tuckey.org/urlrewrite/) to map the ip expression to what you want. ken On Jul 28, 2008, at 5:36 PM, nilanthan wrote: So what Can I do so that that domain goes to that address but shows the domain in the address bar? Yuval Perlov wrote: Where ever you forward, that's what the address bar shows On Jul 28, 2008, at 7:45 PM, nilanthan wrote: Hi, I have a website hosted on netfirms. I have a domain,exmaple, mydomain.com and it forwards to an address http:/xx.xx.xxx.xx:8080/folder1/ welcome.action where xx is the ip of the server. Im runningTomcat 5.5 alone without apache. The problem is that when a users goes to www.mydomain.com, it takes them to the site but in the address bar it shows http:/xx.xx.xxx.xx:8080/folder1/welcome.action instead of mydomain.com. Is this an issue with DNS or something in Tomcat? I will have multiple sites running in the future so I cannot place the site folder in the ROOT directory. Thanks. -- View this message in context: http://www.nabble.com/address-bar-shows-ip-instead-of-domain-name-tp18694567p18694567.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/address-bar-shows-ip-instead-of-domain-name-tp18694567p1863.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/address-bar-shows-ip-instead-of-domain-name-tp18694567p18700955.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: compile failed: Tomcat-6.0.16 with jdk-1.6.0_06 - bcp/BasicDataSource.java:44 error
Alas, poor Yorick! No. (sorry, couldn't resist). On Mon, Jul 28, 2008 at 7:56 PM, Poor Yorick [EMAIL PROTECTED] wrote: compiling tomcat-6.0.16 on LInux kernel 2.4.21-50.ELhugemem with jdk-1.6.0_06, I run into the following error: build-tomcat-dbcp: [copy] Copying 63 files to /path/to/apa che-tomcat-6.0.16/tomcat6-deps/dbcp [move] Moving 63 files to /path/to/apac he-tomcat-6.0.16/tomcat6-deps/dbcp/src/java/org/apache/tomcat/dbcp [javac] Compiling 63 source files to /grid/gro/vol/gbl_statcomp_prod/x86-32- linux/apache-tomcat-6.0.16/tomcat6-deps/dbcp/classes [javac] /path/to/apache-tomcat-6.0.16/to mcat6-deps/dbcp/src/java/org/apache/tomcat/dbcp/dbcp/BasicDataSource.java:44: or g.apache.tomcat.dbcp.dbcp.BasicDataSource is not abstract and does not override abstract method isWrapperFor(java.lang.Class?) in java.sql.Wrapper [javac] public class BasicDataSource implements DataSource { [javac]^ [javac] /path/to/apache-tomcat-6.0.16/to mcat6-deps/dbcp/src/java/org/apache/tomcat/dbcp/dbcp/DelegatingStatement.java:46 : org.apache.tomcat.dbcp.dbcp.DelegatingStatement is not abstract and does not o verride abstract method isPoolable() in java.sql.Statement [javac] public class DelegatingStatement extends AbandonedTrace implements S tatement { [javac]^ [javac] /path/to/apache-tomcat-6.0.16/to mcat6-deps/dbcp/src/java/org/apache/tomcat/dbcp/dbcp/DelegatingStatement.java:13 1: isClosed() in org.apache.tomcat.dbcp.dbcp.DelegatingStatement cannot implemen t isClosed() in java.sql.Statement; attempting to assign weaker access privilege s; was public [javac] protected boolean isClosed() { [javac] ^ [javac] /path/to/apache-tomcat-6.0.16/to mcat6-deps/dbcp/src/java/org/apache/tomcat/dbcp/dbcp/DelegatingPreparedStatement .java:50: org.apache.tomcat.dbcp.dbcp.DelegatingPreparedStatement is not abstrac t and does not override abstract method setNClob(int,java.io.Reader) in java.sql .PreparedStatement [javac] public class DelegatingPreparedStatement extends DelegatingStatement [javac]^ [javac] /path/to/apache-tomcat-6.0.16/to mcat6-deps/dbcp/src/java/org/apache/tomcat/dbcp/dbcp/DelegatingCallableStatement .java:53: org.apache.tomcat.dbcp.dbcp.DelegatingCallableStatement is not abstrac t and does not override abstract method setNClob(java.lang.String,java.io.Reader ) in java.sql.CallableStatement [javac] public class DelegatingCallableStatement extends DelegatingPreparedS tatement [javac]^ [javac] /path/to/apache-tomcat-6.0.16/to mcat6-deps/dbcp/src/java/org/apache/tomcat/dbcp/dbcp/DelegatingConnection.java:5 1: org.apache.tomcat.dbcp.dbcp.DelegatingConnection is not abstract and does not override abstract method createStruct(java.lang.String,java.lang.Object[]) in j ava.sql.Connection [javac] public class DelegatingConnection extends AbandonedTrace [javac]^ [javac] /path/to/apache-tomcat-6.0.16/to mcat6-deps/dbcp/src/java/org/apache/tomcat/dbcp/dbcp/DelegatingResultSet.java:55 : org.apache.tomcat.dbcp.dbcp.DelegatingResultSet is not abstract and does not o verride abstract method updateNClob(java.lang.String,java.io.Reader) in java.sql .ResultSet [javac] public class DelegatingResultSet extends AbandonedTrace implements R esultSet { [javac]^ [javac] /path/to/apache-tomcat-6.0.16/to mcat6-deps/dbcp/src/java/org/apache/tomcat/dbcp/dbcp/PoolablePreparedStatement.j ava:41: org.apache.tomcat.dbcp.dbcp.PoolablePreparedStatement is not abstract an d does not override abstract method setNClob(int,java.io.Reader) in java.sql.Pre paredStatement [javac] public class PoolablePreparedStatement extends DelegatingPreparedSta tement implements PreparedStatement { [javac]^ [javac] /path/to/apache-tomcat-6.0.16/to mcat6-deps/dbcp/src/java/org/apache/tomcat/dbcp/dbcp/PoolingConnection.java:42: org.apache.tomcat.dbcp.dbcp.PoolingConnection is not abstract and does not overr ide abstract method createStruct(java.lang.String,java.lang.Object[]) in java.sq l.Connection [javac] public class PoolingConnection extends DelegatingConnection implemen ts Connection, KeyedPoolableObjectFactory { [javac]^ [javac] /path/to/apache-tomcat-6.0.16/to mcat6-deps/dbcp/src/java/org/apache/tomcat/dbcp/dbcp/PoolingDataSource.java:45: org.apache.tomcat.dbcp.dbcp.PoolingDataSource is not abstract and does not overr ide abstract method isWrapperFor(java.lang.Class?) in java.sql.Wrapper [javac] public class PoolingDataSource implements DataSource { [javac]^ [javac] /path/to/apache-tomcat-6.0.16/to mcat6-deps/dbcp/src/java/org/apache/tomcat/dbcp/dbcp/cpdsadapter/ConnectionImpl. java:41: org.apache.tomcat.dbcp.dbcp.cpdsadapter.ConnectionImpl is not abstract and does not override abstract method createStruct(java.lang.String,java.lang.Ob ject[]) in
Committing sendRedirect()
Hi everybody, I have a problem with redirects in Tomcat 5.5.25. I am doing a Lucene search and would like to send a redirect after finding the top 25 hits, commit this response, and then continue processing the remaining hits. The relevant parts of the doPost() code are as below: final int PARTIAL_HITS = 25; for (int i = 0; i hits.length(); i++) { Document doc = hits.doc(i); String citation = doc.get(citation); /** Insert into table */ try { insertId.setInt(1, java.lang.Integer.parseInt(citation)); insertId.executeUpdate(); } catch (SQLException e) { out.sendError(500, Bad SQL insert: + e); } catch (Exception e) {} if (i == PARTIAL_HITS) { // Intermittant redirect out.sendRedirect(resultUrl); } } insertId.close(); if (!out.isCommitted()) { // Final redirect out.sendRedirect(resultUrl); } My problem is that the intermittant redirect is not committed until the function returns, which will take quite some time for some queries. I have tried HttpServletResponse.flushBuffer() and other possible variations. Any pointers would be most appreciated. Tore ___ Tore Eriksson [tore.eriksson ad po.rd.taisho.co.jp] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: compile failed: Tomcat-6.0.16 with jdk-1.6.0_06 - bcp/BasicDataSource.java:44 error
From: Poor Yorick [mailto:[EMAIL PROTECTED] Subject: compile failed: Tomcat-6.0.16 with jdk-1.6.0_06 - bcp/BasicDataSource.java:44 error compiling tomcat-6.0.16 on LInux kernel 2.4.21-50.ELhugemem with jdk-1.6.0_06, I run into the following error: You will have to build with JDK 1.5. Look here for details: https://issues.apache.org/bugzilla/show_bug.cgi?id=43147 - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: compile failed: Tomcat-6.0.16 with jdk-1.6.0_06 - bcp/BasicDataSource.java:44 error
Poor Yorick [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] compiling tomcat-6.0.16 on LInux kernel 2.4.21-50.ELhugemem with jdk-1.6.0_06, I run into the following error: build-tomcat-dbcp: [copy] Copying 63 files to /path/to/apa che-tomcat-6.0.16/tomcat6-deps/dbcp [move] Moving 63 files to /path/to/apac he-tomcat-6.0.16/tomcat6-deps/dbcp/src/java/org/apache/tomcat/dbcp [javac] Compiling 63 source files to /grid/gro/vol/gbl_statcomp_prod/x86-32- linux/apache-tomcat-6.0.16/tomcat6-deps/dbcp/classes [javac] /path/to/apache-tomcat-6.0.16/to mcat6-deps/dbcp/src/java/org/apache/tomcat/dbcp/dbcp/BasicDataSource.java:44: or g.apache.tomcat.dbcp.dbcp.BasicDataSource is not abstract and does not override abstract method isWrapperFor(java.lang.Class?) in java.sql.Wrapper [javac] public class BasicDataSource implements DataSource { [javac]^ [javac] /path/to/apache-tomcat-6.0.16/to mcat6-deps/dbcp/src/java/org/apache/tomcat/dbcp/dbcp/DelegatingStatement.java:46 : org.apache.tomcat.dbcp.dbcp.DelegatingStatement is not abstract and does not o verride abstract method isPoolable() in java.sql.Statement [javac] public class DelegatingStatement extends AbandonedTrace implements S tatement { [javac]^ [javac] /path/to/apache-tomcat-6.0.16/to mcat6-deps/dbcp/src/java/org/apache/tomcat/dbcp/dbcp/DelegatingStatement.java:13 1: isClosed() in org.apache.tomcat.dbcp.dbcp.DelegatingStatement cannot implemen t isClosed() in java.sql.Statement; attempting to assign weaker access privilege s; was public [javac] protected boolean isClosed() { [javac] ^ [javac] /path/to/apache-tomcat-6.0.16/to mcat6-deps/dbcp/src/java/org/apache/tomcat/dbcp/dbcp/DelegatingPreparedStatement .java:50: org.apache.tomcat.dbcp.dbcp.DelegatingPreparedStatement is not abstrac t and does not override abstract method setNClob(int,java.io.Reader) in java.sql .PreparedStatement [javac] public class DelegatingPreparedStatement extends DelegatingStatement [javac]^ [javac] /path/to/apache-tomcat-6.0.16/to mcat6-deps/dbcp/src/java/org/apache/tomcat/dbcp/dbcp/DelegatingCallableStatement .java:53: org.apache.tomcat.dbcp.dbcp.DelegatingCallableStatement is not abstrac t and does not override abstract method setNClob(java.lang.String,java.io.Reader ) in java.sql.CallableStatement [javac] public class DelegatingCallableStatement extends DelegatingPreparedS tatement [javac]^ [javac] /path/to/apache-tomcat-6.0.16/to mcat6-deps/dbcp/src/java/org/apache/tomcat/dbcp/dbcp/DelegatingConnection.java:5 1: org.apache.tomcat.dbcp.dbcp.DelegatingConnection is not abstract and does not override abstract method createStruct(java.lang.String,java.lang.Object[]) in j ava.sql.Connection [javac] public class DelegatingConnection extends AbandonedTrace [javac]^ [javac] /path/to/apache-tomcat-6.0.16/to mcat6-deps/dbcp/src/java/org/apache/tomcat/dbcp/dbcp/DelegatingResultSet.java:55 : org.apache.tomcat.dbcp.dbcp.DelegatingResultSet is not abstract and does not o verride abstract method updateNClob(java.lang.String,java.io.Reader) in java.sql .ResultSet [javac] public class DelegatingResultSet extends AbandonedTrace implements R esultSet { [javac]^ [javac] /path/to/apache-tomcat-6.0.16/to mcat6-deps/dbcp/src/java/org/apache/tomcat/dbcp/dbcp/PoolablePreparedStatement.j ava:41: org.apache.tomcat.dbcp.dbcp.PoolablePreparedStatement is not abstract an d does not override abstract method setNClob(int,java.io.Reader) in java.sql.Pre paredStatement [javac] public class PoolablePreparedStatement extends DelegatingPreparedSta tement implements PreparedStatement { [javac]^ [javac] /path/to/apache-tomcat-6.0.16/to mcat6-deps/dbcp/src/java/org/apache/tomcat/dbcp/dbcp/PoolingConnection.java:42: org.apache.tomcat.dbcp.dbcp.PoolingConnection is not abstract and does not overr ide abstract method createStruct(java.lang.String,java.lang.Object[]) in java.sq l.Connection [javac] public class PoolingConnection extends DelegatingConnection implemen ts Connection, KeyedPoolableObjectFactory { [javac]^ [javac] /path/to/apache-tomcat-6.0.16/to mcat6-deps/dbcp/src/java/org/apache/tomcat/dbcp/dbcp/PoolingDataSource.java:45: org.apache.tomcat.dbcp.dbcp.PoolingDataSource is not abstract and does not overr ide abstract method isWrapperFor(java.lang.Class?) in java.sql.Wrapper [javac] public class PoolingDataSource implements DataSource { [javac]^ [javac] /path/to/apache-tomcat-6.0.16/to mcat6-deps/dbcp/src/java/org/apache/tomcat/dbcp/dbcp/cpdsadapter/ConnectionImpl. java:41: org.apache.tomcat.dbcp.dbcp.cpdsadapter.ConnectionImpl is not abstract and does not override abstract method createStruct(java.lang.String,java.lang.Ob ject[]) in java.sql.Connection [javac]
Tomcat 6.0.16 error startup on AIX 6.1
I've install tomcat 6.0.16 on AIX and try to start it up but when tomcat started it's immediately shutdown. The catalina.out is show below, please help Jul 29, 2008 11:54:45 AM org.apache.catalina.core.AprLifecycleListener init INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: /usr/java5_64/jre/bin:/usr/java5_64/jre/bin:/usr/java5_64/jre/bin/classic:/usr/java5_64/jre/bin:/usr/java5_64/jre/bin/j9vm:/usr/lib Jul 29, 2008 11:54:45 AM org.apache.coyote.http11.Http11Protocol init INFO: Initializing Coyote HTTP/1.1 on http-8080 Jul 29, 2008 11:54:45 AM org.apache.catalina.startup.Catalina load INFO: Initialization processed in 1019 ms Jul 29, 2008 11:54:45 AM org.apache.catalina.core.StandardService start INFO: Starting service Catalina Jul 29, 2008 11:54:45 AM org.apache.catalina.core.StandardEngine start INFO: Starting Servlet Engine: Apache Tomcat/6.0.16 Jul 29, 2008 11:54:46 AM org.apache.catalina.core.StandardContext addApplicationListener INFO: The listener listeners.ContextListener is already configured for this context. The duplicate definition has been ignored. Jul 29, 2008 11:54:46 AM org.apache.catalina.core.StandardContext addApplicationListener INFO: The listener listeners.SessionListener is already configured for this context. The duplicate definition has been ignored. Jul 29, 2008 11:54:46 AM org.apache.coyote.http11.Http11Protocol start INFO: Starting Coyote HTTP/1.1 on http-8080 Jul 29, 2008 11:54:46 AM org.apache.jk.common.ChannelSocket init INFO: JK: ajp13 listening on /0.0.0.0:8009 Jul 29, 2008 11:54:46 AM org.apache.jk.server.JkMain start INFO: Jk running ID=0 time=0/19 config=null Jul 29, 2008 11:54:46 AM org.apache.catalina.startup.Catalina start INFO: Server startup in 1080 ms Jul 29, 2008 11:54:46 AM org.apache.catalina.core.StandardServer await SEVERE: StandardServer.await: create[8005]: java.net.UnknownHostException: localhost: localhost at java.net.InetAddress.getAllByName0(InetAddress.java:1245) at java.net.InetAddress.getAllByName(InetAddress.java:1172) at java.net.InetAddress.getAllByName(InetAddress.java:1095) at java.net.InetAddress.getByName(InetAddress.java:1045) at org.apache.catalina.core.StandardServer.await(StandardServer.java:373) at org.apache.catalina.startup.Catalina.await(Catalina.java:642) at org.apache.catalina.startup.Catalina.start(Catalina.java:602) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:79) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:618) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413) Jul 29, 2008 11:54:46 AM org.apache.coyote.http11.Http11Protocol pause INFO: Pausing Coyote HTTP/1.1 on http-8080 Jul 29, 2008 11:54:46 AM org.apache.catalina.connector.Connector pause SEVERE: Protocol handler pause failed java.net.UnknownHostException: NEOSTA: NEOSTA at java.net.InetAddress.getLocalHost(InetAddress.java:1474) at org.apache.jk.common.ChannelSocket.unLockSocket(ChannelSocket.java:484) at org.apache.jk.common.ChannelSocket.pause(ChannelSocket.java:283) at org.apache.jk.server.JkMain.pause(JkMain.java:681) at org.apache.jk.server.JkCoyoteHandler.pause(JkCoyoteHandler.java:153) at org.apache.catalina.connector.Connector.pause(Connector.java:1073) at org.apache.catalina.core.StandardService.stop(StandardService.java:563) at org.apache.catalina.core.StandardServer.stop(StandardServer.java:744) at org.apache.catalina.startup.Catalina.stop(Catalina.java:628) at org.apache.catalina.startup.Catalina$CatalinaShutdownHook.run(Catalina.java:671) Jul 29, 2008 11:54:47 AM org.apache.catalina.core.StandardService stop INFO: Stopping service Catalina Jul 29, 2008 11:54:47 AM org.apache.coyote.http11.Http11Protocol destroy INFO: Stopping Coyote HTTP/1.1 on http-8080 -- View this message in context: http://www.nabble.com/Tomcat-6.0.16-error-startup-on-AIX-6.1-tp18705310p18705310.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]