Re: AW: certificate question for 2 domains pointing to same website
Wait a second...Tomcat will determine which cert to send down based upon the IP address that the browser went to? I guess that makes sense...so does the web server never get to see what domain the browser was looking up to come to the site, or is that info available? I'm just trying to figure out if there's a way to run the website for a limited time with 2 domains and 2 certs--I mean, the 2 domains, each with their own cert, but with one single public IP address. We have a bigIP load balancer in front of our Tomcat servers...so do our Tomcat servers still see the public IP address that was used to reach them? I ask because those boxes only have private IPs, and the load balancer has the only public IP. If there's no way to do it, then I guess we just arbitrarily switch at some point and don't worry about the people using the old domain seeing invalid certificate messages... - Original message - From: "Steffen Heil" <[EMAIL PROTECTED]> To: "'Tomcat Users List'" Date: Sat, 5 Feb 2005 01:26:00 +0100 Subject: AW: certificate question for 2 domains pointing to same website Hi > If we do this and get that new certificate into the keystore > used by our Tomcat 4, will everything be fine, or will Tomcat > present 2 certificates to users accessing the site? I mean, > will it correctly present the certificate for the old domain > to the user when they go to the old domain, and the new > certificate to those entering via the new domain? No. This is impossible. The information which domain is used is already encrypted. So if you need 2 certs, you need 2 ips. If you configure 2 ips with 2 connectors and 2 certs, everything is fine. Regards, Steffen - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: apache + tomcat with 2 domains but same session?
Just want you guys to know that I have found a solution for my problem. I have to change the source code in tomcat to get this to work. Here is what I've done: In source org.apache.coyote.tomcat5.CoyoteRequest line 2313 (btw, I am using tomcat5.0.28 source) I added cookie.setDomain(".abc.com"); // beware of the leading dot compile the source and replace the new catalina.jar into my tomcat server/lib directory. I am now able to switch between both http://aaa.abc.com/myapp/index.jsp http://bbb.abc.com/myapp/index.jsp and the session persists !!! I wonder why the web.xml file in conf/ didn't provide such an option for us to set more cookie options. As for now, I can only set session-timeout in web.xml. I suggest adding like cookie-domain 30 .abc.com I know resin have such an option, see here http://browserinsight2.lunaimaging.com:8090/ref/app-config.xtp#session-config I am posting this to both user list and developer list, I hope someone in the tomcat project will read it and implement this in the future. Thanks everyone that have helped me though, means a lot. Simon - Original Message - From: "Tim Funk" <[EMAIL PROTECTED]> To: "Tomcat Users List" Sent: Wednesday, January 12, 2005 8:43 PM Subject: Re: apache + tomcat with 2 domains but same session? > [I have a major sinus cold - so I might not be writing clearly ...] > > I don't think URL rewriting from apache mod_rewrite will solve your problem. > Tomcat maintains state with the session via a session cookie. The cookie is > fixed to the currnet domain name (not configurable) and the cookie is fixed > to the current webapp path(also not configurable). > > But the session cookie is the key to picking up the session. Since you are > working in a differnet domain - the session cookie is not sent by the client. > > But for clients that do not allow cookies, you can use url rewriting via the > servlet API. (See HttpResponse.encodeUrl()). This method detects whether the > client has sent the request and maintained state via a session cookie and if > a cookie was not used, the url is rewritten and encoded with a path variable > called jsessionid. (eg: foo.jsp;jsessionid=ABDDAAN9900) > > To get a session from aaa.com to work in bbb.com - you need to have a page on > aaa.com link to bbb.com with the URL containing the jessessionid path parameter. > > -Tim > > Simon Lau wrote: > > Tim, thanks for your help. but... > > I have been following your suggestion and use mod_rewrite to rewrite > > bbb.abc.com to aaa.abc.com. > > Here is 3 scenarios: > > 1) > >RewriteCond %{HTTP_HOST} ^bbb\.(.*)$ > >RewriteRule ^(.+) http://aaa.%1$1 > > Client access http://bbb.abc.com/myapp/index.jsp > > Client brower address bar display http://aaa.abc.com/myapp/index.jsp (but i > > want http://bbb.abc.com/myapp/index.jsp instead) > > Session persist, no problem > > > > 2) > >RewriteCond %{HTTP_HOST} ^bbb\.(.*)$ > >RewriteRule ^(.+) http://aaa.%1$1 [PT] > > Client access http://bbb.abc.com/myapp/index.jsp > > Client brower address bar display http://bbb.abc.com/myapp/index.jsp > > Client brower display "400 Bad Request error" > > mod_rewrite.log get "forcing 'http://aaa.abc.com/myapp/index.jsp' to get > > passed through to next API URI-to-filename handler > > > > 3) > >RewriteCond %{HTTP_HOST} ^bbb\.(.*)$ > >RewriteRule ^(.+) http://aaa.%1$1 [P] > > Client access http://bbb.abc.com/myapp/index.jsp > > Client brower address bar display http://bbb.abc.com/myapp/index.jsp > > Client brower display "Forbidden, You don't have permission to access > > /myapp/index.jsp" > > mod_rewrite.log get "forcing proxy-throughput with > > http://aaa.abc.com/myapp/index.jsp"; > > > > so all of these cases didn't give me the result i wanted. > > the result i wanted is: > > -Client access http://bbb.abc.com/myapp/index.jsp > > -Client brower address bar display http://bbb.abc.com/myapp/index.jsp > > -Session persist with http://aaa.abc.com/myapp/index.jsp > > > > Am i on the right track? or am i doing it totally wrong? or is there way to > > get around this? > > > > please help. thanks again. > > > > Simon > > > > > > - Original Message - > > From: "Tim Funk" <[EMAIL PROTECTED]> > > To: "Tomcat Users List" > > Sent: Tuesday, January 11, 2005 7:44 PM > > Subject: Re: apache + tomcat with 2 domains but same session? > > > > > > > >>You can get away with this by using URL rewriting. When you are using > >>aaa.abc.com and wish to redirect or link to bbb.abc.com - you would need > > > > to > > > >>rewrite the URL to include the jsessionid path parameter. But you *cannot* > > > > do > > > >>this via response.encodeURL(..) since that method will detect your URL is > > > > in > > > >>another webapp. So you will need to write your own implementation of > >>encodeURL to achieve this. > >> > >>-Tim > >> > >>Simon Lau wrote: > >> > >>>Hi, > >>> > >>>I want to se
AW: certificate question for 2 domains pointing to same website
Hi > If we do this and get that new certificate into the keystore > used by our Tomcat 4, will everything be fine, or will Tomcat > present 2 certificates to users accessing the site? I mean, > will it correctly present the certificate for the old domain > to the user when they go to the old domain, and the new > certificate to those entering via the new domain? No. This is impossible. The information which domain is used is already encrypted. So if you need 2 certs, you need 2 ips. If you configure 2 ips with 2 connectors and 2 certs, everything is fine. Regards, Steffen smime.p7s Description: S/MIME cryptographic signature
Re: Updating running WARs?
Someone else will be able to attest to this better than I, but there is a known issue with the classloader [I think] that doesn't release memory on a undeploy..eventually you'll run out of memory after a certain number of deploy/undeploys. You could try using the jvm's -Xmx modifier in your startup/catalina shell, which may buy you more time[guru input here, please]... But my app starts up lightweight so I can schedule downtime a couple of hours or so in advance, then drop tomcat for a few minutes while I deploy manually. Maybe you could use the Manager: Stop the Service, undeploy, stop TC, start TC, deploy the service using the Manager, start service if necessary. Just my .02 For more info search the archives...it's come up more than a few times since I've been on this list. --Jonathan Wendy Smoak wrote: From: "David Wood" <[EMAIL PROTECTED]> are we forced to remove the context via the manager and then re-add a new context back in? (Or restart Tomcat?) This is how I've always done it-- remove and install. (For added fun... I removed and installed a webapp repeatedly yesterday, and after about the sixth time, Tomcat died with an OutOfMemory error. Has anyone else had this happen? I chalked it up to the JVM on HP-UX being weird again, but decided to avoid doing that on the production server in the future.)
Re: Updating running WARs?
From: "David Wood" <[EMAIL PROTECTED]> > are we forced to remove the context via the manager and then re-add a new > context back in? (Or restart Tomcat?) This is how I've always done it-- remove and install. (For added fun... I removed and installed a webapp repeatedly yesterday, and after about the sixth time, Tomcat died with an OutOfMemory error. Has anyone else had this happen? I chalked it up to the JVM on HP-UX being weird again, but decided to avoid doing that on the production server in the future.) -- Wendy Smoak - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Updating running WARs?
Besides 'Hot Patching' (placing an updated class or jsp on the application runtime) I have not found a way to do what you are trying to find. >>> [EMAIL PROTECTED] 02-04-2005 14:15 >>> What's the "right way" to update a running WAR in Tomcat 5.5? Is there anything resembling the manager's "reload" feature for WARs? Or are we forced to remove the context via the manager and then re-add a new context back in? (Or restart Tomcat?) I've been searching through documentation for the manager, and then looking a bit at the source code, and it seems like it's impossible to reload a context unless it's exploded. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat/JMX Agent/Log4J Question
All, Let us say that I have an agent running on localhost:9092. I have my Java Serverside App running on Tomcat (4.x) - localhost:8080. I am using Log4J for logging in my App. I would like to know how my MBean implementation class associated with the Agent, can access the Level property (logger.getLevel()) of my app's Logger. Also, anybody know of a way I can expose stuff like - 1. The last time Tomcat was bounced 2. Version # of the App's source that is currently running (manifest?) Please suggest. Thanks, Kalyan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: pluggable protocols in web apps
No useful info at the moment but this looks a lot like bug 10982 (http://issues.apache.org/bugzilla/show_bug.cgi?id=10982) that I am just starting to look at. Keep an eye on this bug report. If I make any progress I will update it. Mark Martin Goldhahn wrote: We use pluggable protocols to access resources. These don't seem to work with the class loading scheme Tomcat is using. Having a class no.mycomp.protocols.myprot.Handler I do the following: 1. prepend "no.mycomp.protocols|" to the system property "java.protocol.handler.pkgs" 2. create a URL with URL u = new URL("myprot://whatever"); I get a MalformedUrlException: unknown protocol myprot When I debug the code I see that the call Class.forName() in URL.getURLStreamHandler() fails (The one in the try block). After that the System class loader cannot load my protocol handler either. Is ther a way to get this working. perferably without moving archives to Tomcat's common\ or Java's endorsed path? Martin - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Realm + PDF + Internet Explorer
Hi! You should try response.setHeader("Cache-Control","public"); Regards, Viktor On Fri, 4 Feb 2005 07:56:20 -0700, Milazzo, Michael A HQISEC <[EMAIL PROTECTED]> wrote: > I tried both application/pdf and application/octet-stream. > > I ensured the checkbox mentioned in this thread was unchecked within IE. > > I believe you can set the content as often as you wish, but the content type > set for the stream will be the value set during the last invokation of > setContentType(). At least that is my understanding. > > Thanks, > > Mike > > -Original Message- > From: Parsons Technical Services [mailto:[EMAIL PROTECTED] > Sent: Friday, February 04, 2005 7:50 AM > To: Tomcat Users List > Subject: Re: Realm + PDF + Internet Explorer > > Yes. > > I have not attempted a fix as of yet. Was planning to try the link provided > by Wendy as well as a twist on the uri. Mine now calls the servlet name. I > was going to amend .pdf to it to see if that would help. > > I wonder, is it possible to set the response.setContentType() twice? Set it > to html, send a blank page, change to application/pdf and send the document. > > Doug > > - Original Message - > From: "Milazzo, Michael A HQISEC" <[EMAIL PROTECTED]> > To: "Tomcat Users List" > Sent: Friday, February 04, 2005 9:28 AM > Subject: RE: Realm + PDF + Internet Explorer > > >I have a similar issue. I am running Tomcat 5.0.x and Apache 1.3.x using > > the mod_jk connector over SSL (Apache handling all the SSL). I have a > > servlet that is supposed to open a PDF on the server and send it to a > > requesting client (using the HttpServletRequest object's output stream). > > IE > > 6 tells me that it can't download the internet site and the requested > > resource is either not found or not available. I know the files are there > > and no exceptions are being thrown on the server. > > > > Anyone else encountered this issue? > > > > Thanks, > > > > Mike > > > > -Original Message- > > From: Kalyan Inuganti [mailto:[EMAIL PROTECTED] > > Sent: Thursday, February 03, 2005 10:36 AM > > To: Tomcat Users List > > Subject: Re: Realm + PDF + Internet Explorer > > > > > > Gracie, > > IE has a setting that does not let you open PDFs being served over > > SSL. You can configure IE to not do this: > > > > Tools -> Internet Options -> Advanced -> Security -> > > > > Uncheck the "Do Not Save Encrypted Pages to Disk" checkbox if its checked. > > > > This should not have anything to do with Tomcat though. Hope that helps. > > > > Thanks, > > Kalyan > > > > On Thu, 03 Feb 2005 10:24:34 -0700, Wendy Smoak <[EMAIL PROTECTED]> > > wrote: > >> From: "Graice Marques" <[EMAIL PROTECTED]> > >> > >> > I'm having a problem with Internet Explorer. I have a web application > >> > running in Tomcat that generate some PDF reports. When I add a tomcat > >> > security realm to my webapp and run it in IE I can't open my PDF > >> > reports. > >> > >> I don't know if this is the same problem, but at least one version of IE > >> wouldn't display non-HTML content after a form POST over SSL. Here's a > >> workaround: > >> > >> http://wiki.wendysmoak.com/cgi-bin/wiki.pl?NonsecureContent > >> > >> -- > >> Wendy Smoak > >> > >> - > >> To unsubscribe, e-mail: [EMAIL PROTECTED] > >> For additional commands, e-mail: [EMAIL PROTECTED] > >> > >> > > > > - > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat 5.x - Is AIX 5.2 a supported O.S.? Unable to compile jsvc-src
Subject:Tomcat 5.x - Is AIX 5.2 a supported O.S.? Unable to compile jsvc-src I can't find documentation regarding supported Operating Systems or levels for Tomcat 5.x or 5.5.7. The error returned from .configure to indicates AIX 5.2.0 is not a supported operating system. When looking at .configure, I don't see any support for AIX. Is this correct or am I missing something? ( note: I am a Tomcat Newb ). Thank you, Ken Cottrell Unigroup Inc. -- Tech Services/Data Administration (636)349-2561 This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. This footnote also confirms that this email message has been swept for the presence of computer viruses. UniGroup Inc.
Tomcat 5.x - Is AIX 5.2 a supported O.S.? Unable to compile jsvc-src
I can't find documentation regarding supported Operating Systems or levels for Tomcat 5.x or 5.5.7. The error returned from .configure to indicates AIX 5.2.0 is not a supported operating system. When looking at .configure, I don't see any support for AIX. Is this correct or am I missing something? ( note: I am a Tomcat Newb ). Thank you, Ken Cottrell Unigroup Inc. -- Tech Services/Data Administration (636)349-2561 This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. This footnote also confirms that this email message has been swept for the presence of computer viruses. UniGroup Inc.
Updating running WARs?
What's the "right way" to update a running WAR in Tomcat 5.5? Is there anything resembling the manager's "reload" feature for WARs? Or are we forced to remove the context via the manager and then re-add a new context back in? (Or restart Tomcat?) I've been searching through documentation for the manager, and then looking a bit at the source code, and it seems like it's impossible to reload a context unless it's exploded. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
mod_jk, apache, ssl
Quick question regarding mod_jk and ssl. Situation: apache 1.3 running mod_ssl mod_jk 1.2.8 multiple tomcat workers Question: If apache is fronting a set of load balanced tomcats, and requests are https, is all ssl decoding done in apache and then requests sent to tomcat via AJP? Do the tomcat works need to have certificate info, or just apache? What does effect would " JKExtractSSL Off " have? Thanks much, -e - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: virtualhost and deployment applications
But when I deploy a local .war in the administration page www.domain1.com/manager/html this war gets replicated in other virtualhosts. Mario Winterer escribió: Of course! That's Tomcat's default behaviour - and in fact, it is difficult to make it behave different! Have a look at server.xml of your tomcat's default installation (you need a host-element for each virtual host). More information can be found at http://jakarta.apache.org/tomcat/tomcat-5.5-doc/config/index.html. Best regards, Tex Carlos Gabriel Arce schrieb: Good Day I have a question. Is possible deploy an application per virtualhost, where the deployed applications per virtualhost could'nt see them each other? Thanks in advance. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
error at Configure Tomcat and Monitor Tomcat
I installed Tomcat 5.5 on Windows 2000 using automatic installation. Everything works fine except 'Configure Tomcat' and 'Monitor Tomcat' programs. When I try to use these programs, an Application system error box always pops up with message like "An instance of 'Tomcat5' application is already running." How can solve this problem? Thank you, Suzanne
Re: Application slows down
What is the specs of the server? What memory has been allocated to Tomcat? Are there other apps running on the same server that grindas up memory? regards, Hari Mailvaganam On Fri, 4 Feb 2005 12:11:59 -0600, Kiran Patel <[EMAIL PROTECTED]> wrote: > > I have a software application, which uses Tomcat 4.1. It is database > oriented application and it uses Access database. There are about fifteen > users using the same application and entering data to the database. Tomcat > is installed in one computer and all the users are connected to that > computer through network. The problem is that the application becomes > really slow after sometime unless at certain interval I restart the Tomcat. > Is there any better solution then restarting the server? Any help will be > appreciated. > > Thank you > > Kiran Patel > Software Engineer > Solutions Inc. > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
certificate question for 2 domains pointing to same website
Right now, we have one domain that goes to our web application, and we want to another new domain to point to the same web app (it already does). Naturally, if you access the site via the new domain, it tells the browser that the certificate issued by the site doesn't match the name of the site, so we're looking into getting an additional certificate. If we do this and get that new certificate into the keystore used by our Tomcat 4, will everything be fine, or will Tomcat present 2 certificates to users accessing the site? I mean, will it correctly present the certificate for the old domain to the user when they go to the old domain, and the new certificate to those entering via the new domain? Thanks, Stephen - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
jsp include no flush
This is a re-post ... I sincerely apologize, but I'm hoping the new title is more appealing and someone will be kind enough to spare a minute. Any jasper gurus on this list? Though I'll take answers from non-gurus too at this point ... I'm flailing here ;-) -- I'm using Tomcat 5.0.28 and WindowsXP. The PageContext.include(String, boolean) method seems to just block in the Jasper impl (goes off into never never land) irrespective of whether I pass true or false as the second argument. Can someone confirm this? If someone has encountered this before, please let me know. The PageContext.include(String) method does just fine. Thanks! _ FREE pop-up blocking with the new MSN Toolbar get it now! http://toolbar.msn.click-url.com/go/onm00200415ave/direct/01/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Application slows down
I have a software application, which uses Tomcat 4.1. It is database oriented application and it uses Access database. There are about fifteen users using the same application and entering data to the database. Tomcat is installed in one computer and all the users are connected to that computer through network. The problem is that the application becomes really slow after sometime unless at certain interval I restart the Tomcat. Is there any better solution then restarting the server? Any help will be appreciated. Thank you Kiran Patel Software Engineer Solutions Inc.
authentication sporadically fails?
I have Tomcat 5.5.4 configured with basic authentication through a JNDI named JDBC connection pool. The Resource and Realm are specified in META-INF/context.xml. The resource-ref and security-constraint are specified in WEB-INF/web.xml (releveant parts included at the end of this message). There are 3 users assigned roles in the db (MySQL 4.1.8). Sometimes I am seeing one or more of these users fail to authenticate, even though moments before they were able to authenticate. Usually, 1 of the users can still authenticate but the other 2 cannot (though I have seen all 3 fail). Restarting Tomcat usually fixes the problem (though sometimes several restarts are required). I am using IE, Firefox, Java code making HttpUrlConnections, and Apache Axis code making SOAP requests so I'm pretty sure the issue is with Tomcat and not with the component making the request. To the best of my knowledge, when authentication fails, it is failing on the same Authorization header that was succeeding moments before (from watching the access logs and packet sniffing). The problem is inconsistent but frustrating and important for us to figure out. Has anyone seen this kind of behavior? Does anyone have any suggestions for how I can isolate the problem further? thx --- context.xml --- --- web.xml --- my database jdbc/mydb javax.sql.DataSource Container Authentication /* myRole BASIC My Realm myRole - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Preferred Platform for Tomcat5
Solaris 9 JVM 1.4.2_06 Tomcat 5.0.28 Any *NIX variant should be within an expected tolerance bandwidth - as long as a stable Tomcat and JVM version is used. On Thu, 3 Feb 2005 09:11:26 -0600, Todd Reed <[EMAIL PROTECTED]> wrote: > Excluding Windows, is there a particular platform that works better with > Tomcat5? What are members of this list using for a production > installation of Tomcat? > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: tomcat hangs
Have you analyze the memory usage on the box? On Fri, 04 Feb 2005 14:35:37 +0530, Dhana Sekar Sugunan <[EMAIL PROTECTED]> wrote: > Hi, > > I am not sure i am posting this in the correct area. Please bear and advice. > > My application needs to run a thread contiuously for every 1 hr. I have made > the coding in servlet as > package invservlet; > import javax.servlet.*; > import javax.servlet.http.*; > import java.io.IOException; > import java.util.Timer; > import java.util.TimerTask; > import java.util.Date; > import java.util.Calendar; > import sample.Reminder; > public class SampleReminder extends HttpServlet{ > Timer timer; > Date date=new Date(); > Calendar calc=Calendar.getInstance(); > public void init(){ > timer = new Timer(); > timer.schedule(new Reminder(),calc.getTime(),1*1000*60*60); > } > public void doService(HttpServletRequest request,HttpServletResponse > response) throws ServletException,IOException{ > } > public void destroy(){ > timer.cancel(); > super.destroy(); > } > } > > and the execution file is > > package sample; > import java.util.TimerTask; > import java.util.Date; > import box.util.SendMail; > > public class Reminder extends TimerTask{ > SendMail sendMail=new SendMail(); > public void run() { > taskBody(); > } > public void taskBody() > { > > try{ > sendMail.SendMail("192.168.0.33","[EMAIL PROTECTED]","[EMAIL > PROTECTED]","","","Test > log mail","This is a test mail for every 1 hour"+new Date()); > }catch(Exception e){System.out.println("ERROR IN Remainder");} > > } > } > > BUT EVERY 2 - 3 DAYS I AM GETTING MY TOMCAT HANGING. I THINK THE PROBLEM IS > IN THE THREAD. PLEASE ADVICE. THANKS. > > Sorry, forget to add some more points which may help for analysation. > My application will fetch more than 1000 records for single transaction. > And also some times in will be transferred (sendRedirect) to another page > with nearly 20 fields of data. > > Will this also create problem? > > _ > MSN Spaces! Your space, your time. http://www.msn.co.in/spaces Your personal > haven online. > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
HTTP Statur 500 -
Hi everyone, I have an issue that i can not resolve and i would be very greatful if anyone has and suggestions of how to even approach fixing this issue. I am running jdk 1.3.1_15 and jre 1.31_15 as well I am trying to run a web client application that some of my colleagues have made. It is linked with Corel Draw to create Corel Draw files. I am running the server off of Tomcat 4.1.24 When the program tries to invoke Corel I get the following error messages: HTTP Status 500 - --- - type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception org.apache.jasper.JasperException: com/ibm/bridge2java/Dispatch at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:254) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFil terChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain .java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java: 256) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNe xt(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java: 191) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNe xt(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) ... ... .. i'm just wondering where should i start to try to fix the program?...Is it something to do with registering Corel Draw? the JRE/JDK? the server? or a problem with the program itself?? ANY suggestions would be GREATLY appreciated thanks, Andrew Paliga Andrew Paliga Junior Project Manager IBM Toronto Media Design Studio Phone: (905) 413-2024
Re: java.awt.headless=true in tomcat startup
Hi Rodrigo! By defining the environment variable CATALINA_OPTS="-server -Djava.awt.headless=true" you can tell any command line parameter you want to the JVM used by tomcat. I suggest it is a good idea to use the "-server" parameter, too. This selects the server VM. Jens Joachim Syscon GmbH E-Mail: [EMAIL PROTECTED] - Original Message - From: "Rodrigo Avila" <[EMAIL PROTECTED]> To: "Tomcat Users List" Sent: Friday, February 04, 2005 5:57 PM Subject: java.awt.headless=true in tomcat startup > Hi! > I try to use some awt\swing classes to convert rtf strings to html in > an jsp page. But I receive the following Exception: > > "Can't connect to X11 window server using ':0.0' as the value of the > DISPLAY variable." > > But, to resolve this problem, I find the following tip: > > "assuming you're using a 1.4 JVM, add the following line to your startup > command: > $JAVA_COMMAND -Djava.awt.headless=true ..." > > But, how I put this option in the Tomcat startup? > > -- > Rodrigo de Avila > [EMAIL PROTECTED] > > http://www.avila.eti.br > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: virtualhost and deployment applications
The VirtualHost binding can be conducted via Apache HTTP Server and use mod_proxy to the appropriate URI running in the Tomcat. On Fri, 04 Feb 2005 07:41:24 -0500, Carlos Gabriel Arce <[EMAIL PROTECTED]> wrote: > Good Day > > I have a question. Is possible deploy an application per virtualhost, > where the deployed applications could'nt see them each other? > > Thanks in advance. > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: java.awt.headless=true in tomcat startup
no no no - it should go in setenv.sh - that is what it is for - that way you do not have to tweak the existing files. On Fri, 04 Feb 2005 12:04:36 -0500, Charles N. Harvey III <[EMAIL PROTECTED]> wrote: > You set this somewhere in either the /bin/catalina.sh > or /bin/startup.sh. > > If you don't want to do any of that, have an InitServlet that does > > System.setProperty( "java.awt.headless", true ); > > That will do the same thing. > > Charlie > > Rodrigo Avila said the following on 2/4/2005 11:57 AM: > > >Hi! > >I try to use some awt\swing classes to convert rtf strings to html in > >an jsp page. But I receive the following Exception: > > > >"Can't connect to X11 window server using ':0.0' as the value of the > >DISPLAY variable." > > > >But, to resolve this problem, I find the following tip: > > > >"assuming you're using a 1.4 JVM, add the following line to your startup > >command: > >$JAVA_COMMAND -Djava.awt.headless=true ..." > > > >But, how I put this option in the Tomcat startup? > > > > > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: java.awt.headless=true in tomcat startup
You set this somewhere in either the /bin/catalina.sh or /bin/startup.sh. If you don't want to do any of that, have an InitServlet that does System.setProperty( "java.awt.headless", true ); That will do the same thing. Charlie Rodrigo Avila said the following on 2/4/2005 11:57 AM: Hi! I try to use some awt\swing classes to convert rtf strings to html in an jsp page. But I receive the following Exception: "Can't connect to X11 window server using ':0.0' as the value of the DISPLAY variable." But, to resolve this problem, I find the following tip: "assuming you're using a 1.4 JVM, add the following line to your startup command: $JAVA_COMMAND -Djava.awt.headless=true ..." But, how I put this option in the Tomcat startup? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: java.awt.headless=true in tomcat startup
put it in the /bin/catalina.sh script Filip - Original Message - From: "Rodrigo Avila" <[EMAIL PROTECTED]> To: "Tomcat Users List" Sent: Friday, February 04, 2005 10:57 AM Subject: java.awt.headless=true in tomcat startup Hi! I try to use some awt\swing classes to convert rtf strings to html in an jsp page. But I receive the following Exception: "Can't connect to X11 window server using ':0.0' as the value of the DISPLAY variable." But, to resolve this problem, I find the following tip: "assuming you're using a 1.4 JVM, add the following line to your startup command: $JAVA_COMMAND -Djava.awt.headless=true ..." But, how I put this option in the Tomcat startup? -- Rodrigo de Avila [EMAIL PROTECTED] http://www.avila.eti.br - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
java.awt.headless=true in tomcat startup
Hi! I try to use some awt\swing classes to convert rtf strings to html in an jsp page. But I receive the following Exception: "Can't connect to X11 window server using ':0.0' as the value of the DISPLAY variable." But, to resolve this problem, I find the following tip: "assuming you're using a 1.4 JVM, add the following line to your startup command: $JAVA_COMMAND -Djava.awt.headless=true ..." But, how I put this option in the Tomcat startup? -- Rodrigo de Avila [EMAIL PROTECTED] http://www.avila.eti.br - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
mod_jk dynamic update of workers.properties
Haven't found docs about this anywher (i might be short sighted though). Can mod_jk dynamically update the contents of workers.properties? Or do I have to use mod_jk2 to be able to do that.. Thanks, -- \ Olve S. Hansen \ mailto:[EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tag libraries and JSPs
David: In JSTL v1.0.x it's: <%@ taglib prefix="c" uri="http://java.sun.com/jstl/core"%> In JSTL v1.1.x it's: <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%> It has never been what you indicated. Jack David Short wrote: I just upgraded from Tomcat 5.0.28 to 5.5.4 and now my taglib declaration doesn't seem to work anymore in my JSPs <%@ taglib prefix="c" uri="http://java.sun.com/products/jstl/core"; %> Is there new syntax for 5.5.4? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
isUserInRole
Joby, Thanks for you reply. I have not tried request.isUserInRole("Denny"). I was under the impression that role has to do with being admin or user. I can get the user name through the request.getRemoteUser() but I am still stuck with the role thing. ___ Subject: RE: isUserInRole question Date: Fri, 4 Feb 2005 08:35:22 +0530 From: [EMAIL PROTECTED] To: tomcat-user@jakarta.apache.org Plain Text Attachment [ Download File | Save to my Yahoo! Briefcase ] Hi Denny, U hav to use request.isUserInRole("Denny") to compare whether the user logged in is Denny or not Joby. -Original Message- From: Mario Winterer [mailto:[EMAIL PROTECTED] Sent: Friday, February 04, 2005 3:13 AM To: Tomcat Users List Subject: Re: isUserInRole question Hi Denny! Which Realm do you use in server.xml? What are your web.xml-settings? Please post your configurations!!! Tex >Hello, >Thanks for your reply. When I use IE to bring up the >page I get a dialogbox asking for user name and >password. If I put in a user name and password of a >user on the workstation I can login. The page shows >the correct user name and says that I have >successfully logged in. But I get 2 false for the >isUserInRole statements. I don't know why that is the >case. > >Thanks. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Realm + PDF + Internet Explorer
I tried both application/pdf and application/octet-stream. I ensured the checkbox mentioned in this thread was unchecked within IE. I believe you can set the content as often as you wish, but the content type set for the stream will be the value set during the last invokation of setContentType(). At least that is my understanding. Thanks, Mike -Original Message- From: Parsons Technical Services [mailto:[EMAIL PROTECTED] Sent: Friday, February 04, 2005 7:50 AM To: Tomcat Users List Subject: Re: Realm + PDF + Internet Explorer Yes. I have not attempted a fix as of yet. Was planning to try the link provided by Wendy as well as a twist on the uri. Mine now calls the servlet name. I was going to amend .pdf to it to see if that would help. I wonder, is it possible to set the response.setContentType() twice? Set it to html, send a blank page, change to application/pdf and send the document. Doug - Original Message - From: "Milazzo, Michael A HQISEC" <[EMAIL PROTECTED]> To: "Tomcat Users List" Sent: Friday, February 04, 2005 9:28 AM Subject: RE: Realm + PDF + Internet Explorer >I have a similar issue. I am running Tomcat 5.0.x and Apache 1.3.x using > the mod_jk connector over SSL (Apache handling all the SSL). I have a > servlet that is supposed to open a PDF on the server and send it to a > requesting client (using the HttpServletRequest object's output stream). > IE > 6 tells me that it can't download the internet site and the requested > resource is either not found or not available. I know the files are there > and no exceptions are being thrown on the server. > > Anyone else encountered this issue? > > Thanks, > > Mike > > -Original Message- > From: Kalyan Inuganti [mailto:[EMAIL PROTECTED] > Sent: Thursday, February 03, 2005 10:36 AM > To: Tomcat Users List > Subject: Re: Realm + PDF + Internet Explorer > > > Gracie, > IE has a setting that does not let you open PDFs being served over > SSL. You can configure IE to not do this: > > Tools -> Internet Options -> Advanced -> Security -> > > Uncheck the "Do Not Save Encrypted Pages to Disk" checkbox if its checked. > > This should not have anything to do with Tomcat though. Hope that helps. > > Thanks, > Kalyan > > On Thu, 03 Feb 2005 10:24:34 -0700, Wendy Smoak <[EMAIL PROTECTED]> > wrote: >> From: "Graice Marques" <[EMAIL PROTECTED]> >> >> > I'm having a problem with Internet Explorer. I have a web application >> > running in Tomcat that generate some PDF reports. When I add a tomcat >> > security realm to my webapp and run it in IE I can't open my PDF >> > reports. >> >> I don't know if this is the same problem, but at least one version of IE >> wouldn't display non-HTML content after a form POST over SSL. Here's a >> workaround: >> >> http://wiki.wendysmoak.com/cgi-bin/wiki.pl?NonsecureContent >> >> -- >> Wendy Smoak >> >> - >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Realm + PDF + Internet Explorer
Yes. I have not attempted a fix as of yet. Was planning to try the link provided by Wendy as well as a twist on the uri. Mine now calls the servlet name. I was going to amend .pdf to it to see if that would help. I wonder, is it possible to set the response.setContentType() twice? Set it to html, send a blank page, change to application/pdf and send the document. Doug - Original Message - From: "Milazzo, Michael A HQISEC" <[EMAIL PROTECTED]> To: "Tomcat Users List" Sent: Friday, February 04, 2005 9:28 AM Subject: RE: Realm + PDF + Internet Explorer I have a similar issue. I am running Tomcat 5.0.x and Apache 1.3.x using the mod_jk connector over SSL (Apache handling all the SSL). I have a servlet that is supposed to open a PDF on the server and send it to a requesting client (using the HttpServletRequest object's output stream). IE 6 tells me that it can't download the internet site and the requested resource is either not found or not available. I know the files are there and no exceptions are being thrown on the server. Anyone else encountered this issue? Thanks, Mike -Original Message- From: Kalyan Inuganti [mailto:[EMAIL PROTECTED] Sent: Thursday, February 03, 2005 10:36 AM To: Tomcat Users List Subject: Re: Realm + PDF + Internet Explorer Gracie, IE has a setting that does not let you open PDFs being served over SSL. You can configure IE to not do this: Tools -> Internet Options -> Advanced -> Security -> Uncheck the "Do Not Save Encrypted Pages to Disk" checkbox if its checked. This should not have anything to do with Tomcat though. Hope that helps. Thanks, Kalyan On Thu, 03 Feb 2005 10:24:34 -0700, Wendy Smoak <[EMAIL PROTECTED]> wrote: From: "Graice Marques" <[EMAIL PROTECTED]> > I'm having a problem with Internet Explorer. I have a web application > running in Tomcat that generate some PDF reports. When I add a tomcat > security realm to my webapp and run it in IE I can't open my PDF > reports. I don't know if this is the same problem, but at least one version of IE wouldn't display non-HTML content after a form POST over SSL. Here's a workaround: http://wiki.wendysmoak.com/cgi-bin/wiki.pl?NonsecureContent -- Wendy Smoak - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat 5.5.4/Windows 2000 server - Failed to register in JMX: BasicDataSourceFactory
Look at your database. There should be at least the pool size of connections open when there is no activity. Whether or not you specify the factory depends on the factory being used. If it is a standard factory in Tomcat that Tomcat is already aware of, it is not needed. But if you use a set of drivers that use a different or special factory you will need to call it out. This information is in the docs but is a little scattered. Read all the pages on jndi, jdbc and global resources. Including: http://jakarta.apache.org/tomcat/tomcat-5.0-doc/jndi-resources-howto.html The other simple answer is what code are you using? If you are calling the DriverManager then no, but if you are calling DataSource ds = (DataSource) ctx.lookup("java:comp/env/jdbc/myDB"); or similar then you are using Tomcats built in pooling. Otherwise you would get an error. Doug - Original Message - From: "DAVID TURNER" <[EMAIL PROTECTED]> To: "Tomcat Users List" Sent: Friday, February 04, 2005 8:19 AM Subject: RE: Tomcat 5.5.4/Windows 2000 server - Failed to register in JMX: BasicDataSourceFactory Hi all, Most of the examples I've come across specify the factory parameter. And, after rereading the Tomcat docs, those additional three commons jar files are needed. I too, have gotten the datasource to work when I didn't specify the factory parameter, but my impression right now is that it's not pooling the datasources/connections when you don't specify it. Is there a way to see that Tomcat is actually pooling these connections/datasources? "Greg Guerin" <[EMAIL PROTECTED]> 02/03/2005 04:51 PM Please respond to "Tomcat Users List" To "'Tomcat Users List'" cc Subject RE: Tomcat 5.5.4/Windows 2000 server - Failed to register in JMX: BasicDataSourceFactory Hi David, Mario, We actually specify the factory parameter because we extend the BasicDataSourceFactory so we can encrypt passwords in the resource definition. My question is: Is there already a way to do that using another factory I'm unaware of? It works fine, but we have to include the jars that Mario mentioned and it'd be nice to not have to tie our code that close to the container. Greg -Original Message- From: Mario Winterer [mailto:[EMAIL PROTECTED] Sent: Thursday, February 03, 2005 4:37 PM To: Tomcat Users List Subject: Re: Tomcat 5.5.4/Windows 2000 server - Failed to register in JMX: BasicDataSourceFactory Hi David! I think, you do not need to explicitely define a bean factory because Tomcat 5 automatically uses dbcp for JNDI-DataSources (I think tomcat looks at the type of resource - in your case a javax.sql.DataSource - and uses the tomcat-internal dbcp-factory). In my project, I've configured a JNDI-DataSource using the Oracle thin driver and it works perfectly without specifying a bean factory and without adding any special libraries to my tomcat installation (apart from the oracle database driver which is in commons/lib). So try the following configuration: url="jdbc:as400://a53pb3;naming=system;libraries=,pgmdbt,caelib;errors=full" username="userid" password="password" /> Again: You do not need any additional commons-libraries! Best regards, Tex Hi Mario, Thanks for getting back to me. Below is the context I set up. After doing my own digging, I realized I was missing some jakarta commons jar files. After getting these jars and restarting Tomcat the ClassNotFoundExceptions went away. What I find really puzzling though is why I didn't get the same ClassNotFoundException on my local machine that was running the same version of Tomcat but on Windows XP profession. url="jdbc:as400://a53pb3;naming=system;libraries=,pgmdbt,caelib;errors=full " username="userid" password="password"/> Mario Winterer <[EMAIL PROTECTED]> 02/02/2005 07:19 PM Please respond to "Tomcat Users List" To Tomcat Users List cc Subject Re: Tomcat 5.5.4/Windows 2000 server - Failed to register in JMX: BasicDataSourceFactory Hi! How did you define your JDBC DataSource? As far as I know, the original jakarta-commons-dbcp and jakarta-commons-pool-libraries are not included with Tomcat. Instead, just a subset of the required classes with modified package names (starting with 'org.apache.tomcat.dbcp') are packed in 'naming-factory-dbcp.jar' that can be found in commons/lib. But if you configure your JDBC DataSource correctly, this should not bother. Please post your resource-configuration! Best regards, Tex I'm running Tomcat 5.5.4 on Windows 2000 Server and encountered the below error on Tomcat startup: Feb 2, 2005 10:50:49 AM org.apache.catalina.core.NamingContextListener addResource WARNING: Failed to register in JMX: javax.naming.NamingException: Could not create resource factory, ClassNotFoundException:org.apache.commons.dbcp.BasicDataSourceFactory My webapp uses JDBC DataSource's and the BasicDataSourceFactory for pooling so this problem of "ClassNotFoundException" is causing my webapp to not work properly. I
RE: Realm + PDF + Internet Explorer
I have a similar issue. I am running Tomcat 5.0.x and Apache 1.3.x using the mod_jk connector over SSL (Apache handling all the SSL). I have a servlet that is supposed to open a PDF on the server and send it to a requesting client (using the HttpServletRequest object's output stream). IE 6 tells me that it can't download the internet site and the requested resource is either not found or not available. I know the files are there and no exceptions are being thrown on the server. Anyone else encountered this issue? Thanks, Mike -Original Message- From: Kalyan Inuganti [mailto:[EMAIL PROTECTED] Sent: Thursday, February 03, 2005 10:36 AM To: Tomcat Users List Subject: Re: Realm + PDF + Internet Explorer Gracie, IE has a setting that does not let you open PDFs being served over SSL. You can configure IE to not do this: Tools -> Internet Options -> Advanced -> Security -> Uncheck the "Do Not Save Encrypted Pages to Disk" checkbox if its checked. This should not have anything to do with Tomcat though. Hope that helps. Thanks, Kalyan On Thu, 03 Feb 2005 10:24:34 -0700, Wendy Smoak <[EMAIL PROTECTED]> wrote: > From: "Graice Marques" <[EMAIL PROTECTED]> > > > I'm having a problem with Internet Explorer. I have a web application > > running in Tomcat that generate some PDF reports. When I add a tomcat > > security realm to my webapp and run it in IE I can't open my PDF > > reports. > > I don't know if this is the same problem, but at least one version of IE > wouldn't display non-HTML content after a form POST over SSL. Here's a > workaround: > > http://wiki.wendysmoak.com/cgi-bin/wiki.pl?NonsecureContent > > -- > Wendy Smoak > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
pluggable protocols in web apps
We use pluggable protocols to access resources. These don't seem to work with the class loading scheme Tomcat is using. Having a class no.mycomp.protocols.myprot.Handler I do the following: 1. prepend "no.mycomp.protocols|" to the system property "java.protocol.handler.pkgs" 2. create a URL with URL u = new URL("myprot://whatever"); I get a MalformedUrlException: unknown protocol myprot When I debug the code I see that the call Class.forName() in URL.getURLStreamHandler() fails (The one in the try block). After that the System class loader cannot load my protocol handler either. Is ther a way to get this working. perferably without moving archives to Tomcat's common\ or Java's endorsed path? Martin - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat 5.5.4/Windows 2000 server - Failed to register in JMX: BasicDataSourceFactory
Hi all, Most of the examples I've come across specify the factory parameter. And, after rereading the Tomcat docs, those additional three commons jar files are needed. I too, have gotten the datasource to work when I didn't specify the factory parameter, but my impression right now is that it's not pooling the datasources/connections when you don't specify it. Is there a way to see that Tomcat is actually pooling these connections/datasources? "Greg Guerin" <[EMAIL PROTECTED]> 02/03/2005 04:51 PM Please respond to "Tomcat Users List" To "'Tomcat Users List'" cc Subject RE: Tomcat 5.5.4/Windows 2000 server - Failed to register in JMX: BasicDataSourceFactory Hi David, Mario, We actually specify the factory parameter because we extend the BasicDataSourceFactory so we can encrypt passwords in the resource definition. My question is: Is there already a way to do that using another factory I'm unaware of? It works fine, but we have to include the jars that Mario mentioned and it'd be nice to not have to tie our code that close to the container. Greg -Original Message- From: Mario Winterer [mailto:[EMAIL PROTECTED] Sent: Thursday, February 03, 2005 4:37 PM To: Tomcat Users List Subject: Re: Tomcat 5.5.4/Windows 2000 server - Failed to register in JMX: BasicDataSourceFactory Hi David! I think, you do not need to explicitely define a bean factory because Tomcat 5 automatically uses dbcp for JNDI-DataSources (I think tomcat looks at the type of resource - in your case a javax.sql.DataSource - and uses the tomcat-internal dbcp-factory). In my project, I've configured a JNDI-DataSource using the Oracle thin driver and it works perfectly without specifying a bean factory and without adding any special libraries to my tomcat installation (apart from the oracle database driver which is in commons/lib). So try the following configuration: type="javax.sql.DataSource" maxActive="20" maxIdle="10" maxWait="-1" removeAbandoned="true" removeAbandonedTimeout="60" logAbandoned="true" driverClassName="com.ibm.as400.access.AS400JDBCDriver" url=""> username="userid" password="password" /> Again: You do not need any additional commons-libraries! Best regards, Tex >Hi Mario, > >Thanks for getting back to me. Below is the context I set up. > >After doing my own digging, I realized I was missing some jakarta >commons jar files. After getting these jars and restarting Tomcat the >ClassNotFoundExceptions went away. > >What I find really puzzling though is why I didn't get the same >ClassNotFoundException on my local machine that was running the same >version of Tomcat but on Windows XP profession. > > > > > > > type="javax.sql.DataSource" > factory="org.apache.commons.dbcp.BasicDataSourceFactory" > maxActive="20" > maxIdle="10" > maxWait="-1" > removeAbandoned="true" > removeAbandonedTimeout="60" > logAbandoned="true" > driverClassName="com.ibm.as400.access.AS400JDBCDriver" > >url=""> " > username="userid" > password="password"/> > > > > > > > > > > > >Mario Winterer <[EMAIL PROTECTED]> >02/02/2005 07:19 PM >Please respond to >"Tomcat Users List" > > >To >Tomcat Users List cc > >Subject >Re: Tomcat 5.5.4/Windows 2000 server - Failed to register in JMX: >BasicDataSourceFactory > > > > > > >Hi! > >How did you define your JDBC DataSource? >As far as I know, the original jakarta-commons-dbcp and >jakarta-commons-pool-libraries are not included with Tomcat. Instead, >just a subset of the required classes with modified package names >(starting with 'org.apache.tomcat.dbcp') are packed in >'naming-factory-dbcp.jar' that can be found in commons/lib. >But if you configure your JDBC DataSource correctly, this should not >bother. Please post your resource-configuration! > >Best regards, > Tex > > > >>I'm running Tomcat 5.5.4 on Windows 2000 Server and encountered the >>below >> >> > > > >>error on Tomcat startup: >> >>Feb 2, 2005 10:50:49 AM org.apache.catalina.core.NamingContextListener >>addResource >>WARNING: Failed to register in JMX: javax.naming.NamingException: >>Could not create resource factory, >>ClassNotFoundException:org.apache.commons.dbcp.BasicDataSourceFactory >> >> >>My webapp uses JDBC DataSource's and the BasicDataSourceFactory for >>pooling so this problem of "ClassNotFoundException" is causing my >>webapp to not work properly. >> >>I have Tomcat 5.5.4 also installed on my local maching which has >>Windows XP on it, and there is absolutely no problem on startup and >>and my >> >> >webapp. > > >>Does anyone no what's happening here? Why does Tomcat register the >>BasicDataSourceFactory with no problems in Tomcat 5.5.4 on Windows XP >>and >> >> > > > >>not on Wind
virtualhost and deployment applications
Good Day I have a question. Is possible deploy an application per virtualhost, where the deployed applications could'nt see them each other? Thanks in advance. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Java.mail smtp authentication
Hi I am using the following config with tc/jndi javamail to connect to an smtp server which needs authentication. If OI put the username/password/port into Outlook Express and check needs authentication it works OK. With TC and my settings I get an auth failure. AM I using the correct properties? The password prop doesn't seem to appear any where in the docs Many thanks if anyone knows this - I've not found any answers on Google (only questions) mail.smtp.host smtp.myispname.com mail.smtp.port 225 mail.smtp.auth true mail.smtp.user myusername mail.smtp.password mypassword
Re: Help Required- tomcat doesn't shutdown properly
What your application is doing ?. is there any threads watiing ?. You can have a look at localhost_log in the logs directory for any errors. rgds Antony Paul On Fri, 4 Feb 2005 10:08:09 +0100, Narayan, Satya <[EMAIL PROTECTED]> wrote: > Hi , > I am having a weird problem. I have deployed a webapp which > basically runs a servlet in tomcat5. I can start and stop using the exe > file provided. But when I use the command line version ie when I open a > command shell and type "catalina.bat start" tomcat starts properly in a > new shell. > But when in the same command shell and I type "catalina.bat stop" It > tries to stop tomcat but doesnot stop it properly and doesnot close the > tomcat shell. > The last message that appears on the tomcat shell while stopping is > > "Feb 4, 2005 2:35:29 PM org.apache.coyote.http11.Http11Protocol destroy > INFO: Stopping Coyote HTTP/1.1 on http-8080" > > This problem doesn't occur when my webapp is not deployed. > > Kindly advice as to wht could be wrong.Thanks in advance. > > Best Regards, > Satya > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: JK 1.2.8 and IIS 6
Antti Granqvist wrote: Hi, I have problems in running this combination on Windows server 2003. I have set up jk 1.2 on w2k/xp and iis 5 several times without problems. But I think now I am out of luck. Service is run in 'IIS 5.0 isolation mode'. I used the installer for jk 1.2.8 and set loglevel to debug: Problem solved by adding isapi_redirect.dll to allowed extensions. If you read my initial reply to your post, you would see that I give you that hint already ;). -- Mladen - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Is it possible to deploy an MBean on Tomcat 4.1 ?
Hi all tomcat users, I'm in need to deploy an MBean component that does some admin functions for my webapp. Is it possible to deploy the mbean on tomcat 4.1 -and access it from a jsp/servlet- ? or do I need to install other server-side components ? Thanks a lot Francesco - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: JK 1.2.8 and IIS 6
Hi, I have problems in running this combination on Windows server 2003. I have set up jk 1.2 on w2k/xp and iis 5 several times without problems. But I think now I am out of luck. Service is run in 'IIS 5.0 isolation mode'. I used the installer for jk 1.2.8 and set loglevel to debug: [Wed Feb 02 13:06:56 2005] [3068:3440] [debug] HttpFilterProc::jk_isapi_plugin.c (636): Detected IIS >= 5.0 [Wed Feb 02 13:06:56 2005] [3068:3440] [debug] HttpFilterProc::jk_isapi_plugin.c (687): Filter started [Wed Feb 02 13:06:56 2005] [3068:3440] [debug] HttpFilterProc::jk_isapi_plugin.c (753): Virtual Host redirection of /localhost/cms/sites/peterson/ [Wed Feb 02 13:06:56 2005] [3068:3440] [debug] map_uri_to_worker::jk_uri_worker_map.c (700): Attempting to map URI '/localhost/cms/sites/peterson/' from 2 maps [Wed Feb 02 13:06:56 2005] [3068:3440] [debug] map_uri_to_worker::jk_uri_worker_map.c (718): Attempting to map context URI '/*' [Wed Feb 02 13:06:56 2005] [3068:3440] [debug] map_uri_to_worker::jk_uri_worker_map.c (755): Found a context match ajp13w -> / [Wed Feb 02 13:06:56 2005] [3068:3440] [debug] HttpFilterProc::jk_isapi_plugin.c (770): check if [/cms/sites/peterson/] is points to the web-inf directory [Wed Feb 02 13:06:56 2005] [3068:3440] [debug] HttpFilterProc::jk_isapi_plugin.c (788): [/cms/sites/peterson/] is a servlet url - should redirect to ajp13w And here the log ends! Looking at the source it seems like HttpExtensionProc function never is called, at least there are no log entries from that function. Any ideas why? Problem solved by adding isapi_redirect.dll to allowed extensions. -- Antti _ FREE pop-up blocking with the new MSN Toolbar - get it now! http://toolbar.msn.click-url.com/go/onm00200415ave/direct/01/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Help Required- tomcat doesn't shutdown properly
Hi , I am having a weird problem. I have deployed a webapp which basically runs a servlet in tomcat5. I can start and stop using the exe file provided. But when I use the command line version ie when I open a command shell and type "catalina.bat start" tomcat starts properly in a new shell. But when in the same command shell and I type "catalina.bat stop" It tries to stop tomcat but doesnot stop it properly and doesnot close the tomcat shell. The last message that appears on the tomcat shell while stopping is "Feb 4, 2005 2:35:29 PM org.apache.coyote.http11.Http11Protocol destroy INFO: Stopping Coyote HTTP/1.1 on http-8080" This problem doesn't occur when my webapp is not deployed. Kindly advice as to wht could be wrong.Thanks in advance. Best Regards, Satya
tomcat hangs
Hi, I am not sure i am posting this in the correct area. Please bear and advice. My application needs to run a thread contiuously for every 1 hr. I have made the coding in servlet as package invservlet; import javax.servlet.*; import javax.servlet.http.*; import java.io.IOException; import java.util.Timer; import java.util.TimerTask; import java.util.Date; import java.util.Calendar; import sample.Reminder; public class SampleReminder extends HttpServlet{ Timer timer; Date date=new Date(); Calendar calc=Calendar.getInstance(); public void init(){ timer = new Timer(); timer.schedule(new Reminder(),calc.getTime(),1*1000*60*60); } public void doService(HttpServletRequest request,HttpServletResponse response) throws ServletException,IOException{ } public void destroy(){ timer.cancel(); super.destroy(); } } and the execution file is package sample; import java.util.TimerTask; import java.util.Date; import box.util.SendMail; public class Reminder extends TimerTask{ SendMail sendMail=new SendMail(); public void run() { taskBody(); } public void taskBody() { try{ sendMail.SendMail("192.168.0.33","[EMAIL PROTECTED]","[EMAIL PROTECTED]","","","Test log mail","This is a test mail for every 1 hour"+new Date()); }catch(Exception e){System.out.println("ERROR IN Remainder");} } } BUT EVERY 2 - 3 DAYS I AM GETTING MY TOMCAT HANGING. I THINK THE PROBLEM IS IN THE THREAD. PLEASE ADVICE. THANKS. Sorry, forget to add some more points which may help for analysation. My application will fetch more than 1000 records for single transaction. And also some times in will be transferred (sendRedirect) to another page with nearly 20 fields of data. Will this also create problem? _ MSN Spaces! Your space, your time. http://www.msn.co.in/spaces Your personal haven online. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
R: How do you start tomcat in production, with -server or not ?
>may I know where u read abaout the problem of "-server" option? I have found this on a thread on this newsgroup and on some others too (www.theserverside.com) at the moment I don't remember which keyword I used to search the topic, I went through this matter while looking for something else... -Messaggio originale- Da: Omar Adobati [mailto:[EMAIL PROTECTED] Inviato: giovedì 3 febbraio 2005 20.05 A: Tomcat Users List Oggetto: Re: How do you start tomcat in production, with -server or not ? may I know where u read abaout the problem of "-server" option? On Thu, 03 Feb 2005 12:59:09 -0600, Paul <[EMAIL PROTECTED]> wrote: > Are you referring to the JVM option? Is so, I use the "-server" option > in the CATALINA_OPTS that get passed to the JVM. > > AFAIK, the client mode (default) is good for fast startup and low memory > requirements. The server version is geared towards providing the best > performance at the expense of the memory footprint. There are some > technical difference that I've never explored, like default heap sizes, > complication & inlining policies. > > To finally answer your question, I've always used the -server option in > our production machines without a problem. And I don't even notice the > slower startup. > > Cheers, > > -Paul > > Marchioni Francesco wrote: > > >Hi all, > >I have read on Sun documentation that it's adviced to start server > >applications with -server > >option which should boost performance though with slower startup. > > > >Somewhere I can find post of users telling not to use the -server flag > >because it can leads to instable environment (but they don't give any proof > >about it) > >What is your experience ? Do you start Tomcat with -server in production ? > >Thanks > >Francesco > > > > > > > > > >- > >To unsubscribe, e-mail: [EMAIL PROTECTED] > >For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- Adobati Omar [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Error FOP/BATIK ... PDFXMLHandler:253 - svg graphic could not be built"
-Original Message- From: Richard Mixon (qwest) Bingo! That was it. I changed it from "file://" to "file:///" and all works now. You earlier mentioned that might be it - but I was so focused on the fact that it worked on Java 1.4.1 that I figured I had it correctly. That is weird though that moving past Java 1.4.1 breaks this. Thats not the java, its the XML parser change. That's the only software that looks at that element of the XML. regards DaveP. ** snip here ** -- DISCLAIMER: NOTICE: The information contained in this email and any attachments is confidential and may be privileged. If you are not the intended recipient you should not use, disclose, distribute or copy any of the content of it or of any attachment; you are requested to notify the sender immediately of your receipt of the email and then to delete it and any attachments from your system. RNIB endeavours to ensure that emails and any attachments generated by its staff are free from viruses or other contaminants. However, it cannot accept any responsibility for any such which are transmitted. We therefore recommend you scan all attachments. Please note that the statements and views expressed in this email and any attachments are those of the author and do not necessarily represent those of RNIB. RNIB Registered Charity Number: 226227 Website: http://www.rnib.org.uk - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]