Re: Specify work folder for each application
On 9/16/05, rahul [EMAIL PROTECTED] wrote: Eclipse Poject - Properties- Java Build Path - Source -Add folder... It is not allowing to add a folder outside the project. In Eclipse 3.0 I did this using some mapping external resource. But in 3.1 I couldn't find this option. -- rgds Anto Paul - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Please take my address out of your mailing list !
Dear who-ever every day I get more than 50 mails from people I don't know. I don't even know, what tomcat means (is it a plane?). COULD YOU PLEASE TAKE MY NAME OUT OF YOUR DISTRIBUTION LIST? Thank you very much! francesca villa hänni _ The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from any computer. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Please take my address out of your mailing list !
place the url below in the to field and send it [EMAIL PROTECTED] -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: 16. september 2005 08:40 To: Tomcat Users List Subject: Please take my address out of your mailing list ! Dear who-ever every day I get more than 50 mails from people I don't know. I don't even know, what tomcat means (is it a plane?). COULD YOU PLEASE TAKE MY NAME OUT OF YOUR DISTRIBUTION LIST? Thank you very much! francesca villa hänni _ The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from any computer. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Specify work folder for each application
On 16/09/05, Anto Paul [EMAIL PROTECTED] wrote: On 9/16/05, rahul [EMAIL PROTECTED] wrote: Eclipse Poject - Properties- Java Build Path - Source -Add folder... It is not allowing to add a folder outside the project. In Eclipse 3.0 I did this using some mapping external resource. But in 3.1 I couldn't find this option. This isn't really Tomcat related, but you should be able to 'link' the work directory into the project by choosing 'New Folder', click the advanced button, and set up 'link to existing folder on file system'. HTH James Shaw - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Order of WebApp Loading
Hi, Create a servlet that is shared by all your web applications, perhaps use common/classes (or shared/classes - not sure which), and configure it to be a load-on-startup servlet in each web app's web.xml. your servlet can hook into your db startup code, or not bother if already started. Allistair -Original Message- From: Robert Harper [mailto:[EMAIL PROTECTED] Sent: 15 September 2005 19:08 To: 'Tomcat Users List' Subject: RE: Order of WebApp Loading The case is still that most servlet containers, Tomcat included, are multithreaded and order of processing should not be counted on. One app may be swapped out while the other app runs. It is far better to write your servlets so that there is no dependency on order of operation, order of parameters, etc. Another reason not to count on this is that it is not part of the specification and one implementation or version of a container may choose to provide order or not and this might change. There have been many recommendations on how to do this and I would suggest you try them. Your apps will probably end up being more scaleable as well. Robert S. Harper Information Access Technology, Inc. -Original Message- From: Jilles van Gurp [mailto:[EMAIL PROTECTED] Sent: Thursday, September 15, 2005 11:52 AM To: Tomcat Users List Subject: Re: Order of WebApp Loading If you define the contexts in the server.xml, they are started in the order that you define them, I think. Regards, Jilles Peter Menzel wrote: Hi there, I have a question concerning Tomcats webapp loading: What is the order in which tomcats loads its webapps ? I have two webapps configured by /conf/Catalina/localhost/XXX.xml and I need one webapp to be loaded before the other, because it starts the database. How does Tomcat choose the first, second, ... And what is the loading sequence, if both are deployed as a .war ? Kind regards, Peter Menzel - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE --- QAS Ltd. Registered in England: No 2582055 Registered in Australia: No 082 851 474 --- /FONT FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLACK Disclaimer: The information contained within this e-mail is confidential and may be privileged. This email is intended solely for the named recipient only; if you are not authorised you must not disclose, copy, distribute, or retain this message or any part of it. If you have received this message in error please contact the sender at once so that we may take the appropriate action and avoid troubling you further. Any views expressed in this message are those of the individual sender. QAS Limited has the right lawfully to record, monitor and inspect messages between its employees and any third party. Your messages shall be subject to such lawful supervision as QAS Limited deems to be necessary in order to protect its information, its interests and its reputation. Whilst all efforts are made to safeguard Inbound and Outbound emails, QAS Limited cannot guarantee that attachments are virus free or compatible with your systems and does not accept any liability in respect of viruses or computer problems experienced. /FONT - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Any procrun gurus here?
Jeff, There's no XML interface, but you can put the options in environment variables individually or use the procrun manager to enter them instead. Source code to procrun is in the jakarta commons-daemon project. Best regards Robert Longson -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: 15 September 2005 23:30 To: tomcat-user@jakarta.apache.org Subject: Any procrun gurus here? Aha! The *3* dashes before Classpath were the major culprit. (Is there any way to specify all of these parameters via an XML file?) Now it's running my main(), but the service exits immediately, apparently because my main doesn't do anything. I guess I'll go take another look at what Tomcat's Bootstrap.java does. -Jeff - Forwarded by J. Jeff Roberts/Lex/Lexmark on 09/15/2005 06:29 PM - |-+ | | J. Jeff Roberts | | || | | 09/15/2005 04:53 | | | PM | | || |-+ --| | | | To: tomcat-user@jakarta.apache.org | | cc: | | Subject: Any procrun gurus here? | --| Pardon the cross-post, but I was hoping there might be some procrun knowledge on this list. Thanks, -Jeff - Forwarded by J. Jeff Roberts/Lex/Lexmark on 09/15/2005 04:52 PM - |-+ | | J. Jeff Roberts | | || | | 09/15/2005 04:52 | | | PM | | || |-+ --| | | | To: commons-user@jakarta.apache.org | | cc: | | Subject: [daemon] Crash (now just an error) on service Start - does this look familiar? | --| OK, here's more information, in hopes that more detail will help narrow down what I'm missing. When I start Tomcat myself with Tomcat5.exe, I pass these parameters: tomcat5.exe //IS//Tomcat5 --Startup=auto --DisplayName=Lexmark Solutions Application Server --Jvm=C:\Program Files\Lexmark\Solutions\jre\bin\client\jvm.dll --JvmOptions=-Dcatalina.home=C:\Program Files\Lexmark\Solutions\tomcat;-Djava.endorsed.dirs=C:\Program Files\Lexmark\Solutions\tomcat\common\endorsed;-Djava.io.tmpdir=C:\Program Files\Lexmark\Solutions\tomcat\temp;-Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager --Classpath=C:\Program Files\Lexmark\Solutions\tomcat\bin\bootstrap.jar --JvmMs=512 --JvmMx=512 --StdError=auto --StdOutput=auto --LogPath=C:\Program Files\Lexmark\Solutions\tomcat\logs --StartMode=jvm --StartClass=org.apache.catalina.startup.Bootstrap --StartParams=start --StopMode=jvm --StopClass=org.apache.catalina.startup.Bootstrap --StopParams=stop --Install=C:\Program Files\Lexmark\Solutions\tomcat\bin\tomcat5.exe Now I'm trying to wrap my own service. At first I was getting an Access Violation when I started the service. Then I went and got Bootstrap.java from the Tomcat source distribution, pared it down the bare minimum and copied it into our build so that it's at the classpath below when I run the following command line. procrun //IS//BootStrap --Startup=auto --LogLevel=debug --DisplayName=BootStrap --Jvm=C:\Program Files\Lexmark\Solutions\jre\bin\client\jvm.dll ---Classpath=C:\Program
Re: Session timeout issues
On 15/09/05, Leon Rosenberg [EMAIL PROTECTED] wrote: Hi, I don't know if this fits, but could it be, that your problem is related to the tomcat session synchronization bug? http://issues.apache.org/bugzilla/show_bug.cgi?id=36541 That does look like a potential issue. However, I think I may have tracked this down to cookies and switching between HTTP and HTTPS. There are two scenarios: 1) User starts at an HTTP page and is given a cookie. This cookie can be used in secure and non secure requests. 2) User starts at an HTTPS page and is given a cookie. This cookie is only valid for secure requests (because it has Set-Cookie: ;Secure in the response header). When a user is redirected to an HTTP page they are given a *new* cookie and a new HttpSession is created on the server. Can you tell me the exact semantics of the secure attribute on the connector element? The documentation just says Set this attribute to true if you wish to have calls to request.isSecure() to return true for requests received Thanks James Shaw On 9/15/05, James Shaw [EMAIL PROTECTED] wrote: On 14/09/05, James Shaw [EMAIL PROTECTED] wrote: I have two issues relating to sessions: 1) Sessions seem to be expired too soon. This happens very infrequently for me (perhaps 1 in 1000 requests). I'm adding some HttpSessionListeners and HttpSessionAttributeListeners to attempt to locate this problem, but have little to go on at the moment. I have some more info on this problem. During the login process, the original JSESSIONID that tomcat gives to the browser is being lost and a new HttpSession with a new id is being created. So either the browser is not sending the cookie containing the session id, or Tomcat is somehow losing the id. Does anyone have an idea what this problem could be? Perhaps you could point me to some information about how Tomcat receives cookies and maps these to their respective HttpSession objects. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
jconsole security manager
I like to monitor my tomcat 5.5 (running on jdk 1.5.0) with jconsole. If I run tomcat without security manager everything works well. If I run tomcat with security manager, monitoring the tomcat mbeans works well - but jconsoles memory view doensn't work! Sun's doc says: If your application runs a security manager, then additional permissions are required in the security permissions file. But I have not found which permissions are required? Has somebody have solved this? Which permissions are required? Thanks, Gernot - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to share static content across applications
Hassan Ok, I understand so where do I put the reference to the shared asset Context? I cannot put it in server.xml. Let's say I put want to put the reference in an application called app2, that would work fine expect I already have a Context element defined in context.xml for the app2 application. The only place I am left with is creating a context.xml in the shared app itself. This is also a problem since I have more that one virtual directory For example: I need the following entries: Context docBase=/data0.../webapps/sharedHRM path=/sharedHRM/ and then one entry for each application that references the shared assets like this: Context docBase=/data0.../webapps/sharedHRM path=/app1/sharedHRM/ Context docBase=/data0.../webapps/sharedHRM path=/app2/sharedHRM/ I am doing this because sometimes the JSP/JSF tag appends the application context and sometimes it don't. Do you see what I mean? I could be totally missing the boat and I apologize if that is the case. Thanks, Ritchie Gillam Programmer Analyst, Information Services, Halifax Regional Municipality Email: [EMAIL PROTECTED] Phone: (902) 490-6167 Fax: (902) 490-6583 [EMAIL PROTECTED] 09/15/05 4:46 pm Ritchie Gillam wrote: In the applications that need the shared assets, I already have a Context defined in the context.xml file for each app and I can only have the one. ? An application *is* a Context; the point is to create a single shared asset Context and reference it from wherever. As below... Use either of e.g. ${appBase}/assests/META-INF/context.xml or $CATALINA_HOME/conf/${hostname}/assets.xml -- Hassan Schroeder - [EMAIL PROTECTED] Webtuitive Design === (+1) 408-938-0567 === http://webtuitive.com dream. code. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
neiter admin nor manager works !!? can you help!?
iam having a strange issue with tomcat5.0.28 running on suse linux 9.1 and working behinde Apache using mod_jk: this is my server.xml: = ?xml version='1.0' encoding='utf-8'? Server debug=9 Listener className=org.apache.catalina.mbeans.ServerLifecycleListener debug=0/ Listener className=org.apache.catalina.mbeans.GlobalResourcesLifecycleListener debug=0/ GlobalNamingResources /GlobalNamingResources Service name=DOApache Connector acceptCount=100 connectionTimeout=2 disableUploadTimeout=true port=8080 redirectPort=8443 /Connector Connector acceptCount=6 connectionLinger=0 connectionTimeout=0 connectionUploadTimeout=0 enableLookups=true maxProcessors=75 port=8009 protocol=AJP/1.3 protocolHandlerClassName=org.apache.jk.server.JkCoyoteHandler redirectPort=8443 tcpNoDelay=false /Connector Engine debug=9 defaultHost=do-web.de name=DOApache Host appBase=/srv/www/tomcat/base/work/DOApache debug=9 name=do-web.de Valve className=org.apache.catalina.valves.AccessLogValve fileDateFormat=-MM-dd pattern=%h %l %u %t quot;%rquot; %s %b quot;%{Referer}iquot; quot;%{User-Agent}iquot; prefix=do_access. suffix=.log/ /Host Logger className=org.apache.catalina.logger.FileLogger prefix=dom_fileloger. timestamp=true/ Realm className=org.apache.catalina.realm.MemoryRealm/ Valve className=org.apache.catalina.valves.AccessLogValve fileDateFormat=-MM-dd pattern=%h %l %u %t quot;%rquot; %s %b quot;%{Referer}iquot; quot;%{User-Agent}iquot; prefix=do_accesslogV. suffix=.log/ /Engine /Service /Server === my problem is that when accessing the admin application loging in works fine creating services too only when i try to see the the contenant of a service i gets an error message : - HTTP Status 500 - type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception javax.servlet.ServletException: Define tag cannot set a null value org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:867) org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:800) - i dont really know what could be causing this anyone of you guys can give me a help with it ?? my second issue is that after calling the manager application http:// myhost/manager i get the contenant of the directory manager listed by tomcat and manager the application is not responding at al or not running i ll be glad if you guys can help me to fix this stuff Greetings From Cologne! Yassine __ Verpassen Sie keine eBay-Auktion und bieten Sie bequem und schnell über das Telefon mit http://www.telefonbieten.de Ihre eMails auf dem Handy lesen - ohne Zeitverlust - 24h/Tag eMail, FAX, SMS, VoiceMail mit http://www.directbox.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Please take my address out of your mailing list !
On Fri, 2005-09-16 at 09:00 +0200, Jan Fredrik Fallsen wrote: place the url below in the to field and send it [EMAIL PROTECTED] -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: 16. september 2005 08:40 To: Tomcat Users List Subject: Please take my address out of your mailing list ! Dear who-ever every day I get more than 50 mails from people I don't know. I don't even know, what tomcat means (is it a plane?). COULD YOU PLEASE TAKE MY NAME OUT OF YOUR DISTRIBUTION LIST? Thank you very much! francesca villa hänni _ The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from any computer. Unsubscribe information is at the bottom of every email to this list... - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Virtual Hosts
This setup has been tested on Apache2+JBoss+mod_jk-1.2.14_for MacOSX. And am sure it will work on other platforms as well. This setup also handles Apache related webapps.. Make the required entries in the DNS webapp.war: Extract the war file using zip and rename the folder with .war extension. Please put it in your deployment folder. mod-jk.so: Obtain the modjk.so library file from www.apache.org and place then in the modules folder. Apache-Virtual Host config -- NameVirtualHost *.*.*.*:80 VirtualHost *.*.*.*:80 ServerName webapp.domainname.com ServerAlias www.webapp.domainname.com ServerAdmin [EMAIL PROTECTED] DocumentRoot /Volumes/Extra/jboss/server/default/deploy/webapp.war JkMount /* loadbalancer DirectoryIndex index.html index.jsp ErrorLog logs/webapp-error_log CustomLog logs/webapp-access_log common /VirtualHost - mod-jk.conf LoadModule jk_module /opt/apache2/modules/mod_jk.so JkWorkersFile /opt/apache2/conf/workers.properties JkLogFile /opt/apache2/logs/mod_jk.log JkLogLevel info JkLogStampFormat [%a %b %d %H:%M:%S %Y] JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories JkRequestLogFormat %w %V %T JkMount /webapp.domain.com/*.jsp loadbalancer JkMountFile /opt/apache2/conf/uriworkermap.properties JkShmFile /opt/apache2/logs/jk.shm Location /jkstatus/ JkMount status Allow from 127.0.0.1 Deny from All /Location -- Server.xml - Host name=webapp.domain.com debug=0 appBase=deploy unpackWARs=true Aliaswww.webapp.domain.com/Alias Logger className=org.apache.catalina.logger.FileLogger directory=logs prefix=webapp_log1. suffix=.log timestamp=true/ Context path= docBase=${jboss.server.home.dir}/deploy/webapp.war debug=0 reloadable=true/ /Host -- -- uriworkermap.properties /jmx-console=loadbalancer /jmx-console/*=loadbalancer /web-console=loadbalancer /web-console/*=loadbalancer /webapp.domain.com/*.jsp -- -- workers.properties worker.list=loadbalancer,status worker.webapp.port=8009 worker.webapp.host=webapp.domain.com worker.webapp.type=ajp13 worker.webapp.lbfactor=1 worker.webapp.cachesize=10 worker.loadbalancer.type=lb worker.loadbalancer.balance_workers=library worker.loadbalancer.sticky_session=1 worker.loadbalancer.local_worker_only=1 worker.list=loadbalancer worker.status.type=status _ Regards Thanks Mahesh S Kudva -Original Message- From: Steve Dodge [EMAIL PROTECTED] To: Tomcat Users List tomcat-user@jakarta.apache.org Date: Thu, 15 Sep 2005 15:57:04 -0500 Subject: Re: Virtual Hosts You probably want to change the appBase. You can control the contexts by creating a context snippet in conf/[Engine name]/[Host name] or add it to META-INF/context.xml in each war. Hope that helps, Steve Durfee, Bernard wrote: Okay, so I created two host elements in my server.xml... Host name=app01.myserver.com appBase=webapps autoDeploy=true deployOnStartup=true deployXML=true unpackWARs=true xmlValidation=false xmlNamespaceAware=false / Host name=app02.myserver.com appBase=webapps autoDeploy=true deployOnStartup=true deployXML=true unpackWARs=true xmlValidation=false xmlNamespaceAware=false / ...but how do I tell Tomcat which context to process? There will be no context correct? Do I need a separate appBase directory for each host element? Thanks, Bernie -Original Message- From: Allistair Crossley [mailto:[EMAIL PROTECTED] Sent: Thursday, September 15, 2005 12:10 PM To: Tomcat Users List Subject: RE: Virtual Hosts Simplistically ... Configure Host elements inside your Engine. Create a folder for each application within webapps. Set the Host docBase to each. Check out the online ref. -Original Message- From: Durfee, Bernard [mailto:[EMAIL PROTECTED] Sent: 15 September 2005 17:07 To: tomcat-user@jakarta.apache.org Subject: Virtual Hosts I am having trouble configuring virtual hosts in Tomcat 5.5.9. I have two applications app01 and app02. I have 2 DNS entries app01.myserver.com and app02.myserver.com that both point to the machine on which Tomcat is running. How do I configure Tomcat to serve from app01.war when app01.myserver.com is hit and app02.war when app02.myserver.com is hit. Thanks, Bernie
tomcat url connections
Hello, I have face recently found a tomcat issue that is driving me nuts. I have a Java application that opens a URL connection against tomcat. The parameteres are URLEncoded to be UTF-8 compatible. One of the values of the params is xml (which is the one that makes the thing fail). If I use tomcat 4.1.30 or lower version (up to .24 works fine, which are the one I tested) the code runs fine, but when I change to Tomcat 4.1.31 I find the code throws a socketException when trying to parse the http headers. I have reading the changes introduced in tomcat 4.1.31 and some are relative to encoding which makes me think this could be the cause of the problem. Does any one have faced this problem also? Thanks for your help, Luis Navalpotro
Re: problems setting up tomcat on debian sarge
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Martin Wood wrote: Andrew Miehs wrote: I have tomcat 5.0.25 - 30 running on Sarge without a problem. Sun JVM 1.42r5 and greater. maybe it was just the combinations i tried :) FYI, tomcat5 is now in Debian/unstable and is going to move from the contrib section to the main section. Also it has been reported to run with free runtimes (that's why it's going to main ;-)). Cheers, - -- .''`. : :' :rnaud `. `' `- Java Trap: http://www.gnu.org/philosophy/java-trap.html -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.1 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFDKsOY4vzFZu62tMIRAvk1AKCv6YBSJ0cvfYO6gOsZILEFTsn9VACfcHWV rcnKy0CCwRBgJ487cEzp2As= =4+80 -END PGP SIGNATURE- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Virtual Hosts
I, too, am having problems configuring virtual hosts, in a Tomcat 5.0.28 server, with no Apache, on a Windows XP machine. I've studied the documentation and am puzzled by one area in particular: the definition of 'appBase'. For example, in the text below you suggest putting this in the Host ... section within server.xml: appBase=deploy In a Windows environment, what is deploy? Is it a directory within the tomcat installation? If so, where? I can't see where this location is defined, it just seems to be mentioned in server.xml, in other examples as well as this one. Obviously there's something I'm not understanding... Tom Burke - Original Message - From: Mahesh S Kudva [EMAIL PROTECTED] To: Tomcat Users List tomcat-user@jakarta.apache.org Sent: Friday, September 16, 2005 2:00 PM Subject: Re: Virtual Hosts This setup has been tested on Apache2+JBoss+mod_jk-1.2.14_for MacOSX. And am sure it will work on other platforms as well. This setup also handles Apache related webapps.. Make the required entries in the DNS webapp.war: Extract the war file using zip and rename the folder with .war extension. Please put it in your deployment folder. mod-jk.so: Obtain the modjk.so library file from www.apache.org and place then in the modules folder. Apache-Virtual Host config -- NameVirtualHost *.*.*.*:80 VirtualHost *.*.*.*:80 ServerName webapp.domainname.com ServerAlias www.webapp.domainname.com ServerAdmin [EMAIL PROTECTED] DocumentRoot /Volumes/Extra/jboss/server/default/deploy/webapp.war JkMount /* loadbalancer DirectoryIndex index.html index.jsp ErrorLog logs/webapp-error_log CustomLog logs/webapp-access_log common /VirtualHost - mod-jk.conf LoadModule jk_module /opt/apache2/modules/mod_jk.so JkWorkersFile /opt/apache2/conf/workers.properties JkLogFile /opt/apache2/logs/mod_jk.log JkLogLevel info JkLogStampFormat [%a %b %d %H:%M:%S %Y] JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories JkRequestLogFormat %w %V %T JkMount /webapp.domain.com/*.jsp loadbalancer JkMountFile /opt/apache2/conf/uriworkermap.properties JkShmFile /opt/apache2/logs/jk.shm Location /jkstatus/ JkMount status Allow from 127.0.0.1 Deny from All /Location -- Server.xml - Host name=webapp.domain.com debug=0 appBase=deploy unpackWARs=true Aliaswww.webapp.domain.com/Alias Logger className=org.apache.catalina.logger.FileLogger directory=logs prefix=webapp_log1. suffix=.log timestamp=true/ Context path= docBase=${jboss.server.home.dir}/deploy/webapp.war debug=0 reloadable=true/ /Host -- -- uriworkermap.properties /jmx-console=loadbalancer /jmx-console/*=loadbalancer /web-console=loadbalancer /web-console/*=loadbalancer /webapp.domain.com/*.jsp -- -- workers.properties worker.list=loadbalancer,status worker.webapp.port=8009 worker.webapp.host=webapp.domain.com worker.webapp.type=ajp13 worker.webapp.lbfactor=1 worker.webapp.cachesize=10 worker.loadbalancer.type=lb worker.loadbalancer.balance_workers=library worker.loadbalancer.sticky_session=1 worker.loadbalancer.local_worker_only=1 worker.list=loadbalancer worker.status.type=status _ Regards Thanks Mahesh S Kudva -Original Message- From: Steve Dodge [EMAIL PROTECTED] To: Tomcat Users List tomcat-user@jakarta.apache.org Date: Thu, 15 Sep 2005 15:57:04 -0500 Subject: Re: Virtual Hosts You probably want to change the appBase. You can control the contexts by creating a context snippet in conf/[Engine name]/[Host name] or add it to META-INF/context.xml in each war. Hope that helps, Steve Durfee, Bernard wrote: Okay, so I created two host elements in my server.xml... Host name=app01.myserver.com appBase=webapps autoDeploy=true deployOnStartup=true deployXML=true unpackWARs=true xmlValidation=false xmlNamespaceAware=false / Host name=app02.myserver.com appBase=webapps autoDeploy=true deployOnStartup=true deployXML=true unpackWARs=true xmlValidation=false xmlNamespaceAware=false / ...but how do I tell Tomcat which context to process? There will be no context correct? Do I need a separate appBase directory for each host element? Thanks, Bernie -Original Message- From: Allistair Crossley [mailto:[EMAIL PROTECTED] Sent: Thursday, September 15, 2005 12:10 PM To: Tomcat Users List Subject: RE: Virtual Hosts Simplistically ... Configure Host elements inside your Engine. Create a folder for each application
RE: How to serve just JSP (was: Re: JSP on RHEL4 with Apache http d RPM?
On Wed, 2005-09-14 at 13:22, KEREM ERKAN wrote: OK, start with downloading and installing a binary version of Tomcat for your OS and also download the 1.2.10 version of mod_jk. I think we should handle the rest off list not to bother the list anymore. Yes, that's lot's already installed and has been running fine. ///Peter - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat directory protection (was: Re: mod_jk performance
On Wed, 2005-09-14 at 13:29, Hassan Schroeder wrote: KEREM ERKAN wrote: Apache has better directory/file restricting and handling than Tomcat better in what way? What actual *security* issue are we talking about -- in other words, what exploit is Tomcat susceptible to that Apache is not? I don't know if Kerem Erkan was talking about exploits, but I have looked for some facility in Tomcat equivalent to Apache .htaccess files and failed to find any mention of them. Is it possible to do this kind of IP-level or simple username/password restriction in Tomcat? ///Peter - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: mod_jk performance
On Wed, 2005-09-14 at 13:50, Andrew Miehs wrote: We did some comparisons between running Tomcat 5.0 standalone, or TC 5.0 and Apache 2.0 If you are ONLY delivering JSPs, we found that we could only deal with 50% of the requests when running combined Apache TC and mod_jk OK, that's useful information. But I have 300,000+ static HTML files to server, and about 10 JSP files. I'm surely not switching my entire server to Tomcat...:-) ///Peter - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to serve just JSP (was: Re: JSP on RHEL4 with Apache httpd RPM?
On Wed, 2005-09-14 at 14:04, Michael Lai wrote: KEREM ERKAN wrote: OK, start with downloading and installing a binary version of Tomcat for your OS and also download the 1.2.10 version of mod_jk. I think we should handle the rest off list not to bother the list anymore. Just to give you another option if you like. I don't even use mod_jd. I make use of Apache's reverse proxy feature. In my httpd.conf, I add the following lines in my virtual host: [snip] That's extremely useful, thanks. But I don't want to serve a single whole directory Tomcat, I need to server about a dozen isolated JSP files. Can ProxyPass hand off *.jsp to Tomcat rather than a whole directory? ///Peter - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: mod_jk performance
On Wed, 2005-09-14 at 18:52, Mark Thomas wrote: KEREM ERKAN wrote: Tomcat is harder to configure and -sadly- it has a far worse documentation than Apache (for now). I look forward to seeing your documentation patches in Bugzilla ;) I will certainly document how to fix my problem once it's fixed, but anything I have ever sent to Bugzilla either gets ignored or argued about ad infinitum and nothing ever done, so any doc I write will go on my blog or my web site (from where anyone is free to take/copy it). ///Peter - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
https:// Netscape and Firefox 1.0
Hi! Has anybody experienced problems of using https://blah.blah.com:8443/ esp. with Netscape 8.0 and FireFox 1.0. I get the following error: blah.blah.com has received an incorrect or unexpected message. Error Code: -12227 Things are fine when I use IE or Netscape version 7.0 thanks, Lalit - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: https:// Netscape and Firefox 1.0
From: Lalit Batra [mailto:[EMAIL PROTECTED] Subject: https:// Netscape and Firefox 1.0 Has anybody experienced problems of using https://blah.blah.com:8443/ esp. with Netscape 8.0 and FireFox 1.0. I'm using SSL on Firefox 1.0.6 with Tomcat 5.5.9 on Sun's JRE 1.4.2 and 5.0 without any problems. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: https:// Netscape and Firefox 1.0
I am using the tomcat 5.5.9 , Sun JRE 1.5 and certificate from verisign. FireFox 1.0 On 9/16/05, Caldarale, Charles R [EMAIL PROTECTED] wrote: From: Lalit Batra [mailto:[EMAIL PROTECTED] Subject: https:// Netscape and Firefox 1.0 Has anybody experienced problems of using https://blah.blah.com:8443/ esp. with Netscape 8.0 and FireFox 1.0. I'm using SSL on Firefox 1.0.6 with Tomcat 5.5.9 on Sun's JRE 1.4.2 and 5.0 without any problems. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Cluster and notifications to nodes
Hi, I have successfully installed a Tomcat cluster :) I need to notify other nodes in the cluster when a state is changed in my web application. My problem is that I don't know how to send those notifications. I've found one reply to similar question: You can register your own Cluster Message Listener and with SimpleTcpCluster.send(ClusterMessage) you can send your message to all cluster nodes. How is that done in practice? Does someone have an example how to get the reference to that SimpleTcpCluster instance? Any help is appreciated :) Thanks, Eino ___ How much free photo storage do you get? Store your holiday snaps for FREE with Yahoo! Photos http://uk.photos.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: https:// Netscape and Firefox 1.0
Upgraded firefox 1.0.6 and still same problem. On 9/16/05, Lalit Batra [EMAIL PROTECTED] wrote: I am using the tomcat 5.5.9 , Sun JRE 1.5 and certificate from verisign. FireFox 1.0 On 9/16/05, Caldarale, Charles R [EMAIL PROTECTED] wrote: From: Lalit Batra [mailto:[EMAIL PROTECTED] Subject: https:// Netscape and Firefox 1.0 Has anybody experienced problems of using https://blah.blah.com:8443/ esp. with Netscape 8.0 and FireFox 1.0. I'm using SSL on Firefox 1.0.6 with Tomcat 5.5.9 on Sun's JRE 1.4.2 and 5.0 without any problems. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat directory protection
Peter Flynn wrote: I don't know if Kerem Erkan was talking about exploits, but I have looked for some facility in Tomcat equivalent to Apache .htaccess files and failed to find any mention of them. Is it possible to do this kind of IP-level or simple username/password restriction in Tomcat? I'm not aware of anything directly analogous to .htaccess, but you can certainly accomplish the same goals in other ways. Take a look at SRV.6 (Filtering) and SRV.12 (Security) of the Servlet spec. HTH, -- Hassan Schroeder - [EMAIL PROTECTED] Webtuitive Design === (+1) 408-938-0567 === http://webtuitive.com dream. code. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Order of WebApp Loading
I see, if i can't count on the order of loading, I tried something other: I set crossContext=true for both webapps and while in contextInitialized() of the webapp which schould run only after the first webapp finished loading I use context.getContext(/db-app) to look if the first app ist already there. If not then it should wait with Thread.sleep(). Unfortunately my Tomcat 5.5 seems to use only one thread for loading all web-apps, so if I let it wait the loading of all web-apps is blocked. Obviously this solution will not work reliably, because it depends on the threading model the container uses to load its apps. Do you have any other recommendations for this issue ? Kind regards, Peter Menzel Robert Harper schrieb: The case is still that most servlet containers, Tomcat included, are multithreaded and order of processing should not be counted on. One app may be swapped out while the other app runs. It is far better to write your servlets so that there is no dependency on order of operation, order of parameters, etc. Another reason not to count on this is that it is not part of the specification and one implementation or version of a container may choose to provide order or not and this might change. There have been many recommendations on how to do this and I would suggest you try them. Your apps will probably end up being more scaleable as well. Robert S. Harper Information Access Technology, Inc. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to share static content across applications
Ritchie Gillam wrote: I need the following entries: Context docBase=/data0.../webapps/sharedHRM path=/sharedHRM/ and then one entry for each application that references the shared assets like this: Context docBase=/data0.../webapps/sharedHRM path=/app1/sharedHRM/ Context docBase=/data0.../webapps/sharedHRM path=/app2/sharedHRM/ I am doing this because sometimes the JSP/JSF tag appends the application context and sometimes it don't. That sounds broken; I would try to fix that first before trying to kludge up multiple shared Contexts. But it doesn't sound Tomcat-related -- if you want to send me details off-list about this erratic tag, I'll be happy to try to help. :-) -- Hassan Schroeder - [EMAIL PROTECTED] Webtuitive Design === (+1) 408-938-0567 === http://webtuitive.com dream. code. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Order of WebApp Loading
run your dependent web app in it's own tomcat? -Original Message- From: Peter Menzel [mailto:[EMAIL PROTECTED] Sent: 16 September 2005 15:55 To: Tomcat Users List Subject: Re: Order of WebApp Loading I see, if i can't count on the order of loading, I tried something other: I set crossContext=true for both webapps and while in contextInitialized() of the webapp which schould run only after the first webapp finished loading I use context.getContext(/db-app) to look if the first app ist already there. If not then it should wait with Thread.sleep(). Unfortunately my Tomcat 5.5 seems to use only one thread for loading all web-apps, so if I let it wait the loading of all web-apps is blocked. Obviously this solution will not work reliably, because it depends on the threading model the container uses to load its apps. Do you have any other recommendations for this issue ? Kind regards, Peter Menzel Robert Harper schrieb: The case is still that most servlet containers, Tomcat included, are multithreaded and order of processing should not be counted on. One app may be swapped out while the other app runs. It is far better to write your servlets so that there is no dependency on order of operation, order of parameters, etc. Another reason not to count on this is that it is not part of the specification and one implementation or version of a container may choose to provide order or not and this might change. There have been many recommendations on how to do this and I would suggest you try them. Your apps will probably end up being more scaleable as well. Robert S. Harper Information Access Technology, Inc. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE --- QAS Ltd. Registered in England: No 2582055 Registered in Australia: No 082 851 474 --- /FONT FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLACK Disclaimer: The information contained within this e-mail is confidential and may be privileged. This email is intended solely for the named recipient only; if you are not authorised you must not disclose, copy, distribute, or retain this message or any part of it. If you have received this message in error please contact the sender at once so that we may take the appropriate action and avoid troubling you further. Any views expressed in this message are those of the individual sender. QAS Limited has the right lawfully to record, monitor and inspect messages between its employees and any third party. Your messages shall be subject to such lawful supervision as QAS Limited deems to be necessary in order to protect its information, its interests and its reputation. Whilst all efforts are made to safeguard Inbound and Outbound emails, QAS Limited cannot guarantee that attachments are virus free or compatible with your systems and does not accept any liability in respect of viruses or computer problems experienced. /FONT - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Virtual Hosts
Mahesh Thanks for your help. I think something I don't understand is: what's its root of the virtual server's appbase? I have tomcat (5.0.28) installed in c:\Tomcat 5.0, with the usual set of directories within that - bin, common, conf, logs, server, shared, temp, webapps, work. I don't have a development environment at all. I have applications installed within webapps, using the defaulthost (localhost) and they work fine. Here's a sample of my server.xml: Engine defaultHost=localhost name=Catalina Host appBase=webapps name=localhost Logger className=org.apache.catalina.logger.FileLogger suffix=.txt prefix=localhost_log. timestamp=true/ Valve className=org.apache.catalina.valves.AccessLogValve fileDateFormat=-MM-dd suffix=.txt/ /Host Host appBase=webapps/some_host name=some_host.com Logger className=org.apache.catalina.logger.FileLogger suffix=.txt prefix=some_host_log. timestamp=true/ Valve className=org.apache.catalina.valves.AccessLogValve fileDateFormat=-MM-dd suffix=.txt/ /Host Logger className=org.apache.catalina.logger.FileLogger suffix=.txt prefix=catalina_log. timestamp=true/ Realm className=org.apache.catalina.realm.UserDatabaseRealm/ /Engine I've created a directory within webapps called 'some_host' and within that is a simple jsp, a 'welcome' script. I know that the server, and an external PC, know (from use of Hosts files) that some_host.com is mapped to the server's IP address, and I can successfully ping that address. But I'm not getting the jsp to run! - I just get a 'page unavailable' response. There are no errors in the startup log so I think it must be that Tomcat doesn't know where to look for the welcome.jsp, which suggests that specifying appbase = webapps/some_host isn't working. Tom - Original Message - From: Mahesh S Kudva [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, September 16, 2005 3:18 PM Subject: RE: Virtual Hosts Hi Tom deploy is a directory in any platform you are running Tomcat until unless specified. You need to create the directory if not found. Generally it can be found at /jboss/server/default/deploy Regards Thanks Mahesh S Kudva --- Robosoft Technologies - Partners in Product Development - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to share static content across applications
You were right... I simply removed all the Context elements now in the server.xml file and changed all my code to reference ../sharedHRM or /sharedHRM depending on if the tag appends the Application Context or not. Thanks for your help. Ritchie Gillam Programmer Analyst, Information Services, Halifax Regional Municipality Email: [EMAIL PROTECTED] Phone: (902) 490-6167 Fax: (902) 490-6583 [EMAIL PROTECTED] 09/16/05 11:56 am Ritchie Gillam wrote: I need the following entries: Context docBase=/data0.../webapps/sharedHRM path=/sharedHRM/ and then one entry for each application that references the shared assets like this: Context docBase=/data0.../webapps/sharedHRM path=/app1/sharedHRM/ Context docBase=/data0.../webapps/sharedHRM path=/app2/sharedHRM/ I am doing this because sometimes the JSP/JSF tag appends the application context and sometimes it don't. That sounds broken; I would try to fix that first before trying to kludge up multiple shared Contexts. But it doesn't sound Tomcat-related -- if you want to send me details off-list about this erratic tag, I'll be happy to try to help. :-) -- Hassan Schroeder - [EMAIL PROTECTED] Webtuitive Design === (+1) 408-938-0567 === http://webtuitive.com dream. code. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
driverClass and URL are Null
Hello, I'm currently running Tomcat 5.5 with a Postgresql 8.0 database. I created a test .jsp to test the Datasource, I get the following error: Cannot create JDBC driver of class '' for connect URL 'null' It seems I've inserted the correct parameters in the server.xml, and WEB-INF/web.xml. driverClassName, and URL are not empty in server.xml. Any ideas? Rick Mattier Systems Analyst II Windriver Systems 120 Royall St Canton, Ma 02021 [EMAIL PROTECTED] Canton: 781 364-2002 Nashua: 603 897-2084
Re: Cluster and notifications to nodes
Hi, Why do you want your application to send a notification ? If you configure Session Replication in each of your Tomcat servers, every time there will be a change in your HTTP session, the others AS in the cluster will be notified and synchronized automatically. You have nothing to do... On Fri, 16 Sep 2005 15:18:58 +0100 (BST) Eino Lilius [EMAIL PROTECTED] wrote: Hi, I have successfully installed a Tomcat cluster :) I need to notify other nodes in the cluster when a state is changed in my web application. My problem is that I don't know how to send those notifications. I've found one reply to similar question: You can register your own Cluster Message Listener and with SimpleTcpCluster.send(ClusterMessage) you can send your message to all cluster nodes. How is that done in practice? Does someone have an example how to get the reference to that SimpleTcpCluster instance? Any help is appreciated :) Thanks, Eino ___ How much free photo storage do you get? Store your holiday snaps for FREE with Yahoo! Photos http://uk.photos.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
password authentication causes 403 error
Hi there, I would like to set up my development tomcat-5.0.28 (on port 8080) so that all webapps that are not password protected, to have password authentification. Since it is my dev box I would like to use the memory realm. I have this in my web.xml: security-constraint web-resource-collection url-pattern/*/url-pattern http-methodGET/http-method http-methodPOST/http-method /web-resource-collection auth-constraint role-name=admin/ user-data-constraint transport-guaranteeNONE/transport-guarantee /user-data-constraint /security-constraint login-config auth-methodBASIC/auth-method /login-config I have this in my tomcat-users.xml: tomcat-users role rolename=tomcat/ role rolename=role1/ role rolename=manager/ role rolename=admin/ user username=mylogin password=mypassword roles=admin,manager,role1/ /tomcat-users If I go to http://localhost:8080/manager it asks me to login and then gives me access to the webapp as expected. If I go to http://localhost:8080/ it asks me to login and if I get it wrong is gives me a 401 error as expected but if I get it right it gives me a 403 error instead of allowing access to the webapp. This happens with all webapps that do not have their own authentication. How do I configure tomcat to give me access to my webapps when I login correctly? Thanks, Paul -- Paul Mackinlay (PhD, MEng) http://www.webotech.co.uk/ [EMAIL PROTECTED] Tel: +44(0)7050 699971 Fax: +44(0)7050 699972 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
classloader issue on jboss3.2.2 for tomcat4.1
Hello world, For some reason, i had to change default conf of my jboss 3.2.2 in order to avoid the use of jboss class loader. It's now set in [jboss]\deploy\jbossweb- tomcat41.sar\META-INF\jboss-service.xml in this way : attribute name=UseJBossWebLoaderfalse/attribute The problem is now my webapp does not even see/load my jars in my war/WEB-INF/lib What's the hint? Please help, thx
Re: How to change the SSL port
I thought i saw someone mention the permission error before, but perhaps it was never followed up. on unix, ports below 1024 are protected, and can only be accessed by root. so if you're starting tomcat as anything else, it won't be able to bind to 443. have you checked this out? On Thu, 2005-09-15 at 23:36 -0400, Parsons Technical Services wrote: What OS are you on and what services are running? It sounds like something else has the port tied up. If you can post a list of the services maybe someone might spot it. If you are on windows there are some apps out that can map the app/service to the ports being used. If on Linux, which flavor and what netstat command did you use? When you say scanned the ports are you talking about from another machine or using netstat? Doug - Original Message - From: CommonGround Softworks/Phil McNamara [EMAIL PROTECTED] To: Tomcat Users List tomcat-user@jakarta.apache.org Sent: Thursday, September 15, 2005 11:15 PM Subject: RE: How to change the SSL port Guys, Thank you. Stephen posted the original question on my behalf. I am just now joining the list. Iannis and Chuck thank you for your feedback. Maybe I can provide some more info. Appreciate any further suggestions. I did ports scans before and after the server.xml edits to ports 443 and to 8443. 443 has never responded. I saw 8443 go away, and 443 not come up. Edited server xml back to 8443 and portscanned it coming back up. It would seem to me that this demonstrates that I am editing the correct server.xml instance. I also checked processes and confirmed only one java parent was started. Likewise tested browser https access using 443 and 8443 during the tomcat edit start/stop cycles. 8443 plays. 443 does not. The tomcat log does show a bind error message after my server.xml edit to port 443. Sep 15, 2005 10:37:07 PM org.apache.coyote.http11.Http11Protocol init SEVERE: Error initializing endpoint java.net.BindException: Permission denied:443 snip... Sep 15, 2005 10:37:07 PM org.apache.catalina.startup.Catalina load SEVERE: Catalina.start LifecycleException: Protocol handler initialization failed: java.net.BindException: Permission denied:443 at org.apache.catalina.connector.Connector.initialize(Connector.java:920) snip.. At no time has port 443 responded to an external port scan. Possible that apache or a ssl module has already done a bind internally to 443? I disabled the apache ssl module and can't find any other app that is a likely culprit. Ran Netstat and nothing obvious jumped out at me. Maybe I'm not savvy enough to spot the obvious. Kinda stumped. No firewall config on this machine. Could this be a permissions issue of some sort? I am tempted to fire up ssl with apache on 443 with a trial cert and make sure that Apache's ssl plays. I seem to recall over a year ago that I had a server that never could play ssl. Maybe this is the one with the gremlin :). Phil Mc Check your tomcat log file. If tomcat could bind properly on the SSL port you mentioned, it should show up in the log file (one of the first lines on the top). If not (e.g. because the port is already in use), it will show you a bind error message there as well. If the log says that the port is fine, check for firewall, (etc.) on your box. At least, look at the port number that is specified in the log. It should say 443 if your changes to the server.xml are correct. Iannis -Original Message- From: Stephen Caine [mailto:[EMAIL PROTECTED] Sent: Thursday, September 15, 2005 7:07 PM To: Tomcat Users List Subject: How to change the SSL port All: Is there any way I can change the default SSL port from 8443 to 443? Change the port attribute of the SSL connector in your server.xml file. And use port number 443. yup, I tried this. It doesn't work. I tried edits to server xml connector from 8443 to 443 - 443 port unresponsive after tomcat restart. Tried 8442 also. No joy. Only plays with 8443. There is another setting somewhere Please advise. Stephen Caine CommonGround Softworks, Inc. Phil McNamara CommonGround Softworks Inc. [EMAIL PROTECTED] http://www.commongrnd.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Wher do I get binary of Tomcat
try netbeans as well, if it works on osx. its a little buggy, but far less frustrating than eclipse, imho. On Fri, 2005-09-16 at 00:14 -0400, [EMAIL PROTECTED] wrote: Thanks. I will follow your tips. I am transitioning my network to MacOSX and getting rid Win98 so that was one of last chances for Windows to be useful to me. I need Tomcat to get a skill with Servlets and JSP. I think I could go with Eclipse (it works on MacOSX). Would it be a good environment for experiments to get real skill? Caldarale, Charles R [EMAIL PROTECTED] wrote: ... (Netscape mail is to dumb to reply with quoutes) __ Switch to Netscape Internet Service. As low as $9.95 a month -- Sign up today at http://isp.netscape.com/register Netscape. Just the Net You Need. New! Netscape Toolbar for Internet Explorer Search from anywhere on the Web and block those annoying pop-ups. Download now at http://channels.netscape.com/ns/search/install.jsp - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Cluster and notifications to nodes
this is a good question. i'll be facing the same issue soon. for session-based information, your answer is fine, but what about other types of info, say at the app-level? in one of my apps, for example, I can change some config data using a web request, but what if i want to ensure it is replicated to the other nodes in the cluster? On Fri, 2005-09-16 at 17:53 +0200, Lionel Farbos wrote: Hi, Why do you want your application to send a notification ? If you configure Session Replication in each of your Tomcat servers, every time there will be a change in your HTTP session, the others AS in the cluster will be notified and synchronized automatically. You have nothing to do... On Fri, 16 Sep 2005 15:18:58 +0100 (BST) Eino Lilius [EMAIL PROTECTED] wrote: Hi, I have successfully installed a Tomcat cluster :) I need to notify other nodes in the cluster when a state is changed in my web application. My problem is that I don't know how to send those notifications. I've found one reply to similar question: You can register your own Cluster Message Listener and with SimpleTcpCluster.send(ClusterMessage) you can send your message to all cluster nodes. How is that done in practice? Does someone have an example how to get the reference to that SimpleTcpCluster instance? Any help is appreciated :) Thanks, Eino ___ How much free photo storage do you get? Store your holiday snaps for FREE with Yahoo! Photos http://uk.photos.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: classloader issue on jboss3.2.2 for tomcat4.1
It doesn't see any classes in any of your jars? I was using JBoss 3.2.2 back in 2003 and had the same issue. Once I set the web loader to false, I realized that some utility classes were getting loaded from jars deployed in other wars. Effectively, now each webapp has its own classloader. So, I had to add those same jars into all my wars. On a side note, JBoss 4.0.x does a much better job with this. Steve lio tomcat wrote: Hello world, For some reason, i had to change default conf of my jboss 3.2.2 in order to avoid the use of jboss class loader. It's now set in [jboss]\deploy\jbossweb- tomcat41.sar\META-INF\jboss-service.xml in this way : attribute name=UseJBossWebLoaderfalse/attribute The problem is now my webapp does not even see/load my jars in my war/WEB-INF/lib What's the hint? Please help, thx - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Suppress Connection reset by peer: socket write error.
Hi, I apologize for asking this question again for I remembering asking this question in the past, but I can't find the response. What setting (and where) will suppress the aforementioned exception in the tomcat log? Thank you very much in advance, again! Dola __ Yahoo! Mail - PC Magazine Editors' Choice 2005 http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Why doesn't my context work?
I wrote in yesterday asking about how to map certain directories to tomcat contexts. When nobody answered me I did some Google research. I didn't find much that made sense to me. I prefer man and info pages to what I found. Anyway, I created a file called home.xml in /opt/tomcat5/conf/Catalina/localhost. I made home.xml by copying admin.xml and altering it. Here are the contents of home.xml: Context path=/user appBase=/home docBase=michael/webspace/webapps debug=0 privileged=true /Context If I understand this correctly, when I ask for www.espersunited.com/user/index.jsp, Tomcat should deliver to my browser the contents of /home/michael/webspace/webapps/index.jsp. I restarted Tomcat and went to www.espersunited.com/user/index.jsp in my browser. I got a Tomcat 404 Resource Not Available error. Why? Do I not have the syntax of my context tag right? I would think that this would be a pretty basic thing to do, but maybe not since no one has answered me. What should I do? I've looked over the Tomcat docs on the jakarta.apache.org/tomcat website and as I said there are no man or info pages... - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Help figuring out Virtual Hosts
Hi, I've certainly RTFM'd and had thoroughly read http://jakarta.apache.org/tomcat/tomcat-5.5-doc/config/host.html#Host%20Name%20Aliases but I just can't figure out how to get virtual servers to work. Basically, assume that DNS is set up properly and that ServerA.com ServerB.com and Server.com resolve to the same IP. Now, I want ServerA.com to go to Server.com/MyAppA/index.jsp and ServerB.com to go to Server.com/MyAppB/index.jsp. This, in my mind is sort of like how Apache lets you do it, where of course it takes advantage of the convention of index.html being the default destination. OK, how do I achieve this with Tomcat? Could anyone please provide a specific example? Many thanks, Dola __ Yahoo! Mail - PC Magazine Editors' Choice 2005 http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Why doesn't my context work?
Here are the contents of home.xml: Context path=/user appBase=/home docBase=michael/webspace/webapps debug=0 privileged=true /Context From the documentation for Tomcat 5.5.9 at http://localhost:8080/tomcat-docs/config/context.html: The Document Base (also known as the Context Root) directory for this web application, or the pathname to the web application archive file (if this web application is being executed directly from the WAR file). You may specify an absolute pathname for this directory or WAR file, or a pathname that is relative to the appBase directory of the owning Host. If you've not changed server.xml, then the appBase is $CATALINA_HOME/webapps. Rather than using a combination of appBase and docBase in your context file (and I don't think appBase is appropriate in a context node - at least in 5.5.9), you could use an absolute path for docBase: /home/michael/webspace/webapps/user This means that the following URL would potentially work. www.espersunited.com/user/index.jsp The next issue is one of permissions. If you're on a UNIX machine, make sure that /home/michael/webspace/webapps/user is readable by the owner of the process running Tomcat. Otherwise you'll not be able to serve the files. Finally, I notice that you're going directly at this URL: http://www.espersunited.com/user/index.jsp Unless your Tomcat is configured to run on port 80, you will be hitting any web server that is running, and not your Tomcat server. By default, Tomcat serves http on port 8080. In order to get Tomcat and Apache talking, you'll have to do a lot more work. This involves getting mod_jk (or mod_proxy) built and installed, configuring Apache httpd.conf, workers.properties, and possibly server.xml (although the default server.xml already has the ajp 1.3 connector configured). I hope that starts you down a more productive path. /mde/ __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat on UNIX
Hi: What's the JDK/JVM requirement for running Tomcat 5.5 on AIX 5.1 and HP-UX11? thanks Wei __ Yahoo! Mail - PC Magazine Editors' Choice 2005 http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
help with embedded tomcat's webapp classloader
hey guys. i'm trying out embedding tomcat 5.0 in an swt app that creates complex configuration data for a webapp. basically, i'd like the users to be able to do a test deploy of the webapp on their own box using hsqldb and an embedded tomcat. my code looks more or less like so: import org.apache.catalina.*; import org.apache.catalina.logger.FileLogger; import org.apache.catalina.realm.MemoryRealm; import org.apache.catalina.startup.Embedded; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; import java.net.InetAddress; public final class Tomcat { private static final Log log = LogFactory.getLog(Tomcat.class); private final Embedded embeddedTomcat; private final Engine baseEngine; private final Host baseHost; private final Context rootContext; public Tomcat() { embeddedTomcat = new Embedded(); final FileLogger fileLogger = new FileLogger(); fileLogger.setDirectory(.); fileLogger.setPrefix(myTomcat); fileLogger.setSuffix(.log); fileLogger.setTimestamp(true); embeddedTomcat.setLogger(fileLogger); final MemoryRealm memoryRealm = new MemoryRealm(); embeddedTomcat.setRealm(memoryRealm); baseEngine = embeddedTomcat.createEngine(); baseEngine.setName(myEngine); baseEngine.setDefaultHost(localhost); baseHost = embeddedTomcat.createHost(localhost, webapps); baseEngine.addChild(baseHost); rootContext = embeddedTomcat.createContext(, ROOT); baseHost.addChild(rootContext); embeddedTomcat.addEngine(baseEngine); final Connector httpConnector = embeddedTomcat.createConnector((InetAddress)null, 8080, false); embeddedTomcat.addConnector(httpConnector); } public void start() { try { embeddedTomcat.start(); } catch (LifecycleException e) { log.error(Error starting tomcat, e); } } public void stop() { try { embeddedTomcat.stop(); } catch (LifecycleException e) { log.error(Error stopping tomcat, e); } } } everything works okay but my webapp fails on initialization, with a NoClassDefFoundError on net.sf.hibernate.HibernateException. this is somewhat surprising given that hibernate.jar lives in the webapp's WEB-INF/lib directory. is there some additional configuration i need to do on my embedded Context object to force it to act like a normal tomcat webapp Context? do i perhaps need to ensure the webapp directory structure is in place before constructing my Tomcat instance? (that is to say, are the contents of WEB-INF/lib examined when the Context is created and/or added to the Host, or when tomcat is started?) - donald - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat shutdown and processes
Hi all, Maybe someone has experienced this issue I'm having - I am running Apache/Tomcat4 on Debian using JDK1.4. I have done this install on a number of different machines - however this is the first install I've done on the 2.6 kernel. Everything seems to be working fine - tomcat and apache are running and i don't see any errors in the logs. However I am noticing something weird. In previous installations - whenever I start tomcat and do a ps -elf afterwards - there are a large number of processes running. However in this installation - the number of processes is really small - ie 2 or 3. Is this something I should configure? Second - whenever I try to shutdown Tomcat - it takes a really long time and I end up with the message as follows cletus:/etc/init.d# ./tomcat4 restart Stopping Tomcat 4.1 servlet engine: .. (killing) . (killing) tomcat4. Starting Tomcat 4.1 servlet engine using Java from /usr/local/jdk14: tomcat4. cletus:/etc/init.d# I mean it works - but I have never seen this before. Any ideas would help Thanx Adile -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.344 / Virus Database: 267.11.1/104 - Release Date: 9/16/05
Re: Why doesn't my context work?
Michael Sullivan wrote: what I found. Anyway, I created a file called home.xml in /opt/tomcat5/conf/Catalina/localhost. I made home.xml by copying admin.xml and altering it. Here are the contents of home.xml: Context path=/user appBase=/home docBase=michael/webspace/webapps debug=0 privileged=true /Context Per the Tomcat doc that's been quoted here half-a-dozen times in the last couple of days, or so it seems :-) -- *take the path attribute out* because Tomcat *doesn't use it* unless the Context is defined inside server.xml. Either call the file user.xml or change your request to http://www.espersunited.com/home/index.jsp And, as has already been pointed out, 'appBase' is not a valid attribute of Context. HTH, -- Hassan Schroeder - [EMAIL PROTECTED] Webtuitive Design === (+1) 408-938-0567 === http://webtuitive.com dream. code. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat 5.5 Virtual Hosting
Okay, after much struggle here is the solution I came up with for virtual hosting... 1 Machine, 3 DNS Entries - mymachine.me.com, app01.me.com, app02.me.com == server.xml - 3 host entries under the Catalina engine: Host name=localhost appBase=webapps unpackWARs=true autoDeploy=true xmlValidation=false xmlNamespaceAware=false /Host Host name=app01.me.com appBase=webapps-app01.me.com unpackWARs=true autoDeploy=true xmlValidation=false xmlNamespaceAware=false /Host Host name=app02.me.com appBase=webapps-app02.me.com unpackWARs=true autoDeploy=true xmlValidation=false xmlNamespaceAware=false /Host Notice each host has a separate appBase. == == Create directories for host contexts: [TOMCAT]/conf/Catalina/app01.me.com [TOMCAT]/conf/Catalina/app02.me.com These are the directories that Tomcat will look in to figure out how to process incoming URLs. Copy manager.xml from [TOMCAT]/conf/Catalina/localhost to both of these new directories. This allows you to use the manager to deploy into each host. == == Start Tomcat, browse to app01.me.com/manager/html, which will bring up the manager for app01.me.com. Deploy your application, make sure the WAR file is named with the context you want. To deploy to the root context you need to name the WAR: ROOT.war, with 'root' all caps. == Bernie - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Fwd: Re: How to change the SSL port
On 9/15/05, Hassan Schroeder [EMAIL PROTECTED] wrote: CommonGround Softworks/Phil McNamara wrote: The tomcat log does show a bind error message after my server.xml edit to port 443. Sep 15, 2005 10:37:07 PM org.apache.coyote.http11.Http11Protocol init SEVERE: Error initializing endpoint java.net.BindException: Permission denied:443 Are you starting Tomcat as root? Doesn't look like it... See http://www.klawitter.de/tomcat80.html for details, just do the same but for 443 not 80. Regards, -- Jason Bainbridge Reworked to post to the list: Thanks Jason, I did a trial start of Tomcat as root to pin down if the failure to bind to 443 as a priviliged port was the problem. Seems so. The tomcat log now shows it can't find the keystore -- expected since that file is stashed in the normal starting user directory and tomcat didn't know where to find it when started as root. Log doesn't show a failure to bind to 443. So some progress I looked over info in the link above and compiled jsvc OK. Am unable to start Tomcat as a daemon though per the script referenced cd $CATALINA_HOME ./bin/jsvc \ -user $TOMCAT_USER \ -cp ./bin/bootstrap.jar \ -outfile ./logs/catalina.out \ -errfile ./logs/catalina.err \ -Djava.endorsed.dirs=./common/endorsed \ -Dcatalina.home=$CATALINA_HOME \ -Djava.io.tmpdir=$CATALINA_TMPDIR \ org.apache.catalina.startup.Bootstrap start I'll have to do some tinkering. the catalina.err file shows the following: jsvc error: Cannot continue dyld: ./bin/jsvc dead lock (dyld operation attempted in a thread already doing a dyld operation) jsvc error: Service did not exit cleanly Thoughts? phil Phil McNamara CommonGround Softworks Inc. [EMAIL PROTECTED] http://www.commongrnd.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Help figuring out Virtual Hosts
Dola, I believe in order to serve static content you'll need to create a context XML file. I just posted an email outlining how I was able to get virtual hosting working. An additional step in your case would be to create a file [TOMCAT]/conf/Catalina/servera.com/ROOT.xml and include a context definition. The your content would reside in the [TOMCAT]/webapps-servera.com directory. Bernie -Original Message- From: Dola Woolfe [mailto:[EMAIL PROTECTED] Sent: Friday, September 16, 2005 2:44 PM To: Tom Cat Subject: Help figuring out Virtual Hosts Hi, I've certainly RTFM'd and had thoroughly read http://jakarta.apache.org/tomcat/tomcat-5.5-doc/config/host.ht ml#Host%20Name%20Aliases but I just can't figure out how to get virtual servers to work. Basically, assume that DNS is set up properly and that ServerA.com ServerB.com and Server.com resolve to the same IP. Now, I want ServerA.com to go to Server.com/MyAppA/index.jsp and ServerB.com to go to Server.com/MyAppB/index.jsp. This, in my mind is sort of like how Apache lets you do it, where of course it takes advantage of the convention of index.html being the default destination. OK, how do I achieve this with Tomcat? Could anyone please provide a specific example? Many thanks, Dola __ Yahoo! Mail - PC Magazine Editors' Choice 2005 http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat5.5 stops responding after sevral days
I am running Tomcat 5.5 and about every 2 - 5 days it stops fully responding. Meaning that nothing will load in a browser when accessing Tomcat but the browser will never time out either. It will just sit there waiting forever. It happens to all of the modules loaded in webapps as well as to the admin and deployment modules. Nothing in Tomcat will respond. Stopping and then restarting Tomcat resolves the problem for 2 -5 days until it happens again. Catalina.out does not show any errors, exceptions, or warnings before it happens. Netstat only shows 5 - 10 connections well under the max set for any of the modules. Top shows the processor 0% userd with 50 - 100 MB of RAM and lots of swap space available. The database logs also do not report any errors. Usually when I see the symptom of Tomcat not responding but not timing out either. It is caused by an in accessible data base. But in those instances the connection failure is logged in catalina.out, it only effects the one module that can not get to its data base. This lead me to wonder if Tomcat was some how losing its connection to the data base that stores the realm user data.(NOTE: This instance of Tomcat is configured to access MySQL to get user realm info) But if that were the case I would have assumed the failed connection would be logged in Catalina.out. Just in case I added ?autoReconnect=true to all of the DB URLs but it has not helped. I could use some ideas of other things I should be looking into and or options I should be setting to log more details. Thoughts any one? I have included system details and the server.xml file below OS : Redhat 9.0 JVM : 1.5.3 Tomcat : 5.5 MySQL : 4.1.8 server.xml !-- Example Server Configuration File -- !-- Note that component elements are nested corresponding to their parent-child relationships with each other -- !-- A Server is a singleton element that represents the entire JVM, which may contain one or more Service instances. The Server listens for a shutdown command on the indicated port. Note: A Server is not itself a Container, so you may not define subcomponents such as Valves or Loggers at this level. -- Server port=8005 shutdown=SHUTDOWN !-- Comment these entries out to disable JMX MBeans support used for the administration web application -- Listener className=org.apache.catalina.mbeans.ServerLifecycleListener / Listener className=org.apache.catalina.mbeans.GlobalResourcesLifecycleListener / Listener className=org.apache.catalina.storeconfig.StoreConfigLifecycleListener/ !-- Global JNDI resources -- GlobalNamingResources !-- Test entry for demonstration purposes -- Environment name=simpleValue type=java.lang.Integer value=30/ !-- Editable user database that can also be used by UserDatabaseRealm to authenticate users -- !-- Resource name=UserDatabase auth=Container type=org.apache.catalina.UserDatabase description=User database that can be updated and saved factory=org.apache.catalina.users.MemoryUserDatabaseFactory pathname=conf/tomcat-users.xml / -- !-- Resource name=UserDatabase auth=Container type=javax.sql.DataSource description=User database that can be updated and saved username=root password=printtime!! driverClassName=com.mysql.jdbc.Driver url=jdbc:mysql://192.168.2.3/PTOnlineUsers?autoReconnect=true maxActive=6 maxIdle=2 / -- /GlobalNamingResources !-- A Service is a collection of one or more Connectors that share a single Container (and therefore the web applications visible within that Container). Normally, that Container is an Engine, but this is not required. Note: A Service is not itself a Container, so you may not define subcomponents such as Valves or Loggers at this level. -- !-- Define the Tomcat Stand-Alone Service -- Service name=Catalina !-- A Connector represents an endpoint by which requests are received and responses are returned. Each Connector passes requests on to the associated Container (normally an Engine) for processing. By default, a non-SSL HTTP/1.1 Connector is established on port 8080. You can also enable an SSL HTTP/1.1 Connector on port 8443 by following the instructions below and uncommenting the second Connector entry. SSL support requires the following steps (see the SSL Config HOWTO in the Tomcat 5 documentation bundle for more detailed instructions): * If your JDK version 1.3 or prior, download and install JSSE 1.0.2 or later, and put the JAR files into $JAVA_HOME/jre/lib/ext. * Execute: %JAVA_HOME%\bin\keytool -genkey -alias tomcat -keyalg RSA (Windows) $JAVA_HOME/bin/keytool
Broken links on the Tomcat 5.5 Docs pages
The following links relating to realm logging on page http://jakarta.apache.org/tomcat/tomcat-5.5-doc/realm-howto.html are broken http://jakarta.apache.org/tomcat/tomcat-5.5-doc/context.html http://jakarta.apache.org/tomcat/tomcat-5.5-doc/host.html http://jakarta.apache.org/tomcat/tomcat-5.5-doc/engine.html -- Brian Cook Digital Services Analyst Print Time Inc. [EMAIL PROTECTED] 913.345.8900 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Why doesn't my context work?
From the documentation for Tomcat 5.5.9 at http://localhost:8080/tomcat-docs/config/context.html: The Document Base (also known as the Context Root) directory for this web application, or the pathname to the web application archive file (if this web application is being executed directly from the WAR file). You may specify an absolute pathname for this directory or WAR file, or a pathname that is relative to the appBase directory of the owning Host. If you've not changed server.xml, then the appBase is $CATALINA_HOME/webapps. Rather than using a combination of appBase and docBase in your context file (and I don't think appBase is appropriate in a context node - at least in 5.5.9), you could use an absolute path for docBase: /home/michael/webspace/webapps/user This means that the following URL would potentially work. www.espersunited.com/user/index.jsp The next issue is one of permissions. If you're on a UNIX machine, make sure that /home/michael/webspace/webapps/user is readable by the owner of the process running Tomcat. Otherwise you'll not be able to serve the files. Finally, I notice that you're going directly at this URL: http://www.espersunited.com/user/index.jsp Unless your Tomcat is configured to run on port 80, you will be hitting any web server that is running, and not your Tomcat server. By default, Tomcat serves http on port 8080. In order to get Tomcat and Apache talking, you'll have to do a lot more work. This involves getting mod_jk (or mod_proxy) built and installed, configuring Apache httpd.conf, workers.properties, and possibly server.xml (although the default server.xml already has the ajp 1.3 connector configured). I hope that starts you down a more productive path. /mde/ __ OK. For clarification I am running tomcat-5.0.27-r6. I want user's tomcat files to be read from /home/*/webspace/webapps. My personal account is michael so my personal tomcat directory would be /home/michael/webspace/webapps . Just for the sake of arguments I created a directory called user under /home/michael/webspace/webapps and moved my jsp files into it. My /opt/tomcat5/conf/Catalina/localhost/user.xml file looks like this now: Context docBase=/home/michael/webspace/webapps/user debug=0 privileged=true /Context I restarted Tomcat. I am using mod_jk and when I go to www.espersunited.com/index.jsp I see the Tomcat start page. However, when I go to www.espersunited.com/user/index.jsp I get Tomcat 404 Resource Not Available for /user/index.jsp . You reprinted the paragraph from the Tomcat documentation and it made the same amount of sense to me as it did when I read it in the Tomcat docs: Basically none. I've taken the path and appBase attributes out of the my Context tag as you see above. The entire tree from /home/michael/webapps to the files in /home/michael/webapps/user have been set chmod 755 (owner all, group and others read/execute), and it still doesn't work. Any other ideas? I haven't changed /opt/tomcat5/conf/server.xml at all... - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat on UNIX
java 1.4 -Tim Wei Zhao wrote: Hi: What's the JDK/JVM requirement for running Tomcat 5.5 on AIX 5.1 and HP-UX11? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Issue with the admin webapp
Thanks. I've verified that this is fixed in 5.5.11-alpha. Just wanted to know if the same fix will be made available under 5.0.x (5.0.30 ?) as well ? I'd imagine the fix is just to the admin webapp itself, and assuming that it is backward compatible with 5.0.x, then we should be able to use the 5.5.11 admin webapp in 5.0.x ? I'm going to give it a try when I get a chance. Thanks, Sastry Mark Thomas wrote: Sastry Malladi wrote: I filed a bug for this (http://issues.apache.org/bugzilla/show_bug.cgi?id=35835) and it seems this is fixed in 5.5.10. But I don't see a 5.5.10 download and wanted clarification on whether 5.5.11-alpha contains the fix as well. I'm going to check it out anyways when I get a chance. Yes it does include the fix. More generally, any x.y.z+1 release contains all the fixes in x.y.z Mark - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Why doesn't my context work?
--- Michael Sullivan [EMAIL PROTECTED] wrote: OK. For clarification I am running tomcat-5.0.27-r6. I want user's tomcat files to be read from /home/*/webspace/webapps. My personal account is michael so my personal tomcat directory would be /home/michael/webspace/webapps . Just for the sake of arguments I created a directory called user under /home/michael/webspace/webapps and moved my jsp files into it. My /opt/tomcat5/conf/Catalina/localhost/user.xml file looks like this now: Context docBase=/home/michael/webspace/webapps/user debug=0 privileged=true /Context You don't need privledged=true, so let's remove that. I restarted Tomcat. I am using mod_jk and when I go to www.espersunited.com/index.jsp I see the Tomcat start page. However, Good, you're using mod_jk. You will need to do some Apache configuration in order for this to work. I am going to assume that /home/* lies outside of the DocumentRoot directory tree. 1. Get Apache to recognize web directories outside of the DocumentRoot tree. There are several ways of doing this. One such way is given in the actuall httpd.conf file that comes with the stock Apache. Basically you need to give a set of Directory directives that give Apache access to the material in the home directories. If you use the userdir_module in Apache, then ~username/directory will become a part of the web space (if you take the comments out). If you do this by hand, you'll need to give both Directory directives and an Alias directive to move it into the web space that Apache serves. 2. Once you do that, you'll need to add JkMount statements as well. I suspect that JkMount statements will respond to Alias directives since JkMount deals with web space and not directories. I don't know if JkMount interacts with the userdir_module. In other words, I don't know what will happen if you put in a JkMount statment that reads: JkMount /~*/*.jsp tomcat It would be interesting to find out if that would end up mapping to /~username/directory/*.jsp where username is the user name and directory is the value of UserDir. 3. Once you do that, it's always nice to make a small WEB-INF/web.xml, even for plain jsp pages. Something like the following should work: ?xml version=1.0 encoding=UTF-8? !DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN http://java.sun.com/dtd/web-app_2_3.dtd; web-app display-nameBeginning JSP/display-name descriptionContainer for quick jsptests/description welcome-file-list welcome-fileindex.jsp/welcome-file /welcome-file-list /webapp Sorry for the wrapping. In short, you need to do the following three steps. 1. Make sure your Apache server knows about directories outside of DocumentRoot. Use Directory and Alias directives or userdir_module. 2. Use JkMount to map the expected incoming URLs to the Tomcat server. Experiment to see if JkMount picks up on the substitutions done by userdir_module. 3. Make a small WEB-INF/web.xml with the appropriate structure. Creating a proper web application is useful, especially once you start adding servlets to the mix. /mde/ when I go to www.espersunited.com/user/index.jsp I get Tomcat 404 Resource Not Available for /user/index.jsp . You reprinted the paragraph from the Tomcat documentation and it made the same amount of sense to me as it did when I read it in the Tomcat docs: Basically none. Hmm, let me see if I can give my explanation. If you do not have a leading / in your appBase value, then the containing Host's docBase value gets stuck on in front. In other words: appBase-value/docBase-value From the Host container documentation, if the appBase value does not have a leading /, then it is taken relative to $CATALINA_BASE. The resulting path to the application looks like: $CATALINA_BASE/appBase-value/docBase-value If you haven't defined $CATALINA_BASE, it defaults to the same value as $CATALINA_HOME. The resulting path to the application the looks like: $CATALINA_HOME/appBase-value/docBase-value -- In combination with the userdir_module from Apache to get the directories into Apache's web space, you might also want to take a look at user web applications section of the Host container document. The section is toward the end of: http://localhost:8080/tomcat-docs/config/host.html It looks like you could use the userdir_module, appropriate JkMount directives, and the howto in the Host container document to construct a pretty flexible environment where every user could have a web applications directory. /mde/ __ Yahoo! Mail - PC Magazine Editors' Choice 2005 http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]