mail.jar problems
Hello, I have a problem with mail.jar and Tomcat-5.0.x. A webapp which uses javax.mail through jndi only works when this jar is placed inside the common/endorsed dir. If it's been placed in WEB-INF/lib this error occurs: 10:10:09,880 ERR 6082 kb org.mmbase.servlet.MMBaseServlet error.74 - javax/mail/Sessionjava.lang.NoClassDefFoundError: javax/mail/Session at org.apache.naming.factory.MailSessionFactory$1.run(MailSessionFactory.java:163) at java.security.AccessController.doPrivileged(Native Method) at org.apache.naming.factory.MailSessionFactory.getObjectInstance(MailSessionFactory.java:147) at org.apache.naming.factory.ResourceFactory.getObjectInstance(ResourceFactory.java:176) at javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java:301) at org.apache.naming.NamingContext.lookup(NamingContext.java:837) at org.apache.naming.NamingContext.lookup(NamingContext.java:184) at org.apache.naming.NamingContext.lookup(NamingContext.java:825) at org.apache.naming.NamingContext.lookup(NamingContext.java:197) at org.mmbase.module.JMSendMail.init(JMSendMail.java:53) at org.mmbase.module.Module.startModule(Module.java:83) at org.mmbase.module.Module.startModules(Module.java:282) at org.mmbase.module.Module.getModule(Module.java:326) at org.mmbase.module.core.MMBase.getMMBase(MMBase.java:428) at org.mmbase.servlet.MMBaseServlet.init(MMBaseServlet.java:168) at javax.servlet.GenericServlet.init(GenericServlet.java:256) at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1044) Tomcat 5 doesn't ship with mail.jar, but because of this problem my webapp isn't running out of the box and people who want to use it have to copy this jar (and activation.jar) manually. Is there a solution to this problem? Gerard - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Garbage in page
Hello, We're using Tomcat4.0.1 and our site consists of a lot of jsp-pages (with taglibs). Sometimes we're experiencing some strange problems, like: - A lot of 'strange' characters in a jsp-page which is being sent to the client, sometimes it looks like the http-headers mixed with the hmtl-page. - a jsp page isn't sent to the client as 'txt/html', but as something binary, because the client wants to download it. These problems are not allways with the same page, and are also not happening all the time. I don't know what to do about it.what could it be? Gerard -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Tomcat 4.0.1 Performance tuning problems
Remy Maucherat wrote: I tried this (not in a live-situation, but with ab), but I don't see any difference. I can't reproduce the situation with ab. But it's still happening in the live-server. Could it be 150 processors isn't enough in our situation? Maybe. It depends on the number of simultaneous users accessing the server. If you go beyond what a single standalone Tomcat can provide (which is constrained by your OS, usually), you have to set up some load balancing (using JK and TC 4.0.2). I know. At the moment we added a lot of oscache-tags to our jsp-pages and increased the maxProcessors to 255. Untill now we didn't ran out of processors. 150 Processors for 30 request/day were probably not enough. By your comments, I understand that you also get the out of processors problem with the HTTP/1.0 connector. Is that right ? Not exactly. I did some testing using ab, and both the HTTP/1.0 and HTTP/1.1 connector ran out of processors, but it was when using a maxProcessors of 150 and more than 150 simultaneous requests. And when ab finished the server was still running. So this is normal behaviour. I couldn't reproduce the situation where I got the out off processors message and the server allmost crashed as it did in the live situation. Gerard -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Tomcat 4.0.1 Performance tuning problems
Remy Maucherat wrote: I tried this (not in a live-situation, but with ab), but I don't see any difference. I can't reproduce the situation with ab. But it's still happening in the live-server. Could it be 150 processors isn't enough in our situation? Maybe. It depends on the number of simultaneous users accessing the server. If you go beyond what a single standalone Tomcat can provide (which is constrained by your OS, usually), you have to set up some load balancing (using JK and TC 4.0.2). By your comments, I understand that you also get the out of processors problem with the HTTP/1.0 connector. Is that right ? I would love the help you on this one, but I find it very hard to reproduce it :( Same for me. That's why the bug is still not resolved :-( I'll do some more testing and keep you informed. Is there a way (besides netstat) to monitor the incoming connections? Or to view the status of the connectionpool? At this moment you only get messages in your log about starting extra processors, but not when (if) these are being removed. Or isn't that the case, when the server isn't so busy the number of processors will decrease 'till the number of the minProcessors? Gerard -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Tomcat 4.0.1 Performance tuning problems
Remy Maucherat wrote: Hello, We're having some troubles with our Tomcat4.0.1. I'm not sure if there's a problem in the configuration or if it's something else. First the configuration: Sun-Fire-280R/Solaris 8 1024MB Memory Sun jdk1.3.1_01 with 512MB for the jvm and the following configuration for the proxy-connector: Connector className=org.apache.catalina.connector.http.HttpConnector port=8081 minProcessors=100 maxProcessors=150 enableLookups=false acceptCount=20 debug=0 connectionTimeout=15000 proxyPort=80/ The server is getting about 30 requests (hits) a day. A while after starting the server we're getting the following message: 2002-02-07 21:51:29 HttpConnector[8081] No processor available, rejecting this connection It looks like the connections aren't freed after being used. But I'm not sure how I can test it. Allmost every page contains database-queries, but we're using heavy caching (in memory and oscaches for the jsp-pages). What can I do, increase the maxprocessors? But how far can I go, I did some tests, but it looks like more than 150 isn't possible. How many memory do I need per processor? If somebody could give some hints. Bug 5735 (http://nagoya.apache.org/bugzilla/show_bug.cgi?id=5735) is currently the most wanted Tomcat bug. Unfortunately, it's very hard to debug or find in which component the bug is, so if you or anyone else can help, that would be great. The bug could be either: - in the connector code, or in the networking code - in the thread pooling code (in which case the other connectors, like JK, could be affected since they reuse the code) You can try the HTTP/1.0 connector (it's commented out in the default configuration), and see if there are still problems. If the problems are gone, then it's likely the cause is the first item (although I have no idea what it could be at this point). I tried this (not in a live-situation, but with ab), but I don't see any difference. I can't reproduce the situation with ab. But it's still happening in the live-server. Could it be 150 processors isn't enough in our situation? I would love the help you on this one, but I find it very hard to reproduce it :( I'll do some more testing and keep you informed. Gerard -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Bad escape sequence using jikes
Hello, We sometimes get errormessages saying: Bad escape sequence. Most of the time it occures when there are certain characters like é in the jsp-pages. It happens only when the jsp-page is created on windows. We're using tomcat4.0.1 and jikes on solaris. Is there a way to set the encoding jikes must use? Gerard -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Tomcat 4.0.1 Performance tuning problems
Hello, We're having some troubles with our Tomcat4.0.1. I'm not sure if there's a problem in the configuration or if it's something else. First the configuration: Sun-Fire-280R/Solaris 8 1024MB Memory Sun jdk1.3.1_01 with 512MB for the jvm and the following configuration for the proxy-connector: Connector className=org.apache.catalina.connector.http.HttpConnector port=8081 minProcessors=100 maxProcessors=150 enableLookups=false acceptCount=20 debug=0 connectionTimeout=15000 proxyPort=80/ The server is getting about 30 requests (hits) a day. A while after starting the server we're getting the following message: 2002-02-07 21:51:29 HttpConnector[8081] No processor available, rejecting this connection It looks like the connections aren't freed after being used. But I'm not sure how I can test it. Allmost every page contains database-queries, but we're using heavy caching (in memory and oscaches for the jsp-pages). What can I do, increase the maxprocessors? But how far can I go, I did some tests, but it looks like more than 150 isn't possible. How many memory do I need per processor? If somebody could give some hints. Gerard . -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Tomcat 4.0.1/Apache 1.3/Warp Connection
BoD wrote: Ok I believe I need the latest nightly build of mod_webapp. I checked http://nagoya.apache.org/~pier/ but the problem is I can't build it myself (Windows). Is there a place where I could find the latest mod_webapp, compiled for windows ? IIRC you only need the java-part of mod_webapp. Gerard -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Tomcat 4.0.1/Apache 1.3/Warp Connection
BoD wrote: I have a similar problem I think : My webapp is not in the webapp directory, but elsewhere on my hard drive. I configured the server.xml to indicate this information (Context path=/bod docBase=c:\tmp\bod ...). The /bod context works fine in tomcat standalone (http://localhost:8080/bod) but the warp connection looks for another path, in the webapp directory !! I think you have to download a nightly build of the mod_webapp from http://nagoya.apache.org/~pier/, or build one yourself from cvs. The released version didn't allow a different location for webapps. Gerard -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Tomcat 4.0.1 Webapp Module
Matt Sales wrote: Hello, I am upgrading from JServ to Tomcat 4.0.1 on RH Linux 7.2 with Apache 1.3.22. Under JServ, I relied heavily upon JSSI. Now, I'm migrating the .jhtml files to .jsp. However, with mod_webapp, it seems I can only map _directory paths_ to servlets, not _file extensions_. With JServ--or even tomcat 3.2.x-- you could map specific file extensions to be handled by the servlet engine using mod_jserv or mod_jk (i.e., ApJServAction and ApJkMount directives). In the Tomcat 4.0.1 documentation I see no mention of mod_jserv (understandably) or mod_jk, and mod_webapp does not seem to be capable of routing of document requests to Tomcat from Apache on a file-by-file basis. Am I missing the point on mod_webapp? It doesn't seem like a very capable replacement for mod_jk (or mod_jserv). Is it possible to integrate mod_jk into Tomcat 4.0.1? How else could I parse .jsp files from a directory under apache rather than a webapp directory? As far as I understand it, mod_webapp maps a complete web application (so the context path, eg /bla). If the settings for the web application are ok, mod_webapp will use these. At this moment it isn't possible to let apache handle static-resources, the whole web application is served by tomcat. Someone please correct me if I'm wrong Gerard -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Where IS mod_webapp ??
Endre Stølsvik wrote: On Tue, 20 Nov 2001, Chad Johnson wrote: | The WebApp Module has a little webpage. Take a look here. | | http://nagoya.apache.org/~pier/ Thanks! But I'd also like a more stable release. How do I get that? Take a look at http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4.0.1/bin/ Here you'll find a stable version of mod_webapp (in the linux, macosx, win32, solaris subdir). - And this is *WAY* underdocumented!! Just search the mailinglist archives ;-) Gerard -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Where IS mod_webapp ??
Endre Stølsvik wrote: On Wed, 21 Nov 2001, Gerard van Enk wrote: | Endre Stølsvik wrote: | | On Tue, 20 Nov 2001, Chad Johnson wrote: | | | The WebApp Module has a little webpage. Take a look here. | | | | http://nagoya.apache.org/~pier/ | | Thanks! | | But I'd also like a more stable release. How do I get that? | | | Take a look at | http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4.0.1/bin/ | Here you'll find a stable version of mod_webapp (in the linux, macosx, | win32, solaris subdir). | But not for EAPI of Apache, as mentioned. I get this huge warning when Apache start, saying that this will be unstable, will probably break, almost certain, and remember Murphy's law or something similar. Oops, sorry. I hadn't read the original posting (only the reply). The source can be found in cvs, in the jakarta-tomcat-connectors module. See http://jakarta.apache.org/site/cvsindex.html for more info. Gerard -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Fwd: problem with servlet reloading
Harry Hinch wrote: I am running Tomcat 4 Apache 1.3.20 and Redhat linux 7.1 I am having a problem with servlets reloading when ever I start Apache. I have 2 servlets that I have automatically load when tomcat starts by specifying load-on-startup1/load-on-startup within the servlet /servlet pair in my applications web.xml. I have removed the stand-alone tomcat service and I only have the tomcat-Apache service. I have some logging messages in my servlets. I notice that they appear once when tomcat starts and then the start again when Apache starts. I only want the servlets to load once. can someone please clue me in on how to accomplish this. I've got the same problem (I already started to write an email about it :) ). It looks like the whole web application is deployed again after Apache starts, and it has got something to do with the mod_webapp I think. I didn't remove the stand-alone tomcat service. Gerard -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]