Re: Multiple Tomcat-Instances problem
Hi, thanks for the discussion. So far I think I should just use 2 copies of the tomcat distribution. But honestly I'd prefer the other way. 1.) By classpath I mean the classpath of a web-application. 2.) Evidence is: I have two web-applications kos, which are the same but should use different configuration files which are located in the classes folder. But the tomcat-instance 2 is using the settings of tomcat-instance 1. With regards Tino Caldarale, Charles R wrote: From: news [mailto:[EMAIL PROTECTED] On Behalf Of Tino Schöllhorn Subject: Multiple Tomcat-Instances problem But now I noticed that those 2 instances are using the same classes and the same classpath, which they should'nt. A couple of questions: 1) What do you mean by classpath? An application (context) under Tomcat does not use a classpath in the typical Java sense. 2) What is the evidence for your observation that the same classes are being loaded under both Tomcat instances? Tomcat 1 is working normally. But Tomcat 2 is using the same classes and libraries as Tomcat 1 in a context which is named kos respectively. Does this app have a Context element somewhere with an explicit docBase attribute? - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problem with using tomcat Datasource inside a servlet.
Sorry, I think you define your DataSource inside the GlobalNamingResources section, but your first jndi parameter are correct (java:comp/env/ jdbc/be_Publisher). You need a ResourceLink inside you app context. Define a file META-INF/context.xml Context ResourceLink name=jdbc/be_Publisher global=jdbc/be_Publisher type=java.sql.DataSource / /Context Links: http://tomcat.apache.org/tomcat-5.5-doc/config/globalresources.html http://tomcat.apache.org/tomcat-5.5-doc/config/context.html#Resource% 20Links http://tomcat.apache.org/tomcat-5.5-doc/jndi-datasource-examples- howto.html Peter Am 28.01.2006 um 14:54 schrieb Legolas Woodland: Peter Rossbach wrote: Wrong lookup name: Use: java:comp/jdbc/be_Publisher Peer Am 28.01.2006 um 11:03 schrieb Legolas Woodland: java:comp/env/jdbc/be_Publisher); I change it according to your advice but it still return the same error. some more description : when i deploy the application , if i add the same data source as that image shows to my application data sources node it will works but in test env , it is very hard to define a data source each time that i run the application. Thank you - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: logfile weirdness
David Thielen wrote: I am having a problem where requested pages are not being listed in my IIS log - and I need those entries for my web tracking. Download a copy of ieHTTPHeaders and look at what the browser is sending/receiving during this process. Mark - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: From Java to C#, ASP.NET [Off Topic]
Hi Tony It's funny about your put words in our mouths... Is there written somewhere in this thread that Bill Gates is Satan or something like that ? What was said, and I think it's true, is that Microsoft (or Sun or IBM, if that matters) is a company trying to make money, whereas open source projects are generally made by developpers for developpers. At the end of the day, I think you could be rather grateful to the open source community which has driven Microsoft to provide some free versions of their tool, which was never the case (I think) before this surge of open source fuzz. Another aspect is how well Microsoft takes care of the developpers will always depends on business plan. Look back at the issue with VB, they have just dropped it because of a business plan pushing for .Net. If it was an open source project you would have the source code to rely on and, if a big enough community, it could still be going on. Furthermore, you're the one seeing a conflict between open source and editors like Microsoft. Most of the people in this thread have been eager to learn from .Net and how it could improve their own work/language and the like. Microsoft itself, I think, did have a deep look at the way J2EE/Java was working before starting their own .Net. Once again, I doubt a language/platform or anything is life can be simply the best overall/in absolut. I would just say that .Net fits better your needs, apparently because of what you think is a more suitable dev. tool, better language and better documentation for you. So be it. And before saying you have found the holy grail, you may wait a little to see if its holy effects last and, maybe, asking yourself if you were using Java the right way. For example you could have asked whether the same tools/doc are available and how, and if not why. I agree, for sure, that it may be easier to spot how to use .Net. It's a single vendor's offer, so... But once again, will this single source of tools/platform/language always provide it the way you would like it to be ? I guess the best is to hope the alternative will always be good enough to have Microsoft worries about you, if not it might quite unpleasant for the .Net users. Whatever, just my 2 cents, as usual ;) ZedroS - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Asynchronous messaging in tomcat
On 1/27/06, Duan, Nick [EMAIL PROTECTED] wrote: Spawning your own threads in a web app is usually not recommended. Why? regards Leon - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Multiple Tomcat-Instances problem
By configuration files, do you mean .properties files? Are you loading them with URL urlToConfigFile = ClassLoader.getResource(fileName); ? Are you sure, that you have the right ClassLoader? regards Leon On 1/29/06, Tino Schöllhorn [EMAIL PROTECTED] wrote: Hi, thanks for the discussion. So far I think I should just use 2 copies of the tomcat distribution. But honestly I'd prefer the other way. 1.) By classpath I mean the classpath of a web-application. 2.) Evidence is: I have two web-applications kos, which are the same but should use different configuration files which are located in the classes folder. But the tomcat-instance 2 is using the settings of tomcat-instance 1. With regards Tino Caldarale, Charles R wrote: From: news [mailto:[EMAIL PROTECTED] On Behalf Of Tino Schöllhorn Subject: Multiple Tomcat-Instances problem But now I noticed that those 2 instances are using the same classes and the same classpath, which they should'nt. A couple of questions: 1) What do you mean by classpath? An application (context) under Tomcat does not use a classpath in the typical Java sense. 2) What is the evidence for your observation that the same classes are being loaded under both Tomcat instances? Tomcat 1 is working normally. But Tomcat 2 is using the same classes and libraries as Tomcat 1 in a context which is named kos respectively. Does this app have a Context element somewhere with an explicit docBase attribute? - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Asynchronous messaging in tomcat *
Leon Rosenberg wrote: On 1/27/06, Duan, Nick [EMAIL PROTECTED] wrote: Spawning your own threads in a web app is usually not recommended. Why? Well, you have to take care of them manually or some code has to do it. If forgotten, those threads can stop TC from shutting down properly. And that is just a tip of the proverbial iceberg. Nix. signature.asc Description: OpenPGP digital signature
Tomcat webapp directory on virtual host
I have tried to search for this for a while, and to no avail I decided to post the question here. I have Tomcat 5.5 setup with several virtual hosts. I want to deploy a struts .war file to one of the virtual hosts, but Tomcat wont recognize it. In my server.xml under the hosts section I have both the appBase and the docBase pointing to the directory in which I am deploying the .war file and it still is not working. I can, however run .jsp and servlets from within this directory just fine. I can deploy to the tomcat/webapps directory and it works correctly as well. Where is the webapps directory supposed to be for virtual hosts? Why is this not working? Thanks. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat webapp directory on virtual host
hi. i m new for using tomcat.i had instaled tomcat in my computer.but i dont how to set classpath...plz any of one know how to set class path for tomcat then plz reply me.. waiting 4 ur response.. thanks and regards - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat webapp directory on virtual host
N Tapas Kumar Choudhury wrote: hi. i m new for using tomcat.i had instaled tomcat in my computer.but i dont how to set classpath...plz any of one know how to set class path for tomcat then plz reply me.. waiting 4 ur response.. thanks and regards http://tomcat.apache.org/tomcat-5.5-doc/class-loader-howto.html - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Work directory
Hi, When tomcat tries to compile something and it tries to create the directories in the work directory, it seems to fail when trying to add org/apache to the path. I can go in by hand and create these two directories in the path, and then it works correctly. Is there any way to correct this? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Work directory
On 1/29/06, Chad Russell [EMAIL PROTECTED] wrote: When tomcat tries to compile something and it tries to create the directories in the work directory, it seems to fail when trying to add org/apache to the path. I can go in by hand and create these two directories in the path, and then it works correctly. Is there any way to correct this? It sounds like a permissions problem. Is Tomcat running as the same user you are able to create the directories as? (We need more information about your environment-- Tomcat version, OS and version, etc., to be of much help.) -- Wendy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: From Java to C#, ASP.NET [Off Topic]
Not Satan.. but a very good businessman That said we just inherited some vb code that accomplishes a cryptography algorithm just to get this to run under windoze took me 4 hours..the lack of VB doc was the blocking factor or maybe its probably because Im not a VB guy and never will be btw that same functionality can be accomplished with java libraries in under 1 hour why? there are opensource sites located world-wide in other words A little digging and some hard work on anyone's part will always get you an answer I cannot say the same thing for VB BTW: (VB).Net is an example of market forces pushing a company MS to develop a product (.NET) that meets marketplace need I for one welcome MS into the OOA/OOD world ~My 2 cents~ Martin- - Original Message - From: ZedroS Schwart [EMAIL PROTECTED] To: Tomcat Users List users@tomcat.apache.org Sent: Sunday, January 29, 2006 7:44 AM Subject: Re: From Java to C#, ASP.NET [Off Topic] Hi Tony It's funny about your put words in our mouths... Is there written somewhere in this thread that Bill Gates is Satan or something like that ? What was said, and I think it's true, is that Microsoft (or Sun or IBM, if that matters) is a company trying to make money, whereas open source projects are generally made by developpers for developpers. At the end of the day, I think you could be rather grateful to the open source community which has driven Microsoft to provide some free versions of their tool, which was never the case (I think) before this surge of open source fuzz. Another aspect is how well Microsoft takes care of the developpers will always depends on business plan. Look back at the issue with VB, they have just dropped it because of a business plan pushing for .Net. If it was an open source project you would have the source code to rely on and, if a big enough community, it could still be going on. Furthermore, you're the one seeing a conflict between open source and editors like Microsoft. Most of the people in this thread have been eager to learn from .Net and how it could improve their own work/language and the like. Microsoft itself, I think, did have a deep look at the way J2EE/Java was working before starting their own .Net. Once again, I doubt a language/platform or anything is life can be simply the best overall/in absolut. I would just say that .Net fits better your needs, apparently because of what you think is a more suitable dev. tool, better language and better documentation for you. So be it. And before saying you have found the holy grail, you may wait a little to see if its holy effects last and, maybe, asking yourself if you were using Java the right way. For example you could have asked whether the same tools/doc are available and how, and if not why. I agree, for sure, that it may be easier to spot how to use .Net. It's a single vendor's offer, so... But once again, will this single source of tools/platform/language always provide it the way you would like it to be ? I guess the best is to hope the alternative will always be good enough to have Microsoft worries about you, if not it might quite unpleasant for the .Net users. Whatever, just my 2 cents, as usual ;) ZedroS - 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: From Java to C#, ASP.NET [Off Topic]
David Thielen [EMAIL PROTECTED] wrote My conclusion between the two (now that .NET 2.0 has shipped) is: Portable - java Otherwise - .NET. A lot of the .NET advantage comes from the fact that the entire stack is from Microsoft so it all just works and is easy to use. Thanks - dave S'probably the truth. Maybe Microsoft will open up once Bill Steve have kicked the bucket. Would do them some good. Another 2c: When doing Java, you may want to stay clear of J2EE. I have heard it's the Wooly Mammoth framework and I have so far worked happily without it. I recommend a look at Bruce Tate's pamphlet here: http://www.oreilly.com/catalog/bfljava/ Best regards, -- David - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat webapp directory on virtual host
From: Chad Russell [mailto:[EMAIL PROTECTED] Subject: Tomcat webapp directory on virtual host I want to deploy a struts .war file to one of the virtual hosts, but Tomcat wont recognize it. In my server.xml under the hosts section I have both the appBase and the docBase pointing to the directory in which I am deploying the .war file and it still is not working. You need to be a bit more precise in the description of your configuration. There is no hosts tag defined for Tomcat, although you may have multiple Host tags. The appBase attribute for Host defines the default directory for applications associated with that host. The docbase attribute for a Context defines the specific location of the app, if outside of appBase; it should not be used if the app resides within the surrounding Host's appBase. Note that placing Context elements in server.xml is strongly discouraged with Tomcat 5.5. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: From Java to C#, ASP.NET [Off Topic]
On 1/29/06, David Tonhofer, m-plify S.A. [EMAIL PROTECTED] wrote: Another 2c: When doing Java, you may want to stay clear of J2EE. I have heard it's the Wooly Mammoth framework and I have so far worked happily without it. I recommend a look at Bruce Tate's pamphlet here: http://www.oreilly.com/catalog/bfljava/ Stay clear of J2EE? Not really possible, especially with your book recommendation, hibernate and spring are heavily J2EE based. Or did you mean EJB? Best regards, -- David Leon - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: From Java to C#, ASP.NET [Off Topic]
Martin Gainty wrote: we just inherited some vb code that accomplishes a cryptography algorithm just to get this to run under windoze took me 4 hours..the lack of VB doc was the blocking factor or maybe its probably because Im not a VB guy and never will be btw that same functionality can be accomplished with java libraries in under 1 hour Doesn't sound like a fair comparison to me... give me someone who's not a Java guy, like your not a VB guy, and ask them to do the same thing... it may well take the same amount of time. Your right in that the functionality is easier in Java, but would someone who isn't versed in Java know that, or be able to figure it out quite as fast? I doubt it. why? there are opensource sites located world-wide in other words A little digging and some hard work on anyone's part will always get you an answer I cannot say the same thing for VB Are you talking VB or VB.Net? If your talking VB, you aren't looking in the right places. There is *plenty* of readily-available knowledge out there about VB. VB.Net is a different story... it's newer, and the resources haven't had time to build up to the same level (true in general for .Net). Give it another year or two and see what's out there. I think it'll be comparable. BTW: (VB).Net is an example of market forces pushing a company MS to develop a product (.NET) that meets marketplace need I for one welcome MS into the OOA/OOD world I agree. And, this is one of the rare times that MS got it closer to right than wrong the very first time. It's not perfect, I don't think anyone is claiming it is (no one worth listening to anyway), but 1.0 wasn't bad at all, and 2.0 improves things from everything I've heard (I'm only a casual .Net user myself). Frank - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: From Java to C#, ASP.NET [Off Topic]
--- David Tonhofer, m-plify S.A. [EMAIL PROTECTED] wrote: Another 2c: When doing Java, you may want to stay clear of J2EE. I have heard it's the Wooly Mammoth framework and I have so far worked happily without it. I recommend a look at Bruce Tate's pamphlet here: http://www.oreilly.com/catalog/bfljava/ Best regards, -- David Specifically on this one email: http://java.sun.com/j2ee/1.4/docs/api/index.html J2EE is an API set to support some specifications: http://java.sun.com/j2ee/1.4/docs/index.html#specs There isn't much to it. It depends on what specifically you are going to need to use. There are a lot of services provided by J2EE. So, naturally it's going to get a little complex. J2EE is J2SE+ and specifications. Then on the general topic/this thread: There is SO much mis-information put out by competing technologies and those wanting to evangelise for their perceived benefit. One could argue different terms and be correct in either direction. Java will run on more platforms currently, and .NET could were there to be more runtimes for more platforms. C# has some language features Java doesn't have which can be both helpful and harmful depending on view point. Java is much more KISS in that regard. Some organizations want to use the same environment across the board and might only want MS products. Fair enough, run with it. Some may not want to be limited in that regard as some organizations like to run heavy enterprise databases on more advanced and capable hardware. Some like to have different OS for different jobs. One size doesn't always fit all for every organization. So, to each their own. To say one is better than the other is merely a point of opinion and depending on what an organization wants to lock in on should dictate more than anything what technologies are used. Personally: = I prefer KISS as it helps to simplify things, so I prefer the java language. In C# you might have an event handler setup using delegates or interfaces. So you have different ways of doing the same thing. I prefer one way. I also prefer javas inheritance language compared to C# and it's C++ syntax. I don't like the package naming conventions set by MS either which makes it easy for namespace/class name collision. Nor do I like the new partial classes. I don't think certain things add to readability and aid in an overall project as much as they might help a single persons productivity with getting one thing done. I have done plenty of things in the past which helped me, but made it harder for other people to keep up with me on a project as it was merely understandable by me because I wrote it and the language supported me doing so. I've done this with C/C++ macros as well. So, some things personal and some things in the language are good candidates for me to drop from project usage when setting up conventions for an organizations project. Same thing in C++ would happen alotso for conventions unless there was no real way of doing something without using some complex hard to read syntaxI always limit the usage of certain language syntax. Other than language issues I prefer the Java platform all together unless .NET is a requirement imposed by someone else. There is no benefit which I can see in using .NET over Java. I would rather use one main environment and tool set and only user another when needed. Were that environment to be .NET I would feel the same way about Java. However, I develop for Linux, Windows, and Macintosh and occasionally flavors of Unix, so that kind of rules out .NET. = As to the notion that some application runs better on .NET vs Java or vice versareally it will all depend on how any given application is written and which one comes before the other: meaning...I can write an application and John Doe can come along behind me and improve on it and I can come along behind him and improve on what he did and we can keep doing this until we're exausted and neither one really accomplish anything better than the other but we can surely, each, convince a few others we did. Sun and Microsoft collaborate now days...just like before the lawsuit...now that they settled their ordeal. They entered into a technology sharing agreement which was a big news story when it first happened and was post on their sites, so who ever really thinks they aren't borrowing many of the same ideas from each other are blinded by the marketing and propaganda hype natually put out by commercial companies. I might be able to locate the article. So, to sum it up. Use what you are more confortable with most of the time, but don't lock yourself into any single technology as you'll certainly have to write some code in more than one langauge on more than one platform if you have a very long career in this field. Personally I prefer Java, but if I have an oppurtunity to help my career or my situation then I would be a fool to say
Re: From Java to C#, ASP.NET [Off Topic]
yes the same holds true for someone coming from Java or C++ to VB I dont know how many times I asked what var means or how to add components to a build file such as adding a target to ant task or how do I get a ptr to an object in VB? Thanks to gert driesen for his nant project which answers the 2nd item On the subject of doc ..I find any specifics about VB quite difficult to locate and blogs are not nearly as numerous as java I would strongly encourage every academic institution to replace their VB offerings with .NET to prepare their students for current as well as future markets (in general) and the OOD world (specifically) Thanks Frank, M- - Original Message - From: Frank W. Zammetti [EMAIL PROTECTED] To: Tomcat Users List users@tomcat.apache.org Sent: Sunday, January 29, 2006 12:09 PM Subject: Re: From Java to C#, ASP.NET [Off Topic] Martin Gainty wrote: we just inherited some vb code that accomplishes a cryptography algorithm just to get this to run under windoze took me 4 hours..the lack of VB doc was the blocking factor or maybe its probably because Im not a VB guy and never will be btw that same functionality can be accomplished with java libraries in under 1 hour Doesn't sound like a fair comparison to me... give me someone who's not a Java guy, like your not a VB guy, and ask them to do the same thing... it may well take the same amount of time. Your right in that the functionality is easier in Java, but would someone who isn't versed in Java know that, or be able to figure it out quite as fast? I doubt it. why? there are opensource sites located world-wide in other words A little digging and some hard work on anyone's part will always get you an answer I cannot say the same thing for VB Are you talking VB or VB.Net? If your talking VB, you aren't looking in the right places. There is *plenty* of readily-available knowledge out there about VB. VB.Net is a different story... it's newer, and the resources haven't had time to build up to the same level (true in general for .Net). Give it another year or two and see what's out there. I think it'll be comparable. BTW: (VB).Net is an example of market forces pushing a company MS to develop a product (.NET) that meets marketplace need I for one welcome MS into the OOA/OOD world I agree. And, this is one of the rare times that MS got it closer to right than wrong the very first time. It's not perfect, I don't think anyone is claiming it is (no one worth listening to anyway), but 1.0 wasn't bad at all, and 2.0 improves things from everything I've heard (I'm only a casual .Net user myself). Frank - 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: From Java to C#, ASP.NET [Off Topic]
Martin Gainty wrote: On the subject of doc ..I find any specifics about VB quite difficult to locate and blogs are not nearly as numerous as java Interesting. Although I don't consider blogs a source of worthwild information on anything (and yes, that includes my own!), I've always found a wealth of VB knowledge on the web. Probably not quite as much as Java, but still. I would strongly encourage every academic institution to replace their VB offerings with .NET to prepare their students for current as well as future markets (in general) and the OOD world (specifically) I'd agree with that. Although, considering the difficulty we are currently having at my company finding VB experts (I long since ceased being an expert myself), perhaps colleges *are* preparing their students for the work world ;) I know a COBOL programmer that just landed himself a job making more than I am! I wouldn't be surprised if VB is the next COBOL in that regard :) Frank Thanks Frank, M- - Original Message - From: Frank W. Zammetti [EMAIL PROTECTED] To: Tomcat Users List users@tomcat.apache.org Sent: Sunday, January 29, 2006 12:09 PM Subject: Re: From Java to C#, ASP.NET [Off Topic] Martin Gainty wrote: we just inherited some vb code that accomplishes a cryptography algorithm just to get this to run under windoze took me 4 hours..the lack of VB doc was the blocking factor or maybe its probably because Im not a VB guy and never will be btw that same functionality can be accomplished with java libraries in under 1 hour Doesn't sound like a fair comparison to me... give me someone who's not a Java guy, like your not a VB guy, and ask them to do the same thing... it may well take the same amount of time. Your right in that the functionality is easier in Java, but would someone who isn't versed in Java know that, or be able to figure it out quite as fast? I doubt it. why? there are opensource sites located world-wide in other words A little digging and some hard work on anyone's part will always get you an answer I cannot say the same thing for VB Are you talking VB or VB.Net? If your talking VB, you aren't looking in the right places. There is *plenty* of readily-available knowledge out there about VB. VB.Net is a different story... it's newer, and the resources haven't had time to build up to the same level (true in general for .Net). Give it another year or two and see what's out there. I think it'll be comparable. BTW: (VB).Net is an example of market forces pushing a company MS to develop a product (.NET) that meets marketplace need I for one welcome MS into the OOA/OOD world I agree. And, this is one of the rare times that MS got it closer to right than wrong the very first time. It's not perfect, I don't think anyone is claiming it is (no one worth listening to anyway), but 1.0 wasn't bad at all, and 2.0 improves things from everything I've heard (I'm only a casual .Net user myself). Frank - 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] -- Frank W. Zammetti Founder and Chief Software Architect Omnytex Technologies http://www.omnytex.com AIM: fzammetti Yahoo: fzammetti MSN: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
regarding HttpSession
Sorry if my question is not clear. I can't find an explanation by myself (and internet pages). I have an HttpSessionListener that register the session in a Vector in sessionCreated() and removes the sessions in sessionDestroyed(). Another jsp page display this Vector. After some navigation inside the site I have more than one session binded to the same client (same browser, same IP, and same session from the point of view of the client). This behaviour is correct? Why I don't have only one session? After some try I put an error (inside a try/catch) inside the sessionCreated() method, I'd like to find the part of my code that requests the creation of the session, the first call to getSession() if I understand correctly the documentation. After the browsing of the index page I can see in the log file the stack trace. In the stack there is no sign of some class of mine. Last question: this is my implementation of the html tag: public int doStartTag() throws JspException { HttpSession sessione = req.getSession(false); if(sessione==null){ Logger.getLogger(it.aspix.debug).fine(session creation); the message never appers in the log file. Thanks in advance Edoardo Panfili -- [EMAIL PROTECTED] AIM: edoardopn Jabber: [EMAIL PROTECTED] tel:075 9142766 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: From Java to C#, ASP.NET [Off Topic]
Interesting. Although I don't consider blogs a source of worthwild information on anything (and yes, that includes my own!), I've always found a wealth of VB knowledge on the web. Probably not quite as much as Java, but still. I would strongly encourage every academic institution to replace their VB offerings with .NET to prepare their students for current as well as future markets (in general) and the OOD world (specifically) I'd agree with that. Although, considering the difficulty we are currently having at my company finding VB experts (I long since ceased being an expert myself), MGwell if the mother ship Microsoft isnt supporting their VB child I wonder how effective anyone could be supporting VB perhaps colleges *are* preparing their students for the work world ;) MGa definite maybe I know a COBOL programmer that just landed himself a job making more than I am! I wouldn't be surprised if VB is the next COBOL in that regard :) MGLife IS'NT Fair - Bill Gates Frank Frank W. Zammetti Founder and Chief Software Architect Omnytex Technologies http://www.omnytex.com AIM: fzammetti Yahoo: fzammetti MSN: [EMAIL PROTECTED] -Martin - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: logfile weirdness
-Original Message- From: Mark Thomas [mailto:[EMAIL PROTECTED] Sent: Sunday, January 29, 2006 2:59 AM To: Tomcat Users List Subject: Re: logfile weirdness David Thielen wrote: I am having a problem where requested pages are not being listed in my IIS log - and I need those entries for my web tracking. Download a copy of ieHTTPHeaders and look at what the browser is sending/receiving during this process. Mark - First off - this is a really useful tool - thanks. Here is what is showed - which makes me think it SHOULD be logging. First is the request response headers going to demo.faces and then demo_license.faces, using ieHTTPHeaders which shows a request for demo_license.faces. Second is the IIS logfile for those same requests. Any ideas? Thanks - dave request/response: GET /store/pages/demo.faces HTTP/1.1 Accept: */* Referer: http://www.windwardreports.com/ Accept-Language: en-us Accept-Encoding: gzip, deflate User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; .NET CLR 2.0.50727) Host: www.windwardreports.com Connection: Keep-Alive Cookie: referrer=www.windward.net; source=javareports; id=101; sourceid=1138568126724_424 HTTP/1.1 200 OK Connection: close Date: Sun, 29 Jan 2006 20:55:42 GMT Server: Microsoft-IIS/6.0 X-Powered-By: ASP.NET Set-Cookie: JSESSIONID=0E8C7C6FFB62E7223D9492B5544D5528; Path=/store Content-Type: text/html;charset=utf-8 Content-Language: en GET /store/pages/windward.css HTTP/1.1 Accept: */* Referer: http://www.windwardreports.com/store/pages/demo.faces Accept-Language: en-us Accept-Encoding: gzip, deflate If-Modified-Since: Thu, 26 Jan 2006 20:14:43 GMT If-None-Match: W/4774-1138306483970 User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; .NET CLR 2.0.50727) Host: www.windwardreports.com Connection: Keep-Alive Cookie: JSESSIONID=0E8C7C6FFB62E7223D9492B5544D5528; referrer=www.windward.net; source=javareports; id=101; sourceid=1138568126724_424 HTTP/1.1 304 Not Modified Date: Sun, 29 Jan 2006 20:55:42 GMT Server: Microsoft-IIS/6.0 X-Powered-By: ASP.NET Content-Length: 0 GET /store/pages/windward.js HTTP/1.1 Accept: */* Referer: http://www.windwardreports.com/store/pages/demo.faces Accept-Language: en-us Accept-Encoding: gzip, deflate If-Modified-Since: Tue, 25 Oct 2005 17:23:10 GMT If-None-Match: W/5316-1130260990078 User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; .NET CLR 2.0.50727) Host: www.windwardreports.com Connection: Keep-Alive Cookie: JSESSIONID=0E8C7C6FFB62E7223D9492B5544D5528; referrer=www.windward.net; source=javareports; id=101; sourceid=1138568126724_424 HTTP/1.1 304 Not Modified Date: Sun, 29 Jan 2006 20:55:42 GMT Server: Microsoft-IIS/6.0 X-Powered-By: ASP.NET Content-Length: 0 GET /store/images/logo.png HTTP/1.1 Accept: */* Referer: http://www.windwardreports.com/store/pages/demo.faces Accept-Language: en-us Accept-Encoding: gzip, deflate If-Modified-Since: Thu, 02 Jun 2005 15:21:21 GMT If-None-Match: W/5832-1117725681554 User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; .NET CLR 2.0.50727) Host: www.windwardreports.com Connection: Keep-Alive Cookie: JSESSIONID=0E8C7C6FFB62E7223D9492B5544D5528; referrer=www.windward.net; source=javareports; id=101; sourceid=1138568126724_424 HTTP/1.1 304 Not Modified Date: Sun, 29 Jan 2006 20:55:42 GMT Server: Microsoft-IIS/6.0 X-Powered-By: ASP.NET Content-Length: 0 GET /store/pages/bluetab.jpg HTTP/1.1 Accept: */* Referer: http://www.windwardreports.com/store/pages/demo.faces Accept-Language: en-us Accept-Encoding: gzip, deflate If-Modified-Since: Tue, 25 Oct 2005 17:23:15 GMT If-None-Match: W/1087-1130260995125 User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; .NET CLR 2.0.50727) Host: www.windwardreports.com Connection: Keep-Alive Cookie: JSESSIONID=0E8C7C6FFB62E7223D9492B5544D5528; referrer=www.windward.net; source=javareports; id=101; sourceid=1138568126724_424 HTTP/1.1 304 Not Modified Date: Sun, 29 Jan 2006 20:55:42 GMT Server: Microsoft-IIS/6.0 X-Powered-By: ASP.NET Content-Length: 0 POST /store/pages/demo.faces;jsessionid=0E8C7C6FFB62E7223D9492B5544D5528 HTTP/1.1 Accept: */* Referer: http://www.windwardreports.com/store/pages/demo.faces Accept-Language: en-us Content-Type: application/x-www-form-urlencoded Accept-Encoding: gzip, deflate User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; .NET CLR 2.0.50727) Host: www.windwardreports.com Content-Length: 476 Connection: Keep-Alive Cache-Control: no-cache Cookie: JSESSIONID=0E8C7C6FFB62E7223D9492B5544D5528; referrer=www.windward.net; source=javareports; id=101; sourceid=1138568126724_424 Demo_Request%3AName=David+Thielen[EMAIL PROTECTED]De mo_Request%3ATitle=Demo_Request%3ACompany=Demo_Request%3AStreet_Line1=1127
Re: Work directory
Wendy Smoak wrote: On 1/29/06, Chad Russell [EMAIL PROTECTED] wrote: When tomcat tries to compile something and it tries to create the directories in the work directory, it seems to fail when trying to add org/apache to the path. I can go in by hand and create these two directories in the path, and then it works correctly. Is there any way to correct this? It sounds like a permissions problem. Is Tomcat running as the same user you are able to create the directories as? Yes. It is running as user tomcat (We need more information about your environment-- Tomcat version, OS and version, etc., to be of much help.) Server version: Apache Tomcat/5.5.9 Server built: Mar 26 2005 02:21:04 Server number: 5.5.9.0 OS Name:Linux OS Version: 2.4.20-28.7 Architecture: i386 JVM Version:1.5.0_05-b05 JVM Vendor: Sun Microsystems Inc. -- Wendy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat webapp directory on virtual host
Caldarale, Charles R wrote: From: Chad Russell [mailto:[EMAIL PROTECTED] Subject: Tomcat webapp directory on virtual host I want to deploy a struts .war file to one of the virtual hosts, but Tomcat wont recognize it. In my server.xml under the hosts section I have both the appBase and the docBase pointing to the directory in which I am deploying the .war file and it still is not working. You need to be a bit more precise in the description of your configuration. There is no hosts tag defined for Tomcat, although you may have multiple Host tags. The appBase attribute for Host defines the default directory for applications associated with that host. The docbase attribute for a Context defines the specific location of the app, if outside of appBase; it should not be used if the app resides within the surrounding Host's appBase. My apologies. Guess I should have been a little more awake when I sent that. Here is my Host tag for the domain I am trying to use: Host name=www.domain.com appBase=/home/domaindir/public_html unpackWARs=true autoDeploy=true xmlValidation=false xmlNamespaceAware=false Context path= reloadable=true docBase=/home/domaindir/public_html debug=1/ Context path=/manager debug=0 privileged=true docBase=/usr/local/jakarta/tomcat/server/webapps/manager /Context /Host Note that placing Context elements in server.xml is strongly discouraged with Tomcat 5.5. Where should this go? I am on a server that uses cPanel and I think it put this in there, as I didn't. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: logfile weirdness
David Thielen wrote: From: Mark Thomas [mailto:[EMAIL PROTECTED] Download a copy of ieHTTPHeaders and look at what the browser is sending/receiving during this process. Mark - First off - this is a really useful tool - thanks. Glad you found it useful. Here is what is showed - which makes me think it SHOULD be logging. First is the request response headers going to demo.faces and then demo_license.faces, using ieHTTPHeaders which shows a request for demo_license.faces. Second is the IIS logfile for those same requests. Any ideas? Thanks - dave None at all I am afraid. The right number of entries are in your IIS logs but the data is, as you say, weird. I think you need the help of someone who knows the isapi code better than I do - or at all even ;) What would help is the simplest possible test case that shows this issue. Mark - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: From Java to C#, ASP.NET [Off Topic]
For a little bit of who really cares and what's it really matter anyways: http://weblogs.java.net/blog/haroldcarr/archive/2006/01/introducing_jav.html ;-) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: From Java to C#, ASP.NET [Off Topic]
- Original Message - From: David Tonhofer, m-plify S.A. [EMAIL PROTECTED] To: Tomcat Users List users@tomcat.apache.org Sent: Sunday, January 29, 2006 10:11 AM Subject: RE: From Java to C#, ASP.NET [Off Topic] David Thielen [EMAIL PROTECTED] wrote My conclusion between the two (now that .NET 2.0 has shipped) is: Portable - java Otherwise - .NET. A lot of the .NET advantage comes from the fact that the entire stack is from Microsoft so it all just works and is easy to use. Thanks - dave S'probably the truth. Maybe Microsoft will open up once Bill Steve have kicked the bucket. Would do them some good. Another 2c: When doing Java, you may want to stay clear of J2EE. I have heard it's the Wooly Mammoth framework and I have so far worked happily without it. I recommend a look at Bruce Tate's pamphlet here: I agree whole heartedly. The Bruce Tate book along with Rod Johnson's, Expert One-on-One J2EE Development without EJB are indications of many Java developers' overall dissatisfaction with the ponderous, unnecessarily overbearing beast that is J2EE. My own feel is that all the Java Enterprise APIs that make up J2EE were more or less bolted on after the core Java language was established. Generally, I think choice' is A Good Thing. But at a certain point too much choice leads to fragmentation and confusion which in turn leads to frustration, sloppiness and failed projects. Just think about object persistence as an examplewhat do you use? Hibernate? EJBs? JDO? iBatis? TopLink? Something else? Then think of all the web related frameworks you have...Tapestry, Velocity, JSP, Cocoon, JSTL, JSF, Struts, probably a dozen more. Now, before someone corrects me, I realize there is not always a perfect overlap between all these projects. I realize that some of them are complimentary to others. Java, the core language, is good (although, as I mentioned in the original post, I think C# is a bit better). There's no doubt in my mind that C# and .NET benefited from Java and J2EE, just as Boeing and McDonnell Douglas benefited from the work of the Wright Brothers. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat webapp directory on virtual host
It would be really nice if the next verion of Tomcat could dispense with putting hosts in the server.xml file as well. They already have a directory structure in place... Right now, for my high-volume hosting I have a startup script that generates a server.xml on the fly. The reason I have to do this is because the host-manager application doesn't write new hosts to the server.xml (and if it did, it would probably restart them all anyhow). It would be nice if tomcat and host-manager would write a host.xml to the conf/engine name/host_name directory. George Sexton MH Software, Inc. http://www.mhsoftware.com/ Voice: 303 438 9585 -Original Message- From: Caldarale, Charles R [mailto:[EMAIL PROTECTED] Sent: Sunday, January 29, 2006 9:46 AM To: Tomcat Users List Subject: RE: Tomcat webapp directory on virtual host From: Chad Russell [mailto:[EMAIL PROTECTED] Subject: Tomcat webapp directory on virtual host I want to deploy a struts .war file to one of the virtual hosts, but Tomcat wont recognize it. In my server.xml under the hosts section I have both the appBase and the docBase pointing to the directory in which I am deploying the .war file and it still is not working. You need to be a bit more precise in the description of your configuration. There is no hosts tag defined for Tomcat, although you may have multiple Host tags. The appBase attribute for Host defines the default directory for applications associated with that host. The docbase attribute for a Context defines the specific location of the app, if outside of appBase; it should not be used if the app resides within the surrounding Host's appBase. Note that placing Context elements in server.xml is strongly discouraged with Tomcat 5.5. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Work directory
Most likely, you ran it as root, and it created a directory structure. Now you're trying to run as an unprivileged user. My advice is to stop tomcat, wipe all files in the temp and work directories and then start tomcat. George Sexton MH Software, Inc. http://www.mhsoftware.com/ Voice: 303 438 9585 -Original Message- From: Chad Russell [mailto:[EMAIL PROTECTED] Sent: Sunday, January 29, 2006 8:10 AM To: Tomcat Users List Subject: Work directory Hi, When tomcat tries to compile something and it tries to create the directories in the work directory, it seems to fail when trying to add org/apache to the path. I can go in by hand and create these two directories in the path, and then it works correctly. Is there any way to correct this? - 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: From Java to C#, ASP.NET [Off Topic]
A ms product conforming to JSR261??? nice to see some folks who can see interoperability is the name of the game Thanks for the great link! M- - Original Message - From: Wade Chandler [EMAIL PROTECTED] To: Tomcat Users List users@tomcat.apache.org; Martin Gainty [EMAIL PROTECTED] Sent: Sunday, January 29, 2006 6:01 PM Subject: Re: From Java to C#, ASP.NET [Off Topic] For a little bit of who really cares and what's it really matter anyways: http://weblogs.java.net/blog/haroldcarr/archive/2006/01/introducing_jav.html ;-) - 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: From Java to C#, ASP.NET [Off Topic]
All available class libraries were bolted on after the core language was established. You could say anything not in java.lang.* was bolted on. The beauty of all those bolt ons is that you have so much stuff already there, you can concentrate on your business logic. Even early in the C++ world, we still had to write linked lists explicitly. At least I am not forced to use IIS and SQLServer. -Original Message- From: Tony LaPaso [mailto:[EMAIL PROTECTED] Sent: Sunday, January 29, 2006 6:59 PM To: Tomcat Users List Subject: Re: From Java to C#, ASP.NET [Off Topic] - Original Message - From: David Tonhofer, m-plify S.A. [EMAIL PROTECTED] To: Tomcat Users List users@tomcat.apache.org Sent: Sunday, January 29, 2006 10:11 AM Subject: RE: From Java to C#, ASP.NET [Off Topic] David Thielen [EMAIL PROTECTED] wrote My conclusion between the two (now that .NET 2.0 has shipped) is: Portable - java Otherwise - .NET. A lot of the .NET advantage comes from the fact that the entire stack is from Microsoft so it all just works and is easy to use. Thanks - dave S'probably the truth. Maybe Microsoft will open up once Bill Steve have kicked the bucket. Would do them some good. Another 2c: When doing Java, you may want to stay clear of J2EE. I have heard it's the Wooly Mammoth framework and I have so far worked happily without it. I recommend a look at Bruce Tate's pamphlet here: I agree whole heartedly. The Bruce Tate book along with Rod Johnson's, Expert One-on-One J2EE Development without EJB are indications of many Java developers' overall dissatisfaction with the ponderous, unnecessarily overbearing beast that is J2EE. My own feel is that all the Java Enterprise APIs that make up J2EE were more or less bolted on after the core Java language was established. Generally, I think choice' is A Good Thing. But at a certain point too much choice leads to fragmentation and confusion which in turn leads to frustration, sloppiness and failed projects. Just think about object persistence as an examplewhat do you use? Hibernate? EJBs? JDO? iBatis? TopLink? Something else? Then think of all the web related frameworks you have...Tapestry, Velocity, JSP, Cocoon, JSTL, JSF, Struts, probably a dozen more. Now, before someone corrects me, I realize there is not always a perfect overlap between all these projects. I realize that some of them are complimentary to others. Java, the core language, is good (although, as I mentioned in the original post, I think C# is a bit better). There's no doubt in my mind that C# and .NET benefited from Java and J2EE, just as Boeing and McDonnell Douglas benefited from the work of the Wright Brothers. - 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: Work directory
All the files are owned by the user that tomcat runs as. And it does create some directories in there, however it fails on the org/apache directories. If I create those, and changed the owner to the same user as tomcat, then it happily creates the directories underneath it on the fly with no problem. George Sexton wrote: Most likely, you ran it as root, and it created a directory structure. Now you're trying to run as an unprivileged user. My advice is to stop tomcat, wipe all files in the temp and work directories and then start tomcat. George Sexton MH Software, Inc. http://www.mhsoftware.com/ Voice: 303 438 9585 -Original Message- From: Chad Russell [mailto:[EMAIL PROTECTED] Sent: Sunday, January 29, 2006 8:10 AM To: Tomcat Users List Subject: Work directory Hi, When tomcat tries to compile something and it tries to create the directories in the work directory, it seems to fail when trying to add org/apache to the path. I can go in by hand and create these two directories in the path, and then it works correctly. Is there any way to correct this? - 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: Work directory
Are the temp and work directories owned by the tomcat user, and are their permissions rwx? George Sexton MH Software, Inc. http://www.mhsoftware.com/ Voice: 303 438 9585 -Original Message- From: Chad Russell [mailto:[EMAIL PROTECTED] Sent: Sunday, January 29, 2006 6:00 PM To: Tomcat Users List Subject: Re: Work directory All the files are owned by the user that tomcat runs as. And it does create some directories in there, however it fails on the org/apache directories. If I create those, and changed the owner to the same user as tomcat, then it happily creates the directories underneath it on the fly with no problem. George Sexton wrote: Most likely, you ran it as root, and it created a directory structure. Now you're trying to run as an unprivileged user. My advice is to stop tomcat, wipe all files in the temp and work directories and then start tomcat. George Sexton MH Software, Inc. http://www.mhsoftware.com/ Voice: 303 438 9585 -Original Message- From: Chad Russell [mailto:[EMAIL PROTECTED] Sent: Sunday, January 29, 2006 8:10 AM To: Tomcat Users List Subject: Work directory Hi, When tomcat tries to compile something and it tries to create the directories in the work directory, it seems to fail when trying to add org/apache to the path. I can go in by hand and create these two directories in the path, and then it works correctly. Is there any way to correct this? - 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: Work directory
Yes. George Sexton wrote: Are the temp and work directories owned by the tomcat user, and are their permissions rwx? George Sexton MH Software, Inc. http://www.mhsoftware.com/ Voice: 303 438 9585 -Original Message- From: Chad Russell [mailto:[EMAIL PROTECTED] Sent: Sunday, January 29, 2006 6:00 PM To: Tomcat Users List Subject: Re: Work directory All the files are owned by the user that tomcat runs as. And it does create some directories in there, however it fails on the org/apache directories. If I create those, and changed the owner to the same user as tomcat, then it happily creates the directories underneath it on the fly with no problem. George Sexton wrote: Most likely, you ran it as root, and it created a directory structure. Now you're trying to run as an unprivileged user. My advice is to stop tomcat, wipe all files in the temp and work directories and then start tomcat. George Sexton MH Software, Inc. http://www.mhsoftware.com/ Voice: 303 438 9585 -Original Message- From: Chad Russell [mailto:[EMAIL PROTECTED] Sent: Sunday, January 29, 2006 8:10 AM To: Tomcat Users List Subject: Work directory Hi, When tomcat tries to compile something and it tries to create the directories in the work directory, it seems to fail when trying to add org/apache to the path. I can go in by hand and create these two directories in the path, and then it works correctly. Is there any way to correct this? - 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: logfile weirdness
If the person who knows the isapi filter is on this list and is willing to look at this - I'm willing to give them a copy of the code. It's a very simple servlet and it's just 2 clicks to make this problem occur. Thanks - dave David Thielen www.windwardreports.com 303-499-2544 -Original Message- From: Mark Thomas [mailto:[EMAIL PROTECTED] Sent: Sunday, January 29, 2006 3:16 PM To: Tomcat Users List Subject: Re: logfile weirdness David Thielen wrote: From: Mark Thomas [mailto:[EMAIL PROTECTED] Download a copy of ieHTTPHeaders and look at what the browser is sending/receiving during this process. Mark - First off - this is a really useful tool - thanks. Glad you found it useful. Here is what is showed - which makes me think it SHOULD be logging. First is the request response headers going to demo.faces and then demo_license.faces, using ieHTTPHeaders which shows a request for demo_license.faces. Second is the IIS logfile for those same requests. Any ideas? Thanks - dave None at all I am afraid. The right number of entries are in your IIS logs but the data is, as you say, weird. I think you need the help of someone who knows the isapi code better than I do - or at all even ;) What would help is the simplest possible test case that shows this issue. Mark - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat webapp directory on virtual host
From: Chad Russell [mailto:[EMAIL PROTECTED] Subject: Re: Tomcat webapp directory on virtual host Context path= reloadable=true docBase=/home/domaindir/public_html debug=1/ The docBase should specify the actual .war file, not just the directory it's in. Since you're using the appBase directory, all you should need is the .war file name. Note that the default app is normally named ROOT.war; if it's named something else, you may get two deployments for the app - one as the default app, and one as the name of the .war file. Context path=/manager debug=0 privileged=true docBase=/usr/local/jakarta/tomcat/server/webapps/manager This works with the manager app since it's an expanded app, not a .war file. Where should this go? I am on a server that uses cPanel and I think it put this in there, as I didn't. Sorry, I don't have any experience with cPanel. Normally, the Context tag goes inside META-INF/context.xml in the app's .war file or directory. This method is used when the app is deployed in the appBase directory for the appropriate Host. In this scenario neither the docBase nor the path attribute should be used, since the app location is known and its name is derived from the name of the .war file or directory the app is stored under. The default app must use ROOT.war or the ROOT directory under the appBase directory. For apps stored outside of appBase, the Context tag is normally placed in conf/Catalina/[host_name]/[app_name].xml. The docBase attribute is required, but the path attribute should not be used; the context file for the default app must be named ROOT.xml. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Is mod_jk buffering its log ? Is this a problem ?
Hello: I am using mod_jk between my Apache 1.3.x and Tomcat 5.5.12 on Solaris 8 and Linux (RHEL2 and RHEL3) The one issue which bothers *support* is that if you have an error reported by mod_jk you do not see the error messages in the logfile until you shutdown the server or reach some size trigger e.g. 1000+ bytes). With log level DEBUG the logs are updated instantly. If we turn on the request loggin: JkRequestLogFormat %w %V %U %s %T %B %H %m We do not see an logs for a few line (until the buffer is flushed?) and under some low stress load (10 requ/sec) the lines might wrap with some partial character loss (that was not the case for version 1.2.3-dev). Am I missing some configuration setting ?? Where do I need to look ? Your help will be greatly appreciated, Thank you - Fred
Why does mod_jk write a file ./conf/ajp13.id
Hi: I am using mod_jk.so v1.2.15 (and tomcat 5.5.12) Why does mod_jk need to create and write the file ajp13.id in the configuration directory? ./conf/ajp13.id #Automatically generated, don't edit #Thu Jan 26 16:24:17 GMT 2006 secret=secretword port=8009 I like (feel more secure) to have all the configuration directories set to read only so this 'write' requirement creates a problem. Also odd, is that the port attribute is the tomcat default and not the active port defined in the workers.properties nor server.xml. Is that a bug or another configuration issue? Your help is greatly appreciated, Thank you - Fred
Configuring and using jkstatus for only one Tomcat instance
Hi: Re: mod_jk.so v1.2.15 (and tomcat 5.5.12) I followed the instructions on the web site to enable jkstatus a: http://tomcat.apache.org/connectors-doc/howto/workers.html = Status Worker properties After being puzzled for some time reading the same line over and over on that page, I eventually understood that I needed to setup a load balancer :) While I do not have the need for balancing at this time, is it acceptable to define a worker type lb with only one worker ? Example: worker.mylbWorker.type=lb worker.mylbWorker.balance_workers=myWorker1 What are the side effects or risks (will it take more resources, more memory, leakage,) Your help is greatly appreciated, Regards - Fred
Broken Architecture documentation pdf on tomcat.apache.org
Hi: When I look at the Architecture documentation pdf, I see only blank pages in the pdf files linked under Tomcat Architecture. These pdfs, are broken on tomcat.apache.org and when I build Tomcat 5.5.12from source (Linux/Solaris). Bugzilla says it is fixed in September, http://issues.apache.org/bugzilla/show_bug.cgi?id=36574 Is there something wrong with the documents or is my acrobat reader (version 6 and 7.0)? 1) Tomcat Architecture Startup error http://tomcat.apache.org/tomcat-5.5-doc/architecture/startup/serverStartup.pdf - UML pdf file does not open properly, it is blank pages and some Acrobat error message: an unrecognized token '.P35.76' was found. 2) Tomcat Architecture Request Process Flow error http://tomcat.apache.org/tomcat-5.5-doc/architecture/requestProcess/requestProcess.pdf - Acrobat error: Cannot extract the embedded font 'EHPFDM+Arial'. Some characters may not display or print correctly. Should I reopen the bugzilla ticket? Many thanks - Fred
Re: how to use j_username j_password in j_security_cheched
see the admin application (server/webapps/admin) see the web.xml to check how to add security constrainsts and use FORM based authentication. see login.jsp to check how to use j_security_checked to authenticate users. amila On 1/27/06, Prashant Saraf [EMAIL PROTECTED] wrote: hello can any on tell me how to use j_username j_password in j_security_cheched thanks
RE: Configuring and using jkstatus for only one Tomcat instance
Hello Fred, I defined a load balancer for a single tomcat instance as well, and it doesn't seem slow at all. I think it is more scalable. On our production server, we switched to 2 tomcat instances very easily. If it takes more memory, then it won't be much. Greetings, Luc -Original Message- From: Fred K [mailto:[EMAIL PROTECTED] Sent: Monday, January 30, 2006 6:26 To: tomcat users Subject: Configuring and using jkstatus for only one Tomcat instance Hi: Re: mod_jk.so v1.2.15 (and tomcat 5.5.12) I followed the instructions on the web site to enable jkstatus a: http://tomcat.apache.org/connectors-doc/howto/workers.html = Status Worker properties After being puzzled for some time reading the same line over and over on that page, I eventually understood that I needed to setup a load balancer :) While I do not have the need for balancing at this time, is it acceptable to define a worker type lb with only one worker ? Example: worker.mylbWorker.type=lb worker.mylbWorker.balance_workers=myWorker1 What are the side effects or risks (will it take more resources, more memory, leakage,) Your help is greatly appreciated, Regards - Fred - Legal Notice: This electronic mail and its attachments are intended solely for the person(s) to whom they are addressed and contain information which is confidential or otherwise protected from disclosure, except for the purpose for which they are intended. Dissemination, distribution, or reproduction by anyone other than the intended recipients is prohibited and may be illegal. If you are not an intended recipient, please immediately inform the sender and return the electronic mail and its attachments and destroy any copies which may be in your possession. UCB screens electronic mails for viruses but does not warrant that this electronic mail is free of any viruses. UCB accepts no liability for any damage caused by any virus transmitted by this electronic mail. -