Re: Sharing compiled JSPs
I believe you can configure the scratch directory of a host with its workDir attribute in server.xml. Hope this helps Bernhard Steve Vangasse schrieb: Yes but when you have multiple hosts, each one has it's own set of compiled JSPs under $CATALINA_HOME/work/Catalina/(hostname). I would like to have one scratch directory for the shared webapps that all the hosts can use. This way I can pre-compile just one set of JSPs. -Steve -Original Message- From: Martin Gainty [mailto:[EMAIL PROTECTED] Sent: 27 March 2007 22:37 To: Tomcat Users List Subject: Re: Sharing compiled JSPs Steve- jsps get pre-compiled to $CATALINA_HOME/work/Catalina/localhost generally in the form JSPName_jsp.java Does this answer your question? Martin-- --- This e-mail message (including attachments, if any) is intended for the use of the individual or entity to which it is addressed and may contain information that is privileged, proprietary , confidential and exempt from disclosure. If you are not the intended recipient, you are notified that any dissemination, distribution or copying of this communication is strictly prohibited. --- Le présent message électronique (y compris les pièces qui y sont annexées, le cas échéant) s'adresse au destinataire indiqué et peut contenir des renseignements de caractère privé ou confidentiel. Si vous n'êtes pas le destinataire de ce document, nous vous signalons qu'il est strictement interdit de le diffuser, de le distribuer ou de le reproduire. - Original Message - From: Steve Vangasse [EMAIL PROTECTED] To: users@tomcat.apache.org Sent: Tuesday, March 27, 2007 6:14 PM Subject: Sharing compiled JSPs My application has a large number of contexts under virtual hosts that use the same set of webapps. At present, all the JSPs are compiled to a different scratch directory under tomcat/work for each context. Is it possible to use a shared scratch directory to save on perm gen memory and cut down the load on the Jasper compiler? Thanks, Steve - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: FileUpload to different machine
A long time now since I played with Debian, but if I remember correctly just make your java program be able to write to a linux folder /etc/whatever, then get SAMBA, it allows you to map linux drives to windows and visa versa, then you will simply map a windows share to a lnked drive on linux, you write to the linux drive, it goes to the windows share. Or you could write to the linux box and just map that as a drive on windows, to the windows user it will feel like its on their machne SAMBA. Regards Johnny - Original Message - From: Dave [EMAIL PROTECTED] To: users@myfaces.apache.org; Tomcat Users List users@tomcat.apache.org Sent: Wednesday, March 28, 2007 8:00 AM Subject: FileUpload to different machine Web application using JSF deployed on JBoss runing on Linux. Another server machine is Windows 2003. For file upload, all the file need to be stored in the windows machine. Questions: how to access the windows' file system from Linux? For file upload, can the file be uploaded directly into the windows machine even though the JBoss is running on the Linux machine? Thanks dave - Be a PS3 game guru. Get your game face on with the latest PS3 news and previews at Yahoo! Games. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Configuring PoolMan for MySQL
Hi All I am wondering what is the steps to configure poolman to run with MYSQL Database over tomcat Apache? Regards
Re: Basic Auth without web.xml security-constraint not working
Ha ha... sounds like you looking for a magic function, which reminds me of my first computer program... got to tell you :) A million years ago in my 1st year I was walking past the varsity main frame, I'd heard all sorts of things about this amazing beast... so I walked in, watched someone using a punch card, after they left, I typed draw nude girl... stuck it in the machine and was hell-of-a-disappointed when I got syntax error ha ha. No, I think you expecting too much the Tomcat guys have let people who want to develop a quick servlet, define the DOORWAY to the role in web.xml and then quickly add users to the role in tomcat-users.xml and have provided a few simple functions like isUserInRole, which for the simplest of web sites are not even needed. Its simple, easy, and probably good enough for most things a tomcat developer needs... very nice of them. I was hoping that for what you need it would be possible to piggyback on that simple framework, even if it meant parsing the tomcat-users.xml to gray menu's, but it seems you have to work outside of that frame-work. If you are writing code like the stuff below forget about the simple security framework tomcat provides, you dont need the Doorway in web.xml, and likewise tomcat-users.xml is not going to do a thing it only wakes up if you do the web.xml stuff. So if you define the URL and the restraining role in web.xml, then tomcat wakes up and looks at tomcat-users.xml. If not, it doesnt know you doing security, and even if you write security code, it only between you and the browser, Tomcat will just send what you tell it to and get a browser response back. If you writing code at this level forget about that config stuff. you on your own. Cant quite see how you would use JAAS, but ok you going to use Ldap or something. No magic functions you have to do something like this... Using your code below, you make a servlet, and map all the urls through it. A request comes in You grap the user name and password... You call ldap or JAAS or whatever security system you using It tells you User OK, or NOT If OK you DISPATCH the request off to the JSP page and it displays. If you want to control menu's you ask the LDAP system or whatever if user is allowed access to various menu items (which represents other roles). You stick that in a Bean pass it to the JSP page, it enables or disables the menu's, and displays. Not hard to do if you know tomcat Somewhere and somehow you have to be able to tell the system all the users and roles... Whether you get it from JAAS or LDAP or parse the tomcat-users.xml, somewhere someone has to be able to tell the system, USERA is in RoleAccessPage1,23. In fact I'm beginning to think that what you looking for is yet another mapping... So for example you may have a generic roles like, Visitors, Admin, Managers, New Employees, Company Visitors blah blah... And then have another XML file that says ADMIN - ALL PAGES VISTORS - Intro.jsp, Welcome.jsp,Instructions.jsp,How To Pay and access the good stuff.jsp I still have a feeling all you really need is the generic tomcat security and someone to write a little XMLparsing code that gives you functions like IsThisUserAllowedToAccesThisPage(User,Link); Then you have Two Maps to fill out User - Role (already standard in tomcat) Role - Link (a new XML file) MaybeAnyway I dont think you going to find the magic function you looking for, and I also dont think its an oversight by the tomcat developers, just think you looking for an additional mapping function. Maybe it would be nice if Tomcat had a function to enumerates user roles (has it?) but even then you'd still be making some additional mapping function... If you need someone to write the framework for you, once you have decided what you want, call me. Regards, Johnny - Original Message - From: Berglas, Anthony [EMAIL PROTECTED] To: Tomcat Users List users@tomcat.apache.org Cc: [EMAIL PROTECTED] Sent: Wednesday, March 28, 2007 3:26 AM Subject: RE: Basic Auth without web.xml security-constraint not working Thanks for your reply. Getting the user name and password String authorization = request.getHeader(Authorization); if (authorization == null) return 0; // Authorization headers looks like Basic blahblah, // where blahblah is the base64 encoded username and // password. We want the part after Basic . String userInfo = authorization.substring(6).trim(); BASE64Decoder decoder = new BASE64Decoder(); String nameAndPassword = ; try{ nameAndPassword = new String(decoder.decodeBuffer(userInfo)); }catch ( IOException e ){} // Decoded part looks like username:password. int index =
Re: Basic Auth without web.xml security-constraint not working
En l'instant précis du 27/03/07 02:22, Berglas, Anthony s'exprimait en ces termes: Tomcat seems to only check the Authorization: headers if there is some security-constraint explicitly declared in web.xml. However, it appears that the optimization has been incorrectly implemented because it does not then recheck the header if request.isUserInRole(...) etc. are called. So users cannot log into a system that uses request.isUserInRole(...). More specifically, my simple application tests request.isUserInRole(...) and request.getRemoteUser(). If the user lacks permissions the application sends a 401, and the user is prompted for a name/password which is sent back as a Authorization: Basic dGltOlBhc3N3b3JkMQ== Tomcat implements the J2EE security model, no more, no less. If you are developping web applications, you have 2 possibilities. Either you develop using this model (you limit access to ressources based on security-constraint), either you handle all the authentification stuff by yourself. What seems you want to be able to do is having a public part (with a menu which display items depending on eventual current user's role) and a private part accessible only to some roles. Fine, the J2EE model can handle it easily. All you have to do is 1) have your code be able to handle cases where there is no current user (aka anonymous) 2) Provide users with possibility to login via a simple url (eg. /webapp-name/login) which has a security constraint that make it accessible to any logged in user (just have a common role for all user, let's name it h 'user') Now when user have logged in and browse the public part, their Principal object is kept, they are still logged-in and you can check their role. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Sharing compiled JSPs
En l'instant précis du 28/03/07 00:14, Steve Vangasse s'exprimait en ces termes: My application has a large number of contexts under virtual hosts that use the same set of webapps. At present, all the JSPs are compiled to a different scratch directory under tomcat/work for each context. Is it possible to use a shared scratch directory to save on perm gen memory and cut down the load on the Jasper compiler? Thanks, Steve You can do precompilation to limit precompile time, you can the webapp folder to limit the number of .class files in filesystem (well a very minor impact considreing current disk space) However, you can not save on perm gen because each webapp has it's own classloader, and the JSP must should loaded from within that classloader. Well you could *try* to move those precompiled JSP to the common classloader, but i would expect lots of troubles doing it. You could also *try* to move all your application to common classloader, but be very careful, some J2EE framework user singleton patterns and as such must be in separated classloaders. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Sharing compiled JSPs
Sounds like one time pre-compilation is achievable. Thanks for the tips. On the perm gen saving issue, all shared jars and classes are under the shared class loader already (shared/lib). I see what you're saying about possible problems with the common class loader, but would it be possible to move the compiled JSPs under the shared class loader? If so how would you go about doing that? Thanks, Steve -Original Message- From: David Delbecq [mailto:[EMAIL PROTECTED] Sent: 28 March 2007 12:11 To: Tomcat Users List Subject: Re: Sharing compiled JSPs En l'instant précis du 28/03/07 00:14, Steve Vangasse s'exprimait en ces termes: My application has a large number of contexts under virtual hosts that use the same set of webapps. At present, all the JSPs are compiled to a different scratch directory under tomcat/work for each context. Is it possible to use a shared scratch directory to save on perm gen memory and cut down the load on the Jasper compiler? Thanks, Steve You can do precompilation to limit precompile time, you can the webapp folder to limit the number of .class files in filesystem (well a very minor impact considreing current disk space) However, you can not save on perm gen because each webapp has it's own classloader, and the JSP must should loaded from within that classloader. Well you could *try* to move those precompiled JSP to the common classloader, but i would expect lots of troubles doing it. You could also *try* to move all your application to common classloader, but be very careful, some J2EE framework user singleton patterns and as such must be in separated classloaders. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Paths in CSS files
Thanks for all the replies. I will stick with the relative paths for now as that seems simplest. I also agree about keeping the css files clean. I would prefer not to use the JSP workaround for inserting the context path. I will look into the virtual hosts tho to see if it might be useful in the future. Thanks again, Mike. -Original Message- From: Dhaval Patel [mailto:[EMAIL PROTECTED] Sent: 27 March 2007 17:33 To: Tomcat Users List Subject: Re: Paths in CSS files This is like one of those choice questions. As other mentioned, you can rename css file to jsp file and use custom jsp tags. Personally I would not use it because I use dreamweaver when I design page. So I need preview while working on css. Also I would like to make css code clean as well. Anyway that's just me. Also if there are separate developers and designers in the team, designers will find themselves comfortable with this approach as they can use their design tool nicely and would save their time. Developers will also get happy as they see less questions/bugs from designers. As you have pointed out, redirect might cause interference with other application. To avoid that, you might have to put style, images, script, etc. in separate folder called assets or something. This way your design elements or extra files will be only in assets folder and your main web application structure will remain unchanged. Now you might have two images folder, one in your webapp as well as one inside assets. Those two folder serve different purpose. The one that is inside assets will only serve images that used by style and has only design meaning. Now the images folder on main webapp has images which have business meaning. For example, if you are selling some product, it has product images, etc. To me, it's just one decision which has to made. There are pros and cons of that but we we have to accept both. Regards, Dhaval - Original Message From: Mike Quilleash [EMAIL PROTECTED] To: Tomcat Users List users@tomcat.apache.org Sent: Tuesday, March 27, 2007 10:32:57 AM Subject: RE: Paths in CSS files Hi Dhaval, I'd prefer to avoid relative addressing but I've read that the paths are relative to the css, not the html (which would cause problems) that is loading it so it may work ok. Using a redirect in web.xml is an interesting option, however if my app has to co-exist with another application on the same webserver, which may be using the root context, then I might end up annoying the other application too. Would this even work (I'm no expert) but would the app web.xml even be considered for URL requests that do not fall inside the web app context path? Thanks. Mike. -Original Message- From: Dhaval Patel [mailto:[EMAIL PROTECTED] Sent: 27 March 2007 14:35 To: Tomcat Users List Subject: Re: Paths in CSS files Hi Mike, Use relative address for images in your CSS. That's a quick way. The other way I can think of is to use redirect in web.xml of your webapp in such a way that all request to /image/* goes to context/image/* Hope it helps. Regards, D - Original Message From: Mike Quilleash [EMAIL PROTECTED] To: Tomcat Users List users@tomcat.apache.org Sent: Tuesday, March 27, 2007 9:21:38 AM Subject: Paths in CSS files Hi all, I have a question about accessing resources from within CSS files, images mainly. Take the following CSS snippet. .bt { background:url(/image/box.png) no-repeat 100% 0; margin:0 0 0 18px; height:17px; } Particularly the url /image/box.png. Potentially my Tomcat web application may be run with a context path so /image/ becomes /contextpath/image and all the CSS breaks. Is there a way round this? Or should I be placing the urls somewhere else? Thanks. Mike. This e-mail is bound by the terms and conditions described at http://www.subexazure.com/mail-disclaimer.html Get your own web address. Have a HUGE year through Yahoo! Small Business. http://smallbusiness.yahoo.com/domains/?p=BESTDEAL - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail is bound by the terms and conditions described at http://www.subexazure.com/mail-disclaimer.html - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Get your own web address. Have a HUGE year through Yahoo! Small Business. http://smallbusiness.yahoo.com/domains/?p=BESTDEAL - To start a new topic, e-mail: users@tomcat.apache.org To
Re: request hangs
Well, as I've stated I'm not aware of any resource contention. The UDP socket is being used in a daemon thread that is executing asynchronously with the standard Tomcat request processing threads and I don't see any blocks waiting for monitors etc. Even worse, I tried removing tc-native from $TOMCAT_HOME/bin so APR is not being used anymore, and poof, the problem went away. That doesn't make me comfortable, but I don't have time to dig into the bowels of APR. Martin Gainty wrote: Hi Chris- Possible if the invoker 1)is executing the thread in a synchronized fashion ..but.. synchronization produces contention (the analogy is 2 boys reach for the same piece of bread at the dinner table at the same time where neither one wants to give the other his prize..it's best to avoid synchronization contention scenarios) 2)'Classic Thread' objects although in most scenarios these thread objects when associated with a key are not necessarily short-lived and may never be GCed so eventually you may see 'permgen space errors' happening as the objects which are classic Thread stay in heap forever.. 3)The best solution is to implement your class using ThreadLocal to quote A thread-local variable effectively provides a separate copy of its value for each thread that uses it. Each thread can see only the value associated with that thread The classic example is acquiring DBConnection objects where you want a specific DBConnection alloced and init'ed on a per thread basis an example public class ConnectionFactory { private static class ThreadLocalConnection extends ThreadLocal public Object initialValue() { return DriverManager.getConnection(ConfigurationSingleton.getDbUrl()); } } //ThreadLocalConnection private static ThreadLocalConnection conn = new ThreadLocalConnection(); //this will acquire a per-thread singleton object only for your thread }//ConnectionFactory This example comes from IBM site located at http://www-128.ibm.com/developerworks/java/library/j-threads3.html Does this make sense? HTH, Martin-- --- This e-mail message (including attachments, if any) is intended for the use of the individual or entity to which it is addressed and may contain information that is privileged, proprietary , confidential and exempt from disclosure. If you are not the intended recipient, you are notified that any dissemination, distribution or copying of this communication is strictly prohibited. --- Le présent message électronique (y compris les pièces qui y sont annexées, le cas échéant) s'adresse au destinataire indiqué et peut contenir des renseignements de caractère privé ou confidentiel. Si vous n'êtes pas le destinataire de ce document, nous vous signalons qu'il est strictement interdit de le diffuser, de le distribuer ou de le reproduire. - Original Message - From: Chris Eldredge [EMAIL PROTECTED] To: users@tomcat.apache.org Sent: Thursday, March 22, 2007 10:10 AM Subject: Re: request hangs Martin, Thanks for the response. The thread accepting UDP packets has a timeout of 100ms after which it waits again for a packet. Anyway, this is happening in its own thread, executing asynchronously from Tomcat's http request processing threads. I'm not aware of any limitations where accepting UDP packets should prevent another thread from accepting TCP connections... are you? Thanks again, Chris Martin Gainty wrote: Hi Chris- what happens when you log these events? start of UDP loop Accepting UDP packets on the loopback address. log the buffer from UDP accept goto start of UDP loop start of loop to write to temp file Reading standard out from a child process log the buffer which is read from standard out writing it to a temp file. go start of loop to write to temp file Im guessing the UDP packet accept logic *may possibly* be blocking as it waits for the socket to read (and hanging the thread) Martin -- --- This e-mail message (including attachments, if any) is intended for the use of the individual or entity to which it is addressed and may contain information that is privileged, proprietary , confidential and exempt from disclosure. If you are not the intended recipient, you are notified that any dissemination, distribution or copying of this communication is strictly prohibited. --- Le présent message électronique (y compris les pièces qui y sont annexées, le cas échéant) s'adresse au destinataire indiqué et peut contenir des renseignements de caractère privé ou confidentiel. Si vous n'êtes pas le destinataire de ce document, nous vous signalons qu'il est strictement interdit de le diffuser, de le distribuer ou de le reproduire. - Original
Re: Basic Auth without web.xml security-constraint not working
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Anthony, Berglas, Anthony wrote: Thanks for the reply. The underlying issue is that when Role R is required for Page P then *TWO* things need to happen depending on whether the user is in role R. These are 1. Allow or block access to page P. 2. Grey out or not grey out the menu item for page P. Right, I understand. We only want to specify the fact that Role R is required for Page P ONCE. Declarations in web.xml handle 1. but not 2. This is because the servlet spec does not have any way to ask what roles will be required for another URI. In fact, there's no way to ask what what roles are required for the /current/ URI... you will have to determine the role requirements yourself, then loop over request.isUserInRole() checking each one looking for a match, then display the link as appropriate. It's messy, which is why not many people do this type of thing. Well, since you haven't asked Tomcat to provide authorization, it doesn't care about authentication. That seems perfectly reasonable to me. Not so. I have asked Tomcat to provide authorization by calling request.isUserInRole(...). And Tomcat fails. Calling request.isUserInRole does not turn on authorization checking. Adding security-constraint to web.xml does that. Tomcat is not failing. It is working as designed, and follows the servlet spec. If you can find another servlet container that /can/ do this, then it is operating outside of the servlet spec. IMHO it is a straight bug in an optimization. isUserInRole etc. needs to have an extra test: if (! authenticationHeaderProcessed() ) processAuthenticationHeader(); Request.isUserInRole should happen long after the headers are processed. Your user's role it set at authentication time, not determined at authorization time. Honestly, your best bet IMO is to scan web.xml yourself at webapp startup and build your own list of URIs and role mappings. Then, you can consult your own registry to find out whether the current user will be allowed to access a particular URI. Actually, it doesn't sound that hard. The only problem is that you will have to step outside of the API provided by the servlet spec (which is not a big deal at all). The fact is that Tomcat will not perform authorization without also performing authentication. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.7 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFGCmvy9CaO5/Lv0PARAgpEAKCY+BbJMeEdVSD/0D8F3arcDrlMGwCePcIM IQPleQoqiV4hDIzTDW/tTMs= =AxRG -END PGP SIGNATURE- - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Basic Auth without web.xml security-constraint not working
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Johnny, I was hoping that for what you need it would be possible to piggyback on that simple framework, even if it meant parsing the tomcat-users.xml to gray menu's, but it seems you have to work outside of that frame-work. Parsing tomcat-users.xml never makes any sense. You can get all the information provided from that file through the servlet API: the user's name (request.getUserPrincipal().getName()) and you can check the roles using request.isUserInRole() -- of course, you have to know what roles to check, but you should already know that. What you might want to parse is the authorization mapping, which usually resides in web.xml. The OP wants to put this somewhere else (not sure why) and then have Tomcat enforce it (which ain't gonna happen). If you writing code at this level forget about that config stuff. you on your own. If you really want to hack around with authentication and authorization, check out securityfilter (http://securityfilter.sourrceforge.net). The code is portable across servlet containers, and especially across different versions of the same container ;) I still have a feeling all you really need is the generic tomcat security and someone to write a little XMLparsing code that gives you functions like IsThisUserAllowedToAccesThisPage(User,Link); I believe this is correct. Then you have Two Maps to fill out User - Role (already standard in tomcat) There's no reason to manage that map yourself. All you need is what's already in the servlet API. You can also get the Role - Link (really, URIs mapped to allowed roles) from web.xml. Just parse web.xml looking for security-constraint elements and use those. One single point of configuration (a requirement by the OP), and Tomcat enforces your authorization, which is a nice feature. Not having to write your own security code is always nice, because usually other people's (security) code is better than yours is likely to be. MaybeAnyway I dont think you going to find the magic function you looking for The only thing I can think of us using JMX to snoop Tomcat's existing URI-Roles mapping, which is't got to have lying around. The only question is whether or not it is available to unprivileged webapps. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.7 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFGCm5t9CaO5/Lv0PARAmDDAKCnMJBeiVYkIro2mNh5xs+tfcjWQgCeL/hS 5MEhE/C7B3ArZfB2ktsoZs4= =TfAo -END PGP SIGNATURE- - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat 6.0.10 hangs on startup when APR enabled
Hi, Tomcat hangs on startup when I try to enable the APR native library. After setting java.library.path to /usr/local/apr/lib/, catalina.out gets just these two lines: 28.03.2007 16:14:00 org.apache.catalina.core.AprLifecycleListener init INFO: Loaded Apache Tomcat Native library 1.1.8. ... and nothing more! It seems like Tomcat hangs. When removing the java.library.path setting, Tomcat starts up fine. I installed the APR lib as described in http://tomcat.apache.org/tomcat-6.0-doc/apr.html. To fulfill the build dependencies the following packages have been installed: libapr1 1.2.7-3 libapr1-dev 1.2.7-3 libaprutil1 1.2.7-2 libssl-dev 0.9.8b-2ubuntu2 libssl0.9.8 0.9.8b-2ubuntu2 my environment: Linux Ubuntu 6.10 (Edgy) AMD64 Java HotSpot(TM) 64-Bit Server VM (build 1.6.0-b105, mixed mode) Tomcat 6.0.10 Any hints? Regards, Stefan - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: send access log to remote server
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Martin, Martin Strand wrote: Hi all. :) I want to make Tomcat send it's access log to a remote server (log4j or syslog). Configuring all other logging with log4j is pretty simple but it seems I can't do the same with the AccessLogValve. Do I need to write my own Valve in order to do that? Perhaps someone else has already done this? Log4j already has built-in support for syslog. You can just use the syslog appender configured appropriately and your logs should stream to another server. I'm not sure how the AccessLogValve works, exactly, and how it does its logging. If it just uses commons-logging that can be captured by log4j and routed to a particular appender, then you should be able to do something like: log4j.category.org.apache.tomcat.catalina.AccessLogValve=syslog, INFO log4j.appender.syslog=org.apache.log4j.net.SyslogAppender log4j.appender.syslog.layout=[whatever] log4j.appender.syslog.syslogHost=some.remote.host log4j.appender.syslog.facilityString=my-webapp Hope that helps, - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.7 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFGCnzM9CaO5/Lv0PARAsp4AJ4xkicVii0CP2BWBrA6DXmm3TlIjQCfeCVJ qPdrKHMH+B4ITc7/GJVdpbg= =7ZWU -END PGP SIGNATURE- - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Replacing tomcat-users.xml
Take a look at this HOWTO. It describes how to configure security/realms to fit your needs: http://tomcat.apache.org/tomcat-5.5-doc/realm-howto.html cheers - Warren -Original Message- From: Jean-Sebastien Pilon [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 28, 2007 12:08 AM To: Tomcat Users List Subject: Replacing tomcat-users.xml Hello, I would like to replace the tomcat-users.xml file with something like auth_ldap on apache's httpd. I want to integrate the tomcat access to the manager, etc.. To Active directory. If any one has any hints, it would be appreciated. TIA NOTICE: This email contains privileged and confidential information and is intended only for the individual to whom it is addressed. If you are not the named addressee, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this transmission by mistake and delete this communication from your system. E-mail transmission cannot be guaranteed to be secured or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. AVIS: Le présent courriel contient des renseignements de nature privilégiée et confidentielle et n'est destiné qu'à la personne à qui il est adressé. Si vous n'êtes pas le destinataire prévu, vous êtes par les présentes avisés que toute diffusion, distribution ou reproduction de cette communication est strictement interdite. Si vous avez reçu ce courriel par erreur, veuillez en aviser immédiatement l'expéditeur et le supprimer de votre système. Notez que la transmission de courriel ne peut en aucun cas être considéré comme inviolable ou exempt d'erreur puisque les informations qu'il contient pourraient être interceptés, corrompues, perdues, détruites, arrivées en retard ou incomplètes ou contenir un virus. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
memory usage
Hi, I have configured the jvmoptions to have a higher perm size -XX:MaxPermSize=128m in the service.bat file and it is reflected in the tomcat6w.exe list of jvmoptions. Now I want to know if there is a way to know if tomcat is actually using rather set to specified amout of perm space? Can some body hellp me with this. Thanks, Samanth.
Re: Configuring PoolMan for MySQL
Are you referring to Connection Pooling: http://tomcat.apache.org/tomcat-6.0-doc/jndi-datasource-examples-howto.html ? -Rashmi On 3/28/07, Mohammed Zabin [EMAIL PROTECTED] wrote: Hi All I am wondering what is the steps to configure poolman to run with MYSQL Database over tomcat Apache? Regards - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: send access log to remote server
Martin, I have a filter that logs to a database table. It could easily be modified to make log4j entries, which can then be tied to any valid log4j appender. B. Martin Strand wrote: Hi all. :) I want to make Tomcat send it's access log to a remote server (log4j or syslog). Configuring all other logging with log4j is pretty simple but it seems I can't do the same with the AccessLogValve. Do I need to write my own Valve in order to do that? Perhaps someone else has already done this? Thanks, Martin - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: send access log to remote server
That sounds interesting, could you share the code? :) Martin On Wed, 28 Mar 2007 18:09:36 +0200, Brantley Hobbs [EMAIL PROTECTED] wrote: Martin, I have a filter that logs to a database table. It could easily be modified to make log4j entries, which can then be tied to any valid log4j appender. B. Martin Strand wrote: Hi all. :) I want to make Tomcat send it's access log to a remote server (log4j or syslog). Configuring all other logging with log4j is pretty simple but it seems I can't do the same with the AccessLogValve. Do I need to write my own Valve in order to do that? Perhaps someone else has already done this? Thanks, Martin - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Which Tomcat 5.5.23 file do I download for Windows?
Tim - Thank you for replying. We currently run Documentum (Webtop) utilizing catalina.bat on Tomcat 5.0.28. When installing webtop, it errors out and says cannot find file catalina.bat or its path (which should be C:\Program Files\Apache Software Foundation\Tomcat5.5\bin I was hoping that someone had across this issue before. Jayson -Original Message- From: Tim Lucia [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 28, 2007 9:59 AM To: 'Tomcat Users List' Subject: RE: Which Tomcat 5.5.23 file do I download for Windows? If you run Tomcat as a service on Windows, then you have what you need -- no reason to have Catalina.bat. Tim -Original Message- From: Jayson Enriquez [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 28, 2007 10:18 AM To: users@tomcat.apache.org Subject: Which Tomcat 5.5.23 file do I download for Windows? Good morning! I am currently on 5.0.28. We are looking into 5.5.23 on Windows 2000. I downloaded and installed the Core 'Windows Service Installer' but was missing the Catalina.bat file. I want to make sure that I am downloading the correct file. Please assist. Thank you Jayson Enriquez CHDP Sacramento Municipal Utility District Business Technology / EDM Support 916 . 732 . 6977 - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Which Tomcat 5.5.23 file do I download for Windows?
Well then, you aren't downloading the correct file. You need the zip which contains Catalina.bat. Tim -Original Message- From: Jayson Enriquez [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 28, 2007 1:08 PM To: Tomcat Users List Subject: RE: Which Tomcat 5.5.23 file do I download for Windows? Tim - Thank you for replying. We currently run Documentum (Webtop) utilizing catalina.bat on Tomcat 5.0.28. When installing webtop, it errors out and says cannot find file catalina.bat or its path (which should be C:\Program Files\Apache Software Foundation\Tomcat5.5\bin I was hoping that someone had across this issue before. Jayson -Original Message- From: Tim Lucia [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 28, 2007 9:59 AM To: 'Tomcat Users List' Subject: RE: Which Tomcat 5.5.23 file do I download for Windows? If you run Tomcat as a service on Windows, then you have what you need -- no reason to have Catalina.bat. Tim -Original Message- From: Jayson Enriquez [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 28, 2007 10:18 AM To: users@tomcat.apache.org Subject: Which Tomcat 5.5.23 file do I download for Windows? Good morning! I am currently on 5.0.28. We are looking into 5.5.23 on Windows 2000. I downloaded and installed the Core 'Windows Service Installer' but was missing the Catalina.bat file. I want to make sure that I am downloading the correct file. Please assist. Thank you Jayson Enriquez CHDP Sacramento Municipal Utility District Business Technology / EDM Support 916 . 732 . 6977 - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Error importing SSL certificate
Keytool -import -alias tomcat -trustcacerts -file c:\tomcat50\cert.cer -keystore c:\tomcat50\.keystore -Original Message- From: Jean-Sebastien Pilon [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 28, 2007 12:42 PM To: Tomcat Users List Subject: RE: Error importing SSL certificate What is the command you are using to import the certificate ? -Original Message- From: Reis, Tom [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 28, 2007 1:36 PM To: users@tomcat.apache.org Subject: Error importing SSL certificate I receive the following error when trying to import a Verisign SSL certificate. Any ideas? keytool error: java.lang.Exception: Failed to establish chain from reply NOTICE: This email contains privileged and confidential information and is intended only for the individual to whom it is addressed. If you are not the named addressee, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this transmission by mistake and delete this communication from your system. E-mail transmission cannot be guaranteed to be secured or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. AVIS: Le présent courriel contient des renseignements de nature privilégiée et confidentielle et n'est destiné qu'à la personne à qui il est adressé. Si vous n'êtes pas le destinataire prévu, vous êtes par les présentes avisés que toute diffusion, distribution ou reproduction de cette communication est strictement interdite. Si vous avez reçu ce courriel par erreur, veuillez en aviser immédiatement l'expéditeur et le supprimer de votre système. Notez que la transmission de courriel ne peut en aucun cas être considéré comme inviolable ou exempt d'erreur puisque les informations qu'il contient pourraient être interceptés, corrompues, perdues, détruites, arrivées en retard ou incomplètes ou contenir un virus. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Is it possible somehow for Tomcat to serve ASP.NET pages?
Easy to simulate, Add Thread.Sleep(1) and then print a blue screen ha ha, dont shoot me, just kidding. No, I dont think it will ever happen, I think the problem will always be that programmers on .NET dig into the win32 system too much and use add-on stuff like MS transaction servers. Would have to simulate just about all MS technologies, and that means Java programmers would have to fix it first dont want that... ok ok I cant help myself ha ha. Closest I've seen is Grasshopper http://blog.taragana.com/index.php/archive/how-to-convert-aspnet-applications-to-java-j2ee-introducing-grasshopper/ It allows a developer developing on .net to target java byte code or classes that run on Tomcat, but its always going to have to be a carefully designed contraption. Sorry no but if you new to Tomcat and thinking about Java... Welcome! - Original Message - From: kz [EMAIL PROTECTED] To: Tomcat Users List users@tomcat.apache.org Sent: Tuesday, March 27, 2007 10:16 AM Subject: Is it possible somehow for Tomcat to serve ASP.NET pages? Regards, Khurram - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat 6.0.10 hangs on startup when APR enabled
Stefan Armbruster wrote: Hi, Tomcat hangs on startup when I try to enable the APR native library. After setting java.library.path to /usr/local/apr/lib/, catalina.out gets just these two lines: You will need apr 1.2.x The generic path for that looks like /usr/local/apr-1/lib The /usr/local/apr/lib is for APR 0.9.x shipped with Apache Httpd 2.0.x and Subversion, so try to set the correct path to APR-1 Regards, Mladen. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: increase the backend idle connection timeout or the connection_pool_minsize
Hi, I think in mod_jk 1.2.20 these old parameters changed with new parameter names, these old paramter does not take effect into your mod_jk. Please change them with new name. Please refer URL for more details changes in new mod_jk: http://tomcat.apache.org/connectors-doc/reference/printer/workers.html worker.tomcat-publicweb-01.cachesize=10 worker.tomcat-publicweb-01.cache_timeout=600 It should be: worker.tomcat-publicweb-01.connection_pool_size=10 worker.tomcat-publicweb-01.connection_pool_timeout=600 worker.tomcat-publicweb-01.connection_pool_minsize=6 I also suggest to increase the nos for worker.tomcat-publicweb-01.connection_pool_size=50 worker.tomcat-publicweb-01.connection_pool_minsize=26 This modification you need to do in workers.properties. Please update this does not help. With regards, Babu Satasiya Cisco System Inc. Fletcher Cocquyt wrote: Rainer Jung rainer.jung at kippdata.de writes: Yes, but the log message is talking about the min size. The default min size is size/2, but we changed it between 1.2.19 and 1.2.20 to (size+1)/2. So for prefork the min size was 0 until 1.2.19 and is 1 starting with 1.2.20. So I tried connection_pool_minsize=1 - no discernable effect on error rate I've tried tuning all the other suggested parameters without a noticable effect on the rate of these info messages (2000-3000/hour) I tried: maxActive 40, maxIdle 5, maxWait 3000 no discernable difference in error rate. Maybe I need to modify them with bigger deltas to see a difference? Is there a way to tell which parameter would have the most impact? If those are for a DataSource, they have no relation to your mod_jk messages. Yes, maxActive 40, maxIdle 5, maxWait 3000 are all in the context.xml file in the datasource definition - so these would not affect mod_jk messages - I get that now! I tried connectionTimeout = 60 (10 times the default of 60 seconds) - no reduction in error rate Are you sure, you put it into the correct connector? I put it into the server.xml AJP connector - actually I'm not sure now if I had the value in quotes: Server port=13135 shutdown=SHUTDOWN Service name=Catalina Connector port=13138 / Connector port=13139 protocol=AJP/1.3 connectionTimeout=60 / Engine name=Catalina defaultHost=localhost jvmRoute=tomcat-publicweb-01 Logger className=org.apache.catalina.logger.FileLogger / Host name=localhost appBase=webapps / /Engine /Service /Server Please post your version numbers, platform details, log example and relevant apache and tomcat configuration items. Web servers: Solaris 9 x86, Apache 2.0.52, mod_jk 1.2.20 App servers: Solaris 9 Sparc, tomcat 5.0 worker definition: worker.tomcat-publicweb-01.type=ajp13 worker.tomcat-publicweb-01.host=irt-app-01 worker.tomcat-publicweb-01.port=13139 worker.tomcat-publicweb-01.lbfactor=50 worker.tomcat-publicweb-01.cachesize=10 worker.tomcat-publicweb-01.cache_timeout=600 worker.tomcat-publicweb-01.socket_keepalive=1 worker.tomcat-publicweb-01.retries=2 worker.tomcat-publicweb-01.socket_timeout=30 worker.tomcat-publicweb-01.connect_timeout=2000 worker.tomcat-publicweb-01.prepost_timeout=5000 worker.tomcat-publicweb-01.reply_timeout=30 mod_jk errors: ajp_send_request::jk_ajp_common.c (1201): (tomcat-publicweb-01) error sending request. Will try another pooled connection ajp_send_request::jk_ajp_common.c (1227): (tomcat-publicweb-01) all endpoints are disconnected ajp_send_request::jk_ajp_common.c (1230): (tomcat-publicweb-01) increase the backend idle connection timeout or the connection_pool_minsize ajp_service::jk_ajp_common.c (1916): (tomcat-publicweb-01) sending request to tomcat failed, recoverable operation attempt=1 - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/increase-the-backend-idle-connection-timeout-or-the-connection_pool_minsize-tf3294954.html#a9718414 Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Which Tomcat 5.5.23 file do I download for Windows?
what I would do, download the .zip, then run it as a service using the java service wrapper http://people.apache.org/~fhanik/wrapper.html best of both worlds Filip Tim Lucia wrote: Well then, you aren't downloading the correct file. You need the zip which contains Catalina.bat. Tim -Original Message- From: Jayson Enriquez [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 28, 2007 1:08 PM To: Tomcat Users List Subject: RE: Which Tomcat 5.5.23 file do I download for Windows? Tim - Thank you for replying. We currently run Documentum (Webtop) utilizing catalina.bat on Tomcat 5.0.28. When installing webtop, it errors out and says cannot find file catalina.bat or its path (which should be C:\Program Files\Apache Software Foundation\Tomcat5.5\bin I was hoping that someone had across this issue before. Jayson -Original Message- From: Tim Lucia [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 28, 2007 9:59 AM To: 'Tomcat Users List' Subject: RE: Which Tomcat 5.5.23 file do I download for Windows? If you run Tomcat as a service on Windows, then you have what you need -- no reason to have Catalina.bat. Tim -Original Message- From: Jayson Enriquez [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 28, 2007 10:18 AM To: users@tomcat.apache.org Subject: Which Tomcat 5.5.23 file do I download for Windows? Good morning! I am currently on 5.0.28. We are looking into 5.5.23 on Windows 2000. I downloaded and installed the Core 'Windows Service Installer' but was missing the Catalina.bat file. I want to make sure that I am downloading the correct file. Please assist. Thank you Jayson Enriquez CHDP Sacramento Municipal Utility District Business Technology / EDM Support 916 . 732 . 6977 - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Error importing SSL certificate
I would google it, tons of info out there http://access1.sun.com/techarticles/Keytool.html Reis, Tom wrote: I receive the following error when trying to import a Verisign SSL certificate. Any ideas? keytool error: java.lang.Exception: Failed to establish chain from reply No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.446 / Virus Database: 268.18.20/736 - Release Date: 3/27/2007 4:38 PM - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Which Tomcat 5.5.23 file do I download for Windows?
Filip and Tim - I will work on this asap. Thank you again for your help. Jayson -Original Message- From: Filip Hanik - Dev Lists [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 28, 2007 12:20 PM To: Tomcat Users List Subject: Re: Which Tomcat 5.5.23 file do I download for Windows? what I would do, download the .zip, then run it as a service using the java service wrapper http://people.apache.org/~fhanik/wrapper.html best of both worlds Filip Tim Lucia wrote: Well then, you aren't downloading the correct file. You need the zip which contains Catalina.bat. Tim -Original Message- From: Jayson Enriquez [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 28, 2007 1:08 PM To: Tomcat Users List Subject: RE: Which Tomcat 5.5.23 file do I download for Windows? Tim - Thank you for replying. We currently run Documentum (Webtop) utilizing catalina.bat on Tomcat 5.0.28. When installing webtop, it errors out and says cannot find file catalina.bat or its path (which should be C:\Program Files\Apache Software Foundation\Tomcat5.5\bin I was hoping that someone had across this issue before. Jayson -Original Message- From: Tim Lucia [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 28, 2007 9:59 AM To: 'Tomcat Users List' Subject: RE: Which Tomcat 5.5.23 file do I download for Windows? If you run Tomcat as a service on Windows, then you have what you need -- no reason to have Catalina.bat. Tim -Original Message- From: Jayson Enriquez [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 28, 2007 10:18 AM To: users@tomcat.apache.org Subject: Which Tomcat 5.5.23 file do I download for Windows? Good morning! I am currently on 5.0.28. We are looking into 5.5.23 on Windows 2000. I downloaded and installed the Core 'Windows Service Installer' but was missing the Catalina.bat file. I want to make sure that I am downloading the correct file. Please assist. Thank you Jayson Enriquez CHDP Sacramento Municipal Utility District Business Technology / EDM Support 916 . 732 . 6977 - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Which Tomcat 5.5.23 file do I download for Windows?
The way I've always done a windows installation is to install from the .exe file to get my services set up, and then unzip the .zip version right on top of the installation, so I have the extra support files from the zip, without having to manually do the service installation. Jayson Enriquez wrote: Filip and Tim - I will work on this asap. Thank you again for your help. Jayson -Original Message- From: Filip Hanik - Dev Lists [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 28, 2007 12:20 PM To: Tomcat Users List Subject: Re: Which Tomcat 5.5.23 file do I download for Windows? what I would do, download the .zip, then run it as a service using the java service wrapper http://people.apache.org/~fhanik/wrapper.html best of both worlds Filip Tim Lucia wrote: Well then, you aren't downloading the correct file. You need the zip which contains Catalina.bat. Tim -Original Message- From: Jayson Enriquez [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 28, 2007 1:08 PM To: Tomcat Users List Subject: RE: Which Tomcat 5.5.23 file do I download for Windows? Tim - Thank you for replying. We currently run Documentum (Webtop) utilizing catalina.bat on Tomcat 5.0.28. When installing webtop, it errors out and says cannot find file catalina.bat or its path (which should be C:\Program Files\Apache Software Foundation\Tomcat5.5\bin I was hoping that someone had across this issue before. Jayson -Original Message- From: Tim Lucia [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 28, 2007 9:59 AM To: 'Tomcat Users List' Subject: RE: Which Tomcat 5.5.23 file do I download for Windows? If you run Tomcat as a service on Windows, then you have what you need -- no reason to have Catalina.bat. Tim -Original Message- From: Jayson Enriquez [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 28, 2007 10:18 AM To: users@tomcat.apache.org Subject: Which Tomcat 5.5.23 file do I download for Windows? Good morning! I am currently on 5.0.28. We are looking into 5.5.23 on Windows 2000. I downloaded and installed the Core 'Windows Service Installer' but was missing the Catalina.bat file. I want to make sure that I am downloading the correct file. Please assist. Thank you Jayson Enriquez CHDP Sacramento Municipal Utility District Business Technology / EDM Support 916 . 732 . 6977 - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Session Problems Apache httpd - tomcat
Hello everyone, I'm new to the list and I've been using tomcat for quite some time now and have a little question. Any help would be greatly appreciated. I've made a little jsp to show me the current session I'm on, when using it on a standalone tomcat server the session never changes, when I move it to an apache httpd server with mod_jk connected to the same tomcat server the session still doesn't change, but when I add some traffic to both the httpd server and the tomcat server, the sessions start changing with every click and I'm having some trouble with the applications I'm deploying. I'm using: 1) Apache httpd 2.2.4 2) Apache tomcat 5.5.23 3) mod_jk/1.2.15 - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Session Problems Apache httpd - tomcat
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Nelson, Nelson D. guerrero wrote: I've made a little jsp to show me the current session I'm on, when using it on a standalone tomcat server the session never changes, when I move it to an apache httpd server with mod_jk connected to the same tomcat server the session still doesn't change, but when I add some traffic to both the httpd server and the tomcat server, the sessions start changing with every click and I'm having some trouble with the applications I'm deploying. Hmm... How are you checking to see if the session has changed? Are you looking at request.getSession().getSessionId()? Or are you looking at some particular object in your sessions to see if that has changed? - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.7 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFGCsyw9CaO5/Lv0PARAm2SAJ48zwj+vKl93aVrTR4sfnckUHi0SACeL83w mpokRjvjYteocnpnwXgrpvA= =BNrw -END PGP SIGNATURE- - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Session Problems Apache httpd - tomcat
On Wed, 2007-03-28 at 16:14 -0400, Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Nelson, Nelson D. guerrero wrote: I've made a little jsp to show me the current session I'm on, when using it on a standalone tomcat server the session never changes, when I move it to an apache httpd server with mod_jk connected to the same tomcat server the session still doesn't change, but when I add some traffic to both the httpd server and the tomcat server, the sessions start changing with every click and I'm having some trouble with the applications I'm deploying. Hmm... How are you checking to see if the session has changed? Are you looking at request.getSession().getSessionId()? Or are you looking at some particular object in your sessions to see if that has changed? - -chris Hello Chris, I'm using request.getSession().getId(). - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Which Tomcat 5.5.23 file do I download for Windows?
Thank you for the tip David. I'll give it a shot. Jayson -Original Message- From: David Kerber [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 28, 2007 12:33 PM To: Tomcat Users List Subject: Re: Which Tomcat 5.5.23 file do I download for Windows? The way I've always done a windows installation is to install from the .exe file to get my services set up, and then unzip the .zip version right on top of the installation, so I have the extra support files from the zip, without having to manually do the service installation. Jayson Enriquez wrote: Filip and Tim - I will work on this asap. Thank you again for your help. Jayson -Original Message- From: Filip Hanik - Dev Lists [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 28, 2007 12:20 PM To: Tomcat Users List Subject: Re: Which Tomcat 5.5.23 file do I download for Windows? what I would do, download the .zip, then run it as a service using the java service wrapper http://people.apache.org/~fhanik/wrapper.html best of both worlds Filip Tim Lucia wrote: Well then, you aren't downloading the correct file. You need the zip which contains Catalina.bat. Tim -Original Message- From: Jayson Enriquez [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 28, 2007 1:08 PM To: Tomcat Users List Subject: RE: Which Tomcat 5.5.23 file do I download for Windows? Tim - Thank you for replying. We currently run Documentum (Webtop) utilizing catalina.bat on Tomcat 5.0.28. When installing webtop, it errors out and says cannot find file catalina.bat or its path (which should be C:\Program Files\Apache Software Foundation\Tomcat5.5\bin I was hoping that someone had across this issue before. Jayson -Original Message- From: Tim Lucia [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 28, 2007 9:59 AM To: 'Tomcat Users List' Subject: RE: Which Tomcat 5.5.23 file do I download for Windows? If you run Tomcat as a service on Windows, then you have what you need -- no reason to have Catalina.bat. Tim -Original Message- From: Jayson Enriquez [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 28, 2007 10:18 AM To: users@tomcat.apache.org Subject: Which Tomcat 5.5.23 file do I download for Windows? Good morning! I am currently on 5.0.28. We are looking into 5.5.23 on Windows 2000. I downloaded and installed the Core 'Windows Service Installer' but was missing the Catalina.bat file. I want to make sure that I am downloading the correct file. Please assist. Thank you Jayson Enriquez CHDP Sacramento Municipal Utility District Business Technology / EDM Support 916 . 732 . 6977 - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Session Problems Apache httpd - tomcat
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Nelson, Nelson D. guerrero wrote: How are you checking to see if the session has changed? Are you looking at request.getSession().getSessionId()? Or are you looking at some particular object in your sessions to see if that has changed? I'm using request.getSession().getId(). Okay. Are you using cookies or URL-rewriting in order to track sessions? Oh, and what is your session timeout? - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.7 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFGCtDH9CaO5/Lv0PARAvnOAJ96UWkR0rB2ECQekxX2sR2t8AoF1ACfd8zT TAO7H0SsND7SCM5NGCrzMv0= =ge36 -END PGP SIGNATURE- - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Session Problems Apache httpd - tomcat
On Wed, 2007-03-28 at 16:32 -0400, Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Nelson, Nelson D. guerrero wrote: How are you checking to see if the session has changed? Are you looking at request.getSession().getSessionId()? Or are you looking at some particular object in your sessions to see if that has changed? I'm using request.getSession().getId(). Okay. Are you using cookies or URL-rewriting in order to track sessions? Oh, and what is your session timeout? - -chris No, the developers are using cookies or URL-rewriting, is this the only way that the sessions can replicate between them? I'm thinking on passing them this piece of code: ((HttpServletResponse)response).addCookie(new Cookie(JSESSIONID,session.getId())); That will surely help. Tomcat has the default timeout of 30 minutes. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Session Problems Apache httpd - tomcat
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Nelson, Nelson D. guerrero wrote: Are you using cookies or URL-rewriting in order to track sessions? No, the developers are using cookies or URL-rewriting, is this the only way that the sessions can replicate between them? Assuming that Tomcat is managing your sessions (there aren't too many good reasons to manage your own sessions), then Tomcat uses either cookies or URL rewriting to maintain sessions between requests. By default, Tomcat attempts to use cookies, but if cookies are not supported by the client (the browser), then it resorts to URL rewriting. I'm thinking on passing them this piece of code: ((HttpServletResponse)response).addCookie(new Cookie(JSESSIONID,session.getId())); That will surely help. Probably not: Tomcat should do this for you already. Usually, sessions get lost because Tomcat has had to resort to URL rewriting, but the application has not been written with this in mind. For instance, every single URL that you generate ought to go through request.encodeURL to make sure that the session id is properly added if necessary. If you don't do this, then you'll end up creating a new session when you use that (session-less) link. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.7 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFGCtdd9CaO5/Lv0PARAmbxAKCqWzIxQKLz38z0xIVXXFpE2cWBLwCeLqaU ezD9gy8vmCGlyoyfWAk5bE8= =DfrI -END PGP SIGNATURE- - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat manager console not appearing
Hi All, I have enabled the tomcat manager console in a Solaris box by adding the necessary roles and usernames in /opt/apache-tomcat-5.5.17/conf/ tomcat-users.xml. Everything goes fine when I log in to one of them ( manager console ( by going to this link: https://151.193.178.113/manager/html and typing the user id and password) However, I can't log in to the console, it displays these well-known messages: type Status report message /manager/html description The requested resource (/manager/html) is not available. I have checked the manager application and it seems to be installed: /opt/apache-tomcat-5.5.17/server/webapps/managerls -ltr total 290 -rw-r--r-- 1 root root3295 Apr 14 2006 xform.xsl -rw-r--r-- 1 root root2977 Apr 14 2006 status.xsd -rw-r--r-- 1 root root 469 Apr 14 2006 manager.xml -rw-r--r-- 1 root root 97383 Apr 14 2006 manager-howto.html -rw-r--r-- 1 root root 39730 Apr 14 2006 html-manager-howto.html drwxr-xr-x 3 root root 512 Jul 20 2006 WEB-INF drwxr-xr-x 2 root root 512 Jul 20 2006 images Do you have an idea of where I should look at? Maybe server.xml in the conf directory. Thanks, Fabian
Re: Session Problems Apache httpd - tomcat
Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Nelson, Nelson D. guerrero wrote: Are you using cookies or URL-rewriting in order to track sessions? No, the developers are using cookies or URL-rewriting, is this the only way that the sessions can replicate between them? Assuming that Tomcat is managing your sessions (there aren't too many good reasons to manage your own sessions), then Tomcat uses either cookies or URL rewriting to maintain sessions between requests. By default, Tomcat attempts to use cookies, but if cookies are not supported by the client (the browser), then it resorts to URL rewriting. I'm thinking on passing them this piece of code: ((HttpServletResponse)response).addCookie(new Cookie(JSESSIONID,session.getId())); That will surely help. Probably not: Tomcat should do this for you already. Usually, sessions get lost because Tomcat has had to resort to URL rewriting, but the application has not been written with this in mind. For instance, every single URL that you generate ought to go through request.encodeURL to make sure that the session id is properly added if necessary. If you don't do this, then you'll end up creating a new session when you use that (session-less) link. Are you testing manually or using something automated? - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.7 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFGCtdd9CaO5/Lv0PARAmbxAKCqWzIxQKLz38z0xIVXXFpE2cWBLwCeLqaU ezD9gy8vmCGlyoyfWAk5bE8= =DfrI -END PGP SIGNATURE- - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] smime.p7s Description: S/MIME Cryptographic Signature
Re: Session Problems Apache httpd - tomcat
On Wed, 2007-03-28 at 17:00 -0400, Christopher Schultz wrote: Assuming that Tomcat is managing your sessions (there aren't too many good reasons to manage your own sessions), then Tomcat uses either cookies or URL rewriting to maintain sessions between requests. I'm sorry, I'm not following. By saying managing your sessions, do you mean running tomcat standalone or letting tomcat manager the sessions and that the httpd uses the sessions off of the tomcat? Probably not: Tomcat should do this for you already. Usually, sessions get lost because Tomcat has had to resort to URL rewriting, but the application has not been written with this in mind. For instance, every single URL that you generate ought to go through request.encodeURL to make sure that the session id is properly added if necessary. If you don't do this, then you'll end up creating a new session when you use that (session-less) link. Do they go through request.encodeURL automatically or do I have to do something? Sorry for all the questions, I'm no developer and I'm surely not a tomcat administrator, they just shoved me the responsibility a couple of months ago and I've been learning ever since. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat HTTPS Help needed
Hi everyone. I'm quite embarrassed - but inspite following the Apache guide, I just can't set up HTTPS via Tomcat! I have Windows 2000 Professional (German). Tomcat 5.5.20. Running Java 1.5. Can anyone here tell me what I'm doing wrong? I tried the keystore in my user directory - but that doesn't seem to work (because Tomcat is running as local system - a different account?). I even tried copy the .keystore file into every directory - but no luck. So I moved the .keystore to C:\.keystore C:\keytool -list -keystore c:\.keystore Geben Sie das Keystore-Passwort ein: Keystore-Typ: JKS Keystore-Provider: SUN Ihr Keystore enthlt 2 Eintrge. consense, 04.05.2006, PrivateKeyEntry, Zertifikatsfingerabdruck (MD5): 4E:A5:87:1F:61:62:B2:72:48:C2:31:0D:EF:51:42:3C tomcat, 28.03.2007, PrivateKeyEntry, Zertifikatsfingerabdruck (MD5): 2C:99:4C:D5:6F:94:BE:BE:EA:42:FF:9C:11:F1:A7:67 my keystore has two signatures with the password changeit. In the server.xml I have the following connector. (the default, uncommented, with the keystoreFile/keypass as parameters - keypass is not required). Connector port=8443 maxHttpHeaderSize=8192 maxThreads=150 minSpareThreads=25 maxSpareThreads=75 enableLookups=false disableUploadTimeout=true acceptCount=100 scheme=https secure=true clientAuth=false sslProtocol=TLS keystoreFile=C:\.keystore keypass=changeit / Whenever I try to visit the following website with HTTP/HTTPS I get no response. It takes ages, so I'm sure Tomcat is thinking about doing something, just not doing anything. I've also tried from external computers - still no success. https://localhost:8443/ The logs don't seem to show anything interesting e.g. catalina - 28.03.2007 18:14:51 org.apache.coyote.http11.Http11AprProtocol init INFO: Initializing Coyote HTTP/1.1 on http-80 28.03.2007 18:14:51 org.apache.coyote.http11.Http11AprProtocol init INFO: Initializing Coyote HTTP/1.1 on http-8443 28.03.2007 18:14:51 org.apache.coyote.ajp.AjpAprProtocol init INFO: Initializing Coyote AJP/1.3 on ajp-8009 28.03.2007 18:14:51 org.apache.catalina.startup.Catalina load INFO: Initialization processed in 1656 ms 28.03.2007 18:14:51 org.apache.catalina.core.StandardService start INFO: Starting service Catalina 28.03.2007 18:14:51 org.apache.catalina.core.StandardEngine start INFO: Starting Servlet Engine: Apache Tomcat/5.5.20 28.03.2007 18:14:51 org.apache.catalina.core.StandardHost start INFO: XML validation disabled 28.03.2007 18:14:53 org.apache.catalina.startup.HostConfig deployWAR INFO: Deploying web application archive soap.war 28.03.2007 18:14:55 org.apache.coyote.http11.Http11AprProtocol start INFO: Starting Coyote HTTP/1.1 on http-80 28.03.2007 18:14:55 org.apache.coyote.http11.Http11AprProtocol start INFO: Starting Coyote HTTP/1.1 on http-8443 28.03.2007 18:14:55 org.apache.coyote.ajp.AjpAprProtocol start INFO: Starting Coyote AJP/1.3 on ajp-8009 28.03.2007 18:14:55 org.apache.catalina.storeconfig.StoreLoader load INFO: Find registry server-registry.xml at classpath resource 28.03.2007 18:14:55 org.apache.catalina.startup.Catalina start INFO: Server startup in 3922 ms similary the localhost log looks boring: 28.03.2007 18:14:54 org.apache.catalina.core.ApplicationContext log INFO: org.apache.webapp.balancer.BalancerFilter: init(): ruleChain: [org.apache.webapp.balancer.RuleChain: [org.apache.webapp.balancer.rules.URLStringMatchRule: Target string: News / Redirect URL: http://www.cnn.com], [org.apache.webapp.balancer.rules.RequestParameterRule: Target param name: paramName / Target param value: paramValue / Redirect URL: http://www.yahoo.com], [org.apache.webapp.balancer.rules.AcceptEverythingRule: Redirect URL: http://jakarta.apache.org]] All other logs are empty. Can anyone tell me what silly mistake I've made? Thanks a lot. Martin - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat HTTPS Help needed
Hi, If you connect to http://localhost while https://localhost:8443, what happen? Make sure http://localhost works first. Jimmy Cash America -Original Message- From: Martin Cavanagh [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 28, 2007 4:23 PM To: Tomcat Users List Subject: Tomcat HTTPS Help needed Hi everyone. I'm quite embarrassed - but inspite following the Apache guide, I just can't set up HTTPS via Tomcat! I have Windows 2000 Professional (German). Tomcat 5.5.20. Running Java 1.5. Can anyone here tell me what I'm doing wrong? I tried the keystore in my user directory - but that doesn't seem to work (because Tomcat is running as local system - a different account?). I even tried copy the .keystore file into every directory - but no luck. So I moved the .keystore to C:\.keystore C:\keytool -list -keystore c:\.keystore Geben Sie das Keystore-Passwort ein: Keystore-Typ: JKS Keystore-Provider: SUN Ihr Keystore enthlt 2 Eintrge. consense, 04.05.2006, PrivateKeyEntry, Zertifikatsfingerabdruck (MD5): 4E:A5:87:1F:61:62:B2:72:48:C2:31:0D:EF:51:42:3C tomcat, 28.03.2007, PrivateKeyEntry, Zertifikatsfingerabdruck (MD5): 2C:99:4C:D5:6F:94:BE:BE:EA:42:FF:9C:11:F1:A7:67 my keystore has two signatures with the password changeit. In the server.xml I have the following connector. (the default, uncommented, with the keystoreFile/keypass as parameters - keypass is not required). Connector port=8443 maxHttpHeaderSize=8192 maxThreads=150 minSpareThreads=25 maxSpareThreads=75 enableLookups=false disableUploadTimeout=true acceptCount=100 scheme=https secure=true clientAuth=false sslProtocol=TLS keystoreFile=C:\.keystore keypass=changeit / Whenever I try to visit the following website with HTTP/HTTPS I get no response. It takes ages, so I'm sure Tomcat is thinking about doing something, just not doing anything. I've also tried from external computers - still no success. https://localhost:8443/ The logs don't seem to show anything interesting e.g. catalina - 28.03.2007 18:14:51 org.apache.coyote.http11.Http11AprProtocol init INFO: Initializing Coyote HTTP/1.1 on http-80 28.03.2007 18:14:51 org.apache.coyote.http11.Http11AprProtocol init INFO: Initializing Coyote HTTP/1.1 on http-8443 28.03.2007 18:14:51 org.apache.coyote.ajp.AjpAprProtocol init INFO: Initializing Coyote AJP/1.3 on ajp-8009 28.03.2007 18:14:51 org.apache.catalina.startup.Catalina load INFO: Initialization processed in 1656 ms 28.03.2007 18:14:51 org.apache.catalina.core.StandardService start INFO: Starting service Catalina 28.03.2007 18:14:51 org.apache.catalina.core.StandardEngine start INFO: Starting Servlet Engine: Apache Tomcat/5.5.20 28.03.2007 18:14:51 org.apache.catalina.core.StandardHost start INFO: XML validation disabled 28.03.2007 18:14:53 org.apache.catalina.startup.HostConfig deployWAR INFO: Deploying web application archive soap.war 28.03.2007 18:14:55 org.apache.coyote.http11.Http11AprProtocol start INFO: Starting Coyote HTTP/1.1 on http-80 28.03.2007 18:14:55 org.apache.coyote.http11.Http11AprProtocol start INFO: Starting Coyote HTTP/1.1 on http-8443 28.03.2007 18:14:55 org.apache.coyote.ajp.AjpAprProtocol start INFO: Starting Coyote AJP/1.3 on ajp-8009 28.03.2007 18:14:55 org.apache.catalina.storeconfig.StoreLoader load INFO: Find registry server-registry.xml at classpath resource 28.03.2007 18:14:55 org.apache.catalina.startup.Catalina start INFO: Server startup in 3922 ms similary the localhost log looks boring: 28.03.2007 18:14:54 org.apache.catalina.core.ApplicationContext log INFO: org.apache.webapp.balancer.BalancerFilter: init(): ruleChain: [org.apache.webapp.balancer.RuleChain: [org.apache.webapp.balancer.rules.URLStringMatchRule: Target string: News / Redirect URL: http://www.cnn.com], [org.apache.webapp.balancer.rules.RequestParameterRule: Target param name: paramName / Target param value: paramValue / Redirect URL: http://www.yahoo.com], [org.apache.webapp.balancer.rules.AcceptEverythingRule: Redirect URL: http://jakarta.apache.org]] All other logs are empty. Can anyone tell me what silly mistake I've made? Thanks a lot. Martin - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Session Problems Apache httpd - tomcat
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Nelson, Nelson D. guerrero wrote: On Wed, 2007-03-28 at 17:00 -0400, Christopher Schultz wrote: Assuming that Tomcat is managing your sessions (there aren't too many good reasons to manage your own sessions), then Tomcat uses either cookies or URL rewriting to maintain sessions between requests. I'm sorry, I'm not following. By saying managing your sessions, do you mean running tomcat standalone or letting tomcat manager the sessions and that the httpd uses the sessions off of the tomcat? Apache httpd does not manage sessions at all, so it doesn't matter. What I meant was are you implementing your own strange session management -- and the answer is probably no. Probably not: Tomcat should do this for you already. Usually, sessions get lost because Tomcat has had to resort to URL rewriting, but the application has not been written with this in mind. For instance, every single URL that you generate ought to go through request.encodeURL to make sure that the session id is properly added if necessary. If you don't do this, then you'll end up creating a new session when you use that (session-less) link. Do they go through request.encodeURL automatically or do I have to do something? Any time you generate a URL to be included in a web page, you need to make sure that your URL goes through request.encodeURL. If you are using a JSP tab library to build your links, then it is more than likely to do this for you. To be on the safe side, tell us how you build your web pages. If it's using JSP, then let us know about any tag libraries you are using. Sorry for all the questions, I'm no developer and I'm surely not a tomcat administrator, they just shoved me the responsibility a couple of months ago and I've been learning ever since. No problem. We tend to put the kid gloves on when someone starts asking questions like this. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.7 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFGCul79CaO5/Lv0PARAihuAJ4pngqkCAf3AKIC0AZjiyT5SCHgxQCgqAgT 0iMj8v32fwZo5uRQXikIE8U= =g5ew -END PGP SIGNATURE- - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Characters prepended to index.jsp
But how come it shows up in the browser? On 3/27/07, Rashmi Rubdi [EMAIL PROTECTED] wrote: These characters  are normally not visible in regular text editors like jEdit or Eclipse etc. One way to get rid of the characters is to create a new file, press Ctrl A and copy everything from the old file to the new one , and delete the old file - rename the new file, in an editor like jEdit. Or you could view the characters in a Hex Editor and delete them too. If you examine these characters  in a Hexadecimal Editor - for example Cygnus Hex Editor they correspond to EF BB BF --- UTF-8 BOM characters http://unicode.org/faq/utf_bom.html , by deleting those three hex characters from the file you essentially delete the special characters. -Rashmi - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Characters prepended to index.jsp
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Orn, On 3/27/07, Rashmi Rubdi [EMAIL PROTECTED] wrote: These characters  are normally not visible in regular text editors like jEdit or Eclipse etc. orn amental wrote: But how come it shows up in the browser? Probably because your server is not specifying that UTF-8 is being used as the page character encoding. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.7 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFGCu4v9CaO5/Lv0PARAsXTAJ976kJf7cHpmAu+Tx2ENeez6nfSswCZARRc 37Je+Hyjg1LJ/x7IWLr8oX8= =we9F -END PGP SIGNATURE- - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat HTTPS Help needed
http://localhost worked before and still works. I also checked the firewall settings. It definitely isn't a problem here - I even tried setting up a different connector http://localhost:8443 (not https) and this worked - so I'm 100% sure its not a firewall issue. Any other ideas? b.t.w. Thanks Martin Zhan, Jimmy wrote: Hi, If you connect to http://localhost while https://localhost:8443, what happen? Make sure http://localhost works first. Jimmy Cash America -Original Message- From: Martin Cavanagh [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 28, 2007 4:23 PM To: Tomcat Users List Subject: Tomcat HTTPS Help needed Hi everyone. I'm quite embarrassed - but inspite following the Apache guide, I just can't set up HTTPS via Tomcat! I have Windows 2000 Professional (German). Tomcat 5.5.20. Running Java 1.5. Can anyone here tell me what I'm doing wrong? I tried the keystore in my user directory - but that doesn't seem to work (because Tomcat is running as local system - a different account?). I even tried copy the .keystore file into every directory - but no luck. So I moved the .keystore to C:\.keystore C:\keytool -list -keystore c:\.keystore Geben Sie das Keystore-Passwort ein: Keystore-Typ: JKS Keystore-Provider: SUN Ihr Keystore enthlt 2 Eintrge. consense, 04.05.2006, PrivateKeyEntry, Zertifikatsfingerabdruck (MD5): 4E:A5:87:1F:61:62:B2:72:48:C2:31:0D:EF:51:42:3C tomcat, 28.03.2007, PrivateKeyEntry, Zertifikatsfingerabdruck (MD5): 2C:99:4C:D5:6F:94:BE:BE:EA:42:FF:9C:11:F1:A7:67 my keystore has two signatures with the password changeit. In the server.xml I have the following connector. (the default, uncommented, with the keystoreFile/keypass as parameters - keypass is not required). Connector port=8443 maxHttpHeaderSize=8192 maxThreads=150 minSpareThreads=25 maxSpareThreads=75 enableLookups=false disableUploadTimeout=true acceptCount=100 scheme=https secure=true clientAuth=false sslProtocol=TLS keystoreFile=C:\.keystore keypass=changeit / Whenever I try to visit the following website with HTTP/HTTPS I get no response. It takes ages, so I'm sure Tomcat is thinking about doing something, just not doing anything. I've also tried from external computers - still no success. https://localhost:8443/ The logs don't seem to show anything interesting e.g. catalina - 28.03.2007 18:14:51 org.apache.coyote.http11.Http11AprProtocol init INFO: Initializing Coyote HTTP/1.1 on http-80 28.03.2007 18:14:51 org.apache.coyote.http11.Http11AprProtocol init INFO: Initializing Coyote HTTP/1.1 on http-8443 28.03.2007 18:14:51 org.apache.coyote.ajp.AjpAprProtocol init INFO: Initializing Coyote AJP/1.3 on ajp-8009 28.03.2007 18:14:51 org.apache.catalina.startup.Catalina load INFO: Initialization processed in 1656 ms 28.03.2007 18:14:51 org.apache.catalina.core.StandardService start INFO: Starting service Catalina 28.03.2007 18:14:51 org.apache.catalina.core.StandardEngine start INFO: Starting Servlet Engine: Apache Tomcat/5.5.20 28.03.2007 18:14:51 org.apache.catalina.core.StandardHost start INFO: XML validation disabled 28.03.2007 18:14:53 org.apache.catalina.startup.HostConfig deployWAR INFO: Deploying web application archive soap.war 28.03.2007 18:14:55 org.apache.coyote.http11.Http11AprProtocol start INFO: Starting Coyote HTTP/1.1 on http-80 28.03.2007 18:14:55 org.apache.coyote.http11.Http11AprProtocol start INFO: Starting Coyote HTTP/1.1 on http-8443 28.03.2007 18:14:55 org.apache.coyote.ajp.AjpAprProtocol start INFO: Starting Coyote AJP/1.3 on ajp-8009 28.03.2007 18:14:55 org.apache.catalina.storeconfig.StoreLoader load INFO: Find registry server-registry.xml at classpath resource 28.03.2007 18:14:55 org.apache.catalina.startup.Catalina start INFO: Server startup in 3922 ms similary the localhost log looks boring: 28.03.2007 18:14:54 org.apache.catalina.core.ApplicationContext log INFO: org.apache.webapp.balancer.BalancerFilter: init(): ruleChain: [org.apache.webapp.balancer.RuleChain: [org.apache.webapp.balancer.rules.URLStringMatchRule: Target string: News / Redirect URL: http://www.cnn.com], [org.apache.webapp.balancer.rules.RequestParameterRule: Target param name: paramName / Target param value: paramValue / Redirect URL: http://www.yahoo.com], [org.apache.webapp.balancer.rules.AcceptEverythingRule: Redirect URL: http://jakarta.apache.org]] All other logs are empty. Can anyone tell me what silly mistake I've made? Thanks a lot. Martin - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat HTTPS Help needed
did you enable SSL on Port 8443 in server.xml??? e.g. !-- Define a SSL HTTP/1.1 Connector on port 8443 -- Connector port=8443 maxThreads=150 minSpareThreads=25 maxSpareThreads=75 enableLookups=false disableUploadTimeout=true acceptCount=100 scheme=https secure=true clientAuth=false sslProtocol=TLS debug=5/ Martin-- --- This e-mail message (including attachments, if any) is intended for the use of the individual or entity to which it is addressed and may contain information that is privileged, proprietary , confidential and exempt from disclosure. If you are not the intended recipient, you are notified that any dissemination, distribution or copying of this communication is strictly prohibited. --- Le présent message électronique (y compris les pièces qui y sont annexées, le cas échéant) s'adresse au destinataire indiqué et peut contenir des renseignements de caractère privé ou confidentiel. Si vous n'êtes pas le destinataire de ce document, nous vous signalons qu'il est strictement interdit de le diffuser, de le distribuer ou de le reproduire. - Original Message - From: Martin Cavanagh [EMAIL PROTECTED] To: Tomcat Users List users@tomcat.apache.org Sent: Wednesday, March 28, 2007 6:41 PM Subject: Re: Tomcat HTTPS Help needed http://localhost worked before and still works. I also checked the firewall settings. It definitely isn't a problem here - I even tried setting up a different connector http://localhost:8443 (not https) and this worked - so I'm 100% sure its not a firewall issue. Any other ideas? b.t.w. Thanks Martin Zhan, Jimmy wrote: Hi, If you connect to http://localhost while https://localhost:8443, what happen? Make sure http://localhost works first. Jimmy Cash America -Original Message- From: Martin Cavanagh [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 28, 2007 4:23 PM To: Tomcat Users List Subject: Tomcat HTTPS Help needed Hi everyone. I'm quite embarrassed - but inspite following the Apache guide, I just can't set up HTTPS via Tomcat! I have Windows 2000 Professional (German). Tomcat 5.5.20. Running Java 1.5. Can anyone here tell me what I'm doing wrong? I tried the keystore in my user directory - but that doesn't seem to work (because Tomcat is running as local system - a different account?). I even tried copy the .keystore file into every directory - but no luck. So I moved the .keystore to C:\.keystore C:\keytool -list -keystore c:\.keystore Geben Sie das Keystore-Passwort ein: Keystore-Typ: JKS Keystore-Provider: SUN Ihr Keystore enthlt 2 Eintrge. consense, 04.05.2006, PrivateKeyEntry, Zertifikatsfingerabdruck (MD5): 4E:A5:87:1F:61:62:B2:72:48:C2:31:0D:EF:51:42:3C tomcat, 28.03.2007, PrivateKeyEntry, Zertifikatsfingerabdruck (MD5): 2C:99:4C:D5:6F:94:BE:BE:EA:42:FF:9C:11:F1:A7:67 my keystore has two signatures with the password changeit. In the server.xml I have the following connector. (the default, uncommented, with the keystoreFile/keypass as parameters - keypass is not required). Connector port=8443 maxHttpHeaderSize=8192 maxThreads=150 minSpareThreads=25 maxSpareThreads=75 enableLookups=false disableUploadTimeout=true acceptCount=100 scheme=https secure=true clientAuth=false sslProtocol=TLS keystoreFile=C:\.keystore keypass=changeit / Whenever I try to visit the following website with HTTP/HTTPS I get no response. It takes ages, so I'm sure Tomcat is thinking about doing something, just not doing anything. I've also tried from external computers - still no success. https://localhost:8443/ The logs don't seem to show anything interesting e.g. catalina - 28.03.2007 18:14:51 org.apache.coyote.http11.Http11AprProtocol init INFO: Initializing Coyote HTTP/1.1 on http-80 28.03.2007 18:14:51 org.apache.coyote.http11.Http11AprProtocol init INFO: Initializing Coyote HTTP/1.1 on http-8443 28.03.2007 18:14:51 org.apache.coyote.ajp.AjpAprProtocol init INFO: Initializing Coyote AJP/1.3 on ajp-8009 28.03.2007 18:14:51 org.apache.catalina.startup.Catalina load INFO: Initialization processed in 1656 ms 28.03.2007 18:14:51 org.apache.catalina.core.StandardService start INFO: Starting service Catalina 28.03.2007 18:14:51 org.apache.catalina.core.StandardEngine start INFO: Starting Servlet Engine: Apache Tomcat/5.5.20 28.03.2007 18:14:51 org.apache.catalina.core.StandardHost start INFO: XML validation disabled 28.03.2007 18:14:53 org.apache.catalina.startup.HostConfig deployWAR INFO: Deploying web application archive soap.war 28.03.2007 18:14:55 org.apache.coyote.http11.Http11AprProtocol start INFO: Starting Coyote HTTP/1.1 on http-80 28.03.2007 18:14:55
Re: Tomcat manager console not appearing
Fabian- in $TOMCAT_HOME/conf/tomcat-users.xml check your username you are using to access the manager has these roles defined roles=admin,manager M-- --- This e-mail message (including attachments, if any) is intended for the use of the individual or entity to which it is addressed and may contain information that is privileged, proprietary , confidential and exempt from disclosure. If you are not the intended recipient, you are notified that any dissemination, distribution or copying of this communication is strictly prohibited. --- Le présent message électronique (y compris les pièces qui y sont annexées, le cas échéant) s'adresse au destinataire indiqué et peut contenir des renseignements de caractère privé ou confidentiel. Si vous n'êtes pas le destinataire de ce document, nous vous signalons qu'il est strictement interdit de le diffuser, de le distribuer ou de le reproduire. - Original Message - From: Fabian Arocena [EMAIL PROTECTED] To: users@tomcat.apache.org Sent: Wednesday, March 28, 2007 5:07 PM Subject: Tomcat manager console not appearing Hi All, I have enabled the tomcat manager console in a Solaris box by adding the necessary roles and usernames in /opt/apache-tomcat-5.5.17/conf/ tomcat-users.xml. Everything goes fine when I log in to one of them ( manager console ( by going to this link: https://151.193.178.113/manager/html and typing the user id and password) However, I can't log in to the console, it displays these well-known messages: type Status report message /manager/html description The requested resource (/manager/html) is not available. I have checked the manager application and it seems to be installed: /opt/apache-tomcat-5.5.17/server/webapps/managerls -ltr total 290 -rw-r--r-- 1 root root3295 Apr 14 2006 xform.xsl -rw-r--r-- 1 root root2977 Apr 14 2006 status.xsd -rw-r--r-- 1 root root 469 Apr 14 2006 manager.xml -rw-r--r-- 1 root root 97383 Apr 14 2006 manager-howto.html -rw-r--r-- 1 root root 39730 Apr 14 2006 html-manager-howto.html drwxr-xr-x 3 root root 512 Jul 20 2006 WEB-INF drwxr-xr-x 2 root root 512 Jul 20 2006 images Do you have an idea of where I should look at? Maybe server.xml in the conf directory. Thanks, Fabian
Re: Tomcat HTTPS Help needed
I sure did - heres a little bit of my server.xml Connector port=8443 maxHttpHeaderSize=8192 maxThreads=150 minSpareThreads=25 maxSpareThreads=75 enableLookups=false disableUploadTimeout=true acceptCount=100 scheme=https secure=true clientAuth=false sslProtocol=TLS keystoreFile=C:\.keystore keypass=changeit / I know the keypass isn't needed - just as soon as it works I want to change it :) Any other ideas? It doesn't seem like it should be that complicated I even tried installing the admin package and installing the connector port via thatno luck that way either. Thanks Martin Martin Gainty wrote: did you enable SSL on Port 8443 in server.xml??? e.g. !-- Define a SSL HTTP/1.1 Connector on port 8443 -- Connector port=8443 maxThreads=150 minSpareThreads=25 maxSpareThreads=75 enableLookups=false disableUploadTimeout=true acceptCount=100 scheme=https secure=true clientAuth=false sslProtocol=TLS debug=5/ Martin-- --- This e-mail message (including attachments, if any) is intended for the use of the individual or entity to which it is addressed and may contain information that is privileged, proprietary , confidential and exempt from disclosure. If you are not the intended recipient, you are notified that any dissemination, distribution or copying of this communication is strictly prohibited. --- Le présent message électronique (y compris les pièces qui y sont annexées, le cas échéant) s'adresse au destinataire indiqué et peut contenir des renseignements de caractère privé ou confidentiel. Si vous n'êtes pas le destinataire de ce document, nous vous signalons qu'il est strictement interdit de le diffuser, de le distribuer ou de le reproduire. - Original Message - From: Martin Cavanagh [EMAIL PROTECTED] To: Tomcat Users List users@tomcat.apache.org Sent: Wednesday, March 28, 2007 6:41 PM Subject: Re: Tomcat HTTPS Help needed http://localhost worked before and still works. I also checked the firewall settings. It definitely isn't a problem here - I even tried setting up a different connector http://localhost:8443 (not https) and this worked - so I'm 100% sure its not a firewall issue. Any other ideas? b.t.w. Thanks Martin Zhan, Jimmy wrote: Hi, If you connect to http://localhost while https://localhost:8443, what happen? Make sure http://localhost works first. Jimmy Cash America -Original Message- From: Martin Cavanagh [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 28, 2007 4:23 PM To: Tomcat Users List Subject: Tomcat HTTPS Help needed Hi everyone. I'm quite embarrassed - but inspite following the Apache guide, I just can't set up HTTPS via Tomcat! I have Windows 2000 Professional (German). Tomcat 5.5.20. Running Java 1.5. Can anyone here tell me what I'm doing wrong? I tried the keystore in my user directory - but that doesn't seem to work (because Tomcat is running as local system - a different account?). I even tried copy the .keystore file into every directory - but no luck. So I moved the .keystore to C:\.keystore C:\keytool -list -keystore c:\.keystore Geben Sie das Keystore-Passwort ein: Keystore-Typ: JKS Keystore-Provider: SUN Ihr Keystore enthlt 2 Eintrge. consense, 04.05.2006, PrivateKeyEntry, Zertifikatsfingerabdruck (MD5): 4E:A5:87:1F:61:62:B2:72:48:C2:31:0D:EF:51:42:3C tomcat, 28.03.2007, PrivateKeyEntry, Zertifikatsfingerabdruck (MD5): 2C:99:4C:D5:6F:94:BE:BE:EA:42:FF:9C:11:F1:A7:67 my keystore has two signatures with the password changeit. In the server.xml I have the following connector. (the default, uncommented, with the keystoreFile/keypass as parameters - keypass is not required). Connector port=8443 maxHttpHeaderSize=8192 maxThreads=150 minSpareThreads=25 maxSpareThreads=75 enableLookups=false disableUploadTimeout=true acceptCount=100 scheme=https secure=true clientAuth=false sslProtocol=TLS keystoreFile=C:\.keystore keypass=changeit / Whenever I try to visit the following website with HTTP/HTTPS I get no response. It takes ages, so I'm sure Tomcat is thinking about doing something, just not doing anything. I've also tried from external computers - still no success. https://localhost:8443/ The logs don't seem to show anything interesting e.g. catalina - 28.03.2007 18:14:51 org.apache.coyote.http11.Http11AprProtocol init INFO: Initializing Coyote HTTP/1.1 on http-80 28.03.2007 18:14:51 org.apache.coyote.http11.Http11AprProtocol init INFO: Initializing Coyote HTTP/1.1 on http-8443 28.03.2007 18:14:51 org.apache.coyote.ajp.AjpAprProtocol init INFO: Initializing Coyote AJP/1.3 on ajp-8009 28.03.2007 18:14:51
Re: Characters prepended to index.jsp
On 3/28/07, orn amental [EMAIL PROTECTED] wrote: But how come it shows up in the browser? I don't know. All I know is that even though they *exist* they don't appear on IDEs , but until you get rid of them ( by following one of the above 2 methods or perhaps other methods) , they will continue to appear in the browser. I too experienced similar probelm, but luckily the problem was with only one JSP file. -Rashmi - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
How to verify crossdomain.xml in Tomcat
Hi, In one of my application, I've to deploy crossdomain.xml file in my Tomcat (i.e. Tomcat 5.x). Could you please guide me regarding location (i.e. directory) and how to verify the same on my Tomcat web serever. Please let me know in case any other details are needed. Thanks and Regards, Hitesh
Re: How to verify crossdomain.xml in Tomcat
Hitesh Raghav wrote: Hi, In one of my application, I've to deploy crossdomain.xml file in my Tomcat (i.e. Tomcat 5.x). There is no such file in a Tomcat installation. Maybe it is part of an application you are trying to deploy? Mark - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: How to verify crossdomain.xml in Tomcat
Hi Mark, I'm trying to deploy the Flex based app on my Tomcat5 web-server. To allow cross-domain resource access, crossdomain.xml file need to be deployed. Pl look into below article for more details: http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=tn_14213 Pl visit to below URL for cross-domain implementation by some leading websites: http://www.crossdomainxml.org/ Therefore, I need the help rgd crossdomain.xml deployment directory and verification mechanism in Tomcat scenario. Thanks, Hitesh -Original Message- From: Mark Thomas [mailto:[EMAIL PROTECTED] Sent: Thursday, March 29, 2007 7:06 AM To: Tomcat Users List Subject: Re: How to verify crossdomain.xml in Tomcat Hitesh Raghav wrote: Hi, In one of my application, I've to deploy crossdomain.xml file in my Tomcat (i.e. Tomcat 5.x). There is no such file in a Tomcat installation. Maybe it is part of an application you are trying to deploy? Mark - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Is it possible to have more than one submit button in a JSP file?
Dear All, I hope all of you can still remember me. I had the problem of writing the file content from an applet to a servlet. Now, I'm using JSP and it works. However, from JSP code examples, I always see only one submit button to the server. I would like my system to have several submit buttons that is connected to the server, for example a button for displaying a file from the server and a button for saving a file to the server. The file to display and the file to save should use the same textarea. How should it be done? If there are any source code examples, can anyone please post it to me? Please help! Thank you. Yours Sincerely, TEH NORANIS - Need Mail bonding? Go to the Yahoo! Mail QA for great tips from Yahoo! Answers users.
Re: How to verify crossdomain.xml in Tomcat
Hitesh Raghav wrote: Therefore, I need the help rgd crossdomain.xml deployment directory and verification mechanism in Tomcat scenario. It would appear that this is a static file that needs to be deployed in the top level directory of the ROOT web application. Google or search the archives if you need help with configuring your own ROOT web application. You might have issues with port numbers. If Tomcat is listening on its default port of 8080 I would change this to port 80. Once installed, you should be able to confirm correct installation by requesting: http://host.your.domain/crossdomain.xml HTH, Mark - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Is it possible to have more than one submit button in a JSP file?
On 3/28/07, Teh Noranis Mohd Aris [EMAIL PROTECTED] wrote: I would like my system to have several submit buttons This is a basic HTML question, nothing to do with JSP. Yes, a form in an HTML document can have multiple submit buttons; reading the appropriate recommendation is, uh, recommended :-) HTH, -- Hassan Schroeder [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Is it possible to have more than one submit button in a JSP file?
Dear All, Maybe my question is not that clear. What I mean, is that there are 2 buttons that read data from the server and write data to the server using one textarea. If anyone have the code or come across the code, please e-mail it to me. Thank you. TEH Hassan Schroeder [EMAIL PROTECTED] wrote: On 3/28/07, Teh Noranis Mohd Aris wrote: I would like my system to have several submit buttons This is a basic HTML question, nothing to do with JSP. Yes, a form in an HTML document can have multiple submit buttons; reading the appropriate recommendation is, uh, recommended :-) HTH, -- Hassan Schroeder [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Don't be flakey. Get Yahoo! Mail for Mobile and always stay connected to friends.
Re: Tomcat HTTPS Help needed
Martin Cavanagh wrote: Hi everyone. I'm quite embarrassed - but inspite following the Apache guide, I just can't set up HTTPS via Tomcat! C:\keytool -list -keystore c:\.keystore Geben Sie das Keystore-Passwort ein: Keystore-Typ: JKS Keystore-Provider: SUN The logs don't seem to show anything interesting It does, like always ;) e.g. catalina - 28.03.2007 18:14:51 org.apache.coyote.http11.Http11AprProtocol init INFO: Initializing Coyote HTTP/1.1 on http-80 You are using APR connector with OpenSSL, so Sun keystore is invalid. Either remove tcnative-1.dll from the bin directory or use the OpenSSL (like in Apache2) for SSL See: http://tomcat.apache.org/tomcat-5.5-doc/apr.html Regards, Mladen. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Is it possible to have more than one submit button in a JSP file?
On 3/28/07, Teh Noranis Mohd Aris [EMAIL PROTECTED] wrote: Maybe my question is not that clear. What I mean, is that there are 2 buttons that read data from the server and write data to the server using one textarea. OK, so? It's basic webapp stuff. Is there an actual technical question here /about Tomcat/? -- Hassan Schroeder [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Is it possible to have more than one submit button in a JSP file?
Thanx. Regards, FooShyn - Original Message - From: Teh Noranis Mohd Aris [EMAIL PROTECTED] To: Tomcat Users List users@tomcat.apache.org Sent: Thursday, March 29, 2007 12:21 PM Subject: Re: Is it possible to have more than one submit button in a JSP file? Dear All, Maybe my question is not that clear. What I mean, is that there are 2 buttons that read data from the server and write data to the server using one textarea. You could try using javascript to control your onClick function of your buttons. Pass in different params to your servlet to differentiate the action (i.e. pass in a param =read when you read from the file and a param write when you wanna write to the file) so that your servlet could perform the relevant action. If anyone have the code or come across the code, please e-mail it to me. Thank you. Sorry, can only show you the door, you're the one that gotta walk through it :) TEH Hassan Schroeder [EMAIL PROTECTED] wrote: On 3/28/07, Teh Noranis Mohd Aris wrote: I would like my system to have several submit buttons This is a basic HTML question, nothing to do with JSP. Yes, a form in an HTML document can have multiple submit buttons; reading the appropriate recommendation is, uh, recommended :-) HTH, -- Hassan Schroeder [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Don't be flakey. Get Yahoo! Mail for Mobile and always stay connected to friends. No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.446 / Virus Database: 268.18.20/737 - Release Date: 3/28/2007 4:23 PM - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]