more problem about emails using servlets
java Email API require to give the address of smtp server, now which smtp server i have to write. Do I have to give the address of my ISP's server, or yahoo or hotmail server or create my own exchange server? _ Tired of spam? Get advanced junk mail protection with MSN 8. http://join.msn.com/?page=features/junkmail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: more problem about emails using servlets
You should write the mail server you use to send email. It can be either your own one, or your ISP's SMTP server. - Original Message - From: bilal sulehri To: [EMAIL PROTECTED] Sent: Friday, June 13, 2003 8:59 AM Subject: more problem about emails using servlets java Email API require to give the address of smtp server, now which smtp server i have to write. Do I have to give the address of my ISP's server, or yahoo or hotmail server or create my own exchange server? _ Tired of spam? Get advanced junk mail protection with MSN 8. http://join.msn.com/?page=features/junkmail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat, Apache, and SSL
You should be taking a different approach. Using mod_jk will handle the secure problem better. However, I believe that 4.1.25 will work with your config. Eric Northam [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] What is the appropriate way to setup Apache to handle SSL and act as a proxy to Tomcat? The Apache - Tomcat connection does not have to be over SSL but I would like to use transport-guaranteeCONFIDENTIAL/transport-guarantee as a user data constraint in Tomcat so that certain requests are redirected to an SSL connection. I assumed that I could use two proxies in Apache going to different ports on Tomcat. I tried to set this up with the following two Coyote connectors: Connector className=org.apache.coyote.tomcat4.CoyoteConnector port=8081 redirectPort=8081 proxyName=myproxy.com proxyPort=80/ Connector className=org.apache.coyote.tomcat4.CoyoteConnector port=8082 scheme=https secure=true proxyName=myproxy.com proxyPort=8081/ Where apache is running on on myproxy.com with http on port 80 and https on port 8081. Even if I access myproxy.com:8081 and go to a secure page, Tomcat attempts to redirect. Is it possible to set up Tomcat and Apache to work in this manner or should I be taking a different approach? Eric DISCLAIMER: The information contained in this e-mail is, unless otherwise indicated, confidential and is intended solely for the use of the named addressee. Access, copying or re-use of the e-mail or any information contained therein by any other person is not authorized. If you are not the intended recipient please notify us immediately by returning the e-mail to the originator. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: AJP13 Connector reliability
In TC 4, it is strictly alpha quality. The current development is going into TC 5. However Filip is a regular here (it seems), and he's the one with all the answers ;-). Jeremy Nix [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] What about clustering as mentioned in this article: http://www.theserverside.com/resources/article.jsp?l=Tomcat Does anybody have any comments on its reliability in server-crash scenarios? _ Jeremy Nix Senior Application Developer Southwest Financial Ltd. [EMAIL PROTECTED] (513) 621-6699 ext 1158 -Original Message- From: Bill Barker [mailto:[EMAIL PROTECTED] Sent: Thursday, June 12, 2003 12:53 AM To: [EMAIL PROTECTED] Subject: Re: AJP13 Connector reliability Using the latest mod_jk, then fail-over should work fine. However, the session data will be lost. TC 5.x has support for session fail-over, but not lower versions. Jeremy Nix [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Does anybody out there have a good amount of experience with load-balanced (session-shared) environment to tell me if server A goes down (via server crash), then server B will continue to handle requests AND will be up-to-date as far as user's sessions? _ Jeremy Nix Senior Application Developer Southwest Financial Ltd. [EMAIL PROTECTED] (513) 621-6699 ext 1158 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Mapping images in web.xml
I'm not really sure what you are trying to do, but it sounds like: servlet-mapping servlet-nameMyDefaultServlet/servlet-name url-pattern//url-pattern /servlet-mapping servlet-mapping servlet-namedefault/servlet-name url-pattern*.gif/url-pattern /servlet-mapping servlet-mapping servlet-namedefault/servlet-name url-pattern*.jpg/url-pattern /servlet-mapping would work. Another suggestion (that I posted awhile back on the list) is code in your default-servlet something like: ServletContext cntx = getServletContext(); URL resource = cntx.getResource(request.getPathInfo()); if(resource != null) { RequestDispatcher rd = cntx.getNamedDispatcher(default); rd.forward(request, response); return; } // Your code here. Donie Kelly [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi all I've mapped my default servlet in server.xml as / so all requests are mapped to that servlet. Is there any standard solution to getting the jsp and images to work under this situation? At the moment they are all getting routed to the default servlet. If I make the mapping /images in server .xml I can make the images load but I also have to map each individual jsp page to the jsp page. Eg: servlet servlet-nameindex.jsp/servlet-name jsp-file/onm/index.jsp/jsp-file /servlet Question: is there any way to get all this to work without all these mappings? Regards Donie ** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the sender. This footnote also confirms that this email message has been swept by MIMEsweeper for the presence of computer viruses. ** -- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat 4.1 with clientAuth and CRL ?
This would be handled by JSSE. Look at the JSSE docs on java.sun.com. Zerell.Mischa [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi, in which way do i have to configure Tomcat, that the installation uses Client-Authentication and checks in a Certificate Revocation List (CRL) whether the Client Cert is ok or not? Is there allready something implemented like OCSP-Requests? I can´t find anything in the documentation. Thanks Mischa Zerell - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
how to autogenerate mod_jk.conf w/ Tomcat 5?
Can anyone help with configuring Tomcat 5.x (as comes with Java WSDP) to integrate with Apache 2? As a longtime user of Tomcat 3.x, I've come to appreciate the auto-generation of mod_jk.conf, a feature that seems to be missing in Tomcat 5. Or is there a better way to have my webapps automatically integrated with Apache? I found a few guides on the web that discuss how to add Listeners to server.xml, but the class (org.apache.ajp.tomcat4.config.ApacheConfig) does not seem to exist in Tomcat 5. I plowed through the .jar files hoping to find its modern analog, but to no avail. Other particulars of my environment: - apache 2.0.40 - JDSK 1.4.2-beta - RedHat 9 Thanks in advance. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: AJP 1.3 connector apache 1.3.x
For any TC from 3.3 up, you can currently use any Connector with any mod_jk(2). Leo Stone [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I am using apache 1.3.26 and tomcat 4.1.24, is it better to use mod_jk than jk2? If so, then I can only use the AJP 1.3 connector instead of the default Coyote/JK2 connector in the server.xml? Am I missing something? Thanks, L S - Do you Yahoo!? Free online calendar with sync to Outlook(TM). - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Login timeout
In your web.xml file change to: session-config session-timeout40/session-timout /session-config Reis, Tom [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Is there a way to change the login timeout for Tomcat 4.03. I think it is set for 20 min. and I want to change it for a 40 min. Thanks. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
NoClassDefFoundError: org/xml/sax/InputSource
Hello, While starting Tomcat 4.1 on Win2000 i got this error: java.lang.NoClassDefFoundError: org/xml/sax/InputSource at java.lang.Class.newInstance0(Native Method) at java.lang.Class.newInstance(Class.java:237) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:179) Exception in thread main Any advice -- anyone ? Regards, Sohail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Logger error
Hello, This is what i've got: JDK 1.4 and Tomcat 4.1 when starting tomcat i get this error: java.lang.NoSuchMethodError: java.util.logging.Logger.logp(Ljava/util/logging/Level;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V at org.apache.commons.logging.impl.Jdk14Logger.log(Jdk14Logger.java:126) at org.apache.commons.logging.impl.Jdk14Logger.info(Jdk14Logger.java:192) at org.apache.commons.modeler.Registry.loadRegistry(Registry.java:264) at org.apache.catalina.mbeans.MBeanUtils.createRegistry(MBeanUtils.java:1624) at org.apache.catalina.mbeans.MBeanUtils.clinit(MBeanUtils.java:161) at org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.clinit(GlobalResourcesLifecycleListener.java:115) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:33) at sun.reflect.InflatableConstructorAccessorImpl.newInstance(InflatableConstructorAccessorImpl.java:38) at java.lang.reflect.Constructor.newInstance(Constructor.java:273) at java.lang.Class.newInstance0(Class.java:290) at java.lang.Class.newInstance(Class.java:249) at org.apache.commons.digester.ObjectCreateRule.begin(ObjectCreateRule.java:253) at org.apache.commons.digester.Digester.startElement(Digester.java:1237) at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1452) at org.apache.crimson.parser.Parser2.content(Parser2.java:1717) at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1469) at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:500) at org.apache.crimson.parser.Parser2.parse(Parser2.java:305) at org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:433) at org.apache.commons.digester.Digester.parse(Digester.java:1495) at org.apache.catalina.startup.Catalina.start(Catalina.java:449) at org.apache.catalina.startup.Catalina.execute(Catalina.java:400) at org.apache.catalina.startup.Catalina.process(Catalina.java:180) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:30) at sun.reflect.InflatableMethodAccessorImpl.invoke(InflatableMethodAccessorImpl.java:48) at java.lang.reflect.Method.invoke(Method.java:306) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203) is my jdk at fault or tomcat\server\lib\common-logging.jar second thing does tomcat 4.1 work with jdk 1.3, if yes do i have to install a patch or something in my jdk? Regards, Sohail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Best practice development directory layout for deploying exploded war
Hello all, My company is contemplating the idea of deploying servlet applications on Tomcat in production. (woohoo!) I am hoping that some of you may suggest some best practices for laying out your development directory structure. I have my directory structure layed out like an expanded war file. If I point tomcat to this directory for expanded deployment, it makes it easy to edit/source control jsp files. It also makes copying/updating/deleting jar/lib files a pain. Do people set up a empty classes directory under the web-inf to source control their properties files or is it better to put them in a separate directory and copy them there? Is the best practice to do it this way or to copy your jsp/classes/libs to another exploded directory all together? Best Regards, Joshua This communication, including attachments, is for the exclusive use of addressee and may contain proprietary, confidential or privileged information. If you are not the intended recipient, any use, copying, disclosure, dissemination or distribution is strictly prohibited. If you are not the intended recipient, please notify the sender immediately by return email and delete this communication and destroy all copies. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Best practice development directory layout for deploying exploded war
Yes, this is a question that confuses new users. Plus what should be the deployment practice if one is using tomcat with apache? Muhammad Sohail -Original Message- From: White, Joshua A (HTSC, CASD) [mailto:[EMAIL PROTECTED] Sent: Friday, June 13, 2003 3:23 PM To: '[EMAIL PROTECTED]' Subject: Best practice development directory layout for deploying exploded war Hello all, My company is contemplating the idea of deploying servlet applications on Tomcat in production. (woohoo!) I am hoping that some of you may suggest some best practices for laying out your development directory structure. I have my directory structure layed out like an expanded war file. If I point tomcat to this directory for expanded deployment, it makes it easy to edit/source control jsp files. It also makes copying/updating/deleting jar/lib files a pain. Do people set up a empty classes directory under the web-inf to source control their properties files or is it better to put them in a separate directory and copy them there? Is the best practice to do it this way or to copy your jsp/classes/libs to another exploded directory all together? Best Regards, Joshua This communication, including attachments, is for the exclusive use of addressee and may contain proprietary, confidential or privileged information. If you are not the intended recipient, any use, copying, disclosure, dissemination or distribution is strictly prohibited. If you are not the intended recipient, please notify the sender immediately by return email and delete this communication and destroy all copies. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Best practice development directory layout for deploying exploded war
Howdy, My advice would be to follow the guide here: http://jakarta.apache.org/tomcat/tomcat-4.1-doc/appdev/index.html Don't use the space under tomcat's webapps directories as a live development space. Only deploy built applications there. That means develop them elsewhere on your file system, in a version-controlled tree. Have an ant script that builds your app and deploys it to the tomcat installation. Yoav Shapira --- White, Joshua A (HTSC, CASD) [EMAIL PROTECTED] wrote: Hello all, My company is contemplating the idea of deploying servlet applications on Tomcat in production. (woohoo!) I am hoping that some of you may suggest some best practices for laying out your development directory structure. I have my directory structure layed out like an expanded war file. If I point tomcat to this directory for expanded deployment, it makes it easy to edit/source control jsp files. It also makes copying/updating/deleting jar/lib files a pain. Do people set up a empty classes directory under the web-inf to source control their properties files or is it better to put them in a separate directory and copy them there? Is the best practice to do it this way or to copy your jsp/classes/libs to another exploded directory all together? Best Regards, Joshua This communication, including attachments, is for the exclusive use of addressee and may contain proprietary, confidential or privileged information. If you are not the intended recipient, any use, copying, disclosure, dissemination or distribution is strictly prohibited. If you are not the intended recipient, please notify the sender immediately by return email and delete this communication and destroy all copies. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] = Yoav Shapira [EMAIL PROTECTED] __ Do you Yahoo!? Yahoo! Calendar - Free online calendar with sync to Outlook(TM). http://calendar.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
common-logging.jar
could someone mail me common-logging.jar Sohail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
novice problem
Im useing the manager application in tomcat 4.1. But I keep getting this message: Message: FAIL - Install Upload Failed, Exception: Processing of multipart/form-data request failed. /opt/tomcat/work/Standalone/localhost/manager/upload_0003.tmp (Permission denied) What Im I doing wrong??? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: tomcat4 shutdown problem
AFAIK, it is a timing issue, only on Solaris. The port binding is released before the shutdown is completely finished, which throws the error. I'm pretty certain it can be ignored until it is fixed. John On Thu, 12 Jun 2003 07:21:08 -0400, Tim Funk [EMAIL PROTECTED] wrote: Looks like this bug report. http://nagoya.apache.org/bugzilla/show_bug.cgi?id=20663 Does anyone know what this is? -Tim unplug wrote: Hi all, I am using tomcat4.1.24 but there is an exception during shutdown. When I issue catalina.sh stop, below exception shown in the catalina.out. It seems a socket connection problem. I am using the default server.xml without any modification. Does anyone know what wrong with it? How to solve it? Does it affect the performance with that exception exist? Thanks, unplug Stopping service Tomcat-Standalone Jun 12, 2003 11:05:40 AM org.apache.tomcat.util.net.PoolTcpEndpoint closeServerS ocket SEVERE: Caught exception trying to unlock accept. java.net.ConnectException: Connection refused at java.net.PlainSocketImpl.socketConnect(Native Method) at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:305) at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:171) at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:158) at java.net.Socket.connect(Socket.java:434) at java.net.Socket.connect(Socket.java:384) at java.net.Socket.init(Socket.java:291) at java.net.Socket.init(Socket.java:119) at org.apache.tomcat.util.net.PoolTcpEndpoint.closeServerSocket(PoolTcpE ndpoint.java:326) at org.apache.tomcat.util.net.PoolTcpEndpoint.acceptSocket(PoolTcpEndpoi nt.java:397) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java :529) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadP ool.java:619) at java.lang.Thread.run(Thread.java:536) Jun 12, 2003 11:05:40 AM org.apache.tomcat.util.net.PoolTcpEndpoint closeServerS ocket SEVERE: Caught exception trying to close socket. java.lang.NullPointerException at org.apache.tomcat.util.net.PoolTcpEndpoint.closeServerSocket(PoolTcpE ndpoint.java:338) at org.apache.tomcat.util.net.PoolTcpEndpoint.acceptSocket(PoolTcpEndpoi nt.java:397) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java :529) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadP ool.java:619) at java.lang.Thread.run(Thread.java:536) Jun 12, 2003 11:05:40 AM org.apache.tomcat.util.net.PoolTcpEndpoint acceptSocket WARNING: Reinitializing ServerSocket ~ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: mod_jk2 compatible with apache 1.3?
Because the docs are not perfect. Patches are welcome. John On Thu, 12 Jun 2003 11:13:41 +0200, Emmanuel.Leguy [EMAIL PROTECTED] wrote: Michele Neylon :: Blacknight Solutions wrote: AFAIK, no. It is 'compatible' but only if you make your life really complicated as it relies on the APR libraries which are native to Apache 2 not Apache 1.3* For Apache 1.3* you should use mod_jk 1 series Thank you very much for this clear answer. But why it does not appear clearly in the main doc? Manu. -- Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: connecting Tomcat to apache
Give me access to a OSX box and I'll be happy to write a HOWTO for it. ;) John On Thu, 12 Jun 2003 15:58:33 +0200, Martin Jacobson [EMAIL PROTECTED] wrote: Werner van Mook wrote: Hi All, Consider me stupid. I have a Powerbook with Mac OSX 10.2.6 It runs apache out of the box. Now I want to connect tomcat with it. Could somebody point out to me the right way of doing this? I can't consider you stupid - I run Apache + Tomcat on my Powerbook! However, you will have to do some work: assuming you want to use mod_jk, then you'll need to install compile Apache2, then you can pick up a binary for mod_jk.so from jakarta.apache.org. For more details, go to John Turner's Howto site (www.johnturner.com ?) and 'pretend' you're running Linux. I can't remember the exact options I gave to 'configure' when I built Apache2, except that I had to use the 'pre-fork' option. HTH Martin - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Directory Listing in Tomcat 4.1.24
Yes. John On Thu, 12 Jun 2003 09:10:19 -0400, Angus Mezick [EMAIL PROTECTED] wrote: Well, if he got REALLY ambitious he could go edit tomcat itself couldn't he? -Original Message- From: Tim Funk [mailto:[EMAIL PROTECTED] Sent: Thursday, June 12, 2003 7:23 AM To: Tomcat Users List Subject: Re: Directory Listing in Tomcat 4.1.24 There is no way to change directory listing layout. -Tim Philipp Gasser wrote: Hi all, I use the tomcat 4.1.24. Is there a way to change the directorylayout? _Instead of showing GMT based timestamps for files, I would like to display them in my own timestamp format? _I would like to change the directory and file order (the youngest on top of the list, etc)? thanks in advance Philipp - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Ajp13Connector vs. Coyote/JK2 connector
Ajp13Connector should work fine for you. John On Thu, 12 Jun 2003 10:42:33 -0400, Yueshang (Wendy) Zhang [EMAIL PROTECTED] wrote: I searched the archive and found that mod_jk is better than mod_jk2 for apache 1.3.26. My question is, if mod_jk is used in this case, can we still use the Ajp13Connector in stead of Coyote/JK2 connector? (although the Ajp13Connector is deprecated in TC 4.1.x) I am using apache to do the authentication, need to use the 'tomcatAuthentication' attribute in the Ajp13Connector, but can't find a similar attribute in Coyote/JK2 connector. TIA Wendy -- Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Apache and Tomcat on different machines using mod_jk (ajp13)
Change the .host property in workers.properties to be an IP address, not a FQDN. Also, you are using port 8011, make sure your Connector on machine B is listening to 8011 and not the default 8009. John On 12 Jun 2003 10:51:05 -0400, Amit Kumar [EMAIL PROTECTED] wrote: Hi I am hoping to get some pointers and help. I am trying to setup connection between apache on machine A to tomcat on machine B. Here is the setup Machine A (Apache http) Machine B (tomcat ajp13 listening on port number 8011) Case I I have been able to install and use mod_jk.so to connect to tomcat on the same machine (Machine A), and there is no problem. Case II How ever i am not able to connect to tomcat on Machine B ( i understand it is possible ? ). The workers.properties for this case on Machine A is worker.list = remote worker.remote.port=8011 worker.remote.host=machineB.com worker.remote.type=ajp13 The relevant entries in httpd.conf on Machine A are ##START LoadModule jk_module libexec/mod_jk.so AddModule mod_jk.c JkWorkersFile /usr/local/tomcat/conf/jk/workers.properties JkLogFile /usr/local/apache/logs/mod_jk.log JkLogLevel debug JkLogStampFormat [%a %b %d %H:%M:%S %Y] JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories JkRequestLogFormat %w %V %T JkMount /eada/* remote JkMount /eada/*.jsp remote ##END I have checked: On Machine B ajp13 is listening on 8011 (Connector is defined in server.xml) and that i can access http://machineB:8080/eada How ever i get 404 messages from apache (not from tomcat) when i try to access http://machineA/eada/index.jsp The mod_jk.log (machine A) does not show any error or info how ever in debug mode shows the following ( line 16 it says remote worker contact is machineB.com:8011). Line 46 it tries to match uri /eada/* how ever at this step if i understand correctly remote worker should kick in and communicate with machineB (is that right) ? 1 [Thu Jun 12 10:38:40 2003] [jk_uri_worker_map.c (172)]: Into jk_uri_worker_map_t::uri_worker_map_alloc 2 [Thu Jun 12 10:38:40 2003] [jk_uri_worker_map.c (375)]: Into jk_uri_worker_map_t::uri_worker_map_open 3 [Thu Jun 12 10:38:40 2003] [jk_uri_worker_map.c (396)]: jk_uri_worker_map_t::uri_worker_map_open, rule map size is 2 4 [Thu Jun 12 10:38:40 2003] [jk_uri_worker_map.c (321)]: Into jk_uri_worker_map_t::uri_worker_map_open, match rule /eada/=remote was added 5 [Thu Jun 12 10:38:40 2003] [jk_uri_worker_map.c (299)]: Into jk_uri_worker_map_t::uri_worker_map_open, suffix rule /eada/.jsp=remote was added 6 [Thu Jun 12 10:38:40 2003] [jk_uri_worker_map.c (408)]: Into jk_uri_worker_map_t::uri_worker_map_open, there are 2 rules 7 [Thu Jun 12 10:38:40 2003] [jk_uri_worker_map.c (422)]: jk_uri_worker_map_t::uri_worker_map_open, done 8 [Thu Jun 12 10:38:40 2003] [jk_worker.c (88)]: Into wc_open 9 [Thu Jun 12 10:38:40 2003] [jk_worker.c (222)]: Into build_worker_map, creating 1 workers 10 [Thu Jun 12 10:38:40 2003] [jk_worker.c (228)]: build_worker_map, creating worker remote 11 [Thu Jun 12 10:38:40 2003] [jk_worker.c (148)]: Into wc_create_worker 12 [Thu Jun 12 10:38:40 2003] [jk_worker.c (162)]: wc_create_worker, about to create instance remote of ajp13 13 [Thu Jun 12 10:38:40 2003] [jk_ajp13_worker.c (108)]: Into ajp13_worker_factory 14 [Thu Jun 12 10:38:40 2003] [jk_worker.c (171)]: wc_create_worker, about to validate and init remote 15 [Thu Jun 12 10:38:40 2003] [jk_ajp_common.c (1343)]: Into jk_worker_t::validate 16 [Thu Jun 12 10:38:40 2003] [jk_ajp_common.c (1364)]: In jk_worker_t::validate for worker remote contact is machineB.com:8011 17 [Thu Jun 12 10:38:40 2003] [jk_ajp_common.c (1397)]: Into jk_worker_t::init 18 [Thu Jun 12 10:38:40 2003] [jk_ajp_common.c (1421) ]: In jk_worker_t::init, setting socket timeout to 0 19 [Thu Jun 12 10:38:40 2003] [jk_worker.c (187)]: wc_create_worker, done 20 [Thu Jun 12 10:38:40 2003] [jk_worker.c (238)]: build_worker_map, removing old remote worker 21 [Thu Jun 12 10:38:40 2003] [jk_worker.c (250)]: build_worker_map, done 22 [Thu Jun 12 10:38:40 2003] [jk_worker.c (111)]: wc_open, done 1 23 [Thu Jun 12 10:38:40 2003] [jk_uri_worker_map.c (172)]: Into jk_uri_worker_map_t::uri_worker_map_alloc 24 [Thu Jun 12 10:38:40 2003] [jk_uri_worker_map.c (375)]: Into jk_uri_worker_map_t::uri_worker_map_open 25 [Thu Jun 12 10:38:40 2003] [jk_uri_worker_map.c (396)]: jk_uri_worker_map_t::uri_worker_map_open, rule map size is 2 26 [Thu Jun 12 10:38:40 2003] [jk_uri_worker_map.c (321)]: Into jk_uri_worker_map_t::uri_worker_map_open, match rule /eada/=remote was added 27 [Thu Jun 12 10:38:40 2003] [jk_uri_worker_map.c (299)]: Into jk_uri_worker_map_t::uri_worker_map_open, suffix rule /eada/.jsp=remote was added 28 [Thu Jun 12 10:38:40 2003] [jk_uri_worker_map.c (408)]: Into jk_uri_worker_map_t::uri_worker_map_open, there are 2 rules 29 [Thu Jun 12 10:38:40 2003] [jk_uri_worker_map.c (422)]: jk_uri_worker_map_t::uri_worker_map_open, done 30 [Thu Jun 12 10:38:40 2003] [jk_worker.c
_Not_ Port 25. Configuring Tomcat for sendmail
Hi, If this has come through 2ce now, please forgive. The 1st one I sent came back with the signup response. I'm hoping someone can help me out here pls. Using Tomcat 4.1.24, I'm trying to sendmail from a .jsp app. However my sendmail is configured to listen on a different port to 25. Is there any way, without having to rewrite code, to configure server.xml to contact sendmail on a port different to 25? I would've thought I could add the port nr. to the end of the host decl. in my mail.smtp.host resource-param, but it doesn't appear to like that. If I've missed a piece of documentation, please just point it out. MTiA K - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: more problem about emails using servlets
I just implemented an onlinestore. It emails confirmations to the clients. You can use any mail server other than HTTP-based (hotmail or yahoo). In your case, use your ISP's. If you use Tomcat's mail session, define it in your context xml Resource name=mail/Session auth=Container type=javax.mail.Session/ ResourceParams name=mail/Session parameter namemail.smtp.host/name valueyour.isp.smtp.host/value /parameter /ResourceParams -Original Message- From: Dominic Parry [mailto:[EMAIL PROTECTED] Sent: June 13, 2003 3:12 AM To: Tomcat Users List Subject: Re: more problem about emails using servlets You should write the mail server you use to send email. It can be either your own one, or your ISP's SMTP server. - Original Message - From: bilal sulehri To: [EMAIL PROTECTED] Sent: Friday, June 13, 2003 8:59 AM Subject: more problem about emails using servlets java Email API require to give the address of smtp server, now which smtp server i have to write. Do I have to give the address of my ISP's server, or yahoo or hotmail server or create my own exchange server? _ Tired of spam? Get advanced junk mail protection with MSN 8. http://join.msn.com/?page=features/junkmail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: _Not_ Port 25. Configuring Tomcat for sendmail
Howdy, Does specifying a mail.smtp.port work? Yoav Shapira Millennium ChemInformatics -Original Message- From: Kyle Lange [mailto:[EMAIL PROTECTED] Sent: Friday, June 13, 2003 8:50 AM To: [EMAIL PROTECTED] Subject: _Not_ Port 25. Configuring Tomcat for sendmail Hi, If this has come through 2ce now, please forgive. The 1st one I sent came back with the signup response. I'm hoping someone can help me out here pls. Using Tomcat 4.1.24, I'm trying to sendmail from a .jsp app. However my sendmail is configured to listen on a different port to 25. Is there any way, without having to rewrite code, to configure server.xml to contact sendmail on a port different to 25? I would've thought I could add the port nr. to the end of the host decl. in my mail.smtp.host resource-param, but it doesn't appear to like that. If I've missed a piece of documentation, please just point it out. MTiA K - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: common-logging.jar
Howdy, Why don't you go and download it like everyone else? ;) http://jakarta.apache.org/commons/logging.html Yoav Shapira Millennium ChemInformatics -Original Message- From: Sohail Muhammad [mailto:[EMAIL PROTECTED] Sent: Friday, June 13, 2003 7:52 AM To: Jakarta Mailing List (E-mail) Subject: common-logging.jar could someone mail me common-logging.jar Sohail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: NoClassDefFoundError: org/xml/sax/InputSource
Howdy, You have mismatching versions of the XML (specifically SAX in this case) parsing APIs. What do you have in WEB-INF/lib? I suggest you search the archives of this list before posting questions. This question, as well as the one about the logger error, are asked frequently and you will find many answers in the archives. Yoav Shapira Millennium ChemInformatics -Original Message- From: Sohail Muhammad [mailto:[EMAIL PROTECTED] Sent: Friday, June 13, 2003 4:18 AM To: Jakarta Mailing List (E-mail) Subject: NoClassDefFoundError: org/xml/sax/InputSource Hello, While starting Tomcat 4.1 on Win2000 i got this error: java.lang.NoClassDefFoundError: org/xml/sax/InputSource at java.lang.Class.newInstance0(Native Method) at java.lang.Class.newInstance(Class.java:237) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:179) Exception in thread main Any advice -- anyone ? Regards, Sohail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: _Not_ Port 25. Configuring Tomcat for sendmail
Works like a charm. Thank you Yoav. Is that documented somewhere and I just plain missed it? K -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Friday, June 13, 2003 3:01 PM To: Tomcat Users List Subject: RE: _Not_ Port 25. Configuring Tomcat for sendmail Howdy, Does specifying a mail.smtp.port work? Yoav Shapira Millennium ChemInformatics -Original Message- From: Kyle Lange [mailto:[EMAIL PROTECTED] Sent: Friday, June 13, 2003 8:50 AM To: [EMAIL PROTECTED] Subject: _Not_ Port 25. Configuring Tomcat for sendmail Hi, If this has come through 2ce now, please forgive. The 1st one I sent came back with the signup response. I'm hoping someone can help me out here pls. Using Tomcat 4.1.24, I'm trying to sendmail from a .jsp app. However my sendmail is configured to listen on a different port to 25. Is there any way, without having to rewrite code, to configure server.xml to contact sendmail on a port different to 25? I would've thought I could add the port nr. to the end of the host decl. in my mail.smtp.host resource-param, but it doesn't appear to like that. If I've missed a piece of documentation, please just point it out. MTiA K - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Network access
We´ve already store all request and responses, but the problem is when we have a lot of request at same time ( something like 100 requests per second ). I´d like to improve the speed and make all resposes and requests has data to transfer. -- De: Angus Mezick[SMTP:[EMAIL PROTECTED] Responder:Tomcat Users List Enviada: quinta-feira, 12 de junho de 2003 18:08 Para: Tomcat Users List Assunto: RE: Network access Is local caching an option? Any chance that external machine can somehow serve the information directly? Perhaps using an IFRAME element? --Angus -Original Message- From: Edson Alves Pereira [mailto:[EMAIL PROTECTED] Sent: Thursday, June 12, 2003 4:57 PM To: 'Tomcat-User List' Subject: Network access Hello folks, i have an application that does many requests to an external machine, each request is a thread that send and receive text to process, my problem here is, some times there are so many requests and i fear this external machine can´t accept all requests or my application cannot get at same time high volume text through my network. Could anyone point the best way to send and receive high volume´s network information? Best regards, Edson - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: _Not_ Port 25. Configuring Tomcat for sendmail
Howdy, I'm probably opening a can of worms here... - It's not super clearly documented, but - If you know your JNDI, and - You look at this code: http://cvs.apache.org/viewcvs/jakarta-tomcat-4.0/catalina/src/share/org/ apache/naming/factory/MailSessionFactory.java?rev=1.2content-type=text/ vnd.viewcvs-markup - And you look at this JavaDoc: http://java.sun.com/products/javamail/1.3/docs/javadocs/com/sun/mail/smt p/package-summary.html It's pretty sad that I had the contents of the above two URLs in my head already without consulting them ;( Yoav Shapira Millennium ChemInformatics -Original Message- From: Kyle Lange [mailto:[EMAIL PROTECTED] Sent: Friday, June 13, 2003 9:05 AM To: 'Tomcat Users List' Subject: RE: _Not_ Port 25. Configuring Tomcat for sendmail Works like a charm. Thank you Yoav. Is that documented somewhere and I just plain missed it? K -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Friday, June 13, 2003 3:01 PM To: Tomcat Users List Subject: RE: _Not_ Port 25. Configuring Tomcat for sendmail Howdy, Does specifying a mail.smtp.port work? Yoav Shapira Millennium ChemInformatics -Original Message- From: Kyle Lange [mailto:[EMAIL PROTECTED] Sent: Friday, June 13, 2003 8:50 AM To: [EMAIL PROTECTED] Subject: _Not_ Port 25. Configuring Tomcat for sendmail Hi, If this has come through 2ce now, please forgive. The 1st one I sent came back with the signup response. I'm hoping someone can help me out here pls. Using Tomcat 4.1.24, I'm trying to sendmail from a .jsp app. However my sendmail is configured to listen on a different port to 25. Is there any way, without having to rewrite code, to configure server.xml to contact sendmail on a port different to 25? I would've thought I could add the port nr. to the end of the host decl. in my mail.smtp.host resource-param, but it doesn't appear to like that. If I've missed a piece of documentation, please just point it out. MTiA K - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: novice problem
Looks like a permissions issue on /opt/tomcat/work/Standalone/localhost/manager/, perhaps no write access? John On Fri, 13 Jun 2003 14:03:14 +0200, markymarc [EMAIL PROTECTED] wrote: Im useing the manager application in tomcat 4.1. But I keep getting this message: Message: FAIL - Install Upload Failed, Exception: Processing of multipart/form- data request failed. /opt/tomcat/work/Standalone/localhost/manager/upload_0003.tmp (Permission denied) What Im I doing wrong??? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat - Sleeps
Hello, May be you are holding the server console by selection some lines og logged event and once you press ctrl S than it releases. So if you wont hold the server console screen than server wont sleep ;) Manohar Kamath Vijay Pawar [EMAIL PROTECTED] wrote: Hi All, I am using jakarta-tomcat-4.1.18 on a windows 2000 professional system. Now whenever my jsp pages or servlets throw any expection usually while accessing a database etc, then tomcat goes in a kind of sleep mode. It is not being able to commit the response to the output stream and my browser goes in hang mode for a long time. Now, if i press Ctrl-S in the tomcat window, then all of a sudden it prints all the exceptions on the screen. Later on if i open any other page then it does not open and i have to keep on doing ctrl-S on the tomcat window to get tomcat to flush the pages. I have installed tomcat on 3 different machines running win2000 and have noticed the same problem in all. I any one has encountered such a problem and has found a solution then let me know. Thanks in advance, vijay - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Do you Yahoo!? Free online calendar with sync to Outlook(TM).
Re: Running Tomcat3 on port 80
How are you starting Tomcat? Are you starting Tomcat as root, or using a script? If you are using a script, does the script start Tomcat as another user, such as tomcat4? John On Thu, 12 Jun 2003 21:20:23 -0700, [EMAIL PROTECTED] wrote: I don't think that Apache is running, status of httpd is stopped. Is there another way to ensure this? The tomcat failure message is quite specific about permission: Exception: java.lang.reflect.InvocationTargetException java.lang.reflect.InvocationTargetException: org.apache.tomcat.core.TomcatExcept ion: Root cause - Permission denied:80 at org.apache.tomcat.modules.server.PoolTcpConnector.engineStart(Unknown Source) Regards, Terry Fuller [EMAIL PROTECTED] --- In [EMAIL PROTECTED], on 06/12/2003 at 08:33 PM, Bill Barker [EMAIL PROTECTED] said: The most likely reason it fails is that you already have Apache running on port 80. Only one application on the box can bind to port 80. You have to stop Apache first. After that, it is pretty much: sudo $TOMCAT_HOME/bin/startup.sh If you are running 3.3.1 stand-alone, you might want to look into using the CoyoteConnector (which is part of 3.3.2-dev). It perfoms much better than the Http10Connector in most cases. The best way is to grab the nightly for 3.3, and follow the directions at http://jakarta.apache.org/builds/jakarta-tomcat- connectors/coyote/release/v1 .0-rc2/ (The rc2 release is known to be broken for 3.3, so don't grab the jars from here). [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] What do I have to do to get Tomcat 3.3.1 to run with port 80? I modified server.xml to alter the port number, and it now fails with lack of permission on port 80. The Redhad doc for Apache says it must be started by root for this to work, but I start it as root and it still fails. A command line procedure would be best, and pointer to commands and doc is fine. Thanks! Regards, Terry Fuller [EMAIL PROTECTED] --- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Newbie: Apache Tomcat Configuration.
You shouldn't have to add anything to server.xml to get Apache working with Tomcat. There is a JK/JK2-compatible connector configured for port 8009 by default in server.xml, no changes are necessary. Complete HOWTO, step by step, for Win 2K Pro and XP Pro: http://www.johnturner.com/howto John On Thu, 12 Jun 2003 18:21:10 +0500, Sohail Muhammad [EMAIL PROTECTED] wrote: u see that's the problem. this is what i have in tomcat\conf web_22.dtd tld_11.dtd web_23.dtd tld_12.dtd catalina.policy tomcat-users.xml web.xml server.xml and this is whats in tomcat\server\lib warp.jar catalina.jar jaxp.jar jakarta-regexp-1.2.jar crimson.jar i think i forgot to mention that im on win2k platform. Regards, Muhammad Sohail Assistant Programmer Analyst SSD, UBL I.T T Division, Karachi Voice: 90332418,90332415-6 -Original Message- From: Kevin Passey [mailto:[EMAIL PROTECTED] Sent: Thursday, June 12, 2003 5:10 PM To: 'Tomcat Users List' Subject: RE: Newbie: Apache Tomcat Configuration. Muhammad You actually configure apache to call tomcat when ever it needs it - i.e tomcat runs in-process This configuration is done in your jk2 config file in the tomcat/conf directory and in your apache2/conf workers2.properties file. If you search on Google you will find lots of info on the subject - I have just configured the latest versions of apache,tomcat and mod_jk2.dll to run on a win2k machine - my next job is to get it running on rh7.2. Good luck. Regards Kevin -Original Message- From: Sohail Muhammad [mailto:[EMAIL PROTECTED] Sent: 12 June 2003 10:33 To: Tomcat Users List Subject: RE: Newbie: Apache Tomcat Configuration. Hello, i have added the following lines in my conf/server.xml file: Connector className=org.apache.ajp.tomcat4.Ajp13Connector port=8009 minProcessors=5 maxProcessors=75 acceptCount=10 debug=0/ when i start the tomcat server i get the ClassNotFoundException for org.apache.ajp.tomcat4.Ajp13Connector is there some file missing in my tomcat. i'm using tomcat 4.0 Regards, Muhammad Sohail Assistant Programmer Analyst SSD, UBL I.T T Division, Karachi Voice: 90332418,90332415-6 -Original Message- From: John Turner [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 11, 2003 8:37 PM To: Tomcat Users List Subject: Re: Newbie: Apache Tomcat Configuration. No, AJP is a protocol. John On Wed, 11 Jun 2003 10:32:53 -0400, Phillip Qin [EMAIL PROTECTED] wrote: Is there a connector called ajp14? -Original Message- From: Michele Neylon :: Blacknight Solutions [mailto:[EMAIL PROTECTED] Sent: June 11, 2003 5:24 AM To: [EMAIL PROTECTED] Subject: Re: Newbie: Apache Tomcat Configuration. Hello All, Newbie Question: I believe these questions have been answered before but i have not been able to grasp the procedure. 1) I want to use Tomcat 4.0 with Apache 2.0.43 . How do i integrate the two? If you look in the archive some links to tutorials were posted yesterday. General consensus is to use mod_jk either v1 or v2 2) After these are integrated what should i do to make the Apache webserver transfer requests for servlet and jsp execution to Tomcat and the other way around i.e. transfer http requests from Tomcat to Apache? See the links mentioned. Basically you would be using an ajp13 or ajp14 handler to pass the requests from one to the other. 3) Is it possible to adjust both Apache and Tomcat in such a way that whenever Apache is started Tomcat starts automatically and whenever Apache stops Tomcat also shutsdown? That would be nice. If anybody has a simple way of doing it please please share :-) -- Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
_Not_ Port 25. Configuring Tomcat for sendmail; SORRY 'bout the Rcpt.
It's set up by default and forgot to switch it off. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Ajp13Connector vs. Coyote/JK2 connector
On Thu, 12 Jun 2003 10:42:33 -0400, Yueshang (Wendy) Zhang [EMAIL PROTECTED] wrote: I searched the archive and found that mod_jk is better than mod_jk2 for apache 1.3.26. My question is, if mod_jk is used in this case, can we still use the Ajp13Connector in stead of Coyote/JK2 connector? (although the Ajp13Connector is deprecated in TC 4.1.x) I am using apache to do the authentication, need to use the 'tomcatAuthentication' attribute in the Ajp13Connector, but can't find a similar attribute in Coyote/JK2 connector. TIA Wendy Tongzi, The only difference, from my own tests, has been that with Ajp13Connector, you will not be able to use the Tomcat Web Administrator. Otherwise, they're the same. Regards, pascal chong - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: win2000 issue with tomcat4.1.24
I did the fresh installation of tomcat and java and I set the following as enviroment variables.. CATALINA_HOME=c:\Tomcat4.1 JAVA_HOME = c:\j2sdk-1_4_1_01 I have set the c:\j2sdk-1_4_1_01\bin in path. The above all I had before but I did it again in the new and fresh installation.. I am getting 503 error. HTTP Status 503 - Servlet jsp is currently unavailable type Status report message Servlet jsp is currently unavailable description The requested service (Servlet jsp is currently unavailable) is not currently available. Thanks - srini. -Original Message- From: Tam, Michael [mailto:[EMAIL PROTECTED] Sent: Thursday, June 12, 2003 2:11 PM To: 'Tomcat Users List' Subject: RE: win2000 issue with tomcat4.1.24 I would recommend you to uninstall the existing tomcat and re-install it again WITHOUT using the default path (i.e. try install it in C:\tomcat4.1.24 for example). For the variables(JAVA_HOME and CATALINA_HOME), you should set them as environment variables in your win2k not in your autoexec.bat (I'm not sure if it matters but I believe it is specified in the installation document or something). -Original Message- From: Srinivasu Gandu [mailto:[EMAIL PROTECTED] Sent: Thursday, June 12, 2003 10:27 AM To: 'Tomcat Users List' Subject: RE: win2000 issue with tomcat4.1.24 Yes I did install in Program Files\Apache Group\Tomcat4.1 But when I install in other directory I am getting HTTP Status 503 - Servlet jsp is currently unavailable. I hav't set the java home and catalina home for win98. 1) installed j2sdk-1_4_1_01-windows-i586.exe in win98 2) I just intall the jakarta-tomcat-4.1.24.exe in win98 and able to acces the http://localhost:8080 Same thing I did for the win2000 machine but it is giving this problem.. So then I added SET JAVA_HOME = C:\j2sdk-1_4_1_01 to autoexec.bat same problem.. I will try to add SET CATALINA_HOME = c:\Program Files\Apache Group\Tomcat4.1 but I can not delete the spaces between the program files right??? Thanks - srini. -Original Message- From: Tam, Michael [mailto:[EMAIL PROTECTED] Sent: Thursday, June 12, 2003 12:32 PM To: 'Tomcat Users List' Subject: RE: win2000 issue with tomcat4.1.24 Sorry I didn't follow this topic from the beginning but maybe you should post where EXACTLY you have tomcat and j2sdk installed and the EXACT values you have set for JAVA_HOME and CATALINA_HOME so we can see if anything went wrong of those settings. In addition, if you install tomcat under Program Files\Apache Group\Tomcat 4.1 path, you probably get into trouble with the spacing between those directory names. Cheers, Michael -Original Message- From: Srinivasu Gandu [mailto:[EMAIL PROTECTED] Sent: Thursday, June 12, 2003 6:43 AM To: 'Tomcat Users List' Subject: RE: win2000 issue with tomcat4.1.24 Yoav Shapira, Could you put me in right direction what is going wrong on this.. 1) I have a j2sdk-1_4_1_01\bin in my path 2) I have a JAVA_HOME as j2sdk-1_4_1_01 in my autoexcec.bat file. 3) I have done this The JVM specified in the registry doesn't seem to work for compiling JSPs. You can edit the registry and change the value of HKEY_LOCAL_MACHINE/SYSTEM/CurrentControlSet/Services/Apache Tomcat 4.1/Parameters/JVM Library and make it point to the jvm.dll in javainstallation\jre\bin\server\jvm.dll and that should take care of it. But still no luck same compiler error??? what needs to be done?? let us know if some body have success in this.. appreciate it. Thanks - Srini. -Original Message- From: Srinivasu Gandu [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 11, 2003 10:27 AM To: 'Tomcat Users List' Subject: RE: win2000 issue with tomcat4.1.24 Hi all, I am using win2000 and trying to install and run the tomcat4.1.24, I am getting an parser exception as follows when I try to access the home page http://localhost:8080. I also tried not to install as service, in that case it is unable to see the JSP parser servlet. Could some one help on this.. 2003-06-10 23:01:47 StandardWrapperValve[jsp]: Servlet.service() for servlet jsp threw exception org.apache.jasper.JasperException: Unable to compile class for JSP An error occurred at line: -1 in the jsp file: null Generated servlet error: [javac] Since fork is true, ignoring compiler setting. [javac] Compiling 1 source file [javac] Since fork is true, ignoring compiler setting. [javac] C:\Program Files\Apache Group\Tomcat 4.1\work\Standalone\localhost\_\index_jsp.java:266: handlePageException(java.lang.Exception) in javax.servlet.jsp.PageContext cannot be applied to (java.lang.Throwable) [javac] if (pageContext != null) pageContext.handlePageException(t); [javac] ^ [javac] 1 error at org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandle r.java:130) at
Tomcat 5 - validation and compilation
In the Tomcat home page under Tomcat 5.x, Refactored application deployer, with an optional standalone deployer allowing validation and compilation of a web application before putting it in production - Can someone point me to the documentation about this please? Thanks Euan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat 5 - validation and compilation
The deployer is still being refactored as we speak. The tomcat-dev archives have a thread discussing how the deployer should work in the future. Search for deployer -Tim Euan Guttridge wrote: In the Tomcat home page under Tomcat 5.x, Refactored application deployer, with an optional standalone deployer allowing validation and compilation of a web application before putting it in production - Can someone point me to the documentation about this please? Thanks Euan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat 5 - validation and compilation
Howdy, It's still a work in progress. You can look at the CVS HEAD for tomcat 5 if you'd like. The main deployer implementation is pretty much done, the standalone deployer with validation is not 100% done yet. The documentation for either is not 100% done yet. Yoav Shapira Millennium ChemInformatics -Original Message- From: Euan Guttridge [mailto:[EMAIL PROTECTED] Sent: Friday, June 13, 2003 9:48 AM To: '[EMAIL PROTECTED]' Subject: Tomcat 5 - validation and compilation In the Tomcat home page under Tomcat 5.x, Refactored application deployer, with an optional standalone deployer allowing validation and compilation of a web application before putting it in production - Can someone point me to the documentation about this please? Thanks Euan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: win2000 issue with tomcat4.1.24
Please be as SPECIFIC as possible. You get 503 EXACTLY when? What servlet is unavailable? What URL? The Tomcat examples? Or your own code? John On Fri, 13 Jun 2003 09:37:27 -0400, Srinivasu Gandu [EMAIL PROTECTED] wrote: I did the fresh installation of tomcat and java and I set the following as enviroment variables.. CATALINA_HOME=c:\Tomcat4.1 JAVA_HOME = c:\j2sdk-1_4_1_01 I have set the c:\j2sdk-1_4_1_01\bin in path. The above all I had before but I did it again in the new and fresh installation.. I am getting 503 error. HTTP Status 503 - Servlet jsp is currently unavailable -- -- type Status report message Servlet jsp is currently unavailable description The requested service (Servlet jsp is currently unavailable) is not currently available. Thanks - srini. -Original Message- From: Tam, Michael [mailto:[EMAIL PROTECTED] Sent: Thursday, June 12, 2003 2:11 PM To: 'Tomcat Users List' Subject: RE: win2000 issue with tomcat4.1.24 I would recommend you to uninstall the existing tomcat and re-install it again WITHOUT using the default path (i.e. try install it in C:\tomcat4.1.24 for example). For the variables(JAVA_HOME and CATALINA_HOME), you should set them as environment variables in your win2k not in your autoexec.bat (I'm not sure if it matters but I believe it is specified in the installation document or something). -Original Message- From: Srinivasu Gandu [mailto:[EMAIL PROTECTED] Sent: Thursday, June 12, 2003 10:27 AM To: 'Tomcat Users List' Subject: RE: win2000 issue with tomcat4.1.24 Yes I did install in Program Files\Apache Group\Tomcat4.1 But when I install in other directory I am getting HTTP Status 503 - Servlet jsp is currently unavailable. I hav't set the java home and catalina home for win98. 1) installed j2sdk-1_4_1_01-windows-i586.exe in win98 2) I just intall the jakarta-tomcat-4.1.24.exe in win98 and able to acces the http://localhost:8080 Same thing I did for the win2000 machine but it is giving this problem.. So then I added SET JAVA_HOME = C:\j2sdk-1_4_1_01 to autoexec.bat same problem.. I will try to add SET CATALINA_HOME = c:\Program Files\Apache Group\Tomcat4.1 but I can not delete the spaces between the program files right??? Thanks - srini. -Original Message- From: Tam, Michael [mailto:[EMAIL PROTECTED] Sent: Thursday, June 12, 2003 12:32 PM To: 'Tomcat Users List' Subject: RE: win2000 issue with tomcat4.1.24 Sorry I didn't follow this topic from the beginning but maybe you should post where EXACTLY you have tomcat and j2sdk installed and the EXACT values you have set for JAVA_HOME and CATALINA_HOME so we can see if anything went wrong of those settings. In addition, if you install tomcat under Program Files\Apache Group\Tomcat 4.1 path, you probably get into trouble with the spacing between those directory names. Cheers, Michael -Original Message- From: Srinivasu Gandu [mailto:[EMAIL PROTECTED] Sent: Thursday, June 12, 2003 6:43 AM To: 'Tomcat Users List' Subject: RE: win2000 issue with tomcat4.1.24 Yoav Shapira, Could you put me in right direction what is going wrong on this.. 1) I have a j2sdk-1_4_1_01\bin in my path 2) I have a JAVA_HOME as j2sdk-1_4_1_01 in my autoexcec.bat file. 3) I have done this The JVM specified in the registry doesn't seem to work for compiling JSPs. You can edit the registry and change the value of HKEY_LOCAL_MACHINE/SYSTEM/CurrentControlSet/Services/Apache Tomcat 4.1/Parameters/JVM Library and make it point to the jvm.dll in javainstallation\jre\bin\server\jvm.dll and that should take care of it. But still no luck same compiler error??? what needs to be done?? let us know if some body have success in this.. appreciate it. Thanks - Srini. -Original Message- From: Srinivasu Gandu [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 11, 2003 10:27 AM To: 'Tomcat Users List' Subject: RE: win2000 issue with tomcat4.1.24 Hi all, I am using win2000 and trying to install and run the tomcat4.1.24, I am getting an parser exception as follows when I try to access the home page http://localhost:8080. I also tried not to install as service, in that case it is unable to see the JSP parser servlet. Could some one help on this.. 2003-06-10 23:01:47 StandardWrapperValve[jsp]: Servlet.service() for servlet jsp threw exception org.apache.jasper.JasperException: Unable to compile class for JSP An error occurred at line: -1 in the jsp file: null Generated servlet error: [javac] Since fork is true, ignoring compiler setting. [javac] Compiling 1 source file [javac] Since fork is true, ignoring compiler setting. [javac] C:\Program Files\Apache Group\Tomcat 4.1\work\Standalone\localhost\_\index_jsp.java:266: handlePageException(java.lang.Exception) in javax.servlet.jsp.PageContext cannot be applied to (java.lang.Throwable) [javac] if (pageContext != null) pageContext.handlePageException(t); [javac]
RE: Tomcat 5 - validation and compilation
Thanks Tim and Yoav. Is there a release date for a 5.0 stable release? -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: 13 June 2003 14:47 To: Tomcat Users List Subject: RE: Tomcat 5 - validation and compilation Howdy, It's still a work in progress. You can look at the CVS HEAD for tomcat 5 if you'd like. The main deployer implementation is pretty much done, the standalone deployer with validation is not 100% done yet. The documentation for either is not 100% done yet. Yoav Shapira Millennium ChemInformatics -Original Message- From: Euan Guttridge [mailto:[EMAIL PROTECTED] Sent: Friday, June 13, 2003 9:48 AM To: '[EMAIL PROTECTED]' Subject: Tomcat 5 - validation and compilation In the Tomcat home page under Tomcat 5.x, Refactored application deployer, with an optional standalone deployer allowing validation and compilation of a web application before putting it in production - Can someone point me to the documentation about this please? Thanks Euan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat 5 - validation and compilation
Howdy, That question should be on the FAQ as well ;) Like all other Apache releases, the basic answer is no. It'll be ready when it's ready. You can help accelerate by downloading alpha/beta versions, using them, and reporting any bugs you find. You can help even more by contributing patches, etc. Yoav Shapira Millennium ChemInformatics -Original Message- From: Euan Guttridge [mailto:[EMAIL PROTECTED] Sent: Friday, June 13, 2003 9:58 AM To: 'Tomcat Users List' Subject: RE: Tomcat 5 - validation and compilation Thanks Tim and Yoav. Is there a release date for a 5.0 stable release? -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: 13 June 2003 14:47 To: Tomcat Users List Subject: RE: Tomcat 5 - validation and compilation Howdy, It's still a work in progress. You can look at the CVS HEAD for tomcat 5 if you'd like. The main deployer implementation is pretty much done, the standalone deployer with validation is not 100% done yet. The documentation for either is not 100% done yet. Yoav Shapira Millennium ChemInformatics -Original Message- From: Euan Guttridge [mailto:[EMAIL PROTECTED] Sent: Friday, June 13, 2003 9:48 AM To: '[EMAIL PROTECTED]' Subject: Tomcat 5 - validation and compilation In the Tomcat home page under Tomcat 5.x, Refactored application deployer, with an optional standalone deployer allowing validation and compilation of a web application before putting it in production - Can someone point me to the documentation about this please? Thanks Euan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [SPAM:56%] Using File class in Tomcat
As a service. Is there a difference? Bao-Ha Dam Bui [EMAIL PROTECTED] St. Jude Medical, Inc 651.765.1018 -Original Message- From: Mayne, Peter [mailto:[EMAIL PROTECTED] Sent: Thursday, June 12, 2003 7:20 PM To: 'Tomcat Users List' Subject: RE: [SPAM:56%] Using File class in Tomcat Are you running Tomcat from a command line, or as a service? If Tomcat is running as a service, what user is it running as? PJDM -- Peter Mayne Technology Consultant Spherion Technology Solutions Level 1, 243 Northbourne Avenue, Lyneham, ACT, 2602 T: 61 2 62689727 F: 61 2 62689777 -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] ] Sent: Friday, 13 June 2003 3:51 AM To: [EMAIL PROTECTED] Subject: RE: [SPAM:56%] Using File class in Tomcat I also just found out that if I have any other file that I have to read in from a network mapped drive, it's not found. This must be some setting in Tomcat. Any comment? Idea? Bao-Ha Dam Bui [EMAIL PROTECTED] St. Jude Medical, Inc -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] ] Sent: Thursday, June 12, 2003 11:03 AM To: [EMAIL PROTECTED] Subject: RE: [SPAM:56%] Using File class in Tomcat Made no difference. I even tried the \\ instead of the \ by itself. Any more idea please! Bao-Ha Dam Bui [EMAIL PROTECTED] St. Jude Medical, Inc 651.765.1018 -Original Message- From: Brendle, Douglas A. [mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] ] Sent: Thursday, June 12, 2003 10:58 AM To: Tomcat Users List Subject: RE: [SPAM:56%] Using File class in Tomcat don't use the mapped drive name. Use it's unc name. If your mapped drive is G:\ and it's mapped to someDir on someServer, refer to it as \\someServer\someDir. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] ] Sent: Thursday, June 12, 2003 10:56 AM To: [EMAIL PROTECTED] Subject: [SPAM:56%] Using File class in Tomcat Hi, I am using the java.io.File class to get a list of all the files in a directory. If the directory I am trying to read is a local one, all is fine and good. However, if it is a mapped drive (I am using Win2k) then the class can not see it. I ran the same code reading the mapped drive in command window (java myclass) and it is fine. Is there a setting in Tomcat that I have to set so that I can read a mapped drive? I am using Tc 4.0.2 Thanks. Bao-Ha Dam Bui [EMAIL PROTECTED] St. Jude Medical, Inc * This communication may contain information that is proprietary, privileged, confidential or legally exempt from disclosure. If you are not a named addressee, you are notified that you are not authorized to read, print, retain, copy or disseminate this communication without the consent of the sender and that doing so may be unlawful. If you have received this communication in error, please notify the sender via return e-mail and delete it from your computer. Thank you. St. Jude Medical, Inc. * - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] * This communication may contain information that is proprietary, privileged, confidential or legally exempt from disclosure. If you are not a named addressee, you are notified that you are not authorized to read, print, retain, copy or disseminate this communication without the consent of the sender and that doing so may be unlawful. If you have received this communication in error, please notify the sender via return e-mail and delete it from your computer. Thank you. St. Jude Medical, Inc. * * This communication may contain information that is proprietary, privileged, confidential or legally exempt from disclosure. If you are not a named addressee, you are notified that you are not authorized to read, print, retain, copy or disseminate this communication without the consent of the sender and that doing so may be unlawful. If you have received this communication in error, please notify the sender via return e-mail and delete it from your computer. Thank you. St. Jude Medical, Inc. * The information contained in this email and any attachments to it: (a) may be confidential and if you are not the intended recipient, any interference with, use, disclosure or copying of this material is unauthorised and prohibited; and (b) may contain personal information of the recipient and/or the sender as defined under the Privacy Act 1988 (Cth). Consent is hereby given by the
Upgrading to Tomcat 5
I attempted to upgrade my Tomcat 4.1.24-based application to Tomcat 5.0.2 this morning and found a few issues: 1. I had to put mail.jar and activation.jar into common/lib so my log4j's SMTPAppender would work. 2. I had to copy log4-*.jar into common/lib to workaround this error: Caused by: org.apache.commons.logging.LogConfigurationException: No suitable Log constructor [Ljava. lang.Class;@1d33a6b for org.apache.commons.logging.impl.Log4JLogger at org.apache.commons.logging.impl.LogFactoryImpl.getLogConstructor(LogFactoryI mpl.java:432) 3. In one of my JSP's, I have: %@ page import=org.apache.struts.Globals % c:remove var=%=Globals.ERROR_KEY% scope=request/ This works in Tomcat 4.1.x, but fails in Tomcat 5. Is this a bug in 4.1.x or 5.x? org.apache.jasper.JasperException: /common/messages.jsp(12,4) According to TLD or attribute directiv e in tag file, attribute var does not accept any expressions 4. None of my logging configuration in mywebapp/WEB-INF/classes/log4j.properties file is picked up. Even moving it to $CATALINA_HOME/common/lib does not seem to help. Thanks, Matt - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [SPAM:56%] Using File class in Tomcat
On Fri, 13 Jun 2003 22:04, [EMAIL PROTECTED] wrote: As a service. Is there a difference? For an NT service to be able to access files across the network it must run under an account with network privileges, by default the LocalSystem account is used which doesn't have any network privileges. Most people choose to create a new network account with privileges restricted to solely what they require and then run the NT service using that account. Regards, -- Jason Bainbridge http://jblinux.org - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Customizing 401 Error Page (this should be easy)
I have spent roughly a day going through the Tomcat archives looking for a solution to customizing an error page instead of displaying the default 401 or for that matter 403, or 404, or 500 error pages. I have modified my web.xml file to contain the following: error-page error-code401/error-code location/jcafe-error.jsp/location /error-page I'm not getting any errors that would prevent Tomcat from starting. I've placed the jcafe-error.jsp (JSP containing the custom error 401 error message) in the same directory that my index.jsp file resides in, which kicks off the basic authentication; however, when I access my application (e.g., index.jsp), I get the error page described in the jcafe-error.jsp instead of the basic authentication login dialog. I've read some archive traffic regarding this phenomena, but evidently it was a problem in Tomcat 4.0.1 and 4.0.2. I'm using Tomcat 4.0.3. So my question is this still a problem (not supported due to bugs in 4.0.3) or am I doing something wrong. Something that seems to be so easy turns out to be so hard so I'm assuming I'm missing this up. Please help. Thank you in advance on the behalf of my manager who requested this silly feature believing web users are all hopelessly lost and in need of grammatically correct and informational error messages. With kind regards, Kevin Ritter - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Valve, set/get http header attributes
How can I read and write http header attributes in a valve. I tried the following inside a valve which does return false in the second call: import org.apache.catalina.HttpRequest; import javax.servlet.http.HttpServletRequest; ... public void invoke(Request request, Response response, ValveContext context) throws IOException, ServletException { ((HttpRequest)request).addHeader(test-id, test-value); ((HttpServletRequest)request).getHeader(test-id); ... } *** BITTE BEACHTEN *** Diese Nachricht (wie auch allfällige Anhänge dazu) beinhaltet möglicherweise vertrauliche oder gesetzlich geschützte Daten oder Informationen. Zum Empfang derselben ist (sind) ausschliesslich die genannte(n) Person(en) bestimmt. Falls Sie diese Nachricht irrtümlicherweise erreicht hat, sind Sie höflich gebeten, diese unter Ausschluss jeder Reproduktion zu zerstören und die absendende Person umgehend zu benachrichtigen. Vielen Dank für Ihre Hilfe. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Customizing 401 Error Page (this should be easy)
Howdy, I'm not getting any errors that would prevent Tomcat from starting. Are you getting any errors at all? Specifically, is there really a 401 when people are trying to access index.jsp? That would cause your behavior. Consult tomcat's access log (enable it if it's disabled, as is the default). Look for the response code when accessing index.jsp. If you still can't see what's happening, enable debug=99 for your host, context, engine, and post the logs. Yoav Shapira This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Valve, set/get http header attributes
Howdy, Why do this in a valve (tomcat-specific) when you can do it in a Filter in a container-independent way? public void doFilter(ServletRequest req, ServletResponse res, FilterChain chain) throws IOException, ServletException { if(req instanceof HttpServletRequest) { HttpServletRequest hreq = (HttpServletRequest) req; hreq.addHeader(test-id, test-value); } chain.doFilter(req, res); } That's all you would have to do. Yoav Shapira Millennium ChemInformatics -Original Message- From: Oliver Wulff [mailto:[EMAIL PROTECTED] Sent: Friday, June 13, 2003 10:18 AM To: [EMAIL PROTECTED] Subject: Valve, set/get http header attributes How can I read and write http header attributes in a valve. I tried the following inside a valve which does return false in the second call: import org.apache.catalina.HttpRequest; import javax.servlet.http.HttpServletRequest; ... public void invoke(Request request, Response response, ValveContext context) throws IOException, ServletException { ((HttpRequest)request).addHeader(test-id, test-value); ((HttpServletRequest)request).getHeader(test-id); ... } *** BITTE BEACHTEN *** Diese Nachricht (wie auch allfällige Anhänge dazu) beinhaltet möglicherweise vertrauliche oder gesetzlich geschützte Daten oder Informationen. Zum Empfang derselben ist (sind) ausschliesslich die genannte(n) Person(en) bestimmt. Falls Sie diese Nachricht irrtümlicherweise erreicht hat, sind Sie höflich gebeten, diese unter Ausschluss jeder Reproduktion zu zerstören und die absendende Person umgehend zu benachrichtigen. Vielen Dank für Ihre Hilfe. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Integrating iPlanet 4.1 and Tomcat 4.1.24
Hello, I successfully connected the iPlanet Web Server via the nsapi-redirector with the Tomcat Servlet Engine via AJP13. The ppath attribute in the Object tag of the iPlanet Web Server's obj.conf to forward *.jsp files to Tomcat. The physical path to the Tomcat examples is resolved with the name trans directive, pfx2dir attribute, mapping /webapps to /opt/Tomcat-4.1.24/webapps. (Document Root is not CATALINA_HOME.) This works so far, the log files show that requests for jsp files are forwarded to the Tomcat Sevlet Engine and return codes are given back to the iPlanet Web Server. The problem now is that Tomcat cannot resolve the requested URI forwarded from the iPlanet Web Serverand returns 404 File not found for every request on jsp pages. The server name mapping is successful and the index.jsp is a copy of /opt/Tomcat-4.1.24/webapps/ROOT and physically exists in /opt/Tomcat-4.1.24/webapps. I tried several alternatives in obj.conf but nothing cures the problem. Any ideas? Regards, Angela --- 2003-06-13 15:55:31 RequestDumperValve[Tomcat Servlet Engine]: --- 2003-06-13 15:55:31 RequestDumperValve[Tomcat Servlet Engine]: authType=null 2003-06-13 15:55:31 RequestDumperValve[Tomcat Servlet Engine]: contentLength=-1 2003-06-13 15:55:31 RequestDumperValve[Tomcat Servlet Engine]: contentType=text/html;charset=ISO-8859-1 2003-06-13 15:55:31 RequestDumperValve[Tomcat Servlet Engine]: header=Content-Language=en 2003-06-13 15:55:31 RequestDumperValve[Tomcat Servlet Engine]: message=/webapps/index.jsp 2003-06-13 15:55:31 RequestDumperValve[Tomcat Servlet Engine]: remoteUser=null 2003-06-13 15:55:31 RequestDumperValve[Tomcat Servlet Engine]: status=404 2003-06-13 15:55:31 RequestDumperValve[Tomcat Servlet Engine]: === 2003-06-13 15:55:31 Ajp13Processor[10009][4] done invoking, finishing request/response 2003-06-13 15:55:31 Ajp13Processor[10009][4] [Ajp13] [RequestHandler] sendHeaders() 2003-06-13 15:55:31 Ajp13Processor[10009][4] [Ajp13] [RequestHandler] status is: 404(Not Found) 2003-06-13 15:55:31 Ajp13Processor[10009][4] [Ajp13] send() 2003-06-13 15:55:31 Ajp13Processor[10009][4] [Ajp13] [RequestHandler] doWrite(byte[], 0, 737) 2003-06-13 15:55:31 Ajp13Processor[10009][4] [Ajp13] send() 2003-06-13 15:55:31 Ajp13Processor[10009][4] [Ajp13] [RequestHandler] finish() - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat 5 - validation and compilation
Yeah - I need to add this to the faq. Here's what Craig said when I asked the same thing a long time ago: 'Releases happen when they are ready. From a user perspective, what you saw about votes of committers is all there is to go on. Committers -- and especially the release manager -- make a judgement call about the relative risk of the patches that have been applied since the preceeding beta, and decides whether or not the next release should be called a beta or not. (You should know that, for Tomcat versions 4.1, the difference between a beta and a final release is basically wrapped up in what the release manager proposes -- there is not really any quantitative difference in the amount of pre-release testing that goes on, so waiting for the final release and hoping it is higher quality, simply because of that label, is pretty silly.) For Tomcat 4.1.x, the Tomcat developers have adopted a version labelling scheme similar to that used for the Apache web server, and several other Jakarta projects -- a version 4.1.x release will be made without any label that implies quality. After the release has been in the field for a while, it will be declared alpha, beta, release, or abandoned (if a showstopper bug occurs). On this basis, the 4.1.3 release was declared to be beta quality based on the feedback of those who tested it, and didn't find any showstopper bugs. There are still things on the TODO list, or it would have been declared final.' -Tim Shapira, Yoav wrote: Howdy, That question should be on the FAQ as well ;) Like all other Apache releases, the basic answer is no. It'll be ready when it's ready. You can help accelerate by downloading alpha/beta versions, using them, and reporting any bugs you find. You can help even more by contributing patches, etc. Yoav Shapira Millennium ChemInformatics -Original Message- From: Euan Guttridge [mailto:[EMAIL PROTECTED] Sent: Friday, June 13, 2003 9:58 AM To: 'Tomcat Users List' Subject: RE: Tomcat 5 - validation and compilation Thanks Tim and Yoav. Is there a release date for a 5.0 stable release? -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: 13 June 2003 14:47 To: Tomcat Users List Subject: RE: Tomcat 5 - validation and compilation Howdy, It's still a work in progress. You can look at the CVS HEAD for tomcat 5 if you'd like. The main deployer implementation is pretty much done, the standalone deployer with validation is not 100% done yet. The documentation for either is not 100% done yet. Yoav Shapira Millennium ChemInformatics -Original Message- From: Euan Guttridge [mailto:[EMAIL PROTECTED] Sent: Friday, June 13, 2003 9:48 AM To: '[EMAIL PROTECTED]' Subject: Tomcat 5 - validation and compilation In the Tomcat home page under Tomcat 5.x, Refactored application deployer, with an optional standalone deployer allowing validation and compilation of a web application before putting it in production - Can someone point me to the documentation about this please? Thanks Euan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Antwort: RE: Valve, set/get http header attributes
The Tomcat authenticator expects this attribute to be set. But the filter is called after the authenticator. *** BITTE BEACHTEN *** Diese Nachricht (wie auch allfällige Anhänge dazu) beinhaltet möglicherweise vertrauliche oder gesetzlich geschützte Daten oder Informationen. Zum Empfang derselben ist (sind) ausschliesslich die genannte(n) Person(en) bestimmt. Falls Sie diese Nachricht irrtümlicherweise erreicht hat, sind Sie höflich gebeten, diese unter Ausschluss jeder Reproduktion zu zerstören und die absendende Person umgehend zu benachrichtigen. Vielen Dank für Ihre Hilfe. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Customizing 401 Error Page (this should be easy)
Good point--I've checked the log and I'm not seeing any errors--should I be seeing errors? Here's the only entry in the log: 127.0.0.1 - - [13/Jun/2003:09:26:58 -0600] GET /LMS/index.jsp HTTP/1.1 200 428 If I remove the error-page element from the web.xml file everything works fine. I was hoping to use my own custom error page for 401 errors when a user of my application forgets his userId/password or clicks Cancel form the Authentication login dialog. Also, I have debug set at 99. Again thank you in advance Kevin -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Friday, June 13, 2003 9:18 AM To: Tomcat Users List Subject: RE: Customizing 401 Error Page (this should be easy) Howdy, I'm not getting any errors that would prevent Tomcat from starting. Are you getting any errors at all? Specifically, is there really a 401 when people are trying to access index.jsp? That would cause your behavior. Consult tomcat's access log (enable it if it's disabled, as is the default). Look for the response code when accessing index.jsp. If you still can't see what's happening, enable debug=99 for your host, context, engine, and post the logs. Yoav Shapira This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Customizing 401 Error Page (this should be easy)
Howdy, Here's the only entry in the log: 127.0.0.1 - - [13/Jun/2003:09:26:58 -0600] GET /LMS/index.jsp HTTP/1.1 200 428 Clean your browser's cache and repeat the test. The above shows the index.jsp was requested and returned without a problem. If I remove the error-page element from the web.xml file everything works fine. I was hoping to use my own custom error page for 401 errors when a user of my application forgets his userId/password or clicks Cancel form the Authentication login dialog. Also, I have debug set at 99. How are you handling the cancel in the login dialog or the wrong password? Redirect? Forward? Set response code to 401? If you can post your index.jsp code, we could probably help more... Yoav Shapira This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
problems with mod_jk and tomcat 4
I'm using apache 1.3.27, mod_jk with connector ajp13, tomcat 4.1.12 and Sun JVM 1.4.1 We are hosting about 90 sites on a Dual Pentium III machine, with 1,5 Gb of ram, but, on few days later, we are having problems with the last sites addded. After some searches on google (nothing found about this), change the version of mod_jk connector and others changes, I think that mod_jk have a limit of different workers. When I try to run the 86º site through ajp13, it fails with Internal Server Error 500. Detail: the first 85 sites works fine. Well, if I put off anyone of the 85 first sites on workers.properties list, the 86º site of the list (now the 85º site) works fine. Anyone have some ideas about this? Cordialmente, Juliano Primavesi : CyberWeb Networks : CIC - Centro de Informações ao Cliente : Fone 0 xx (51) 3222-2920 : Fax 0 xx (51) 3395-3945 :. http://www.cyberweb.com.br - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
mod_jk questions
Hi, I noticed that the mod_jk 1.2.4 was recently released. I was wondering if you had a binary of it available for Apache 1.3 and Tomcat 4.1. I would like to upgrade my mod_jk. On a related note, I was hoping you could shed some light on some trouble I've been having. Sometimes the website doesn't respond to jsp requests, but loading html files is okay. I think it's a mod_jk problem which is why I would like to upgrade it. Any input at all would be much appreciated, thank you for your time, Best regards, Wayne Chang Pacific Northwest Software Mobile: (978) 869-3446 Email: [EMAIL PROTECTED]
RE: Customizing 401 Error Page (this should be easy)
Thanks for staying with me; however, after I deleted all temporary internet files and repeated the test the only entry in the log is what I reported last time, which is: 127.0.0.1 - - [13/Jun/2003:09:42:55 -0600] GET /LMS/index.jsp HTTP/1.1 200 428 Any other suggestions? Am I implementing this correctly? Once again thank you in advance Kevin -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Friday, June 13, 2003 9:40 AM To: Tomcat Users List Subject: RE: Customizing 401 Error Page (this should be easy) Howdy, Here's the only entry in the log: 127.0.0.1 - - [13/Jun/2003:09:26:58 -0600] GET /LMS/index.jsp HTTP/1.1 200 428 Clean your browser's cache and repeat the test. The above shows the index.jsp was requested and returned without a problem. If I remove the error-page element from the web.xml file everything works fine. I was hoping to use my own custom error page for 401 errors when a user of my application forgets his userId/password or clicks Cancel form the Authentication login dialog. Also, I have debug set at 99. How are you handling the cancel in the login dialog or the wrong password? Redirect? Forward? Set response code to 401? If you can post your index.jsp code, we could probably help more... Yoav Shapira This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Customizing 401 Error Page (this should be easy)
Howdy, I personally can't help much more without seeing index.jsp. Yoav Shapira Millennium ChemInformatics -Original Message- From: Kevin Ritter [mailto:[EMAIL PROTECTED] Sent: Friday, June 13, 2003 10:53 AM To: 'Tomcat Users List' Subject: RE: Customizing 401 Error Page (this should be easy) Thanks for staying with me; however, after I deleted all temporary internet files and repeated the test the only entry in the log is what I reported last time, which is: 127.0.0.1 - - [13/Jun/2003:09:42:55 -0600] GET /LMS/index.jsp HTTP/1.1 200 428 Any other suggestions? Am I implementing this correctly? Once again thank you in advance Kevin -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Friday, June 13, 2003 9:40 AM To: Tomcat Users List Subject: RE: Customizing 401 Error Page (this should be easy) Howdy, Here's the only entry in the log: 127.0.0.1 - - [13/Jun/2003:09:26:58 -0600] GET /LMS/index.jsp HTTP/1.1 200 428 Clean your browser's cache and repeat the test. The above shows the index.jsp was requested and returned without a problem. If I remove the error-page element from the web.xml file everything works fine. I was hoping to use my own custom error page for 401 errors when a user of my application forgets his userId/password or clicks Cancel form the Authentication login dialog. Also, I have debug set at 99. How are you handling the cancel in the login dialog or the wrong password? Redirect? Forward? Set response code to 401? If you can post your index.jsp code, we could probably help more... Yoav Shapira This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Customizing 401 Error Page (this should be easy)
Okay here you go. I've also included the custom error page JSP. Good luck. Kevin -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Friday, June 13, 2003 9:51 AM To: Tomcat Users List Subject: RE: Customizing 401 Error Page (this should be easy) Howdy, I personally can't help much more without seeing index.jsp. Yoav Shapira Millennium ChemInformatics -Original Message- From: Kevin Ritter [mailto:[EMAIL PROTECTED] Sent: Friday, June 13, 2003 10:53 AM To: 'Tomcat Users List' Subject: RE: Customizing 401 Error Page (this should be easy) Thanks for staying with me; however, after I deleted all temporary internet files and repeated the test the only entry in the log is what I reported last time, which is: 127.0.0.1 - - [13/Jun/2003:09:42:55 -0600] GET /LMS/index.jsp HTTP/1.1 200 428 Any other suggestions? Am I implementing this correctly? Once again thank you in advance Kevin -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Friday, June 13, 2003 9:40 AM To: Tomcat Users List Subject: RE: Customizing 401 Error Page (this should be easy) Howdy, Here's the only entry in the log: 127.0.0.1 - - [13/Jun/2003:09:26:58 -0600] GET /LMS/index.jsp HTTP/1.1 200 428 Clean your browser's cache and repeat the test. The above shows the index.jsp was requested and returned without a problem. If I remove the error-page element from the web.xml file everything works fine. I was hoping to use my own custom error page for 401 errors when a user of my application forgets his userId/password or clicks Cancel form the Authentication login dialog. Also, I have debug set at 99. How are you handling the cancel in the login dialog or the wrong password? Redirect? Forward? Set response code to 401? If you can post your index.jsp code, we could probably help more... Yoav Shapira This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Customizing 401 Error Page (this should be easy)
Howdy, Attachments don't often come through -- I don't know if it's the listserver or my company mail server. You have to post them inline (preferably trimming out anything nonessential to the problem). Yoav Shapira Millennium ChemInformatics -Original Message- From: Kevin Ritter [mailto:[EMAIL PROTECTED] Sent: Friday, June 13, 2003 10:59 AM To: 'Tomcat Users List' Subject: RE: Customizing 401 Error Page (this should be easy) Okay here you go. I've also included the custom error page JSP. Good luck. Kevin -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Friday, June 13, 2003 9:51 AM To: Tomcat Users List Subject: RE: Customizing 401 Error Page (this should be easy) Howdy, I personally can't help much more without seeing index.jsp. Yoav Shapira Millennium ChemInformatics -Original Message- From: Kevin Ritter [mailto:[EMAIL PROTECTED] Sent: Friday, June 13, 2003 10:53 AM To: 'Tomcat Users List' Subject: RE: Customizing 401 Error Page (this should be easy) Thanks for staying with me; however, after I deleted all temporary internet files and repeated the test the only entry in the log is what I reported last time, which is: 127.0.0.1 - - [13/Jun/2003:09:42:55 -0600] GET /LMS/index.jsp HTTP/1.1 200 428 Any other suggestions? Am I implementing this correctly? Once again thank you in advance Kevin -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Friday, June 13, 2003 9:40 AM To: Tomcat Users List Subject: RE: Customizing 401 Error Page (this should be easy) Howdy, Here's the only entry in the log: 127.0.0.1 - - [13/Jun/2003:09:26:58 -0600] GET /LMS/index.jsp HTTP/1.1 200 428 Clean your browser's cache and repeat the test. The above shows the index.jsp was requested and returned without a problem. If I remove the error-page element from the web.xml file everything works fine. I was hoping to use my own custom error page for 401 errors when a user of my application forgets his userId/password or clicks Cancel form the Authentication login dialog. Also, I have debug set at 99. How are you handling the cancel in the login dialog or the wrong password? Redirect? Forward? Set response code to 401? If you can post your index.jsp code, we could probably help more... Yoav Shapira This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: mod_jk questions
Platform? John On Fri, 13 Jun 2003 23:47:47 +0900, Wayne Chang [EMAIL PROTECTED] wrote: Hi, I noticed that the mod_jk 1.2.4 was recently released. I was wondering if you had a binary of it available for Apache 1.3 and Tomcat 4.1. I would like to upgrade my mod_jk. On a related note, I was hoping you could shed some light on some trouble I've been having. Sometimes the website doesn't respond to jsp requests, but loading html files is okay. I think it's a mod_jk problem which is why I would like to upgrade it. Any input at all would be much appreciated, thank you for your time, Best regards, Wayne Chang Pacific Northwest Software Mobile: (978) 869-3446 Email: [EMAIL PROTECTED] -- Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Antwort: RE: Valve, set/get http header attributes
Howdy, The Tomcat authenticator expects this attribute to be set. But the filter is called after the authenticator. Ahh, that's a bit more complicated. Can you state the complete flow? - User makes request to a resource that in your web.xml is specified to require authentication, right? - Tomcat's authenticator kicks in, asking for username / password I assume? - You want to add a header before the authenticator kicks in? Yoav Shapira This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Pushing Apache/Tomcat to prod env
This may be slightly off topic but I'm sure others on the list can relate. I'm working on getting a prod system up as a co-location at an ISP. They've assigned an IP address but the IP is not working (i.e. ping ipaddress returns timeout). Now they are saying that the network card is misconfigured on the server but I'm fairly certain that RedHat reads from the /etc/hosts file to determine IP to respond to. Am I correct or missing some significant step in configuring the server? Thanks -Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Customizing 401 Error Page (this should be easy)
Sorry :) *** INDEX.JSP START *** %@ page language=java import=java.io.*, com.jcafeinc.xml.* % %@ include file=global-header.jsp % % application.setAttribute(imgLocation, /LMS/images/); % html head titleJCafe Learning Center/title /head frameset rows=172,* frameborder=no border=0 !-- 1st chg rows=130, * 2nd chg rows=138,* for root-org.gif image-- frame src=signature-header.jsp name=jcSignatureHeaderFrame marginheight=0 marginwidth=0 scrolling=no !-- Got to get the current role and check to see if it is isAnyAdmin -- % if (currentUser.isCurrentRoleRoot() || currentUser.isCurrentRoleAdmin() || currentUser.isCurrentRoleManager() ) { String adminBaseOU = currentUser.getManagerOrganization(); % frame src=plugin/control-panel/adminCatalog.jsp?currentOu=%=adminBaseOU%curren tTab=ou name=jcHomePageFrame marginheight=0 marginwidth=0 scrollbars=yes scrolling=auto % } else { % frame src=plugin/profile-manager/student-self-homepage.jsp name=jcHomePageFrame marginheight=0 marginwidth=0 scrollbars=yes scrolling=auto % } % /frameset /html *** INDEX.JSP END *** *** JCAFE-ERROR.JSP START *** %@ page language=java info=JCafe Error Page isErrorPage=true % %@ page import=java.io.* % %-- session=false isThreadSafe=false --% html head titleJCafe Error Page/title meta content= script language=javascript /script style /style /head body pbr/ Your user ID or password are incorrect. br/ Please try again or contact your system br/ administrator or manager. !--a href=admin/setup.jsp--!--/a-- /p /body /html *** JCAFE-ERROR.JSP START *** Thanks! Kevin -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Friday, June 13, 2003 10:00 AM To: Tomcat Users List Subject: RE: Customizing 401 Error Page (this should be easy) Howdy, Attachments don't often come through -- I don't know if it's the listserver or my company mail server. You have to post them inline (preferably trimming out anything nonessential to the problem). Yoav Shapira Millennium ChemInformatics -Original Message- From: Kevin Ritter [mailto:[EMAIL PROTECTED] Sent: Friday, June 13, 2003 10:59 AM To: 'Tomcat Users List' Subject: RE: Customizing 401 Error Page (this should be easy) Okay here you go. I've also included the custom error page JSP. Good luck. Kevin -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Friday, June 13, 2003 9:51 AM To: Tomcat Users List Subject: RE: Customizing 401 Error Page (this should be easy) Howdy, I personally can't help much more without seeing index.jsp. Yoav Shapira Millennium ChemInformatics -Original Message- From: Kevin Ritter [mailto:[EMAIL PROTECTED] Sent: Friday, June 13, 2003 10:53 AM To: 'Tomcat Users List' Subject: RE: Customizing 401 Error Page (this should be easy) Thanks for staying with me; however, after I deleted all temporary internet files and repeated the test the only entry in the log is what I reported last time, which is: 127.0.0.1 - - [13/Jun/2003:09:42:55 -0600] GET /LMS/index.jsp HTTP/1.1 200 428 Any other suggestions? Am I implementing this correctly? Once again thank you in advance Kevin -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Friday, June 13, 2003 9:40 AM To: Tomcat Users List Subject: RE: Customizing 401 Error Page (this should be easy) Howdy, Here's the only entry in the log: 127.0.0.1 - - [13/Jun/2003:09:26:58 -0600] GET /LMS/index.jsp HTTP/1.1 200 428 Clean your browser's cache and repeat the test. The above shows the index.jsp was requested and returned without a problem. If I remove the error-page element from the web.xml file everything works fine. I was hoping to use my own custom error page for 401 errors when a user of my application forgets his userId/password or clicks Cancel form the Authentication login dialog. Also, I have debug set at 99. How are you handling the cancel in the login dialog or the wrong password? Redirect? Forward? Set response code to 401? If you can post your index.jsp code, we could probably help more... Yoav Shapira This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail:
RE: mod_jk questions
John, The platform is Red Hat 9. Best regards, Wayne Chang Pacific Northwest Software Mobile: (978) 869-3446 Email: [EMAIL PROTECTED] -Original Message- From: John Turner [mailto:[EMAIL PROTECTED] Sent: Saturday, June 14, 2003 12:01 AM To: Tomcat Users List Subject: Re: mod_jk questions Platform? John On Fri, 13 Jun 2003 23:47:47 +0900, Wayne Chang [EMAIL PROTECTED] wrote: Hi, I noticed that the mod_jk 1.2.4 was recently released. I was wondering if you had a binary of it available for Apache 1.3 and Tomcat 4.1. I would like to upgrade my mod_jk. On a related note, I was hoping you could shed some light on some trouble I've been having. Sometimes the website doesn't respond to jsp requests, but loading html files is okay. I think it's a mod_jk problem which is why I would like to upgrade it. Any input at all would be much appreciated, thank you for your time, Best regards, Wayne Chang Pacific Northwest Software Mobile: (978) 869-3446 Email: [EMAIL PROTECTED] -- Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Deserializing data objects using InMemoryReplicationManager on Tomcat cluster
I have noticed when using the InMemoryReplicationManager for web applications on a Tomcat cluster that you will encounter a ClassNotFoundException when trying to deserialize the session contents of serialized data objects specific to the web application (i.e. a given web application may have an Employee class that is stored in the session). Although this ClassNotFoundException is thrown by the InMemoryReplicationManager, it appears that the class actually is deserialized and replicated across the nodes of the cluster. My question is if this is an accurate assertion despite the ClassNotFoundException? Also, why is there a ClassNotFoundException being thrown? Is this because the InMemoryReplicationManager does not use the Web Application Class Loader, Shared Class Loader, etc.?
(SLIGHTOFFTOPIC)SSL configuration for apache and tomcat
Hi All, Thanks to everyone here who responded to my emails immediatly and helped me in moving my from Jrun to Tomcat. The transition was smooth and now my web app runs perfectly on tomcat and apache2.0.46. I have some other things to move from Jrun to tomcat and apache. First one is SSL I didnt find the mod_ssl.so in the modules directory of apache . Where can I download them and how can I configure it? Second scheduler for tomcat: I have a thread which has to run every day. How can I do it in tomcat ? It would be grateful if someone can tell me some documentation about these things . and once aain THANKS A LOT. Thanks in advance, shyam - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Antwort: RE: Antwort: RE: Valve, set/get http header attributes
It's a little bit more complicated. In front of Tomcat, an Apache server is running which does the authentication and delegates the user-id as an http header attribute. A valve will read this header attribute and simulate that the user has been authenticated through basic authentication by doing the following: String auth_string = Basic + new String( Base64.encode(username.getBytes()) ); request.setAuthorization(auth_string); A custom realm is plugged in also which access our custom authorization system to get the roles. This realm can be configured to do the authentication or not. Everything works fine. For testing purposes, I wrote a valve which will be called first and sets the header attribute which would be set too by the apache server. So, I can test the whole behaviour without the Apache server in front of. After setting the header attribute in the test-valve I tried to read this attribute again in the valve which simulates basic authentication, but it doesn't work to set an http header attribute in the valve. *** BITTE BEACHTEN *** Diese Nachricht (wie auch allfällige Anhänge dazu) beinhaltet möglicherweise vertrauliche oder gesetzlich geschützte Daten oder Informationen. Zum Empfang derselben ist (sind) ausschliesslich die genannte(n) Person(en) bestimmt. Falls Sie diese Nachricht irrtümlicherweise erreicht hat, sind Sie höflich gebeten, diese unter Ausschluss jeder Reproduktion zu zerstören und die absendende Person umgehend zu benachrichtigen. Vielen Dank für Ihre Hilfe. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: In memory session replication and session listeners?
Flip, Got it. That's an easy, crafty way to do it. Will try it out and let you know how it works. -gabe -Original Message- From: Filip Hanik [mailto:[EMAIL PROTECTED] Sent: Thursday, June 12, 2003 9:19 PM To: Tomcat Users List Subject: RE: In memory session replication and session listeners? The session listener is only notified on the machine the value actually gets set. Session data doesn't get replicated using the setAttribute/removeAttribute methods, but pure serialization. And for now, the clustering doesn't have a public API to send your own data through it. one way you an do it, is to implement the java.io.Externilizable interface, and when the data gets deserialized, then set the stuff in your global variable, just remember to only set it once. do you see where I am going with this? Filip -Original Message- From: Lawrence, Gabriel [mailto:[EMAIL PROTECTED] Sent: Thursday, June 12, 2003 4:18 PM To: Tomcat Users List Subject: In memory session replication and session listeners? I'm using the tomcat 4 clustering stuff found at: http://cvs.apache.org/~fhanik/index.html And I have one issue. I have a service that tracks some information that is reported outside the users session. This is examined by a different client then the users client. I want to keep this global information in sync across my loadbalanced servers, as I can't necessarily predict which server the this different client is going to hit. The way it works without clustering is that I have a session listener set up that gets notified whenever data is added to a users session. This then triggers a update to my global store as well. What I think I'm seeing is that when session information is replicated to my other server, the fact that something was set isn't triggering a session listener call on the other server. Does that mesh with peoples understanding? Is there a way I can get it to? Thanks! -gabe - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Deserializing data objects using InMemoryReplicationManager on Tomcat cluster
I haven't seen this problem, where is your Employee class file sitting? Filip -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Friday, June 13, 2003 8:24 AM To: [EMAIL PROTECTED] Subject: Deserializing data objects using InMemoryReplicationManager on Tomcat cluster I have noticed when using the InMemoryReplicationManager for web applications on a Tomcat cluster that you will encounter a ClassNotFoundException when trying to deserialize the session contents of serialized data objects specific to the web application (i.e. a given web application may have an Employee class that is stored in the session). Although this ClassNotFoundException is thrown by the InMemoryReplicationManager, it appears that the class actually is deserialized and replicated across the nodes of the cluster. My question is if this is an accurate assertion despite the ClassNotFoundException? Also, why is there a ClassNotFoundException being thrown? Is this because the InMemoryReplicationManager does not use the Web Application Class Loader, Shared Class Loader, etc.? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Strange Problem with Tomcat 4.1.24
Hello I've try to move a JSP/Servlet Application from Tomcat 3.2.4 to 4.1.24. In my .jsp files I'm using a class for getting the content out of a MySQL Database. All of the needed Classes are in the CLASSPATH. The Sun JRE 1.4.1 is the same as before. But now, i get the following Output when i try to call the jsp Page: - org.apache.jasper.JasperException: Unable to compile class for JSP An error occurred at line: 202 in the jsp file: /home.jsp Generated servlet error: [javac] Since fork is true, ignoring compiler setting. [javac] Compiling 1 source file [javac] Since fork is true, ignoring compiler setting. [javac] /usr/jakarta-tomcat-4.1.24/work/Standalone/localhost/israel/home_jsp.java:178: cannot resolve symbol [javac] symbol : variable IsraelMySQL [javac] location: class org.apache.jsp.home_jsp [javac] out.print( IsraelMySQL.getNews() ); [javac] ^ - But if I load the the same class from my Servlet-Application it can be loaded successfully. Can andybody help me please? This already gonna drive me crazy. Roland - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Strange Problem with Tomcat 4.1.24
Howdy, Do you import the Israel class appropriately in your JSP? Yoav Shapira Millennium ChemInformatics -Original Message- From: Roland Kaeser [mailto:[EMAIL PROTECTED] Sent: Friday, June 13, 2003 12:03 PM To: [EMAIL PROTECTED] Subject: Strange Problem with Tomcat 4.1.24 Hello I've try to move a JSP/Servlet Application from Tomcat 3.2.4 to 4.1.24. In my .jsp files I'm using a class for getting the content out of a MySQL Database. All of the needed Classes are in the CLASSPATH. The Sun JRE 1.4.1 is the same as before. But now, i get the following Output when i try to call the jsp Page: - org.apache.jasper.JasperException: Unable to compile class for JSP An error occurred at line: 202 in the jsp file: /home.jsp Generated servlet error: [javac] Since fork is true, ignoring compiler setting. [javac] Compiling 1 source file [javac] Since fork is true, ignoring compiler setting. [javac] /usr/jakarta-tomcat- 4.1.24/work/Standalone/localhost/israel/home_jsp.java:178: cannot resolve symbol [javac] symbol : variable IsraelMySQL [javac] location: class org.apache.jsp.home_jsp [javac] out.print( IsraelMySQL.getNews() ); [javac] ^ - But if I load the the same class from my Servlet-Application it can be loaded successfully. Can andybody help me please? This already gonna drive me crazy. Roland - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Deserializing data objects using InMemoryReplicationManager on Tomcat cluster
WEB-INF/classes/some.package.Employee If this Employee object is put in the session and then replicated across the nodes for the given web application, the other nodes will have ClassNotFoundExceptions when the InMemoryReplicationManager goes to deserialize the session contents. I see this exception in catalina.out when the debug level for the InMemoryReplicationManager is set to 10. -Original Message- From: Filip Hanik [mailto:[EMAIL PROTECTED] Sent: Friday, June 13, 2003 11:01 AM To: Tomcat Users List Subject: RE: Deserializing data objects using InMemoryReplicationManager on Tomcat cluster I haven't seen this problem, where is your Employee class file sitting? Filip -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Friday, June 13, 2003 8:24 AM To: [EMAIL PROTECTED] Subject: Deserializing data objects using InMemoryReplicationManager on Tomcat cluster I have noticed when using the InMemoryReplicationManager for web applications on a Tomcat cluster that you will encounter a ClassNotFoundException when trying to deserialize the session contents of serialized data objects specific to the web application (i.e. a given web application may have an Employee class that is stored in the session). Although this ClassNotFoundException is thrown by the InMemoryReplicationManager, it appears that the class actually is deserialized and replicated across the nodes of the cluster. My question is if this is an accurate assertion despite the ClassNotFoundException? Also, why is there a ClassNotFoundException being thrown? Is this because the InMemoryReplicationManager does not use the Web Application Class Loader, Shared Class Loader, etc.? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Strange Problem with Tomcat 4.1.24
No, why should i do it? I was working fine before widthout that. The Command in the JSP File is: %= IsraelMySQL.getContent(home) % Roland Shapira, Yoav wrote: Howdy, Do you import the Israel class appropriately in your JSP? Yoav Shapira Millennium ChemInformatics -Original Message- From: Roland Kaeser [mailto:[EMAIL PROTECTED] Sent: Friday, June 13, 2003 12:03 PM To: [EMAIL PROTECTED] Subject: Strange Problem with Tomcat 4.1.24 Hello I've try to move a JSP/Servlet Application from Tomcat 3.2.4 to 4.1.24. In my .jsp files I'm using a class for getting the content out of a MySQL Database. All of the needed Classes are in the CLASSPATH. The Sun JRE 1.4.1 is the same as before. But now, i get the following Output when i try to call the jsp Page: - org.apache.jasper.JasperException: Unable to compile class for JSP An error occurred at line: 202 in the jsp file: /home.jsp Generated servlet error: [javac] Since fork is true, ignoring compiler setting. [javac] Compiling 1 source file [javac] Since fork is true, ignoring compiler setting. [javac] /usr/jakarta-tomcat- 4.1.24/work/Standalone/localhost/israel/home_jsp.java:178: cannot resolve symbol [javac] symbol : variable IsraelMySQL [javac] location: class org.apache.jsp.home_jsp [javac] out.print( IsraelMySQL.getNews() ); [javac] ^ - But if I load the the same class from my Servlet-Application it can be loaded successfully. Can andybody help me please? This already gonna drive me crazy. Roland - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Deserializing data objects using InMemoryReplicationManager on Tomcat cluster
it should be in WEB-INF/classes/some/package/Employee.class is that what you meant? never had this problem myself, what version of Tomcat? also, can you send the log trace for this Filip -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Friday, June 13, 2003 9:10 AM To: [EMAIL PROTECTED] Subject: RE: Deserializing data objects using InMemoryReplicationManager on Tomcat cluster WEB-INF/classes/some.package.Employee If this Employee object is put in the session and then replicated across the nodes for the given web application, the other nodes will have ClassNotFoundExceptions when the InMemoryReplicationManager goes to deserialize the session contents. I see this exception in catalina.out when the debug level for the InMemoryReplicationManager is set to 10. -Original Message- From: Filip Hanik [mailto:[EMAIL PROTECTED] Sent: Friday, June 13, 2003 11:01 AM To: Tomcat Users List Subject: RE: Deserializing data objects using InMemoryReplicationManager on Tomcat cluster I haven't seen this problem, where is your Employee class file sitting? Filip -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Friday, June 13, 2003 8:24 AM To: [EMAIL PROTECTED] Subject: Deserializing data objects using InMemoryReplicationManager on Tomcat cluster I have noticed when using the InMemoryReplicationManager for web applications on a Tomcat cluster that you will encounter a ClassNotFoundException when trying to deserialize the session contents of serialized data objects specific to the web application (i.e. a given web application may have an Employee class that is stored in the session). Although this ClassNotFoundException is thrown by the InMemoryReplicationManager, it appears that the class actually is deserialized and replicated across the nodes of the cluster. My question is if this is an accurate assertion despite the ClassNotFoundException? Also, why is there a ClassNotFoundException being thrown? Is this because the InMemoryReplicationManager does not use the Web Application Class Loader, Shared Class Loader, etc.? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Dumb Tomcat question
A dumb question: I need to run 2 instances on Tomcat 4.1.24 on one unix physical host. Could you pl. let me know 1) What are the environment variables that need to be set for both the instances ? - CATALINA_HOME , PATH CLASSPATH 2) Can I set CATALINA_HOME for both instances ? -- how would this work Thanks for your info. -Bala - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Strange Problem with Tomcat 4.1.24
you should always do it :) and starting now all your classes must be in a package. Filip -Original Message- From: Roland Kaeser [mailto:[EMAIL PROTECTED] Sent: Friday, June 13, 2003 9:09 AM To: Tomcat Users List Subject: Re: Strange Problem with Tomcat 4.1.24 No, why should i do it? I was working fine before widthout that. The Command in the JSP File is: %= IsraelMySQL.getContent(home) % Roland Shapira, Yoav wrote: Howdy, Do you import the Israel class appropriately in your JSP? Yoav Shapira Millennium ChemInformatics -Original Message- From: Roland Kaeser [mailto:[EMAIL PROTECTED] Sent: Friday, June 13, 2003 12:03 PM To: [EMAIL PROTECTED] Subject: Strange Problem with Tomcat 4.1.24 Hello I've try to move a JSP/Servlet Application from Tomcat 3.2.4 to 4.1.24. In my .jsp files I'm using a class for getting the content out of a MySQL Database. All of the needed Classes are in the CLASSPATH. The Sun JRE 1.4.1 is the same as before. But now, i get the following Output when i try to call the jsp Page: - org.apache.jasper.JasperException: Unable to compile class for JSP An error occurred at line: 202 in the jsp file: /home.jsp Generated servlet error: [javac] Since fork is true, ignoring compiler setting. [javac] Compiling 1 source file [javac] Since fork is true, ignoring compiler setting. [javac] /usr/jakarta-tomcat- 4.1.24/work/Standalone/localhost/israel/home_jsp.java:178: cannot resolve symbol [javac] symbol : variable IsraelMySQL [javac] location: class org.apache.jsp.home_jsp [javac] out.print( IsraelMySQL.getNews() ); [javac] ^ - But if I load the the same class from my Servlet-Application it can be loaded successfully. Can andybody help me please? This already gonna drive me crazy. Roland - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Dumb Tomcat question
just install them in two different locations /usr/local/tomcat /usr/local/tomcat2 then on tomcat2/conf/server.xml change all the ports so that they don't conflict with tomcat/conf/server.xml then just start them up, that is all you need to do Filip -Original Message- From: Balakrishna Kudaravalli [mailto:[EMAIL PROTECTED] Sent: Friday, June 13, 2003 9:13 AM To: Tomcat Users List Subject: Dumb Tomcat question A dumb question: I need to run 2 instances on Tomcat 4.1.24 on one unix physical host. Could you pl. let me know 1) What are the environment variables that need to be set for both the instances ? - CATALINA_HOME , PATH CLASSPATH 2) Can I set CATALINA_HOME for both instances ? -- how would this work Thanks for your info. -Bala - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Strange Problem with Tomcat 4.1.24
Hey Really? I whole applications contains more than 10'000 lines of code (java code). This will take me more then 4 days to changes everything. Is there no other way to do that. It it was working before? I have currently a really high pressure to the this site up and running. Roland Filip Hanik wrote: you should always do it :) and starting now all your classes must be in a package. Filip -Original Message- From: Roland Kaeser [mailto:[EMAIL PROTECTED] Sent: Friday, June 13, 2003 9:09 AM To: Tomcat Users List Subject: Re: Strange Problem with Tomcat 4.1.24 No, why should i do it? I was working fine before widthout that. The Command in the JSP File is: %= IsraelMySQL.getContent(home) % Roland Shapira, Yoav wrote: Howdy, Do you import the Israel class appropriately in your JSP? Yoav Shapira Millennium ChemInformatics -Original Message- From: Roland Kaeser [mailto:[EMAIL PROTECTED] Sent: Friday, June 13, 2003 12:03 PM To: [EMAIL PROTECTED] Subject: Strange Problem with Tomcat 4.1.24 Hello I've try to move a JSP/Servlet Application from Tomcat 3.2.4 to 4.1.24. In my .jsp files I'm using a class for getting the content out of a MySQL Database. All of the needed Classes are in the CLASSPATH. The Sun JRE 1.4.1 is the same as before. But now, i get the following Output when i try to call the jsp Page: - org.apache.jasper.JasperException: Unable to compile class for JSP An error occurred at line: 202 in the jsp file: /home.jsp Generated servlet error: [javac] Since fork is true, ignoring compiler setting. [javac] Compiling 1 source file [javac] Since fork is true, ignoring compiler setting. [javac] /usr/jakarta-tomcat- 4.1.24/work/Standalone/localhost/israel/home_jsp.java:178: cannot resolve symbol [javac] symbol : variable IsraelMySQL [javac] location: class org.apache.jsp.home_jsp [javac] out.print( IsraelMySQL.getNews() ); [javac] ^ - But if I load the the same class from my Servlet-Application it can be loaded successfully. Can andybody help me please? This already gonna drive me crazy. Roland - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Dumb Tomcat question
Howdy, It's not a dumb question ;) I need to run 2 instances on Tomcat 4.1.24 on one unix physical host. Could you pl. let me know 1) What are the environment variables that need to be set for both the instances ? - CATALINA_HOME , PATH CLASSPATH 2) Can I set CATALINA_HOME for both instances ? -- how would this work Simply install tomcat in two separate directories, let's say /usr/local/tomcat1 and /usr/local/tomcat2. That's about it. The startup/shutdown scripts are intelligent enough to use relative paths, so they won't interfere with each other. You don't need to specify CLASSPATH at all, as tomcat ignores that anyways. Yoav Shapira This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Strange Problem with Tomcat 4.1.24
Howdy, You should always properly import classes you depend on, and all your classes should be in a package. If they're not, jasper will put them in the org.apache.jsp package, which you don't import, and that's why it's not found in your JSP page. Yoav Shapira Millennium ChemInformatics -Original Message- From: Roland Kaeser [mailto:[EMAIL PROTECTED] Sent: Friday, June 13, 2003 12:09 PM To: Tomcat Users List Subject: Re: Strange Problem with Tomcat 4.1.24 No, why should i do it? I was working fine before widthout that. The Command in the JSP File is: %= IsraelMySQL.getContent(home) % Roland Shapira, Yoav wrote: Howdy, Do you import the Israel class appropriately in your JSP? Yoav Shapira Millennium ChemInformatics -Original Message- From: Roland Kaeser [mailto:[EMAIL PROTECTED] Sent: Friday, June 13, 2003 12:03 PM To: [EMAIL PROTECTED] Subject: Strange Problem with Tomcat 4.1.24 Hello I've try to move a JSP/Servlet Application from Tomcat 3.2.4 to 4.1.24. In my .jsp files I'm using a class for getting the content out of a MySQL Database. All of the needed Classes are in the CLASSPATH. The Sun JRE 1.4.1 is the same as before. But now, i get the following Output when i try to call the jsp Page: - org.apache.jasper.JasperException: Unable to compile class for JSP An error occurred at line: 202 in the jsp file: /home.jsp Generated servlet error: [javac] Since fork is true, ignoring compiler setting. [javac] Compiling 1 source file [javac] Since fork is true, ignoring compiler setting. [javac] /usr/jakarta-tomcat- 4.1.24/work/Standalone/localhost/israel/home_jsp.java:178: cannot resolve symbol [javac] symbol : variable IsraelMySQL [javac] location: class org.apache.jsp.home_jsp [javac] out.print( IsraelMySQL.getNews() ); [javac] ^ - But if I load the the same class from my Servlet-Application it can be loaded successfully. Can andybody help me please? This already gonna drive me crazy. Roland - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Strange Problem with Tomcat 4.1.24
Howdy, Really? I whole applications contains more than 10'000 lines of code (java code). This will take me more then 4 days to changes everything. Not if you know any perl or other efficient text processing languages. Or have access to an IDE which will repackage classes for you: this is a one minute, point and click operation in Eclipse for example. Is there no other way to do that. It it was working before? If you can't do it at this time, you can stay with your current version of tomcat. Yoav Shapira This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Strange Problem with Tomcat 4.1.24
first try it out with one class, and see if it solves the problem, if that works, buy a pot of coffee, and go at it :) there might be other ways, but I am not sure. Filip -Original Message- From: Roland Kaeser [mailto:[EMAIL PROTECTED] Sent: Friday, June 13, 2003 9:16 AM To: Tomcat Users List Subject: Re: Strange Problem with Tomcat 4.1.24 Hey Really? I whole applications contains more than 10'000 lines of code (java code). This will take me more then 4 days to changes everything. Is there no other way to do that. It it was working before? I have currently a really high pressure to the this site up and running. Roland Filip Hanik wrote: you should always do it :) and starting now all your classes must be in a package. Filip -Original Message- From: Roland Kaeser [mailto:[EMAIL PROTECTED] Sent: Friday, June 13, 2003 9:09 AM To: Tomcat Users List Subject: Re: Strange Problem with Tomcat 4.1.24 No, why should i do it? I was working fine before widthout that. The Command in the JSP File is: %= IsraelMySQL.getContent(home) % Roland Shapira, Yoav wrote: Howdy, Do you import the Israel class appropriately in your JSP? Yoav Shapira Millennium ChemInformatics -Original Message- From: Roland Kaeser [mailto:[EMAIL PROTECTED] Sent: Friday, June 13, 2003 12:03 PM To: [EMAIL PROTECTED] Subject: Strange Problem with Tomcat 4.1.24 Hello I've try to move a JSP/Servlet Application from Tomcat 3.2.4 to 4.1.24. In my .jsp files I'm using a class for getting the content out of a MySQL Database. All of the needed Classes are in the CLASSPATH. The Sun JRE 1.4.1 is the same as before. But now, i get the following Output when i try to call the jsp Page: - org.apache.jasper.JasperException: Unable to compile class for JSP An error occurred at line: 202 in the jsp file: /home.jsp Generated servlet error: [javac] Since fork is true, ignoring compiler setting. [javac] Compiling 1 source file [javac] Since fork is true, ignoring compiler setting. [javac] /usr/jakarta-tomcat- 4.1.24/work/Standalone/localhost/israel/home_jsp.java:178: cannot resolve symbol [javac] symbol : variable IsraelMySQL [javac] location: class org.apache.jsp.home_jsp [javac] out.print( IsraelMySQL.getNews() ); [javac] ^ - But if I load the the same class from my Servlet-Application it can be loaded successfully. Can andybody help me please? This already gonna drive me crazy. Roland - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat 4.1.24: /admin dir in our .war gets 404
Resending cause my other post seems to be lost. Hello all, We deploy our war file to the / context on our tomcat server (we use apache as our webserver, with mod_jk). We just added a /admin directory into our application, and we are trying to deploy the app. At first, when I went to http://tomcatserver/admin/ I was getting Tomcat's admin app, which I believe is served out of Tomcat's /server/webapps/admin directory structure. I renamed this hoping to get access to our webapps admin dir, but I simply get a 404 from the Tomcat server. (NOTE: this is not a 404 from apache, it is a Tomcat error) Where is the configuration for this /admin context? I can't find it anywhere. Thank you, Ian.
Re: Strange Problem with Tomcat 4.1.24
Hello I'm currently using eclipse but there are around 25 classes which depending to each other. This main classes are the framework and there are severeral Applications which was written with this framework. Isn't there a possibility to downgrade the handling of the jsp files? Roland Shapira, Yoav wrote: Howdy, Really? I whole applications contains more than 10'000 lines of code (java code). This will take me more then 4 days to changes everything. Not if you know any perl or other efficient text processing languages. Or have access to an IDE which will repackage classes for you: this is a one minute, point and click operation in Eclipse for example. Is there no other way to do that. It it was working before? If you can't do it at this time, you can stay with your current version of tomcat. Yoav Shapira This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Deserializing data objects using InMemoryReplicationManager on Tomcat cluster
Sorry, I meant / not . I have this running on a two node cluster, and even though the logs show this message on both nodes in catalina.out, I know that the data is replicating. I can shutdown one node, and the session data has persisted on the other. Here is the log message: [InMemoryReplicationManager] Failed to deserialize the session! java.lang.ClassNotFoundException: [Lnet.afni.webdevelopment.peoplesoftbonus.data.BonusSearchData; at org.apache.catalina.loader.StandardClassLoader.loadClass(Unknown Source) at org.apache.catalina.loader.StandardClassLoader.loadClass(Unknown Source) at org.apache.catalina.session.ReplicationStream.resolveClass(ReplicationStream .java:124) at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1513) at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1435) at java.io.ObjectInputStream.readArray(ObjectInputStream.java:1560) at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1271) at java.io.ObjectInputStream.readObject(ObjectInputStream.java:324) at org.apache.catalina.session.StandardSession.readObject(Unknown Source) at org.apache.catalina.session.StandardSession.readObjectData(Unknown Source) at org.apache.catalina.session.ReplicatedSession.readObjectData(ReplicatedSessi on.java:334) at org.apache.catalina.session.InMemoryReplicationManager.readSession(InMemoryR eplicationManager.java:529) at org.apache.catalina.session.InMemoryReplicationManager.messageReceived(InMem oryReplicationManager.java:831) at org.apache.catalina.session.InMemoryReplicationManager.messageDataReceived(I nMemoryReplicationManager.java:915) at org.apache.catalina.cluster.ObjectReader.append(ObjectReader.java:45) at org.apache.catalina.cluster.WorkerThread.drainChannel(WorkerThread.java:121) at org.apache.catalina.cluster.WorkerThread.run(WorkerThread.java:60) [InMemoryReplicationManager] Unable to receive message through TCP channel java.lang.NullPointerException at org.apache.catalina.session.InMemoryReplicationManager.messageReceived(InMem oryReplicationManager.java:832) at org.apache.catalina.session.InMemoryReplicationManager.messageDataReceived(I nMemoryReplicationManager.java:915) at org.apache.catalina.cluster.ObjectReader.append(ObjectReader.java:45) at org.apache.catalina.cluster.WorkerThread.drainChannel(WorkerThread.java:121) at org.apache.catalina.cluster.WorkerThread.run(WorkerThread.java:60) -Original Message- From: Filip Hanik [mailto:[EMAIL PROTECTED] Sent: Friday, June 13, 2003 11:13 AM To: Tomcat Users List Subject: RE: Deserializing data objects using InMemoryReplicationManager on Tomcat cluster it should be in WEB-INF/classes/some/package/Employee.class is that what you meant? never had this problem myself, what version of Tomcat? also, can you send the log trace for this Filip -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Friday, June 13, 2003 9:10 AM To: [EMAIL PROTECTED] Subject: RE: Deserializing data objects using InMemoryReplicationManager on Tomcat cluster WEB-INF/classes/some.package.Employee If this Employee object is put in the session and then replicated across the nodes for the given web application, the other nodes will have ClassNotFoundExceptions when the InMemoryReplicationManager goes to deserialize the session contents. I see this exception in catalina.out when the debug level for the InMemoryReplicationManager is set to 10. -Original Message- From: Filip Hanik [mailto:[EMAIL PROTECTED] Sent: Friday, June 13, 2003 11:01 AM To: Tomcat Users List Subject: RE: Deserializing data objects using InMemoryReplicationManager on Tomcat cluster I haven't seen this problem, where is your Employee class file sitting? Filip -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Friday, June 13, 2003 8:24 AM To: [EMAIL PROTECTED] Subject: Deserializing data objects using InMemoryReplicationManager on Tomcat cluster I have noticed when using the InMemoryReplicationManager for web applications on a Tomcat cluster that you will encounter a ClassNotFoundException when trying to deserialize the session contents of serialized data objects specific to the web application (i.e. a given web application may have an Employee class that is stored in the session). Although this ClassNotFoundException is thrown by the InMemoryReplicationManager, it appears that the class actually is deserialized and replicated across the nodes of the cluster. My question is if this is an accurate assertion despite the ClassNotFoundException? Also, why is there a ClassNotFoundException being thrown? Is this because the InMemoryReplicationManager does not use the Web Application Class Loader, Shared Class
getResourceAsStream and relative paths in web.xml
List, I'm following a twist on some advice that I got from Yoav Shapira. But in playing to learn more I ran across something that I have not been able to solve from reading the documentation. I want to put the relative path to a user=password property file in the web.xml. Given: #web.xml ... servlet servlet-nameProtectedPage/servlet-name servlet-classcoreservlets.ProtectedPage/servlet-class init-param param-namepasswordFile/param-name param-value/WEB-INF/lib/passwords.properties/param-value !-- want to avoid making this absolute to the file system. i.e. c:\path\to\file; naturally this is ugly and not portable. -- /init-param /servlet ... So I got this to work: ... public void init(ServletConfig config) throws ServletException { super.init(config); try { this.passwordFile = config.getInitParameter( passwordFile ); this.passwords = new Properties(); passwords.load( config.getServletContext() .getResourceAsStream( passwordFile ) ); } catch( IOException ioe ) {} } ... *But* this did not work, which I guess is a relative issue: ... public void init(ServletConfig config) throws ServletException { super.init(config); try { this.passwordFile = config.getInitParameter( passwordFile ); this.passwords = new Properties(); passwords.load( new FileInputStream( passwordFile ); } catch( IOException ioe ) {} } ... Can someone summarize why the second example does not work with relative paths? I understand why the first one does. TIA Tim - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Strange Problem with Tomcat 4.1.24
Howdy, I'm currently using eclipse but there are around 25 classes which depending to each other. This main classes are the framework and there are severeral Applications which was written with this framework. Isn't there a possibility to downgrade the handling of the jsp files? Eclipse will repackage and update references. Applications were written against version X of your framework, which had no packages. When you repackage the framework to work in tomcat 4.x, call it framework version X.2 or whatever. Then you get update and migrate applications to the new framework and tomcat 4.x gradually, one at a time. I don't mean to say this isn't annoying. But it's a common procedure, and it really doesn't have to be very time-consuming given the proper tools: in this case Eclipse and versioning. Yoav Shapira This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Deserializing data objects using InMemoryReplicationManager on Tomcat cluster
where is this class located? net.afni.webdevelopment.peoplesoftbonus.data.BonusSearchData Filip -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Friday, June 13, 2003 9:34 AM To: [EMAIL PROTECTED] Subject: RE: Deserializing data objects using InMemoryReplicationManager on Tomcat cluster Sorry, I meant / not . I have this running on a two node cluster, and even though the logs show this message on both nodes in catalina.out, I know that the data is replicating. I can shutdown one node, and the session data has persisted on the other. Here is the log message: [InMemoryReplicationManager] Failed to deserialize the session! java.lang.ClassNotFoundException: [Lnet.afni.webdevelopment.peoplesoftbonus.data.BonusSearchData; at org.apache.catalina.loader.StandardClassLoader.loadClass(Unknown Source) at org.apache.catalina.loader.StandardClassLoader.loadClass(Unknown Source) at org.apache.catalina.session.ReplicationStream.resolveClass(Replica tionStream .java:124) at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1513) at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1435) at java.io.ObjectInputStream.readArray(ObjectInputStream.java:1560) at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1271) at java.io.ObjectInputStream.readObject(ObjectInputStream.java:324) at org.apache.catalina.session.StandardSession.readObject(Unknown Source) at org.apache.catalina.session.StandardSession.readObjectData(Unknown Source) at org.apache.catalina.session.ReplicatedSession.readObjectData(Repli catedSessi on.java:334) at org.apache.catalina.session.InMemoryReplicationManager.readSession (InMemoryR eplicationManager.java:529) at org.apache.catalina.session.InMemoryReplicationManager.messageRece ived(InMem oryReplicationManager.java:831) at org.apache.catalina.session.InMemoryReplicationManager.messageData Received(I nMemoryReplicationManager.java:915) at org.apache.catalina.cluster.ObjectReader.append(ObjectReader.java:45) at org.apache.catalina.cluster.WorkerThread.drainChannel(WorkerThread .java:121) at org.apache.catalina.cluster.WorkerThread.run(WorkerThread.java:60) [InMemoryReplicationManager] Unable to receive message through TCP channel java.lang.NullPointerException at org.apache.catalina.session.InMemoryReplicationManager.messageRece ived(InMem oryReplicationManager.java:832) at org.apache.catalina.session.InMemoryReplicationManager.messageData Received(I nMemoryReplicationManager.java:915) at org.apache.catalina.cluster.ObjectReader.append(ObjectReader.java:45) at org.apache.catalina.cluster.WorkerThread.drainChannel(WorkerThread .java:121) at org.apache.catalina.cluster.WorkerThread.run(WorkerThread.java:60) -Original Message- From: Filip Hanik [mailto:[EMAIL PROTECTED] Sent: Friday, June 13, 2003 11:13 AM To: Tomcat Users List Subject: RE: Deserializing data objects using InMemoryReplicationManager on Tomcat cluster it should be in WEB-INF/classes/some/package/Employee.class is that what you meant? never had this problem myself, what version of Tomcat? also, can you send the log trace for this Filip -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Friday, June 13, 2003 9:10 AM To: [EMAIL PROTECTED] Subject: RE: Deserializing data objects using InMemoryReplicationManager on Tomcat cluster WEB-INF/classes/some.package.Employee If this Employee object is put in the session and then replicated across the nodes for the given web application, the other nodes will have ClassNotFoundExceptions when the InMemoryReplicationManager goes to deserialize the session contents. I see this exception in catalina.out when the debug level for the InMemoryReplicationManager is set to 10. -Original Message- From: Filip Hanik [mailto:[EMAIL PROTECTED] Sent: Friday, June 13, 2003 11:01 AM To: Tomcat Users List Subject: RE: Deserializing data objects using InMemoryReplicationManager on Tomcat cluster I haven't seen this problem, where is your Employee class file sitting? Filip -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Friday, June 13, 2003 8:24 AM To: [EMAIL PROTECTED] Subject: Deserializing data objects using InMemoryReplicationManager on Tomcat cluster I have noticed when using the InMemoryReplicationManager for web applications on a Tomcat cluster that you will encounter a ClassNotFoundException when trying to deserialize the session contents of serialized data objects specific to the web application (i.e. a given web application may have an Employee class that is stored in the
RE: getResourceAsStream and relative paths in web.xml
Howdy, *But* this did not work, which I guess is a relative issue: ... public void init(ServletConfig config) throws ServletException { super.init(config); try { this.passwordFile = config.getInitParameter( passwordFile ); this.passwords = new Properties(); passwords.load( new FileInputStream( passwordFile ); } catch( IOException ioe ) {} } ... Can someone summarize why the second example does not work with relative paths? I understand why the first one does. Two reasons, one certain and one possible: 1. Certainly, using a FileXXX class will attempt to interpret the init parameter value (/WEB-INF...) is an absolute path, because that's how absolute paths are defined for files. 2. If you happen to be running from a packed .war file, you may NPE when trying to construct a FileInputStream as File-based accesses are not a given in a packed .war. Yoav Shapira This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: getResourceAsStream and relative paths in web.xml
Howdy, Oh and by the way, it's a good habit to override the init() method for a servlet rather than the init(ServletConfig) one. Simply so you don't accidentally forget to call super(config). Yoav Shapira Millennium ChemInformatics -Original Message- From: Shapira, Yoav Sent: Friday, June 13, 2003 12:42 PM To: Tomcat Users List; [EMAIL PROTECTED] Subject: RE: getResourceAsStream and relative paths in web.xml Howdy, *But* this did not work, which I guess is a relative issue: ... public void init(ServletConfig config) throws ServletException { super.init(config); try { this.passwordFile = config.getInitParameter( passwordFile ); this.passwords = new Properties(); passwords.load( new FileInputStream( passwordFile ); } catch( IOException ioe ) {} } ... Can someone summarize why the second example does not work with relative paths? I understand why the first one does. Two reasons, one certain and one possible: 1. Certainly, using a FileXXX class will attempt to interpret the init parameter value (/WEB-INF...) is an absolute path, because that's how absolute paths are defined for files. 2. If you happen to be running from a packed .war file, you may NPE when trying to construct a FileInputStream as File-based accesses are not a given in a packed .war. Yoav Shapira This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Dumb Tomcat question
Thanks for the info. What about CATALINA_HOME is it mandatory for me to set that env. variable ? -- how does this work when i have two instances -Bala At 12:16 PM 6/13/2003 -0400, you wrote: Howdy, It's not a dumb question ;) I need to run 2 instances on Tomcat 4.1.24 on one unix physical host. Could you pl. let me know 1) What are the environment variables that need to be set for both the instances ? - CATALINA_HOME , PATH CLASSPATH 2) Can I set CATALINA_HOME for both instances ? -- how would this work Simply install tomcat in two separate directories, let's say /usr/local/tomcat1 and /usr/local/tomcat2. That's about it. The startup/shutdown scripts are intelligent enough to use relative paths, so they won't interfere with each other. You don't need to specify CLASSPATH at all, as tomcat ignores that anyways. Yoav Shapira This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Deserializing data objects using InMemoryReplicationManager on Tomcat cluster
WEB-INF/classes/net/afni/webdevelopment/peoplesoftbonus/data/BonusSearchData -Original Message- From: Filip Hanik [mailto:[EMAIL PROTECTED] Sent: Friday, June 13, 2003 11:41 AM To: Tomcat Users List Subject: RE: Deserializing data objects using InMemoryReplicationManager on Tomcat cluster where is this class located? net.afni.webdevelopment.peoplesoftbonus.data.BonusSearchData Filip -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Friday, June 13, 2003 9:34 AM To: [EMAIL PROTECTED] Subject: RE: Deserializing data objects using InMemoryReplicationManager on Tomcat cluster Sorry, I meant / not . I have this running on a two node cluster, and even though the logs show this message on both nodes in catalina.out, I know that the data is replicating. I can shutdown one node, and the session data has persisted on the other. Here is the log message: [InMemoryReplicationManager] Failed to deserialize the session! java.lang.ClassNotFoundException: [Lnet.afni.webdevelopment.peoplesoftbonus.data.BonusSearchData; at org.apache.catalina.loader.StandardClassLoader.loadClass(Unknown Source) at org.apache.catalina.loader.StandardClassLoader.loadClass(Unknown Source) at org.apache.catalina.session.ReplicationStream.resolveClass(Replica tionStream .java:124) at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1513) at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1435) at java.io.ObjectInputStream.readArray(ObjectInputStream.java:1560) at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1271) at java.io.ObjectInputStream.readObject(ObjectInputStream.java:324) at org.apache.catalina.session.StandardSession.readObject(Unknown Source) at org.apache.catalina.session.StandardSession.readObjectData(Unknown Source) at org.apache.catalina.session.ReplicatedSession.readObjectData(Repli catedSessi on.java:334) at org.apache.catalina.session.InMemoryReplicationManager.readSession (InMemoryR eplicationManager.java:529) at org.apache.catalina.session.InMemoryReplicationManager.messageRece ived(InMem oryReplicationManager.java:831) at org.apache.catalina.session.InMemoryReplicationManager.messageData Received(I nMemoryReplicationManager.java:915) at org.apache.catalina.cluster.ObjectReader.append(ObjectReader.java:45) at org.apache.catalina.cluster.WorkerThread.drainChannel(WorkerThread .java:121) at org.apache.catalina.cluster.WorkerThread.run(WorkerThread.java:60) [InMemoryReplicationManager] Unable to receive message through TCP channel java.lang.NullPointerException at org.apache.catalina.session.InMemoryReplicationManager.messageRece ived(InMem oryReplicationManager.java:832) at org.apache.catalina.session.InMemoryReplicationManager.messageData Received(I nMemoryReplicationManager.java:915) at org.apache.catalina.cluster.ObjectReader.append(ObjectReader.java:45) at org.apache.catalina.cluster.WorkerThread.drainChannel(WorkerThread .java:121) at org.apache.catalina.cluster.WorkerThread.run(WorkerThread.java:60) -Original Message- From: Filip Hanik [mailto:[EMAIL PROTECTED] Sent: Friday, June 13, 2003 11:13 AM To: Tomcat Users List Subject: RE: Deserializing data objects using InMemoryReplicationManager on Tomcat cluster it should be in WEB-INF/classes/some/package/Employee.class is that what you meant? never had this problem myself, what version of Tomcat? also, can you send the log trace for this Filip -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Friday, June 13, 2003 9:10 AM To: [EMAIL PROTECTED] Subject: RE: Deserializing data objects using InMemoryReplicationManager on Tomcat cluster WEB-INF/classes/some.package.Employee If this Employee object is put in the session and then replicated across the nodes for the given web application, the other nodes will have ClassNotFoundExceptions when the InMemoryReplicationManager goes to deserialize the session contents. I see this exception in catalina.out when the debug level for the InMemoryReplicationManager is set to 10. -Original Message- From: Filip Hanik [mailto:[EMAIL PROTECTED] Sent: Friday, June 13, 2003 11:01 AM To: Tomcat Users List Subject: RE: Deserializing data objects using InMemoryReplicationManager on Tomcat cluster I haven't seen this problem, where is your Employee class file sitting? Filip -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Friday, June 13, 2003 8:24 AM To: [EMAIL PROTECTED] Subject: Deserializing data objects using InMemoryReplicationManager on Tomcat cluster I have noticed when using
A few problems setting up JDBC using 4.1.24 (win2k)
When I access this URL: http://localhost:8080/tests/test.jsp Which contains a modified version of the JDBC test app for MySQL. I get this error: org.apache.jasper.JasperException: Unable to compile class for JSP An error occurred at line: -1 in the jsp file: null Generated servlet error: [javac] Since fork is true, ignoring compiler setting. [javac] Compiling 1 source file [javac] Since fork is true, ignoring compiler setting. [javac] C:\Program Files\Apache Group\Tomcat 4.1\work\Standalone\localhost\tests\test_jsp.java:48: cannot resolve symbol [javac] symbol : class mytest [javac] location: package foo [javac] foo.mytest tst = new foo.mytest(); [javac]^ [javac] C:\Program Files\Apache Group\Tomcat 4.1\work\Standalone\localhost\tests\test_jsp.java:48: cannot resolve symbol [javac] symbol : class mytest [javac] location: package foo [javac] foo.mytest tst = new foo.mytest(); [javac] ^ [javac] 2 errors I have mytest.java in WEB-INF/classes/foo but I cannot compile it. The compiler cannot find javax.sql.* I have the EE and SE JDKs installed. Is tomcat supposed to try to compile this? Otherwise, what needs to be set up to compile the thing? mytest.java looks like this: package foo; import javax.naming.*; import javax.sql.*; import java.sql.*; public class mytest { String foo = Not Connected; String bar = ; public void init() { try{ Context ctx = new InitialContext(); if(ctx == null ) throw new Exception(Boom - No Context); DataSource ds = (DataSource)ctx.lookup( java:comp/env/jdbc/testcase); if (ds != null) { Connection conn = ds.getConnection(); if(conn != null) { foo = Got Connection +conn.toString(); Statement stmt = conn.createStatement(); ResultSet rst = stmt.executeQuery( select ref,title from cases where id=4); if(rst.next()) { foo=rst.getString(1); bar=rst.getString(2); } conn.close(); } } }catch(Exception e) { e.printStackTrace(); } } public String getFoo() { return foo; } public String getBar() { return bar;} } The java compiler complains about javax.sql and the DataSource class. ALSO, When I use the admin tool and look at the /tests context (where I have set up a MySQL datasource), I get this error when trying to look at the datasource (There is no problem with a shared datasource): ype Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception org.apache.jasper.JasperException: Exception retrieving attribute 'driverClassName' at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:254) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:684) at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:432) at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:356) at org.apache.struts.action.ActionServlet.processActionForward(ActionServlet.java:1759) at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1596) at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:492) at javax.servlet.http.HttpServlet.service(HttpServlet.java:740) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:684) at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:432) at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:356) at org.apache.struts.action.ActionServlet.processActionForward(ActionServlet.java:1759) at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1596) at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:492) at javax.servlet.http.HttpServlet.service(HttpServlet.java:740) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256) at
Tomcat 4.1.24: /admin dir in our .war gets 404
Hello all, We deploy our war file to the / context on our tomcat server (we use apache as our webserver, with mod_jk). We just added a /admin directory into our application, and we are trying to deploy the app. At first, when I went to http://tomcatserver/admin/ I was getting Tomcat's admin app, which I believe is served out of Tomcat's /server/webapps/admin directory structure. I renamed this hoping to get access to our webapps admin dir, but I simply get a 404 from the Tomcat server. (NOTE: this is not a 404 from apache, it is a Tomcat error) Where is the configuration for this /admin context? I can't find it anywhere. Thank you, Ian. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Subject: Nightmare with Tomcat 4.1 and SSL configuration
Cosmin I was stuck on the same issue for sometime. Then I realised that I had not put the jsse jar in the classpath. So I copied the 3 jars - jsse.jar, jnet.jar, jcert.jar into %JAVA_HOME%\jre\lib\ext. After that the problem went away. However, I would like to understand how I can configure tomcat to see the logs. When I was getting I didn't find an easy way to figure out why the error was coming. This communication is for informational purposes only. It is not intended as an offer or solicitation for the purchase or sale of any financial instrument or as an official confirmation of any transaction. All market prices, data and other information are not warranted as to completeness or accuracy and are subject to change without notice. Any comments or statements made herein do not necessarily reflect those of J.P. Morgan Chase Co., its subsidiaries and affiliates. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
servlet reloading question
Hi all! I'm hoping someone can give me a high level view of what is going on here. I'm using version 4.18, and I though I was having problems reloading servlets. server.xml has my app configured as reloadable, but no matter what I do with my class files -- touch them, rebuild them, REMOVE them, the app does not reload when using it via apache and the warp connector on port 80. However, when using the app directly through tomcat on port 8080, the servlet reloads as expected. In fact, I can view two different versions of the servlet simultaneously by connecting to ports 80 and on 8080. My questions are, is this normal and expected behavior? to have two class files loaded depending on the port? Is there a way short of restarting tomcat to force reload of the servlet on port 80? Does my choice of connector make a difference? Thanks and regards! Bill - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Strange Problem with Tomcat 4.1.24
Do you have the java_home variable set to ur java directory. if not that might be the problem. - Original Message - From: Roland Kaeser [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, June 13, 2003 12:02 PM Subject: Strange Problem with Tomcat 4.1.24 Hello I've try to move a JSP/Servlet Application from Tomcat 3.2.4 to 4.1.24. In my .jsp files I'm using a class for getting the content out of a MySQL Database. All of the needed Classes are in the CLASSPATH. The Sun JRE 1.4.1 is the same as before. But now, i get the following Output when i try to call the jsp Page: - org.apache.jasper.JasperException: Unable to compile class for JSP An error occurred at line: 202 in the jsp file: /home.jsp Generated servlet error: [javac] Since fork is true, ignoring compiler setting. [javac] Compiling 1 source file [javac] Since fork is true, ignoring compiler setting. [javac] /usr/jakarta-tomcat-4.1.24/work/Standalone/localhost/israel/home_jsp.java:17 8: cannot resolve symbol [javac] symbol : variable IsraelMySQL [javac] location: class org.apache.jsp.home_jsp [javac] out.print( IsraelMySQL.getNews() ); [javac] ^ - But if I load the the same class from my Servlet-Application it can be loaded successfully. Can andybody help me please? This already gonna drive me crazy. Roland - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Dumb Tomcat question
it gets set in the startup scripts for you Filip -Original Message- From: Balakrishna Kudaravalli [mailto:[EMAIL PROTECTED] Sent: Friday, June 13, 2003 9:46 AM To: Tomcat Users List Subject: RE: Dumb Tomcat question Thanks for the info. What about CATALINA_HOME is it mandatory for me to set that env. variable ? -- how does this work when i have two instances -Bala At 12:16 PM 6/13/2003 -0400, you wrote: Howdy, It's not a dumb question ;) I need to run 2 instances on Tomcat 4.1.24 on one unix physical host. Could you pl. let me know 1) What are the environment variables that need to be set for both the instances ? - CATALINA_HOME , PATH CLASSPATH 2) Can I set CATALINA_HOME for both instances ? -- how would this work Simply install tomcat in two separate directories, let's say /usr/local/tomcat1 and /usr/local/tomcat2. That's about it. The startup/shutdown scripts are intelligent enough to use relative paths, so they won't interfere with each other. You don't need to specify CLASSPATH at all, as tomcat ignores that anyways. Yoav Shapira This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]