Re: Re: Minimal server
|| Hej. Du har försökt skicka ett e-mail till Fructus Data AB. Ditt meddelande har inte nått fram till mottagaren. Detta beror troligtvis på att mail-adressen du använder är felaktig. Vänligen kontrollera ditt e-mail och försök på nytt. Ring oss på telefon 08-59411630 för en korrekt adress. Med Vänliga Hälsningar, Fructus Data AB || Hi. You have tried to send an e-mail to Fructus Data AB. Your message has not reached the receiver. The reason is probably due to an incorrect e-mail address. Please check your e-mail and try again. Call us at +46859411630 for the correct address. Best Regards, Fructus Data AB || - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Minimal server
> == > Date: Mon, 23 May 2005 13:15:33 -0700 (PDT) > From: Dola Woolfe <[EMAIL PROTECTED]> > To: Tom Cat > Subject: Minimal server > == > > Hi, > > Perhaps this is a strange question. > > Basically, I believe that (for many purposes) the > browser provides the easiest way to create a GUI. [cut] Are you sure about this? G. -- Giuseppe Briotti [EMAIL PROTECTED] "Alme Sol, curru nitido diem qui promis et celas aliusque et idem nasceris, possis nihil urbe Roma visere maius." (Orazio) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat and JAASRealm
Jukka Männistö wrote: Hello :) (this is my very first post to any mailing-list) I've been trying to get Tomcat and its JAASRealm to work for maybe four weeks now. Even though the JAAS authentication succeeds, Tomcat does not pass me through to the protected web-app, but says HTTP 403 instead! I read somewhere that the JAASRealm implementations in Tomcat versions under 5.0.30 were somehow broken, but right now I'm using the latest version (5.5.9 + 1.4 compatibility pack), so that shouldn't be a problem. I've tried fiddling with how and what Principals are added to the Subject and so on.. I've tried everyhing I've thought of and more.. Could someone please offer some suggestions on this? :) Hi, My best guess is that 403 is due to trying map roles in tomcat-user.xml file. If you put some role, which comes directly from loginmodule, to web.xml security-constraint, i am pretty sure this will work. - Jukka - Here's the JAASRealm configuration from server.xml: __ appName="OutlookProxy" userClassNames="org.apache.catalina.realm.GenericPrincipal" roleClassNames="org.apache.catalina.realm.GenericPrincipal" debug="99"/> __ Here's a snippet of my web.xml: __ OutlookProxy /exchange/* GET POST outlook-role BASIC Protected Web-app __ The JAAS configuration for "OutlookProxy" contains one LoginModule. There's a user in tomcat-userx.xml that has been associated with the aforementioned role ("outlook-role"). The LoginModule class is in a jar file, under tomcat/server/lib. - 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: struts validation frame work
Not all validations can/should be done client-side. -Rahul On 5/24/05, raja buddha <[EMAIL PROTECTED]> wrote: > Hi all > In struts why do we need validation frame work we have java script > to do validations. Is there any extra advantage of using the validation > frame work > > Regards > raj > > _ > On the road to retirement? Check out MSN Life Events for advice on how to > get there! http://lifeevents.msn.com/category.aspx?cid=Retirement > > > - > 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]
struts validation frame work
Hi all In struts why do we need validation frame work we have java script to do validations. Is there any extra advantage of using the validation frame work Regards raj _ On the road to retirement? Check out MSN Life Events for advice on how to get there! http://lifeevents.msn.com/category.aspx?cid=Retirement - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to change the value of a form's text field by scriplet?
> From: "Cassius V. de Magalhaes" <[EMAIL PROTECTED]> > Sent: Monday, May 23, 2005 2:56 PM > I would like to change the value of a form's text field by scriplet, is it possible, please? > Through Javascript, I can use the form name plus the name of the field, for example, > "myform.address.value='xxx'". I know I can do "myform.address.value='<%= something %>'", > where "something" is a > scriplet variable declared previously. Is it possible to change the value of a form field inside of a > scriplet > just as we can by a javascript code, please? JSPs and the Servlet model do not expose HTML forms as some large, first class object that you can change using something like "myform.address='something'". Typically you'd do something very basic like: Name: <%= something %> There are, of course, innumerable frameworks and such that can present HTML elements and forms to your Java code as objects (JSF for one), but the above is the basic of basics on how it all works and is inevitably done. Regards, Will Hartung ([EMAIL PROTECTED]) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Cache & CPU utilisation problems on Tomcat 5.5.7 on Windows 2003
> From: "Andrew Stevens" <[EMAIL PROTECTED]> > Sent: Monday, May 23, 2005 6:43 PM > 1. Cache - Can't help here, sorry... > 2. CPU utilisation - Tomcat often hits 99% CPU and just stays there > until the server just comes to a grinding halt. This could of course be > a coding issue in a JSP or what have you, but my error logs are not > pointing to anything unusual. What do your GC stats look like? (-verbose:gc) Is TC out of memory and fighting itself? Even worse, is Tomcat swapping? (Java no like swapping, no sir. Bad. Really Bad.) Remember that your Java will allocate more memory than what you may specify on the command line, that only limits the heap size for the JVM, not how much Java takes overall. I've had Tomcat when hammered go into a thrashing spin lock on Solaris, this was 4.1.x, though. It was rare, we only caught it once, and it was obviously fighting among itself for some locks. That wasn't pretty. But it eventually sorted itself out. No idea what caused it, and I can't consistently duplicate it. Regards, Will Hartung ([EMAIL PROTECTED]) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Cache & CPU utilisation problems on Tomcat 5.5.7 on Windows 2003
Hi, I am a complete newbie to Tomcat so please forgive me... I have two problems: 1. Cache - Tomcat will cache everything to /temp and even when the underlying content (images or pages) are changed, it will not refresh. I have to stop the server, delete all files in the /temp directory and then restart Tomcat to get the new content delivered to the browser. This cache can build in size to gigabytes. 2. CPU utilisation - Tomcat often hits 99% CPU and just stays there until the server just comes to a grinding halt. This could of course be a coding issue in a JSP or what have you, but my error logs are not pointing to anything unusual. Has anyone else had similar experiences? Do you have any tips for me? Thank you, your help is appreciated. Cheers, Andrew
mod_jk jkloglevel not showing info/error messages
I'm running Apache 1.3.33 + mod_ssl 2.8.22 + mod_jk 1.2.13 on a Solaris 8 box. If I set JkLogLevel to debug, I get debug messages plus some info and error messages (when the tomcat instance is down, for example). If I set JkLogLevel to trace, I get the appropriate trace messages, as well as the debug and higher messages. If I set JkLogLevel to info or error, I get no messages in the same scenario - when the tomcat instance(s) are down. I would expect to still see the info/error messages. Can anyone explain this? Thanks... Bill S. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to change the value of a form's text field by scriplet?
I should also mention, you can certainly do something like this: function changeIt() { myForm.myField.value = "<%=someValue%>"; } ...but that's not much different than just setting the value of the field with a scriplet. However, if you perhaps have some discrete values that you want to be able to change the field to, like maybe something like a "previous value" button, and you have the value at the time the JSP is interpreted, you can do this and just call changeIt() in response to onClick() of the button. That's something of a hybrid. Frank Frank W. Zammetti wrote: You might not be asking this, but... Scriplets execute on the server, not on the client. The results of a scriplet are in essence "inserted" into the response. So in that regard, no, you can't use a scriplet to change the value of a text field as you would with Javascript because Javascript executes on the client *AFTER* the response has been completely rendered and returned to the broser, while a scriplet executes *WHILE* the response is being rendered and *BEFORE* it is returned to the client. Does that answer the question, or did I misinterpret? Frank Cassius V. de Magalhaes wrote: Hello, I would like to change the value of a form's text field by scriplet, is it possible, please? Through Javascript, I can use the form name plus the name of the field, for example, "myform.address.value='xxx'". I know I can do "myform.address.value='<%= something %>'", where "something" is a scriplet variable declared previously. Is it possible to change the value of a form field inside of a scriplet just as we can by a javascript code, please? TIA, Vinicius. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] . -- Frank W. Zammetti Founder and Chief Software Architect Omnytex Technologies http://www.omnytex.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to change the value of a form's text field by scriplet?
You might not be asking this, but... Scriplets execute on the server, not on the client. The results of a scriplet are in essence "inserted" into the response. So in that regard, no, you can't use a scriplet to change the value of a text field as you would with Javascript because Javascript executes on the client *AFTER* the response has been completely rendered and returned to the broser, while a scriplet executes *WHILE* the response is being rendered and *BEFORE* it is returned to the client. Does that answer the question, or did I misinterpret? Frank Cassius V. de Magalhaes wrote: Hello, I would like to change the value of a form's text field by scriplet, is it possible, please? Through Javascript, I can use the form name plus the name of the field, for example, "myform.address.value='xxx'". I know I can do "myform.address.value='<%= something %>'", where "something" is a scriplet variable declared previously. Is it possible to change the value of a form field inside of a scriplet just as we can by a javascript code, please? TIA, Vinicius. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] . -- Frank W. Zammetti Founder and Chief Software Architect Omnytex Technologies http://www.omnytex.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat and JAASRealm
Hello Jukka, Jukka Männistö wrote: Hello :) (this is my very first post to any mailing-list) Hope it will be a positive experience :-) I've been trying to get Tomcat and its JAASRealm to work for maybe four weeks now. Even though the JAAS authentication succeeds, Tomcat does not pass me through to the protected web-app, but says HTTP 403 instead! 403 means that authentication passed but authorization failed. In other words, the user logged in all right, but does not posess the role required to enter the webapp (in your case "outlook-role"), or at least that Tomcat can't determine that he does. I've tried fiddling with how and what Principals are added to the Subject and so on.. I've tried everyhing I've thought of and more.. Make sure that you add Principals not only for the user, but also for the role(s). I think if you didn't add the roles, that would explain the above 403 error. __ appName="OutlookProxy" userClassNames="org.apache.catalina.realm.GenericPrincipal" roleClassNames="org.apache.catalina.realm.GenericPrincipal" debug="99"/> __ I think you need to make a distinction between user and role Principals, like UserPrincipal where the getName() returns the user name and a RolePrincipal that returns "outlook-role" in getName(). Both Principals need to be added in your LoginModule. Also, the first added Principal has to be the user, and the next one(s) the role(s). I found this in the Tomcat docs (http://jakarta.apache.org/tomcat/tomcat-5.5-doc/realm-howto.html#JAASRealm): "Although not specified in JAAS, you should create seperate classes to distinguish between users and roles" and "Regardless, the first Principal returned is /always/ treated as the user Principal." Here's a snippet of my web.xml: __ OutlookProxy /exchange/* GET POST outlook-role BASIC Protected Web-app __ You might want to add a outlook-role directly below the , though I don't think that will make the difference. There's a user in tomcat-userx.xml that has been associated with the aforementioned role ("outlook-role"). Now I'm quite sure you don't need this file at all. If Tomcat keeps looking at this file, it means you're using MemoryRealm instead of JAASRealm. Unless you use JAAS to access this file, but then you probably wouldn't want to use JAAS in the first place. I assume you get the user/role data from elsewhere, like from a database. If I am right, better remove this file (or at least remove the users/roles that you're testing) to avoid confusion. Hope this helps. Please let me know either way, I'm also into JAAS lately :-) Regards, Jeroen - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat For SSL
Scott Purcell wrote: Should I wrap my site around Apache now. Meaning should I install apache and put tomcat inside? There is no standard answer to this question. It depends what you are trying to achieve. Apache adds both functionality and configuration complexity. You have to weigh the costs of one against the benefits of the other. If you don't know, stick with Tomcat standalone - you can always change your mind later. Or can tomcat handle SSL certificates (from Verisign?) as it is. Yes. I hear of security issues, etc. Like what? It is difficult to answer your concerns when you are this vauge. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problem with redirection for Tomcat Basic Authentication
I suspect the IE and IIS are conspiring to use Windows Native Authentication. I think this is a browser setting where IE tries this by default if talking to IIS. The settings should be under something like: IE > Tools > Internet options > security > custom level > user authentication I can't remember what setting you need to use but try the various options and see what happens. Mark Javier Santos Martin-Moreno wrote: Hello, I am running Tomcat 5.5.9 on Windows 2000. I configured the ISAPI redirector (version 1.2.12) so that Tomcat worked along with IIS and everything seemed to work fine, but... I have a Tomcat application which requires basic authentication. Everything works fine if I access from http://localhost:8080/mywebapp/, I get authenticated and can navigate, so I think the realm is configured correctly. But if I try to access from http://localhost/mywebapp/ (the path to my app is added to uriworkermap.properties) I get a Windows authentication prompt window ('Enter network password' with fields to introduce username, password plus domain) instead of Tomcat's basic authentication prompt window. However, once I login (using http://localhost:8080/mywebapp/) I can navigate without problems through the application pages without using the ':8080' part. So it seems like redirection works except for the authentication part. Does anyone have any ideas so that I can login to my application from without the need to specify the port? Thanks in advance, Javier Santos - 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: migrating from oc4j to tomcat5.X
[EMAIL PROTECTED] wrote: Is there any info for migrating apps from oc4j to tomcat5.x? thanks oc4j is a both a EJB container and a Servlet container. If your app uses EJBs it won't ever work on Tomcat. If you have a .war files that has been constructed as per the servlet spec it shouldn't need alteration. What you will need to do is configure any resources etc your webapp needs. See the tomcat docs for details on how to do this. Mark - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Client Authentication certificates
Mark Benussi wrote: Can I build a root certificate that is not signed by someone like Verisign or any other trusted root? (This is a cost issue). Yes, but then people have to trust your root certifcate. One of the services Verisign and the other CAs offer (depending on the type of certificate you get) is the verification of the entity that posses the private key associated with the certificate. Can I implement the Client Authentication on a server which does not have SSL implemented? No. SSl is a pre-reqisite for CLIENT-CERT authentication Can I implement the Client Authentication on a server which already has an SSL certificate, signed by someone like Verisign and effectively run both? Yes, with some caveats. A tomcat connector is SSL enabled or not. It can not be both. Tomcat can have multiple SSL enabled connectors but they must use different ports. Each Tomcat SSL connector can be associated with one, and only one, certificate. HTH, Mark - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
How to change the value of a form's text field by scriplet?
Hello, I would like to change the value of a form's text field by scriplet, is it possible, please? Through Javascript, I can use the form name plus the name of the field, for example, "myform.address.value='xxx'". I know I can do "myform.address.value='<%= something %>'", where "something" is a scriplet variable declared previously. Is it possible to change the value of a form field inside of a scriplet just as we can by a javascript code, please? TIA, Vinicius. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Minimal server
Download the embedded binary distribution: jakarta-tomcat-5.5.9-embed.tar.gz That contains all you need to create a program with Tomcat embedded in it. It is smaller than the standard distribution. I have done something similar to what you are looking for. Or perhaps I have done exactly what you are looking for. My implementation doesn't consist of one class file, though. It is a directory structure with the Tomcat's embedded libs included in the tree. On 23 May 2005, Dola Woolfe wrote: > Hi, > > Thanking for the response! > > What I'm primarily thinking about is what the user > would need to have/install in order to use the > program. And I want the user to simply click on a file > and for the program to just run (provided the jre is > installed). > > >From your email, I'm concluding that this is possible > with Jetty as well as Tomcat. Can you point to an > example of embedding? > > Thanks! > > Dola > --- Will Hartung <[EMAIL PROTECTED]> wrote: > > > From: "Dola Woolfe" <[EMAIL PROTECTED]> > > > Sent: Monday, May 23, 2005 1:15 PM > > > > > Can this be done? I basically want to program to > > have > > > a thread that listens to some port and launches a > > > servlet when a request is made. > > > > Tomcat itself is reasonably easy to embed, from what > > I understand. Jetty is > > another light weight servlet container that is > > particularly well suited to > > embedding as well. > > > > While you can create minimal servers and such > > yourself, it's nice to have > > something more full featured, because then you can > > simply code to the > > Servlet API, and leverage the nice things that it > > does for you rather than > > reinventing the assorted wheels. > > > > So, you'll get things like Filters, Sessions, Event > > listeners, Request > > processing, Forwarding, etc. The whole HTTP stack. > > > > Regards, > > > > Will Hartung > > ([EMAIL PROTECTED]) > > > > > > > - > > To unsubscribe, e-mail: > > [EMAIL PROTECTED] > > For additional commands, e-mail: > > [EMAIL PROTECTED] > > > > > > > > __ > Do you Yahoo!? > Yahoo! Mail - Find what you need with new enhanced search. > http://info.mail.yahoo.com/mail_250 > > - > 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: Minimal server
Hi, Thanking for the response! What I'm primarily thinking about is what the user would need to have/install in order to use the program. And I want the user to simply click on a file and for the program to just run (provided the jre is installed). >From your email, I'm concluding that this is possible with Jetty as well as Tomcat. Can you point to an example of embedding? Thanks! Dola --- Will Hartung <[EMAIL PROTECTED]> wrote: > > From: "Dola Woolfe" <[EMAIL PROTECTED]> > > Sent: Monday, May 23, 2005 1:15 PM > > > Can this be done? I basically want to program to > have > > a thread that listens to some port and launches a > > servlet when a request is made. > > Tomcat itself is reasonably easy to embed, from what > I understand. Jetty is > another light weight servlet container that is > particularly well suited to > embedding as well. > > While you can create minimal servers and such > yourself, it's nice to have > something more full featured, because then you can > simply code to the > Servlet API, and leverage the nice things that it > does for you rather than > reinventing the assorted wheels. > > So, you'll get things like Filters, Sessions, Event > listeners, Request > processing, Forwarding, etc. The whole HTTP stack. > > Regards, > > Will Hartung > ([EMAIL PROTECTED]) > > > - > To unsubscribe, e-mail: > [EMAIL PROTECTED] > For additional commands, e-mail: > [EMAIL PROTECTED] > > __ Do you Yahoo!? Yahoo! Mail - Find what you need with new enhanced search. http://info.mail.yahoo.com/mail_250 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Minimal tomcat
I used the template available at the following link to create a program using Tomcat as an embedded component: http://www.theserverside.com/discussions/thread.tss?thread_id=30625 It is 5.5 specific. On 23 May 2005, Dola Woolfe wrote: > Hi, > > Perhaps this is a strange question. > > Basically, I believe that (for many purposes) the > browser provides the easiest way to create a GUI. I > want to write a program that can be interfaced to via > a browser. > > However, I do not want it to run out of Tomcat since I > want the presence of the java virtual machine to be > the only requirement in order for the program to run. > > Can this be done? I basically want to program to have > a thread that listens to some port and launches a > servlet when a request is made. > > Many thanks in advance! > > Dola > > > > > __ > Do you Yahoo!? > Yahoo! Small Business - Try our new Resources site > http://smallbusiness.yahoo.com/resources/ > > - > 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: Minimal server
> From: "Dola Woolfe" <[EMAIL PROTECTED]> > Sent: Monday, May 23, 2005 1:15 PM > Can this be done? I basically want to program to have > a thread that listens to some port and launches a > servlet when a request is made. Tomcat itself is reasonably easy to embed, from what I understand. Jetty is another light weight servlet container that is particularly well suited to embedding as well. While you can create minimal servers and such yourself, it's nice to have something more full featured, because then you can simply code to the Servlet API, and leverage the nice things that it does for you rather than reinventing the assorted wheels. So, you'll get things like Filters, Sessions, Event listeners, Request processing, Forwarding, etc. The whole HTTP stack. Regards, Will Hartung ([EMAIL PROTECTED]) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Minimal tomcat
Hi, Perhaps this is a strange question. Basically, I believe that (for many purposes) the browser provides the easiest way to create a GUI. I want to write a program that can be interfaced to via a browser. However, I do not want it to run out of Tomcat since I want the presence of the java virtual machine to be the only requirement in order for the program to run. Can this be done? I basically want to program to have a thread that listens to some port and launches a servlet when a request is made. Many thanks in advance! Dola __ Do you Yahoo!? Yahoo! Small Business - Try our new Resources site http://smallbusiness.yahoo.com/resources/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Minimal server
This is VERY minimal. http://www-106.ibm.com/developerworks/library/j-nioserver/ - Original Message - From: "Dola Woolfe" <[EMAIL PROTECTED]> To: "Tom Cat" Sent: Monday, May 23, 2005 9:15 PM Subject: Minimal server > Hi, > > Perhaps this is a strange question. > > Basically, I believe that (for many purposes) the > browser provides the easiest way to create a GUI. I > want to write a program that can be interfaced to via > a browser. > > However, I do not want it to run out of Tomcat since I > want the presence of the java virtual machine to be > the only requirement in order for the program to run. > > Can this be done? I basically want to program to have > a thread that listens to some port and launches a > servlet when a request is made. > > Many thanks in advance! > > Dola > > __ > Do You Yahoo!? > Tired of spam? Yahoo! Mail has the best spam protection around > http://mail.yahoo.com > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > > -- > No virus found in this incoming message. > Checked by AVG Anti-Virus. > Version: 7.0.322 / Virus Database: 266.11.15 - Release Date: 22/05/2005 > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Minimal server
Hi, Perhaps this is a strange question. Basically, I believe that (for many purposes) the browser provides the easiest way to create a GUI. I want to write a program that can be interfaced to via a browser. However, I do not want it to run out of Tomcat since I want the presence of the java virtual machine to be the only requirement in order for the program to run. Can this be done? I basically want to program to have a thread that listens to some port and launches a servlet when a request is made. Many thanks in advance! Dola __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: confused about simple logging
- Original Message - From: "Jim Henderson" <[EMAIL PROTECTED]> To: "Tomcat Users List" Sent: Monday, May 23, 2005 2:01 PM Subject: RE: confused about simple logging > > If I write to stdout where does that go? > > System.stdout.println("Where does this get printed to?"); > > I assume C:/tomcat.../log/stdout? > Nope, catalina.out in c:\tomcat\logs if I recall correctly. Rhino -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.322 / Virus Database: 266.11.15 - Release Date: 22/05/2005 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Can mulitple domains share one web app?
So would this be an alias within apache or tomcat? Thanks Randy From: "Parsons Technical Services" <[EMAIL PROTECTED]> Subject: Re: Can mulitple domains share one web app? Date: Fri, 20 May 2005 21:14:26 GMT Prev Next Prev by Thread Next by Thread Alias might do what you want with one reservation, you cannot have www.mydomain.com/bob www.yourdomain.com/bob as different folders. These will be the same folder. So each /folder will have to be unique even though the domain names are different. Doug - Original Message - From: "Randy Paries" <[EMAIL PROTECTED]> To: "'Tomcat Users List'" Sent: Friday, May 20, 2005 4:55 PM Subject: Can mulitple domains share one web app? > Hello, > > I will try to ask this question so it makes sense. > > I have a webapp. > > Currently I have 2000 people that share the same web app > > For example > > www.mydomain.com/sue > www.mydomain.com/fred > > Etc All these guys have their own directories, but they are a single > web app. > > Now I have many (100s ) that want their own domains. I do not want to > create > 100 webapps > > Currently have a work around where > www.sue.com gets redirected via apache to www.mydomain.com/sue > So this way they start at their domain, but the immediately they see the > www.mydomain.com/sue > > So is there a way to have one webapp share multiple domains? > > Thanks > Randy > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Message Index: [Date] [Author] [Thread] Prev Next Prev by Thread Next by Thread - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: confused about simple logging
GOOD IDEA! I'll do that! (When this is done, I should have no logging at all.) -Original Message- From: Steve Kirk [mailto:[EMAIL PROTECTED] Sent: Monday, May 23, 2005 2:23 PM To: 'Tomcat Users List' Subject: RE: confused about simple logging If you really reach your wits end making logging work and just want a blunt instrument to detect one-off if your overloaded method is called, when not do something else to signal its presence, such as add a line to it which creates a file called "ive.been.called" in a certain directory. Gets you past having to fix your log/stream problem. You won't find this logging framework in the TC docs though ;) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: confused about simple logging
Lane wrote: I got the configured and working in server.xml and immediately set about trying to make it work only in a specific context. I've tried to configure it in $CATALINA_HOME/conf/Catalina/localhost/helloworld.xml and in $CATALINA_HOME/webapps/hellowworld/WEB-INF/web.xml but the seems to be ignored unless it is in $CATALINA_HOME/conf/server.xml I'm set now, but if anybody has information on per-context access logging it'd sure help me troubleshoot. I just took the Valve entry from a Host in my server.xml, stuck it inside a ROOT.xml file changing only the prefix attribute, restarted the server and bingo -- a context-specific log file is being created. There's really not much to it, as the example in the docs shows. Maybe you should post your entire Context file. -- Hassan Schroeder - [EMAIL PROTECTED] Webtuitive Design === (+1) 408-938-0567 === http://webtuitive.com dream. code. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: confused about simple logging
Sorry can't help you there. I was where you are now a year or more ago, "fancy logging frameworks - too much hassle to learn for the simple logs that I want". But I soon realised that it was more work, and quite a bit more ugly, trying to do your own thing. I'd say bite the bullet and embrace the latest release and logging framework. There have been a few different ones over recent versions, but the TC dev team are converging them nicely now. It might seem a little over engineered for simple logging requirements at first, but once you spend the time to make it work, you will get what you want, and come to realise that the advanced features are really useful for debugging in situations exactly like yours. I'm using commons-logging very successfully, is very flexible and not hard to learn. If you really reach your wits end making logging work and just want a blunt instrument to detect one-off if your overloaded method is called, when not do something else to signal its presence, such as add a line to it which creates a file called "ive.been.called" in a certain directory. Gets you past having to fix your log/stream problem. You won't find this logging framework in the TC docs though ;) > -Original Message- > From: Jim Henderson [mailto:[EMAIL PROTECTED] > Sent: Monday 23 May 2005 19:58 > To: Tomcat Users List > Subject: RE: confused about simple logging > > > Well I am having lots of self doubt. > > I am trying to install my own overloaded JDBCRealm, I have > been getting > some Sybase jdescripter error. (My backend DB has an old > means of encoding > passwords so I overloaded the getPassword method.) I don't > know if my code > is getting called or is it not. I have System.out trace > statements in > the constructor after the call to the super ctor as well as > the getPassword > method. And, I see none of my trace in any of the Tomcat log files. > > This is frustrating after 3 days. > > -Original Message- > From: Steve Kirk [mailto:[EMAIL PROTECTED] > Sent: Monday, May 23, 2005 1:46 PM > To: 'Tomcat Users List' > Subject: RE: confused about simple logging > > > > Not sure, ut I think all the output streams are diverted to > that file. It's > probably configurable. Don't know full detail to be honest. > Best wasy is > try it and see. > > > -Original Message- > > From: Jim Henderson [mailto:[EMAIL PROTECTED] > > Sent: Monday 23 May 2005 19:02 > > To: Tomcat Users List > > Subject: RE: confused about simple logging > > > > > > > > If I write to stdout where does that go? > > > > System.stdout.println("Where does this get printed to?"); > > > > I assume C:/tomcat.../log/stdout? > > > > -Original Message- > > From: Steve Kirk [mailto:[EMAIL PROTECTED] > > Sent: Monday, May 23, 2005 12:28 PM > > To: 'Tomcat Users List' > > Subject: RE: confused about simple logging > > > > > > > > Your confusion possibly arises because there are at least 2 > > types of logger > > that you might mean, and 3 main choices for one of those at > > the moment, > > although one of those 3 is deprecated and a second is > > probably becoming less > > popular. > > > > OK I'll take a quick stab and see if this gets you anywhere > > in the right > > direction. > > > > You mention two distinct types of logging. The 1st is the > > "hit" logging > > which is very similar to what you would get from apache > > httpd. This simply > > logs each incoming request. This is achieved by adding a > > to your > > %catalina_home%\conf\server.xml - you can embed it inside the > > , > > or tags, but for your > > purposes, just > > shove it in the engine for now. It looks a bit like this: > > > > > > > className="org.apache.catalina.valves.FastCommonAccessLogValve" > > directory="logs" prefix="ao_access_log_" suffix=".log" > > pattern="common" resolveHosts="false"/> > > > > > > You can tweak the path, filename, and the pattern that > > defines each line - > > see > > http://jakarta.apache.org/tomcat/tomcat-5.0-doc/config/valve.html > > for details. Leave resolveHosts set "false" to speed up > performance. > > > > Not that my example above is from my own 5.5.9 server - ISTR > > 5.0 config > > syntax is different - check the doc link above for the detail. > > > > The 2nd part of your logging is where you write your own > messages to a > > logfile. I did that as follows: > > > > java.util.logging.Logger logger = > > java.util.logging.Logger.getLogger("logname"); > > logger.setLevel(logLevel); > > fh = new FileHandler(logFilePath, maxLogFileSize, > logFileCount, true); > > fh.setFormatter(new AoLogFormatter(logFileDateTimePattern)); > > logger.addHandler(fh); > > > > Then to write a log message you can just do this: > > > > log("Write this to the log"); > > > > and it will write the log file to logFilePath > > > > See the java.util.logging.Logger javadocs for more details. > > > > This is very basic. Much more spophistication can be > achieved
isapi_redirect performance issues
We are using Tomcat 5.5.9 with IIS on the front end. IIS is serving all the static content and forwards the servlet requests to Tomcat using the latest version of isapi_redirect.dll and ajp13 protocol. After deploying the aplication over a server and accessing it through the internet I am noticing 8x to 10x performance slowdown when connecting to the application via port 80 as opposed to the direct port 8080. I tried using Apache WebServer in front instead of IIS and that works great – the performance problem is ONLY when using IIS in the front. Unfortunately my application has to be deployed with IIS and only port 80 open in the firewall. I have been able to reproduce this problem by generating a small 250 characters html page in response to the GET request. With Apache or connecting to Tomcat directly it takes about 20ms for the test client to get the page. Connecting through IIS it takes about 173ms. Has anybody been successfully using the IIS/Tomcat integration over the internet? Is there anything that can be done to improve the performance? IIS is also serving the static pages with good performance so its not a problem with standalone IIS either. Any idea/suggestions? Thanks Ahmed - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: confused about simple logging
Well I am having lots of self doubt. I am trying to install my own overloaded JDBCRealm, I have been getting some Sybase jdescripter error. (My backend DB has an old means of encoding passwords so I overloaded the getPassword method.) I don't know if my code is getting called or is it not. I have System.out trace statements in the constructor after the call to the super ctor as well as the getPassword method. And, I see none of my trace in any of the Tomcat log files. This is frustrating after 3 days. -Original Message- From: Steve Kirk [mailto:[EMAIL PROTECTED] Sent: Monday, May 23, 2005 1:46 PM To: 'Tomcat Users List' Subject: RE: confused about simple logging Not sure, ut I think all the output streams are diverted to that file. It's probably configurable. Don't know full detail to be honest. Best wasy is try it and see. > -Original Message- > From: Jim Henderson [mailto:[EMAIL PROTECTED] > Sent: Monday 23 May 2005 19:02 > To: Tomcat Users List > Subject: RE: confused about simple logging > > > > If I write to stdout where does that go? > > System.stdout.println("Where does this get printed to?"); > > I assume C:/tomcat.../log/stdout? > > -Original Message- > From: Steve Kirk [mailto:[EMAIL PROTECTED] > Sent: Monday, May 23, 2005 12:28 PM > To: 'Tomcat Users List' > Subject: RE: confused about simple logging > > > > Your confusion possibly arises because there are at least 2 > types of logger > that you might mean, and 3 main choices for one of those at > the moment, > although one of those 3 is deprecated and a second is > probably becoming less > popular. > > OK I'll take a quick stab and see if this gets you anywhere > in the right > direction. > > You mention two distinct types of logging. The 1st is the > "hit" logging > which is very similar to what you would get from apache > httpd. This simply > logs each incoming request. This is achieved by adding a > to your > %catalina_home%\conf\server.xml - you can embed it inside the > , > or tags, but for your > purposes, just > shove it in the engine for now. It looks a bit like this: > > >className="org.apache.catalina.valves.FastCommonAccessLogValve" > directory="logs" prefix="ao_access_log_" suffix=".log" > pattern="common" resolveHosts="false"/> > > > You can tweak the path, filename, and the pattern that > defines each line - > see > http://jakarta.apache.org/tomcat/tomcat-5.0-doc/config/valve.html > for details. Leave resolveHosts set "false" to speed up performance. > > Not that my example above is from my own 5.5.9 server - ISTR > 5.0 config > syntax is different - check the doc link above for the detail. > > The 2nd part of your logging is where you write your own messages to a > logfile. I did that as follows: > > java.util.logging.Logger logger = > java.util.logging.Logger.getLogger("logname"); > logger.setLevel(logLevel); > fh = new FileHandler(logFilePath, maxLogFileSize, logFileCount, true); > fh.setFormatter(new AoLogFormatter(logFileDateTimePattern)); > logger.addHandler(fh); > > Then to write a log message you can just do this: > > log("Write this to the log"); > > and it will write the log file to logFilePath > > See the java.util.logging.Logger javadocs for more details. > > This is very basic. Much more spophistication can be achieved through > config files. > > > -Original Message- > > From: Lane [mailto:[EMAIL PROTECTED] > > Sent: Monday 23 May 2005 18:01 > > To: Tomcat Users List > > Subject: confused about simple logging > > > > > > Hello. > > > > I'm a bit confused about simple logging on tomcat 5.0. I've > > read much of the > > FAQ at > > http://jakarta.apache.org/tomcat/faq/logging.html#builtIn but that > > doesn't seem to address what I'm looking for, which is just > > routine mundane > > daily activity. > > > > For instance, if I create and deploy a simple "Hello World" > > application that > > contains only index.jsp, no servlets, no external classes > and no JNDI > > resources, where on earth will a "hit" be recorded when I > navigate to > > http://localhost/helloworld/index.jsp ? And where is the > > error recorded if I > > mistype and navigate to http://localhost/helloworld/jndex.JSP ? > > > > Do I have to build such logging into the application? Or > > does Catalina handle > > that for me? And if so ... where on earth? > > > > I'm using FreeBSD installed at /usr/local/jakarta-tomcat5.0 > > > > I see log information in > /usr/local/jakarta-tomcat5.0/logs/stderr.log > > and /usr/local/jakarta-tomcat5.0/logs/stdout.log but nothing > > that records a > > "page hit." > > > > Thanks, > > > > lane > > > > > - > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For addition
Re: confused about simple logging
On Monday 23 May 2005 12:28, Steve Kirk wrote: > Your confusion possibly arises because there are at least 2 types of logger > that you might mean, and 3 main choices for one of those at the moment, > although one of those 3 is deprecated and a second is probably becoming > less popular. > > OK I'll take a quick stab and see if this gets you anywhere in the right > direction. > > You mention two distinct types of logging. The 1st is the "hit" logging > which is very similar to what you would get from apache httpd. This simply > logs each incoming request. This is achieved by adding a to your > %catalina_home%\conf\server.xml - you can embed it inside the > , or tags, but for your > purposes, just shove it in the engine for now. It looks a bit like this: > > >className="org.apache.catalina.valves.FastCommonAccessLogValve" > directory="logs" prefix="ao_access_log_" suffix=".log" > pattern="common" resolveHosts="false"/> > > > You can tweak the path, filename, and the pattern that defines each line - > see > http://jakarta.apache.org/tomcat/tomcat-5.0-doc/config/valve.html > for details. Leave resolveHosts set "false" to speed up performance. > > Not that my example above is from my own 5.5.9 server - ISTR 5.0 config > syntax is different - check the doc link above for the detail. > > The 2nd part of your logging is where you write your own messages to a > logfile. I did that as follows: > > java.util.logging.Logger logger = > java.util.logging.Logger.getLogger("logname"); > logger.setLevel(logLevel); > fh = new FileHandler(logFilePath, maxLogFileSize, logFileCount, true); > fh.setFormatter(new AoLogFormatter(logFileDateTimePattern)); > logger.addHandler(fh); > > Then to write a log message you can just do this: > > log("Write this to the log"); > > and it will write the log file to logFilePath > > See the java.util.logging.Logger javadocs for more details. > > This is very basic. Much more spophistication can be achieved through > config files. > > > -Original Message- > > From: Lane [mailto:[EMAIL PROTECTED] > > Sent: Monday 23 May 2005 18:01 > > To: Tomcat Users List > > Subject: confused about simple logging > > > > > > Hello. > > > > I'm a bit confused about simple logging on tomcat 5.0. I've > > read much of the > > FAQ at > > http://jakarta.apache.org/tomcat/faq/logging.html#builtIn but that > > doesn't seem to address what I'm looking for, which is just > > routine mundane > > daily activity. > > > > For instance, if I create and deploy a simple "Hello World" > > application that > > contains only index.jsp, no servlets, no external classes and no JNDI > > resources, where on earth will a "hit" be recorded when I navigate to > > http://localhost/helloworld/index.jsp ? And where is the > > error recorded if I > > mistype and navigate to http://localhost/helloworld/jndex.JSP ? > > > > Do I have to build such logging into the application? Or > > does Catalina handle > > that for me? And if so ... where on earth? > > > > I'm using FreeBSD installed at /usr/local/jakarta-tomcat5.0 > > > > I see log information in /usr/local/jakarta-tomcat5.0/logs/stderr.log > > and /usr/local/jakarta-tomcat5.0/logs/stdout.log but nothing > > that records a > > "page hit." > > > > Thanks, > > > > lane > > Thanks, Steven. I got the configured and working in server.xml and immediately set about trying to make it work only in a specific context. I guess I just can't leave well enough alone :) You are correct that for my purposes it is alright to log such requests "system" (engine || server) wide. But the documentation at http://jakarta.apache.org/tomcat/tomcat-5.0-doc/config/context.html#Special+Features seems to imply such an access log can be maintained per-context. I've tried to configure it in $CATALINA_HOME/conf/Catalina/localhost/helloworld.xml and in $CATALINA_HOME/webapps/hellowworld/WEB-INF/web.xml but the seems to be ignored unless it is in $CATALINA_HOME/conf/server.xml I'm set now, but if anybody has information on per-context access logging it'd sure help me troubleshoot. lane - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat Training
We would like to send one of our employees to some type of training for Tomcat administration. Does anyone have any suggestions on how to find reliable courses? We are located in Salt Lake City and prefer something local. -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.322 / Virus Database: 266.11.15 - Release Date: 5/22/2005
RE: confused about simple logging
Not sure, ut I think all the output streams are diverted to that file. It's probably configurable. Don't know full detail to be honest. Best wasy is try it and see. > -Original Message- > From: Jim Henderson [mailto:[EMAIL PROTECTED] > Sent: Monday 23 May 2005 19:02 > To: Tomcat Users List > Subject: RE: confused about simple logging > > > > If I write to stdout where does that go? > > System.stdout.println("Where does this get printed to?"); > > I assume C:/tomcat.../log/stdout? > > -Original Message- > From: Steve Kirk [mailto:[EMAIL PROTECTED] > Sent: Monday, May 23, 2005 12:28 PM > To: 'Tomcat Users List' > Subject: RE: confused about simple logging > > > > Your confusion possibly arises because there are at least 2 > types of logger > that you might mean, and 3 main choices for one of those at > the moment, > although one of those 3 is deprecated and a second is > probably becoming less > popular. > > OK I'll take a quick stab and see if this gets you anywhere > in the right > direction. > > You mention two distinct types of logging. The 1st is the > "hit" logging > which is very similar to what you would get from apache > httpd. This simply > logs each incoming request. This is achieved by adding a > to your > %catalina_home%\conf\server.xml - you can embed it inside the > , > or tags, but for your > purposes, just > shove it in the engine for now. It looks a bit like this: > > >className="org.apache.catalina.valves.FastCommonAccessLogValve" > directory="logs" prefix="ao_access_log_" suffix=".log" > pattern="common" resolveHosts="false"/> > > > You can tweak the path, filename, and the pattern that > defines each line - > see > http://jakarta.apache.org/tomcat/tomcat-5.0-doc/config/valve.html > for details. Leave resolveHosts set "false" to speed up performance. > > Not that my example above is from my own 5.5.9 server - ISTR > 5.0 config > syntax is different - check the doc link above for the detail. > > The 2nd part of your logging is where you write your own messages to a > logfile. I did that as follows: > > java.util.logging.Logger logger = > java.util.logging.Logger.getLogger("logname"); > logger.setLevel(logLevel); > fh = new FileHandler(logFilePath, maxLogFileSize, logFileCount, true); > fh.setFormatter(new AoLogFormatter(logFileDateTimePattern)); > logger.addHandler(fh); > > Then to write a log message you can just do this: > > log("Write this to the log"); > > and it will write the log file to logFilePath > > See the java.util.logging.Logger javadocs for more details. > > This is very basic. Much more spophistication can be achieved through > config files. > > > -Original Message- > > From: Lane [mailto:[EMAIL PROTECTED] > > Sent: Monday 23 May 2005 18:01 > > To: Tomcat Users List > > Subject: confused about simple logging > > > > > > Hello. > > > > I'm a bit confused about simple logging on tomcat 5.0. I've > > read much of the > > FAQ at > > http://jakarta.apache.org/tomcat/faq/logging.html#builtIn but that > > doesn't seem to address what I'm looking for, which is just > > routine mundane > > daily activity. > > > > For instance, if I create and deploy a simple "Hello World" > > application that > > contains only index.jsp, no servlets, no external classes > and no JNDI > > resources, where on earth will a "hit" be recorded when I > navigate to > > http://localhost/helloworld/index.jsp ? And where is the > > error recorded if I > > mistype and navigate to http://localhost/helloworld/jndex.JSP ? > > > > Do I have to build such logging into the application? Or > > does Catalina handle > > that for me? And if so ... where on earth? > > > > I'm using FreeBSD installed at /usr/local/jakarta-tomcat5.0 > > > > I see log information in > /usr/local/jakarta-tomcat5.0/logs/stderr.log > > and /usr/local/jakarta-tomcat5.0/logs/stdout.log but nothing > > that records a > > "page hit." > > > > Thanks, > > > > lane > > > > > - > > 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]
Multiple JNDI Realms in one Host Component?
Can you configure more than one jndi realms for ldap lookups in the same host component for Tomcat 5.5? Will it look to both, just the first one, or fail all together? thanks Teresa __ Teresa M. Hoes, MS, JCP, PCLP Senior Database & Web Developer iNet Global Solutions Delivery MWH Global, Inc. Office: 407.788.1397 Cell: 303.249.9580 email:[EMAIL PROTECTED]
Re: JK load balancer question
How can I update things programmatically using Tomcat 5.0? Kartheek - did you get this working? cheers, David |-+> | | Peter Rossbach | | | <[EMAIL PROTECTED]| | | >| | || | | 05/03/2005 03:10 | | | AM | | | Please respond to| | | "Tomcat Users| | | List"| | || |-+> >---| | | | To: Tomcat Users List | | cc: | | Subject: Re: JK load balancer question | >---| Hey, yes, you can configure the new status worker (>= jk 1.2.10) and used the new ant JkStatusUpdateTask (Tomcat 5.5.9) for active configuration. But the disabled flag don't stopp the complete traffic. Only stop that no new session create requests to the disabled worker. But I have implement a stopped flag at jk 1.2.11 that really stopp the complete traffic (Ant Task also avialable at 5.5.10 cvs head). This mode is very helpful at the Cluster szenario. I hope you use the Tomcat 5.5.9 with my cluster patches! http://issues.apache.org/bugzilla/show_bug.cgi?id=34389 Peter Hirode, Kartheek V. schrieb: >Hello all > >We are planning on using a cluster of Tomcat instances behind an Apache >server, load balanced with the JK connector. Everything is pretty >standard except: >(a) we'd like to turn OFF and ON the traffic coming into the Tomcat >instances based on certain conditions. Plus we'd like to turn ON and OFF >*programmatically*, i.e. the Tomcat instance notifies the Apache (JK) to >START and STOP sending traffic as conditions change > >(b) To reiterate again, the key thing is that we'd like to notify >*programmatically* from the Tomcat to the Apache JK. > >We've looked at the JK connector docs >http://jakarta.apache.org/tomcat/connectors-doc/config/workers.html >The attribute called "disabled" seems to do exactly that, but it is set >in the workers.properties file and is read during startup of the Apache. > > >Is there a way to modify this attribute during runtime, with an API-like >access? > >Thank you and best regards >-- Kartheek Hirode > HP.com Hub Services > Tel: 208.396.9031 Fax: 208.396.7770 > http://hpcom.corp.hp.com/hpps/programs/hub/ > > > > - 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: confused about simple logging
If I write to stdout where does that go? System.stdout.println("Where does this get printed to?"); I assume C:/tomcat.../log/stdout? -Original Message- From: Steve Kirk [mailto:[EMAIL PROTECTED] Sent: Monday, May 23, 2005 12:28 PM To: 'Tomcat Users List' Subject: RE: confused about simple logging Your confusion possibly arises because there are at least 2 types of logger that you might mean, and 3 main choices for one of those at the moment, although one of those 3 is deprecated and a second is probably becoming less popular. OK I'll take a quick stab and see if this gets you anywhere in the right direction. You mention two distinct types of logging. The 1st is the "hit" logging which is very similar to what you would get from apache httpd. This simply logs each incoming request. This is achieved by adding a to your %catalina_home%\conf\server.xml - you can embed it inside the , or tags, but for your purposes, just shove it in the engine for now. It looks a bit like this: You can tweak the path, filename, and the pattern that defines each line - see http://jakarta.apache.org/tomcat/tomcat-5.0-doc/config/valve.html for details. Leave resolveHosts set "false" to speed up performance. Not that my example above is from my own 5.5.9 server - ISTR 5.0 config syntax is different - check the doc link above for the detail. The 2nd part of your logging is where you write your own messages to a logfile. I did that as follows: java.util.logging.Logger logger = java.util.logging.Logger.getLogger("logname"); logger.setLevel(logLevel); fh = new FileHandler(logFilePath, maxLogFileSize, logFileCount, true); fh.setFormatter(new AoLogFormatter(logFileDateTimePattern)); logger.addHandler(fh); Then to write a log message you can just do this: log("Write this to the log"); and it will write the log file to logFilePath See the java.util.logging.Logger javadocs for more details. This is very basic. Much more spophistication can be achieved through config files. > -Original Message- > From: Lane [mailto:[EMAIL PROTECTED] > Sent: Monday 23 May 2005 18:01 > To: Tomcat Users List > Subject: confused about simple logging > > > Hello. > > I'm a bit confused about simple logging on tomcat 5.0. I've > read much of the > FAQ at > http://jakarta.apache.org/tomcat/faq/logging.html#builtIn but that > doesn't seem to address what I'm looking for, which is just > routine mundane > daily activity. > > For instance, if I create and deploy a simple "Hello World" > application that > contains only index.jsp, no servlets, no external classes and no JNDI > resources, where on earth will a "hit" be recorded when I navigate to > http://localhost/helloworld/index.jsp ? And where is the > error recorded if I > mistype and navigate to http://localhost/helloworld/jndex.JSP ? > > Do I have to build such logging into the application? Or > does Catalina handle > that for me? And if so ... where on earth? > > I'm using FreeBSD installed at /usr/local/jakarta-tomcat5.0 > > I see log information in /usr/local/jakarta-tomcat5.0/logs/stderr.log > and /usr/local/jakarta-tomcat5.0/logs/stdout.log but nothing > that records a > "page hit." > > Thanks, > > lane > > - > 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: confused about simple logging
Your confusion possibly arises because there are at least 2 types of logger that you might mean, and 3 main choices for one of those at the moment, although one of those 3 is deprecated and a second is probably becoming less popular. OK I'll take a quick stab and see if this gets you anywhere in the right direction. You mention two distinct types of logging. The 1st is the "hit" logging which is very similar to what you would get from apache httpd. This simply logs each incoming request. This is achieved by adding a to your %catalina_home%\conf\server.xml - you can embed it inside the , or tags, but for your purposes, just shove it in the engine for now. It looks a bit like this: You can tweak the path, filename, and the pattern that defines each line - see http://jakarta.apache.org/tomcat/tomcat-5.0-doc/config/valve.html for details. Leave resolveHosts set "false" to speed up performance. Not that my example above is from my own 5.5.9 server - ISTR 5.0 config syntax is different - check the doc link above for the detail. The 2nd part of your logging is where you write your own messages to a logfile. I did that as follows: java.util.logging.Logger logger = java.util.logging.Logger.getLogger("logname"); logger.setLevel(logLevel); fh = new FileHandler(logFilePath, maxLogFileSize, logFileCount, true); fh.setFormatter(new AoLogFormatter(logFileDateTimePattern)); logger.addHandler(fh); Then to write a log message you can just do this: log("Write this to the log"); and it will write the log file to logFilePath See the java.util.logging.Logger javadocs for more details. This is very basic. Much more spophistication can be achieved through config files. > -Original Message- > From: Lane [mailto:[EMAIL PROTECTED] > Sent: Monday 23 May 2005 18:01 > To: Tomcat Users List > Subject: confused about simple logging > > > Hello. > > I'm a bit confused about simple logging on tomcat 5.0. I've > read much of the > FAQ at > http://jakarta.apache.org/tomcat/faq/logging.html#builtIn but that > doesn't seem to address what I'm looking for, which is just > routine mundane > daily activity. > > For instance, if I create and deploy a simple "Hello World" > application that > contains only index.jsp, no servlets, no external classes and no JNDI > resources, where on earth will a "hit" be recorded when I navigate to > http://localhost/helloworld/index.jsp ? And where is the > error recorded if I > mistype and navigate to http://localhost/helloworld/jndex.JSP ? > > Do I have to build such logging into the application? Or > does Catalina handle > that for me? And if so ... where on earth? > > I'm using FreeBSD installed at /usr/local/jakarta-tomcat5.0 > > I see log information in /usr/local/jakarta-tomcat5.0/logs/stderr.log > and /usr/local/jakarta-tomcat5.0/logs/stdout.log but nothing > that records a > "page hit." > > Thanks, > > lane > > - > 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]
shared install under Linux
Hi, Could anyone share some advice on how to install Tomcat on a Linux box such that it can be shared by several users? I would imagine that you install Tomcat to a system folder like /usr or /opt and then users that want to use Tomcat will have configuration files in their own home folders. Any advice for a typical Linux install in general (folder layout), sharing aside? Thanks, Marius - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: confused about simple logging
On Monday 23 May 2005 12:01, Caldarale, Charles R wrote: > > From: Lane [mailto:[EMAIL PROTECTED] > > Subject: confused about simple logging > > > > where on earth will a "hit" be recorded when I navigate to > > http://localhost/helloworld/index.jsp ? > > See if this is what you want: > http://jakarta.apache.org/tomcat/tomcat-5.0-doc/config/valve.html > > - Chuck > > whoops. shoulda known it was a valve. thanks. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
migrating from oc4j to tomcat5.X
Is there any info for migrating apps from oc4j to tomcat5.x? thanks
Validation of HowTo Deploy
2nd test with the doc HTML inside... Hi, Because there is a lot of informations on several documents for deploying a webapp in Tomcat, it is difficult to define a simple and standard way to do it on a production server. Moreover, the deployment is different with Tomcat 3, 4, 5.0 or 5.5 So I decided to initialize a document which would be available for all Tomcat versions >= 5.5.7 If you have a well knowledge of Tomcat in a production environment, Can you help me to validate (correct and/or complete) a simple document like the one attach ? Notes : - The goal of this document is only to be a "as simple as possible" starting point for this theme. - I'm not sure the "re-deployment" paragraph when Automatic deployment is disabled is correct ... In advance, thank you. Regards. Howto deploy HOWTO deploy a webapp on a Tomcat production server Currently, when you want to deploy your webapp as a standard way on a Tomcat production server, you have to take informations in several documents (even threads in mailing list). The goal of this document is to describe a way that is as simple and standard as possible to do this, in a single document and with a concrete example (to avoid misunderstanding). For more details, you'll have to follow some links (at the end of this document). I) The context II) The furnitures II.1) the .war file II.2) an external config file III) The deployment III.1) on the localhost HOST III.2) on a custom Virtual Host III.3) on a custom Virtual Host as Context ROOT III.4) The re-deployment IV) The static files IV.1) delivered by Tomcat IV.2) delivered by Apache V) Some links I) The context - You are in a development team. You produce a webapp and have to provide it to an exploitation team. So, you don't have access to the pre-production and production servers. - A production server is a machine that must work all the time (24x7). - This document supposes you are using Tomcat Servers >= 5.5.7 Because there is only one set of documentations for all Tomcat 5.x versions but it can be bugs on certain versions, this document try to indicate the correct way for each Tomcat version. - As in Tomcat documentations, the descriptions below uses the variable name $CATALINA_HOME to refer to the directory into which you have installed Tomcat5. II) The furnitures II.1) the .war file You must package your web application in a single piece : myWebApp.war. The content of this package is : META-INF/ META-INF/MANIFEST.MF #The manifest file WEB-INF/ WEB-INF/lib/ #All the libraries needed for your webapp that are not present in the tomcat commons directories WEB-INF/classes #All your personal classes for the dynamic of the site WEB-INF/web.xml #The config file for your webapp#All your static files (.html, .js, .css, .jpg, .gif, .png, .ico, ...) This file concerns only development needs and can be the same for test, pre-production or production servers. Note : For more details on libraries to be present in the war file and the ones in tomcat commons directories, see the http://jakarta.apache.org/tomcat/tomcat-5.5-doc/class-loader-howto.html";>ClassLoader Howto II.2) an external config File All your webapp properties can be put in the WEB-INF/web.xml file. But, if some properties are handled by the Tomcat context administrators, they must be set in an external properties file named, in the documentations, the context.xml file. Moreover, this file provides the complete setup for your Tomcat Context. The syntax for the context.xml is documented within :http://jakarta.apache.org/tomcat/tomcat-5.5-doc/config/context.html";> http://jakarta.apache.org/tomcat/tomcat-5.5-doc/config/context.html This file can be inserted in the war (under META-INF/context.xml) but, if you have to describe some properties which can be modified by the exploitation team, it is easier (for administrators) to use it as an external file. A simple example : I want to define a dataSource and a Home directory for my webapp (these properties can be modified by the exploitation team on exploitation needs (change of BDD password,...), different values on pre-production or production servers), so my context file is : Note : The Context.docBase you define is an absolute path or relatif path under Host.appBase. When you deploy a war, you must define the name of this war. If Host.unpackWARs="true", this war will be expanded. So, the exploitation tea
Validation of HowTo Deploy
Hi, Because there is a lot of informations on several documents for deploying a webapp in Tomcat, it is difficult to define a simple and standard way to do it on a production server. Moreover, the deployment is different with Tomcat 3, 4, 5.0 or 5.5 So I decided to initialize a document which would be available for all Tomcat versions >= 5.5.7 If you have a well knowledge of Tomcat in a production environment, Can you help me to validate (correct and/or complete) a simple document like the one attach ? Notes : - The goal of this document is only to be a "as simple as possible" starting point for this theme. - I'm not sure the "re-deployment" paragraph when Automatic deployment is disabled is correct ... In advance, thank you. Regards. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: confused about simple logging
> From: Lane [mailto:[EMAIL PROTECTED] > Subject: confused about simple logging > > where on earth will a "hit" be recorded when I navigate to > http://localhost/helloworld/index.jsp ? See if this is what you want: http://jakarta.apache.org/tomcat/tomcat-5.0-doc/config/valve.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 unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: DBCP
DBCP has some config params in the context.xml that will clean up for you if you don't return resources to the pool. It will also test connections for you to make sure they're alive, and close/replace them if not. To config these features, set the params in your 's DBCP tag, for example: The attributes in question are those from removeAbandoned down. However it is not advised to rely on this as a means of managing your pool - this is your safety net. It's far better to return connections to the pool yourself in the first place. A proper try/catch/finally structure is the way to go, there are numerous examples on the web. You don't mention your TC version but a good starting poing in the docs for the latest version (5.5.x) are here: http://jakarta.apache.org/tomcat/tomcat-5.5-doc/jndi-datasource-examples-how to.html Read the whole page, and for a decent try/catch/finally code example, focus on the code in the section "Random Connection Closed Exceptions". > -Original Message- > From: Charles P. Killmer [mailto:[EMAIL PROTECTED] > Sent: Monday 23 May 2005 17:43 > To: Tomcat Users List > Subject: DBCP > > > Supposing I forgot to close a database connection. And the script was > requested numerous times. And now my scripts can not get any database > connections. Is there a way to close those connections without > restarting Tomcat? > > Charles > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
confused about simple logging
Hello. I'm a bit confused about simple logging on tomcat 5.0. I've read much of the FAQ at http://jakarta.apache.org/tomcat/faq/logging.html#builtIn but that doesn't seem to address what I'm looking for, which is just routine mundane daily activity. For instance, if I create and deploy a simple "Hello World" application that contains only index.jsp, no servlets, no external classes and no JNDI resources, where on earth will a "hit" be recorded when I navigate to http://localhost/helloworld/index.jsp ? And where is the error recorded if I mistype and navigate to http://localhost/helloworld/jndex.JSP ? Do I have to build such logging into the application? Or does Catalina handle that for me? And if so ... where on earth? I'm using FreeBSD installed at /usr/local/jakarta-tomcat5.0 I see log information in /usr/local/jakarta-tomcat5.0/logs/stderr.log and /usr/local/jakarta-tomcat5.0/logs/stdout.log but nothing that records a "page hit." Thanks, lane - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
DBCP
Supposing I forgot to close a database connection. And the script was requested numerous times. And now my scripts can not get any database connections. Is there a way to close those connections without restarting Tomcat? Charles
Re: Reload on Tomcat 5.5
> Don't let the snotty attitude get to you. You encounter those type on the > list from time to time. LOL > - Original Message - > From: "Remy Maucherat" <[EMAIL PROTECTED]> > To: "Tomcat Users List" > Sent: Sunday, May 22, 2005 11:07 AM > Subject: Re: Reload on Tomcat 5.5 > > > On 5/22/05, Robert Parsons <[EMAIL PROTECTED]> wrote: >> Hi, >> >> Thanks for the reply. >> >> Well to be more specific then I will give you an example of what I have >> tried as a test. I write a basic servlet that simply prints a line of >> text to the screen. If i compile it and deploy it, all is good. If I >> then make a modification to that that string in the source file, >> recompile then RELOAD (using ant), the servlet still outputs the >> ORIGINAL string (before the modification). The same thing happens If i >> recompile then press 'reload' in the tomcat manager application instead >> of using ant. > > I tested this, and it (of course) works fine. > >> If i perform the steps above on the latest tomcat 5.0 (rather than 5.5), >> the NEW string would be printed out after the reload. Any ideas? Coz >> i'm stumped. > > Well, don't plan to upgrade ever, because the "bug" will obviously > never be fixed. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Where do -Xms32m, -Xmx256m, and -Xrs go in the Tomcat 5.0.28 batch files?
http://web.bvu.edu/staff/david/index.jsp?section=software&subsection=tcservcfg&page=downloads -- Frank W. Zammetti Founder and Chief Software Architect Omnytex Technologies http://www.omnytex.com On Mon, May 23, 2005 10:56 am, Dakota Jack said: > Hi, again, Frank, > > Where can I get a copy of the code/binaries for Java Service Manager > (the update of Tomcat Service Manager)? I went to this site but there > seems to be no reference to any downloads. > > On 5/23/05, Frank W. Zammetti <[EMAIL PROTECTED]> wrote: >> And just to let you know, should you ever need/want to run Tomcat as a >> service, it's a different story at that point. At least on Windows, >> those >> settings are stored in the registry. If you ever need to go down that >> road, I highly suggest a look at Tomcat Service Manager: >> >> http://web.bvu.edu/staff/david/index.jsp?section=software&subsection=tcservcfg&page=overview >> >> Of course, if your not on Windows or not running as a service, you >> already >> have your answer :) >> >> -- >> Frank W. Zammetti >> Founder and Chief Software Architect >> Omnytex Technologies >> http://www.omnytex.com >> >> On Mon, May 23, 2005 10:11 am, Dakota Jack said: >> > Thanks for the assistance. >> > >> > I finally figured this out, for future people trying to find the same >> > answer. The environmental variables at the top of catalina.bat can be >> > set there. So, I added: >> > >> > SET CATALINA_OPTS=-Xms512m -Xmx512m -Xrs >> > >> > after >> > >> > >> > rem >> > rem CATALINA_OPTS (Optional) Java runtime options used when the >> > "start", >> > rem "stop", or "run" command is executed. >> > rem >> > >> > in catalina.bat. >> > >> > >> > >> > On 5/23/05, Parsons Technical Services >> <[EMAIL PROTECTED]> >> > wrote: >> >> Jack, >> >> >> >> To use the batch files you need to set it as an Environment Variable. >> >> The >> >> catalina.bat file will the pick it up and add it to command line. >> >> >> >> If you are wanting to do some quick testing, I think you MAY be able >> to >> >> include it on the command line with startup.bat. I don't run on >> Windows >> >> so I >> >> can't test it. >> >> >> >> If you look in the catalina.bat you will see the comments at the top >> >> talking >> >> about the variables. If you look in startup.bat you will see where it >> >> picks >> >> up the command line variables. >> >> >> >> The .sh files are the nix OS equivalent to the Windows .bat files. >> >> >> >> Doug >> >> >> >> - Original Message - >> >> From: "Edao, Aliye" <[EMAIL PROTECTED]> >> >> To: "Dakota Jack" <[EMAIL PROTECTED]> >> >> Cc: "Tomcat Users List" >> >> Sent: Monday, May 23, 2005 2:57 AM >> >> Subject: AW: Where do -Xms32m, -Xmx256m, and -Xrs go in the Tomcat >> >> 5.0.28 >> >> batch files? >> >> >> >> >> >> Hi Jack, >> >> >> >> The answer is CATALINA_HOME/bin/catalina.sh >> >> >> >> CATALINA_OPTS="-Xmx512m -Xss1024k -XX:+PrintGCDetails -server" ... >> >> >> >> >> >> >> >> Mit freundlichem Gruß / kind regards >> >> >> >> SBS ORS GD AHS OA42 >> >> Otto-Hahn-Ring 6 >> >> D - 81739 München >> >> Tel. (089) 636-41024 >> >> Fax (089) 636-49347 >> >> >> >> Dr. Aliye Edao >> >> mailto:[EMAIL PROTECTED] >> >> >> >> >> >> >> >> -Ursprüngliche Nachricht- >> >> Von: Dakota Jack [mailto:[EMAIL PROTECTED] >> >> Gesendet: Montag, 23. Mai 2005 08:48 >> >> An: Tomcat Users List >> >> Betreff: Where do -Xms32m, -Xmx256m, and -Xrs go in the Tomcat 5.0.28 >> >> batch >> >> files? >> >> >> >> >> >> I am running out of memory when running some imaging ops with Tomcat >> >> 5.0.28 and need to set the java command with the attributes -Xms32m, >> >> -Xmx256m, and -Xrs. However, danged if I can figure out how to do >> >> that. I am using the simple startup.bat and shutdown.bat. Where is >> >> the place I plugin with those values? Thanks? >> >> -- >> >> "You can lead a horse to water but you cannot make it float on its >> >> back." >> >> ~Dakota Jack~ >> >> >> >> - >> >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> >> >> >> >> - >> >> 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] >> >> >> >> >> > >> > >> > -- >> > "You can lead a horse to water but you cannot make it float on its >> back." >> > ~Dakota Jack~ >> > >> > - >> > To unsubscribe, e-mail: [EMAIL PROTECTED] >> > For additional commands, e-mail: [EMAIL PROTECTED] >> > >> > >> >> > > > -- > "You can lead a horse to water but you cannot make it float on its back." > ~Dakota
Re: Where do -Xms32m, -Xmx256m, and -Xrs go in the Tomcat 5.0.28 batch files?
Hi, again, Frank, Where can I get a copy of the code/binaries for Java Service Manager (the update of Tomcat Service Manager)? I went to this site but there seems to be no reference to any downloads. On 5/23/05, Frank W. Zammetti <[EMAIL PROTECTED]> wrote: > And just to let you know, should you ever need/want to run Tomcat as a > service, it's a different story at that point. At least on Windows, those > settings are stored in the registry. If you ever need to go down that > road, I highly suggest a look at Tomcat Service Manager: > > http://web.bvu.edu/staff/david/index.jsp?section=software&subsection=tcservcfg&page=overview > > Of course, if your not on Windows or not running as a service, you already > have your answer :) > > -- > Frank W. Zammetti > Founder and Chief Software Architect > Omnytex Technologies > http://www.omnytex.com > > On Mon, May 23, 2005 10:11 am, Dakota Jack said: > > Thanks for the assistance. > > > > I finally figured this out, for future people trying to find the same > > answer. The environmental variables at the top of catalina.bat can be > > set there. So, I added: > > > > SET CATALINA_OPTS=-Xms512m -Xmx512m -Xrs > > > > after > > > > > > rem > > rem CATALINA_OPTS (Optional) Java runtime options used when the > > "start", > > rem "stop", or "run" command is executed. > > rem > > > > in catalina.bat. > > > > > > > > On 5/23/05, Parsons Technical Services <[EMAIL PROTECTED]> > > wrote: > >> Jack, > >> > >> To use the batch files you need to set it as an Environment Variable. > >> The > >> catalina.bat file will the pick it up and add it to command line. > >> > >> If you are wanting to do some quick testing, I think you MAY be able to > >> include it on the command line with startup.bat. I don't run on Windows > >> so I > >> can't test it. > >> > >> If you look in the catalina.bat you will see the comments at the top > >> talking > >> about the variables. If you look in startup.bat you will see where it > >> picks > >> up the command line variables. > >> > >> The .sh files are the nix OS equivalent to the Windows .bat files. > >> > >> Doug > >> > >> - Original Message - > >> From: "Edao, Aliye" <[EMAIL PROTECTED]> > >> To: "Dakota Jack" <[EMAIL PROTECTED]> > >> Cc: "Tomcat Users List" > >> Sent: Monday, May 23, 2005 2:57 AM > >> Subject: AW: Where do -Xms32m, -Xmx256m, and -Xrs go in the Tomcat > >> 5.0.28 > >> batch files? > >> > >> > >> Hi Jack, > >> > >> The answer is CATALINA_HOME/bin/catalina.sh > >> > >> CATALINA_OPTS="-Xmx512m -Xss1024k -XX:+PrintGCDetails -server" ... > >> > >> > >> > >> Mit freundlichem Gruß / kind regards > >> > >> SBS ORS GD AHS OA42 > >> Otto-Hahn-Ring 6 > >> D - 81739 München > >> Tel. (089) 636-41024 > >> Fax (089) 636-49347 > >> > >> Dr. Aliye Edao > >> mailto:[EMAIL PROTECTED] > >> > >> > >> > >> -Ursprüngliche Nachricht- > >> Von: Dakota Jack [mailto:[EMAIL PROTECTED] > >> Gesendet: Montag, 23. Mai 2005 08:48 > >> An: Tomcat Users List > >> Betreff: Where do -Xms32m, -Xmx256m, and -Xrs go in the Tomcat 5.0.28 > >> batch > >> files? > >> > >> > >> I am running out of memory when running some imaging ops with Tomcat > >> 5.0.28 and need to set the java command with the attributes -Xms32m, > >> -Xmx256m, and -Xrs. However, danged if I can figure out how to do > >> that. I am using the simple startup.bat and shutdown.bat. Where is > >> the place I plugin with those values? Thanks? > >> -- > >> "You can lead a horse to water but you cannot make it float on its > >> back." > >> ~Dakota Jack~ > >> > >> - > >> To unsubscribe, e-mail: [EMAIL PROTECTED] > >> For additional commands, e-mail: [EMAIL PROTECTED] > >> > >> > >> - > >> 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] > >> > >> > > > > > > -- > > "You can lead a horse to water but you cannot make it float on its back." > > ~Dakota Jack~ > > > > - > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > -- "You can lead a horse to water but you cannot make it float on its back." ~Dakota Jack~ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat For SSL
Get ready for differing opinions on this, it's been asked loads of times before, try searching the archives for more info. My very quick summary would be that you do not need apache httpd to do SSL, and it can be very fast and stable without apache, as well as simpler to config if you don't already know apache, but there are good reasons to introduce apache. depending on the exact requirements of your site, there are some useful feature benefits from using apache+tomcat, and when the site gets heavily loaded, apache+tc performs better than tc alone, if you let apache handle the static page requests. A friend of mine advises me that he uses apache+tc for these reasons: - server side includes which is easier for most people to use to do minor dynamic content in otherwise static pages - mod_rewrite can help with redirection between http <-> https if you have pages that can only be accessed through one or other protocol - can config reverse proxy content off another server I do not run apache with my TC because I do not require any of these features; however I am not against using it for the right app. > -Original Message- > From: Scott Purcell [mailto:[EMAIL PROTECTED] > Sent: Monday 23 May 2005 14:39 > To: tomcat-user@jakarta.apache.org > Subject: Tomcat For SSL > > > Hello, > > I have a webapp that is running on Tomcat 5.5. I have always > developed just using Tomcat. Now I want to take a site, and > host it. The site will also run certificates for SSL. Should > I wrap my site around Apache now. Meaning should I install > apache and put tomcat inside? Or however this is done. Or can > tomcat handle SSL certificates (from Verisign?) as it is. I > hear of security issues, etc. > > Any information would be appreciated. > > Thanks, > Scott > > - > 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: Where do -Xms32m, -Xmx256m, and -Xrs go in the Tomcat 5.0.28 batch files?
And just to let you know, should you ever need/want to run Tomcat as a service, it's a different story at that point. At least on Windows, those settings are stored in the registry. If you ever need to go down that road, I highly suggest a look at Tomcat Service Manager: http://web.bvu.edu/staff/david/index.jsp?section=software&subsection=tcservcfg&page=overview Of course, if your not on Windows or not running as a service, you already have your answer :) -- Frank W. Zammetti Founder and Chief Software Architect Omnytex Technologies http://www.omnytex.com On Mon, May 23, 2005 10:11 am, Dakota Jack said: > Thanks for the assistance. > > I finally figured this out, for future people trying to find the same > answer. The environmental variables at the top of catalina.bat can be > set there. So, I added: > > SET CATALINA_OPTS=-Xms512m -Xmx512m -Xrs > > after > > > rem > rem CATALINA_OPTS (Optional) Java runtime options used when the > "start", > rem "stop", or "run" command is executed. > rem > > in catalina.bat. > > > > On 5/23/05, Parsons Technical Services <[EMAIL PROTECTED]> > wrote: >> Jack, >> >> To use the batch files you need to set it as an Environment Variable. >> The >> catalina.bat file will the pick it up and add it to command line. >> >> If you are wanting to do some quick testing, I think you MAY be able to >> include it on the command line with startup.bat. I don't run on Windows >> so I >> can't test it. >> >> If you look in the catalina.bat you will see the comments at the top >> talking >> about the variables. If you look in startup.bat you will see where it >> picks >> up the command line variables. >> >> The .sh files are the nix OS equivalent to the Windows .bat files. >> >> Doug >> >> - Original Message - >> From: "Edao, Aliye" <[EMAIL PROTECTED]> >> To: "Dakota Jack" <[EMAIL PROTECTED]> >> Cc: "Tomcat Users List" >> Sent: Monday, May 23, 2005 2:57 AM >> Subject: AW: Where do -Xms32m, -Xmx256m, and -Xrs go in the Tomcat >> 5.0.28 >> batch files? >> >> >> Hi Jack, >> >> The answer is CATALINA_HOME/bin/catalina.sh >> >> CATALINA_OPTS="-Xmx512m -Xss1024k -XX:+PrintGCDetails -server" ... >> >> >> >> Mit freundlichem Gruß / kind regards >> >> SBS ORS GD AHS OA42 >> Otto-Hahn-Ring 6 >> D - 81739 München >> Tel. (089) 636-41024 >> Fax (089) 636-49347 >> >> Dr. Aliye Edao >> mailto:[EMAIL PROTECTED] >> >> >> >> -Ursprüngliche Nachricht- >> Von: Dakota Jack [mailto:[EMAIL PROTECTED] >> Gesendet: Montag, 23. Mai 2005 08:48 >> An: Tomcat Users List >> Betreff: Where do -Xms32m, -Xmx256m, and -Xrs go in the Tomcat 5.0.28 >> batch >> files? >> >> >> I am running out of memory when running some imaging ops with Tomcat >> 5.0.28 and need to set the java command with the attributes -Xms32m, >> -Xmx256m, and -Xrs. However, danged if I can figure out how to do >> that. I am using the simple startup.bat and shutdown.bat. Where is >> the place I plugin with those values? Thanks? >> -- >> "You can lead a horse to water but you cannot make it float on its >> back." >> ~Dakota Jack~ >> >> - >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> >> - >> 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] >> >> > > > -- > "You can lead a horse to water but you cannot make it float on its back." > ~Dakota Jack~ > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat For SSL
Tomcat handles SSL certificates as it is, but I'd recommend install Apache to handle all cert instead of Tomcat. -Original Message- From: Scott Purcell [mailto:[EMAIL PROTECTED] Sent: Monday, May 23, 2005 9:39 AM To: tomcat-user@jakarta.apache.org Subject: Tomcat For SSL Hello, I have a webapp that is running on Tomcat 5.5. I have always developed just using Tomcat. Now I want to take a site, and host it. The site will also run certificates for SSL. Should I wrap my site around Apache now. Meaning should I install apache and put tomcat inside? Or however this is done. Or can tomcat handle SSL certificates (from Verisign?) as it is. I hear of security issues, etc. Any information would be appreciated. Thanks, Scott - 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: Where do -Xms32m, -Xmx256m, and -Xrs go in the Tomcat 5.0.28 batch files?
Thanks for the assistance. I finally figured this out, for future people trying to find the same answer. The environmental variables at the top of catalina.bat can be set there. So, I added: SET CATALINA_OPTS=-Xms512m -Xmx512m -Xrs after rem rem CATALINA_OPTS (Optional) Java runtime options used when the "start", rem "stop", or "run" command is executed. rem in catalina.bat. On 5/23/05, Parsons Technical Services <[EMAIL PROTECTED]> wrote: > Jack, > > To use the batch files you need to set it as an Environment Variable. The > catalina.bat file will the pick it up and add it to command line. > > If you are wanting to do some quick testing, I think you MAY be able to > include it on the command line with startup.bat. I don't run on Windows so I > can't test it. > > If you look in the catalina.bat you will see the comments at the top talking > about the variables. If you look in startup.bat you will see where it picks > up the command line variables. > > The .sh files are the nix OS equivalent to the Windows .bat files. > > Doug > > - Original Message - > From: "Edao, Aliye" <[EMAIL PROTECTED]> > To: "Dakota Jack" <[EMAIL PROTECTED]> > Cc: "Tomcat Users List" > Sent: Monday, May 23, 2005 2:57 AM > Subject: AW: Where do -Xms32m, -Xmx256m, and -Xrs go in the Tomcat 5.0.28 > batch files? > > > Hi Jack, > > The answer is CATALINA_HOME/bin/catalina.sh > > CATALINA_OPTS="-Xmx512m -Xss1024k -XX:+PrintGCDetails -server" ... > > > > Mit freundlichem Gruß / kind regards > > SBS ORS GD AHS OA42 > Otto-Hahn-Ring 6 > D - 81739 München > Tel. (089) 636-41024 > Fax (089) 636-49347 > > Dr. Aliye Edao > mailto:[EMAIL PROTECTED] > > > > -Ursprüngliche Nachricht- > Von: Dakota Jack [mailto:[EMAIL PROTECTED] > Gesendet: Montag, 23. Mai 2005 08:48 > An: Tomcat Users List > Betreff: Where do -Xms32m, -Xmx256m, and -Xrs go in the Tomcat 5.0.28 batch > files? > > > I am running out of memory when running some imaging ops with Tomcat > 5.0.28 and need to set the java command with the attributes -Xms32m, > -Xmx256m, and -Xrs. However, danged if I can figure out how to do > that. I am using the simple startup.bat and shutdown.bat. Where is > the place I plugin with those values? Thanks? > -- > "You can lead a horse to water but you cannot make it float on its back." > ~Dakota Jack~ > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > - > 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] > > -- "You can lead a horse to water but you cannot make it float on its back." ~Dakota Jack~ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Why puts Tomcat 3.3 suffix _1 to all java-files ?
Hi ! I have Tomcat Version 3.3.1 running. All the compilated files have the suffix "..._1.java". Why does Tomcat rename all classes ? Is there a way NOT to do this ? I need to precompile all JSP-Files in order to fasten up the system. Do you know how to do this ? I have to edit the build.xml, right ? But when I do this,. the files don't have the suffix "_1" and therefore Tomcat cannot work with them. Does anybody have an idea ? thanks. Thomas
Why puts Tomcat 3.3 suffix _1 to all java-files ?
Hi ! I have Tomcat Version 3.3.1 running. All the compilated files have the suffix "..._1.java". Why does Tomcat rename all classes ? Is there a way NOT to do this ? I need to precompile all JSP-Files in order to fasten up the system. Do you know how to do this ? I have to edit the build.xml, right ? But when I do this,. the files don't have the suffix "_1" and therefore Tomcat cannot work with them. Does anybody have an idea ? thanks. Thomas
Problem with redirection for Tomcat Basic Authentication
Hello, I am running Tomcat 5.5.9 on Windows 2000. I configured the ISAPI redirector (version 1.2.12) so that Tomcat worked along with IIS and everything seemed to work fine, but... I have a Tomcat application which requires basic authentication. Everything works fine if I access from http://localhost:8080/mywebapp/, I get authenticated and can navigate, so I think the realm is configured correctly. But if I try to access from http://localhost/mywebapp/ (the path to my app is added to uriworkermap.properties) I get a Windows authentication prompt window ('Enter network password' with fields to introduce username, password plus domain) instead of Tomcat's basic authentication prompt window. However, once I login (using http://localhost:8080/mywebapp/) I can navigate without problems through the application pages without using the ':8080' part. So it seems like redirection works except for the authentication part. Does anyone have any ideas so that I can login to my application from without the need to specify the port? Thanks in advance, Javier Santos - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: war deploy
On Fri, 20 May 2005 22:52:08 +0200 "Pfingstl Gernot" <[EMAIL PROTECTED]> wrote: > How can I depoly a war to a path like '/x/y'? > You can't deploy in a path like this (on several levels) : you can deploy x.war in /x ROOT.war in / but nothing in /x/y You can search more details in the archive (recently I saw an answer for this) ... - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat For SSL
Hello, I have a webapp that is running on Tomcat 5.5. I have always developed just using Tomcat. Now I want to take a site, and host it. The site will also run certificates for SSL. Should I wrap my site around Apache now. Meaning should I install apache and put tomcat inside? Or however this is done. Or can tomcat handle SSL certificates (from Verisign?) as it is. I hear of security issues, etc. Any information would be appreciated. Thanks, Scott - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
getSession(true) VERY slow - 5.5.7
I am running Tomcat 5.5.7 on Windows 2000 and when a user logs in, the call to request.getSession(true) is taking 20 seconds. Any ideas on how to track down the source of this problem? Bernard Durfee - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [Tomcat] Web Traffic Analisys Tool
Linux has some tools, comes with the distribution depending on which your using. I've used earthreal. Take a look at: http://www.topology.org/comms/netmon.html might be a start. -Original Message- From: Omar Adobati [mailto:[EMAIL PROTECTED] Sent: Saturday, May 21, 2005 6:08 AM To: tomcat-user@jakarta.apache.org Subject: [Tomcat] Web Traffic Analisys Tool Good Morning all, I'm looking for a free and good web traffic analyzer to use with tomcat 5.x but searching on the net I can't find anything good. Does anyone know a good tool? (if it exists) Thanks in advice -- Omar Adobati [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]
5.5.9 & unpackWARs="false"
Are there any negative effects when choosing to set unpackWARs to false? Performance? Or what are the advantages to choose unpackWARS="true" (I will not edit any expanded file)? Gernot - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: problem: Session invalidation in the servlet accessed via foreign context
OK no problem, I'm learning something here too :) I agree, one app cannot access a session created by another app (unless you set singlesignon, which we'll ignore for now). I am referring just to the single line I quoted earlier, from SRV.7.3 of 2.4 spec. I'm reading that as saying that if app A creates session X for user U, then the user U then accesses app B, which then includes a servlet from app A via its RequestDispatcher as you have done in your example, context A will not have access to the session in the second request, even though it created it, because it was routed through app B, which is not allowed to access it. I might have misinterpreted this, because I have no actual experience of it. I can see that it might be possible that the session is invisible to B but not A. If so I'm more than happy to be told I'm wrong by someone who knows? > -Original Message- > From: Akoulov, Alexandre [IT] > [mailto:[EMAIL PROTECTED] > Sent: Monday 23 May 2005 10:46 > To: Tomcat Users List > Subject: RE: problem: Session invalidation in the servlet > accessed via foreign context > > > Thanks, Steve, again. > > >That's what I'm > >reading the servlet 2.4 spec as saying, because you can't > invalidate a > >session in one context that is not accessible to you in > another context, > >irrespective of whether you use getRequestDispatcher to do that. > > What section of the spec defines such behaviour? I understand > that we cannot access a session created by one application > from another one. However, an application can manage its own > session(s) and the way the application is accessed (via > RequestDispatcher or via direct hit) should not affect > session management at all. > > Thanks again, I really appreciate your thoughts on this matter. > > > Kind regards, > > Alex. > > > -Original Message- > From: Steve Kirk [mailto:[EMAIL PROTECTED] > Sent: Monday, 23 May 2005 6:21 PM > To: 'Tomcat Users List' > Subject: RE: problem: Session invalidation in the servlet accessed via > foreign context > > > > OK. > > So... your conclusion is that you can't do that, right? > That's what I'm > reading the servlet 2.4 spec as saying, because you can't invalidate a > session in one context that is not accessible to you in > another context, > irrespective of whether you use getRequestDispatcher to do that. > > Or maybe I'm reading it wrong. That's possible as to be > honest I've never > tried what you're trying for real, I'm going on what the docs say not > personal experience. > > > -Original Message- > > From: Akoulov, Alexandre [IT] > > [mailto:[EMAIL PROTECTED] > > Sent: Monday 23 May 2005 06:53 > > To: Tomcat Users List > > Subject: RE: problem: Session invalidation in the servlet > > accessed via foreign context > > > > > > Thanks again, Steve, for your time. > > > > I am not trying to share sessions between different apps. I > > just want to ensure that when we're programmatically > > accessing web application in the different context it can do > > its own session management (ie invalidate / create new ones) > > > > -Original Message- > > From: Steve Kirk [mailto:[EMAIL PROTECTED] > > Sent: Monday, 23 May 2005 11:52 AM > > To: 'Tomcat Users List' > > Subject: RE: problem: Session invalidation in the servlet > accessed via > > foreign context > > > > > > > > I'm not sure why you think there is a problem with > > invalidation. I'm no > > expert, but I'm not sure that I would expect the code below > > to work, because > > by default, servlets must not share sessions between webapps, > > and you are > > asking that a client request to one context is passed to > > another, and still > > the session data is available. Withouht single sign-on, I > would have > > thought that sessions will not be shared. > > > > I've just flipped through the 2.4 servlet spec. Section > SRV.7.3 says > > something very specific about your scenario, as follows: "if > > a servlet uses > > the RequestDispatcher to call a servlet in another Web > > application, any > > sessions created for and visible to the servlet being called must be > > different from those visible to the calling servlet." > > > > I appreciate that you are also saying that v3/v4 behaved > > differently - but > > are you sure that the config of those versions was not > > different, perhaps > > they were configured to share sessions (single sign-on)? I'm > > not sure on > > the detail of earlier versions of the servlet spec, but > > perhaps session > > behaviour was defined differently in previous versions. You > > could find out > > with a google search, or maybe someone else will answer > > > > > -Original Message- > > > From: Akoulov, Alexandre [IT] > > > [mailto:[EMAIL PROTECTED] > > > Sent: Monday 23 May 2005 01:29 > > > To: Tomcat Users List > > > Subject: RE: problem: Session invalidation in the servlet > > > accessed via foreign context > > > > > >
AW: 5.5.9 - ant deploy
Thanks, but it doesn't work: Using a#b.war and path="/a/b" causes java.io.FileNotFoundException: webapps/a/b.war Using a#b.war and path="/a#b" I get Deployed application at context path /a#b but app does not use context.xml (no jndi resources were found) Using without "path", I get "Must specify 'path' attribute" "#" works when dropping war manually (cp) into webapps. Gernot -Ursprüngliche Nachricht- Von: Parsons Technical Services [mailto:[EMAIL PROTECTED] Gesendet: Montag, 23. Mai 2005 13:55 An: Tomcat Users List Betreff: Re: 5.5.9 - ant deploy Not having done this myself, try with no path attribute and a war file named a#b.war I think that was the recommendation from prior posts that worked. Doug - Original Message - From: "Pfingstl Gernot" <[EMAIL PROTECTED]> To: Sent: Monday, May 23, 2005 5:22 AM Subject: 5.5.9 - ant deploy How can I deploy a webapp with the tomcat deploy-ant-task to a context path e.g. /a/b? I do not have a problem to deploy a app to e.g. /a but a context path with subpaths does make problems. I tried various versions ('path="/a/b"' or 'path="/a#b"') in combination with varoius war names. I also have a /MEATA-INF/context.xml (without a "path" attribute). Gernot - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: 5.5.9 - ant deploy
Not having done this myself, try with no path attribute and a war file named a#b.war I think that was the recommendation from prior posts that worked. Doug - Original Message - From: "Pfingstl Gernot" <[EMAIL PROTECTED]> To: Sent: Monday, May 23, 2005 5:22 AM Subject: 5.5.9 - ant deploy How can I deploy a webapp with the tomcat deploy-ant-task to a context path e.g. /a/b? I do not have a problem to deploy a app to e.g. /a but a context path with subpaths does make problems. I tried various versions ('path="/a/b"' or 'path="/a#b"') in combination with varoius war names. I also have a /MEATA-INF/context.xml (without a "path" attribute). Gernot - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Where do -Xms32m, -Xmx256m, and -Xrs go in the Tomcat 5.0.28 batch files?
Jack, To use the batch files you need to set it as an Environment Variable. The catalina.bat file will the pick it up and add it to command line. If you are wanting to do some quick testing, I think you MAY be able to include it on the command line with startup.bat. I don't run on Windows so I can't test it. If you look in the catalina.bat you will see the comments at the top talking about the variables. If you look in startup.bat you will see where it picks up the command line variables. The .sh files are the nix OS equivalent to the Windows .bat files. Doug - Original Message - From: "Edao, Aliye" <[EMAIL PROTECTED]> To: "Dakota Jack" <[EMAIL PROTECTED]> Cc: "Tomcat Users List" Sent: Monday, May 23, 2005 2:57 AM Subject: AW: Where do -Xms32m, -Xmx256m, and -Xrs go in the Tomcat 5.0.28 batch files? Hi Jack, The answer is CATALINA_HOME/bin/catalina.sh CATALINA_OPTS="-Xmx512m -Xss1024k -XX:+PrintGCDetails -server" ... Mit freundlichem Gruß / kind regards SBS ORS GD AHS OA42 Otto-Hahn-Ring 6 D - 81739 München Tel. (089) 636-41024 Fax (089) 636-49347 Dr. Aliye Edao mailto:[EMAIL PROTECTED] -Ursprüngliche Nachricht- Von: Dakota Jack [mailto:[EMAIL PROTECTED] Gesendet: Montag, 23. Mai 2005 08:48 An: Tomcat Users List Betreff: Where do -Xms32m, -Xmx256m, and -Xrs go in the Tomcat 5.0.28 batch files? I am running out of memory when running some imaging ops with Tomcat 5.0.28 and need to set the java command with the attributes -Xms32m, -Xmx256m, and -Xrs. However, danged if I can figure out how to do that. I am using the simple startup.bat and shutdown.bat. Where is the place I plugin with those values? Thanks? -- "You can lead a horse to water but you cannot make it float on its back." ~Dakota Jack~ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - 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: Client Authentication certificates
Hi Mark - I saw it, and... don't know the answers for the second two (don't fully understand the questions) , but yes, you can create your own Certificate Authority, no problem -- however your clients will each then either have to click-through various warning dialogues each time, or they will have to add the root certificate to their list of trusted certificate authorities. How exactly to do this various from browser to browser (and OS to OS sometimes)... --Tim Mark Benussi wrote: Morning all.. I have a web app and for certain areas of the site I wish to restrict access to a Client Authentication certificate. I want to generate a root Certificate for my company domain and then sub domains for a variety of customers. Then I wish to be able to generate certificates for certain users within these sub domains. My questions are: Can I build a root certificate that is not signed by someone like Verisign or any other trusted root? (This is a cost issue). Can I implement the Client Authentication on a server which does not have SSL implemented? Can I implement the Client Authentication on a server which already has an SSL certificate, signed by someone like Verisign and effectively run both? Would appreciate your thoughts and also any pointers on where to start digging. TIA Mark - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Client Authentication certificates
Did anyone see this message as Remote host said: 554 delivery error: This user doesn't have an account. Can someone please confirm they got it? -Original Message- From: Mark Benussi [mailto:[EMAIL PROTECTED] Sent: 23 May 2005 10:38 To: tomcat-user@jakarta.apache.org Subject: Client Authentication certificates Morning all.. I have a web app and for certain areas of the site I wish to restrict access to a Client Authentication certificate. I want to generate a root Certificate for my company domain and then sub domains for a variety of customers. Then I wish to be able to generate certificates for certain users within these sub domains. My questions are: Can I build a root certificate that is not signed by someone like Verisign or any other trusted root? (This is a cost issue). Can I implement the Client Authentication on a server which does not have SSL implemented? Can I implement the Client Authentication on a server which already has an SSL certificate, signed by someone like Verisign and effectively run both? Would appreciate your thoughts and also any pointers on where to start digging. TIA Mark - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: problem: Session invalidation in the servlet accessed via foreign context
Thanks, Steve, again. >That's what I'm >reading the servlet 2.4 spec as saying, because you can't invalidate a >session in one context that is not accessible to you in another context, >irrespective of whether you use getRequestDispatcher to do that. What section of the spec defines such behaviour? I understand that we cannot access a session created by one application from another one. However, an application can manage its own session(s) and the way the application is accessed (via RequestDispatcher or via direct hit) should not affect session management at all. Thanks again, I really appreciate your thoughts on this matter. Kind regards, Alex. -Original Message- From: Steve Kirk [mailto:[EMAIL PROTECTED] Sent: Monday, 23 May 2005 6:21 PM To: 'Tomcat Users List' Subject: RE: problem: Session invalidation in the servlet accessed via foreign context OK. So... your conclusion is that you can't do that, right? That's what I'm reading the servlet 2.4 spec as saying, because you can't invalidate a session in one context that is not accessible to you in another context, irrespective of whether you use getRequestDispatcher to do that. Or maybe I'm reading it wrong. That's possible as to be honest I've never tried what you're trying for real, I'm going on what the docs say not personal experience. > -Original Message- > From: Akoulov, Alexandre [IT] > [mailto:[EMAIL PROTECTED] > Sent: Monday 23 May 2005 06:53 > To: Tomcat Users List > Subject: RE: problem: Session invalidation in the servlet > accessed via foreign context > > > Thanks again, Steve, for your time. > > I am not trying to share sessions between different apps. I > just want to ensure that when we're programmatically > accessing web application in the different context it can do > its own session management (ie invalidate / create new ones) > > -Original Message- > From: Steve Kirk [mailto:[EMAIL PROTECTED] > Sent: Monday, 23 May 2005 11:52 AM > To: 'Tomcat Users List' > Subject: RE: problem: Session invalidation in the servlet accessed via > foreign context > > > > I'm not sure why you think there is a problem with > invalidation. I'm no > expert, but I'm not sure that I would expect the code below > to work, because > by default, servlets must not share sessions between webapps, > and you are > asking that a client request to one context is passed to > another, and still > the session data is available. Withouht single sign-on, I would have > thought that sessions will not be shared. > > I've just flipped through the 2.4 servlet spec. Section SRV.7.3 says > something very specific about your scenario, as follows: "if > a servlet uses > the RequestDispatcher to call a servlet in another Web > application, any > sessions created for and visible to the servlet being called must be > different from those visible to the calling servlet." > > I appreciate that you are also saying that v3/v4 behaved > differently - but > are you sure that the config of those versions was not > different, perhaps > they were configured to share sessions (single sign-on)? I'm > not sure on > the detail of earlier versions of the servlet spec, but > perhaps session > behaviour was defined differently in previous versions. You > could find out > with a google search, or maybe someone else will answer > > > -Original Message- > > From: Akoulov, Alexandre [IT] > > [mailto:[EMAIL PROTECTED] > > Sent: Monday 23 May 2005 01:29 > > To: Tomcat Users List > > Subject: RE: problem: Session invalidation in the servlet > > accessed via foreign context > > > > > > Thanks a lot, Steve, for your reply. > > > > No, I am not using SingleSignOn neither hoping to share the > > same session across contexts. > > > > The only thing I was testing is that I could invalidate and > > then create a new session in different scenarios. > > > > I ran the test with the java debugger and could observe that > > when invalidating/creating a session in ForeignContextServlet > > it in fact did not create a new session and left us with the > > reference to old (ie invalidated) session after line No.3. > > > > My next step is start looking into the tomcat source code to > > try to work out what's happening. Do you think it's best way > > to approach this issue? > > > > > > Thanks again, > > > > Alex. > > > > -Original Message- > > From: Steve Kirk [mailto:[EMAIL PROTECTED] > > Sent: Monday, 23 May 2005 10:18 AM > > To: 'Tomcat Users List' > > Subject: RE: problem: Session invalidation in the servlet > accessed via > > foreign context > > > > > > > > I'm not sure I fully understand this issue, but seeing as > > no-one else seems > > to have replied yet, maybe a few Qs might help you work through it: > > > > Are you hoping that both contexts will share their sessions? > > > > Are you using the SingleSignOn feature in server.xml? > > > > When you say that ForeignContextServlet does not c
Client Authentication certificates
Morning all.. I have a web app and for certain areas of the site I wish to restrict access to a Client Authentication certificate. I want to generate a root Certificate for my company domain and then sub domains for a variety of customers. Then I wish to be able to generate certificates for certain users within these sub domains. My questions are: Can I build a root certificate that is not signed by someone like Verisign or any other trusted root? (This is a cost issue). Can I implement the Client Authentication on a server which does not have SSL implemented? Can I implement the Client Authentication on a server which already has an SSL certificate, signed by someone like Verisign and effectively run both? Would appreciate your thoughts and also any pointers on where to start digging. TIA Mark
Re: 5.5 FreeBSD Port
Ronald Klop wrote: If you have issues about jdk 1.5 on bsd being flaky, please post them on [EMAIL PROTECTED] By the way, I should have said "alpha" rather than "flaky" -- I haven't seen it to be flaky, just (perhaps wrongly) inferred it would be from its announced "alpha" status... (http://www.eyesbeyond.com/freebsddom/java/jdk15.html) Tim - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
5.5.9 - ant deploy
How can I deploy a webapp with the tomcat deploy-ant-task to a context path e.g. /a/b? I do not have a problem to deploy a app to e.g. /a but a context path with subpaths does make problems. I tried various versions ('path="/a/b"' or 'path="/a#b"') in combination with varoius war names. I also have a /MEATA-INF/context.xml (without a "path" attribute). Gernot - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat and JAASRealm
Hello :) (this is my very first post to any mailing-list) I've been trying to get Tomcat and its JAASRealm to work for maybe four weeks now. Even though the JAAS authentication succeeds, Tomcat does not pass me through to the protected web-app, but says HTTP 403 instead! I read somewhere that the JAASRealm implementations in Tomcat versions under 5.0.30 were somehow broken, but right now I'm using the latest version (5.5.9 + 1.4 compatibility pack), so that shouldn't be a problem. I've tried fiddling with how and what Principals are added to the Subject and so on.. I've tried everyhing I've thought of and more.. Could someone please offer some suggestions on this? :) Here's the JAASRealm configuration from server.xml: __ __ Here's a snippet of my web.xml: __ OutlookProxy /exchange/* GET POST outlook-role BASIC Protected Web-app __ The JAAS configuration for "OutlookProxy" contains one LoginModule. There's a user in tomcat-userx.xml that has been associated with the aforementioned role ("outlook-role"). The LoginModule class is in a jar file, under tomcat/server/lib. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: problem: Session invalidation in the servlet accessed via foreign context
OK. So... your conclusion is that you can't do that, right? That's what I'm reading the servlet 2.4 spec as saying, because you can't invalidate a session in one context that is not accessible to you in another context, irrespective of whether you use getRequestDispatcher to do that. Or maybe I'm reading it wrong. That's possible as to be honest I've never tried what you're trying for real, I'm going on what the docs say not personal experience. > -Original Message- > From: Akoulov, Alexandre [IT] > [mailto:[EMAIL PROTECTED] > Sent: Monday 23 May 2005 06:53 > To: Tomcat Users List > Subject: RE: problem: Session invalidation in the servlet > accessed via foreign context > > > Thanks again, Steve, for your time. > > I am not trying to share sessions between different apps. I > just want to ensure that when we're programmatically > accessing web application in the different context it can do > its own session management (ie invalidate / create new ones) > > -Original Message- > From: Steve Kirk [mailto:[EMAIL PROTECTED] > Sent: Monday, 23 May 2005 11:52 AM > To: 'Tomcat Users List' > Subject: RE: problem: Session invalidation in the servlet accessed via > foreign context > > > > I'm not sure why you think there is a problem with > invalidation. I'm no > expert, but I'm not sure that I would expect the code below > to work, because > by default, servlets must not share sessions between webapps, > and you are > asking that a client request to one context is passed to > another, and still > the session data is available. Withouht single sign-on, I would have > thought that sessions will not be shared. > > I've just flipped through the 2.4 servlet spec. Section SRV.7.3 says > something very specific about your scenario, as follows: "if > a servlet uses > the RequestDispatcher to call a servlet in another Web > application, any > sessions created for and visible to the servlet being called must be > different from those visible to the calling servlet." > > I appreciate that you are also saying that v3/v4 behaved > differently - but > are you sure that the config of those versions was not > different, perhaps > they were configured to share sessions (single sign-on)? I'm > not sure on > the detail of earlier versions of the servlet spec, but > perhaps session > behaviour was defined differently in previous versions. You > could find out > with a google search, or maybe someone else will answer > > > -Original Message- > > From: Akoulov, Alexandre [IT] > > [mailto:[EMAIL PROTECTED] > > Sent: Monday 23 May 2005 01:29 > > To: Tomcat Users List > > Subject: RE: problem: Session invalidation in the servlet > > accessed via foreign context > > > > > > Thanks a lot, Steve, for your reply. > > > > No, I am not using SingleSignOn neither hoping to share the > > same session across contexts. > > > > The only thing I was testing is that I could invalidate and > > then create a new session in different scenarios. > > > > I ran the test with the java debugger and could observe that > > when invalidating/creating a session in ForeignContextServlet > > it in fact did not create a new session and left us with the > > reference to old (ie invalidated) session after line No.3. > > > > My next step is start looking into the tomcat source code to > > try to work out what's happening. Do you think it's best way > > to approach this issue? > > > > > > Thanks again, > > > > Alex. > > > > -Original Message- > > From: Steve Kirk [mailto:[EMAIL PROTECTED] > > Sent: Monday, 23 May 2005 10:18 AM > > To: 'Tomcat Users List' > > Subject: RE: problem: Session invalidation in the servlet > accessed via > > foreign context > > > > > > > > I'm not sure I fully understand this issue, but seeing as > > no-one else seems > > to have replied yet, maybe a few Qs might help you work through it: > > > > Are you hoping that both contexts will share their sessions? > > > > Are you using the SingleSignOn feature in server.xml? > > > > When you say that ForeignContextServlet does not create a > new session > > object, are you explicitly testing that within > > ForeignContextServlet itself, > > or from a servlet in another context (e.g. > DebuggerServlet)? i.e. is > > null==session after step 3? > > > > You say that the session is invalid/null after line 2, but > > have you tested > > that it was valid/non-null before line 2? > > > > > -Original Message- > > > From: Akoulov, Alexandre [IT] > > > [mailto:[EMAIL PROTECTED] > > > Sent: Monday 23 May 2005 00:43 > > > To: tomcat-user@jakarta.apache.org > > > Subject: Re: problem: Session invalidation in the servlet > > > accessed via foreign context > > > > > > > > > Hi all, > > > > > > I'd greatly appreciate if you could shed a ray of light on > > > the following problem ( see below) > > > > > > > > > > > > -Original Message- > > > From: Akoulov, Alexandre [IT] > > > Sent:
Re: DBCP datasource works on 5.0.28 but fails on 5.5.9
Hi Steve, Am Montag, 23. Mai 2005 00:39 schrieb Steve Kirk: > I started replying to yr post including my full config, had nearly > finished, then saw the problem - I had a leading space in the 'url' > value within the tag of my context.xml file. Grrr! I [...] > Thanks very much to both of you for your patient help. Without your > prompting, I was ready to start first thing Monday by writing off 3 > days' upgrade effort by rolling back to 5.0.28, but now tomorrow is > now looking like being productive :) Great. :-) So, your new favourite song is "I like Mondays!". ;-) It would have been annoying to downgrade back, having lost all the time and knowing that you have to upgrade sometime again nevertheless. Typing errors are the worst errors to find as everything seems to be right, but what is thought to be right doesn't work. So you can now finally have joy. :-))) Best wishes Lutz - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]