Newbie setup Q
Hi, I'm new to tomcat, and having some troubles understanding the config files. I'm just wondering how do I go about using something other that %CATALINA_HOME%\webapps for the applications? I want to use something that's in a differnt place (d:\clients\clientname\website), since we already have our infrastructure set up that way for existing sites. Any help or a pointer to some more detailed help on server.xml would be much appreciated. Cheers, -Josh Rimmer, real dumplings, proper dumplings when they're properly cooked to perfection, proper dumplings, should not bounce. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Cobranding - Share Controller, Split View
Hi, I know I can treat the servlets as a separate webapp and deploy them to each separate host, but if I do this, will they be able to access the different configuration ( context-param and JNDI resources ) specified in the each ROOT context's web.xml? What about having the same servlet referenced more than once in the same web.xml with different init-params ? Consider you have Servlet com.codemagi.FooServlet, then you could do servlet servlet-name com.gargelmarf.FooServlet /servlet-name servlet-class com.codemagi.FooServlet /servlet-class init-param param-namebrandType/param-name param-value1/param-value /init-param {...} /servlet servlet servlet-name com.foobaz.FooServlet /servlet-name servlet-class com.codemagi.FooServlet /servlet-class init-param param-namebrandType/param-name param-value2/param-value /init-param {...} /servlet -- All these servlets can be accessed from the same context, but have different names. The servlet com.codemagi.FooServlet reads the init-param to determine the brand. If you access: /mycontext/servlet/com.gargelmarf.FooServlet /mycontext/servlet/com.foobaz.FooServlet all that is called are two different instances of com.codemagi.FooServlet, sharing the same context but with different init-params. Probably this is the easiest way to do it. ciao, -hen -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: setenv.sh
Hi, In my Linux machine, it doesn't have the setenv.sh inside $TOMCAT/bin directory. How can I set up setenv.sh inside Tomcat? Is there any online reference site which I can refer to? You don't need to. Everything is done already in catalina.sh; so if you call '$CATALINA_HOME/bin/catalina.sh run' (or start/stop ..) all Classpath's etc. are set up correclty. You can pass additional parameters in the CATALINA_OPTS or JAVA_OPTS environment variables. Regards, Johnny. ciao, Henner. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Newbie setup Q
Hi, If u r using tomcat 3.3.1, then in server.xml, for context do the following for docbase. Context path=/website docBase=D:/clients/clientname/website debug=9 reloadable=true / it will work fine. bye, Murugan -Original Message- From: Josh [mailto:[EMAIL PROTECTED]] Sent: Monday, July 15, 2002 11:52 AM To: [EMAIL PROTECTED] Subject: Newbie setup Q Hi, I'm new to tomcat, and having some troubles understanding the config files. I'm just wondering how do I go about using something other that %CATALINA_HOME%\webapps for the applications? I want to use something that's in a differnt place (d:\clients\clientname\website), since we already have our infrastructure set up that way for existing sites. Any help or a pointer to some more detailed help on server.xml would be much appreciated. Cheers, -Josh Rimmer, real dumplings, proper dumplings when they're properly cooked to perfection, proper dumplings, should not bounce. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Jar_cache* files bis
-Message d'origine- De : Craig R. McClanahan [mailto:[EMAIL PROTECTED]] Envoye : vendredi 12 juillet 2002 18:16 A : Tomcat Developers List; [EMAIL PROTECTED] Cc : [EMAIL PROTECTED] Objet : Re: Jar_cache* files bis On Fri, 12 Jul 2002, Arnaud HERITIER wrote: Date: Fri, 12 Jul 2002 15:05:15 +0200 From: Arnaud HERITIER [EMAIL PROTECTED] Reply-To: Tomcat Developers List [EMAIL PROTECTED], [EMAIL PROTECTED] To: Tomcat-Dev (E-mail) [EMAIL PROTECTED] Subject: Jar_cache* files bis Hello everybody! Few days ago, I send a question about jar_cache* files and I didn't have replies. I did answer ... must have been buried in your mailbox. Hi Craig. I'm very really sorry Craig !! I always read all your post carrefully and I don't explain how I do to not see it. I will castigate myself ;-) None of you knows how are used this files by Tomcat ??? Tomcat does not directly acces jar_cache files at all, in any way -- they are probably an implementation artifact of how your JDK deals with JAR files. ooops, it's a problem more annoying than I thought. it's possible because our customer uses the IBM JDK and not the SUN one. I will continue to search in this direction. Thx Craig for your patience. I would like to know if it possible to delete this files because Tomcat (4.0.1 under AIX) don't delete them when it shutdown :-( Sounds like a bug in your JDK. Can I delete this files when TC is running ?? How can I set the temp directory used for this files. It might be usefull when we have several Tomcat installed on the same machine in a production environnement. Thanks Arnaud Craig -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: classpath problem
Andrew, Yes theses are parts of a package. They are just common classes that I wish to use across multiple apps. Im not sure what you mean by Did you build the package directory structure to match in the %CATALINA$\common\classes? I did not change the packages at all, I copied them directly from my system classpath (where they were being picked up by a previous Tomcat install) *directly* into the $CATALINA_HOME/common/classes folder. ie : %CATALINA$\common\classes contains first level folders such as com, org, javax etc. My install did not even have a $CATALINA$\shared\classes folder.. however as you suggested i created one, re-started and again it did not work. I have tried puttintg the reported missing class in my apps /WEB-INF/classes folder already, this is not where my problem is, i need the common classes to be picked up from one place as i dont want to compromise and copy these common classes into several apps /WEB-INF/classes directory. Thanks :) Mehdi Andrew Conrad [EMAIL PROTECTED] 12/07/2002 18:34 Please respond to Tomcat Users List To: 'Tomcat Users List' [EMAIL PROTECTED] cc: Subject:RE: classpath problem Are these classes apart of a package? Did you build the package directory structure to match in the %CATALINA$\common\classes? Have you tried the $CATALINA$\shared\classes folder? How about a webapp's WEB-INF\classes folder? Testing these to see if you can get any of them to work might help you solve your problem. - Andrew -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Friday, July 12, 2002 12:36 PM To: [EMAIL PROTECTED] Subject: classpath problem All, I have installed Tomcat 4.0.2. All examples work fine, jsp's and servlets. when i removed my old version of Tomcat / apache, i obviously saved all of my existing apps. I have now pointed Tomcat to these by specifying new Contexts in my server.xml. All is fine... nearly. My problem is that my classpath is not being picked up. Reading the docs, i found that $CATALINA_HOME/common/classes is where i should put my non application specific, common classes. I have done this but to no avail, these classes which should be visible to my apps according to the documentation are not found and a NoClassDefFound error results. I have tried putting my common classes in the following directories : $CATALINA_HOME/common/classes $CATALINA_HOME/classes They are not picked up. Needless to say i have restarted the service, rebooted and hit my computer many times. Any help would be appreciated Thanks Mehdi -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Newbie setup Q
more info: http://jakarta.apache.org/tomcat/tomcat-4.0-doc/config/server.html Cheers, Mehdi Telesis Support - Bangalore [EMAIL PROTECTED] 15/07/2002 07:29 Please respond to Tomcat Users List To: Tomcat Users List [EMAIL PROTECTED], Josh [EMAIL PROTECTED] cc: Subject:RE: Newbie setup Q Hi, If u r using tomcat 3.3.1, then in server.xml, for context do the following for docbase. Context path=/website docBase=D:/clients/clientname/website debug=9 reloadable=true / it will work fine. bye, Murugan -Original Message- From: Josh [mailto:[EMAIL PROTECTED]] Sent: Monday, July 15, 2002 11:52 AM To: [EMAIL PROTECTED] Subject: Newbie setup Q Hi, I'm new to tomcat, and having some troubles understanding the config files. I'm just wondering how do I go about using something other that %CATALINA_HOME%\webapps for the applications? I want to use something that's in a differnt place (d:\clients\clientname\website), since we already have our infrastructure set up that way for existing sites. Any help or a pointer to some more detailed help on server.xml would be much appreciated. Cheers, -Josh Rimmer, real dumplings, proper dumplings when they're properly cooked to perfection, proper dumplings, should not bounce. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
AW: jdk1.4 vs jdk1.2 ==Here is the error page. MAYBE A DEVELOPER OF THIS THING WOULD KNOW!
That looks like there is an outdated servlet.jar (or another jar file that contains a javax.servlet.jsp.pageContext class) in the classpath. Previous version of the jsdk just had a handlePageException(Exception) the latest version (2.3) has a handlePageException(Throwable) which is used by tomcat. -Ursprüngliche Nachricht- Von: Luminous Heart [mailto:[EMAIL PROTECTED]] Gesendet: Montag, 15. Juli 2002 02:52 An: Tomcat Users List Betreff: RE: jdk1.4 vs jdk1.2 ==Here is the error page. MAYBE A DEVELOPER OF THIS THING WOULD KNOW! snip/ Generated servlet error: [javac] Compiling 1 source file /usr/local/tomcat/work/Standalone/localhost/_/index$jsp.java:276: handlePageException(java.lang.Exception) in javax.servlet.jsp.PageContext cannot be applied to (java.lang.Throwable) if (pageContext != null) pageContext.handlePageException(t); ^ snip/ -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Newbie setup Q
Hi, you use the following Context path=/website docBase=D:/clients/clientname/website debug=9 reloadable=true / for tomcat 4 also it will work fine. just now , i checked, with tomcat 4.0.4, its working fine, go ahead.. bye, Murugan -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Monday, July 15, 2002 2:52 PM To: Tomcat Users List Subject: RE: Newbie setup Q more info: http://jakarta.apache.org/tomcat/tomcat-4.0-doc/config/server.html Cheers, Mehdi Telesis Support - Bangalore [EMAIL PROTECTED] 15/07/2002 07:29 Please respond to Tomcat Users List To: Tomcat Users List [EMAIL PROTECTED], Josh [EMAIL PROTECTED] cc: Subject:RE: Newbie setup Q Hi, If u r using tomcat 3.3.1, then in server.xml, for context do the following for docbase. Context path=/website docBase=D:/clients/clientname/website debug=9 reloadable=true / it will work fine. bye, Murugan -Original Message- From: Josh [mailto:[EMAIL PROTECTED]] Sent: Monday, July 15, 2002 11:52 AM To: [EMAIL PROTECTED] Subject: Newbie setup Q Hi, I'm new to tomcat, and having some troubles understanding the config files. I'm just wondering how do I go about using something other that %CATALINA_HOME%\webapps for the applications? I want to use something that's in a differnt place (d:\clients\clientname\website), since we already have our infrastructure set up that way for existing sites. Any help or a pointer to some more detailed help on server.xml would be much appreciated. Cheers, -Josh Rimmer, real dumplings, proper dumplings when they're properly cooked to perfection, proper dumplings, should not bounce. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Tomcat MySQL Run On Read-Only Media ..
I have a web application containing Servlets JSP pages and uses data on Oracle 9i Server. Data is like a product catalogue. I plan to periodically distribute this system (to people who do not have enough bandwidth to access to our LAN) on CDROM media which contains binaries of a JVM, Tomcat Server, Servlets JSPs and MySQL Server running with special parameters and data dumped into MySQL from Oracle. Is there anyone who accomplished this task?
HUP signal stops Tomcat?
Hi, This is rather academic and purely to enhance consistency, but when I send a HUP signal to the Tomcat process I expected it to restart, but it actually stopped the process. Is this behaviour by design? If I submitted a fix/change for this, or put it in as a request - is it likely to be included? Thanks for any help, Kieron Wilkinson -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: HUP signal stops Tomcat?
On Monday 15 July 2002 11:19, you wrote: Hi, This is rather academic and purely to enhance consistency, but when I send a HUP signal to the Tomcat process I expected it to restart, but it actually stopped the process. Is this behaviour by design? If I submitted a fix/change for this, or put it in as a request - is it likely to be included? Thanks for any help, Kieron Wilkinson Tomcat is written in Java which has no concept of signals as they are not consistantly available on all platforms. It is this unlikely that Tomcat could ever support such signals. Run in conjunction with Apache or some other Web Server yes it can, but on its own, no. David -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Launching URLs from Windows (Repost of URLs with %XX codes in them)
Can anyone please help with my issue? (even if it is a vague pointer to the right area to look - I know it is an old version of Tomcat - we may soon be moving to 4.x with Borland Enterprise Server 5.x, but the URL-processing bit must be known by someone ...) thanks -Original Message- From: Greasley, Alan [mailto:[EMAIL PROTECTED]] Sent: 05 July 2002 14:59 To: 'Tomcat Users List' Subject: URLs with %XX codes in them I need to use URLs with codes like %6D ('m'). This doesn't seem to work on our Borland AppServer installation with Tomcat 3.2. Long story, but I can't launch browsers with the well-known rundl32 url.dll,FileLauncherProtocol url any more as Microsoft have made it not work (words fail me!) An inventive person has found that it objects to .htm and .html, so this Hex code spoof does the trick of fooling it, but unfortunately this only works on other random web servers I have tried - when I test against our server, I just get the 404 page Any help would be gratefully received thanks Alan -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: newbie - finding class files
Hi all, does Tomcat really look into tomcatdir/server/lib? For me it seems Tomcat doesn't. On the one hand the original webapp /webdav runs without errors. On the other hand, when I deploy a class that extends the original webdav-class org.apache.catalina.servlets.WebdavServlet (located in catalinahome\server\lib\servlets-webdav.jar) I get an java.lang.NoClassDefFoundError: org/apache/catalina/servlets/WebdavServlet. When I then copy catalinahome\server\lib\servlets-webdav.jar into catalinahome\webapps\mywebdav\WEB-INF\lib I get a different java.lang.NoClassDefFoundError: org/apache/catalina/servlets/DefaultServlet. DefaultServlet is located in catalinahome\server\lib\servlets-default.jar. So it seems Tomcat doesn't look into the catalinahome\server\lib\ directory. But why then runs the original /webdav app? What do I do wrong? Do I have to tell Tomcat somehow to look into the catalinahome\server\lib\ directory when running my webapp? Or do I have to copy all needed files from catalinahome\server\lib\ to my webapp's lib-directory? I suppose this shouldn't be the solution. By the way: I'm running Tomcat 4.0.4 on Windows 2000. Thanks a lot in advance. Andreas Probst Brian, Tomcat looks for your classes under Tomcatdir/webapps/yourapp/WEB-INF/classes and Tomcatdir/common/classes and looks for your jars in Tomcatdir/webapps/yourapp/WEB-INF/lib , Tomcatdir/common/lib (and Tomcatdir/server/lib but you shouldn't put your stuff in here) Andy -Original Message- From: Brian Wolf [mailto:[EMAIL PROTECTED]] Sent: 11 July 2002 22:12 To: Tomcat Users List Subject: newbie - finding class files Hi I am having problems with servlets finding class files. On Windows 98 I have the classpath and path environmental variables set to c:\jdk1.4\bin and c:\jdk1.4 respectively. The Servlet works fine when converted to a command line application. -Brian --- Error: 500 Location: /examples/servlet/processOptions Internal Servlet Error: java.lang.NoClassDefFoundError: com/sun/java/util/collections/AbstractSequentialList at org.jdom.input.SAXBuilder.createContentHandler(SAXBuilder.java) at org.jdom.input.SAXBuilder.build(SAXBuilder.java) -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Tomcat MySQL Run On Read-Only Media ..
I would put only static documents on the CD if I were you... You won't look like professional if you ship a CD containing a JVM, Tomcat MySQL to install. Personally, I would not install it. Greetings, André POWROZNIK -Original Message- From: Murat Buyukkal ([EMAIL PROTECTED]) [mailto:[EMAIL PROTECTED]] Sent: 15 July 2002 10:29 To: Tomcat-User@Jakarta. Apache. Org (E-mail) Subject: Tomcat MySQL Run On Read-Only Media .. I have a web application containing Servlets JSP pages and uses data on Oracle 9i Server. Data is like a product catalogue. I plan to periodically distribute this system (to people who do not have enough bandwidth to access to our LAN) on CDROM media which contains binaries of a JVM, Tomcat Server, Servlets JSPs and MySQL Server running with special parameters and data dumped into MySQL from Oracle. Is there anyone who accomplished this task? DISCLAIMER This e-mail and any attachments thereto may contain information which is confidential and/or protected by intellectual property rights and are intended for the sole use of the recipient(s) named above. Any use of the information contained herein (including, but not limited to, total or partial reproduction, communication or distribution in any form) by persons other than the designated recipient(s) is prohibited. If you have received this e-mail in error, please notify the sender either by telephone or by e-mail and delete the material from any computer. Thank you for your cooperation. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Tomcat w/ Apache Configuration Issues == Please Help
I've just read through your httpd.conf file and as far as I can see you haven't integrated tomcat and apache at all. You will need to load either mod_webapp or mod_jk to connect them together. These will associate tomcat with one or more virtual directories in just the way you want. You can then disable the tomcat stand-alone connector so it can't be accessed on 8080. You should have a look at previous threads here on mod_webapp, mod_jk and mod_jk2. Our own application currently runs on apache 1.3 and tomcat 3.2.3 using mod_jk and that works very well. Only servlet and .jsp requests get forwarded to tomcat, the rest are handled directly by apache. I'm currently experimenting with tomcat 4.03 but the integration with apache 1.3 is trickier. I've found mod_webapp easy to set up but flaky, while mod_jk is tricky to get going. However, the tomcat handling of static pages is faster so we might just drop Apache. Hope this helps Best Wishes John Burgess [EMAIL PROTECTED] Tel: 01865 718666 Fax: 01865 718600 -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Sunday, July 14, 2002 2:50 PM To: [EMAIL PROTECTED] Subject: Tomcat w/ Apache Configuration Issues == Please Help Hi All, I'm relatively new to Tomcat and I'm having a couple of vexing Tomcat w/ Apache configuration issues. Any help in solving these problems would be greatly appreciated. First, the particulars: Tomcat 4.0 is running with Apache 1.3 on a RedHat Linux (7.3) Intel machine (P4; 1.5 GB). Tomcat was installed via RPMs to /var/tomcat4. The JSPs that we want to serve with Tomcat are located in /bioinformatics/webapps/bioinformatics;currently,thereareno subdirectories off of this directory. Apache is configured with a main server (DocumentRoot /home/www/biigweb; ServerName biigserver.ist.unomaha.edu) and a VirtualHost which points to the directory that contains our JSPs and has the ServerName bioinformatics.ist.unomaha.edu. I am having two major problems: 1) Although our JSPs run correctly, neither the list nor the manager contexts do. 2) Tomcat is apparently intercepting ALL httpd requests. For example, the address http://biigserver.ist.unomaha.edu/ tries to access the same directory that Tomcat is tied to. Besides, these problems, I have two other general questions. First, is it possible to configure Tomcat so that the port number does not have to be specified in the URL?Specifically, we would like to use http://bioinformatics.ist.unomaha.edu/bioinformatics to access our JSPs. Second, in server.xml, do I need to change localhost to the DNS name of the machine? Relevant portions of error.log (Apache), httpd.conf (Apache) and server.xml (Tomcat) are below. httpd.conf and server.xml are attached in their entirety. Relevant portion of error.log: Tue Jul 9 12:53:49 2002] [error] [client 137.48.131.225] File does not exist: /bioinformatics/webapps/index.html [Tue Jul 9 12:53:50 2002] [error] [client 137.48.131.225] File does not exist: /bioinformatics/webapps/index.html [Tue Jul 9 12:54:00 2002] [error] [client 137.48.131.225] Directory index forbi dden by rule: /bioinformatics/webapps/ [Tue Jul 9 12:55:26 2002] [error] [client 137.48.131.225] Directory index forbi dden by rule: /bioinformatics/webapps/ [Tue Jul 9 13:03:46 2002] [error] [client 137.48.131.225] Directory index forbi dden by rule: /bioinformatics/webapps/ [Tue Jul 9 13:03:48 2002] [error] [client 137.48.131.225] Directory index forbi dden by rule: /bioinformatics/webapps/ Relevant portion of httpd.conf: ### Section 2: 'Main' server configuration ... ServerName biigserver.ist.unomaha.edu DocumentRoot /home/www/biigweb Directory / Options FollowSymLinks AllowOverride None /Directory Directory /home/www/biigweb Options Indexes Includes FollowSymLinks Options ExecCGI AllowOverride AuthConfig Order allow,deny Allow from all /Directory Relevant portion of server.xml: Host name=localhost debug=0 appBase=webapps unpackWARs=true Valve className=org.apache.catalina.valves.AccessLogValve directory =logs prefix=localhost_access_log. suffix =.txt pattern=common/ Logger className=org.apache.catalina.logger.FileLogger directory =logs prefix=localhost_log. suffix=.txt timestamp=true/ Contextpath=/var/tomcat4 docBase=/bioinformatics/webapps debug=0/ !-- Tomcat Manager Context -- Context path=/manager docBase=manager debug=0 privileged =true/ !-- Tomcat Examples Context -- Context path=/examples docBase=examples debug=0 reloadable =true Logger className=org.apache.catalina.logger.FileLogger prefix=localhost_examples_log. suffix=.txt timestamp=true/ Ejb name=ejb/EmplRecord type=Entity home =com.wombat.empl.EmployeeRecordHome
RE: HUP signal stops Tomcat?
From: David Goodenough [mailto:[EMAIL PROTECTED]] Tomcat is written in Java which has no concept of signals as they are not consistantly available on all platforms. It is this unlikely that Tomcat could ever support such signals. Run in conjunction with Apache or some other Web Server yes it can, but on its own, no. Thanks for the pointer. We actually support signal processing in our Java applications which are essentially server side RMI services, but as they are always run under a Unix type environment ;) So I agree then, thanks! Kieron Wilkinson -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Tomcat MySQL Run On Read-Only Media ..
The user will install them , the man means that the user will run tomcat and mysql services from the CD . You did not get what he means . Thanks - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, July 15, 2002 4:06 AM Subject: RE: Tomcat MySQL Run On Read-Only Media .. I would put only static documents on the CD if I were you... You won't look like professional if you ship a CD containing a JVM, Tomcat MySQL to install. Personally, I would not install it. Greetings, André POWROZNIK -Original Message- From: Murat Buyukkal ([EMAIL PROTECTED]) [mailto:[EMAIL PROTECTED]] Sent: 15 July 2002 10:29 To: Tomcat-User@Jakarta. Apache. Org (E-mail) Subject: Tomcat MySQL Run On Read-Only Media .. I have a web application containing Servlets JSP pages and uses data on Oracle 9i Server. Data is like a product catalogue. I plan to periodically distribute this system (to people who do not have enough bandwidth to access to our LAN) on CDROM media which contains binaries of a JVM, Tomcat Server, Servlets JSPs and MySQL Server running with special parameters and data dumped into MySQL from Oracle. Is there anyone who accomplished this task? DISCLAIMER This e-mail and any attachments thereto may contain information which is confidential and/or protected by intellectual property rights and are intended for the sole use of the recipient(s) named above. Any use of the information contained herein (including, but not limited to, total or partial reproduction, communication or distribution in any form) by persons other than the designated recipient(s) is prohibited. If you have received this e-mail in error, please notify the sender either by telephone or by e-mail and delete the material from any computer. Thank you for your cooperation. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Tomcat MySQL Run On Read-Only Media ..
I understood very well what he means. I simply tell people will not be happy if they have to install or to run many programs to browse his CD... My personal opinion is : as a customer, I would install (fear of viruses, lack of competences, lack of time...) a JVM, Tomcat MySQL to browse a CD. Would you? Greetings, André POWROZNIK -Original Message- From: Mohammed Omar [mailto:[EMAIL PROTECTED]] Sent: 15 July 2002 23:16 To: Tomcat Users List Subject: Re: Tomcat MySQL Run On Read-Only Media .. The user will install them , the man means that the user will run tomcat and mysql services from the CD . You did not get what he means . Thanks - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, July 15, 2002 4:06 AM Subject: RE: Tomcat MySQL Run On Read-Only Media .. I would put only static documents on the CD if I were you... You won't look like professional if you ship a CD containing a JVM, Tomcat MySQL to install. Personally, I would not install it. Greetings, André POWROZNIK -Original Message- From: Murat Buyukkal ([EMAIL PROTECTED]) [mailto:[EMAIL PROTECTED]] Sent: 15 July 2002 10:29 To: Tomcat-User@Jakarta. Apache. Org (E-mail) Subject: Tomcat MySQL Run On Read-Only Media .. I have a web application containing Servlets JSP pages and uses data on Oracle 9i Server. Data is like a product catalogue. I plan to periodically distribute this system (to people who do not have enough bandwidth to access to our LAN) on CDROM media which contains binaries of a JVM, Tomcat Server, Servlets JSPs and MySQL Server running with special parameters and data dumped into MySQL from Oracle. Is there anyone who accomplished this task? DISCLAIMER This e-mail and any attachments thereto may contain information which is confidential and/or protected by intellectual property rights and are intended for the sole use of the recipient(s) named above. Any use of the information contained herein (including, but not limited to, total or partial reproduction, communication or distribution in any form) by persons other than the designated recipient(s) is prohibited. If you have received this e-mail in error, please notify the sender either by telephone or by e-mail and delete the material from any computer. Thank you for your cooperation. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] DISCLAIMER This e-mail and any attachments thereto may contain information which is confidential and/or protected by intellectual property rights and are intended for the sole use of the recipient(s) named above. Any use of the information contained herein (including, but not limited to, total or partial reproduction, communication or distribution in any form) by persons other than the designated recipient(s) is prohibited. If you have received this e-mail in error, please notify the sender either by telephone or by e-mail and delete the material from any computer. Thank you for your cooperation. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Hurray it worked Context/JNDI.
hi all, thank god today i got the connection. I upgraded from tc 4.0.3 to tc 4.1.7. And things were working really smoothly. I didnt have to delete any classfiles from oracles driver classes12.jar. After i finished getting the connection with DataSource in tc 4.1.7 i tried to do the same in tc 4.0.3. But it didnt work. I think tc 4.0.3 doesnt seem to support JNDI, as nicely as tc 4.1.7. Thanks Les for your help. You really were patient and helped me. Regards, Vikram. -Original Message- From: Les Hughes [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 02, 2002 5:06 AM To: 'Vikramjit Singh'; 'Tomcat Users List' Subject: RE: javax.naming.NamingException: Cannot create resource instance OK, we're making progress! commons, pool and collections.jar are available from the jakarta-commons download area http://jakarta.apache.org/commons Grab those, try again and let us know how it goes. Les -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Tomcat MySQL Run On Read-Only Media ..
User will not install anything. I will put pre-installed directories of JVM, Tomcat and MySQL on the CD with a batch file that runs them with !some! parameters. Everything is up automatically Imagine? For example: \JDK \JDK\bin ... \Tomcat \Tomcat\bin ... \MySQL \MySQL\bin \DATA \webcontents AUTORUN.BAT (for Windows machines) is at the root of the CD. tomcat\bin\tomcat --some-parameters mysql\bin\mysqld-nt --some-parameters-that-open-only-specified-ini-file start \webcontent\StartMyAppUp.html... and so on -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Monday, July 15, 2002 2:21 PM To: [EMAIL PROTECTED] Subject: RE: Tomcat MySQL Run On Read-Only Media .. I understood very well what he means. I simply tell people will not be happy if they have to install or to run many programs to browse his CD... My personal opinion is : as a customer, I would install (fear of viruses, lack of competences, lack of time...) a JVM, Tomcat MySQL to browse a CD. Would you? Greetings, André POWROZNIK -Original Message- From: Mohammed Omar [mailto:[EMAIL PROTECTED]] Sent: 15 July 2002 23:16 To: Tomcat Users List Subject: Re: Tomcat MySQL Run On Read-Only Media .. The user will install them , the man means that the user will run tomcat and mysql services from the CD . You did not get what he means . Thanks - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, July 15, 2002 4:06 AM Subject: RE: Tomcat MySQL Run On Read-Only Media .. I would put only static documents on the CD if I were you... You won't look like professional if you ship a CD containing a JVM, Tomcat MySQL to install. Personally, I would not install it. Greetings, André POWROZNIK -Original Message- From: Murat Buyukkal ([EMAIL PROTECTED]) [mailto:[EMAIL PROTECTED]] Sent: 15 July 2002 10:29 To: Tomcat-User@Jakarta. Apache. Org (E-mail) Subject: Tomcat MySQL Run On Read-Only Media .. I have a web application containing Servlets JSP pages and uses data on Oracle 9i Server. Data is like a product catalogue. I plan to periodically distribute this system (to people who do not have enough bandwidth to access to our LAN) on CDROM media which contains binaries of a JVM, Tomcat Server, Servlets JSPs and MySQL Server running with special parameters and data dumped into MySQL from Oracle. Is there anyone who accomplished this task? DISCLAIMER This e-mail and any attachments thereto may contain information which is confidential and/or protected by intellectual property rights and are intended for the sole use of the recipient(s) named above. Any use of the information contained herein (including, but not limited to, total or partial reproduction, communication or distribution in any form) by persons other than the designated recipient(s) is prohibited. If you have received this e-mail in error, please notify the sender either by telephone or by e-mail and delete the material from any computer. Thank you for your cooperation. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] DISCLAIMER This e-mail and any attachments thereto may contain information which is confidential and/or protected by intellectual property rights and are intended for the sole use of the recipient(s) named above. Any use of the information contained herein (including, but not limited to, total or partial reproduction, communication or distribution in any form) by persons other than the designated recipient(s) is prohibited. If you have received this e-mail in error, please notify the sender either by telephone or by e-mail and delete the material from any computer. Thank you for your cooperation. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: create a new port in tomcat
Howdy, Add a connector for the port you want. Add a context element for the webapp you want. Restart server. That's it ;) All your contexts will be accessible on all your connectors. If you want a context that will be accessible only on a given port, one possible option is to include a request filter in that context that rejects all requests not coming from a given port. Yoav Shapira Millennium ChemInformatics -Original Message- From: Serdar BOZDAG [mailto:[EMAIL PROTECTED]] Sent: Saturday, July 13, 2002 7:30 AM To: tomcatGroup Subject: create a new port in tomcat hello, i need to open a new port and map a project (context) to this port. I think i will make some changes in connectors and contexts but i do not know the exact solution please help me with an example thanks in advance.. serdar -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Tomcat MySQL Run On Read-Only Media ..
I am afraid it is not as as much easy as you think... 1) Will your customer agree to run these applications on their computer? 2) What if they are not using a PC (Mac?) or if they are not using Windows (Linux?)? 3) To run JSP you need a JDK, not a JRE. 4) If you copy JDK, Tomcat MySQL files on the CD, will it work? In order to run they need : - DLLs in Windows system directories; - keys in Windows registry; - write access to some of their files... 5) What about AUTOEXEC.BAT? It will do nothing if you put it on a CD : it needs to be in C:\, and there is already one there... 6) What if your customers have problems running your CD? Will you create a hotline ;-) ? And I did not yet spoke about some of these programs that may interfere with your customers programs. Greetings, André POWROZNIK -Original Message- From: Murat Buyukkal ([EMAIL PROTECTED]) [mailto:[EMAIL PROTECTED]] Sent: 15 July 2002 13:44 To: Tomcat Users List Subject: RE: Tomcat MySQL Run On Read-Only Media .. User will not install anything. I will put pre-installed directories of JVM, Tomcat and MySQL on the CD with a batch file that runs them with !some! parameters. Everything is up automatically Imagine? For example: \JDK \JDK\bin ... \Tomcat \Tomcat\bin ... \MySQL \MySQL\bin \DATA \webcontents AUTORUN.BAT (for Windows machines) is at the root of the CD. tomcat\bin\tomcat --some-parameters mysql\bin\mysqld-nt --some-parameters-that-open-only-specified-ini-file start \webcontent\StartMyAppUp.html... and so on -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Monday, July 15, 2002 2:21 PM To: [EMAIL PROTECTED] Subject: RE: Tomcat MySQL Run On Read-Only Media .. I understood very well what he means. I simply tell people will not be happy if they have to install or to run many programs to browse his CD... My personal opinion is : as a customer, I would install (fear of viruses, lack of competences, lack of time...) a JVM, Tomcat MySQL to browse a CD. Would you? Greetings, André POWROZNIK -Original Message- From: Mohammed Omar [mailto:[EMAIL PROTECTED]] Sent: 15 July 2002 23:16 To: Tomcat Users List Subject: Re: Tomcat MySQL Run On Read-Only Media .. The user will install them , the man means that the user will run tomcat and mysql services from the CD . You did not get what he means . Thanks - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, July 15, 2002 4:06 AM Subject: RE: Tomcat MySQL Run On Read-Only Media .. I would put only static documents on the CD if I were you... You won't look like professional if you ship a CD containing a JVM, Tomcat MySQL to install. Personally, I would not install it. Greetings, André POWROZNIK -Original Message- From: Murat Buyukkal ([EMAIL PROTECTED]) [mailto:[EMAIL PROTECTED]] Sent: 15 July 2002 10:29 To: Tomcat-User@Jakarta. Apache. Org (E-mail) Subject: Tomcat MySQL Run On Read-Only Media .. I have a web application containing Servlets JSP pages and uses data on Oracle 9i Server. Data is like a product catalogue. I plan to periodically distribute this system (to people who do not have enough bandwidth to access to our LAN) on CDROM media which contains binaries of a JVM, Tomcat Server, Servlets JSPs and MySQL Server running with special parameters and data dumped into MySQL from Oracle. Is there anyone who accomplished this task? DISCLAIMER This e-mail and any attachments thereto may contain information which is confidential and/or protected by intellectual property rights and are intended for the sole use of the recipient(s) named above. Any use of the information contained herein (including, but not limited to, total or partial reproduction, communication or distribution in any form) by persons other than the designated recipient(s) is prohibited. If you have received this e-mail in error, please notify the sender either by telephone or by e-mail and delete the material from any computer. Thank you for your cooperation. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] DISCLAIMER This e-mail and any attachments thereto may contain information which is confidential and/or protected by intellectual property rights and are intended for the sole use of the recipient(s) named above. Any use of the information contained herein (including, but not limited to, total or partial reproduction, communication or distribution in any form) by persons other than the designated recipient(s) is prohibited. If you have received this e-mail in error, please notify the sender either by telephone or by e-mail and delete the material from any computer. Thank you for your cooperation. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional
Using Tomcat with IIS, Apache
Hi, I'm new to Tomcat I use Tomcat 4.0.b7 on Windows NT/2000, Can I use tomcat as a servlet engine for IIS or Apache ? How can I do that ? Any help or a pointer to some more detailed help would be much appreciated. Regards Hendra -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Help on Tomcat 4.0.4 configuration
Hi all, Can anyone tell me the steps for tomcat 4.0.4 configuration. I have set the JAVA_HOME and CATALINA_HOME and start the tomcat. but, for tomcat 3.3.1, i had set classpath in tomcat.bat file.. I have the doubt about classpath for tomcat 4.0.4. Can u please come with the steps for tomcat 4.0.4 configuration, including web.xml.. there is also one more web.xml in conf folder, it seems, it is for global things.. little bit confusion. Till now, i couldn't get any jsp page, even in the examples jsp page not working. If anyone succeed in the tomcat 4.0.4 configuration, please let me know.. bye, Murugan -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: create a new port in tomcat
hi, actually what i want is to see to different web pages when i go www.xx.com and www.xx.com:85. (there will be two application and when i go www.xxx.com index.html of first application will be shown and when i go www.xx.com:85 the other index.html will be shown.) filtering may be a good solution but can you give an example how to make a filtering. thanks serdar - Original Message - From: Shapira, Yoav [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Monday, July 15, 2002 2:50 PM Subject: RE: create a new port in tomcat Howdy, Add a connector for the port you want. Add a context element for the webapp you want. Restart server. That's it ;) All your contexts will be accessible on all your connectors. If you want a context that will be accessible only on a given port, one possible option is to include a request filter in that context that rejects all requests not coming from a given port. Yoav Shapira Millennium ChemInformatics -Original Message- From: Serdar BOZDAG [mailto:[EMAIL PROTECTED]] Sent: Saturday, July 13, 2002 7:30 AM To: tomcatGroup Subject: create a new port in tomcat hello, i need to open a new port and map a project (context) to this port. I think i will make some changes in connectors and contexts but i do not know the exact solution please help me with an example thanks in advance.. serdar -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Using Tomcat with IIS, Apache
Yes, you can use tomcat as a servlet engine for both IIS and Apache. There are many resources available to help you with setup and configuration, especially the archives of this list. Here are a few more: http://www.galatea.com/flashguides/index http://jakarta.apache.org/tomcat/tomcat-4.0-doc/index.html http://www.cnr.berkeley.edu/~salazar/apache_tomcat.html The list above is not comprehensive...there are other resources available, those are just the links I have bookmarked. HTH John Turner [EMAIL PROTECTED] http://www.aas.com -Original Message- From: Hendra [mailto:[EMAIL PROTECTED]] Sent: Monday, July 15, 2002 8:09 AM To: '[EMAIL PROTECTED]' Subject: Using Tomcat with IIS, Apache Hi, I'm new to Tomcat I use Tomcat 4.0.b7 on Windows NT/2000, Can I use tomcat as a servlet engine for IIS or Apache ? How can I do that ? Any help or a pointer to some more detailed help would be much appreciated. Regards Hendra -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Tomcat MySQL Run On Read-Only Media ..
It sounds like the webapp is read only system (since it is going on a cd). If your UI is link based (no forms/sessions) - could you use a web sucker (like wget in recursive mode) and make a static copy of the site? Otherwise - flash is great for things like this. (But it is reinventing the wheel) [EMAIL PROTECTED] wrote: I am afraid it is not as as much easy as you think... 1) Will your customer agree to run these applications on their computer? 2) What if they are not using a PC (Mac?) or if they are not using Windows (Linux?)? 3) To run JSP you need a JDK, not a JRE. 4) If you copy JDK, Tomcat MySQL files on the CD, will it work? In order to run they need : - DLLs in Windows system directories; - keys in Windows registry; - write access to some of their files... 5) What about AUTOEXEC.BAT? It will do nothing if you put it on a CD : it needs to be in C:\, and there is already one there... 6) What if your customers have problems running your CD? Will you create a hotline ;-) ? And I did not yet spoke about some of these programs that may interfere with your customers programs. Greetings, André POWROZNIK -Original Message- From: Murat Buyukkal ([EMAIL PROTECTED]) [mailto:[EMAIL PROTECTED]] Sent: 15 July 2002 13:44 To: Tomcat Users List Subject: RE: Tomcat MySQL Run On Read-Only Media .. User will not install anything. I will put pre-installed directories of JVM, Tomcat and MySQL on the CD with a batch file that runs them with !some! parameters. Everything is up automatically Imagine? For example: \JDK \JDK\bin ... \Tomcat \Tomcat\bin ... \MySQL \MySQL\bin \DATA \webcontents AUTORUN.BAT (for Windows machines) is at the root of the CD. tomcat\bin\tomcat --some-parameters mysql\bin\mysqld-nt --some-parameters-that-open-only-specified-ini-file start \webcontent\StartMyAppUp.html... and so on -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Monday, July 15, 2002 2:21 PM To: [EMAIL PROTECTED] Subject: RE: Tomcat MySQL Run On Read-Only Media .. I understood very well what he means. I simply tell people will not be happy if they have to install or to run many programs to browse his CD... My personal opinion is : as a customer, I would install (fear of viruses, lack of competences, lack of time...) a JVM, Tomcat MySQL to browse a CD. Would you? Greetings, André POWROZNIK -Original Message- From: Mohammed Omar [mailto:[EMAIL PROTECTED]] Sent: 15 July 2002 23:16 To: Tomcat Users List Subject: Re: Tomcat MySQL Run On Read-Only Media .. The user will install them , the man means that the user will run tomcat and mysql services from the CD . You did not get what he means . Thanks - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, July 15, 2002 4:06 AM Subject: RE: Tomcat MySQL Run On Read-Only Media .. I would put only static documents on the CD if I were you... You won't look like professional if you ship a CD containing a JVM, Tomcat MySQL to install. Personally, I would not install it. Greetings, André POWROZNIK -Original Message- From: Murat Buyukkal ([EMAIL PROTECTED]) [mailto:[EMAIL PROTECTED]] Sent: 15 July 2002 10:29 To: Tomcat-User@Jakarta. Apache. Org (E-mail) Subject: Tomcat MySQL Run On Read-Only Media .. I have a web application containing Servlets JSP pages and uses data on Oracle 9i Server. Data is like a product catalogue. I plan to periodically distribute this system (to people who do not have enough bandwidth to access to our LAN) on CDROM media which contains binaries of a JVM, Tomcat Server, Servlets JSPs and MySQL Server running with special parameters and data dumped into MySQL from Oracle. Is there anyone who accomplished this task? DISCLAIMER This e-mail and any attachments thereto may contain information which is confidential and/or protected by intellectual property rights and are intended for the sole use of the recipient(s) named above. Any use of the information contained herein (including, but not limited to, total or partial reproduction, communication or distribution in any form) by persons other than the designated recipient(s) is prohibited. If you have received this e-mail in error, please notify the sender either by telephone or by e-mail and delete the material from any computer. Thank you for your cooperation. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] DISCLAIMER This e-mail and any attachments thereto may contain information which is confidential and/or protected by intellectual property rights and are intended for the sole use of the recipient(s) named
RE: create a new port in tomcat
Howdy, actually what i want is to see to different web pages when i go www.xx.com and www.xx.com:85. (there will be two application and when i go www.xxx.com index.html of first application will be shown and when i go www.xx.com:85 the other index.html will be shown.) If those are all your requirements, you're better off simply creating two separate tomcat instances. One connector each, at the ports you want. One context each with the app you want. If you need the two apps to talk on a level supported by tomcat, e.g. single sign on or crossContext stuff, then it's back to one instance of tomcat with some filtering and forwarding. filtering may be a good solution but can you give an example how to make a filtering. See here for a good intro to servlet filters: http://www.javaworld.com/javaworld/jw-06-2001/jw-0622-filters.html Yoav Shapira Millennium ChemInformatics -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Tomcat MySQL Run On Read-Only Media ..
On Mon, 2002-07-15 at 13:59, [EMAIL PROTECTED] wrote: I am afraid it is not as as much easy as you think... 1) Will your customer agree to run these applications on their computer? 2) What if they are not using a PC (Mac?) or if they are not using Windows (Linux?)? Who cares.. If they order it, they have to.. 3) To run JSP you need a JDK, not a JRE. Wrong here.. Just if you want your jsp's to be dynamic.. Just precompile them.. 4) If you copy JDK, Tomcat MySQL files on the CD, will it work? In order to run they need : - DLLs in Windows system directories; - keys in Windows registry; - write access to some of their files... Use hsqldb instead which has a memory database.. 5) What about AUTOEXEC.BAT? It will do nothing if you put it on a CD : it needs to be in C:\, and there is already one there... ?? 6) What if your customers have problems running your CD? Will you create a hotline ;-) ? Not your problem I guess ;).. He was asking HOW not a project plan of things to resolve before hand.. TIP: Search the archives (maybe a year ago or something) there was a big thread about it, which actually worked towards a solution. Mvgr, Martin -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
forwarding through j_security_check
Hi All- I'm working on a web-app launcher. The essential idea is to provide users with a centralized, secure web portal from which they can launch other web applications. The other applications will reside in Tomcat servers different from the portal Tomcat server. Each application will be protected by standard J2EE security implemented with j_security_check. I'd like to be able to forward to applications and automatically negotiate the j_security_check so that user's don't have to log on once they've already presented their credentials to the portal application (i.e. single sign-on). Is it possible to formulate an href url that simultaneously specifies the target resource and the credentials being passed to j_security_check? I note that in the packet sent in the j_security_check post, all the information needed is present. If the read the packet right, the Referrer in the http header contains the information about the desired protected resource. Is this Referrer used by j_security_check to forward a request on to the desired destination? If so, is it possible to set up a servlet that could manipulate the Referrer in the header, and redirect a request along to an application in another Tomcat server, making it look like a post to j_security_check, complete with referrer, j_username and j_password? Any suggestions or comments are welcome and appreciated. Thanks, Jim -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Tomcat 4.1 with Sun ONE IDE
Has anyone integrated tomcat 4.1.x with Sun's SunONE IDE (Forte for Java)? From the work I've done this morning, it looks like SunONE only supports tomcat 4.0.x. Before I switch to another IDE, I just wanted to see if that was true, or if I was missing something. Thanks in advance for any help. - John John Turner [EMAIL PROTECTED] | 248-488-3466 Advertising Audit Service http://www.aas.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Tomcat 4.1 with Sun ONE IDE
Better ask on the netbeans.org site, since they wrote the module.. There can be problems though with the included jars (xml parser etc..), so they probably now how to do that.. Mvgr, Martin On Mon, 2002-07-15 at 14:58, Turner, John wrote: Has anyone integrated tomcat 4.1.x with Sun's SunONE IDE (Forte for Java)? From the work I've done this morning, it looks like SunONE only supports tomcat 4.0.x. Before I switch to another IDE, I just wanted to see if that was true, or if I was missing something. Thanks in advance for any help. - John John Turner [EMAIL PROTECTED] | 248-488-3466 Advertising Audit Service http://www.aas.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Tomcat MySQL Run On Read-Only Media ..
Hello, About the customers : they define the requirements. Who does not meet their requirements, lose them (especially the big ones)... Greetings, André POWROZNIK -Original Message- From: Martin van den Bemt [mailto:[EMAIL PROTECTED]] Sent: 15 July 2002 14:23 To: Tomcat Users List Subject: RE: Tomcat MySQL Run On Read-Only Media .. On Mon, 2002-07-15 at 13:59, [EMAIL PROTECTED] wrote: I am afraid it is not as as much easy as you think... 1) Will your customer agree to run these applications on their computer? 2) What if they are not using a PC (Mac?) or if they are not using Windows (Linux?)? Who cares.. If they order it, they have to.. 3) To run JSP you need a JDK, not a JRE. Wrong here.. Just if you want your jsp's to be dynamic.. Just precompile them.. 4) If you copy JDK, Tomcat MySQL files on the CD, will it work? In order to run they need : - DLLs in Windows system directories; - keys in Windows registry; - write access to some of their files... Use hsqldb instead which has a memory database.. 5) What about AUTOEXEC.BAT? It will do nothing if you put it on a CD : it needs to be in C:\, and there is already one there... ?? 6) What if your customers have problems running your CD? Will you create a hotline ;-) ? Not your problem I guess ;).. He was asking HOW not a project plan of things to resolve before hand.. TIP: Search the archives (maybe a year ago or something) there was a big thread about it, which actually worked towards a solution. Mvgr, Martin -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] DISCLAIMER This e-mail and any attachments thereto may contain information which is confidential and/or protected by intellectual property rights and are intended for the sole use of the recipient(s) named above. Any use of the information contained herein (including, but not limited to, total or partial reproduction, communication or distribution in any form) by persons other than the designated recipient(s) is prohibited. If you have received this e-mail in error, please notify the sender either by telephone or by e-mail and delete the material from any computer. Thank you for your cooperation. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Tomcat MySQL Run On Read-Only Media ..
On Monday 15 July 2002 13:22, you wrote: On Mon, 2002-07-15 at 13:59, [EMAIL PROTECTED] wrote: I am afraid it is not as as much easy as you think... 1) Will your customer agree to run these applications on their computer? 2) What if they are not using a PC (Mac?) or if they are not using Windows (Linux?)? There is a project (I forget its name) which is building a version of Linux designed to run on a CD. Thus you do not have to make any assumptions about what is on the PC. You can lock this version down so that it does not even look at their disk, and provided you use the VESA framebuffer you are more or less guaranteed to get it to run on the screen. I am sure that this would provide you a very good platform for such an application. Who cares.. If they order it, they have to.. 3) To run JSP you need a JDK, not a JRE. Wrong here.. Just if you want your jsp's to be dynamic.. Just precompile them.. 4) If you copy JDK, Tomcat MySQL files on the CD, will it work? In order to run they need : - DLLs in Windows system directories; - keys in Windows registry; - write access to some of their files... Use hsqldb instead which has a memory database.. 5) What about AUTOEXEC.BAT? It will do nothing if you put it on a CD : it needs to be in C:\, and there is already one there... ?? 6) What if your customers have problems running your CD? Will you create a hotline ;-) ? Not your problem I guess ;).. He was asking HOW not a project plan of things to resolve before hand.. TIP: Search the archives (maybe a year ago or something) there was a big thread about it, which actually worked towards a solution. Mvgr, Martin -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Tomcat MySQL Run On Read-Only Media ..
Agreed, but only with custom made software.. At the most you can ask your current customers to ask if they can agree to a certain solution, but hey : he is asking what the solution might be! Before he gets that answered customer contact is a big waste of time Mvgr, Martin On Mon, 2002-07-15 at 15:19, [EMAIL PROTECTED] wrote: Hello, About the customers : they define the requirements. Who does not meet their requirements, lose them (especially the big ones)... Greetings, André POWROZNIK -Original Message- From: Martin van den Bemt [mailto:[EMAIL PROTECTED]] Sent: 15 July 2002 14:23 To: Tomcat Users List Subject: RE: Tomcat MySQL Run On Read-Only Media .. On Mon, 2002-07-15 at 13:59, [EMAIL PROTECTED] wrote: I am afraid it is not as as much easy as you think... 1) Will your customer agree to run these applications on their computer? 2) What if they are not using a PC (Mac?) or if they are not using Windows (Linux?)? Who cares.. If they order it, they have to.. 3) To run JSP you need a JDK, not a JRE. Wrong here.. Just if you want your jsp's to be dynamic.. Just precompile them.. 4) If you copy JDK, Tomcat MySQL files on the CD, will it work? In order to run they need : - DLLs in Windows system directories; - keys in Windows registry; - write access to some of their files... Use hsqldb instead which has a memory database.. 5) What about AUTOEXEC.BAT? It will do nothing if you put it on a CD : it needs to be in C:\, and there is already one there... ?? 6) What if your customers have problems running your CD? Will you create a hotline ;-) ? Not your problem I guess ;).. He was asking HOW not a project plan of things to resolve before hand.. TIP: Search the archives (maybe a year ago or something) there was a big thread about it, which actually worked towards a solution. Mvgr, Martin -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] DISCLAIMER This e-mail and any attachments thereto may contain information which is confidential and/or protected by intellectual property rights and are intended for the sole use of the recipient(s) named above. Any use of the information contained herein (including, but not limited to, total or partial reproduction, communication or distribution in any form) by persons other than the designated recipient(s) is prohibited. If you have received this e-mail in error, please notify the sender either by telephone or by e-mail and delete the material from any computer. Thank you for your cooperation. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Tomcat MySQL Run On Read-Only Media ..
A little bit off-topic, but if it is not a custom-made software and if it targets a lot of not specific users, it cannot only rely on a particular configuration (imo). -Original Message- From: Martin van den Bemt [mailto:[EMAIL PROTECTED]] Sent: 15 July 2002 15:30 To: Tomcat Users List Subject: RE: Tomcat MySQL Run On Read-Only Media .. Agreed, but only with custom made software.. At the most you can ask your current customers to ask if they can agree to a certain solution, but hey : he is asking what the solution might be! Before he gets that answered customer contact is a big waste of time Mvgr, Martin On Mon, 2002-07-15 at 15:19, [EMAIL PROTECTED] wrote: Hello, About the customers : they define the requirements. Who does not meet their requirements, lose them (especially the big ones)... Greetings, André POWROZNIK -Original Message- From: Martin van den Bemt [mailto:[EMAIL PROTECTED]] Sent: 15 July 2002 14:23 To: Tomcat Users List Subject: RE: Tomcat MySQL Run On Read-Only Media .. On Mon, 2002-07-15 at 13:59, [EMAIL PROTECTED] wrote: I am afraid it is not as as much easy as you think... 1) Will your customer agree to run these applications on their computer? 2) What if they are not using a PC (Mac?) or if they are not using Windows (Linux?)? Who cares.. If they order it, they have to.. 3) To run JSP you need a JDK, not a JRE. Wrong here.. Just if you want your jsp's to be dynamic.. Just precompile them.. 4) If you copy JDK, Tomcat MySQL files on the CD, will it work? In order to run they need : - DLLs in Windows system directories; - keys in Windows registry; - write access to some of their files... Use hsqldb instead which has a memory database.. 5) What about AUTOEXEC.BAT? It will do nothing if you put it on a CD : it needs to be in C:\, and there is already one there... ?? 6) What if your customers have problems running your CD? Will you create a hotline ;-) ? Not your problem I guess ;).. He was asking HOW not a project plan of things to resolve before hand.. TIP: Search the archives (maybe a year ago or something) there was a big thread about it, which actually worked towards a solution. Mvgr, Martin -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] DISCLAIMER This e-mail and any attachments thereto may contain information which is confidential and/or protected by intellectual property rights and are intended for the sole use of the recipient(s) named above. Any use of the information contained herein (including, but not limited to, total or partial reproduction, communication or distribution in any form) by persons other than the designated recipient(s) is prohibited. If you have received this e-mail in error, please notify the sender either by telephone or by e-mail and delete the material from any computer. Thank you for your cooperation. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] DISCLAIMER This e-mail and any attachments thereto may contain information which is confidential and/or protected by intellectual property rights and are intended for the sole use of the recipient(s) named above. Any use of the information contained herein (including, but not limited to, total or partial reproduction, communication or distribution in any form) by persons other than the designated recipient(s) is prohibited. If you have received this e-mail in error, please notify the sender either by telephone or by e-mail and delete the material from any computer. Thank you for your cooperation. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Tomcat MySQL Run On Read-Only Media ..(off-topic)
Here are two: http://www.virtual-linux.org/ http://www.demolinux.org/ I've seen demoLinux...it was pretty cool. Couldn't do much, but there's no reason why you couldn't burn a custom CD with both the Linux distro and the web application on it. You'd not only have to setup a database in RAM, you'd also have to do your logging in RAM, or turn your logging off, as well as tell tomcat to create it's work directories in RAM. Possible, I think, but certainly not trivial. John Turner [EMAIL PROTECTED] http://www.aas.com -Original Message- From: David Goodenough [mailto:[EMAIL PROTECTED]] Sent: Monday, July 15, 2002 9:24 AM To: Tomcat Users List Subject: Re: Tomcat MySQL Run On Read-Only Media .. On Monday 15 July 2002 13:22, you wrote: On Mon, 2002-07-15 at 13:59, [EMAIL PROTECTED] wrote: I am afraid it is not as as much easy as you think... 1) Will your customer agree to run these applications on their computer? 2) What if they are not using a PC (Mac?) or if they are not using Windows (Linux?)? There is a project (I forget its name) which is building a version of Linux designed to run on a CD. Thus you do not have to make any assumptions about what is on the PC. You can lock this version down so that it does not even look at their disk, and provided you use the VESA framebuffer you are more or less guaranteed to get it to run on the screen. I am sure that this would provide you a very good platform for such an application. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Tomcat MySQL Run On Read-Only Media ..
I was just saying 2 mails ago : Who cares about customers ?? Tomcat-user list is not a marketing list.. He just wants to know how he can get that thing running on cd. he probably had a good reason to ask for this solution.. My reamrks were made so it got back ON topic again.. Sorry about the grumpy attitude, just thought he was asking on how to do that, not how to market it and do customer surveys. Mvgr, Martin On Mon, 2002-07-15 at 15:41, [EMAIL PROTECTED] wrote: A little bit off-topic, but if it is not a custom-made software and if it targets a lot of not specific users, it cannot only rely on a particular configuration (imo). -Original Message- From: Martin van den Bemt [mailto:[EMAIL PROTECTED]] Sent: 15 July 2002 15:30 To: Tomcat Users List Subject: RE: Tomcat MySQL Run On Read-Only Media .. Agreed, but only with custom made software.. At the most you can ask your current customers to ask if they can agree to a certain solution, but hey : he is asking what the solution might be! Before he gets that answered customer contact is a big waste of time Mvgr, Martin On Mon, 2002-07-15 at 15:19, [EMAIL PROTECTED] wrote: Hello, About the customers : they define the requirements. Who does not meet their requirements, lose them (especially the big ones)... Greetings, André POWROZNIK -Original Message- From: Martin van den Bemt [mailto:[EMAIL PROTECTED]] Sent: 15 July 2002 14:23 To: Tomcat Users List Subject: RE: Tomcat MySQL Run On Read-Only Media .. On Mon, 2002-07-15 at 13:59, [EMAIL PROTECTED] wrote: I am afraid it is not as as much easy as you think... 1) Will your customer agree to run these applications on their computer? 2) What if they are not using a PC (Mac?) or if they are not using Windows (Linux?)? Who cares.. If they order it, they have to.. 3) To run JSP you need a JDK, not a JRE. Wrong here.. Just if you want your jsp's to be dynamic.. Just precompile them.. 4) If you copy JDK, Tomcat MySQL files on the CD, will it work? In order to run they need : - DLLs in Windows system directories; - keys in Windows registry; - write access to some of their files... Use hsqldb instead which has a memory database.. 5) What about AUTOEXEC.BAT? It will do nothing if you put it on a CD : it needs to be in C:\, and there is already one there... ?? 6) What if your customers have problems running your CD? Will you create a hotline ;-) ? Not your problem I guess ;).. He was asking HOW not a project plan of things to resolve before hand.. TIP: Search the archives (maybe a year ago or something) there was a big thread about it, which actually worked towards a solution. Mvgr, Martin -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] DISCLAIMER This e-mail and any attachments thereto may contain information which is confidential and/or protected by intellectual property rights and are intended for the sole use of the recipient(s) named above. Any use of the information contained herein (including, but not limited to, total or partial reproduction, communication or distribution in any form) by persons other than the designated recipient(s) is prohibited. If you have received this e-mail in error, please notify the sender either by telephone or by e-mail and delete the material from any computer. Thank you for your cooperation. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] DISCLAIMER This e-mail and any attachments thereto may contain information which is confidential and/or protected by intellectual property rights and are intended for the sole use of the recipient(s) named above. Any use of the information contained herein (including, but not limited to, total or partial reproduction, communication or distribution in any form) by persons other than the designated recipient(s) is prohibited. If you have received this e-mail in error, please notify the sender either by telephone or by e-mail and delete the material from any computer. Thank you for your cooperation. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Help on Tomcat 4.0.4 configuration
Hello Murugan I ahve installed tomcat 4.0.4 and it is running fine here: All you need to set is JAVA_HOME and CATALINA_HOME. You need not worry about any of the other files like setenv.bat or startup.bat or catalina.bat. Actually if you want you can edit catalina.bat which contains you classpath settings. and add your own class path as: set CLASSPATH=%CLASSPATH%;%CATALINA_HOME%\bin\bootstrap.jar; (place your classes here); Tomcat automatically sets the classpath depending on your autoexec.bat file set classpath when it is run for the first time. It also includes all the jar files from %TOMCAT_HOME%\common\lib. So you neednot worry about the classpath. Either edit autoexec.bat or edit catalina.bat. No need to do anything with web.xml tell me in case of any probs. -- Nishant Awasthi Corporate Systems Database Intern Progressive Insurance Phone: 440-603-4055 (Work) Cell: 330-328-0243 (Cell) Telesis Support - To: Tomcat Users List Bangalore[EMAIL PROTECTED] tel_bbubng@incc: (bcc: Nishant Awasthi) fosys.comSubject: Help on Tomcat 4.0.4 configuration 07/15/2002 08:03 AM Please respond to Tomcat Users List Hi all, Can anyone tell me the steps for tomcat 4.0.4 configuration. I have set the JAVA_HOME and CATALINA_HOME and start the tomcat. but, for tomcat 3.3.1, i had set classpath in tomcat.bat file.. I have the doubt about classpath for tomcat 4.0.4. Can u please come with the steps for tomcat 4.0.4 configuration, including web.xml.. there is also one more web.xml in conf folder, it seems, it is for global things.. little bit confusion. Till now, i couldn't get any jsp page, even in the examples jsp page not working. If anyone succeed in the tomcat 4.0.4 configuration, please let me know.. bye, Murugan -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
AW: Tomcat MySQL Run On Read-Only Media ..
Unless you know your customers very well that isn't a road I would follow. I can hardly imagine cutomers that are willing to loose there primary os just to view a product catalog. That happens at least for the time you run the cd. (No quick copy and paste to the mail reader, no quit look at the internet site to order online, ...) Or do you know a solution that just opens a linux window without reboot under any os that might be used to view the cd. (VM Ware would allow such thing but, that requires that the customer alrady has it) I would recommend to define the java runtime environment as minimal requirement for the customer. (This way you don't need dll's, registry changes etc). Than you can deliver tomcat standalone with a pure java in-memory database and precompiled jsp's on cd -Ursprüngliche Nachricht- Von: David Goodenough [mailto:[EMAIL PROTECTED]] Gesendet: Montag, 15. Juli 2002 15:24 An: Tomcat Users List Betreff: Re: Tomcat MySQL Run On Read-Only Media .. There is a project (I forget its name) which is building a version of Linux designed to run on a CD. Thus you do not have to make any assumptions about what is on the PC. You can lock this version down so that it does not even look at their disk, and provided you use the VESA framebuffer you are more or less guaranteed to get it to run on the screen. I am sure that this would provide you a very good platform for such an application. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
What can cause a clean Tomcat shutdown?
Guys, I'm asking this question again in hope someone notices this time: Except for the stop command sent to the Ajp12 connector, is there another event that will cause a Tomcat 3.3.1 to shut down cleanly? We experience sporadic spontaneous clean shutdowns of Tomcat 3.3.1 and have no idea what causes them. We know these are normal shutdowns since the servlet log shows the contexts are being unloaded and servlets' destroy() methods are being called - just as if someone has issued a tomcat.sh stop (before you ask: nobody does). Any clues appreciated. Cheers, Attila. -- Attila Szegedi home: http://www.szegedi.org -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Client Certificates with Tomcat
Hi All, I am working with Tomcat 4. I do all the steps provided in server.xml vis: __ Step 2: Generate Client and Server Certificates It is necessary to generate a Certificate for the client and the server. These Certificates are then imported into a keystore, to which the client and server connect. The keystore acts as a database for security certificates. You are going to use the keytool utility in the JDK to do these tasks (see Sun's documentation for more information on this tool). Step 2a: Generate a Server Key and Certificate Launch keytool from a shell (or command prompt) to generate your public and private key. Note that the Certificate and keystore files will be generated in the directory you run keytool from. Use keytool as follows: keytool -genkey -alias tomcat-sv -dname CN=[Common Name],OU=[Organisation Unit], O=[Organisation Name], L=[Locality], S=[State Name], C=[Two-Letter Country Code] -keyalg RSA -keypass [private key password] -storepass [keystore password] -keystore [keystore file name] For example, to generate a keystore (in file server.keystore) for server soapsvr.test.tcd.ie using password changeit (for both the keystore and the certificate) in the Computer Engineering group at Trinity College Dublin, Ireland, one would type the following: keytool -genkey -alias tomcat-sv -dname CN=soapsvr.test.tcd.ie, OU=ComputerEngineering, O=Trinity College Dublin, L=Dublin, S=Dublin, C=IE -keyalg RSA -keypass changeit -storepass changeit -keystore server.keystore Note that The RSA algorithm is used to generate certificates. Ensure that the 'CN' field that you specify when you create the server certificate matches the name of the machine on which you're running tomcat, or your browser will complain about certificate name mis-matches (not a problem on a test server, a big problem on a production server!). Step 2b: Export the Server Certificate From command prompt run this command to export your certificate from the keystore into an external file (we do this so we can import the certificate into the client's keystore as a trusted certificate). keytool -export -alias tomcat-sv -storepass changeit -file server.cer -keystore server.keystore If everything works, you should now have a file called server.cer which contains your server's certificate. Step 2c: Generate a Client Key and Certificate This step is very similar to the generation of the server key and certificate - it uses the same keytool tool with different parameters. Note that the keystore file name has changed (it is now client.keystore). Use keytool as follows: keytool -genkey -alias tomcat-cl -dname CN=Client,OU=TRL, O=IBM, L=Yamato-shi, S=Kanagawa-ken, C=JP -keyalg RSA -keypass changeit -storepass changeit -keystore client.keystore Step 2d: Export the Client Certificate This step is very similar to the export of the server certificate - it uses the same keytool tool with different parameters: keytool -export -alias tomcat-cl -storepass changeit -file client.cer -keystore client.keystore If everything works, you should now have a file called client.cer which contains your client's certificate. Step 2e: Import the Certificates into the Keystores We want the client certificate to be added to the server's keystore, and the server's certificate to be added to the client's keystore. Doing this will mean that the client and server trust one another. Import the server certificate into the client's keystore: keytool -import -v -trustcacerts -alias tomcat -file server.cer -keystore client.keystore -keypass changeit -storepass changeit Import the client certificate into the server's keystore: keytool -import -v -trustcacerts -alias tomcat -file client.cer -keystore server.keystore -keypass changeit -storepass changeit __ as long as I keep clientAuth=false in server.xml it runs fine. But when I make it true, it looks for the client certificate, which it obviousely can't find. How do I get the client certificate from above. What is client.cer then? Any clues appreciated. Thanks and Regards Tathagat GBS - Legal Services Phone: +49 (0) 69 263 16854 Fax: +49 (0) 69 263 16540 Mobile: +49 (0) 160 98589882 Private Email: [EMAIL PROTECTED] -- If you have received this e-mail in error or wish to read our e-mail disclaimer statement and monitoring policy, please refer to http://www.drkw.com/disc/email/ or contact the sender. -- -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: how to make tomcat faster
One item I found to increase tomcat performance is to run tomcat with the -server option -Original Message- From: Joe Schiavone [mailto:[EMAIL PROTECTED]] Sent: Sunday, July 14, 2002 4:43 PM To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: Re: how to make tomcat faster HOST your production using a UNIX box. I recommend Solaris x86. However, a good tightly configured linux machine would suffice too. If you can swing it, get dual cpu's and max memory. reguards, joe hi, i have been developing using Tomcat 4.0.1.. and i hv had no problems about that. Now i have moved all my applications on to the production server, where hopefully i wdnt be making any more changes. But i want to make Tomcat respond faster to requests. Obviously the production environment shd be different from the development one..so can someone detail me on what changes i can make to make Tomcat quicker to respond. Thanx in adv, -anoop -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Tomcat Icons
Nice, I use them. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: What can cause a clean Tomcat shutdown?
What about System.exit() in a servlet? RS Attila Szegedi [EMAIL PROTECTED] on 07/15/2002 08:51:20 AM Please respond to Tomcat Users List [EMAIL PROTECTED] To:Tomcat Users List [EMAIL PROTECTED] cc: Subject:What can cause a clean Tomcat shutdown? Guys, I'm asking this question again in hope someone notices this time: Except for the stop command sent to the Ajp12 connector, is there another event that will cause a Tomcat 3.3.1 to shut down cleanly? We experience sporadic spontaneous clean shutdowns of Tomcat 3.3.1 and have no idea what causes them. We know these are normal shutdowns since the servlet log shows the contexts are being unloaded and servlets' destroy() methods are being called - just as if someone has issued a tomcat.sh stop (before you ask: nobody does). Any clues appreciated. Cheers, Attila. -- Attila Szegedi home: http://www.szegedi.org -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Multiple Instances of Tomcat 4.0.4
Thank you for your reply. I am still not far from where I started last week! When using Tomcat 3.2.3, my tomcat.conf read something like this: [snip] ApJServMount /alpha ajpv12://web:8995/alpha ApJServMount /beta ajpv12://web:8996/beta [snip] where web was the host machine and /alpha and /beta were applications on two instances of tomcat. Now I am using Tomcat 4.0.4 and therefore mod_jk. How should I change my tomcat.conf? I tried replacing ApJServMount with JkMount but Apache(2.0.39) doesnt seem to redirect to tomcat :( Anybody somebody please help! -Vijay -Original Message- From: Eddie Bush [mailto:[EMAIL PROTECTED]] Sent: Saturday, July 13, 2002 12:51 PM To: Tomcat Users List Subject: Re: Multiple Instances of Tomcat 4.0.4 ubeans.com/tomcat - try that. I haven't personally done this, so I can't help you. The above assumes you're using Apache. Hopefully someone else will respond that knows more. Regards, Eddie Vijay Kandy wrote: Hello All, When I try to run %CATALINA_HOME%\bin\catalina start -f %CATALINA_HOME%\conf\server1.xml for different server.xml's I get this message: usage: java org.apache.catalina.startup.Catalina [ -config {pathname} ] [ -debug ] [ -nonaming ] { start | stop } From the docs, I made copies of Tomcat folder and added the paths to CATALINA_BASE. Doesnt seem to work either. Can some one point me in the right direction please? Is there a good documentation? Thank you, Vijay -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Installing Tomcat 4.0.4 on Red Hat 7.3 with RPM packages
Subject: Installing Tomcat 4.0.4 on Red Hat 7.3 with RPM packages From: Matt Raible [EMAIL PROTECTED] === I downloaded tomcat4-4.0.4-full.2jpp.noarch.rpm from http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4.0.4/rpms/ And I've installed it and can successfully start it. However, when I got to view a page (basically, the ROOT context), I get the following error: Apache Tomcat/4.0.4 - HTTP Status 500 - No Context configured to process this request type Status report message No Context configured to process this request description The server encountered an internal error (No Context configured to process this request) that prevented it from fulfilling this request. So I did some checking and no webapps exist in $CATALINA_HOME/webapps. Is this as designed - is there a different RPM I should be downloading that contains all the default webapps - or at least ROOT? Thanks, Matt -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: What can cause a clean Tomcat shutdown?
I think I spoke a little too quicky earlier. Sorry. I believe System.exit() doesn't unload the web applications. Presently I can't think of any other way for a clean Tomcat shutdown. RS [EMAIL PROTECTED] on 07/15/2002 09:38:54 AM Please respond to Tomcat Users List [EMAIL PROTECTED] To:Tomcat Users List [EMAIL PROTECTED] cc: Subject:Re: What can cause a clean Tomcat shutdown? What about System.exit() in a servlet? RS Attila Szegedi [EMAIL PROTECTED] on 07/15/2002 08:51:20 AM Please respond to Tomcat Users List [EMAIL PROTECTED] To:Tomcat Users List [EMAIL PROTECTED] cc: Subject:What can cause a clean Tomcat shutdown? Guys, I'm asking this question again in hope someone notices this time: Except for the stop command sent to the Ajp12 connector, is there another event that will cause a Tomcat 3.3.1 to shut down cleanly? We experience sporadic spontaneous clean shutdowns of Tomcat 3.3.1 and have no idea what causes them. We know these are normal shutdowns since the servlet log shows the contexts are being unloaded and servlets' destroy() methods are being called - just as if someone has issued a tomcat.sh stop (before you ask: nobody does). Any clues appreciated. Cheers, Attila. -- Attila Szegedi home: http://www.szegedi.org -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Tomcat MySQL Run On Read-Only Media ..
Thanks for all the answers. Martin understood me very well. From now I am trying to construct what I said. If I can, I will write the solution.. Thank you again.. Murat. -Original Message- From: Martin van den Bemt [mailto:[EMAIL PROTECTED]] Sent: Monday, July 15, 2002 4:50 PM To: Tomcat Users List Subject: RE: Tomcat MySQL Run On Read-Only Media .. I was just saying 2 mails ago : Who cares about customers ?? Tomcat-user list is not a marketing list.. He just wants to know how he can get that thing running on cd. he probably had a good reason to ask for this solution.. My reamrks were made so it got back ON topic again.. Sorry about the grumpy attitude, just thought he was asking on how to do that, not how to market it and do customer surveys. Mvgr, Martin On Mon, 2002-07-15 at 15:41, [EMAIL PROTECTED] wrote: A little bit off-topic, but if it is not a custom-made software and if it targets a lot of not specific users, it cannot only rely on a particular configuration (imo). -Original Message- From: Martin van den Bemt [mailto:[EMAIL PROTECTED]] Sent: 15 July 2002 15:30 To: Tomcat Users List Subject: RE: Tomcat MySQL Run On Read-Only Media .. Agreed, but only with custom made software.. At the most you can ask your current customers to ask if they can agree to a certain solution, but hey : he is asking what the solution might be! Before he gets that answered customer contact is a big waste of time Mvgr, Martin On Mon, 2002-07-15 at 15:19, [EMAIL PROTECTED] wrote: Hello, About the customers : they define the requirements. Who does not meet their requirements, lose them (especially the big ones)... Greetings, André POWROZNIK -Original Message- From: Martin van den Bemt [mailto:[EMAIL PROTECTED]] Sent: 15 July 2002 14:23 To: Tomcat Users List Subject: RE: Tomcat MySQL Run On Read-Only Media .. On Mon, 2002-07-15 at 13:59, [EMAIL PROTECTED] wrote: I am afraid it is not as as much easy as you think... 1) Will your customer agree to run these applications on their computer? 2) What if they are not using a PC (Mac?) or if they are not using Windows (Linux?)? Who cares.. If they order it, they have to.. 3) To run JSP you need a JDK, not a JRE. Wrong here.. Just if you want your jsp's to be dynamic.. Just precompile them.. 4) If you copy JDK, Tomcat MySQL files on the CD, will it work? In order to run they need : - DLLs in Windows system directories; - keys in Windows registry; - write access to some of their files... Use hsqldb instead which has a memory database.. 5) What about AUTOEXEC.BAT? It will do nothing if you put it on a CD : it needs to be in C:\, and there is already one there... ?? 6) What if your customers have problems running your CD? Will you create a hotline ;-) ? Not your problem I guess ;).. He was asking HOW not a project plan of things to resolve before hand.. TIP: Search the archives (maybe a year ago or something) there was a big thread about it, which actually worked towards a solution. Mvgr, Martin -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] DISCLAIMER This e-mail and any attachments thereto may contain information which is confidential and/or protected by intellectual property rights and are intended for the sole use of the recipient(s) named above. Any use of the information contained herein (including, but not limited to, total or partial reproduction, communication or distribution in any form) by persons other than the designated recipient(s) is prohibited. If you have received this e-mail in error, please notify the sender either by telephone or by e-mail and delete the material from any computer. Thank you for your cooperation. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] DISCLAIMER This e-mail and any attachments thereto may contain information which is confidential and/or protected by intellectual property rights and are intended for the sole use of the recipient(s) named above. Any use of the information contained herein (including, but not limited to, total or partial reproduction, communication or distribution in any form) by persons other than the designated recipient(s) is prohibited. If you have received this e-mail in error, please notify the sender either by telephone or by e-mail and delete the material from any computer. Thank you for your cooperation. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail:
Why JSPC is storing all the compiled files in one directory regardless of the application subdirectories?
When I compile my webapp with JspC from tomcat 4.1.7b it sores all the files in the directory specified by -d option regardless of the application directory structure. I have to mention that the directories are created correctly but they are empty and the files that belong to them are stored in the root directory. As a result if there are JSP files with the same name in different subdirectories they'll override each other. One more thing - since all resulting java files are under package org.apache.jsp the produced web.xml is not correct and have duplicated elements. Note that the JspC from tomcat 4.0.3 was placing the files under correct packages and subdirectories. JspC parameters used: java -ms128m -mx128m \ -Djava.endorsed.dirs=... \ -classpath ... \ -Djasper.home=... org.apache.jasper.JspC \ -v6 -d ../jspc -webinc ../jspc/web.xml -webapp . Note the -d option (it is not started with -dd)! Also it looks like the usage of -v option doesn't change anything. Regards, Rossen --- Rossen Raykov COGNICASE U.S.A. Inc. (908) 860-1100 Ext. 1140 [EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: newbie - finding class files
Check this link for more info on class loading. http://jakarta.apache.org/tomcat/tomcat-4.0-doc/class-loader-howto.html But it was my understanding that only Tomcat loads the classes and jars located in the /server directory. If you need access to it in your webapp, you have to either put the jar in yourwebapp/WEB-INF/lib or in the shared library section. For 4.0.4, shared libraries go in %CATALINA%\lib. With 4.1.x, they go in %CATALINA%\shared\lib. - Andrew -Original Message- From: Andreas Probst [mailto:[EMAIL PROTECTED]] Sent: Monday, July 15, 2002 7:07 AM To: [EMAIL PROTECTED] Subject: RE: newbie - finding class files Hi all, does Tomcat really look into tomcatdir/server/lib? For me it seems Tomcat doesn't. On the one hand the original webapp /webdav runs without errors. On the other hand, when I deploy a class that extends the original webdav-class org.apache.catalina.servlets.WebdavServlet (located in catalinahome\server\lib\servlets-webdav.jar) I get an java.lang.NoClassDefFoundError: org/apache/catalina/servlets/WebdavServlet. When I then copy catalinahome\server\lib\servlets-webdav.jar into catalinahome\webapps\mywebdav\WEB-INF\lib I get a different java.lang.NoClassDefFoundError: org/apache/catalina/servlets/DefaultServlet. DefaultServlet is located in catalinahome\server\lib\servlets-default.jar. So it seems Tomcat doesn't look into the catalinahome\server\lib\ directory. But why then runs the original /webdav app? What do I do wrong? Do I have to tell Tomcat somehow to look into the catalinahome\server\lib\ directory when running my webapp? Or do I have to copy all needed files from catalinahome\server\lib\ to my webapp's lib-directory? I suppose this shouldn't be the solution. By the way: I'm running Tomcat 4.0.4 on Windows 2000. Thanks a lot in advance. Andreas Probst Brian, Tomcat looks for your classes under Tomcatdir/webapps/yourapp/WEB-INF/classes and Tomcatdir/common/classes and looks for your jars in Tomcatdir/webapps/yourapp/WEB-INF/lib , Tomcatdir/common/lib (and Tomcatdir/server/lib but you shouldn't put your stuff in here) Andy -Original Message- From: Brian Wolf [mailto:[EMAIL PROTECTED]] Sent: 11 July 2002 22:12 To: Tomcat Users List Subject: newbie - finding class files Hi I am having problems with servlets finding class files. On Windows 98 I have the classpath and path environmental variables set to c:\jdk1.4\bin and c:\jdk1.4 respectively. The Servlet works fine when converted to a command line application. -Brian --- Error: 500 Location: /examples/servlet/processOptions Internal Servlet Error: java.lang.NoClassDefFoundError: com/sun/java/util/collections/AbstractSequentialList at org.jdom.input.SAXBuilder.createContentHandler(SAXBuilder.java) at org.jdom.input.SAXBuilder.build(SAXBuilder.java) -- To unsubscribe, e-mail: mailto:tomcat-user- [EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Cobranding - Share Controller, Split View
On Sun, 14 Jul 2002, August Detlefsen wrote: Date: Sun, 14 Jul 2002 23:15:53 -0700 (PDT) From: August Detlefsen [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED], [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Subject: Cobranding - Share Controller, Split View I am currently developing several cobranded sites that share the same functionality. I want to be able to share the same set of servlets across multiple cobrands. I know I can treat the servlets as a separate webapp and deploy them to each separate host, but if I do this, will they be able to access the different configuration ( context-param and JNDI resources ) specified in the each ROOT context's web.xml? One way to do this in Tomcat 4.1.x is to take advantage of the ResourceLink element. Basically, you define the resources you want to share once in the GlobalNamingResources section of server.xml, and then embed a ResourceLink for each resource in the Context element for the various webapps. From the point of view of the application, it just looks like a normal application resource -- the app doesn't know that it is actually getting resolved to the underlying shared resource by a link. This is very handy when you use the global resources to establish all the default behavior, then override just the resources a particular app needs to customize that app. The app itself thinks of all resources as being local, so it doesn't need to be modified to look two different places. -August Craig -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
AW: DataSource Casting Problem
Hi, I am also struggling with ConnectionPool at the moment. I have an Informix DB to connect to. It works if I use this: org.apache.commons.dbcp.BasicDataSource ds= (org.apache.commons.dbcp.BasicDataSource) envCtx.lookup(jdbc/ospreyDb); Any ideas? Thanks a lot in advance! How is your configuration of the DS in your server.xml? Did you define a factory for your DataSource, i.e. parameter namefactory/name valuecom.informix.jdbcx.IfxDataSourceFactory/value /parameter for DBCP the value is probably valueorg.apache.commons.dbcp.BasicDataSourceFactory/value Then you can probaly do without defining org.apache.commons.dbcp.BasicDataSource ds and using DataSource ds instead. Hope that helps, Cheers Holger - Holger Maier Tel.: (06831) 47-3497 ITS-AKIS eMail: [EMAIL PROTECTED] AG der Dillinger Hüttenwerke Postfach 1580 66748 Dillingen -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: newbie - finding class files
On Mon, 15 Jul 2002, Andreas Probst wrote: Date: Mon, 15 Jul 2002 13:07:11 +0200 From: Andreas Probst [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: RE: newbie - finding class files Hi all, does Tomcat really look into tomcatdir/server/lib? For me it seems Tomcat doesn't. This directory is only visible to the classloader for Tomcat itself, not for webapps. There is a special rule that makes servlet classes in package org.apache.catalina available to webapps anyway, however, which is why the standard WebdavServlet (as well as the other Tomcat features that are available via servlets) can be loaded. Craig On the one hand the original webapp /webdav runs without errors. On the other hand, when I deploy a class that extends the original webdav-class org.apache.catalina.servlets.WebdavServlet (located in catalinahome\server\lib\servlets-webdav.jar) I get an java.lang.NoClassDefFoundError: org/apache/catalina/servlets/WebdavServlet. When I then copy catalinahome\server\lib\servlets-webdav.jar into catalinahome\webapps\mywebdav\WEB-INF\lib I get a different java.lang.NoClassDefFoundError: org/apache/catalina/servlets/DefaultServlet. DefaultServlet is located in catalinahome\server\lib\servlets-default.jar. So it seems Tomcat doesn't look into the catalinahome\server\lib\ directory. But why then runs the original /webdav app? What do I do wrong? Do I have to tell Tomcat somehow to look into the catalinahome\server\lib\ directory when running my webapp? Or do I have to copy all needed files from catalinahome\server\lib\ to my webapp's lib-directory? I suppose this shouldn't be the solution. By the way: I'm running Tomcat 4.0.4 on Windows 2000. Thanks a lot in advance. Andreas Probst Brian, Tomcat looks for your classes under Tomcatdir/webapps/yourapp/WEB-INF/classes and Tomcatdir/common/classes and looks for your jars in Tomcatdir/webapps/yourapp/WEB-INF/lib , Tomcatdir/common/lib (and Tomcatdir/server/lib but you shouldn't put your stuff in here) Andy -Original Message- From: Brian Wolf [mailto:[EMAIL PROTECTED]] Sent: 11 July 2002 22:12 To: Tomcat Users List Subject: newbie - finding class files Hi I am having problems with servlets finding class files. On Windows 98 I have the classpath and path environmental variables set to c:\jdk1.4\bin and c:\jdk1.4 respectively. The Servlet works fine when converted to a command line application. -Brian --- Error: 500 Location: /examples/servlet/processOptions Internal Servlet Error: java.lang.NoClassDefFoundError: com/sun/java/util/collections/AbstractSequentialList at org.jdom.input.SAXBuilder.createContentHandler(SAXBuilder.java) at org.jdom.input.SAXBuilder.build(SAXBuilder.java) -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: forwarding through j_security_check
On Mon, 15 Jul 2002, James Krygowski wrote: Date: Mon, 15 Jul 2002 08:55:59 -0400 From: James Krygowski [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: forwarding through j_security_check Hi All- I'm working on a web-app launcher. The essential idea is to provide users with a centralized, secure web portal from which they can launch other web applications. The other applications will reside in Tomcat servers different from the portal Tomcat server. Each application will be protected by standard J2EE security implemented with j_security_check. I'd like to be able to forward to applications and automatically negotiate the j_security_check so that user's don't have to log on once they've already presented their credentials to the portal application (i.e. single sign-on). Is it possible to formulate an href url that simultaneously specifies the target resource and the credentials being passed to j_security_check? I note that in the packet sent in the j_security_check post, all the information needed is present. If the read the packet right, the Referrer in the http header contains the information about the desired protected resource. Is this Referrer used by j_security_check to forward a request on to the desired destination? No, it is not. When form based login detects the need to challenge the user for credentials, it saves an internal copy of the original request, and replays it once the user is successfully authenticated. If so, is it possible to set up a servlet that could manipulate the Referrer in the header, and redirect a request along to an application in another Tomcat server, making it look like a post to j_security_check, complete with referrer, j_username and j_password? Any suggestions or comments are welcome and appreciated. Trying to forward security credentials like this is pretty much guaranteed not to work. One thing you might consider using is Tomcat's standard support for single sign on across multiple webaps. Check out the Single Sign On section on: http://jakarta.apache.org/tomcat/tomcat-4.0-doc/config/host.html Thanks, Jim Craig -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
DataSource Access - Design Question
Hi, I am trying to get my DataSource (with Connection Pooling) to run. In the examples one always gets the DataSource from JNDI and I have the impression that everytime I want to get my connection from DataSource via a Context lookup. Wouldn't it be better to read the data source once in a singleton class and then just get it back, i.e. private DataSource ds; ... public static void getDataSource() { // if data source unknown read it from context if (ds == null) { try { Context ctx = new InitialContext(); ds = (DataSource) ctx.lookup(java:comp/env/jdbc/myDataSource); } catch (..) {..} } return ds; } This should be faster than accessing the context every time you need a datasource or a connection. Could this lead into problems? Any suggestions? Cheers, Holger - Holger Maier Tel.: (06831) 47-3497 ITS-AKIS eMail: [EMAIL PROTECTED] AG der Dillinger Hüttenwerke Postfach 1580 66748 Dillingen -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Tomcat4 + Apache2, and I need the tomcat connectors
OK, I have Tomcat and Apache working on windows 2000 at work no problem I went to my friends house, and the connectors will not work. I noticed that the older connctors work.. the Newer ones dont.. at work I have jakarta-tomcat-connectors-4.0.2-01-src.zip--- this works fine the new one is jakarta-tomcat-connectors-4.0.4-src.zip -- this does NOT work,,, is this a problem It asks for this Coyote.jar file?? when I use the ant.bat file??? and there is something wrong with the Build.xml?? anyone can help?? HELP _ Chat with friends online, try MSN Messenger: http://messenger.msn.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Tomcat 4.0.3 and relative path includes.
A bug was generated to deal with this info, and a patch was sumbitted for comittment to the source. For those interested, the bug is here: http://nagoya.apache.org/bugzilla/show_bug.cgi?id=10629 Thanks Andrew ...Paul Paul landolt wrote: After some digging by Andrew, it appears that there may be some issuea with how @include's are performed within a war file rather than with a deployed app. If the application is deployed as a directory (the war file unpacked into a directory) then Jasper has no troubles at all finding ../testdir/inc.jsp. However, it cannot find the file if the app is deployed as a war file. I would assume that the reason I could not find a similar problem when deploying the war file in Weblogic is because Weblogic may expand the war file into a temporary directory before execution. Has anyone else experienced similar issues with expanded vs War file webapps? ...Paul Andrew Conrad wrote: Little background real quick. Tomcat allows you to define an application Context in the server.xml Such that, if you wanted a webapp called MyApp, you would set up a Context in your server.xml file with the path /MyApp and the docBase attribute pointing to the location of your web app. In my testing, you could use relative paths WITHIN your Context. Meaning If you had a file /MyApp/testdir1/getRelative.jsp You could include these files: /myApp/inc.jsp (using ../inc.jsp OR /inc.jsp ) /myApp/testdir1/inc.jsp (using inc.jsp or /testdir1/inc.jsp) /myApp/testdir2/inc.jsp (using ../testdir2/inc.jsp or /testdir2/inc.jsp ) What you couldn't do was leave your Context and get something else (like): /inc.jsp /YourApp/inc.jsp According to the Servlet 2.3 specification, I do not believe this is a bug. (SRV9.5) A web application exists as a structured hierarchy of directories. The root of this hierarchy serves as the document root for files that are part of the application. That seems to say that everything within the MyApp webapp should see the directory as / and you cannot go below root. This seems to be consistent with the JSP 1.2 Documentation for jsp:include / and %@ include % tags (JSP 2.10.3; JSP 4.4) -Andrew -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Tomcat+Jboss+Apache
Hi This i my first letter to the list..so please ..be nice..hehe :) Ok i have a small problem with the jboss-3.0.0RC2+Tomcat4.0.3 bundle I am using Apache 1.3.26 witch fires upp without an error ( It´s using mod_webapp.so ) Everything is up and running ! but when i fire up Apache, the Jboss+Tomcat bundle generate error wich look like this: 16:43:21,956 ERROR [Engine] StandardContext[/examples]: Error configuring application listener of class listeners.ContextListener java.lang.NoClassDefFoundError: javax/servlet/ServletContextAttributeListener at java.lang.ClassLoader.defineClass0(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:496) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:117) at org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:1631) at org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:926) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1360) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1243) at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3142) at org.apache.catalina.core.StandardContext.start(StandardContext.java:3378) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:785) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:454) at org.apache.catalina.core.StandardHost.install(StandardHost.java:714) at org.apache.catalina.connector.warp.WarpConfigurationHandler.deploy(WarpConfigurationHandler.java:313) at org.apache.catalina.connector.warp.WarpConfigurationHandler.handle(WarpConfigurationHandler.java:117) at org.apache.catalina.connector.warp.WarpConnection.run(WarpConnection.java:189) at java.lang.Thread.run(Thread.java:498) 16:43:22,029 ERROR [Engine] StandardContext[/examples]: Error configuring application listener of class listeners.SessionListener java.lang.NoClassDefFoundError: javax/servlet/ServletContextListener at java.lang.ClassLoader.defineClass0(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:496) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:117) at org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:1631) at org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:926) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1360) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1243) at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3142) at org.apache.catalina.core.StandardContext.start(StandardContext.java:3378) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:785) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:454) at org.apache.catalina.core.StandardHost.install(StandardHost.java:714) at org.apache.catalina.connector.warp.WarpConfigurationHandler.deploy(WarpConfigurationHandler.java:313) at org.apache.catalina.connector.warp.WarpConfigurationHandler.handle(WarpConfigurationHandler.java:117) at org.apache.catalina.connector.warp.WarpConnection.run(WarpConnection.java:189) at java.lang.Thread.run(Thread.java:498) 16:43:22,092 INFO [Engine] StandardContext[/examples]: Skipped installing application listeners due to previous error(s) 16:43:22,093 INFO [Engine] StandardContext[/examples]: Context startup failed due to previous errors 16:43:22,162 ERROR [Engine] [org.apache.catalina.connector.warp.WarpConfigurationHandler] Filter mappings (0) 16:43:22,165 ERROR [Engine] [org.apache.catalina.connector.warp.WarpConfigurationHandler] Filter mappings (0) 16:43:22,167 ERROR [Engine] [org.apache.catalina.connector.warp.WarpConfigurationHandler] Filter mappings (0) 16:43:22,169 ERROR [Engine] [org.apache.catalina.connector.warp.WarpConfigurationHandler] Filter mappings (0) 16:43:22,171 ERROR [Engine] [org.apache.catalina.connector.warp.WarpConfigurationHandler] Filter mappings (0) Can anyone help plese.. i am stuck.. bigtime.. have spent 12 hours just findin faq.. but nothing.. you are my last hope :) NOTE: i am using this help here http://www.pubbitch.org/jboss.html Plesae take a look.. at the bottom of this page.. where the Apache 2.0.35 and JBoss 3RC1 with embedded Tomcat 4.0.3 help is so you get a better idea of how I set this up. Best regards Siggi -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: DataSource Access - Design Question
Maier Holger wrote: Wouldn't it be better to read the data source once in a singleton class and then just get it back, i.e. I did the same thing with my application where I did a key/value storage object that was a singleton in my ServletContext. I did notice a slight speed improvement and I've had zero issues. //example factory configured by properties file DataSourceFactory dsf = DataSourceFactory.getInstance(servlet.getServletContext()); DataSource ds = dsf.getDataSource(hrdb); Jacob Hookom CS Student University of Wisconsin, Eau Claire === http://www.swanked.net you're not hip enough yet -Original Message- From: Maier Holger, ITS-AKIS [mailto:[EMAIL PROTECTED]] Sent: Monday, July 15, 2002 9:29 AM To: 'Tomcat Users List' Subject: DataSource Access - Design Question Hi, I am trying to get my DataSource (with Connection Pooling) to run. In the examples one always gets the DataSource from JNDI and I have the impression that everytime I want to get my connection from DataSource via a Context lookup. Wouldn't it be better to read the data source once in a singleton class and then just get it back, i.e. private DataSource ds; ... public static void getDataSource() { // if data source unknown read it from context if (ds == null) { try { Context ctx = new InitialContext(); ds = (DataSource) ctx.lookup(java:comp/env/jdbc/myDataSource); } catch (..) {..} } return ds; } This should be faster than accessing the context every time you need a datasource or a connection. Could this lead into problems? Any suggestions? Cheers, Holger - Holger Maier Tel.: (06831) 47-3497 ITS-AKIS eMail: [EMAIL PROTECTED] AG der Dillinger Hüttenwerke Postfach 1580 66748 Dillingen -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.375 / Virus Database: 210 - Release Date: 7/10/2002 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.375 / Virus Database: 210 - Release Date: 7/10/2002 -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
applet jars
Hello list, I have been trying to embed a simple applet in a web page and keep getting a ClassNotFoundException. However, I have placed the jars in my webservers CLASSPATH and I am able to launch (non-applet) applications contained in the JAR succesfully form the server. I am wondering if I need to do some sort of special configuration for applets in TomCat? I have tried placing the JARS in my web ap. lib directory, the root directory, in the tomcat lib--everything! Am I missing something? Regards to all, Aaron -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Session tracking problem with Tomcat 4.0.3, Apache 2.0.39 and mod_proxy
Hi Thanks for that, it was exactly what was happening! Moving the context for the bodypainting WAR file to root, and changing the proxy pass to map http://www.bodypainting.co.uk/ to http://localhost:8000/ has fixed the problem, and my session tracking now works as expected. I now need to work out a way of having more than one webapp using Apache virtual hosting where two or more domains both get mapped to / under Tomcat and get different webapps delivered. I'm running the Tomcat 4.0.3 which comes bundled with JBoss 3.0.0, so will probably have quite a challenge! Thanks for your help. Kind regards Rick Mills Rick, I'm pretty sure that this is the same issue that I've experienced. First, try mapping to /bodypainting/ instead of /. See if you get a cookie there. Then, if you have a browser that allows you to inspect session cookies (mozilla is good for this), check the path of your session cookie. You should find that it's /bodypainting. The problem is that the cookie path is determined by Tomcat, not by Apache, and Tomcat gives every webapp a cookie with the path of the webapp as tomcat would determine it; so since Tomcat thinks the path is /bodypainting, the cookie path doesn't change just because you're using mod_proxy. So when you go to visit the page at /, the cookie is ignored because it doesn't have the right path. The only way I can think of to solve your issue so far is to solve the path issue with Tomcat- you need to map your webapp to 'http://localhost:8000/' instead of 'http://localhost:8000/bodypainting/'. There are two ways I can think of to do this: 1. move your 'bodypainting' webapp into the ROOT webapp. 2. Uncomment and change the docBase path in server.xml: Context path= docBase=bodypainting debug=0/ That should do the trick, hopefully. Let me know how that works for you. Best of luck! Liam Morley -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: applet jars
Since it's an applet, it needs to be in the applet JAR in the browser. The Applet runs in the user's browser, not in tomcat. Nick On Monday, July 15, 2002, at 12:32 PM, Rutledge, Aaron wrote: Hello list, I have been trying to embed a simple applet in a web page and keep getting a ClassNotFoundException. However, I have placed the jars in my webservers CLASSPATH and I am able to launch (non-applet) applications contained in the JAR succesfully form the server. I am wondering if I need to do some sort of special configuration for applets in TomCat? I have tried placing the JARS in my web ap. lib directory, the root directory, in the tomcat lib--everything! Am I missing something? Regards to all, Aaron -- To unsubscribe, e-mail: mailto:tomcat-user- [EMAIL PROTECTED] For additional commands, e-mail: mailto:tomcat-user- [EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: applet jars
Howdy, Applet jars need to be accessible to the browser. Therefore, they cannot be under /mywebapp/WEB-INF. Put them under /mywebapp/applets, for example /mywebapp/applets/myApplet.jar. Then your web page would have something like applet code=com.myclass archive=/applets/myApplet.jar Yoav Shapira Millennium ChemInformatics -Original Message- From: Rutledge, Aaron [mailto:[EMAIL PROTECTED]] Sent: Monday, July 15, 2002 1:33 PM To: Tomcat Users List (E-mail) Subject: applet jars Hello list, I have been trying to embed a simple applet in a web page and keep getting a ClassNotFoundException. However, I have placed the jars in my webservers CLASSPATH and I am able to launch (non-applet) applications contained in the JAR succesfully form the server. I am wondering if I need to do some sort of special configuration for applets in TomCat? I have tried placing the JARS in my web ap. lib directory, the root directory, in the tomcat lib--everything! Am I missing something? Regards to all, Aaron -- To unsubscribe, e-mail: mailto:tomcat-user- [EMAIL PROTECTED] For additional commands, e-mail: mailto:tomcat-user- [EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: applet jars
The user's browser is requesting the applet classes from TomCat, right? I understand that the applet doesn't run on the server, but somehow TomCat needs to know what classes to send and that is what I am confused on. How can I refer to my JARs in my web page, and where do I place them on the server? I assumed they would just be placed in the root directory along with the page and a simple call like... applet width=400 height=400 code=com.blah.go.MYApplet archive=com.blah.go.jar alt=My Applet /applet It appears that Tomcat doesn't know where the jar is. _ Aaron Rutledge Electronic Business Specialist Eppendorf - 5 Prime, Inc. 6135 Gunbarrel Ave., Ste 230 Boulder, CO 80301 Tel: 303-583-7019 -Original Message- From: Nick Wesselman [mailto:[EMAIL PROTECTED]] Sent: Monday, July 15, 2002 11:40 AM To: Tomcat Users List Subject: Re: applet jars Since it's an applet, it needs to be in the applet JAR in the browser. The Applet runs in the user's browser, not in tomcat. Nick On Monday, July 15, 2002, at 12:32 PM, Rutledge, Aaron wrote: Hello list, I have been trying to embed a simple applet in a web page and keep getting a ClassNotFoundException. However, I have placed the jars in my webservers CLASSPATH and I am able to launch (non-applet) applications contained in the JAR succesfully form the server. I am wondering if I need to do some sort of special configuration for applets in TomCat? I have tried placing the JARS in my web ap. lib directory, the root directory, in the tomcat lib--everything! Am I missing something? Regards to all, Aaron -- To unsubscribe, e-mail: mailto:tomcat-user- [EMAIL PROTECTED] For additional commands, e-mail: mailto:tomcat-user- [EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: applet jars
On Mon, 15 Jul 2002, Rutledge, Aaron wrote: Date: Mon, 15 Jul 2002 11:53:19 -0600 From: Rutledge, Aaron [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Subject: RE: applet jars The user's browser is requesting the applet classes from TomCat, right? I understand that the applet doesn't run on the server, but somehow TomCat needs to know what classes to send and that is what I am confused on. How can I refer to my JARs in my web page, and where do I place them on the server? I assumed they would just be placed in the root directory along with the page and a simple call like... applet width=400 height=400 code=com.blah.go.MYApplet archive=com.blah.go.jar alt=My Applet /applet It appears that Tomcat doesn't know where the jar is. From Tomcat's point of view, the browser is going to do a download of the path you specify, exactly like it does for an image. Therefore, you'd need to put file com.blah.go.jar in the same directory as the page containing the above applet tag for Tomcat to find it. Craig -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: applet jars
Thanks! -A. -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED]] Sent: Monday, July 15, 2002 11:44 AM To: Tomcat Users List Subject: RE: applet jars Howdy, Applet jars need to be accessible to the browser. Therefore, they cannot be under /mywebapp/WEB-INF. Put them under /mywebapp/applets, for example /mywebapp/applets/myApplet.jar. Then your web page would have something like applet code=com.myclass archive=/applets/myApplet.jar Yoav Shapira Millennium ChemInformatics -Original Message- From: Rutledge, Aaron [mailto:[EMAIL PROTECTED]] Sent: Monday, July 15, 2002 1:33 PM To: Tomcat Users List (E-mail) Subject: applet jars Hello list, I have been trying to embed a simple applet in a web page and keep getting a ClassNotFoundException. However, I have placed the jars in my webservers CLASSPATH and I am able to launch (non-applet) applications contained in the JAR succesfully form the server. I am wondering if I need to do some sort of special configuration for applets in TomCat? I have tried placing the JARS in my web ap. lib directory, the root directory, in the tomcat lib--everything! Am I missing something? Regards to all, Aaron -- To unsubscribe, e-mail: mailto:tomcat-user- [EMAIL PROTECTED] For additional commands, e-mail: mailto:tomcat-user- [EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Fw: Tomcat 4.0.1 - weird performance issue
Newbie question. Please, help! In short, Tomcat slows down every time an updated jar file is loaded (replacing old one) to lib directory in WEB-INF of the application. Everything else stays the same. The change in jar file can be one method call change or three classes, doesn't matter. Anybody had Tomcat slow down for the jar upload reason? Thanks. Maya -- On Fri, 12 Jul 2002 22:14:31 Maya Vayner wrote: Hi, Please, help me with this if you can. Did anyone ever have this kind of problem with Tomcat 4.0.1 on linux machine? Here is what is happening: after upgrading(replacing old with new version) myapplicationname.jar in webapps/myapplicationname/WEB-INF/lib directory and restarting Tomcat, the site seems to slo-o-o-o-ow down to 5 minutes of a 1 simple jsp page loading time. We tried to test the new myapplicationname.jar by creating a test app under webapps on that machine and running the copy of the site from that app with new jar file, and it did a great job. But whenever we take that jar file and place it into live app, the site slows down for some weird reason (why?). Any advices/ideas/suggestions will be greatly appreciated. Thank you. -- Maya _ Supercharge your e-mail with a 25MB Inbox, POP3 Access, No Ads and NoTaglines -- LYCOS MAIL PLUS. http://www.mail.lycos.com/brandPage.shtml?pageId=plus -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] _ Supercharge your e-mail with a 25MB Inbox, POP3 Access, No Ads and NoTaglines -- LYCOS MAIL PLUS. http://www.mail.lycos.com/brandPage.shtml?pageId=plus -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Session tracking problem with Tomcat 4.0.3, Apache 2.0.39 andmod_proxy
Unfortunately I think you might need to run multiple instances of Tomcat in that case:( As you can't give multiple webapps a cookie with a / path. If you find any other solutions, however, please let me know:) Liam Morley Rick Mills wrote: Hi Thanks for that, it was exactly what was happening! Moving the context for the bodypainting WAR file to root, and changing the proxy pass to map http://www.bodypainting.co.uk/ to http://localhost:8000/ has fixed the problem, and my session tracking now works as expected. I now need to work out a way of having more than one webapp using Apache virtual hosting where two or more domains both get mapped to / under Tomcat and get different webapps delivered. I'm running the Tomcat 4.0.3 which comes bundled with JBoss 3.0.0, so will probably have quite a challenge! Thanks for your help. Kind regards Rick Mills Rick, I'm pretty sure that this is the same issue that I've experienced. First, try mapping to /bodypainting/ instead of /. See if you get a cookie there. Then, if you have a browser that allows you to inspect session cookies (mozilla is good for this), check the path of your session cookie. You should find that it's /bodypainting. The problem is that the cookie path is determined by Tomcat, not by Apache, and Tomcat gives every webapp a cookie with the path of the webapp as tomcat would determine it; so since Tomcat thinks the path is /bodypainting, the cookie path doesn't change just because you're using mod_proxy. So when you go to visit the page at /, the cookie is ignored because it doesn't have the right path. The only way I can think of to solve your issue so far is to solve the path issue with Tomcat- you need to map your webapp to 'http://localhost:8000/' instead of 'http://localhost:8000/bodypainting/'. There are two ways I can think of to do this: 1. move your 'bodypainting' webapp into the ROOT webapp. 2. Uncomment and change the docBase path in server.xml: Context path= docBase=bodypainting debug=0/ That should do the trick, hopefully. Let me know how that works for you. Best of luck! Liam Morley -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Tomcat4 + Apache2, and I need the tomcat connectors
Can someone help me with my Situation problem? I I think its the connectors that they put out! i dont think they are good! anyway! From: Joey Kovacs [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Tomcat4 + Apache2, and I need the tomcat connectors Date: Mon, 15 Jul 2002 17:04:04 + OK, I have Tomcat and Apache working on windows 2000 at work no problem I went to my friends house, and the connectors will not work. I noticed that the older connctors work.. the Newer ones dont.. at work I have jakarta-tomcat-connectors-4.0.2-01-src.zip--- this works fine the new one is jakarta-tomcat-connectors-4.0.4-src.zip -- this does NOT work,,, is this a problem It asks for this Coyote.jar file?? when I use the ant.bat file??? and there is something wrong with the Build.xml?? anyone can help?? HELP _ Chat with friends online, try MSN Messenger: http://messenger.msn.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] j03b0x3r _ Join the worlds largest e-mail service with MSN Hotmail. http://www.hotmail.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Java Mail/IMAP
I was looking at SendMailServlet.java example provided by Tomcat 4.0, I was wondering if anyone could provide help using an IMAP server instead. For example, I need to authenticate and am not sure what I need to add in order for that to happen. Thanks, Kevin Kevin Andryc Web Systems Engineer MISER http://www.umass.edu/miser/ Phone: (413)-545-3460 [EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Tomcat4 + Apache2, and I need the tomcat connectors
Hi Joey I found that the easiest way to connect Apache to Tomcat was to use mod_proxy: http://jakarta.apache.org/tomcat/tomcat-4.0-doc/proxy-howto.html This method requires no connectors to be built (unlike mod_jk and mod_webapp) - instead Apache communicates with Tomcat using HTTP. The amount of configuration of Apache and Tomcat required is also less. Kind regards Rick Mills Can someone help me with my Situation problem? I I think its the connectors that they put out! i dont think they are good! anyway! -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Java Mail/IMAP
On Mon, 15 Jul 2002, Kevin Andryc wrote: Date: Mon, 15 Jul 2002 15:34:43 -0400 From: Kevin Andryc [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Subject: Java Mail/IMAP I was looking at SendMailServlet.java example provided by Tomcat 4.0, I was wondering if anyone could provide help using an IMAP server instead. For example, I need to authenticate and am not sure what I need to add in order for that to happen. IMAP only helps you *receive* messages and manage folders. Message sending (via a Transport instance in JavaMail) still requires SMTP. At any rate, the JavaMail download will have docs and examples on how to use the included IMAP support. http://java.sun.com/products/javamail Thanks, Kevin Craig -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Java Mail/IMAP
Hi Kevin, If no one else can help with imap mail in Tomcat, Sun has a mail webapp on their web site that supports IMAP and POP and enclosures of graphics and pdf files, etc. They use a tag library so it's easy to customize. Details are at: http://developer.java.sun.com/developer/technicalArticles/javaserverpages/em ailapps/ Rick - Original Message - From: Kevin Andryc [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Monday, July 15, 2002 3:34 PM Subject: Java Mail/IMAP I was looking at SendMailServlet.java example provided by Tomcat 4.0, I was wondering if anyone could provide help using an IMAP server instead. For example, I need to authenticate and am not sure what I need to add in order for that to happen. Thanks, Kevin Kevin Andryc Web Systems Engineer MISER http://www.umass.edu/miser/ Phone: (413)-545-3460 [EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Java Mail/IMAP
Thanks! I appreciate everyone's help! Kevin Kevin Andryc Web Systems Engineer MISER http://www.umass.edu/miser/ Phone: (413)-545-3460 [EMAIL PROTECTED] -Original Message- From: Rick Fincher [mailto:[EMAIL PROTECTED]] Sent: Monday, July 15, 2002 03:53 PM To: Tomcat Users List Subject: Re: Java Mail/IMAP Hi Kevin, If no one else can help with imap mail in Tomcat, Sun has a mail webapp on their web site that supports IMAP and POP and enclosures of graphics and pdf files, etc. They use a tag library so it's easy to customize. Details are at: http://developer.java.sun.com/developer/technicalArticles/javaserverpages/em ailapps/ Rick - Original Message - From: Kevin Andryc [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Monday, July 15, 2002 3:34 PM Subject: Java Mail/IMAP I was looking at SendMailServlet.java example provided by Tomcat 4.0, I was wondering if anyone could provide help using an IMAP server instead. For example, I need to authenticate and am not sure what I need to add in order for that to happen. Thanks, Kevin Kevin Andryc Web Systems Engineer MISER http://www.umass.edu/miser/ Phone: (413)-545-3460 [EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Problems with Tomcat 4.0.3 - JNDIRealms - LDAP - Netware 5
Hi All, Can someone tell me if this is possible or what... I have Tomcat connecting the LDAP server on Netware... Beyond that I have had many problems: (1) Netware does not export a userPassword attribute. I have a few ideas on getting around this, such as a patch to try to connect as the requested user, or using a different arribute I told Tomcat to use the Language attribute as the password field and I can authenticate using the password ENGLISH... that works. Any other ideas? This is going to be for some low level intranet stuff, so storing the password in a different field is not all that far out of an option (yes I know its security terrible). (2) Beyond the one above: Roles... I cannot get it to get me a list of roles... anyone do this before? From what I read in the tomcat docs it does not seem likes its possible based on the way netware lists the groups... ANY help, pointers, etc would be greatly apprecaited! Bill -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Tomcat4 + Apache2, and I need the tomcat connectors
Is this good,, even if apache and tomcat are running on the same PC?? From: Rick Mills [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Subject: Re: Tomcat4 + Apache2, and I need the tomcat connectors Date: Mon, 15 Jul 2002 20:35:24 +0100 Hi Joey I found that the easiest way to connect Apache to Tomcat was to use mod_proxy: http://jakarta.apache.org/tomcat/tomcat-4.0-doc/proxy-howto.html This method requires no connectors to be built (unlike mod_jk and mod_webapp) - instead Apache communicates with Tomcat using HTTP. The amount of configuration of Apache and Tomcat required is also less. Kind regards Rick Mills Can someone help me with my Situation problem? I I think its the connectors that they put out! i dont think they are good! anyway! -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] j03b0x3r _ MSN Photos is the easiest way to share and print your photos: http://photos.msn.com/support/worldwide.aspx -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: What can cause a clean Tomcat shutdown?
Well yes, that's what puzzles us as well - it performs a clean shutdown without anyone running tomcat.sh stop. Also, the 8007 port is blocked by a firewall so it can't receive it from afar (and wouldn't react to a non-localhost stop command anyway...). Attila. - Original Message - From: [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Monday, July 15, 2002 5:32 PM Subject: Re: What can cause a clean Tomcat shutdown? I think I spoke a little too quicky earlier. Sorry. I believe System.exit() doesn't unload the web applications. Presently I can't think of any other way for a clean Tomcat shutdown. RS [EMAIL PROTECTED] on 07/15/2002 09:38:54 AM Please respond to Tomcat Users List [EMAIL PROTECTED] To:Tomcat Users List [EMAIL PROTECTED] cc: Subject:Re: What can cause a clean Tomcat shutdown? What about System.exit() in a servlet? RS Attila Szegedi [EMAIL PROTECTED] on 07/15/2002 08:51:20 AM Please respond to Tomcat Users List [EMAIL PROTECTED] To:Tomcat Users List [EMAIL PROTECTED] cc: Subject:What can cause a clean Tomcat shutdown? Guys, I'm asking this question again in hope someone notices this time: Except for the stop command sent to the Ajp12 connector, is there another event that will cause a Tomcat 3.3.1 to shut down cleanly? We experience sporadic spontaneous clean shutdowns of Tomcat 3.3.1 and have no idea what causes them. We know these are normal shutdowns since the servlet log shows the contexts are being unloaded and servlets' destroy() methods are being called - just as if someone has issued a tomcat.sh stop (before you ask: nobody does). Any clues appreciated. Cheers, Attila. -- Attila Szegedi home: http://www.szegedi.org -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Change to new vwrsion
hi all Im a newbe in a Java plataform ! I have a Jserv+Apache+ssl in a old machine with a Solaris 6. but i need to change to the new Web server for this versions Apache 1.3.26 or 2.0.x + Tomcat 4.0 or last + SSL i will have a problem with my aplications ? any people can help me in this case ??? any docs, url`s ? i use Solaris 8 sparc thanks -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Installing Tomcat 4.0.4 on Red Hat 7.3 with RPM packages
Subject: Re: Installing Tomcat 4.0.4 on Red Hat 7.3 with RPM packages From: Steven Citron-Pousty [EMAIL PROTECTED] === Matt: IMHO the 4.0.4 RPM stinks. Better to go with a binary. I tried contacting the RPM contact on the bottom of the RPM download page and I posted messages here on the list and got no response (the direct message got bounced). Don't use the rpm. Steve Jakarta Tomcat Newsgroup (@Basebeans.com) wrote: Subject: Installing Tomcat 4.0.4 on Red Hat 7.3 with RPM packages From: Matt Raible [EMAIL PROTECTED] === I downloaded tomcat4-4.0.4-full.2jpp.noarch.rpm from http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4.0.4/rpms/ And I've installed it and can successfully start it. However, when I got to view a page (basically, the ROOT context), I get the following error: Apache Tomcat/4.0.4 - HTTP Status 500 - No Context configured to process this request type Status report message No Context configured to process this request description The server encountered an internal error (No Context configured to process this request) that prevented it from fulfilling this request. So I did some checking and no webapps exist in $CATALINA_HOME/webapps. Is this as designed - is there a different RPM I should be downloading that contains all the default webapps - or at least ROOT? Thanks, Matt -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Overriding the Tomcat work directory for compiled JSPs
Has anyone successfully overridden the work directory into which Tomcat 4.0.3 writes compiled JSPs? I have found two methods documented, and neither of them works for me. The first is in server.xml: ContextManager workDir=workdir The second is in web.xml: a mapping for the .jps extension in WEBAPP/WEB-INF/web.xml, e.g. servlet servlet-name jsp /servlet-name servlet-classorg.apache.jasper.servlet.JspServlet /servlet-class init-param param-namescratchdir/param-name param-value/mydir/workdir/param-value /init-param I have tried both of these methods both with absolute pathnames and with paths relative to catalina_home but in all cases JSPs are compiled into the default work directory under catalina_home. Am I missing something or do these methods not work in 4.0.3? Many thanks. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: DataSource Casting Problem
You may find that there are multiple occurences of various classes and interfaces in your classpath e.g. javax.sql, these cause a ClassCastException to be thrown when trying to narrow a jndi context. Tony - Original Message - From: Maier Holger, ITS-AKIS [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Monday, July 15, 2002 7:06 AM Subject: AW: DataSource Casting Problem Hi, I am also struggling with ConnectionPool at the moment. I have an Informix DB to connect to. It works if I use this: org.apache.commons.dbcp.BasicDataSource ds= (org.apache.commons.dbcp.BasicDataSource) envCtx.lookup(jdbc/ospreyDb); Any ideas? Thanks a lot in advance! How is your configuration of the DS in your server.xml? Did you define a factory for your DataSource, i.e. parameter namefactory/name valuecom.informix.jdbcx.IfxDataSourceFactory/value /parameter for DBCP the value is probably valueorg.apache.commons.dbcp.BasicDataSourceFactory/value Then you can probaly do without defining org.apache.commons.dbcp.BasicDataSource ds and using DataSource ds instead. Hope that helps, Cheers Holger - Holger Maier Tel.: (06831) 47-3497 ITS-AKIS eMail: [EMAIL PROTECTED] AG der Dillinger Hüttenwerke Postfach 1580 66748 Dillingen -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: What can cause a clean Tomcat shutdown?
I am not aware of any way to have a spontaneous clean shutdown in Tomcat 3.3.1 (besides sending a shutdown message like shutdown.sh does). If feasible, I would recommend compiling a custom version of Tomcat 3.3.1, with extra logging added to help detect the cause. I would start with ContextManager.shutdown(). Add some logging (there doesn't appear to be helpful logging there by default), and print a stack trace. Then see where the logs lead you, adding more logging as needed. Cheers, Larry -Original Message- From: Attila Szegedi [mailto:[EMAIL PROTECTED]] Sent: Monday, July 15, 2002 9:51 AM To: Tomcat Users List Subject: What can cause a clean Tomcat shutdown? Guys, I'm asking this question again in hope someone notices this time: Except for the stop command sent to the Ajp12 connector, is there another event that will cause a Tomcat 3.3.1 to shut down cleanly? We experience sporadic spontaneous clean shutdowns of Tomcat 3.3.1 and have no idea what causes them. We know these are normal shutdowns since the servlet log shows the contexts are being unloaded and servlets' destroy() methods are being called - just as if someone has issued a tomcat.sh stop (before you ask: nobody does). Any clues appreciated. Cheers, Attila. -- Attila Szegedi home: http://www.szegedi.org -- To unsubscribe, e-mail: mailto:tomcat-user- [EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
mod_jk for Linux (Tomcat 4.0.4/Apache 1.3.26)
Where do I find mod_jk.so (Linux) along with the configuration files (workers.properties, mod_jk.conf etc.) for Tomcat 4.0.4 for use with Apache 1.3.26? Thanks, Kevin Kevin Andryc Web Systems Engineer MISER http://www.umass.edu/miser/ Phone: (413)-545-3460 [EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: What can cause a clean Tomcat shutdown?
Well hope you don't have some kind of cron job that periodically shuts Tomcat down. RS Attila Szegedi [EMAIL PROTECTED] on 07/15/2002 03:24:51 PM Please respond to Tomcat Users List [EMAIL PROTECTED] To:Tomcat Users List [EMAIL PROTECTED] cc: Subject:Re: What can cause a clean Tomcat shutdown? Well yes, that's what puzzles us as well - it performs a clean shutdown without anyone running tomcat.sh stop. Also, the 8007 port is blocked by a firewall so it can't receive it from afar (and wouldn't react to a non-localhost stop command anyway...). Attila. - Original Message - From: [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Monday, July 15, 2002 5:32 PM Subject: Re: What can cause a clean Tomcat shutdown? I think I spoke a little too quicky earlier. Sorry. I believe System.exit() doesn't unload the web applications. Presently I can't think of any other way for a clean Tomcat shutdown. RS [EMAIL PROTECTED] on 07/15/2002 09:38:54 AM Please respond to Tomcat Users List [EMAIL PROTECTED] To:Tomcat Users List [EMAIL PROTECTED] cc: Subject:Re: What can cause a clean Tomcat shutdown? What about System.exit() in a servlet? RS Attila Szegedi [EMAIL PROTECTED] on 07/15/2002 08:51:20 AM Please respond to Tomcat Users List [EMAIL PROTECTED] To:Tomcat Users List [EMAIL PROTECTED] cc: Subject:What can cause a clean Tomcat shutdown? Guys, I'm asking this question again in hope someone notices this time: Except for the stop command sent to the Ajp12 connector, is there another event that will cause a Tomcat 3.3.1 to shut down cleanly? We experience sporadic spontaneous clean shutdowns of Tomcat 3.3.1 and have no idea what causes them. We know these are normal shutdowns since the servlet log shows the contexts are being unloaded and servlets' destroy() methods are being called - just as if someone has issued a tomcat.sh stop (before you ask: nobody does). Any clues appreciated. Cheers, Attila. -- Attila Szegedi home: http://www.szegedi.org -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Cobranding - Share Controller, Split View
Is there any support for this in TC 4.0.4? We can't upgrade to 4.1 until it is officially released. Is there some way to get a handle on the ServletContext representing ROOT? Then I can easily load the params I need. How about ServletContext.getContext(/) -I tried this in my init() method, but it only returns null: public void init(ServletConfig config) throws ServletException { super.init(config); //get this servlet's context and location ServletContext application = config.getServletContext(); ServletContext root= application.getContext(/); //the rest... } The api docs for getContext() say: In a security conscious environment, the servlet container may return null for a given URL. How can I know if I am hitting a security constraint? If that is the problem, is there a way to bypass the security to allow access to the ROOT context, but only from this one app? -August --- Craig R. McClanahan [EMAIL PROTECTED] wrote: On Sun, 14 Jul 2002, August Detlefsen wrote: Date: Sun, 14 Jul 2002 23:15:53 -0700 (PDT) From: August Detlefsen [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED], [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Subject: Cobranding - Share Controller, Split View I am currently developing several cobranded sites that share the same functionality. I want to be able to share the same set of servlets across multiple cobrands. I know I can treat the servlets as a separate webapp and deploy them to each separate host, but if I do this, will they be able to access the different configuration ( context-param and JNDI resources ) specified in the each ROOT context's web.xml? One way to do this in Tomcat 4.1.x is to take advantage of the ResourceLink element. Basically, you define the resources you want to share once in the GlobalNamingResources section of server.xml, and then embed a ResourceLink for each resource in the Context element for the various webapps. From the point of view of the application, it just looks like a normal application resource -- the app doesn't know that it is actually getting resolved to the underlying shared resource by a link. This is very handy when you use the global resources to establish all the default behavior, then override just the resources a particular app needs to customize that app. The app itself thinks of all resources as being local, so it doesn't need to be modified to look two different places. -August Craig -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] __ Do You Yahoo!? Yahoo! Autos - Get free new car price quotes http://autos.yahoo.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: mod_jk for Linux (Tomcat 4.0.4/Apache 1.3.26)
Where do I find mod_jk.so (Linux) along with the configuration files (workers.properties, mod_jk.conf etc.) for Tomcat 4.0.4 for use with Apache 1.3.26? good address http://www.galatea.com/flasguides -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Installing Tomcat 4.0.4 on Red Hat 7.3 with RPM packages
LOL - I use it fine - no problems. Of course, I'm using the LE version - I don't think it would make a difference though. I'm sorry I didn't see either of your postings before now. To get the webapps you need the webapps RPM :-P It's right there in the same directory as the other RPMs. Go look again ;-) If you don't find it, post back here and I'll email it to you. How is that? Regards, Eddie Jakarta Tomcat Newsgroup (@Basebeans.com) wrote: Jakarta Tomcat Newsgroup (@Basebeans.com) wrote: Subject: Installing Tomcat 4.0.4 on Red Hat 7.3 with RPM packages From: Matt Raible [EMAIL PROTECTED] === I downloaded tomcat4-4.0.4-full.2jpp.noarch.rpm from http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4.0.4/rpms/ And I've installed it and can successfully start it. However, when I got to view a page (basically, the ROOT context), I get the following error: Apache Tomcat/4.0.4 - HTTP Status 500 - No Context configured to process this request -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: mod_jk for Linux (Tomcat 4.0.4/Apache 1.3.26)
http://www.galatea.com/flashguides/index Tom Schaffernoth - Software Engineer - [EMAIL PROTECTED] ePocrates, Inc. - http://www.epocrates.com - The handheld network for physicians. 120 Industrial Avenue, San Carlos, CA 94070 Phone:650-232-4847 Cell:650-704-5274 Reception:650-592-7900 Fax:650-592-6995 _ . . '\ .. | O/ .. | \_\ . . | | | . .. .| / | .. . . | / .| Greatest Sport known to mankind...GOLF! ....o | - -Original Message- From: Mario Henley Becerril Geldis [mailto:[EMAIL PROTECTED]] Sent: Monday, July 15, 2002 1:51 PM To: Tomcat Users List Subject: Re: mod_jk for Linux (Tomcat 4.0.4/Apache 1.3.26) Where do I find mod_jk.so (Linux) along with the configuration files (workers.properties, mod_jk.conf etc.) for Tomcat 4.0.4 for use with Apache 1.3.26? good address http://www.galatea.com/flasguides -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Cobranding - Share Controller, Split View
This will work, but then I'd have to add a different servlet definition for each cobrand (and code the views with different references as well?). There must be a simpler way..? --- Henner Zeller [EMAIL PROTECTED] wrote: Hi, I know I can treat the servlets as a separate webapp and deploy them to each separate host, but if I do this, will they be able to access the different configuration ( context-param and JNDI resources ) specified in the each ROOT context's web.xml? What about having the same servlet referenced more than once in the same web.xml with different init-params ? Consider you have Servlet com.codemagi.FooServlet, then you could do servlet servlet-name com.gargelmarf.FooServlet /servlet-name servlet-class com.codemagi.FooServlet /servlet-class init-param param-namebrandType/param-name param-value1/param-value /init-param {...} /servlet servlet servlet-name com.foobaz.FooServlet /servlet-name servlet-class com.codemagi.FooServlet /servlet-class init-param param-namebrandType/param-name param-value2/param-value /init-param {...} /servlet -- All these servlets can be accessed from the same context, but have different names. The servlet com.codemagi.FooServlet reads the init-param to determine the brand. If you access: /mycontext/servlet/com.gargelmarf.FooServlet /mycontext/servlet/com.foobaz.FooServlet all that is called are two different instances of com.codemagi.FooServlet, sharing the same context but with different init-params. Probably this is the easiest way to do it. ciao, -hen -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] __ Do You Yahoo!? Yahoo! Autos - Get free new car price quotes http://autos.yahoo.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: mod_jk for Linux (Tomcat 4.0.4/Apache 1.3.26)
That is a good site! Thanks for posting it! :-) Schaffernoth, Thomas wrote: http://www.galatea.com/flashguides/index -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
tomcat 4.0 and IIS - troubleshoot configuration
Does anyone have any suggestions as to what to look for to determine why the tomcat 4.0 installation is not working with IIS 5.0? They work fine separately. Thanks, Diana -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
tomcat 4.0.2 iPlanet Web Server 4.1 sp9
Hello, I t seems like I am not the only one with this problem but I did not find any solution. I try to get iPlanet WebServer 4.1 and Tomcat 4.0.2 connected throught nsapi_redirector.so. Those applications runs on Red Hat Linux 7.2 on the same machine. I have compiled a new nsapi_redirector.so using th jakarta-tomcat-connector sources and I have made all the configurations in obj.conf, workers.properties ( which actualy used to run on apache before). I have started iPlanet and it says that everything is ok. Even in the nsapi.log, everything seems ok. When I try the URL http://localhost/examples, iPlanet Web Server says that the requested object does not exists on this server. There is no message in the catalina.out log file. My conclusion is that iPlanet does not redirect the URL to Tomcat. Does somebody has ever tried this configuration ?? or does somebody could tell me if this configuration is possible ?? Thanks for any idea or information. Thierry Boucheny -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Failed JDBC connection hangs Tomcat
Sorry it's been a week since you sent this message... Too much traffic here for me to keep up. This problem is the only reason I'm subscribed to this list at all. I normally only follow -dev (and if I could point to a specific problem in Tomcat I'd ask there instead). I have this problem with all JDBC accesses from Tomcat. At first I was using a MySQL database call on every page, and found that if I accessed a second MySQL server which became unavailable, every call to the first one would be held up until it timed out, even in other contexts. Then I discovered that we had the same problem when accessing a MS-SQL server. If the MS-SQL server was unavailable, every other page on the site (each of them containing the call to MySQL) would wait until the MS-SQL connection timed out. Finally, we incorporated an Oracle connection with the same results. Any JDBC call to a database which is unavailable holds up all other connections on the servlet engine. This is an embarrassing threading issue. Although we asked for help on this list (and received some well-thought-out responses from Bill Barker) we were unable to resolve the problem. Our current hack for this is: 1) DriverManager.setLoginTimeout(CONNECTION_TIMEOUT); (The default timeout is extraordinarily long and for us a few seconds will do for any one of the databases) 2) A connection wrapper, so that instead of calling DriverManager.getConnection(connectionURL,ID,Pass) we call DBConnWrapper.getConnection(connectionURL,ID,Pass) and the wrapper remembers when a connection has failed and on each request for a connection does if(!databases.containsKey(DB) || (new Date()).getTime() - ((Date)(databases.get(DB))).getTime() RETRY_INTERVAL) If you come up with a better answer, let me know. Of course, it's possible that you have a different problem than we do, but it sounds similar. Paul Unix System Admin/Webmaster Seattle Public Schools For Reference: On Monday, July 8, 2002, at 11:05 AM, Bill D wrote: Let me first set up my situation. On my server, I have two webapps running, webapp A and webapp B. Webapp A uses JDBC Thin driver to contact an Oracle database at remote location 1. Webapp B uses JDBC Thin driver to contact an Oracle database at remote location 2. If the internet connection at remote location 1 goes down, the attempt to connect to that database has the expected result of a connection to that IP in the SYN_SENT state in the netstat output on the server. While this connection is in the SYN_SENT state, any requests to webapp B that need to call the other database at location 2 which is still up and running are put on hold. Visitors to that site are left staring at a blank screen until the first connection from webapp A to location 1 times out. Seeing as how these are 2 seperate webapps connecting to 2 seperate remote locations, I did not expect the behavior to occur in a fashion where one will block the other. The behavior I expected was that they would operate independantly of each other, and webapp B would continue to work at a normal pace no matter what is occurring with webapp A. Am I looking at this wrong? Any help would be greatly appreciated. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Document.importNode not working-works fine in modified JSDK2.1
Hi, APOLOGIES Apologies if this appears in MIME (I hope not), I am using the web version of MS Outlook, have no access to the full client, and thus have no control over the options. SUMMARY I've got a bit of a problem with Jakarta Tomcat 3.2.1/3.3.1 I am running a small XML application that takes the getDocumentElement() of a document class and appends it onto another class. To do this, I use the importNode() function. When I test it on my home server, which is a modified version of the JSDK2.1 server (modified in the sense that I have randomly added .jar files as needed), the application works. When I test it on Tomcat 3.2.1/3.3.1, it doesn't. DETAIL The code in question is as follows: Document temp=null; if (result==null) temp=builder.parse(new InputSource(new StringReader(resultNo records/result))); else temp=builder.parse(new InputSource(new StringReader(result))); Node temp3=temp.getDocumentElement(); Node temp4=temp2.importNode(temp3,true); root2.appendChild(temp4); return temp2; The code is sloppy, because I've been trying to debug it, so I tried various permutations of the same code. This was the last state of the code. The code bombs on Node temp4=temp2.importNode(temp3,true); it reports the error message: java.lang.NoSuchMethodError at sf_maincontrol.setupXMLSearchEngine(sf_maincontrol.java:109) at sf_maincontrol.run(sf_maincontrol.java:57) at sf.searchme(sf.java:68) at sf.doPost(sf.java:16) ... This is odd, because as can be seen on the earlier lines, it is running various other methods of the document class just fine. Originally, I thought it was because I was using an old version of Tomcat (3.2.1), so I switched to Tomcat 4.0. Tomcat 4.0 was so completely different (and I couldn't get it to install), so I switched to 3.3.1, which worked. All of my own special jars are in the web-inf/lib directory, etc. etc. I just can't understand why it isn't running importNode, but is running all the other methods of the Document class. Thank you Cecil Chua
Re: error message: 'user tomcat4 does not exist'
thanks to both of your replies, I undid my original modification and did the following: Edited the conf file using: vi etc/tomcat4/conf/tomcat4.conf Change the user section of this file from: TOMCAT_USER=tomcat4 to TOMCAT_USER=myUser Then I entered (from root): chown -R myUser /var/tomcat4/ to give ownership of the tomcat4 files/directories to myUser Now when I am logged in as myUser, I can start/stop tomcat. Thanks again for your help and for rescuing me from my newbie-ness. S -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: tomcat 4.0 and IIS - troubleshoot configuration
Are you running Tomcat as a service? If so, can you connect directly to it through the http connector running on port 8080? -Original Message- From: Diana McLean [mailto:[EMAIL PROTECTED]] Sent: 15 July, 2002 3:06 PM To: [EMAIL PROTECTED] Subject: tomcat 4.0 and IIS - troubleshoot configuration Does anyone have any suggestions as to what to look for to determine why the tomcat 4.0 installation is not working with IIS 5.0? They work fine separately. Thanks, Diana -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
file resources outside the context docbase
Hello all, I have a simple question I could not find an answer to in the docs or message archives... I want to keep my static content tree out of my .war file, but I need to refer to it's contents to generate my pages. Since I am using apache/mod_jk, I figured I would simply set up an alias on the apache side to reference this static directory. On the java side, I'd like to set up a resource in my server.xml file that refers to a directory on the filesystem outside of my docbase. I cannot find the syntax to make this happen nor any examples showing this. I imagine that this is a fairly common and easy task and am surprised not find examples of this in the documention. Maybe I'm barking up the wrong tree. Any help would be appreciated. Thanks! Chad
Coyote, JK and JK2
Hi All, How does JK2 differ JK. If I want to set up tomcat4.0.3 against apache1.3.26 which one should I be using? How are coyote connectors different from the JK connectors ? Can somebody explain? Also I see that none of the release version of JK connectors are available at http://jakarta.apache.org/builds/jakarta-tomcat-connectors/. Is there someplace else I should look for ? or is the only option is to build them from source? For tomcat4.0.3 atleast the win32 and solaris8 JK binaries were available. I dont find them for tomcat4.0.4 , am I missing something here? Any help will be greatly appreciated! Thanx in advance, Ganesh -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]