Tomcat 4.1.18: 500+ Servlets locks up on Solaris under load
I have a Solaris server running Tomcat 4.1.18 and Java 1.3.0 with a single CPU and 2GIG RAM. The application has 500+ servlets that were originally developed under JDK 1.17b to run under the old Java Web Server on Windows NT4. The old system seems to handle the load much better than the new version. We have configured the Invoker to load the servlets automatically instead of explicitly naming them in the web.xml. I am launching the Tomcat server with the following parameters: -server -Xms384m -Xmx384m -XX:NewSize=128m -XX:MaxNewSize=128m -Xconcurrentio -Xincgc -verbose:gc under load the Tomcat server runs fine for a bit but once a servlet loads that retrieves a bunch of data, the CPU processing starts to increase until it pegs at 99% (according to TOP). All users then stop responding. The only way to recover is to terminate the process and restart Tomcat. The garbage collection indicates when the app becomes unresponsive the garbage collection shows a lot of full garbage collection cycles but the app never recovers - it essentially goes into an endless loop. Some of the parameters in our server.xml are: I am running Tomcat on port 80 as the root user if that has any bearing on things. Originally we had Apache in the mix, but to simplify figuring out the problems we have configured Tomcat to act as the web server for the time being. Some of the static resource directories are symbolic links. Dov Rosenberg Conviveon Corporation 407-339-1177 ext 102 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat 4.1.18: 500+ Servlets locks up on Solaris under load
I'm not sure if Tomcat is totally to blame, I'm sure when I figure out the problem it will point to our code. The reason I suspect Tomcat at this point is when the app is not under load (i.e. using Jmeter to simulate 10-20 user concurrent load) the app seems OK. the response times are acceptable even under as long as a servlet doesn't retrieve a lot of data. (I didn't write the app, just trying to fix it). The app is running fairly well under JDK 1.17 on Java WebServer on NT but falls on its knees under JDK 1.3.0 and Tomcat 4.1.18. We have done a bunch of other things on Tomcat (not 4.1.18) without having this kind of behavior. Dov Rosenberg On Wednesday, March 5, 2003, at 04:10 PM, Shapira, Yoav wrote: Howdy, Given "once a servlet loads that retrieves a bunch of data, the CPU processing starts to increase until it pegs at 99% (according to TOP). All users then stop responding. The only way to recover is to terminate the process and restart Tomcat. The garbage collection indicates when the app becomes unresponsive the garbage collection shows a lot of full garbage collection cycles but the app never recovers - it essentially goes into an endless loop." what makes you think this is a tomcat problem, as opposed to for example a loop in your app or a memory leak in your app? Yoav Shapira Millennium ChemInformatics -----Original Message- From: Dov Rosenberg [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 05, 2003 3:57 PM To: [EMAIL PROTECTED] Subject: Tomcat 4.1.18: 500+ Servlets locks up on Solaris under load I have a Solaris server running Tomcat 4.1.18 and Java 1.3.0 with a single CPU and 2GIG RAM. The application has 500+ servlets that were originally developed under JDK 1.17b to run under the old Java Web Server on Windows NT4. The old system seems to handle the load much better than the new version. We have configured the Invoker to load the servlets automatically instead of explicitly naming them in the web.xml. I am launching the Tomcat server with the following parameters: -server -Xms384m -Xmx384m -XX:NewSize=128m -XX:MaxNewSize=128m -Xconcurrentio -Xincgc -verbose:gc under load the Tomcat server runs fine for a bit but once a servlet loads that retrieves a bunch of data, the CPU processing starts to increase until it pegs at 99% (according to TOP). All users then stop responding. The only way to recover is to terminate the process and restart Tomcat. The garbage collection indicates when the app becomes unresponsive the garbage collection shows a lot of full garbage collection cycles but the app never recovers - it essentially goes into an endless loop. Some of the parameters in our server.xml are: redirectPort="443" bufferSize="2048" port="8009" connectionTimeout="0" scheme="http" enableLookups="true" secure="false" protocolHandlerClassName="org.apache.jk.server.JkCoyoteHandler" debug="9" disableUploadTimeout="false" ProxyPort="0" maxProcessors="75" minProcessors="5" tcpNoDelay="true" acceptCount="10" useURIValidationHack="false"> className="org.apache.catalina.net.DefaultServerSocketFactory"/> redirectPort="-1" bufferSize="2048" port="80" connectionTimeout="0" scheme="http" enableLookups="true" secure="false" protocolHandlerClassName="org.apache.coyote.http11.Http11Protocol" debug="9" disable UploadTimeout="false" proxyPort="0" maxProcessors="-1" minProcessors="5" tcpNoDelay="true" acceptCount="10" useURIValidationHack="true"> className="org.apache.catalina.net.DefaultServerSocketFactory"/> I am running Tomcat on port 80 as the root user if that has any bearing on things. Originally we had Apache in the mix, but to simplify figuring out the problems we have configured Tomcat to act as the web server for the time being. Some of the static resource directories are symbolic links. Dov Rosenberg Conviveon Corporation 407-339-1177 ext 102 - 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 4.1.18: 500+ Servlets locks up on Solaris under load
We have profiled the app using JProbe and a couple of other tools. Nearly all of the servlets are very simple. They open a connection (from a pool), execute a query, cycle thru the result set, and then close everything (result sets, statements, connection, etc). The profiler does not show any hotspots in the code to speak of. Most of the servlets simply have a bunch of out.println(.); statements in them. We are moving to JDK 1.3.x because we have another app that can't run under 1.4.x yet. I'm not sure if there is much benefit going from 1.3.0 to 1.3.1x, but I am willing to try if that will help. Dov Rosenberg On Wednesday, March 5, 2003, at 04:28 PM, Shapira, Yoav wrote: Howdy, I would suggest profiling just your application, if possible, without a web server at all. Alternatively, run the web server with a profiler (OptimizeIt, JProbe, etc.) and try to allocate memory leaks. The profiler will show tomcat classes as well, so you can try to look for memory leaks there, but I doubt you'd find any. When profiling, be careful not to do it on your production server, as running with a profiler will slow things down a whole lot. As a side note: JDK 1.1.7 is really old. You app may greatly benefit from taking advantage of some of the newer features available in JDK 1.4. Yoav Shapira Millennium ChemInformatics -Original Message- From: Dov Rosenberg [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 05, 2003 4:24 PM To: Tomcat Users List Subject: Re: Tomcat 4.1.18: 500+ Servlets locks up on Solaris under load I'm not sure if Tomcat is totally to blame, I'm sure when I figure out the problem it will point to our code. The reason I suspect Tomcat at this point is when the app is not under load (i.e. using Jmeter to simulate 10-20 user concurrent load) the app seems OK. the response times are acceptable even under as long as a servlet doesn't retrieve a lot of data. (I didn't write the app, just trying to fix it). The app is running fairly well under JDK 1.17 on Java WebServer on NT but falls on its knees under JDK 1.3.0 and Tomcat 4.1.18. We have done a bunch of other things on Tomcat (not 4.1.18) without having this kind of behavior. Dov Rosenberg On Wednesday, March 5, 2003, at 04:10 PM, Shapira, Yoav wrote: Howdy, Given "once a servlet loads that retrieves a bunch of data, the CPU processing starts to increase until it pegs at 99% (according to TOP). All users then stop responding. The only way to recover is to terminate the process and restart Tomcat. The garbage collection indicates when the app becomes unresponsive the garbage collection shows a lot of full garbage collection cycles but the app never recovers - it essentially goes into an endless loop." what makes you think this is a tomcat problem, as opposed to for example a loop in your app or a memory leak in your app? Yoav Shapira Millennium ChemInformatics -Original Message- From: Dov Rosenberg [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 05, 2003 3:57 PM To: [EMAIL PROTECTED] Subject: Tomcat 4.1.18: 500+ Servlets locks up on Solaris under load I have a Solaris server running Tomcat 4.1.18 and Java 1.3.0 with a single CPU and 2GIG RAM. The application has 500+ servlets that were originally developed under JDK 1.17b to run under the old Java Web Server on Windows NT4. The old system seems to handle the load much better than the new version. We have configured the Invoker to load the servlets automatically instead of explicitly naming them in the web.xml. I am launching the Tomcat server with the following parameters: -server -Xms384m -Xmx384m -XX:NewSize=128m -XX:MaxNewSize=128m -Xconcurrentio -Xincgc -verbose:gc under load the Tomcat server runs fine for a bit but once a servlet loads that retrieves a bunch of data, the CPU processing starts to increase until it pegs at 99% (according to TOP). All users then stop responding. The only way to recover is to terminate the process and restart Tomcat. The garbage collection indicates when the app becomes unresponsive the garbage collection shows a lot of full garbage collection cycles but the app never recovers - it essentially goes into an endless loop. Some of the parameters in our server.xml are: connectionTimeout="0" scheme="http" enableLookups="true" secure="false" protocolHandlerClassName="org.apache.jk.server.JkCoyoteHandler" debug="9" disableUploadTimeout="false" ProxyPort="0" maxProcessors="75" minProcessors="5" tcpNoDelay="true" acceptCount="10" useURIValidationHack="false"> I am running Tomcat on port 80 as the root user if that has any bearing on things. Originally we had Apache in the mix, but to simplify figuring out the problems we have configured Tomcat to act as the web server for the time being. Some of the static resource direct
Re: JK2 (cont.)
I would be interested in testing your procedure on Solaris with Tomcat 4.1.18. Dov Rosenberg [EMAIL PROTECTED] On Monday, March 17, 2003, at 04:07 PM, Chris Dodunski wrote: Hello Kent and hello Dave, The good news is that I too finally got JK2 working! It took an entire weekend, but I got there in the end. I would next like to acquire a complete understanding of how workers2.properties and jk2.properties work. At the time of implementing the JK2 connector I was directed to several web sites offering how-to's on the matter. However, I found many of them related to the older JK connector, and apache.org site stated quite clearly that although JK and JK2 were similar in operation, their configurations were very different. Moreover, amongst those JK sites, there were significant variations in configuration. In the end, I decided to tackle it alone. Well, that's not exactly true. Without Dave Short's assistance I would still be struggling, I'm sure. Thank you Dave! I have drafted a procedure for setting up an Apache-Tomcat web server environment, utilising the JK2 connector. I've checked its integrity by doing the same on a second computer - both running WinXP. I am about to try the same on a Linux box. If either of you (or anyone else for that matter) are interested in testing this procedure for correctness, please email me direct. Once it is proven sufficiently true and robust, if the demand is there, I'll post it on my home page. Regards, Chris. -Original Message- From: Kent Kruckeberg [mailto:[EMAIL PROTECTED] Sent: Monday, 17 March 2003 4:43 p.m. To: Tomcat Users List Subject: RE: JK2 (cont.) I think that is exactly it. I had the same problem and had emailed you both when I discovered this was the problem. I had just signed up for this list, though, so I emailed you personally and you probably didn't recognize my addy so deleted the msg. Just wanted to thank you Dave for the help. It was funny that I stumbled upon this user list this weekend and am doing the EXACT same setup as Chris and having the EXACT same problems and getting the EXACT same help you are giving to result in getting it all working! I expect Chris will now too, thanks again. Kent --- "Short, Dave" <[EMAIL PROTECTED]> wrote: It looks as though when you commented out the 8080 in the server.xml file you might have messed up the comments, hence the "--" error message on line 92. It should look like this: Notice the "". Also, if that doesn't help try enclosing your paths in double quotes like so: [config:] #file=${serverRoot}/conf/workers2.properties file="c:/Program Files/Apache Group/Apache2/conf/workers2.properties" debug=0 debugEnv=0 -Original Message- From: Chris Dodunski [mailto:[EMAIL PROTECTED] Sent: Sunday, March 16, 2003 3:27 AM To: Tomcat Users List Subject: Re: JK2 (cont.) Hi again, - Original Message - From: "Short, Dave" <[EMAIL PROTECTED]> To: "'Tomcat Users List'" <[EMAIL PROTECTED]> Sent: Sunday, March 16, 2003 2:30 PM Subject: RE: JK2 (cont.) Paths must match up. Check the paths in the config files I sent against your paths. If they don't match up, adjust the paths in the config files I sent. This configuration works on W2K with Apache 2.0.44 and Tomcat 4.1.18. Comment out 8080 in the server.xml file because Apache will serve up everything except .jsp and servlet files. See the [uri:/examples/*.jsp] and [uri:/examples/servlet/*] in the workers2.properties file? Yes, paths now match up (workers2.properties appears at the end of this post). Now, when Apache starts, I get a fatal error (log extracts below). Windows attempts to shut Apache down - 'send report' dialog etc. - but Apache apparently restarts. Any ideas? At least I am making progress. Well, I hope ;-). <<>> [Sun Mar 16 22:51:44 2003] [notice] Parent: child process exited with status 3221225622 -- Restarting. [Sun Mar 16 22:51:44 2003] [notice] Parent: Created child process 1888 [Sun Mar 16 22:51:44 2003] [notice] Child 1888: Child process is running [Sun Mar 16 22:51:45 2003] [error] mod_jk child init 1 0 [Sun Mar 16 22:51:45 2003] [error] mod_jk child workerEnv in error state 1 [Sun Mar 16 22:51:45 2003] [notice] Child 1888: Acquired the start mutex. [Sun Mar 16 22:51:45 2003] [notice] Child 1888: Starting 250 worker threads. [Sun Mar 16 22:51:54 2003] [notice] Parent: child process exited with status 3221225622 -- Restarting. [Sun Mar 16 22:51:54 2003] [notice] Parent: Created child process 1748 [Sun Mar 16 22:51:54 2003] [notice] Child 1748: Child process is running [Sun Mar 16 22:51:55 2003] [error] mod_jk child init 1 0 [Sun Mar 16 22:51:55 2003] [error] mod_jk child workerEnv in error state 2 [Sun Mar 16 22:51:55 2003] [notice] Child 1748: Acquired the start mutex. [Sun Mar 16 22:51:55 2003] [notice] Child 1748: St
Re: tomcat stops when logout
It sounds like you are running on a Unix platform. If so, you need to run from a c shell and use nohup. Bash seems to terminate the process started whereas c shell will allow it to continue. $ csh mycomputer.com % nohup ./startup.sh & the & puts the process in the background HTH Dov Rosenberg On Wednesday, March 19, 2003, at 12:37 PM, NormW wrote: Good morning. I read in my Tomcat book that shutdown on exit was a known problem with JRE 1.3 on Windows and it recommends upgrading to 1.4 (now 1.4.1). HTH Norm - Original Message - From: "Wey Hueymeei" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, March 20, 2003 4:17 AM Subject: tomcat stops when logout Hello, I am new to tomcat. I manually start tomcat from $CATALINA_HOME/bin/startup.sh as root from ssh terminal. I found everytime I logout, tomcat stops. Am I missing anything? Thanks, Sylvia - 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: Virtual Host - IIS and DNS
You can use host headers on IIS to create virtual hosts. Each of the host headers need to be registered in DNS but they can point to the same IP address host headers only work with HTTP 1.1 - but that shouldn't be a problem with most browsers today. Dov Rosenberg On Wednesday, March 19, 2003, at 06:11 PM, John Ruffin wrote: The box does have a static IP. Pinging www.mycompany.com does resolve to my static IP address. Actually, I have 3 websites/domain names that point to my static IP address and I'd like to use JSP & Struts on all 3. Right now, I'm trying to get 1 to work then I'll go with the others. -Original Message- From: JD Daniels [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 19, 2003 6:00 PM To: Tomcat Users List Subject: RE: Virtual Host - IIS and DNS I have set up Tomcat as a 'web farm'. Basically, it does not matter whos DNS nameserver www.mycompany.com is registered with, as long as the ip address that nameserver resolves it to is the ip of the machine you have tomcat/yourapp on. You do not need to run your own nameservers. What matters is: ping www.mycompany.com pinging www.mycompany.com [xxx.xxx.xxx.xxx] with 32 blah blah - If the xxx is the ip of machine you have tomcat on, you are good to go. The host containers are useful so that you can run virtual ips/domains. If you only have one domain, don't worry about it. I run one linux box with many different (virtual) ips, which resolve to different domains. The host container serves the correct servlets for the right domain. Does your box have a static ip? JD -Original Message- From: John Ruffin [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 19, 2003 2:32 PM To: 'Tomcat Users List' Subject: Virtual Host - IIS and DNS TC 4.1.18, W2K Server, IIS 5 I have a question about this (copied from the TC docs): The Host element represents a virtual host, which is an association of a network name for a server (such as "www.mycompany.com" with the particular server on which Catalina is running. In order to be effective, this name must be registered in the Domain Name Service (DNS) server that manages the Internet domain you belong to My question is: Why does www.mycompany.com have to be registered in the "DNS server" that manages the Internet domain I belong to. In my limited knowledge, I was thinking that as long as www.mycompany.com points to my webserver - DNS could be hosted on any DNS server. Therefore any request that comes to www.mycompany.com/webappname would resolve and forward to TC. Now, since my ISP hosts my DNS and I have TC running on the box will, www.mycompany.com/webappname not work unless I host my own DNS? localhost/webappname works can get www.mycompany.com/webappname to work - I get a 500 error in Explorer in the logs I don't see any errors - isapi.dll seems to be using my worker from worker.properties - yes, I looked in the IIS logs too - can't determine what's causing this. The information in this email is confidential and may be legally privileged. It is intended solely for the addressee, and access by anyone else is unauthorized. If you are not the intended recipient, any disclosure, copying, distribution or any action taken or omitted to be taken in reliance on it, is prohibited and may be unlawful. If you believe that you have received this email in error, please advise us by calling (901) 385 3688, or emailing [EMAIL PROTECTED], and then delete this message and all copies and backups thereof. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] The information in this email is confidential and may be legally privileged. It is intended solely for the addressee, and access by anyone else is unauthorized. If you are not the intended recipient, any disclosure, copying, distribution or any action taken or omitted to be taken in reliance on it, is prohibited and may be unlawful. If you believe that you have received this email in error, please advise us by calling (901) 385 3688, or emailing [EMAIL PROTECTED], and then delete this message and all copies and backups thereof. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: JSP Taglib resolution trouble
Make sure you add the TagLib definition in the web.xml. Dov Rosenberg On Sunday, March 30, 2003, at 05:32 AM, [EMAIL PROTECTED] wrote: Hi there, If I try to compile a JSP with an absolute URI to a taglib like <%@ taglib prefix="c" uri = "http://java.sun.com/jstl/core"; %> then the compiler complains: jspc: 2003-03-30 12:30:05 - ERROR-the file '\views\mylist\list.jsp' ge nerated the following general exception: org.apache.jasper.JasperException: This absolute uri (http://java.sun.com/jstl/core) cannot be resolved in either web.x ml or the jar files deployed with this application [jasper2] Error in class org.apache.jasper.JspC However, if I have this absolut URI in the static web/myfile.jsp directory, everything runs smoothly (i.e. if Tomcat compiles during runtime, it does not complain). However, if I change the absolute URI to a local URI and supply the TLD-file, everything runs fine again (i.e. JSPC is working fine): <%@ taglib prefix="c" uri = "/WEB-INF/c.tld" %> Has anybody an idea why JSPC works differently to the JSP compilation during runtime? thx alot Johannes - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: JSP Taglib resolution trouble
That is what we do as well. Here is what I have added in our web.xml /CAStaglib /WEB-INF/tlds/conviveon.tld I would expect the taglib-location could just as easily be a URL. In our JSP pages we declare the taglibrary like <%@ taglib uri="/CAStaglib" prefix="CAS" %> HTH Dov Rosenberg On Sunday, March 30, 2003, at 03:22 PM, [EMAIL PROTECTED] wrote: Hi Dov, Do you know how to describe a taglib with an absolute uri (e.g. http://java.sun.com/jstl/core) in web.xml? Can you post a sample here? I haven't had to describe my taglib in web.xml yet, because I used the /WEB-INF/xxx.tld syntax in my JSPs, thus they always have worked so far! thx alot Johannes Dov Rosenberg <[EMAIL PROTECTED]> 30.03.2003 17:17 Please respond to "Tomcat Users List" <[EMAIL PROTECTED]> To "Tomcat Users List" <[EMAIL PROTECTED]> cc Subject Re: JSP Taglib resolution trouble Make sure you add the TagLib definition in the web.xml. Dov Rosenberg On Sunday, March 30, 2003, at 05:32 AM, [EMAIL PROTECTED] wrote: Hi there, If I try to compile a JSP with an absolute URI to a taglib like <%@ taglib prefix="c" uri = "http://java.sun.com/jstl/core"; %> then the compiler complains: jspc: 2003-03-30 12:30:05 - ERROR-the file '\views\mylist\list.jsp' ge nerated the following general exception: org.apache.jasper.JasperException: This absolute uri (http://java.sun.com/jstl/core) cannot be resolved in either web.x ml or the jar files deployed with this application [jasper2] Error in class org.apache.jasper.JspC However, if I have this absolut URI in the static web/myfile.jsp directory, everything runs smoothly (i.e. if Tomcat compiles during runtime, it does not complain). However, if I change the absolute URI to a local URI and supply the TLD-file, everything runs fine again (i.e. JSPC is working fine): <%@ taglib prefix="c" uri = "/WEB-INF/c.tld" %> Has anybody an idea why JSPC works differently to the JSP compilation during runtime? thx alot Johannes - 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: FTP server recommendation
I have used WAR FTP for the past few years. It is a very good server. It allows you to assign a person to a specific directory based on their login as opposed to MSFT that requires a different IP address for each specific user. The other benefit is you don't need to pollute your windows domain with unknown users, just put them in the WAR server. Much more secure. Dov Rosenberg P.s. Read the help file to learn about the author of the software, the dude is pretty messed up, but he did write some good software!! On 6/20/03 4:39 PM, "Brian Menke" <[EMAIL PROTECTED]> wrote: > I know this isn't the most appropriate place to ask this, but I depend on > the insight of this group to find out about all kinds of technical stuff > that just happens to be part of an email. It's where I heard first about > things like Stuts, JSTL, etc. So here's the question. > > I want to set up a free FTP server on my windows 2000 server. I've done a > google search and found one called War FTP. I was curious if anyone had any > experience with this, or could recommend a good one? I'm not a hard core > FTP'er but I do need to be able to provide different people access to > different directories. > > -Brian > > -Original Message- > From: Shapira, Yoav [mailto:[EMAIL PROTECTED] > Sent: Friday, June 20, 2003 1:21 PM > To: Tomcat Users List > Subject: RE: basic logging question > > > > Howdy, > >> the methods of org.apache.catalina.logger.FileLogger or log4j's Logger >> class so that i can turn logging on and off and can use various levels > like >> debug,info,warn,errors etc. I tried to import >> org.apache.catalina.logger.FileLogger in java servlet, but it says > class >> not found. I do have commons-logging under /common/lib > folder. >> Please guide me where am i going wrong? also if anyone who has log4j > under > > Don't use tomcat's internal Logger facilities, as they are > container-specific. Instead, choose between using log4j by yourself or > using the commons-logging that's included with tomcat. > > If you want to use commons-logging, in your servlet: > > import org.apache.commons.logging.Log; > import org.apache.commons.logging.LogFactory; > > Declare a private static Log: > private static Log theLog; > > Then in the init() method of your servlet, or in static initialization: > theLog = LogFactory.getLog(getClass()); > > Now you can use it. For more details, read the commons-logging > documentation. > > If you want to use log4j directly, the code is fairly similar to the > above, except you don't need a LogFactory, you just have > org.apache.log4j.Logger and its getLogger(...) call. > > You will need to configure log4j (read its docs for how to do this) or > commons-logging (read its docs for how to do this) if you find tomcat's > default configuration insufficient (as you likely will). > > 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]
Re: apachectl startssl complains about _default_443 (amongstother things...)
I was going thru this same process last week. It seems that Apache doesn't like NameVirtualHost *. I think you need to use xxx.xxx.xxx.xxx:80 instead and make references to the IP address instead of Good luck Dov Rosenberg On 7/28/03 1:02 AM, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > Hi. > I compiled mod_ssl into my apache2 and got openssl to generate > server.key into .../conf/server.key and server.crt into > .../conf/server.crt > > Then I modified httpd.conf > > Include /path/to/ssl.conf > > Also, I commented out all the explicitly named virtual hosts in > ... because I expect troubles there. > > In ssl.conf, I modified the following lines so they have the same > parameter values as in httpd.conf : > > > DocumentRoot "/path/to/html" > ServerName www.my.domain.com:80 ... In httpd.conf I used the BIOS name > e.g. ServerName BIOSNAME:80 > ... > SSLEngine on > ... > SSLCertificateFile /path/to/conf/ssl.crt/server.crt > SSLCertificateFile /path/to/conf/ssl.key/server.key > ... > When I start apache again with > # apachectl startssl > I got the following messages : > > [error] VirtualHost_default_:443 -- mixing * port and non-* ports with a > NameVirtualHost address is not supported: proceeding with unidentified > results. > Apache/2.0.40 mod_ssl/2.0.40 (Pass Phrase Dialog) > ... > > Can some kind souls tell me wha I have done wrong now. I didn't use > RedHat's default directories in /etc/httpd/conf, but that's hardly a mea > culpa. > > Arrgh > > - > 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: portals
Look into Apache Jetspeed. It has a lot of good portal functionality and the price is right. On 9/23/03 6:50 PM, "mike jackson" <[EMAIL PROTECTED]> wrote: > Can anyone suggest a good portal framework? I'm looking to migrate all of > my applications to run within a portal, but I can't decide on one... > > --mikej > -=-- > mike jackson > [EMAIL PROTECTED] > > > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > -- Dov Rosenberg President, Conviveon Corporation 370 Centerpointe Circle, suite 1178 Altamonte Springs, FL 32701 http://www.conviveon.com [EMAIL PROTECTED] (407) 339-1177 X102 (407) 339-6704 (FAX) (800) 475-9890 (407) 310-8316 (cell) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: JRun - maybe off topic
We moved our stuff to Jrun after fighting with the JK nonsense trying to integrate with Apache. Jrun replaces Apache Tomcat. On 9/25/03 3:06 PM, "Steve Harris" <[EMAIL PROTECTED]> wrote: > Hi all, > > I'm trying to get to grips with the architecture for an application we are > going to be deploying. I have no problem with the apache/tomcat set-up > but this app uses apache and JRun. Am I reading this wrong or does JRun > simply take the place of tomcat but runs the apps locally as opposed to > being able to be deployed under an apps server like tomcat on some other > server somewhere ? > > Cheers - Steve > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > -- Dov Rosenberg President, Conviveon Corporation 370 Centerpointe Circle, suite 1178 Altamonte Springs, FL 32701 http://www.conviveon.com [EMAIL PROTECTED] (407) 339-1177 X102 (407) 339-6704 (FAX) (800) 475-9890 (407) 310-8316 (cell) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: virtual directory in tomcat
Instead of using relative paths in your application, use absolute paths , i.e. http://media.company.com/images/ What force Tomcat to serve your application and images, let Apache do the image serving, makes your application loads more scalable. Dov Rosenberg On 10/5/03 2:26 AM, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > > > > Hello guys, > > Can anybody advise me on this...is it possible to create a virtual > directory in Tomcat which points to a directory on a different > machine? ... something similar to what IIS does? > I need to store lots of images for my website and am hence using a > separate machine with lot of space in it. I will tomcat to point to that > directory on the other machine. > Any suggestions? > > -Abby > > > > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Why should I use Tomcat vs .NET?
Contrary to what you think, a MSDN subscription doesn't mean that everything is free for the company. MSDN is licensed on a per developer basis. To be in compliance with the MSDN subscription, each developer that will be using is supposed to be licensed. All of the servers included in MSDN are developer licensed servers. When you deploy a production application onto a different machine you are required to purchase the proper licensing for the products involved including SQL Server, Windows 2000/XP servers, exchange server, etc. If the product is going to be deployed on an internet server, you must purchase the appropriate unlimited use license. A properly licensed production application can easily add $20,000 to the overall project cost just using the "things" that come for free in a MSDN subscription. Once MSFT starts enforcing their licensing a little tighter you will suddenly see the cost/benefits of open source solutions. Dov Rosenberg On 10/13/03 6:05 PM, "Richard Norman" <[EMAIL PROTECTED]> wrote: > What portions of FPSE (FrontPage Server Extensions) requires registration? I > have not run into that before. > > So far my experience has been the oppsite. My job gets the MSDN Universal > Subscription so VS is free along with all the platforms. In terms of going > from ASP to ASP.NET, you have to change your thinking form the classical > "script and go" method, to one of creating classes, methods and properties. > > That is the main trick I have found. Both are interesting to me (JSP and > .NET) but I find that in .NET there are certain things I can get done faster > (probably also cause my job has purchased the MSDN Universal :-) ). You > could also use #Develop, Eclipse (has a plugin for C#) or WebMatrix if you > need free IDE tools. And then there's Mono (http://www.go-mono-org/ ) for a > platform on *nix machines. It is not "final" but you can find out a lot > about the platfdorm there too. > > But you know it just depends on the skills of the developers you have and > your immediate needs. If you need wide platform adoption and your developers > are comfortable with Java, then Java is the way to go. .NET is just not > there yet in the platform department. If you need to leverage a better > (IMHO) webService platform, or need to get the most out of Windows machines > quickly with people who had previous experience in VB, then .NET is better > for you. Just depends on you overall environment. > > Here (my job) people are mostly VB developers with a little C/C++ knowledge > (the Perl guy left). I am probably one of the first well rounded programmers > they hired in years (I've done C/C++, VB, JavaScript, some Java, a little > Perl, and some batch programming). Pretty much sit me in front of a program, > tell me what you need and give me the tools to do it, and I can get it done. > > So for them .NET was the better move cause a lot of what they knew of VB was > still there to an extent. Just some changes underneath and a much larger > library to work with. > > So good luck to you Eduardo, while not exactly what you would like, it maybe > something you can learn from and incorporate into your toolset :-) > > Richard Norman > > P.S. - Please no flames, just answering the question honestly with my > opinion. I do like Java, but it did have some little things that I just > wondered why they did the way the did. > > > Original Message Follows > From: "Goehring, Chuck Mr., RCI - San Diego" > Reply-To: "Tomcat Users List" > To: "Tomcat Users List" > Subject: RE: Why should I use Tomcat vs .NET? > Date: Mon, 13 Oct 2003 12:30:34 -0700 > Eduardo, > A couple interesting points involves myself and my coworker. He has about > ten years of VB programming experience. None of his code can be migrated to > vb.net without major rewriting because there is no semblance of backward > compatibility. It wouldn't be practical for the customer to pay him to > convert the app to dot.net, so he's stuck in 1998. All the VB programmers > have been screwed by Microsoft this way. > With me, I've been doing Java and perl for about 6 years. Because of the > contracting environment I'm in, it looked like my work was going to dry up. > An opportunity came along for me within the company. They wanted to do ASP > 2.0 web development because they had to meet a variety of government > requirements and ASP had been approved for use. Thinking I was going to have > to do that project, I checked into it. Firstly, the ASP code they were going > to write is totally incompatible with ASP.net, so it was going down a dead > path. To cover all the bases, I did some research into upgrading my copy of > Visual C++ 6.
Re: Windows freeze...
Fdisk Install linux :) On 10/28/03 2:25 PM, "Leo Larraquy" <[EMAIL PROTECTED]> wrote: > Hi people, I`ve got a really simple question but a can`t solve on my own. > On Windows, when an applicacion throws an Exception, for the first time, > Tomcat freezes, until I hit the keyboard or I do something on the DOS console > that appears when Tomcat starts up. > But it doesn`t happen on Linux! I`ve been told that Windows losses control on > that new window, and it can`t print the stackTrace, or even a "System.out", > until you do something to activate that window again. > Is there some way to solve this?? > Thanks in advance. > Leonardo Lopez. > > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat is stoping Urgent
Stop using the JDBC ODBC bridge immediately - it was never designed for a production environment. Use a pure java jdbc driver or change databases. Dov Rosenberg Conviveon Corporation On 4/21/04 7:01 PM, "Daniel Gibby" <[EMAIL PROTECTED]> wrote: > You've tried a reboot of the windows machine? Has there been patches to > the machine lately? Are there any viruses on it? > > It says it is native code outside the VM, so this appears to be more a > problem with the windows server, not tomcat. > > Like I know though... Don't take my word for it. I'm just taking a guess. > > > Kiran Patel wrote: > >> Urgent! >> >> I am using Tomcat 4.1 for my application which is accessing data from = >> the Access database through the ODBC connection. Everything was working = >> fine until today. Suddenly when I tried to enter some records in the = >> data base through the application, Tomcat is stopped. I got following = >> error in the error log. Please help me. >> >> Kiran >> >> >> >> An unexpected exception has been detected in native code outside the VM. >> Unexpected Signal : EXCEPTION_ACCESS_VIOLATION occurred at = >> PC=3D0xC08FA3C >> Function=3DSQLFetch+0x16EF >> Library=3DC:\WINNT\system32\odbcjt32.dll >> >> Current Java thread: >> at sun.jdbc.odbc.JdbcOdbc.bindInParameterString(Native Method) >> at sun.jdbc.odbc.JdbcOdbc.SQLBindInParameterString(JdbcOdbc.java:972) >> at = >> sun.jdbc.odbc.JdbcOdbcPreparedStatement.setChar(JdbcOdbcPreparedStatement= >> .java:3106) >> at = >> sun.jdbc.odbc.JdbcOdbcPreparedStatement.setString(JdbcOdbcPreparedStateme= >> nt.java:764) >> at = >> org.apache.commons.dbcp.DelegatingPreparedStatement.setString(DelegatingP= >> reparedStatement.java:217) >> at beans.FeeFineBean.processGroupFees(FeeFineBean.java:4053) >> at beans.FeeFineBean.storeFeeFineData(FeeFineBean.java:1924) >> at = >> org.apache.jsp.fee_fine_new_jsp._jspService(fee_fine_new_jsp.java:409) >> at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:137) >> at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) >> at = >> org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.jav= >> a:204) >> 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.ApplicationFilterChain.internalDoFilter(Applicat= >> ionFilterChain.java:247) >> at = >> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilte= >> rChain.java:193) >> at = >> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve= >> .java:260) >> at = >> org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.in= >> vokeNext(StandardPipeline.java:643) >> at = >> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:48= >> 0) >> at = >> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) >> at = >> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve= >> .java:191) >> at = >> org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.in= >> vokeNext(StandardPipeline.java:643) >> at = >> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:48= >> 0) >> at = >> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) >> at = >> org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415= >> ) >> at = >> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:= >> 180) >> at = >> org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.in= >> vokeNext(StandardPipeline.java:643) >> at = >> org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherVal= >> ve.java:170) >> at = >> org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.in= >> vokeNext(StandardPipeline.java:641) >> at = >> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:= >> 172) >> at = >> org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.in= >> vokeNext(StandardPipeline.java:641) >> at = >> org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:509)= >> >> at = >> org.apache.catalina.core.StandardPipeline$
Re: Spoofed emails
I have seen a lot of these things lately. Glad I moved to OSX!! On 7/21/04 6:38 AM, "Adam Buglass" <[EMAIL PROTECTED]> wrote: > I picked up some of yesterdays conversation this morning. > > I don't know where the hacker is but the attachment usually comes as a > "white bar" bmp file. > > He appears to be infected with at least the [EMAIL PROTECTED] worm > variant, probably other trojans also. -- Dov Rosenberg Conviveon Corporation http://www.conviveon.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Website Planning
Buy my company's prebuilt CMS system that runs as a servlet and exposes all of our functionality using our JSP Custom Tag library. All of the features and functionality you want are available today. You can probably have your site running in a few days at most. On 7/27/04 1:15 PM, "Jonathan" <[EMAIL PROTECTED]> wrote: > OK, > I'm going to ask my previous question(s) in a different way > > Basically, I want to build a website that has dynamic news and a dynamic > navbar on the index page. > This website also needs to have a forums app, and a photo gallery app. > Everyplace on the site should contain the same dynamic nav as the index > page, and the same footer. > Also, the forums and gallery will require the user to be logged in, and > should display the same login page regerdless of which app you hit if > you're not logged in. > > Can someone please tell me the "best practices" for setting up a site > like this? (i.e. a single web app or multiple web apps, how to include > the nav if it's multiple web apps, etc) > > Thanks. > > - Jonathan > > > --------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > -- Dov Rosenberg President, Conviveon Corporation 370 Centerpointe Circle, suite 1178 Altamonte Springs, FL 32701 http://www.conviveon.com [EMAIL PROTECTED] AOL IM: dovrosenberg (407) 339-1177 x102 (407) 339-6704 (fax) (800) 475-9890 (407) 310-8316 (cell) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: JMS with tocmat
Use OpenJms (http://openjms.sourceforge.net). Runs independently of Tomcat. Easy to configure. On 8/5/04 12:49 PM, "Jignesh Patel" <[EMAIL PROTECTED]> wrote: > Is JMS supported by tomcat 5.0.19? > > -Jignesh > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > -- Dov Rosenberg Conviveon Corporation http://www.conviveon.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
How to get the context path for a web application?
I need to find a way to get the context path of the current web application. I would like to to it using the HttpSession, HttpServletRequest or response. I tried the ServletContext.getServletContextName but it returns null in Tomcat. Is there a cross container solution? -- Dov Rosenberg Conviveon Corporation http://www.conviveon.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
SOLVED: How to get the context path for a web application?
Someone on the list suggested Request.getContextPath() and it works like a charm. Thanks to all. On 8/10/04 1:06 PM, "David Wall" <[EMAIL PROTECTED]> wrote: >> A ServletConfig reference is passed in the call to the init() method of > your >> servlet. From this you may use the getServletContext() method to get the >> context. One thing to remember is that this does not get called until the >> servlet is initialized and would be invalidated when it is destroyed. I > suggest >> you check the API docs for more information. > > But do any of those return the context path? I didn't see it anywhere in > the javadocs. > > David > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > -- Dov Rosenberg Conviveon Corporation http://www.conviveon.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: SOLVED: How to get the context path for a web application?
Thanks again On 8/10/04 7:52 PM, "Aris Javier" <[EMAIL PROTECTED]> wrote: > that's me! =) > it's nice to be of service... > > welcome! > > aris > > -Original Message- > From: Dov Rosenberg [mailto:[EMAIL PROTECTED] > Sent: Wednesday, August 11, 2004 1:23 AM > To: Tomcat Users List > Subject: SOLVED: How to get the context path for a web application? > > > Someone on the list suggested Request.getContextPath() and it works like > a charm. Thanks to all. > > > > On 8/10/04 1:06 PM, "David Wall" <[EMAIL PROTECTED]> wrote: > >>> A ServletConfig reference is passed in the call to the init() method >>> of >> your >>> servlet. From this you may use the getServletContext() method to get >>> the context. One thing to remember is that this does not get called >>> until the servlet is initialized and would be invalidated when it is >>> destroyed. I >> suggest >>> you check the API docs for more information. >> >> But do any of those return the context path? I didn't see it anywhere > >> in the javadocs. >> >> David >> >> >> - >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> -- Dov Rosenberg Conviveon Corporation 370 Centerpointe Circle, suite 1178 Altamonte Springs, FL 32701 http://www.conviveon.com [EMAIL PROTECTED] AOL IM: dovrosenberg (407) 339-1177 x102 (407) 339-6704 (fax) (800) 475-9890 (407) 310-8316 (cell) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Read MS Word using Java?
We use an open source library from http://www.textmining.org/ - it seems to work OK. On 9/10/04 12:32 AM, "Aris Javier" <[EMAIL PROTECTED]> wrote: > Hello everyone! > > I know this is out of tomcat discussion.. > but I need help on how to read MS Word files in java.. > > does anybody have working codes? > > Any Help is greatly appreciated.. > > Thanks in advance... > > aris > -- Dov Rosenberg Conviveon Corporation http://www.conviveon.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: headless java setting
Try adding -Djava.awt.headless=true to your JAVA_OPTS environment variable or pass it in on the command line. On 9/27/04 8:39 PM, "Didier McGillis" <[EMAIL PROTECTED]> wrote: > I have a small problem. My predicesor setup his code to work with > X-Windows. Well the code will not work without an x11 server running. > However I have all my machines setup as a typical server and do not have > xwindows installed. I saw where you could grab a few x11 libs and then run > somewhere in the catalina.sh file a flag that would flip on the headless > setting in teh JVM. I have tried that several times and not even a hint > that it works. > > Any thoughts. Any experience. > > _ > Take charge with a pop-up guard built on patented Microsoft® SmartScreen > Technology. > http://join.msn.com/?pgmarket=en-ca&page=byoa/prem&xAPID=1994&DI=1034&SU=http: > //hotmail.com/enca&HL=Market_MSNIS_Taglines > Start enjoying all the benefits of MSN® Premium right now and get the > first two months FREE*. > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > -- Dov Rosenberg Conviveon Corporation http://www.conviveon.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Cannot get xml in JSTL 1.1 to work
I would check to see if you have conflicting versions of XML parsers on your system. Check to see if you are overwriting the Xerces and Xalan parsers that come with Tomcat. -- Dov Rosenberg Conviveon Corporation http://www.conviveon.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: context sharing problems
Why don't you put your shared classes into $CATALINA_HOME/shared/classes. Then all of your web apps can see and use them -- Dov Rosenberg Conviveon Corporation http://www.conviveon.com On 9/30/04 10:58 AM, "Michael Cornell" <[EMAIL PROTECTED]> wrote: > > Hi, > > I am trying to share the same class files (and libraries) between two > different web-apps one running in ROOT/ and one is admin/ > > Basically, I want the first one to run from the default context ie > http://www.x.com/ > And the second web-app to run as http://www.x.com/admin > > However, all of the classes for both web-apps are situated in the first one > (ROOT). > > This may seem a strange way of doing things, but I need to reflect the > changes made in admin (basically a collection of jsps etc) in ROOT (a > series of filters etc). I have actually got this to work using a tomcat > plugin in eclipse because of the way eclipse shares libraries and classpaths > > Does anyone know how I could do this for a standalone tomcat (running in > windows)??? > > Just to clarify: > > Web-apps\ > ROOT\ > WEB-INF\ > Classes\ > > My\package\name\MyFilter.class > > My\package\name\StrutsAction.class > > My\package\name\ApplicationResources.properties > > My\package\name\MySingletonIIWantTochangeViaTheGuiRealTime.class > Admin\ > WEB-INF\ > Web\index.jsp > > > > > > > > Thanks for your help > M > > > > --- > Outgoing mail is certified Virus Free. > Checked by AVG anti-virus system (http://www.grisoft.com). > Version: 6.0.770 / Virus Database: 517 - Release Date: 27/09/2004 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: context sharing problems
I think you should evaluate how your app is designed. If you need to communicate cross context/processes you should consider using something like JMS to give you good isolation. Today you may want to have everything on a single box, tomorrow you might want other servers. Another option to consider is to change the need for a singleton type of class or store some info in a database. Dov Rosenberg On 9/30/04 1:22 PM, "Michael Cornell" <[EMAIL PROTECTED]> wrote: > Well, I could do (and this actually works) but the problem then is that the > web-apps are actually started up separately (in separate memory spaces) and > the 'admin' one cannot access the singleton in the 'ROOT' one that has been > initialised with some values.. > > I need some sort of context settings that point the classpath (vm ??) to > the same place > > Any ideas?? > > -Original Message- > From: Dov Rosenberg [mailto:[EMAIL PROTECTED] > Sent: 30 September 2004 18:10 > To: Tomcat Users List > Subject: Re: context sharing problems > > Why don't you put your shared classes into $CATALINA_HOME/shared/classes. > Then all of your web apps can see and use them > > > > -- > Dov Rosenberg > Conviveon Corporation > http://www.conviveon.com > > On 9/30/04 10:58 AM, "Michael Cornell" <[EMAIL PROTECTED]> wrote: > >> >> Hi, >> >> I am trying to share the same class files (and libraries) between two >> different web-apps one running in ROOT/ and one is admin/ >> >> Basically, I want the first one to run from the default context ie >> http://www.x.com/ >> And the second web-app to run as http://www.x.com/admin >> >> However, all of the classes for both web-apps are situated in the first > one >> (ROOT). >> >> This may seem a strange way of doing things, but I need to reflect the >> changes made in admin (basically a collection of jsps etc) in ROOT (a >> series of filters etc). I have actually got this to work using a tomcat >> plugin in eclipse because of the way eclipse shares libraries and > classpaths >> >> Does anyone know how I could do this for a standalone tomcat (running in >> windows)??? >> >> Just to clarify: >> >> Web-apps\ >> ROOT\ >> WEB-INF\ >> Classes\ >> >> My\package\name\MyFilter.class >> >> My\package\name\StrutsAction.class >> >> My\package\name\ApplicationResources.properties >> >> My\package\name\MySingletonIIWantTochangeViaTheGuiRealTime.class >> Admin\ >> WEB-INF\ >> Web\index.jsp >> >> >> >> >> >> >> >> Thanks for your help >> M >> >> >> >> --- >> Outgoing mail is certified Virus Free. >> Checked by AVG anti-virus system (http://www.grisoft.com). >> Version: 6.0.770 / Virus Database: 517 - Release Date: 27/09/2004 > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > --- > Incoming mail is certified Virus Free. > Checked by AVG anti-virus system (http://www.grisoft.com). > Version: 6.0.770 / Virus Database: 517 - Release Date: 27/09/2004 > > --- > Outgoing mail is certified Virus Free. > Checked by AVG anti-virus system (http://www.grisoft.com). > Version: 6.0.770 / Virus Database: 517 - Release Date: 27/09/2004 > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > -- Dov Rosenberg Conviveon Corporation 370 Centerpointe Circle, suite 1178 Altamonte Springs, FL 32701 http://www.conviveon.com [EMAIL PROTECTED] AOL IM: dovrosenberg (407) 339-1177 x102 (407) 339-6704 (fax) (800) 475-9890 (407) 310-8316 (cell) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Search engine friendly URLs
Use URL Rewriting with Apache. That will do what you are looking for. On 10/2/04 11:53 AM, "Ben" <[EMAIL PROTECTED]> wrote: > Hi > > Is it possible to make the URLs on my site search engine friendly? I > am using Tomcat and Struts. > > I would like to turn: > > http://localhost/site.do?section=books&subsection=architecture > > into this: > > http://localhost/do/site/books/architecture > > Regards, > Ben > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > -- Dov Rosenberg Conviveon Corporation 370 Centerpointe Circle, suite 1178 Altamonte Springs, FL 32701 http://www.conviveon.com [EMAIL PROTECTED] AOL IM: dovrosenberg (407) 339-1177 x102 (407) 339-6704 (fax) (800) 475-9890 (407) 310-8316 (cell) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Search engine friendly URLs
If you want to be able to scale your application, you need to be able to move the static image handling out of tomcat to a separate web server. Using Tomcat to handle both application chores and web serving chores will limit the overall scalability of your system. Short of passing parameters as session variables I don't think tomcat can do what you are asking. The big problem with using session level variables is that your pages can not be bookmarked. Most search engines can index dynamic pages pretty well. Just make sure the URLs don't include any session specific information, otherwise the search engine data is garbage On 10/2/04 7:59 PM, "Ben" <[EMAIL PROTECTED]> wrote: > I would like to use Tomcat alone > > > On Sat, 02 Oct 2004 19:37:35 -0400, Dov Rosenberg > <[EMAIL PROTECTED]> wrote: >> Use URL Rewriting with Apache. That will do what you are looking for. >> >> >> >> >> On 10/2/04 11:53 AM, "Ben" <[EMAIL PROTECTED]> wrote: >> >>> Hi >>> >>> Is it possible to make the URLs on my site search engine friendly? I >>> am using Tomcat and Struts. >>> >>> I would like to turn: >>> >>> http://localhost/site.do?section=books&subsection=architecture >>> >>> into this: >>> >>> http://localhost/do/site/books/architecture >>> >>> Regards, >>> Ben >>> >>> - >>> To unsubscribe, e-mail: [EMAIL PROTECTED] >>> For additional commands, e-mail: [EMAIL PROTECTED] >>> >> >> -- >> Dov Rosenberg >> Conviveon Corporation >> 370 Centerpointe Circle, suite 1178 >> Altamonte Springs, FL 32701 >> http://www.conviveon.com >> [EMAIL PROTECTED] >> AOL IM: dovrosenberg >> (407) 339-1177 x102 >> (407) 339-6704 (fax) >> (800) 475-9890 >> (407) 310-8316 (cell) >> >> - >> 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] > -- Dov Rosenberg Conviveon Corporation http://www.conviveon.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: AW: Search engine friendly URLs
When I suggested using Apache I implied that Apache would be on a separate physical server. If possible even dynamic content can have static images that can be served up using Apache. Our application tracks references to the dynamic images that are stored in an application managed directory structure on the filesystem. The only thing Tomcat needs to do is generate the HTML pages, the web server handles all of the media requests. Otherwise your Tomcat instance is handling all of the requests thru a single network interface (unless you have multiple NICs and Ips) which will cause a significant issue under load and makes your application much harder to scale in a data center. Tomcat may be "nearly" as fast as Apache at serving images, but why burden it doing twice the work. I think the whole mod_jk thing is very poorly implemented. I haven't tried mod_jk2 - hopefully it is more efficient and easier to implement. On 10/3/04 11:18 AM, "Steffen Heil" <[EMAIL PROTECTED]> wrote: > Hi > >> If you want to be able to scale your application, you need to be able to > move the static image handling out of tomcat to a separate web server. Using > Tomcat to handle both application chores and web serving chores will limit > the overall scalability of your system. > > I strongly disagree. > Tomcat is nearly as fast as apache in serving images. > So, yes, you can save a little time using apache, BUT remeber that the > apache slows tomcat down. You need cpu-cycles for apache, for mod_jk and > additionally for tomcat. Those cycles for apache and mod_jk are not > nessesary, since tomcat can work standalone. > So the question comes down to decide wether the overhead of handling apache > and mod_jk for dynamic content is smaller then the difference of apache and > tomcat in serving images. I guess with current versions of tomcat the > overhead to apache and mod_jk is even bigger. > Hence, tomcat alone will be faster. > (Please also consider, that static content will mostly be taken from the > browsers cache, whereas dynamic content needs to be received from tomcat. > That means that the time won by using apache for static content needs to be > a magnitude higher than the overhead of mod_jk. That's simply not the case.) > > Tomcat cannot do rewriting, that is correct, but it does not need to: > I use url such as: > /content/pages/test.htm > where content is mapped to my servlet. > The parameter is simply the rest of the url. > > You could do: > http://localhost/site.do/books/architecture > and parse the rest of the url to > section = books > and > subsection = architecture > > Simply map site.do to your servlet. > > Reagrds, > Steffen > -- Dov Rosenberg Conviveon Corporation http://www.conviveon.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Windows Environment Variables
Why not add them as context variables in the web.xml? -- Dov Rosenberg Conviveon Corporation http://www.conviveon.com On 10/3/04 9:48 PM, "Stuart Weston" <[EMAIL PROTECTED]> wrote: > Under the one Install of Apache Tomcat upon a Windows 2000 Server we > would like to run multiple applications under the one tomcat service. > But each application requires the same environment variable but to point > at a different location. > > > > We have a REPORT60_PATH env variable but each application needs it to > have a different value. > > > > How can we do this ? > > > > > > > > Stuart Weston > > Environment Manager > > Aderant > > Level 1 > > 5-7 Corinthian Drive > > Albany Centre > > Tel: +64 9 414 3300 > > Fax: +64 9 414 3301 > > Email: [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> > > http://www.aderant.com/ <http://www.solution6.com/> > > > > > ## > Attention: > This e-mail message is privileged and confidential. If you are not the > intended recipient please delete the message and notify the sender. > Any views or opinions presented are solely those of the author. > > ## > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Windows Environment Variables
The web.xml file is located in the /WEB-INF. Inside the element you can add multiple elements. Each context parameter has a name/value element nested inside. Like : ... DomainName demo ... You can access the context parameters using ServletConfig.getServletContext().getInitParameter() inside your servlet. -- Dov Rosenberg Conviveon Corporation http://www.conviveon.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Taglib loading classes of web application
Instead of checking the type of class by doing getClass().getName() I would recommend using If (myclass instanceof com.name.webapp.entities.MetaDataEntity){ ... } else { ... } This is better because you can check the presence of a class at compile time instead of runtime when you do things like Class.forName(className) -- Dov Rosenberg Conviveon Corporation http://www.conviveon.com On 10/21/04 7:49 PM, "Michael Wille" <[EMAIL PROTECTED]> wrote: > Hello all, > > I have a strange question. I need to load a class that is inside a packkage > of a web application from within a taglib that the web application is using > within its context. > > Let me try and explain this: > > I have a bunch of entities in the package: com.name.webapp.entities. In this > package, there are two base classes: Entity and MetaDataEntity. There are > quite a few entity classes that are derived from these two clases. > > I've setup a taglib to take an array of either Entity or MetaDataEntity from > the request's attribute map and loop through the array do some processing. > The problem I have is that different processing needs to be done if the array > is of a type derived from Entity or derived from MetaDataEntity. To do this, > I get the first element in the array and get that object's superclass. > > So the code I have in the taglib to discover the super class is: > > Object entities[] = (Object []) pageContext.getRequest().getAttribute("list"); > Object entity = entities[0]; > className = entity.getClass().getSuperclass().getName(); > if(className.startsWith("com.name.webapp.entities.Entity")) > // do one thing... > else if(className.startsWith("com.name.webapp.entities.MetaDataEntity")) > // do another... > else > // throw exception. > > (realizing that this will only work with direct descendants of the 2 base > classes) > > Which works fine if the array is not empty. However, when entities.length == > 0, I have to use a different method: > > Object entities[] = (Object []) pageContext.getRequest().getAttribute("list"); > // class name from the array is [Lcom.name.webapp.entities.entityname, get rid > of the [L... > className = entities.getClass().getName().substring(2); > className = Class.forName(className).getSuperclass().getName(); > > However, I get a ClassNotFoundException. I believe that is because the taglib > is using a different class loader than my webapp, which makes sense. But is > there any other way (short of creating my own class loader for the webapp and > accessing that loader from the taglib) to do this? I'd rather avoid a custom > classloader at all costs. > > Thanks for any advice. > > -Mike > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Does Oracle 9i thin jdbc driver work in Tomcat 5?
I have successfully used Oracle 9 with JBoss, Jrun, and Tomcat. I don't remember any specific differences between the JNDI configurations. Make sure that you have the classes12.jar, nls_charset12.jar files in your runtime classpath, i.e. /WEB-INF/lib or somewhere else. The driver class is oracle.jdbc.OracleDriver The URL format is: jdbc:oracle:thin:@:: In your code you need to create an instance of the Oracle connection pool class. I think Oracle10g renamed the jar files to something like ojdbc14.jar. HTH -- Dov Rosenberg Conviveon Corporation http://www.conviveon.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Can Tomcat be configured to be an FTP Server?
If you need to include some logic with your FTP, you should really look at Kermit (I think it is from University of Chicago). It has the best command line interface around and is very capable and open source to boot. You could easily wrap a servlet around it if needed -- Dov Rosenberg Conviveon Corporation http://www.conviveon.com On 10/25/04 3:52 AM, "Pawson, David" <[EMAIL PROTECTED]> wrote: > > > -Original Message- > From: Cees van de Griend >>>> Is it possible to configure Tomcat as an FTP Server? >>> >>> No. >>> >>> Tomcat is a HTTP server, not a FTP server: different > port numbers, >>> different commands, different kind of application. > > > > Yes, in theory you are right, but practical you have to > write a ServletContainer which is FTP aware; not a simple > task as FTP is not a simple protocol. > > Take a look at a new Apache project: FtpServer at > http://incubator.apache.org/projects/ftpserver/. > > What are you trying to do? > > I've a similar need, but it would be helpful if I could hand off > uploads/downloads to an ftpserver. > > My concern is timeouts with large file transfers, which I believe > ftp to be better suited? > > It may not be very common, but I guess this is not unusual. > > > regards DaveP > > > ** snip here ** > > > > > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: hide source of a page
The only thing I can think of to hide the source of the page is to create your own private label browser or perhaps load the source of the page in a hidden frame and use some javascript to display the text you want. Not sure why you would want to go thru the hassle - there are lots of ways to defeat any measure. Good luck. -- Dov Rosenberg Conviveon Corporation http://www.conviveon.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: hide source of a page
Apple's iTunes application and store is a good example of a private label browser. The store is a web application (WebObjects based - very cool technology). Instead of delivering the content via http://... They changed the protocol to itms:// and registered their iTunes client to be the helper application for that protocol. They conveniently hid the view source from their web store. Itunes is a pretty cool example of doing what you want. On 11/8/04 9:52 PM, "Steven J. Owens" <[EMAIL PROTECTED]> wrote: > On Mon, Nov 08, 2004 at 09:37:09PM -0500, Dov Rosenberg wrote: >> The only thing I can think of to hide the source of the page is to create >> your own private label browser or perhaps load the source of the page in a >> hidden frame and use some javascript to display the text you want. Not sure >> why you would want to go thru the hassle - there are lots of ways to defeat >> any measure. > >You're right, this is futile, because it's trivial to get the > source of the page, no matter what you do at the browser level. The > browser has to see the source to render it, therefore the server is > providing the source, upon request, to anything that knocks at port 80 > and asks for it. Getting the source is as simple as telnetting to the > webserver on port 80 and faking the commands. Or run a packet sniffer > in the network you're browsing from. Or run a logging http proxy on > your own machine and point your browser at it. > >You can't show something to people and keep it secret at the same > time. > -- Dov Rosenberg Conviveon Corporation http://www.conviveon.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: OFF-TOPIC : tool to generate JSP pages for a DB table
Check out Apple's WebObjects (http://www.webobjects.com). It has a real slick tool called Direct To Web that can reverse engineer an entire database (include relationships between tables) and generate a web based application that can maintain all of the data and the relationships. It takes about 10 minutes!! It also includes the best Object Relational Modeling/Mapping framework on the market - Enterprise Object Framework developed by NeXT. It has been on the market since 1995!! On 12/2/04 6:13 AM, "Sreejith" <[EMAIL PROTECTED]> wrote: > Hi all, > > Is there a tool that can generate JSP pages for a given > table. It would be ideal if it can generate a insert, modify, delete and one > search page (based on primary key or some indexes) > > Any pointers? > > Thanks > Sreejith > -- Dov Rosenberg Conviveon Corporation http://www.conviveon.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: WAR file creation
Do this from the root of your web app deployment directory (the one that includes your jsp, WEB_INF jar cvf myapp.war myapp/ -- Dov Rosenberg Conviveon Corporation On 1/16/05 1:42 PM, "Warron French" <[EMAIL PROTECTED]> wrote: > Can someone please provide me with the most direct path or keywords to lookup > HOW TO build a WAR file. I am not a developer. > > I am totally overwhelmed everytime I hear that I have a new "application" to > deploy (which I am a little better dealing with now), but I do not know how to > create a war file that contains HTML, JSPs, Java Servlets, and etc... > > > All I need is a document or webpage that says... you need this application, > and you use it this way. > > Any direction would be greatly appreciated. > > > Oh also, I don't think this makes any difference, but our servers are both > Linux & Windows based. > > We run JBoss and also JRun. > > > > > Happy New Year! > Warron French > Sr. Network Engineer > Xtria, LLC > 8045 Leesburg Pike #400 > Vienna, VA 22182 > Desk: 703-821-6110 > Main: 703-821-6000 > Fax: 703-827-0374 > > > - > 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: Version control tool
CVS is the old school source code versioning tool. We recently converted to Subversion (http://subversion.tigris.org) - it has most of the good CVS functionality without the CVS weirdness. It also integrates with Eclipse -- Dov Rosenberg Conviveon Corporation http://www.conviveon.com On 2/7/05 10:46 AM, "John Najarian" <[EMAIL PROTECTED]> wrote: > Thanks Matt, I should have said I don't want to limit this to Java. > > -Original Message- > From: "Dale, Matt" <[EMAIL PROTECTED]> > Sent: Feb 7, 2005 10:27 AM > To: Tomcat Users List , > John Najarian <[EMAIL PROTECTED]> > Subject: RE: Version control tool > > > Eclipse > > -Original Message- > From: John Najarian [mailto:[EMAIL PROTECTED] > Sent: 07 February 2005 15:25 > To: Tomcat Users List > Subject: OT: Version control tool > > > Does anyone know a good version control tool for code management that is free? > > Also, a bug tracking application would be nice also. > > These need to be run on Windows. > > Thanks > > - > 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: [OT] RE: HTMLArea v. fckeditor
I noticed I had some weird problems using Firefox and FckEditor with the dropdowns if I used the default theme, but if I changed to a different theme (I like Noia 2.0) the problems go away. HTH -- Dov Rosenberg Conviveon Corporation http://www.conviveon.com On 2/11/05 3:08 PM, "Mike Curwen" <[EMAIL PROTECTED]> wrote: > for me, the fckeditor drop-downs don't work. The font, size, etc select > areas. I click them, and then they roll-up before I can select a different > value. > > and yah, how about that name? > > > Mike Curwen > >> -Original Message- >> From: David Wall [mailto:[EMAIL PROTECTED] >> Sent: Friday, February 11, 2005 1:28 PM >> To: Tomcat Users List >> Subject: Re: HTMLArea v. fckeditor >> >> >>> See http://www.fckeditor.net/ >> >> Aside from the odd name (we do have to give credit after >> all!), that does look like a nice one. Has anybody used it >> enough to know how stable it is? I noted that it's on 2.0, >> which is good, but it's not considered final. I like that it >> appears to be a bit more active than HTMLArea. >> >> David >> > > > - > 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: post processing operations after servlet response is sent
Why don't you create a filter? They are designed to interact with the request/response loop either before the servlet is kicked off or after the servlet gets called. HTH -- Dov Rosenberg Conviveon Corporation http://www.conviveon.com On 3/21/05 10:13 PM, "QM" <[EMAIL PROTECTED]> wrote: > On Mon, Mar 21, 2005 at 05:43:40PM -0800, Garth Patil wrote: > : I've got some operations I'd like to do (transaction logging and some > : web service calls) after the servlet response is sent to the user. > : Rather than creating a new thread every time, is there a way to do > : this in my servlet so that it uses tomcat's processor thread, but is > : executed after the response is sent? > > Why not offset the extra processing (the logging and ws calls) to > another system? You could package up the needed info and either put it > in: > > 1/ a database to be processed by a scheduled job > (in-container or external) > > 2/ a JMS message, to be handled by a dedicated listener > (again, in-container or otherwise) > > These solutions have the added benefits of not being tied to your > servlet code. (Think "modularity" and "ease of testing," among other > things.) > > -QM > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: My experience of how to avoid problems with log4j in webapps on TC 5.5.9
I ran into a problem on Jboss when I configured the root.logger. Jboss likes to suck in the System.out and .err, I was trying to log out my own errors separately. My logger stole away the System.out from Jboss. By not configuring the root.logger I avoided the problem HTH On 9/11/05 11:29 AM, "Paul ANDERSON" <[EMAIL PROTECTED]> wrote: > Hi all, > > > > I had the problem that I wanted to use log4j in a webapp (based on > Spring Webflow), but I didn't want to change from the existing > jdk1.4+JULI logging of the TC server to use log4j. > > > > When I put log4j and log4j.properties (but not commons logging) in the > webapp, with a Log4jConfigListener from Spring, I got 'Appender not > configured' messages from Tomcat for its internal classes. > > > > I solved this by putting log4j.properties in WEB-INF/classes instead. It > seems to avoid TC's commons logging detecting log4j in the classloaders. > Log4j log lines look as they should and the JULI ones are unchanged, > with no log4j-related errors from the TC core. > > > > This was fine until I wanted to precompile my JSP's using the 5.5.9 > deployer. > > I got NullPointerExceptions for resources that couldn't be found - only > when I deployed log4j with the webapp. > > > > After much grief I saw that for some reason the deployer's lib directory > contains commons-logging full, instead of the API only as Tomcat does. > > So when Jasper executes, log4j is detected and there are problems > locating resources. > > When I put commons-logging-api there instead, all was well. > > > > I've seen many questions on the Internet about log4j and > NullPointerExceptions with the deployer. So maybe this will help > somebody. > > Maybe someone can even enlighten me as to exactly why all this happens, > and whether there's a better fix? > > > > Paul. > > > -- Dov Rosenberg Conviveon/Inquira Knowledge Management Experts http://www.conviveon.com http://www.inquira.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: tomcat and JMS
Try something like: try { EmbeddedJmsServer server = new EmbeddedJmsServer(config); Thread serverThread = new Thread( server ); server.init(); serverThread.start(); } catch (Throwable e) { // do nothing e.printStackTrace(); } On 9/22/05 9:28 AM, "Jason Bell" <[EMAIL PROTECTED]> wrote: >> Hi ! >> >> Thanks for your resnonce. I saw that article at ONJava.com. They use >> standalone openJMS server. I'm interested in embedded. > > I was Googling around, I have to admit, as I found your posting very > interesting. I've downloaded OpenJMS and will try and have a play when I have > half an hour to do so. Not too sure when that will happen, possibly over the > weekend. > > Kind regards > Jason > > -- > Jason Bell > Lead Architect, SpikeSource Europe > e: [EMAIL PROTECTED] > w: http://www.spikesource.com > b: http://jasonbell.blog-city.com > m: +44 (0)787 529 2693 > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > -- Dov Rosenberg Conviveon/Inquira Knowledge Management Experts http://www.conviveon.com http://www.inquira.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]