IllegalAccessException for listener
Hi, I am using tc 6.0.16 with jdk 1.6.0. I get the following error on startup: java.lang.IllegalAccessException: Class org.apache.catalina.core.StandardContext can not access a member of class com.mycom.Myclass with modifiers private web.xml: listener listener-classcom.mycom.Myclass/listener-class /listener where Myclass is located inside my war in WEB-INF/class/com/mycom Any help? Thanks, Fu-Tung - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
clustering: session replication
Hi, there. Does anyone know how to trace session replication in a cluster? Thank you.
Re: clustering: session replication
Hi, at tomcat 5.5 cluster you can use the cluster logging. Look at tomcat docs http://tomcat.apache.org/tomcat-5.5-doc/cluster-howto.html Cluster className=org.apache.catalina.cluster.tcp.SimpleTcpCluster doClusterLog=true clusterLogName=clusterlog ... Peter Am 22.07.2008 um 09:07 schrieb nch: Hi, there. Does anyone know how to trace session replication in a cluster? Thank you. - 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: IllegalAccessException for listener
i think, this error is self-expalnatory. you have a problem in the code itself,try changing the private modifier to public...or either post your program. can you run this program independently (that is, out of server root) ? On Tue, 22 Jul 2008 11:55:01 +0530, Fu-Tung Cheng [EMAIL PROTECTED] wrote: Hi, I am using tc 6.0.16 with jdk 1.6.0. I get the following error on startup: java.lang.IllegalAccessException: Class org.apache.catalina.core.StandardContext can not access a member of class com.mycom.Myclass with modifiers private web.xml: listener listener-classcom.mycom.Myclass/listener-class /listener where Myclass is located inside my war in WEB-INF/class/com/mycom Any help? Thanks, Fu-Tung - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Using Opera's revolutionary e-mail client: http://www.opera.com/mail/ - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Redirection
Hello list. Actually, when I want to access to the main page of my web application, I write ip/directory1/directory2/main_page.html I would need that when I write the url-- http://ip, directly shows the main_page file, in order when I publish the web application http://www.grupmicros.com redirects to main_page.html. Thanks for all in advanced. -- View this message in context: http://www.nabble.com/Redirection-tp18585561p18585561.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: Redirection
Have you tried adding welcome-file-list welcome-filemain_page.html/welcome-file /welcome-file-list to your application's web.xml file? -- Bill -Original Message- From: jeusdi [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 22, 2008 4:28 AM To: users@tomcat.apache.org Subject: Redirection Hello list. Actually, when I want to access to the main page of my web application, I write ip/directory1/directory2/main_page.html I would need that when I write the url-- http://ip, directly shows the main_page file, in order when I publish the web application http://www.grupmicros.com redirects to main_page.html. Thanks for all in advanced. -- View this message in context: http://www.nabble.com/Redirection-tp18585561p18585561.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: DataSourceRealm documentation
Carol Cheung wrote: Hi, I'm reading about DataSourceRealm at http://tomcat.apache.org/tomcat-5.5-doc/realm-howto.html and step 2 under Quick Start is confusing. It says Configure a database username and password for use by Tomcat ... What does this mean? What should the username and password be and where should they be located so that they are configured for use by Tomcat? It means that you need to configure a DataSource for use by the Realm. There's no username or password specified in the example Realm element under the DataSourceRealm section. Correct, just the reference to the DataSource. p Thanks, Carol - 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: clustering: session replication
Sorry, I'm running 6.0.13. Does it work the same? - Original Message From: Peter Rossbach [EMAIL PROTECTED] To: Tomcat Users List users@tomcat.apache.org Sent: Tuesday, July 22, 2008 11:10:04 AM Subject: Re: clustering: session replication Hi, at tomcat 5.5 cluster you can use the cluster logging. Look at tomcat docs http://tomcat.apache.org/tomcat-5.5-doc/cluster-howto.html Cluster className=org.apache.catalina.cluster.tcp.SimpleTcpCluster doClusterLog=true clusterLogName=clusterlog ... Peter Am 22.07.2008 um 09:07 schrieb nch: Hi, there. Does anyone know how to trace session replication in a cluster? Thank you. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
How to do CGI programming in Tomcat5.5
Gi, Can you please point me to a link where it clearly says in step by step way how to do cgi programming with tomcat5.5 with some examples. The Documentation of tomcat 5.5 is not that much helpful, very brief without any examples. Also I am unable to make cgi-servlet up. I tried the steps mentioned in apache 5.5 documentation. Can anyone please tell me if CGI server is must to be deployed to do CGI programming? If you need error messages, I'll give you. Thank you. -suman
How to do CGI programming in Tomcat5.5
Hi, Can you please point me to a link where it clearly says in step by step way how to do cgi programming with tomcat5.5 with some examples. The Documentation of tomcat 5.5 is not that much helpful, very brief without any examples. Also I am unable to make cgi-servlet up. I tried the steps mentioned in apache 5.5 documentation. Can anyone please tell me if CGI server is must to be deployed to do CGI programming? If you need error messages, I'll give you. Thank you. -suman
Tomcat Lag And The connection to the server was reset while the page was loading
Hi guys, I am having this strange problem: I had Apache Roller + Ja-Sig (CAS) on my tomcat working perfectly for the past couple of months. A few days ago the machine was restarted and now I see that whenever I try to load some of the applications I see that it starts loading it, loads the title and the favicon and then just hangs It never goes further - it just tries to load the page. Eventually I get The connection to the server was reset while the page was loading in my browser. I am having Apache HTTPD at the front with mod_jk but I don't think that the Httpd is problematic - it loads all of my non-tomcat pages. I really have no clue what is the cause. I even tried to change the JVM with the latest one- 1.6.0_07, but I still face the same issues. Thanks for any help. -- Regards, Petar! Karlovo, Bulgaria. EOOXML objections http://www.grokdoc.net/index.php/EOOXML_objections Public PGP Key at: http://keyserver.linux.it/pks/lookup?op=getsearch=0x1A15B53B761500F9 Key Fingerprint: AA16 8004 AADD 9C76 EF5B 4210 1A15 B53B 7615 00F9
Re: How to do CGI programming in Tomcat5.5
suman wrote: Can you please point me to a link where it clearly says in step by step way how to do cgi programming with tomcat5.5 with some examples. The Documentation of tomcat 5.5 is not that much helpful, very brief without any examples. Also I am unable to make cgi-servlet up. I tried the steps mentioned in apache 5.5 documentation. Can anyone please tell me if CGI server is must to be deployed to do CGI programming? If you need error messages, I'll give you. Do you really need CGIs? -- Mikolaj Rydzewski [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: How to do CGI programming in Tomcat5.5
This is part of a learning program, so I need this for assignments. I know CGIs are bad. Thank you. -suman On Tue, Jul 22, 2008 at 4:07 PM, Mikolaj Rydzewski [EMAIL PROTECTED] wrote: suman wrote: Can you please point me to a link where it clearly says in step by step way how to do cgi programming with tomcat5.5 with some examples. The Documentation of tomcat 5.5 is not that much helpful, very brief without any examples. Also I am unable to make cgi-servlet up. I tried the steps mentioned in apache 5.5 documentation. Can anyone please tell me if CGI server is must to be deployed to do CGI programming? If you need error messages, I'll give you. Do you really need CGIs? -- Mikolaj Rydzewski [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: Server.xml Host Configuration
From: Caldarale, Charles R Subject: Server.xml Host Configuration Remove the Context element; it should never be placed in server.xml and you don't need one. As an addendum. If you want to remove the Context element but still create an access log, you can create a context.xml file. Place it as follows (from http://tomcat.apache.org/tomcat-6.0-doc/config/context.html): $CATALINA_HOME/conf/context.xml file: the Context element information will be loaded by all webapps $CATALINA_HOME/conf/[enginename]/[hostname]/context.xml.default file: the Context element information will be loaded by all webapps of that host $CATALINA_HOME/conf/[enginename]/[hostname]/ directory. The name of the file (less the .xml extension) will be used as the context path. Multi-level context paths may be defined using #, e.g. context#path.xml. The default web application may be defined by using a file called ROOT.xml. [In your case, you would call it ROOT.xml] /META-INF/context.xml inside the application files In your case it would be pretty simple. If you place the file at $CATALINA_HOME/conf/[enginename]/[hostname]/, ROOT.xml would contain the following: Context Valve className=org.apache.catalina.valves.AccessLogValve directory=logs prefix=local_roller_access_log. suffix=.txt pattern=common resolveHosts=false/ /Context In this configuration, you shouldn't need the path attribute, and if you set appBase correctly, you shouldn't need docBase. -- Bill -Original Message- From: Tomcat User6 [mailto:[EMAIL PROTECTED] Sent: Monday, July 21, 2008 2:02 PM To: users@tomcat.apache.org Subject: Server.xml Host Configuration Hi All, I am new to configuring Server.xml for tomcat. I am using Tomcat 6.0. I have an application called Roller from apache for blogging purposes. I want to configure its host by forum.abc123.com. I did the configuration as below: Host name=forum.abc123.com appBase=/usr/local/apache-tomcat-6.0.16/webapps/roller unpackWARs=true autoDeploy=true xmlValidation=false xmlNamespaceAware=false Aliasforum.abc123.com/Alias Context docBase= path=/ / Valve className=org.apache.catalina.valves.AccessLogValve directory=logs prefix=local_roller_access_log. suffix=.txt pattern=common resolveHosts=false//Host This application is under the /usr/local/apache-tomcat-6.0.16/webapps/roller directory and that is not a WAR file but a directory. When I clicked on Web URL with forum.abc123.com, it is showing me site but with no colors and styles as they are in original. Log sile says that it is not finding any of the files and that is why none of the links on the first page are aslo working. I am sure that, i am doing something wrong in configuration. Please help me out. Thank you in advance. -- View this message in context: http://www.nabble.com/Server.xml-Host-Configuration-tp18575305p18575305.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: clustering: session replication
Hello, again. Well, I'm asking about how to enable cluster logging because I'm running an apache/mod_jk balanced two node cluster (without sticky session). Whenever a request is being sent to a tomcat different than the one which started the session, then the session is lost. Btw, this is an ajax application (dwr). This was working perfectly well when using sticky session, but now I have the requirement not to use it. That is, before, when one of the two tomcats went down, then the other one would keep the session. I'm running tomcat 6.0.13/jdk 1.6/debian etch Any clues on how to tackle this issue? Kind regards. - Original Message From: nch [EMAIL PROTECTED] To: Tomcat Users List users@tomcat.apache.org Sent: Tuesday, July 22, 2008 12:27:13 PM Subject: Re: clustering: session replication Sorry, I'm running 6.0.13. Does it work the same? - Original Message From: Peter Rossbach [EMAIL PROTECTED] To: Tomcat Users List users@tomcat.apache.org Sent: Tuesday, July 22, 2008 11:10:04 AM Subject: Re: clustering: session replication Hi, at tomcat 5.5 cluster you can use the cluster logging. Look at tomcat docs http://tomcat.apache.org/tomcat-5.5-doc/cluster-howto.html Cluster className=org.apache.catalina.cluster.tcp.SimpleTcpCluster doClusterLog=true clusterLogName=clusterlog ... Peter Am 22.07.2008 um 09:07 schrieb nch: Hi, there. Does anyone know how to trace session replication in a cluster? Thank you. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Graceful exit from AppListener
Hi All, My app does some significant initialization in the class AppListener implements ServletContextListener, including processing the application configuration. When it receives an inconsistent, unrecoverable configuration, what is the best way to exit from contextInitialized(...) and gracefully exit from the app without hurting Tomcat or other apps? ( Clearly not System.exit() ). Thanks, Ken
FastCommonAccessLogValve and gzip compression
Hi, I'm trying to use FastCommonAccessLogValve to log the bytes send over the network, but I have gzip compression actived while in the log goes the bytes count before compression (I've checked it with a sniffer): 192.168.0.64 - - [22/Jul/2008:14:01:15 +0200] GET /standard-atlante-plus/ HTTP/1.1 200 2481 Content-encoded entity body (gzip): 1163 bytes - 2481 bytes 192.168.0.64 - - [22/Jul/2008:14:01:15 +0200] GET /standard-atlante-plus/servlet/serLogin HTTP/1.1 200 4106 Content-encoded entity body (gzip): 1348 bytes - 4106 bytes Is there a way to log the compressed bytes count ? Many thanks in advance, Best regards - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Server.xml Host Configuration
From: Radcliffe, William H. [mailto:[EMAIL PROTECTED] Subject: RE: Server.xml Host Configuration As an addendum. If you want to remove the Context element but still create an access log, you can create a context.xml file. Note that the OP's AccessLogValve was inside the Host, not the Context, and can stay where it is. Again, no Context is needed for the desired setup. - 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]
i18n deployment
Hello, i am using one instance of tomcat 6.00.16, which is accessable through two domains (.com and .de). My application contains an english and a german html file. Is there a way to display the englisch html file for the .com address and the german html file for the .de address? Thanks in advance for any advice! _ Testen Sie Live.com - die schnelle, personalisierte Homepage, über die Sie auf alle für Sie relevanten Inhalte zentral zugreifen können. http://www.live.com/getstarted
RE: i18n deployment
From: ich eben [mailto:[EMAIL PROTECTED] Subject: i18n deployment Is there a way to display the englisch html file for the .com address and the german html file for the .de address? Thanks in advance for any advice! Configure two Host elements in server.xml, one for each domain. Each Host should point to a different appBase, one for Deutsch, one for English. Create a ROOT directory under each appBase, and put the appropriate .html file in each ROOT. http://tomcat.apache.org/tomcat-6.0-doc/virtual-hosting-howto.html - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Integrated Windows Authentication in Tomcat
Hi, I want to use Microsoft Integrated Windows Authentication based on Kerberos in Tomcat using Microsoft IE browsers. I found this: http://appliedcrypto.com/files/tomcat_spnego.pdf Do you know of any other free solutions? Are there better alternatives? Has anyone tried this before? If yes, is it working 100%? Are there problems? Mit freundlichen Grüßen / Kind regards Faris Ahmed | Development Project Manager | Infor | Tel: +49 (0) 6151 866 7814 | Fax: +49 (0) 6151 866 7088 | mailto:[EMAIL PROTECTED] Postanschrift: Infor Global Solutions Darmstadt GmbH | Landwehrstr. 50, 64293 Darmstadt | Sitz der Gesellschaft ist Darmstadt | Handelsregister: Amtsgericht Darmstadt, HRB 5556 | Geschäftsführer: Jochen Kasper,Uwe Richter
Re: IIS 6.0 / JK1.2.25 / Tomcat 5.5.20 - Service temporary unavailable
I will try to remove/increase socket_timeout to see what happens.. Unfortunately, Tomcat hung again today. It managed to work again without manually restarting, but again, the 503 message for a while.. I attached two thread dumps and an excerpt of today's isapi_redirect.log. BTW, this is APR 1.1.14 and JK 1.2.26. Regards, Jesse. Rainer Jung-3 wrote: To really study communication behaviour I would suggest installing a raw http client like curl and then do curl -v -D - http://myserver:myport/myuri Even with curl, the results were exactly as I described before. curl will not cache, follow redirects or any other of those nice user GUI features, that make understanding communication behaviour difficult. http://www.nabble.com/file/p18588484/20080722_isapi_redirect.log.gz 20080722_isapi_redirect.log.gz http://www.nabble.com/file/p18588484/20080722_threaddump1_locked.txt.gz 20080722_threaddump1_locked.txt.gz http://www.nabble.com/file/p18588484/20080722_threaddump2.txt.gz 20080722_threaddump2.txt.gz -- View this message in context: http://www.nabble.com/IIS-6.0---JK1.2.25---Tomcat-5.5.20---%22Service-temporary-unavailable%22-tp18238896p18588484.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: Integrated Windows Authentication in Tomcat
Date sent: Tue, 22 Jul 2008 15:52:34 +0200 From: Faris Ahmed [EMAIL PROTECTED] Subject:Integrated Windows Authentication in Tomcat To: users@tomcat.apache.org Send reply to: Tomcat Users List users@tomcat.apache.org Hi, I want to use Microsoft Integrated Windows Authentication based on Kerberos in Tomcat using Microsoft IE browsers. I found this: http://appliedcrypto.com/files/tomcat_spnego.pdf Do you know of any other free solutions? Are there better alternatives? I haven't used this but it seems to be popular, JCIFS: http://jcifs.samba.org/src/docs/ntlmhttpauth.html -Steve O. Has anyone tried this before? If yes, is it working 100%? Are there problems? Mit freundlichen Grüßen / Kind regards Faris Ahmed | Development Project Manager | Infor | Tel: +49 (0) 6151 866 7814 | Fax: +49 (0) 6151 866 7088 | mailto:[EMAIL PROTECTED] Postanschrift: Infor Global Solutions Darmstadt GmbH | Landwehrstr. 50, 64293 Darmstadt | Sitz der Gesellschaft ist Darmstadt | Handelsregister: Amtsgericht Darmstadt, HRB 5556 | Geschäftsführer: Jochen Kasper,Uwe Richter - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Help configuring Tomcat
I had a web site with my previous employer and when I quit my job I saved my web site... I installed Fedora core 9 with Tomcat 6 I just want to add my site to Tomcat that's all I can see the default Tomcat site with the http://localhost/ (I changed the port to 80) I have eclipse on my desktop with tomcat installed and I can see it with no problem.. I just want to transfer the site onto my linux server... Tomcat is installed on /opt/tomcat/ my site is installed on /var/www/html/ROOT/ everything is set to default I just need helpor advise... -- View this message in context: http://www.nabble.com/Help-configuring-Tomcat-tp18591522p18591522.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]
ContextListener executes twice
My environment: NetBeans 6.1 Tomcat 6.0 In my webapp I have a ContextListener class in which I initialize a DB connection. I've noticed that when I run the project this code executes twice. Anyone know why this would happen? Thanks. Bob
Re: IllegalAccessException for listener
I found the issue. Listeners must implement a public zero argument constructor. Fu-Tung --- On Tue, 7/22/08, Deepak Mishra [EMAIL PROTECTED] wrote: From: Deepak Mishra [EMAIL PROTECTED] Subject: Re: IllegalAccessException for listener To: Tomcat Users List users@tomcat.apache.org Date: Tuesday, July 22, 2008, 9:17 AM i think, this error is self-expalnatory. you have a problem in the code itself,try changing the private modifier to public...or either post your program. can you run this program independently (that is, out of server root) ? - 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 do CGI programming in Tomcat5.5
- Original Message - From: suman [EMAIL PROTECTED] To: users@tomcat.apache.org Sent: Tuesday, July 22, 2008 12:32 PM Subject: How to do CGI programming in Tomcat5.5 Gi, Can you please point me to a link where it clearly says in step by step way how to do cgi programming with tomcat5.5 with some examples. The Documentation of tomcat 5.5 is not that much helpful, very brief without any examples. Also I am unable to make cgi-servlet up. I tried the steps mentioned in apache 5.5 documentation. Can anyone please tell me if CGI server is must to be deployed to do CGI programming? If you need error messages, I'll give you. Thank you. -suman If you google for Perl Tomcat... you'll get lucky... I tried it for fun in NetBeans Create a new web project... In the web.xml file add this... servlet servlet-namecgi/servlet-name servlet-classorg.apache.catalina.servlets.CGIServlet/servlet-class init-param param-namedebug/param-name param-value0/param-value /init-param init-param param-namecgiPathPrefix/param-name param-valueWEB-INF/cgi/param-value /init-param load-on-startup5/load-on-startup /servlet servlet-mapping servlet-namecgi/servlet-name url-pattern/cgi-bin/*/url-pattern /servlet-mapping Under the web-inf folder create /cgi folder Go to where Tomcat is installed... under server/lib find servlets-ssi.renametojar and servlets-cgi.renametojar do that make em .jar You in business... but thats where I stopped ;) You need to get perl and install it on the machine... I imagine it must be in the path And find yourself some perl script... TC help http://tomcat.apache.org/tomcat-5.5-doc/cgi-howto.html describes the same thing... Have fun then get into servlets asap ;) --- 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: ContextListener executes twice
From: Riaz, Bob [mailto:[EMAIL PROTECTED] Subject: ContextListener executes twice In my webapp I have a ContextListener class in which I initialize a DB connection. I've noticed that when I run the project this code executes twice. Is your app being deployed twice? Improper Context settings can do 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: Help configuring Tomcat
From: slytheman [mailto:[EMAIL PROTECTED] Subject: Help configuring Tomcat Tomcat is installed on /opt/tomcat/ my site is installed on /var/www/html/ROOT/ Edit the Host element in Tomcat's conf/server.xml file, changing appBase to /var/www/html. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: ContextListener executes twice
Looks that way. I do get this message in deploying: INFO: The listener MyContextListener is already configured for this context. The duplicate definition has been ignored. Default settings from context.xml: Context !-- Default set of monitored resources -- WatchedResourceWEB-INF/web.xml/WatchedResource !-- Uncomment this to disable session persistence across Tomcat restarts -- !-- Manager pathname= / -- !-- Uncomment this to enable Comet connection tacking (provides events on session expiration as well as webapp lifecycle) -- !-- Valve className=org.apache.catalina.valves.CometConnectionManagerValve / -- /Context Bob -Original Message- From: Caldarale, Charles R [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 22, 2008 10:49 AM To: Tomcat Users List Subject: RE: ContextListener executes twice From: Riaz, Bob [mailto:[EMAIL PROTECTED] Subject: ContextListener executes twice In my webapp I have a ContextListener class in which I initialize a DB connection. I've noticed that when I run the project this code executes twice. Is your app being deployed twice? Improper Context settings can do 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] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Invalidating a session when a user logs in
Hi, When a user logs into the system he is given a session. If that same user logs into the system he is given another session - if the browser is different such that there is no cookie collision. In this case I'd like to invalidate the original session on login. How can I accomplish this? My first thoughts were to stored the sessionId with the username which I could then lookup on login and if a session exist invalidate it. Unfortunately the getSessionById seems to have been deprecated in the api. Is my only option to store the session in with my user object? Thanks, Fu-Tung - 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: ContextListener executes twice
From: Riaz, Bob [mailto:[EMAIL PROTECTED] Subject: RE: ContextListener executes twice INFO: The listener MyContextListener is already configured for this context. The duplicate definition has been ignored. That's a purely cosmetic error in the current 6.0 version; fixed in 6.0.17, whenever it gets released. Default settings from context.xml: That looks like the global Context settings, not the one for your webapp. 1) Where is your webapp deployed? 2) Do you have a META-INF/context.xml file inside your webapp? If so, what's in it? 3) Do you have a conf/Catalina/[host]/[appName].xml file? If so, what's in it? 4) What is the appBase setting for each of your Host elements in conf/server.xml? 5) Do you have any Context elements in server.xml? (You shouldn't.) - 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: Graceful exit from AppListener
Hi Ken, I use a very similar approach in my applications; and my answer was to subclass Error with ConfigurationError and throw it when I realize I cannot initialize completely. This will prevent your application from servicing requests; as well as play nicely within the container (tomcat). Raymond On Tue, Jul 22, 2008 at 05:38, Ken Bowen [EMAIL PROTECTED] wrote: Hi All, My app does some significant initialization in the class AppListener implements ServletContextListener, including processing the application configuration. When it receives an inconsistent, unrecoverable configuration, what is the best way to exit from contextInitialized(...) and gracefully exit from the app without hurting Tomcat or other apps? ( Clearly not System.exit() ). Thanks, Ken -- - Raymond Kroeker - 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: ContextListener executes twice
-Original Message- From: Caldarale, Charles R [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 22, 2008 11:12 AM To: Tomcat Users List Subject: RE: ContextListener executes twice From: Riaz, Bob [mailto:[EMAIL PROTECTED] Subject: RE: ContextListener executes twice INFO: The listener MyContextListener is already configured for this context. The duplicate definition has been ignored. That's a purely cosmetic error in the current 6.0 version; fixed in 6.0.17, whenever it gets released. Default settings from context.xml: That looks like the global Context settings, not the one for your webapp. 1) Where is your webapp deployed? On my dev machine - localhost. Is that what you mean? 2) Do you have a META-INF/context.xml file inside your webapp? If so, what's in it? ?xml version=1.0 encoding=UTF-8? Context path=/MyWebApp/ 3) Do you have a conf/Catalina/[host]/[appName].xml file? If so, what's in it? ?xml version=1.0 encoding=UTF-8? Context docBase=C:/..Path/NetBeansProjects/MyWebApp/build/web path=/ MyWebApp / 4) What is the appBase setting for each of your Host elements in conf/server.xml? Host name=localhost appBase=webapps unpackWARs=true autoDeploy=true xmlValidation=false xmlNamespaceAware=false !-- SingleSignOn valve, share authentication between web applications Documentation at: /docs/config/valve.html -- !-- Valve className=org.apache.catalina.authenticator.SingleSignOn / -- !-- Access log processes all example. Documentation at: /docs/config/valve.html -- !-- Valve className=org.apache.catalina.valves.AccessLogValve directory=logs prefix=localhost_access_log. suffix=.txt pattern=common resolveHosts=false/ -- /Host 5) Do you have any Context elements in server.xml? (You shouldn't.) I don't. - 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] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Server.xml Host Configuration
From: Caldarale, Charles R [mailto:[EMAIL PROTECTED] Subject: RE: Server.xml Host Configuration Remove the Context element; it should never be placed in server.xml and you don't need one. If he wants to have an access log, he needs the Valve element. The Valve element was inside Context, Context was in Host. If he removed the Context element, Valve would go with it. Valve can be placed inside Engine, Host, or Context. Maybe you meant to say delete Context and /Context from server.xml, placing Valve directly inside Host. Placing Valve inside Host will log access to every web app defined for that virtual host. Right now he only seems to have one web app. If there is only one hosted web app, the access log would contain the same information whether the Valve is in Host or Context. As a matter of fact, if this is his only Host element, the access log would contain the same information if Valve were inside Engine. It all depends on his intent. If he wants to limit logging to a particular web app, I would suggest placing the Valve inside Context. It would be a good habit to develop. This way, if he ever decides to add another web app to this host, and he wants a separate access log, he has a template to work from. Otherwise, if he wants to log all access to a virtual host, place Valve inside Host. If he wants to log all access to a Tomcat server instance, place Valve inside Engine. -Bill -Original Message- From: Caldarale, Charles R [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 22, 2008 8:35 AM To: Tomcat Users List Subject: RE: Server.xml Host Configuration From: Radcliffe, William H. [mailto:[EMAIL PROTECTED] Subject: RE: Server.xml Host Configuration As an addendum. If you want to remove the Context element but still create an access log, you can create a context.xml file. Note that the OP's AccessLogValve was inside the Host, not the Context, and can stay where it is. Again, no Context is needed for the desired setup. - 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] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Server.xml Host Configuration
From: Radcliffe, William H. [mailto:[EMAIL PROTECTED] Subject: RE: Server.xml Host Configuration If he wants to have an access log, he needs the Valve element. The Valve element was inside Context Look at the original post more carefully: http://marc.info/?l=tomcat-userm=12197029041w=2 Context docBase= path=/ / Valve className=org.apache.catalina.valves.AccessLogValve directory=logs prefix=local_roller_access_log. suffix=.txt pattern=common resolveHosts=false/ The Valve is clearly outside of the Context element. - 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: [Same Behavior]Connections timing out even with validation query??
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Ken, Ken Bowen wrote: | All connections are /supposed/ to be closed when the interaction if | finished, but there still could be one slipping through. I find it useful in development to set the connection pool size to exactly 1 connection, and, of course, enable abandoned checking, etc. If you have only a single database connection in the pool, you can also detect potential deadlocks in your code since your app can only (successfully) request a single connection at a time. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkiGD3YACgkQ9CaO5/Lv0PB8cgCcCLFr0LO2iwLuLHwg3FGx+Eu9 XFYAn3UX12OqjlbUJ8SfFu872Ijonu4Y =n09o -END PGP SIGNATURE- - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: ContextListener executes twice
From: Riaz, Bob [mailto:[EMAIL PROTECTED] Subject: RE: ContextListener executes twice 1) Where is your webapp deployed? On my dev machine - localhost. Is that what you mean? No, what directory is it in? Is it a .war or an expanded webapp? 2) Do you have a META-INF/context.xml file inside your webapp? ?xml version=1.0 encoding=UTF-8? Context path=/MyWebApp/ The path attribute is illegal here. You don't really need a Context at all. 3) Do you have a conf/Catalina/[host]/[appName].xml file? ?xml version=1.0 encoding=UTF-8? Context docBase=C:/..Path/NetBeansProjects/MyWebApp/build/web path=/ MyWebApp / The above will override the invalid one in META-INF/context.xml. 4) What is the appBase setting for each of your Host elements in conf/server.xml? Host name=localhost appBase=webapps Do you happen to have a copy of your webapp deployed under Tomcat's webapps directory? If so, that would account for the double initialization. Does the problem occur when you run Tomcat independently of NetBeans, or only if run through NetBeans? - 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: Help configuring Tomcat
Hi there I did the changes and now I get an error.. Jul 22, 2008 1:08:49 PM org.apache.tomcat.util.digester.Digester fatalError SEVERE: Parse Fatal Error at line 111 column 42: Element type Host must be followed by either attribute specifications, or /. org.xml.sax.SAXParseException: Element type Host must be followed by either attribute specifications, or /. at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(Unknown Source) at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.fatalError(Unknown Source) at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(Unknown Source) at com.sun.org.apache.xerces.internal.impl.XMLScanner.reportFatalError(Unknown Source) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.seekCloseOfStartTag(Unknown Source) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanStartElement(Unknown Source) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(Unknown Source) at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(Unknown Source) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source) at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown Source) at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Unknown Source) at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source) at org.apache.tomcat.util.digester.Digester.parse(Digester.java:1644) at org.apache.catalina.startup.Catalina.stopServer(Catalina.java:410) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:616) at org.apache.catalina.startup.Bootstrap.stopServer(Bootstrap.java:337) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:415) Jul 22, 2008 1:08:49 PM org.apache.catalina.startup.Catalina stopServer SEVERE: Catalina.stop: org.xml.sax.SAXParseException: Element type Host must be followed by either attribute specifications, or /. at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Unknown Source) at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source) at org.apache.tomcat.util.digester.Digester.parse(Digester.java:1644) at org.apache.catalina.startup.Catalina.stopServer(Catalina.java:410) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:616) at org.apache.catalina.startup.Bootstrap.stopServer(Bootstrap.java:337) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:415) Caldarale, Charles R wrote: From: slytheman [mailto:[EMAIL PROTECTED] Subject: Help configuring Tomcat Tomcat is installed on /opt/tomcat/ my site is installed on /var/www/html/ROOT/ Edit the Host element in Tomcat's conf/server.xml file, changing appBase to /var/www/html. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To 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/Help-configuring-Tomcat-tp18591522p18594162.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: Help configuring Tomcat
This is my server.xml file !-- Note: A Server is not itself a Container, so you may not define subcomponents such as Valves at this level. Documentation at /docs/config/server.html -- Server port=${shutdown.port} shutdown=SHUTDOWN !--APR library loader. Documentation at /docs/apr.html -- Listener className=org.apache.catalina.core.AprLifecycleListener SSLEngine=on / !--Initialize Jasper prior to webapps are loaded. Documentation at /docs/jasper-howto.html -- Listener className=org.apache.catalina.core.JasperListener / !-- JMX Support for the Tomcat server. Documentation at /docs/non-existent.html -- Listener className=org.apache.catalina.mbeans.ServerLifecycleListener / Listener className=org.apache.catalina.mbeans.GlobalResourcesLifecycleListener / !-- Global JNDI resources Documentation at /docs/jndi-resources-howto.html -- GlobalNamingResources !-- Editable user database that can also be used by UserDatabaseRealm to authenticate users -- Resource name=UserDatabase auth=Container type=org.apache.catalina.UserDatabase description=User database that can be updated and saved factory=org.apache.catalina.users.MemoryUserDatabaseFactory pathname=conf/tomcat-users.xml / /GlobalNamingResources !-- A Service is a collection of one or more Connectors that share a single Container Note: A Service is not itself a Container, so you may not define subcomponents such as Valves at this level. Documentation at /docs/config/service.html -- Service name=Catalina !--The connectors can use a shared executor, you can define one or more named thread pools-- !-- Executor name=tomcatThreadPool namePrefix=catalina-exec- maxThreads=150 minSpareThreads=4/ -- !-- A Connector represents an endpoint by which requests are received and responses are returned. Documentation at : Java HTTP Connector: /docs/config/http.html (blocking non-blocking) Java AJP Connector: /docs/config/ajp.html APR (HTTP/AJP) Connector: /docs/apr.html Define a non-SSL HTTP/1.1 Connector on port 8080 -- Connector port=80 protocol=HTTP/1.1 connectionTimeout=2 redirectPort=8443 / !-- A Connector using the shared thread pool-- !-- Connector executor=tomcatThreadPool port=8080 protocol=HTTP/1.1 connectionTimeout=2 redirectPort=8443 / -- !-- Define a SSL HTTP/1.1 Connector on port 8443 This connector uses the JSSE configuration, when using APR, the connector should be using the OpenSSL style configuration described in the APR documentation -- !-- Connector port=${https.port} protocol=HTTP/1.1 SSLEnabled=true maxThreads=150 scheme=https secure=true clientAuth=false sslProtocol=TLS / -- !-- Define an AJP 1.3 Connector on port 8009 -- Connector port=${ajp.port} protocol=AJP/1.3 redirectPort=8443 / !-- An Engine represents the entry point (within Catalina) that processes every request. The Engine implementation for Tomcat stand alone analyzes the HTTP headers included with the request, and passes them on to the appropriate Host (virtual host). Documentation at /docs/config/engine.html -- !-- You should set jvmRoute to support load-balancing via AJP ie : Engine name=Standalone defaultHost=localhost jvmRoute=jvm1 -- Engine name=Catalina defaultHost=localhost !--For clustering, please take a look at documentation at: /docs/cluster-howto.html (simple how to) /docs/config/cluster.html (reference documentation) -- !-- Cluster className=org.apache.catalina.ha.tcp.SimpleTcpCluster/ -- !-- The request dumper valve dumps useful debugging information about the request and response data received and sent by Tomcat. Documentation at: /docs/config/valve.html -- !-- Valve className=org.apache.catalina.valves.RequestDumperValve/ -- !-- This Realm uses the UserDatabase configured in the global JNDI resources under the key UserDatabase. Any edits that are performed against this UserDatabase are immediately available for use by the Realm. -- Realm className=org.apache.catalina.realm.UserDatabaseRealm resourceName=UserDatabase/ !-- Define the default virtual host Note: XML Schema validation will not work with Xerces 2.2. -- Host name=localhost appBase=/var/www/html unpackWARs=true autoDeploy=true xmlValidation=false xmlNamespaceAware=false !-- SingleSignOn valve, share authentication between web applications Documentation at: /docs/config/valve.html -- !--
RE: ContextListener executes twice
Might have to do with this: Any declared listener will be reported as declared twice due to this bug http://www.mail-archive.com/[EMAIL PROTECTED]/msg23408.html Fu-Tung --- On Tue, 7/22/08, Caldarale, Charles R [EMAIL PROTECTED] wrote: From: Caldarale, Charles R [EMAIL PROTECTED] Subject: RE: ContextListener executes twice To: Tomcat Users List users@tomcat.apache.org Date: Tuesday, July 22, 2008, 4:51 PM From: Riaz, Bob [mailto:[EMAIL PROTECTED] Subject: RE: ContextListener executes twice 1) Where is your webapp deployed? On my dev machine - localhost. Is that what you mean? No, what directory is it in? Is it a .war or an expanded webapp? 2) Do you have a META-INF/context.xml file inside your webapp? ?xml version=1.0 encoding=UTF-8? Context path=/MyWebApp/ The path attribute is illegal here. You don't really need a Context at all. 3) Do you have a conf/Catalina/[host]/[appName].xml file? ?xml version=1.0 encoding=UTF-8? Context docBase=C:/..Path/NetBeansProjects/MyWebApp/build/web path=/ MyWebApp / The above will override the invalid one in META-INF/context.xml. 4) What is the appBase setting for each of your Host elements in conf/server.xml? Host name=localhost appBase=webapps Do you happen to have a copy of your webapp deployed under Tomcat's webapps directory? If so, that would account for the double initialization. Does the problem occur when you run Tomcat independently of NetBeans, or only if run through NetBeans? - 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] - 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: clustering: session replication
in tomcat 6, you configure it using logging.properties for example org.apache.catalina.ha.level=FINE org.apache.catalina.tribes.level=FINE Filip nch wrote: Sorry, I'm running 6.0.13. Does it work the same? - Original Message From: Peter Rossbach [EMAIL PROTECTED] To: Tomcat Users List users@tomcat.apache.org Sent: Tuesday, July 22, 2008 11:10:04 AM Subject: Re: clustering: session replication Hi, at tomcat 5.5 cluster you can use the cluster logging. Look at tomcat docs http://tomcat.apache.org/tomcat-5.5-doc/cluster-howto.html Cluster className=org.apache.catalina.cluster.tcp.SimpleTcpCluster doClusterLog=true clusterLogName=clusterlog ... Peter Am 22.07.2008 um 09:07 schrieb nch: Hi, there. Does anyone know how to trace session replication in a cluster? Thank you. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] No virus found in this incoming message. Checked by AVG. Version: 7.5.526 / Virus Database: 270.5.3/1565 - Release Date: 7/21/2008 6:36 PM - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[Fwd: Re: Tomcat throws UnsupportedOperationException when is starting]
sending to tomcat-user list, Original Message Subject:Re: Tomcat throws UnsupportedOperationException when is starting Date: Tue, 22 Jul 2008 11:14:13 -0600 From: Filip Hanik - Dev Lists [EMAIL PROTECTED] To: [EMAIL PROTECTED] References: [EMAIL PROTECTED] do you have Manager uncommented in context.xml? Filip georgiu marius wrote: Hi ! I'm working with a cluster application and I want to use session replication. Here is my server.xml : ?xml version='1.0' encoding='utf-8'? Server port=8005 shutdown=SHUTDOWN Listener className=org.apache.catalina.core.AprLifecycleListener SSLEngine=on / Listener className=org.apache.catalina.core.JasperListener / Listener className=org.apache.catalina.mbeans.ServerLifecycleListener / Listener className=org.apache.catalina.mbeans.GlobalResourcesLifecycleListener / GlobalNamingResources Resource name=UserDatabase auth=Container type=org.apache.catalina.UserDatabase description=User database that can be updated and saved factory=org.apache.catalina.users.MemoryUserDatabaseFactory pathname=conf/tomcat-users.xml / /GlobalNamingResources Service name=Catalina Connector port=8080 protocol=HTTP/1.1 connectionTimeout=2 redirectPort=8443 / Connector port=8009 protocol=AJP/1.3 redirectPort=8443 / Engine name=Catalina defaultHost=localhost jvmRoute=tester Cluster className=org.apache.catalina.ha.tcp.SimpleTcpCluster channelSendOptions=8 Manager className=org.apache.catalina.ha.session.SimpleTcpReplicationManager expireSessionsOnShutdown=false notifyListenersOnReplication=true/ Channel className=org.apache.catalina.tribes.group.GroupChannel Membership className=org.apache.catalina.tribes.membership.McastService address=228.0.0.4 port=60042 frequency=500 dropTime=6000/ Receiver className=org.apache.catalina.tribes.transport.nio.NioReceiver address=auto port=4000 autoBind=100 selectorTimeout=5000 maxThreads=10/ Sender className=org.apache.catalina.tribes.transport.ReplicationTransmitter Transport className=org.apache.catalina.tribes.transport.nio.PooledParallelSender/ /Sender Interceptor className=org.apache.catalina.tribes.group.interceptors.TcpFailureDetector/ Interceptor className=org.apache.catalina.tribes.group.interceptors.MessageDispatch15Interceptor/ /Channel Valve className=org.apache.catalina.ha.tcp.ReplicationValve filter=/ Valve className=org.apache.catalina.ha.session.JvmRouteBinderValve/ Deployer className=org.apache.catalina.ha.deploy.FarmWarDeployer tempDir=/tmp/war-temp/ deployDir=/tmp/war-deploy/ watchDir=/tmp/war-listen/ watchEnabled=false/ ClusterListener className=org.apache.catalina.ha.session.JvmRouteSessionIDBinderListener/ ClusterListener className=org.apache.catalina.ha.session.ClusterSessionListener/ /Cluster Realm className=org.apache.catalina.realm.UserDatabaseRealm resourceName=UserDatabase/ Host name=localhost appBase=webapps unpackWARs=true autoDeploy=true xmlValidation=false xmlNamespaceAware=false /Host /Engine /Service /Server If a set in context.xml Context distributable=true or in web.xml distributable/, when I start tomcat an UnsupportedOperationException is thrown : 18.07.2008 15:52:00 org.apache.catalina.ha.tcp.SimpleTcpCluster createManager SEVERE: Unable to clone cluster manager, defaulting to org.apache.catalina.ha.session.DeltaManager java.lang.UnsupportedOperationException at org.apache.catalina.ha.session.SimpleTcpReplicationManager.cloneFromTemplate(SimpleTcpReplicationManager.java :682) at org.apache.catalina.ha.tcp.SimpleTcpCluster.createManager(SimpleTcpCluster.java:506) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4259) at
RE: ContextListener executes twice
-Original Message- From: Caldarale, Charles R [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 22, 2008 11:52 AM To: Tomcat Users List Subject: RE: ContextListener executes twice From: Riaz, Bob [mailto:[EMAIL PROTECTED] Subject: RE: ContextListener executes twice 1) Where is your webapp deployed? On my dev machine - localhost. Is that what you mean? No, what directory is it in? Is it a .war or an expanded webapp? \NetBeansProjects. Expanded webapp, not running it as a .war. 2) Do you have a META-INF/context.xml file inside your webapp? ?xml version=1.0 encoding=UTF-8? Context path=/MyWebApp/ The path attribute is illegal here. You don't really need a Context at all. Ok. Removed it. But if the conf/Catalina/[host]/[appName].xml overrides this, this should make no difference, right? 3) Do you have a conf/Catalina/[host]/[appName].xml file? ?xml version=1.0 encoding=UTF-8? Context docBase=C:/..Path/NetBeansProjects/MyWebApp/build/web path=/ MyWebApp / The above will override the invalid one in META-INF/context.xml. 4) What is the appBase setting for each of your Host elements in conf/server.xml? Host name=localhost appBase=webapps Do you happen to have a copy of your webapp deployed under Tomcat's webapps directory? If so, that would account for the double initialization. Don't see it under \webapps Does the problem occur when you run Tomcat independently of NetBeans, or only if run through NetBeans? So far I have only run it through NetBeans. When I try to start Tomcat through the cmd shell (using startup.bat) I get the following error: The JAV_HOME environment variable is not defined correctly This environment variable is needed to run this program NB:JAVA_HOME should point to a JDK nota JRE The JAVA_HOME variable points to the bin in the jdk folder, same error if JAVA_HOME points to jdk folder. - 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] - 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: Question about the connector Apache x Tomcat
Forgot to say it is HP-UX, and in this link indicated, we didnt find...any other hints? Txs Ingrid -Original Message- From: Steve Ochani [mailto:[EMAIL PROTECTED] Sent: Monday, July 21, 2008 6:51 PM To: Tomcat Users List Subject: RE: Question about the connector Apache x Tomcat On 21 Jul 2008 at 17:59, Tan, Liao wrote: Hi, Steve and all Then what if we get the mod_jk for our apache (2.2.2.8) (we are avoinding doing the src)? Do u know where(link) can I find? Depends on what OS you are using but some binary releases can be downloaded from: http://tomcat.apache.org/download-connectors.cgi -Steve O. Thanks Ingrid -Original Message- From: Steve Ochani [mailto:[EMAIL PROTECTED] Sent: Monday, July 21, 2008 5:52 PM To: Tomcat Users List Subject: Re: Question about the connector Apache x Tomcat On 21 Jul 2008 at 17:32, Tan, Liao wrote: Date sent:Mon, 21 Jul 2008 17:32:38 -0300 From: Tan, Liao [EMAIL PROTECTED] Subject: Question about the connector Apache x Tomcat To: users@tomcat.apache.org Send reply to:Tomcat Users List users@tomcat.apache.org Hi, All: Hi, My team has installed Apache 2.x and configured the connector with Tomcat 4.1.x and when started the apache, it gives the following error: /usr/local/apache2/bin ./apachectl start httpd: Syntax error on line 471 of /usr/local/apache2/etc/httpd.conf: Syntax error on line 1 of /usr/local/apache2/etc/extra/bobj_apache_tomcat.conf: Cannot load /usr/local/apache2/lib/modules/mod_jk.sl into server: Unresolved external /usr/local/apache2/bin Does anybody know what´s going on this time? Do you have mod_jk installed in /usr/local/apache2/lib/modules/ ? It might be the wrong version (it needs to be built for your version of apache httpd), I would recommend just building it from src yourself. -Steve O. Thank you Ingrid - 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] - 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] - 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: Help configuring Tomcat
found the problem.. Host name=localhost appBase=/var/www/html syntax error... now I get a status 404.. I will try to troubleshoot it. -- View this message in context: http://www.nabble.com/Help-configuring-Tomcat-tp18591522p18594566.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: clustering: session replication
also, post your configuration, to make sure you have it right (server.xml and context.xml) Filip nch wrote: Hello, again. Well, I'm asking about how to enable cluster logging because I'm running an apache/mod_jk balanced two node cluster (without sticky session). Whenever a request is being sent to a tomcat different than the one which started the session, then the session is lost. Btw, this is an ajax application (dwr). This was working perfectly well when using sticky session, but now I have the requirement not to use it. That is, before, when one of the two tomcats went down, then the other one would keep the session. I'm running tomcat 6.0.13/jdk 1.6/debian etch Any clues on how to tackle this issue? Kind regards. - Original Message From: nch [EMAIL PROTECTED] To: Tomcat Users List users@tomcat.apache.org Sent: Tuesday, July 22, 2008 12:27:13 PM Subject: Re: clustering: session replication Sorry, I'm running 6.0.13. Does it work the same? - Original Message From: Peter Rossbach [EMAIL PROTECTED] To: Tomcat Users List users@tomcat.apache.org Sent: Tuesday, July 22, 2008 11:10:04 AM Subject: Re: clustering: session replication Hi, at tomcat 5.5 cluster you can use the cluster logging. Look at tomcat docs http://tomcat.apache.org/tomcat-5.5-doc/cluster-howto.html Cluster className=org.apache.catalina.cluster.tcp.SimpleTcpCluster doClusterLog=true clusterLogName=clusterlog ... Peter Am 22.07.2008 um 09:07 schrieb nch: Hi, there. Does anyone know how to trace session replication in a cluster? Thank you. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] No virus found in this incoming message. Checked by AVG. Version: 7.5.526 / Virus Database: 270.5.3/1565 - Release Date: 7/21/2008 6:36 PM - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [Same Behavior]Connections timing out even with validation query??
Nice technique ... thanks ... might help to zero in on it. On Jul 22, 2008, at 12:48 PM, Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Ken, Ken Bowen wrote: | All connections are /supposed/ to be closed when the interaction if | finished, but there still could be one slipping through. I find it useful in development to set the connection pool size to exactly 1 connection, and, of course, enable abandoned checking, etc. If you have only a single database connection in the pool, you can also detect potential deadlocks in your code since your app can only (successfully) request a single connection at a time. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkiGD3YACgkQ9CaO5/Lv0PB8cgCcCLFr0LO2iwLuLHwg3FGx+Eu9 XFYAn3UX12OqjlbUJ8SfFu872Ijonu4Y =n09o -END PGP SIGNATURE- - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - 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: ContextListener executes twice
Thanks. Does anyone know of a patch for this? I couldn't find one. In org.apache.catalina.startup.WebRuleSet you'll see this twice: digester.addCallMethod(prefix + web-app/listener/listener-class, addApplicationListener, 0); -Original Message- From: Fu-Tung Cheng [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 22, 2008 12:13 PM To: Tomcat Users List Subject: RE: ContextListener executes twice Might have to do with this: Any declared listener will be reported as declared twice due to this bug http://www.mail-archive.com/[EMAIL PROTECTED]/msg23408.html Fu-Tung --- On Tue, 7/22/08, Caldarale, Charles R [EMAIL PROTECTED] wrote: From: Caldarale, Charles R [EMAIL PROTECTED] Subject: RE: ContextListener executes twice To: Tomcat Users List users@tomcat.apache.org Date: Tuesday, July 22, 2008, 4:51 PM From: Riaz, Bob [mailto:[EMAIL PROTECTED] Subject: RE: ContextListener executes twice 1) Where is your webapp deployed? On my dev machine - localhost. Is that what you mean? No, what directory is it in? Is it a .war or an expanded webapp? 2) Do you have a META-INF/context.xml file inside your webapp? ?xml version=1.0 encoding=UTF-8? Context path=/MyWebApp/ The path attribute is illegal here. You don't really need a Context at all. 3) Do you have a conf/Catalina/[host]/[appName].xml file? ?xml version=1.0 encoding=UTF-8? Context docBase=C:/..Path/NetBeansProjects/MyWebApp/build/web path=/ MyWebApp / The above will override the invalid one in META-INF/context.xml. 4) What is the appBase setting for each of your Host elements in conf/server.xml? Host name=localhost appBase=webapps Do you happen to have a copy of your webapp deployed under Tomcat's webapps directory? If so, that would account for the double initialization. Does the problem occur when you run Tomcat independently of NetBeans, or only if run through NetBeans? - 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] - 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: Question about the connector Apache x Tomcat
On 22 Jul 2008 at 14:21, Tan, Liao wrote: Forgot to say it is HP-UX, and in this link indicated, we didnt find...any other hints? Build from src. It is easy to do, just need apxs, c compiler and make installed. Txs Ingrid -Original Message- From: Steve Ochani [mailto:[EMAIL PROTECTED] Sent: Monday, July 21, 2008 6:51 PM To: Tomcat Users List Subject: RE: Question about the connector Apache x Tomcat On 21 Jul 2008 at 17:59, Tan, Liao wrote: Hi, Steve and all Then what if we get the mod_jk for our apache (2.2.2.8) (we are avoinding doing the src)? Do u know where(link) can I find? Depends on what OS you are using but some binary releases can be downloaded from: http://tomcat.apache.org/download-connectors.cgi -Steve O. Thanks Ingrid -Original Message- From: Steve Ochani [mailto:[EMAIL PROTECTED] Sent: Monday, July 21, 2008 5:52 PM To: Tomcat Users List Subject: Re: Question about the connector Apache x Tomcat On 21 Jul 2008 at 17:32, Tan, Liao wrote: Date sent: Mon, 21 Jul 2008 17:32:38 -0300 From: Tan, Liao [EMAIL PROTECTED] Subject:Question about the connector Apache x Tomcat To: users@tomcat.apache.org Send reply to: Tomcat Users List users@tomcat.apache.org Hi, All: Hi, My team has installed Apache 2.x and configured the connector with Tomcat 4.1.x and when started the apache, it gives the following error: /usr/local/apache2/bin ./apachectl start httpd: Syntax error on line 471 of /usr/local/apache2/etc/httpd.conf: Syntax error on line 1 of /usr/local/apache2/etc/extra/bobj_apache_tomcat.conf: Cannot load /usr/local/apache2/lib/modules/mod_jk.sl into server: Unresolved external /usr/local/apache2/bin Does anybody know what´s going on this time? Do you have mod_jk installed in /usr/local/apache2/lib/modules/ ? It might be the wrong version (it needs to be built for your version of apache httpd), I would recommend just building it from src yourself. -Steve O. Thank you Ingrid - 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] - 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] - 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]
javax.mail.AuthenticationFailedException
Hello all, Could anyone help me, please?, I've been trying to solve this mistake but it's impossible and I don't know what I can do. This is the mistake: org.apache.jasper.JasperException: Exception in JSP: /sendmail.jsp:25 22: 23: Store store=s.getStore(pop3); 24: store.connect(pop.correo.yahoo.es,[EMAIL PROTECTED],bezos11); 25: Transport.send(message); 26: 27: store.close(); 28: % Stacktrace: org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:504) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:375) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) causa raíz javax.servlet.ServletException org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:858) org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:791) org.apache.jsp.sendmail_jsp._jspService(sendmail_jsp.java:94) org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:332) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) causa raíz javax.mail.AuthenticationFailedException javax.mail.Service.connect(Service.java:306) javax.mail.Service.connect(Service.java:156) javax.mail.Service.connect(Service.java:105) javax.mail.Transport.send0(Transport.java:168) javax.mail.Transport.send(Transport.java:98) org.apache.jsp.sendmail_jsp._jspService(sendmail_jsp.java:71) org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:332) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) And this the source: Properties props=new Properties(); props.put(mail.smtp.host,smtp.correo.yahoo.es); props.put(mail.smtp.port,25); props.put(mail.smtps.port, 465); props.put(mail.smtp.auth, true); Session s=Session.getInstance(props); s.setDebug(true); MimeMessage message=new MimeMessage(s); InternetAddress from=new InternetAddress([EMAIL PROTECTED]); message.setFrom(from); InternetAddress to=new InternetAddress([EMAIL PROTECTED]); message.addRecipient(Message.RecipientType.TO,to); message.setSubject(Prueba de JavaMail); message.setText(Saludo de JavaMail); Store store=s.getStore(pop3); store.connect(pop.correo.yahoo.es,[EMAIL PROTECTED],bezos11); Transport.send(message); store.close(); Where is my mistake?, Thanks a lot. _ Hazte tu propia televisión a la carta. Música, noticias, estrenos, cine, humor y viajes en MSN Vídeo http://video.msn.com/?mkt=es-es - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Session sharing between two URLs
Hi all, I'm wondering if there is a way to configure Tomcat to share session between two URLs from the same webapp? I have an application with billingual URLs and when users toggle between the languages the session passed (using jsessionid) does not contain log in information and the user is required to log into the application again. I have found a way to change the Tomcat source code to allow this, or to store session date in a context but I would like to know if it can be done another way? or has there been a feature request for this function? Thank you! Erica
RE: logging!!
Hi, I have found it the argument for logging the content length header in the access log is %B. Thanks -Original Message- From: Caldarale, Charles R [mailto:[EMAIL PROTECTED] Sent: Monday, July 21, 2008 10:29 PM To: Tomcat Users List Subject: RE: logging!! From: Shahar Cohen [mailto:[EMAIL PROTECTED] Subject: RE: logging!! Can you please tell me which argument supplies this information? Use an appropriate pattern: There is also support to write information from the cookie, incoming header, the Session or something else in the ServletRequest. It is modeled after the apache syntax: * %{xxx}i for incoming headers * %{xxx}o for outgoing response headers * %{xxx}c for a specific cookie * %{xxx}r xxx is an attribute in the ServletRequest * %{xxx}s xxx is an attribute in the HttpSession - 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] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Spam Score
What is the tomcat mailing list spam score, and why am I unable to send my email to post a question? Patrick
Re: Spam Score
Patrick Markiewicz wrote: What is the tomcat mailing list spam score, and why am I unable to send my email to post a question? You just posted a question. I don't know what you mean by spam score. - 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: Spam Score
For some reason, my original question is undeliverable, and the tomcat mailing list sends me: users@tomcat.apache.org on 7/22/2008 2:28 PM The e-mail system was unable to deliver the message, but did not report a specific reason. Check the address and try again. If it still fails, contact your system administrator. XX; host mx1.us.apache.org[140.211.11.136] said:552 spam score (5.6) exceeded threshold (in reply to end of DATA command) XX is a placeholder for my mailserver's actual address. Are there specific things that are not allowed? Like having URLs in my email? I'll try reposting that message. Patrick -Original Message- From: Bill Davidson [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 22, 2008 2:34 PM To: Tomcat Users List Subject: Re: Spam Score Patrick Markiewicz wrote: What is the tomcat mailing list spam score, and why am I unable to send my email to post a question? You just posted a question. I don't know what you mean by spam score. - 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: javax.mail.AuthenticationFailedException
I don't use Yahoo! email so take this with a grain of salt, but this error looks pretty clear cut to me. Yahoo's SMTP server wants username and password, but you aren't sending any. --David Carlos Morales Diego wrote: Hello all, Could anyone help me, please?, I've been trying to solve this mistake but it's impossible and I don't know what I can do. This is the mistake: org.apache.jasper.JasperException: Exception in JSP: /sendmail.jsp:25 22: 23: Store store=s.getStore(pop3); 24: store.connect(pop.correo.yahoo.es,[EMAIL PROTECTED],bezos11); 25: Transport.send(message); 26: 27: store.close(); 28: % Stacktrace: org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:504) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:375) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) causa raíz javax.servlet.ServletException org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:858) org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:791) org.apache.jsp.sendmail_jsp._jspService(sendmail_jsp.java:94) org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:332) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) causa raíz javax.mail.AuthenticationFailedException javax.mail.Service.connect(Service.java:306) javax.mail.Service.connect(Service.java:156) javax.mail.Service.connect(Service.java:105) javax.mail.Transport.send0(Transport.java:168) javax.mail.Transport.send(Transport.java:98) org.apache.jsp.sendmail_jsp._jspService(sendmail_jsp.java:71) org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:332) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) And this the source: Properties props=new Properties(); props.put(mail.smtp.host,smtp.correo.yahoo.es); props.put(mail.smtp.port,25); props.put(mail.smtps.port, 465); props.put(mail.smtp.auth, true); Session s=Session.getInstance(props); s.setDebug(true); MimeMessage message=new MimeMessage(s); InternetAddress from=new InternetAddress([EMAIL PROTECTED]); message.setFrom(from); InternetAddress to=new InternetAddress([EMAIL PROTECTED]); message.addRecipient(Message.RecipientType.TO,to); message.setSubject(Prueba de JavaMail); message.setText(Saludo de JavaMail); Store store=s.getStore(pop3); store.connect(pop.correo.yahoo.es,[EMAIL PROTECTED],bezos11); Transport.send(message); store.close(); Where is my mistake?, Thanks a lot. _ Hazte tu propia televisión a la carta. Música, noticias, estrenos, cine, humor y viajes en MSN Vídeo http://video.msn.com/?mkt=es-es - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - 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: Spam Score
Don't know ... looks like you can send. --David Patrick Markiewicz wrote: What is the tomcat mailing list spam score, and why am I unable to send my email to post a question? Patrick - 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: Question about the connector Apache x Tomcat
Tan, Liao wrote: Forgot to say it is HP-UX, and in this link indicated, we didnt find...any other hints? Hi. I seem to remember, quite a long time ago on this same list, in response to a similar question, to have recommended that, for an HPUX system, you have a look at the pre-packaged versions offered by HP on their website, in the form of easy-to-install pre-compiled packages. There exist several versions of the package hpws, which already contain Apache, Tomcat, mod_jk, SSL, and some more goodies, all in one package, and all working nicely together. I believe this would save you a lot of grief and a lot of questions. In my experience, HPUX is a difficult platform to install software from source or from separate pieces, because there is always some compiler or some library or some other stuff missing when you try. But the pre-packaged stuff works nicely. Look here for instance : http://h20392.www2.hp.com/portal/swdepot/displayProductsList.do?category=NSM There is even a button receive for free. What else does one need ? - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Isapi Redirector Question
Hi, I have a question about the isapi redirector. I am using Plesk. On port 80, the redirector works fine. On port 8880, the redirector fails to retrieve the specified tomcat application and returns a status code of not found for slash jakarta slash isapi underscore redirect dot dll. I've spelled out the path to the file because the tomcat mailing list is rejecting my original more detailed email as spam. Is there a configuration change that is necessary for the isapi redirector to work on port 8880? Patrick
Re: Spam Score
If you can't re-post the original email successfully, try: - posting in plain text format, not HTML - removing URLs - posting from a different email account, or from a web gateway such as nabble.com Perhaps the mailing list admin can give us some hints about what to avoid when sending email to this list. Or tell us what anti-spam software is running on mx1.us.apache.org - maybe there is documentation about how to compose emails so they're not scored as spam. -- Len On Tue, Jul 22, 2008 at 14:46, Patrick Markiewicz [EMAIL PROTECTED] wrote: For some reason, my original question is undeliverable, and the tomcat mailing list sends me: users@tomcat.apache.org on 7/22/2008 2:28 PM The e-mail system was unable to deliver the message, but did not report a specific reason. Check the address and try again. If it still fails, contact your system administrator. XX; host mx1.us.apache.org[140.211.11.136] said:552 spam score (5.6) exceeded threshold (in reply to end of DATA command) XX is a placeholder for my mailserver's actual address. Are there specific things that are not allowed? Like having URLs in my email? I'll try reposting that message. Patrick -Original Message- From: Bill Davidson [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 22, 2008 2:34 PM To: Tomcat Users List Subject: Re: Spam Score Patrick Markiewicz wrote: What is the tomcat mailing list spam score, and why am I unable to send my email to post a question? You just posted a question. I don't know what you mean by spam score. - 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] - 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: Isapi Redirector Question
Attempt to post the original question: I'm running into trouble trying to use the isapi_redirect that comes with Plesk 8.2. Basically, if my web application is on a port other than 80, the redirector appears to present the url /jakarta/isapi_redirect.dll to Tomcat instead of the url of my web application. I.e. I had the redirector set up, and http://localhost/examples shows a 404 from tomcat that /examples/ is not found. But http://localhost:8880/examples shows a 404 from tomcat that /jakarta/isapi_redirect.dll is not found. Originally I thought that I had a problem if isapi_redirect was shared between 2 websites in IIS, so I copied the dll to another directory and added a separate extension that uses the copy of the dll. The only differences between the 2 websites are: Default Application (port 80) is part of an application pool, and it does not have SSL as an option. Plesk Application (port 8880 and port 8443) are not isolated, and it does have SSL on port 8443. The file where the redirector log is supposed to go does not exist. So there is no log being created for the actual redirector. The W3SVC log shows that /myapp/GetFileData (my application) is found with a 200 status code, but the end result presented in the browser is /jakarta/isapi_redirect.dll with a 404 error. Is there a change to worker.properties or uriworker.properties that needs to change to indicate that port 8880 is being used instead of port 80? Thanks. Patrick -Original Message- From: Patrick Markiewicz [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 22, 2008 2:54 PM To: users@tomcat.apache.org Subject: Isapi Redirector Question Hi, I have a question about the isapi redirector. I am using Plesk. On port 80, the redirector works fine. On port 8880, the redirector fails to retrieve the specified tomcat application and returns a status code of not found for slash jakarta slash isapi underscore redirect dot dll. I've spelled out the path to the file because the tomcat mailing list is rejecting my original more detailed email as spam. Is there a configuration change that is necessary for the isapi redirector to work on port 8880? Patrick - 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: Spam Score
Apparently the plain text suggestion worked. Thanks. -Original Message- From: Len Popp [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 22, 2008 2:55 PM To: Tomcat Users List Subject: Re: Spam Score If you can't re-post the original email successfully, try: - posting in plain text format, not HTML - removing URLs - posting from a different email account, or from a web gateway such as nabble.com Perhaps the mailing list admin can give us some hints about what to avoid when sending email to this list. Or tell us what anti-spam software is running on mx1.us.apache.org - maybe there is documentation about how to compose emails so they're not scored as spam. -- Len On Tue, Jul 22, 2008 at 14:46, Patrick Markiewicz [EMAIL PROTECTED] wrote: For some reason, my original question is undeliverable, and the tomcat mailing list sends me: users@tomcat.apache.org on 7/22/2008 2:28 PM The e-mail system was unable to deliver the message, but did not report a specific reason. Check the address and try again. If it still fails, contact your system administrator. XX; host mx1.us.apache.org[140.211.11.136] said:552 spam score (5.6) exceeded threshold (in reply to end of DATA command) XX is a placeholder for my mailserver's actual address. Are there specific things that are not allowed? Like having URLs in my email? I'll try reposting that message. Patrick -Original Message- From: Bill Davidson [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 22, 2008 2:34 PM To: Tomcat Users List Subject: Re: Spam Score Patrick Markiewicz wrote: What is the tomcat mailing list spam score, and why am I unable to send my email to post a question? You just posted a question. I don't know what you mean by spam score. - 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] - 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: ContextListener executes twice
From: Riaz, Bob [mailto:[EMAIL PROTECTED] Subject: RE: ContextListener executes twice Does anyone know of a patch for this? I couldn't find one. The bug does *not* cause the Listener to be executed twice, since the second registration attempt is ignored; the message is purely cosmetic. If you read the whole thread you'll see that the double registration has been occurring in all 6.0 levels, but only recent ones started logging it. This isn't your problem. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Spam Score
At 02:38 PM 7/22/2008, you wrote: What is the tomcat mailing list spam score, and why am I unable to send my email to post a question? Patrick Well, your first message that made it in looked like this: X-ASF-Spam-Status: No, hits=4.1 required=10.0 tests=DNS_FROM_RFC_BOGUSMX,HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org So, apparently your mail server has a bdefective MX record, you don't use SPF and your first message was in HTML. Your second message, that made it to the group was not HTML. Go fix that DNS! That's a BIG strike against your getting any mail anywhere! I probably would have scored you higher for that! Cheers! Received-SPF: pass (athena.apache.org: local policy) Received: from [67.91.25.34] (HELO barracuda.sim-gtech.com) (67.91.25.34) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 22 Jul 2008 18:29:27 + MIME-Version: 1.0 Content-Type: multipart/alternative; boundary=_=_NextPart_001_01C8EC2A.25F5E661 -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. - 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: javax.mail.AuthenticationFailedException
The line which you say I have it. It's this one store.connect(pop.correo.yahoo.es,chikichiki,bezos11); where chikichiki is the user name and bezos11 is the password. Date: Tue, 22 Jul 2008 14:38:19 -0400 From: [EMAIL PROTECTED] To: users@tomcat.apache.org Subject: Re: javax.mail.AuthenticationFailedException I don't use Yahoo! email so take this with a grain of salt, but this error looks pretty clear cut to me. Yahoo's SMTP server wants username and password, but you aren't sending any. --David Carlos Morales Diego wrote: Hello all, Could anyone help me, please?, I've been trying to solve this mistake but it's impossible and I don't know what I can do. This is the mistake: org.apache.jasper.JasperException: Exception in JSP: /sendmail.jsp:25 22: 23: Store store=s.getStore(pop3); 24: store.connect(pop.correo.yahoo.es,[EMAIL PROTECTED],bezos11); 25: Transport.send(message); 26: 27: store.close(); 28: % Stacktrace: org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:504) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:375) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264) javax.servlet.http.HttpServlet.service(HttpServlet.java:802)causa raízjavax.servlet.ServletException org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:858) org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:791) org.apache.jsp.sendmail_jsp._jspService(sendmail_jsp.java:94) org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:332) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264) javax.servlet.http.HttpServlet.service(HttpServlet.java:802)causa raízjavax.mail.AuthenticationFailedException javax.mail.Service.connect(Service.java:306) javax.mail.Service.connect(Service.java:156) javax.mail.Service.connect(Service.java:105) javax.mail.Transport.send0(Transport.java:168) javax.mail.Transport.send(Transport.java:98) org.apache.jsp.sendmail_jsp._jspService(sendmail_jsp.java:71) org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:332) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264) javax.servlet.http.HttpServlet.service(HttpServlet.java:802)And this the source: Properties props=new Properties(); props.put(mail.smtp.host,smtp.correo.yahoo.es); props.put(mail.smtp.port,25); props.put(mail.smtps.port, 465); props.put(mail.smtp.auth, true); Session s=Session.getInstance(props); s.setDebug(true); MimeMessage message=new MimeMessage(s);InternetAddress from=new InternetAddress([EMAIL PROTECTED]); message.setFrom(from); InternetAddress to=new InternetAddress([EMAIL PROTECTED]); message.addRecipient(Message.RecipientType.TO,to); message.setSubject(Prueba de JavaMail); message.setText(Saludo de JavaMail);Store store=s.getStore(pop3); store.connect(pop.correo.yahoo.es,[EMAIL PROTECTED],bezos11); Transport.send(message);store.close();Where is my mistake?, Thanks a lot. _ Hazte tu propia televisión a la carta. Música, noticias, estrenos, cine, humor y viajes en MSN Vídeo http://video.msn.com/?mkt=es-es - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ Hazte tu propia televisión a la carta. Música, noticias, estrenos, cine, humor y viajes en MSN Vídeo http://video.msn.com/?mkt=es-es
RE: Help configuring Tomcat
From: slytheman [mailto:[EMAIL PROTECTED] Subject: Re: Help configuring Tomcat now I get a status 404.. I will try to troubleshoot it. Look in the Tomcat logs to see if the application deployed properly. - 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: ContextListener executes twice
From: Riaz, Bob [mailto:[EMAIL PROTECTED] Subject: RE: ContextListener executes twice Ok. Removed it. But if the conf/Catalina/[host]/[appName].xml overrides this, this should make no difference, right? True, but there's no point in leaving invalid junk lying around just waiting to cause trouble. The JAVA_HOME variable points to the bin in the jdk folder, same error if JAVA_HOME points to jdk folder. JAVA_HOME must point to the directory one up from bin. Looks like the environment variable is not being seen by the process running the startup.bat script. Open up a command prompt window, cd to your Tomcat bin directory, enter a set command with no parameters and see what you've got. If JAVA_HOME is set properly, running startup.bat will get you something like this: Using CATALINA_BASE: C:\apache-tomcat-6.0.16 Using CATALINA_HOME: C:\apache-tomcat-6.0.16 Using CATALINA_TMPDIR: C:\apache-tomcat-6.0.16\temp Using JRE_HOME:C:\jdk1.6.0 (Yes, it says JRE_HOME, that's acceptable.) Tomcat will start running in another command prompt window. To check JAVA_HOME, try this: %JAVA_HOME%\bin\java.exe -version - 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: Session sharing between two URLs
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Subject: Session sharing between two URLs I'm wondering if there is a way to configure Tomcat to share session between two URLs from the same webapp? Are you sure both URLs access the same webapp? Or do you really have the webapp deployed twice, once for each language? If the latter, the SingleSignOn valve may help: http://tomcat.apache.org/tomcat-6.0-doc/config/valve.html#Single%20Sign%20On%20Valve Next time, tell us the Tomcat version you're using. - 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: javax.mail.AuthenticationFailedException
javax.mail.AuthenticationFailedException ... javax.mail.Transport.send(Transport.java:98) org.apache.jsp.sendmail_jsp._jspService(sendmail_jsp.java:71) That's not what I'm seeing ... the stack trace clearly shows the problem to be in your call to Transport.send(), not the pop connect line. --David Carlos Morales Diego wrote: The line which you say I have it. It's this one store.connect(pop.correo.yahoo.es,chikichiki,bezos11); where chikichiki is the user name and bezos11 is the password. Date: Tue, 22 Jul 2008 14:38:19 -0400 From: [EMAIL PROTECTED] To: users@tomcat.apache.org Subject: Re: javax.mail.AuthenticationFailedException I don't use Yahoo! email so take this with a grain of salt, but this error looks pretty clear cut to me. Yahoo's SMTP server wants username and password, but you aren't sending any. --David Carlos Morales Diego wrote: Hello all, Could anyone help me, please?, I've been trying to solve this mistake but it's impossible and I don't know what I can do. This is the mistake: org.apache.jasper.JasperException: Exception in JSP: /sendmail.jsp:25 22: 23: Store store=s.getStore(pop3); 24: store.connect(pop.correo.yahoo.es,[EMAIL PROTECTED],bezos11); 25: Transport.send(message); 26: 27: store.close(); 28: %Stacktrace: org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:504) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:375) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264) javax.servlet.http.HttpServlet.service(HttpServlet.java:802)causa raízjavax.servlet.ServletException org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:858) org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:791) org.apache.jsp.sendmail_jsp._jspService(sendmail_jsp.java:94) org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:332) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264) javax.servlet.http.HttpServlet.service(HttpServlet.java:802)causa raízjavax.mail.AuthenticationFailedException javax.mail.Service.connect(Service.java:306) javax.mail.Service.connect(Service.java:156) javax.mail.Service.connect(Service.java:105) javax.mail.Transport.send0(Transport.java:168) javax.mail.Transport.send(Transport.java:98) org.apache.jsp.sendmail_jsp._jspService(sendmail_jsp.java:71) org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:332) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264) javax.servlet.http.HttpServlet.service(HttpServlet.java:802)And this the source: Properties props=new Properties(); props.put(mail.smtp.host,smtp.correo.yahoo.es); props.put(mail.smtp.port,25); props.put(mail.smtps.port, 465); props.put(mail.smtp.auth, true); Session s=Session.getInstance(props); s.setDebug(true); MimeMessage message=new MimeMessage(s);InternetAddress from=new InternetAddress([EMAIL PROTECTED]); message.setFrom(from); InternetAddress to=new InternetAddress([EMAIL PROTECTED]); message.addRecipient(Message.RecipientType.TO,to);message.setSubject(Prueba de JavaMail); message.setText(Saludo de JavaMail);Store store=s.getStore(pop3); store.connect(pop.correo.yahoo.es,[EMAIL PROTECTED],bezos11); Transport.send(message);store.close();Where is my mistake?, Thanks a lot. _ Hazte tu propia televisión a la carta. Música, noticias, estrenos, cine, humor y viajes en MSN Vídeo http://video.msn.com/?mkt=es-es - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ Hazte tu propia televisión a la carta. Música, noticias, estrenos, cine, humor y viajes en MSN Vídeo http://video.msn.com/?mkt=es-es - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands,
Trying to mix db connection pooling on web and desktop applications
Hello, this is the scenario: I have an application that must have two interfaces: as a desktop application and as a web application I've put the business logic inside a JAR library (client_bpm.jar), which must connect to an Oracle 9i database I configured the web application so it can use a db pool connection, in the following manner: 1. Added to %CATALINA_HOME%/conf/server.xml the following: Server GlobalNamingResources Resource name=jdbc/RAM_DB auth=Container type=javax.sql.DataSource username=* password=* driverClassName=oracle.jdbc.OracleDriver url=jdbc:oracle:thin:* removeAbandoned=true removeAbandonedTimeout=60 logAbandoned=true maxActive=8 maxIdle=4 maxWait=2000/ /GlobalNamingResources /Server 2. Added to %CATALINA_HOME%/conf/context.xml the following: ResourceLink name=jdbc/RAM_DB global=jdbc/RAM_DB type=javax.sql.DataSource / 3. Added to %CATALINA_HOME%/webapps/myWebApp/WEB-INF/web.xml the following: resource-ref description Resource reference to a factory for java.sql.Connection instances that may be used for talking to a particular database that is configured in the Context configurartion for the web application. /description res-ref-name jdbc/RAM_DB /res-ref-name res-type javax.sql.DataSource /res-type res-auth Container /res-auth /resource-ref 4. Added my business library (client_bpm.jar) to %CATALINA_HOME%/webapps/myWebApp/WEB-INF/lib 5. Added JDBC library (ojdbc14.jar) to %CATALINA_HOME%/lib 6. Use the following code to get a db connection: Context initCtx = new InitialContext(); Context envCtx = (Context) initCtx.lookup(java:comp/env); DataSource ds = (DataSource) envCtx.lookup(jdbc/RAM_DB); Connection conn= ds.getConnection(); And the web application runs fine, i have no problems with it Now, what i want is to use the same db connection pool facility (that Tomcat provides to web applications) on my desktop application, and use the same code (or something very similar) i used in point 6 to obtain a db connection With points 1-3 Tomcat provided my web application with a db connection pooling facility I want Tomcat to provide to my desktop application the same db connection pooling facility, ¿How do i do that? I have tried invoking my desktop application with the following: java -classpath .;%CATALINA_HOME%/webapps/myWebApp/WEB-INF/lib/client_bpm.jar;%CATALINA_HOME%/lib/catalina.jar;%CATALINA_HOME%/bin/tomcat-juli.jar;%CATALINA_HOME%/lib/ojdbc14.jar -Djava.naming.factory.initial=org.apache.naming.java.javaURLContextFactory -Djava.naming.factory.url.pkgs=org.apache.naming MyDesktopApp And got the following error: javax.naming.NameNotFoundException: Name java: is not bound in this Context at org.apache.naming.NamingContext.list(NamingContext.java:345) at org.apache.naming.NamingContext.list(NamingContext.java:368) at javax.naming.InitialContext.list(InitialContext.java:436) at MyDesktopApp.main(MyDesktopApp.java:12) Any suggestions will be appreciated --- Aviso Confidencial.- Este correo electrónico, así como los archivos adjuntos que contenga son confidenciales de conformidad con las leyes aplicables, y es para uso exclusivo del destinatario al que expresamente se le ha enviado. Si usted no es el destinatario legítimo del mismo, deberá reportarlo al remitente del correo y borrarlo inmediatamente. Cualquier revisión, retransmisión, divulgación, difusión o cualquier otro uso de este correo, por personas o entidades distintas a las del destinatario legítimo, queda expresamente prohibido. Los derechos de propiedad respecto de la información, material, bases de datos, diseños, y los distintos elementos en él contenidos son titularidad de Mapfre Tepeyac, S. A. Este correo electrónico no pretende ni debe ser considerado como constitutivo de ninguna relación legal, contractual o de otra índole similar. Confidencial Notice.- This e-mail, as such as the attached files it contains are confidential in accordance with the applicable laws, and is for exclusive use to expressly addressee has been sending. If you are not the legitimate addressee itself, you will must report to sender of mail and cross it immediately. Any review, re-transmission, disclosure, dissemination or any other use of this mail, from people or different entities from the legitimate addressee, is prohibited. The property rights about the information, material, databases, designs, and the different components in it contains are ownership of MAPFRE Tepeyac, S. A. This e-mail do not pretend, neither it
RE: Session sharing between two URLs
Thank you Chuck! I'm using Tomcat 5.5.25, and we are using our own authentication system so Single Sign On Vale cannot be used. I set emptySessionPath=true to make the path on the jsessionid cookie less restrictive. I'm using both URLs www.domain1.com and www.domain2.com to access the same webapp, these two DNS entries point to the same Tomcat instance. The application automatically switches user locale based on the language switch, and hence changing the URL displayed. JSESSIONID is used to track user information and is appended as a URL parameter. I simply want a way to be able to switch between English and French URLs with the same jsessionid. I don't know if this is possible without changing the Tomcat source code? Erica Caldarale, Charles R [EMAIL PROTECTED] 22/07/2008 03:20 PM Please respond to Tomcat Users List users@tomcat.apache.org To Tomcat Users List users@tomcat.apache.org cc Subject RE: Session sharing between two URLs From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Subject: Session sharing between two URLs I'm wondering if there is a way to configure Tomcat to share session between two URLs from the same webapp? Are you sure both URLs access the same webapp? Or do you really have the webapp deployed twice, once for each language? If the latter, the SingleSignOn valve may help: http://tomcat.apache.org/tomcat-6.0-doc/config/valve.html#Single%20Sign%20On%20Valve Next time, tell us the Tomcat version you're using. - 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: Multiple websites in tomcat
Ravi Sharma wrote: Hi Andre, Thanks for reply and sorry for my incomplete reply. So here is what i have done now. First i have reinstalled everything again,So i have fresh environment with apache (version 2.2.3) and tomcat (version 5.5). JK module(1.2.26 ) is already installed in apache, so i don't need to get it from anywhere. Allright ! That was a very good idea. Now we have a chance to start from a clean situation. [...] You can access following files from this url http://www.jaatmusic.com/log.html httpd.conf server.xml worker.properties jk.conf which is being included in httpd.conf by using this line Include conf.d/*.conf from this url I looked at this. That was also a good idea for now. So, STEP 1 : Stop Tomcat and Apache Go back to the original configuration files. Really. Forget your changes for now. Put back - the original Tomcat server.xml - the original Apache httpd.conf - the original workers.properties STEP 2 : At the end of the original http.conf, add these lines : JkLogFile /etc/httpd/logs/jk.log JkLogLevel debug JkMount /servlets-examples ajp13w JkMount /servlet-examples/* ajp13w (note the change of the URLs and the change of the worker name, to match the existing worker name in workers.properties) STEP 3 : Restart Tomcat and Apache, and wait 30 sec. STEP 4 : Try : a) http://www.jaatmusic.com:9080/servlets-examples b) http://www.jaatmusic.com:80/servlets-examples Both URLs should give you the same result. With (a), you access Tomcat directly, through its HTTP connector at port 9080. With (b), you access Tomcat through Apache (at port 80), the Apache mod_jk module, and the Tomcat AJP13 Connector. Let me know... And then, we can start making changes again to get the ports you really want etc.. André - 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: Session sharing between two URLs
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Subject: RE: Session sharing between two URLs I simply want a way to be able to switch between English and French URLs with the same jsessionid. O.k., this sounds like it's really a cookie problem, rather than one where you're appending JSESSIONID to the URL. You might try setting cookies=false in the Context element for your webapp to see if that helps. Look here for reference: http://tomcat.apache.org/tomcat-5.5-doc/config/context.html#Attributes - 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: Multiple websites in tomcat
Sorry, there is a typo in my previous message : The JkMount lines should be : JkMount /servlets-examples ajp13w JkMount /servlets-examples/* ajp13w (I forgot an s in the second one) Ravi Sharma wrote: Hi Andre, Thanks for reply and sorry for my incomplete reply. So here is what i have done now. First i have reinstalled everything again,So i have fresh environment with apache (version 2.2.3) and tomcat (version 5.5). JK module(1.2.26 ) is already installed in apache, so i don't need to get it from anywhere. Allright ! That was a very good idea. Now we have a chance to start from a clean situation. [...] You can access following files from this url http://www.jaatmusic.com/log.html httpd.conf server.xml worker.properties jk.conf which is being included in httpd.conf by using this line Include conf.d/*.conf from this url I looked at this. That was also a good idea for now. So, STEP 1 : Stop Tomcat and Apache Go back to the original configuration files. Really. Forget your changes for now. Put back - the original Tomcat server.xml - the original Apache httpd.conf - the original workers.properties STEP 2 : At the end of the original http.conf, add these lines : JkLogFile /etc/httpd/logs/jk.log JkLogLevel debug JkMount /servlets-examples ajp13w JkMount /servlet-examples/* ajp13w (note the change of the URLs and the change of the worker name, to match the existing worker name in workers.properties) STEP 3 : Restart Tomcat and Apache, and wait 30 sec. STEP 4 : Try : a) http://www.jaatmusic.com:9080/servlets-examples b) http://www.jaatmusic.com:80/servlets-examples Both URLs should give you the same result. With (a), you access Tomcat directly, through its HTTP connector at port 9080. With (b), you access Tomcat through Apache (at port 80), the Apache mod_jk module, and the Tomcat AJP13 Connector. Let me know... And then, we can start making changes again to get the ports you really want etc.. André - 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: Multiple websites in tomcat
STEP 1 : Stop Tomcat and Apache Go back to the original configuration files. Really. Forget your changes for now. Put back - the original Tomcat server.xml - the original Apache httpd.conf - the original workers.properties [...] Stoped the tomcat and Apache Restored all these files which i changed. server.xml, httpd.conf,workers.propertires STEP 2 : At the end of the original http.conf, add these lines : JkLogFile /etc/httpd/logs/jk.log JkLogLevel debug JkMount /servlets-examples ajp13w JkMount /servlet-examples/* ajp13w (note the change of the URLs and the change of the worker name, to match the existing worker name in workers.properties) [...] Added these four lines with s at the end of servlet, no type mistake. STEP 3 : Restart Tomcat and Apache, and wait 30 sec. [...] Restarted tomcat and Apache, first started tomcat and the apache waited for 30 seconds. STEP 4 : Try : a) http://www.jaatmusic.com:9080/servlets-examples b) http://www.jaatmusic.com:80/servlets-exampleshttp://www.jaatmusic.com/servlets-examples Both URLs should give you the same result. With (a), you access Tomcat directly, through its HTTP connector at port 9080. With (b), you access Tomcat through Apache (at port 80), the Apache mod_jk module, and the Tomcat AJP13 Connector. URL (a) is working fine. but URL (b) gave the page not found error. On Mozilla Not Found The requested URL /servlets-examples was not found on this server. -- Apache/2.2.3 (CentOS) Server at www.jaatmusic.com Port 80 Let me know... And then, we can start making changes again to get the ports you really want etc.. Thanks, Ravi. On Tue, Jul 22, 2008 at 9:33 PM, André Warnier [EMAIL PROTECTED] wrote: Sorry, there is a typo in my previous message : The JkMount lines should be : JkMount /servlets-examples ajp13w JkMount /servlets-examples/* ajp13w (I forgot an s in the second one) Ravi Sharma wrote: Hi Andre, Thanks for reply and sorry for my incomplete reply. So here is what i have done now. First i have reinstalled everything again,So i have fresh environment with apache (version 2.2.3) and tomcat (version 5.5). JK module(1.2.26 ) is already installed in apache, so i don't need to get it from anywhere. Allright ! That was a very good idea. Now we have a chance to start from a clean situation. [...] You can access following files from this url http://www.jaatmusic.com/log.html httpd.conf server.xml worker.properties jk.conf which is being included in httpd.conf by using this line Include conf.d/*.conf from this url I looked at this. That was also a good idea for now. So, STEP 1 : Stop Tomcat and Apache Go back to the original configuration files. Really. Forget your changes for now. Put back - the original Tomcat server.xml - the original Apache httpd.conf - the original workers.properties STEP 2 : At the end of the original http.conf, add these lines : JkLogFile /etc/httpd/logs/jk.log JkLogLevel debug JkMount /servlets-examples ajp13w JkMount /servlet-examples/* ajp13w (note the change of the URLs and the change of the worker name, to match the existing worker name in workers.properties) STEP 3 : Restart Tomcat and Apache, and wait 30 sec. STEP 4 : Try : a) http://www.jaatmusic.com:9080/servlets-examples b) http://www.jaatmusic.com:80/servlets-examples Both URLs should give you the same result. With (a), you access Tomcat directly, through its HTTP connector at port 9080. With (b), you access Tomcat through Apache (at port 80), the Apache mod_jk module, and the Tomcat AJP13 Connector. Let me know... And then, we can start making changes again to get the ports you really want etc.. André - 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: IIS 6.0 / JK1.2.25 / Tomcat 5.5.20 - Service temporary unavailable
Jesse Klaasse schrieb: I will try to remove/increase socket_timeout to see what happens.. Unfortunately, Tomcat hung again today. It managed to work again without manually restarting, but again, the 503 message for a while.. I attached two thread dumps and an excerpt of today's isapi_redirect.log. BTW, this is APR 1.1.14 and JK 1.2.26. To simplify the setup I would suggest to disable the APR connector. In the problematic thread dump we can see, that there is no Poller actually in poll, whereas in the good case we have 5 Poller threads in poll. Regards, Jesse. Rainer Jung-3 wrote: To really study communication behaviour I would suggest installing a raw http client like curl and then do curl -v -D - http://myserver:myport/myuri Even with curl, the results were exactly as I described before. curl will not cache, follow redirects or any other of those nice user GUI features, that make understanding communication behaviour difficult. http://www.nabble.com/file/p18588484/20080722_isapi_redirect.log.gz 20080722_isapi_redirect.log.gz http://www.nabble.com/file/p18588484/20080722_threaddump1_locked.txt.gz 20080722_threaddump1_locked.txt.gz http://www.nabble.com/file/p18588484/20080722_threaddump2.txt.gz 20080722_threaddump2.txt.gz - 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: Trying to mix db connection pooling on web and desktop applications
Alejandro, I've dealt with a similar problem by utilizing the Primrose database connection pool (http://www.primrose.org.uk/) for my application in desktop mode. I've used MySQL or postgreSQL, and used Tomcat's db pool when my app runs in web mode. For desktop mode, one sets up a Primrose configuration xml file; then the startup code for the desktop mode uses similar code to obtain a datasource, something like this: Context ctx = new InitialContext(); if (_siDAOBase == null ){ String key = java:comp/env/ + jdbc + / + DatabaseConstants.MY_DB; DataSource ds = (DataSource)ctx.lookup(key); if (ds != null ){ SI_DAOBase.setDataSource(ds); _siDAOBase = new SI_DAOBase(); } } After that, I'm using my same jars as in the web mode. The trick was to create a DAO object (SI_DAOBase above) which holds the datasource, and hands out connections it obtains from the datasource. The call SI_DAOBase.setDataSource(ds); sets the datasource -- it's invoked in my AppListener in web mode, and in the startup code above in desktop mode. Hope this helps, Ken Bowen On Jul 22, 2008, at 3:51 PM, Alejandro Hernandez Angeles wrote: Hello, this is the scenario: I have an application that must have two interfaces: as a desktop application and as a web application I've put the business logic inside a JAR library (client_bpm.jar), which must connect to an Oracle 9i database I configured the web application so it can use a db pool connection, in the following manner: 1. Added to %CATALINA_HOME%/conf/server.xml the following: Server GlobalNamingResources Resource name=jdbc/RAM_DB auth=Container type=javax.sql.DataSource username=* password=* driverClassName=oracle.jdbc.OracleDriver url=jdbc:oracle:thin:* removeAbandoned=true removeAbandonedTimeout=60 logAbandoned=true maxActive=8 maxIdle=4 maxWait=2000/ /GlobalNamingResources /Server 2. Added to %CATALINA_HOME%/conf/context.xml the following: ResourceLink name=jdbc/RAM_DB global=jdbc/RAM_DB type=javax.sql.DataSource / 3. Added to %CATALINA_HOME%/webapps/myWebApp/WEB-INF/web.xml the following: resource-ref description Resource reference to a factory for java.sql.Connection instances that may be used for talking to a particular database that is configured in the Context configurartion for the web application. /description res-ref-name jdbc/RAM_DB /res-ref-name res-type javax.sql.DataSource /res-type res-auth Container /res-auth /resource-ref 4. Added my business library (client_bpm.jar) to %CATALINA_HOME%/ webapps/myWebApp/WEB-INF/lib 5. Added JDBC library (ojdbc14.jar) to %CATALINA_HOME%/lib 6. Use the following code to get a db connection: Context initCtx = new InitialContext(); Context envCtx = (Context) initCtx.lookup(java:comp/env); DataSource ds = (DataSource) envCtx.lookup(jdbc/RAM_DB); Connection conn= ds.getConnection(); And the web application runs fine, i have no problems with it Now, what i want is to use the same db connection pool facility (that Tomcat provides to web applications) on my desktop application, and use the same code (or something very similar) i used in point 6 to obtain a db connection With points 1-3 Tomcat provided my web application with a db connection pooling facility I want Tomcat to provide to my desktop application the same db connection pooling facility, ¿How do i do that? I have tried invoking my desktop application with the following: java -classpath .;%CATALINA_HOME%/webapps/myWebApp/WEB-INF/lib/ client_bpm.jar;%CATALINA_HOME%/lib/catalina.jar;%CATALINA_HOME%/bin/ tomcat-juli.jar;%CATALINA_HOME%/lib/ojdbc14.jar - Djava .naming.factory.initial=org.apache.naming.java.javaURLContextFactory -Djava.naming.factory.url.pkgs=org.apache.naming MyDesktopApp And got the following error: javax.naming.NameNotFoundException: Name java: is not bound in this Context at org.apache.naming.NamingContext.list(NamingContext.java:345) at org.apache.naming.NamingContext.list(NamingContext.java:368) at javax.naming.InitialContext.list(InitialContext.java:436) at MyDesktopApp.main(MyDesktopApp.java:12) Any suggestions will be appreciated --- Aviso Confidencial.- Este correo electrónico, así como los archivos adjuntos que contenga son confidenciales de conformidad con las leyes aplicables, y es para uso exclusivo del destinatario al que expresamente se le ha enviado. Si usted no es el destinatario legítimo del mismo,
RE: i18n deployment
Thanks for the advice, but it seems like only the application/context of the defaultHost is used. (If i change the default host to .de, i only get the German site - even for the .com domain) I tried it with an empty and a 'non empty' context path in the applications context.xml file. An other thing i've noticed is that my ServletContextListener is now called twice. Is this the intended behavior? I've done the following steps: 1. created two virtual hosts in server.xml 2. Set the defaultHost to one of the new virtual hosts. 3. created the appBase directories for the virtual servers as well as the appBase/ROOT dirctory. 4. copied the appropriate .html files in each ROOT directory. 5. Verified file/directory permissions. 6. Copied the war file into the appBase directories and restarted tomcat. I am certain i missed something, please let me know if you have any ideas what. Thanks in advance for your help! From: [EMAIL PROTECTED] To: users@tomcat.apache.org Date: Tue, 22 Jul 2008 08:44:52 -0500 Subject: RE: i18n deployment From: ich eben [mailto:[EMAIL PROTECTED] Subject: i18n deployment Is there a way to display the englisch html file for the .com address and the german html file for the .de address? Thanks in advance for any advice! Configure two elements in server.xml, one for each domain. Each should point to a different appBase, one for Deutsch, one for English. Create a ROOT directory under each appBase, and put the appropriate .html file in each ROOT. http://tomcat.apache.org/tomcat-6.0-doc/virtual-hosting-howto.html - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ Testen Sie Live.com - das Zentrum Ihrer Online-Welt, das Sie mit aktuellen Nachrichten, Sport- und Wetterinfos und vielem mehr versorgt. http://www.live.com/getstarted - 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: Multiple websites in tomcat
For some reason, this thing does not seem to want to let you go through port 8009 (or 8010), or it refuses to redirect these URLs. Could you refresh the copy of jk.log accessible through the web page, and your new httpd.conf ? By the way, I can see your Tomcat examples pages also when I connect to port 9080, and I also see the Not Found when I try with port 80. Make one more change to workers.properties : #worker.list=wlb,jkstatus worker.list=ajp13w Restart Apache and try again. If that does not work, I have one more thing to try : I assume you are accessing this server from a Windows workstation. If yes, then do the following : - in a command window, do ping www.jaatmusic.com and note the IP address. - edit the file c:\windows\system32\drivers\etc\hosts and add the following line : xxx.xxx.xxx.xxx jaatmusic (where xxx.xxx.xxx.xxx is the IP address you noted earlier) - save the hosts file - close and re-open your browser (important, to force it to re-read the hosts file) - try the following URL : http://jaatmusic/servlets-examples Do you still get the Not Found ? (By the above, I am trying to see if we are really accessing the server we think we are accessing). Ravi Sharma wrote: STEP 1 : [...] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Uninstalling Applications
Hi all, I'm having a few problems - so I'm trying to get rid of error messages during start up and shut down to try and track down the issue. First, I have several error messages in the catalina log that reference applications that I have removed from my web site. How do I prevent them being loaded up during start of tomcat5.5? Also, I would love to be able to run the admin, but I have a headless server so I need to access /manager from a remote machine. I haven't been able to find the documentation for that. Any ideas? Thanks, Matt Burkhardt, MSTM President Impari Systems, Inc. 401 Rosemont Avenue Frederick, MD 21701 [EMAIL PROTECTED] www.imparisystems.com (301) 644-3911
RE: i18n deployment
From: ich eben [mailto:[EMAIL PROTECTED] Subject: RE: i18n deployment Thanks for the advice, but it seems like only the application/context of the defaultHost is used. Post your server.xml and any Context elements you have, along with where they're located. Look in conf/Catalina/[host] for potential additional Context elements. Also try stopping Tomcat, cleaning out its work directory, and restarting. (If i change An other thing i've noticed is that my ServletContextListener is now called twice. Is this the intended behavior? Yes, because the webapp is deployed twice, once for each Host. I've done the following steps: Those steps sound good, but let's look at the actual .xml files to insure there's not a typo or something else missed. - 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: Uninstalling Applications
From: Matt Burkhardt [mailto:[EMAIL PROTECTED] Subject: Uninstalling Applications You seem to be expecting us to guess the Tomcat version you're using. First, I have several error messages in the catalina log that reference applications that I have removed from my web site. What are the messages? Have you cleaned out Tomcat's work directory? Do you have now-useless Context elements in conf/Catalina/[host]/[appName].xml files? Also, I would love to be able to run the admin, but I have a headless server so I need to access /manager from a remote machine. I haven't been able to find the documentation for that. Any ideas? The links are on Tomcat's default home page; if you've replaced that, it's normally http://[siteName]/manager/html for the manager app, and can be reached from any device that can reach the server. - 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: Trying to mix db connection pooling on web and desktop applications
As I see it you are mixing two different things, your web application will always run inside Tomcat server but your desktop application can be anywhere(not just on TC server). The simplest way to do this might be to write your own database connection helper class which would go to the context (step 6) and use Tomcat datasource to get connections when you are running under TC. And in desktop mode you have your own connection pooler (or just create a simple db connection ) to get a db connection. so your getConnection method on helper would do the following logic : Is in desktop mode yes get my pooler/connection else //under TC get connection with logic as in step 6 -Sameer --- On Wed, 7/23/08, Alejandro Hernandez Angeles [EMAIL PROTECTED] wrote: From: Alejandro Hernandez Angeles [EMAIL PROTECTED] Subject: Trying to mix db connection pooling on web and desktop applications To: users@tomcat.apache.org Date: Wednesday, July 23, 2008, 1:21 AM Hello, this is the scenario: I have an application that must have two interfaces: as a desktop application and as a web application I've put the business logic inside a JAR library (client_bpm.jar), which must connect to an Oracle 9i database I configured the web application so it can use a db pool connection, in the following manner: 1. Added to %CATALINA_HOME%/conf/server.xml the following: Server GlobalNamingResources Resource name=jdbc/RAM_DB auth=Container type=javax.sql.DataSource username=* password=* driverClassName=oracle.jdbc.OracleDriver url=jdbc:oracle:thin:* removeAbandoned=true removeAbandonedTimeout=60 logAbandoned=true maxActive=8 maxIdle=4 maxWait=2000/ /GlobalNamingResources /Server 2. Added to %CATALINA_HOME%/conf/context.xml the following: ResourceLink name=jdbc/RAM_DB global=jdbc/RAM_DB type=javax.sql.DataSource / 3. Added to %CATALINA_HOME%/webapps/myWebApp/WEB-INF/web.xml the following: resource-ref description Resource reference to a factory for java.sql.Connection instances that may be used for talking to a particular database that is configured in the Context configurartion for the web application. /description res-ref-name jdbc/RAM_DB /res-ref-name res-type javax.sql.DataSource /res-type res-auth Container /res-auth /resource-ref 4. Added my business library (client_bpm.jar) to %CATALINA_HOME%/webapps/myWebApp/WEB-INF/lib 5. Added JDBC library (ojdbc14.jar) to %CATALINA_HOME%/lib 6. Use the following code to get a db connection: Context initCtx = new InitialContext(); Context envCtx = (Context) initCtx.lookup(java:comp/env); DataSource ds = (DataSource) envCtx.lookup(jdbc/RAM_DB); Connection conn= ds.getConnection(); And the web application runs fine, i have no problems with it Now, what i want is to use the same db connection pool facility (that Tomcat provides to web applications) on my desktop application, and use the same code (or something very similar) i used in point 6 to obtain a db connection With points 1-3 Tomcat provided my web application with a db connection pooling facility I want Tomcat to provide to my desktop application the same db connection pooling facility, ¿How do i do that? I have tried invoking my desktop application with the following: java -classpath .;%CATALINA_HOME%/webapps/myWebApp/WEB-INF/lib/client_bpm.jar;%CATALINA_HOME%/lib/catalina.jar;%CATALINA_HOME%/bin/tomcat-juli.jar;%CATALINA_HOME%/lib/ojdbc14.jar -Djava.naming.factory.initial=org.apache.naming.java.javaURLContextFactory -Djava.naming.factory.url.pkgs=org.apache.naming MyDesktopApp And got the following error: javax.naming.NameNotFoundException: Name java: is not bound in this Context at org.apache.naming.NamingContext.list(NamingContext.java:345) at org.apache.naming.NamingContext.list(NamingContext.java:368) at javax.naming.InitialContext.list(InitialContext.java:436) at MyDesktopApp.main(MyDesktopApp.java:12) Any suggestions will be appreciated --- Aviso Confidencial.- Este correo electrónico, así como los archivos adjuntos que contenga son confidenciales de conformidad con las leyes aplicables, y es para uso exclusivo del destinatario al que expresamente se le ha enviado. Si usted no es el destinatario legítimo del mismo, deberá reportarlo al remitente del correo y borrarlo inmediatamente. Cualquier revisión, retransmisión, divulgación, difusión o cualquier otro uso de este correo, por personas o entidades distintas a las del
Configure authentication across an entire host...
Hello - Is there any way to setup digest or basic authentication to cover an entire host.? Basically I would like to create a blanket authorization setup for a host without having to modify individual applications. So anything deployed in that host would require some simple level of authentication. Thanks! -Nate - 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: Configure authentication across an entire host...
From: Nathan Wilhelmi [mailto:[EMAIL PROTECTED] Subject: Configure authentication across an entire host... Hello - Is there any way to setup digest or basic authentication to cover an entire host.? Haven't tried it, but you may be able to put appropriate security-constraint, login-config, and security-role elements in conf/web.xml, since that's shared by all webapps. Use a url-pattern of /* to grab everybody. - 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: Setting context in tomcat6
I'm using tomcat6. If what is written in tomcat docs is not inconsistent then why I am not able to set an explicit context for my web application by the following entries in myapp.xml (placed at /conf/Catalina/localhost) Context path= docBase=myapp debug=0 privileged=true / You have written that docbase attribute is redundant if application is situated in Host appBase directory and path attribute must not be used, but it is the path attribute, where we specify the context we want to use for our web application. Also, it is the docbase attribute that specifies, for which web application (present under appBase folder) will the context apply. I have been trying to understand how to explicitly define contexts in tomcat, read tomcat docs and searched a lot on net but none seems to provide me complete understanding of it. I would like to mention here certain things in case of tomcat6 : 1. Trying to set explicit context using myapp.xml placed under (/conf/Catalina/localhost) doesn't set the context. 2. We can also set context using server.xml but tomcat docs strongly recommend not to se it. It says that: This is because it makes modifying the Context configuration more invasive since the main conf/server.xml file cannot be reloaded without restarting Tomcat. But what are the drawbacks of this approach? 3. Placing context.xml in META-INF folder also doesn't set the context. Is there any other way also to set explicit contexts? I do not want to deploy my application twice or rename any folder. It will be great if anyone could answer the above queries. -Original Message- From: Charles Caldarale [mailto:[EMAIL PROTECTED] Sent: Friday, July 18, 2008 6:55 PM To: Tomcat Users List Subject: Re: Setting context in tomcat6 On Jul 18, 2008, at 2:12, vibhuti [EMAIL PROTECTED] wrote: This is mentioned in tomcat documentation and I just followed what was written there. Here is the link: http://tomcat.apache.org/tomcat-6.0-doc/config/context.html If this is erroneous then renaming or using filter are the only ways? It's neither erroneous nor inconsistent with what you've already been told. Besides the section of the doc that you quoted, read the descriptions of the path and docBase attributes. Note that you must not use a path attribute here, and the docBase attribute is redundant (ignored, at best) when the app is located in the Host appBase directory. - Chuck - 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]