Re: Any way to check the client abruptly close the connection?

2007-07-08 Thread Johnny Kewl
This is an interesting question, and I'm going to guess... If you in a JSP page, I dont think the error can be trapped. If you in a servlet, yes I think a try catch will detect it, but only if you actually write something. I think the generic problem is that you cant just leave the browser

Re: about tomcat

2007-07-08 Thread Johnny Kewl
No, I dont think so, a web server is not a client, and unless you really have to work on port 80, it would be much easier to just to use JDBC to exchange records. ie open 2 database connections, read from one and write to the other, this way you can also use tranactions and ensure the

Re: How to compile from source

2007-07-07 Thread Johnny Kewl
Marcello I've never built 5.5... have only built 6.013, and they completely different, so I just had a look at the SVN repositories and I'm going to guess It looks to me like there are 2 build scripts... So if you point ant at the build.xml in the src base folder it will use

Re: How to use connection pool with tomcat 1.2.9

2007-07-07 Thread Johnny Kewl
Nhut listen I think you mixing two different methods. You using a framework that works on Tomcat, and both Struts and Tomcat have a way of making a dB pool You need to choose one or the other. TC uses JNDI... most people I think do it this way, and it will work with or without

Re: Missing JMX.jar in Tomcat 5.5.23?

2007-07-05 Thread Johnny Kewl
No, that stuff is not relevent, in the BAT (SH) files, the TC guys having given you the ability to make a digest or a hash of passwords to hide them in the realm, if u want to. And all they saying is that you dont have to use the whole of TC to make them (hashes), and can just use a few

Re: Tomcat Version problem

2007-07-05 Thread Johnny Kewl
Ha, that will teach you to use the latest and greatest template collections ;) If you using Netbeans, just right click on the project and move the source level down to 1.4... I think you going to find all your problems - Original Message - From: Girish Havaldar [EMAIL PROTECTED]

Re: Tomcat Version problem

2007-07-05 Thread Johnny Kewl
I see one problem.. see note below - Original Message - From: Girish Havaldar [EMAIL PROTECTED] To: Tomcat Users List users@tomcat.apache.org Sent: Thursday, July 05, 2007 10:00 AM Subject: Re: Tomcat Version problem ths is the jsp page: [EMAIL PROTECTED]

Re: How internally does a jndi resource get created?

2007-07-04 Thread Johnny Kewl
Jevin, it actually sounds like you not just talking about JNDI and defining your own factory, but setting the passwords programmatically for the standard DBCP JNDI factory I dont think its possible, but it would be nice to be proved wrong. Keeping passwords in binary form, would require

Re: How internally does a jndi resource get created?

2007-07-04 Thread Johnny Kewl
Jevin, my curiousity got the better of me, and I tried to find it for you Can see TC loading up the resource in the ResourceFactory, but it just seems that nowhere does it actually read the password and pass it into DBCP I havnt checked, but I have a feeling that the DBCP module gets the

Re: Tomcat - Apache: IP replacement

2007-07-03 Thread Johnny Kewl
Hi Nino, Just to make sure my memory served me correctly, I setup a test case for Apache - JK - TC on a machine (XP SP2) with IPV6 enabled. Apache, Browser and TC... are all on same machine to simulate your test. Apache is not IPv6 enabled The machines name is Animal ipv4 10.0.0.4...

Re: Tomcat - Apache: IP replacement

2007-07-03 Thread Johnny Kewl
...Any ideasThanks,Nino-Ursprüngliche Nachricht-Von: Johnny Kewl [mailto:[EMAIL PROTECTED]: Dienstag, 3. Juli 2007 13:14An: Tomcat Users ListBetreff: Re: Tomcat - Apache: IP replacementHi Nino,Just to make sure my memory served me correctly, I setup a test case forApache - JK

Re: Tomcat - Apache: IP replacement

2007-07-03 Thread Johnny Kewl
Nino, I'm thrilled that you onto the problem, and that there definitely seems to be a real issue, its not just a config glitch somewhere. but it doesnt look good. That command is effectively turning Apache into a steam engine on windows, and its treating windows like its got stone age

Re: WEB.XML file parsing

2007-07-02 Thread Johnny Kewl
This guy has reckons you can turn off DTD checking http://www.isocra.com/blogs/index.php?/archives/5-Making-Xerces-ignore-a-DTD.html Tools like Xerces and Xalan are very good, but pretty heavy. If you google you will also find some very light weight sax parsers out there. Most of them dont even

Re: Unable to disable output buffering

2007-07-02 Thread Johnny Kewl
Fabio, it just sounds all wrong I have a sneaky suspicion that if you made the buffer very large, your problems will fix themselves, but thats still not the solution. I actually think you are not telling the client the size of the data do you set response.setContentLength(How

Re: Tomcat adding files

2007-07-02 Thread Johnny Kewl
Oh, it normally just a silly thing, like its picking up a relative link, not an absolute ref try... %@ include file=/thething.jsp % Also half the problem is you only picking up the hassle at run time... In Netbeans if you right click on the JSP file and compile it, you will see the problem

Re: Tomcat - Apache: IP replacement

2007-07-02 Thread Johnny Kewl
Ha ha you made me panic, no my load sharing stuff behind JK, is not doing that, ie getRemoteAddr is working. You know if you on a MS box, (guessing wildly here), the first time I ever saw 0.0.0.0 as a local address is when I was playing with IPv6. and only on the local IPV6 addresses,

Re: Tomcat - Apache: IP replacement

2007-07-02 Thread Johnny Kewl
the TC guys where messing around with it... http://www.junlu.com/msg/354211.html --- Thanks, Nino -Ursprüngliche Nachricht- Von: Johnny Kewl [mailto:[EMAIL PROTECTED] Gesendet: Montag, 2. Juli 2007 13:21 An: Tomcat Users List Betreff: Re: Tomcat - Apache: IP replacement Ha ha you

Re: Tomcat Threads handling user Requests problem

2007-07-02 Thread Johnny Kewl
Can you believe that, IE only allows 2 files downloaded at the same time, and then you have to dig into the registry get OPERA ;) Now that I advertised my favorite browser I think its working and I have yet another theory ;) Modern browsers dont drop the connection, because establishing

Re: Tomcat Threads handling user Requests problem

2007-07-02 Thread Johnny Kewl
headers somewhere... then I think you will see multiple connections. but as the tests show HTTP/1.1 is probably faster anyway, and your server will probably fall over on high volumes. - Original Message - From: Johnny Kewl [EMAIL PROTECTED] To: Tomcat Users List users

Re: Tomcat Threads handling user Requests problem

2007-07-02 Thread Johnny Kewl
- Original Message - From: Rainer Jung [EMAIL PROTECTED] To: Tomcat Users List users@tomcat.apache.org Sent: Monday, July 02, 2007 8:24 PM Subject: Re: Tomcat Threads handling user Requests problem Johnny Kewl wrote: Can you believe that, IE only allows 2 files downloaded

Re: Filters and getLastModified

2007-07-01 Thread Johnny Kewl
You know LightBulb, been seeing your questions for a while now, you clearly learning, but you have got one serious conceptual mind on you, not enough just to use TC, hey ;) I think its great, a guru in the making. To try answer your question, if its HTTP, the getLastModified() that you

Re: Filters and getLastModified

2007-07-01 Thread Johnny Kewl
- Original Message - From: Johnny Kewl [EMAIL PROTECTED] To: Tomcat Users List users@tomcat.apache.org Sent: Sunday, July 01, 2007 11:22 AM Subject: Re: Filters and getLastModified You know LightBulb, been seeing your questions for a while now, you clearly learning, but you have

Re: Using auto-configure with Tomcat 6.0

2007-07-01 Thread Johnny Kewl
Johnny Kewl [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Frank, I see the classes are there in 6.0, but the document does mention its for 5.x only. Unfortunately I dont have TC6 setup for this. Could someone, please confirm, this (mod_jk.conf-auto) is still a feature in TC6 Thx

Re: Server Node Id

2007-06-30 Thread Johnny Kewl
of the current node it would be all I need. -Regards Ingo Johnny Kewl schrieb: Also, maybe this is a good idea, one other thing I found handy behind a JK cluster is leaving 2 connectors open. So you got the cluster server doing its round robin, but each machine can find the other machine directly through

Re: Using auto-configure with Tomcat 6.0

2007-06-30 Thread Johnny Kewl
Frank, I see the classes are there in 6.0, but the document does mention its for 5.x only. Unfortunately I dont have TC6 setup for this. Could someone, please confirm, this (mod_jk.conf-auto) is still a feature in TC6 Thx - Original Message - From: Frank McCown [EMAIL PROTECTED]

Re: order of web app initialization.

2007-06-30 Thread Johnny Kewl
These TC designers seem to have though of everything See load-on-startup1/load-on-startup The load-on-startup sub-element indicates the order in which each servlet should be loaded. Lower positive values are loaded first. If the value is negative or unspecified, then the container can load

Re: What is Tomcat 6 status?

2007-06-29 Thread Johnny Kewl
I just take a very pragmatic view. TC6 besides implementing new specs which I believe are targeted more at application servers than anything else, involved a major structural revamp. Although I havnt found any problems with it, I treat it as new, and prefer to run production stuff on 5.5.23.

Re: Where to find session cookies

2007-06-28 Thread Johnny Kewl
, 2007 3:13 PM Subject: Re: Where to find session cookies -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Johnny, Johnny Kewl wrote: I think they actually referring to Session cookies, and making Tomcat never timeout a session. TC will eventually timeout a session unless it is still in use. Just

Re: Clean webapp redeploy with tomcat down

2007-06-28 Thread Johnny Kewl
Ben, what is it exactly that you see, does it continue to use a different dB? Or perhaps it doesnt pick up a table modification? - Original Message - From: Ben Stringer [EMAIL PROTECTED] To: users@tomcat.apache.org Sent: Thursday, June 28, 2007 2:06 AM Subject: Clean webapp redeploy

Re: Tomcat6 service

2007-06-28 Thread Johnny Kewl
When you say failed to work, what actually happens? For example when I try install Tomcat6 Win Service, it stops at C:\Program Files\Java\jre1.5.0_11\bin\client\jvm.dll and tells me Failed to install Service, not enuf permissions. This is because I had TC5 on the machine and the old service is

Re: Server Node Id

2007-06-28 Thread Johnny Kewl
and checks which was the last task it has executed. Therefore the id must not change after each startup. - Ingo Johnny Kewl schrieb: Interesting question... I dont know if there is a property one can call. I had a similar need behind a JK load balancing scheme, what I did was just generate a unique

Re: Server Node Id

2007-06-28 Thread Johnny Kewl
. So in my solution the server node gets its id and checks which was the last task it has executed. Therefore the id must not change after each startup. - Ingo Johnny Kewl schrieb: Interesting question... I dont know if there is a property one can call. I had a similar need behind a JK load

Re: Where to find session cookies

2007-06-27 Thread Johnny Kewl
Hi LightBulb, I think you missing a concept somewhere... A typically setup for a servlet that wants to use a cookie is like this HttpSession session = request.getSession(true); //Make a session if one does not exist String SomeAttributeISet =

Re: Server Node Id

2007-06-27 Thread Johnny Kewl
Interesting question... I dont know if there is a property one can call. I had a similar need behind a JK load balancing scheme, what I did was just generate a unique ID when each cluster webapp starts up, something like the MS GUID idea. No pre-configuration required. I think it would be

Re: How to read environment entry?

2007-06-27 Thread Johnny Kewl
Hi Liz, I think you have to get it back using something like this Context initCtx = new InitialContext(); Context envCtx = (Context ) initCtx.lookup(java:comp/env); String myString = (DataSource) envCtx.lookup(env/NameOfString); The above is a guess you will need to read up on JNDI

Re: Programmatically stop/start context (webapp)

2007-06-27 Thread Johnny Kewl
Nice Bob I actually think you have cracked the JMX client stuff I dont think that is the right operation, it does work, but if you stop/start the whole host, every webapp on the host will stop and start. What we actually need is the context with those operations, and there doesnt

Re: Programmatically stop/start context (webapp)

2007-06-27 Thread Johnny Kewl
away ;) - Original Message - From: Caldarale, Charles R [EMAIL PROTECTED] To: Tomcat Users List users@tomcat.apache.org Sent: Wednesday, June 27, 2007 5:37 PM Subject: RE: Programmatically stop/start context (webapp) From: Johnny Kewl [mailto:[EMAIL PROTECTED] Subject: Re

Re: Where to find session cookies

2007-06-27 Thread Johnny Kewl
True, although I dont know how to make Tomcat do that, nor do I think it should be done, they must expire, or else with time his Tomcat will run out of memory. - Original Message - From: Nelson, Tracy M. [EMAIL PROTECTED] To: Tomcat Users List users@tomcat.apache.org Sent: Wednesday,

Phantom Server

2007-06-27 Thread Johnny Kewl
the project. Johnny Kewl eMail: JohnNo Spamkewlstuff.co.za -- replace No Spam with @ -- Cell: +027-72- 473-9331 Java Developer (Tomcat Aficionado) Free Tomcat software at http://coolese.100free.com/

Re: Where to find session cookies

2007-06-27 Thread Johnny Kewl
- Original Message - From: Caldarale, Charles R [EMAIL PROTECTED] To: Tomcat Users List users@tomcat.apache.org Sent: Wednesday, June 27, 2007 8:53 PM Subject: RE: Where to find session cookies From: Johnny Kewl [mailto:[EMAIL PROTECTED] Subject: Re: Where to find session cookies

Re: Programmatically stop/start context (webapp)

2007-06-25 Thread Johnny Kewl
Syg, interesting question I think, that what would make it tricky, is the actually packaging of the solution. In theory if you do this (I'm writing this blind, excuse the code) import org.apache.catalina.ant.*; StartTask startTask = new StartTask(); startTask.setUsername(admin);

Re: Programmatically stop/start context (webapp)

2007-06-25 Thread Johnny Kewl
Other post answers first part Second part of you interesting question... What you could try do is intercept the System.out streams... and pass them on. It wont be your fancy log4 formating, but you should be able to see the same stuff, that one see's in Netbeans I think thats all it

Re: Programmatically stop/start context (webapp)

2007-06-25 Thread Johnny Kewl
. There are a bunch of different guides out there that explain how to do this in Tomcat 5, 5.5, 6, and they all contradict themselves! Anyway, I think this is possible, does it seem like a good idea? Thanks! Bob - Original Message From: Johnny Kewl [EMAIL PROTECTED] To: Tomcat Users List users

Re: Programmatically stop/start context (webapp)

2007-06-25 Thread Johnny Kewl
Even better, thanks Chuck Look at the code in the Tomcat admin (5.5 only) and manager webapps. - Chuck - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

Re: Use JMX to manage applications

2007-06-25 Thread Johnny Kewl
Hi LightBulb, If you asking this, because of Robert Bowen question Programmatically stop/start context from WebApp, I also wait with anticipation for the JMX solution. I have a feeling that making a light weight JMX client that lives in a servlet, may not be that easy, we'll see what he comes

Re: Use JMX to manage applications

2007-06-25 Thread Johnny Kewl
Hi Again LightBulb, In this good article http://www.javaworld.com/javaworld/jw-08-2005/jw-0801-jmx.html You will find an example JMX client, in SRC for talking directly to Tomcats JMXProxy One thing I dont see in the JMX interface, maybe it is there, is a way to start stop webapp through

Fw: [nbusers] GlassFish VERSES Tomcat

2007-06-24 Thread Johnny Kewl
- Original Message - From: Johnny Kewl To: [EMAIL PROTECTED] Sent: Sunday, June 24, 2007 1:41 PM Subject: [nbusers] GlassFish VERSES Tomcat Guys, this is bothering me... I read about JBoss Tomcat, Geronimo Tomcat, Spring Tomcat GlassFish VERSES Tomcat. What is the servlet

Re: Multiple Contexts from single WAR

2007-06-22 Thread Johnny Kewl
from single WAR From: Johnny Kewl [mailto:[EMAIL PROTECTED] Subject: Re: Multiple Contexts from single WAR OK... you cant do it from a WAR, the tomcat WAR deployment seems to ignore contexts and always default to the name of the WAR file. Not true. When the .war is located someplace other

Re: Multiple Contexts from single WAR

2007-06-22 Thread Johnny Kewl
Subject: RE: Multiple Contexts from single WAR From: Johnny Kewl [mailto:[EMAIL PROTECTED] Subject: Re: Multiple Contexts from single WAR OK... you cant do it from a WAR, the tomcat WAR deployment seems to ignore contexts and always default to the name of the WAR file. Not true. When the .war

Re: How to write this elegantly in JSP/EL

2007-06-22 Thread Johnny Kewl
Hi Nikola, never done it, but I think you have to override the resolver. ie instead of the standard resolver, which looks for standard properties or custom classes declared thru XML yours will tie to a class in your app. Managed to find an ok article maybe its enuf for you to find the

Re: Realm works; db connection does not?

2007-06-22 Thread Johnny Kewl
Hi Søren, Not sure what you saying but arnt you confusing Realm and JNDI. ie the Realm is for your user and password dB and JNDI/DBCP is for you to do other stuff with your dB Think you almost there just check out http://localhost:8080/tomcat-docs/jndi-resources-howto.html on your system

Re: Realm works; db connection does not?

2007-06-22 Thread Johnny Kewl
-location/WEB-INF/struts-logic.tld/taglib-location /taglib taglib taglib-urihttp://struts.apache.org/tags-nested/taglib-uri taglib-location/WEB-INF/struts-nested.tld/taglib-location /taglib - Original Message - From: Johnny Kewl [EMAIL PROTECTED] To: Tomcat Users List users

Re: Multiple Contexts from single WAR

2007-06-22 Thread Johnny Kewl
a bunch of iterations. Dave Johnny Kewl wrote: Charles... How does the user deploy it to get it like that, thanks, we now know what cant be done, but given one WAR, how would you deploy it to 3 contexts, as 3 web apps? I believe the user can share it in a ROOT... if the reason

Re: Multiple Contexts from single WAR

2007-06-22 Thread Johnny Kewl
Ok thanks Charles - Original Message - From: Caldarale, Charles R [EMAIL PROTECTED] To: Tomcat Users List users@tomcat.apache.org Sent: Friday, June 22, 2007 4:02 PM Subject: RE: Multiple Contexts from single WAR From: Johnny Kewl [mailto:[EMAIL PROTECTED] Subject: Re: Multiple

Re: Multiple Contexts from single WAR

2007-06-22 Thread Johnny Kewl
Hey David Try this. Little bit of ant script to deploy your WAR as many times as you want I like! Now if the original user had to say put 3 contexts on 5 different machines... very cool! Just read the ant script. project name=Deployer default=compile basedir=. path

Re: Multiple Contexts from single WAR

2007-06-22 Thread Johnny Kewl
: Johnny Kewl [mailto:[EMAIL PROTECTED] Subject: Re: Multiple Contexts from single WAR Even though that works, personally I would go for making 3 copies, rename them to whatever is wanted, then just drop them in. The procedure I outlined requires only replication of the [appname].xml file

Re: Exchange Language

2007-06-21 Thread Johnny Kewl
Take my email, and ask me anytime. If you ask me a question, also write it in pinyin, then I can learn also. Your english is very good already. 我不喜欢VWP - Original Message - From: 吴熊敏 [EMAIL PROTECTED] To: Tomcat Users List users@tomcat.apache.org Sent: Thursday, June 21, 2007 7:15

Re: Error while starting the Tomcat

2007-06-21 Thread Johnny Kewl
WEB-INF\lib\servlet-api.jar The Tomcat Libs are getting into your web-app they must not. When you make a servlet, you will see that it adds a folder to your libs Tomcat5.5 or whatever. Its special, because it allows you do write code and debug, but it actually never puts them into the

Re: using mod_jk: how to set content-type

2007-06-21 Thread Johnny Kewl
Dont know Apache in that detail, possibly a guru maybe able to fix the way you attempting, but I think it should be relatively easy to add a filter to tomcat to do that there you can intercept both request and response. ie intercept the request, if browser let it go, if XSLT engine,

Re: using mod_jk: how to set content-type

2007-06-21 Thread Johnny Kewl
You know I just had another thought yes it happens sometimes. I have a feeling you doing html parsing, and just wanted to say that it depends very much on how well that 3rd party servlet does XHTML... probably badly ie little br all over the place which will make the XML parser you using

Re: using mod_jk: how to set content-type

2007-06-21 Thread Johnny Kewl
- Original Message - From: Gregor Schneider [EMAIL PROTECTED] On 6/21/07, Johnny Kewl [EMAIL PROTECTED] wrote: You know I just had another thought yes it happens sometimes. Wrong. It does ALWAYS happen: Ha ha... no its my warped sense of humor... sometimes I have thoughts

Re: Multiple Contexts from single WAR

2007-06-21 Thread Johnny Kewl
Chris, dont think you can... just so I understand it you thinking http://localhost:8080/A http://localhost:8080/B http://localhost:8080/C must all map to one web-app, say WebApp A that I dont think is possible But if you not using ROOT for anything else other than Welcome to

Re: Multiple Contexts from single WAR

2007-06-21 Thread Johnny Kewl
Chris, to get an idea of how you can map with Apache in front of Tomcat, look at this link. http://tomcat.apache.org/connectors-doc-archive/jk2/jk/aphowto.html Its worth a read because often when the site gets bigger, you end up wanting to load balance, or use Apache to serve images so may

Re: Multiple Contexts from single WAR

2007-06-21 Thread Johnny Kewl
single WAR From: Johnny Kewl [mailto:[EMAIL PROTECTED] Subject: Re: Multiple Contexts from single WAR Chris, dont think you can... just so I understand it you thinking http://localhost:8080/A http://localhost:8080/B http://localhost:8080/C must all map to one web-app, say WebApp A that I

Re: Windows or Linux as Tomcat server?

2007-06-20 Thread Johnny Kewl
@tomcat.apache.org Sent: Wednesday, June 20, 2007 11:18 AM Subject: Re: Windows or Linux as Tomcat server? Thanks for all your replies! @Johnny Kewl and David kerber We'll look into the memory leak, into the code. I don't know when we're going to find it, but it's good to know that it's

Re: Encrypt Tomcat 4.1 log and log4j.properties log with MD5

2007-06-20 Thread Johnny Kewl
Why? No, do it some other way, I think this will get horribly complex. On windows I think near impossible, short of placing a symmetrical alg in the source. What about normal protection, in essence the server starts up as a user, and only that user has access to the log folder, naturally

Re: Encrypt Tomcat 4.1 log and log4j.properties log with MD5

2007-06-20 Thread Johnny Kewl
Ah, just clicked what you doing, sorry I'm slow today I think you using logging as a reporting system in your apps. Interesting, question becomes when does logging become private... personally I think the philosphy is wrong, but ok, thats what you doing. I would think about serving

Re: monitoring mod_jk / ajp13 requests

2007-06-20 Thread Johnny Kewl
No... think its something else. As I understand it, you just trying to serve up a PDF file to a browser, whether by filter or servlet, from tc, or thru jk, dont think it makes any difference. I think what MS is waffling on about there, is that if the OBJECT tag is used by a plugin, and not a

Re: Combining form-based authentication with client-cert authentication

2007-06-20 Thread Johnny Kewl
Nick, never done it, but I think, yes you can. You cant directly integrate them, if the SSL client auth fails in the handshake, thats it, tomcat wont smell that request. But you will get an error, and that means you should be able to make a custom error page. on that you say, You who doesnt

Re: How to build tomcat distribution from src

2007-06-20 Thread Johnny Kewl
Nick shouldnt be hard make sure ant set up right, then ant download ant ant -f dist.xml Done! Also saw a project with NB6 TC6 where the guys shows you how to do it in NetBeans. On the NB site... google And then I got a NB port at http://coolese.100free.com/ but its not

Re: Windows or Linux as Tomcat server?

2007-06-18 Thread Johnny Kewl
The memory issue is something that will probably occur on either OS... if you have the source code of the web-apps tell the programmer to stick them back into the dev environment and profile them. Its very unlikely that its tomcat, its probably a badly written web-app. Alternately get something

Re: Share one singleton across webapps

2007-06-18 Thread Johnny Kewl
The typical form is like this public class SingletonObject { private SingletonObject(){} public static SingletonObject getSingletonObject() { if (ref == null) // it's ok, we can call this constructor ref = new SingletonObject(); return ref; } private

Re: Share one singleton across webapps

2007-06-18 Thread Johnny Kewl
workaround for this? Should I use Ant for deploying then? But I won't be able to debug the webapps from within my IDE anymore since I am avoiding Eclipse's deployment mechanisms. Original-Nachricht Datum: Mon, 18 Jun 2007 15:40:36 +0200 Von: Johnny Kewl [EMAIL PROTECTED

Re: ! Tomcat 500 error NEED HELP!

2007-06-18 Thread Johnny Kewl
Ha, life is easy same answer again you see because the server allows you to change JSP pages, they are only compiled when needed, by tomcat itself, so if a jsp has an error, it only crashed when its first used. So, to force a compile, right click on each JSP page and compile it, now if

Re: deploying ant

2007-06-15 Thread Johnny Kewl
Jyothi Cant really understand what you saying, but suggest the following If you using Netbeans and want to run the ant scripts from you project manually, then after you build it, flip over to the file tab, find the ant script you interested in and right click on it, NB has very cool

Re: Data Sources Overwritten

2007-06-14 Thread Johnny Kewl
Ha, this is kinda cool. When you use the admin manager it makes the file for you OK, so now either go into netbeans and paste that file mrs.xml under META-INF That will give you a pool for JUST YOUR WEB app. OR copy the contents and stick it in server.xml That will give you a

Re: Data Sources Overwritten

2007-06-14 Thread Johnny Kewl
Chris, the documentation http://localhost:8080/tomcat-docs/jndi-datasource-examples-howto.html explicitly says... have a look at postgres example, that file should have same name as the war, or the app maybe it can be put into context.xml, but are you sure? - Original Message -

Re: Data Sources Overwritten

2007-06-14 Thread Johnny Kewl
? Is it normal that they should have to restart the entire Tomcat service for their app to be able to talk to the configured database connections in server.xml? Thanks! Johnny Kewl wrote: Jeff, I dont use JNDI for dbs, got my own, but its sounds like you just not configuring some xml somewhere... On your

Re: Running Tomcat (6.0.10) as a windows service

2007-06-11 Thread Johnny Kewl
Yes, it doesnt hold the setting. Open Control Panel - Admin Tools - Services Do it from the windows service... should work - Original Message - From: GHOSTRIDER [EMAIL PROTECTED] To: users@tomcat.apache.org Sent: Monday, June 11, 2007 2:33 PM Subject: Running Tomcat (6.0.10) as a

Re: making a directory we accesible

2007-06-11 Thread Johnny Kewl
This is when I wish I was on linux so I could try it, but Chuck will be able to tell us anyway. What would happen if the user made a linux sym-link under the tomcat ROOT folder to /home/mydir1/mydir/ as mydir would that work? - Original Message - From: Caldarale, Charles R

Re: Thread Pool

2007-06-11 Thread Johnny Kewl
Doesnt seem right, Client makes a request, Tomcat gets request, starts a thread and returns response, then client makes another request and it hangs until thread is complete, if I understand correctly. I think it should work... I think its something like the header size is wrong, or the client

Re: [OT] Thread Pool

2007-06-11 Thread Johnny Kewl
Ha, well spotted... Chris Yes should look like this... runner = new Thread(this); runner.start(); Yes, thats why connection is holding... is this group good or what ;) - Original Message - From: Christopher Schultz [EMAIL PROTECTED] To: Tomcat Users List

Re: Tomcat Deployer Problem

2007-06-09 Thread Johnny Kewl
Hi, listen I've only done this programmaticly before, so here goes... I think you confusing the type of compilation they talking about... it doesnt compile the whole application, just the JSP files. You still need to compile your project. If you look at the netbeans folders, assuming thats

Re: Programmatically Determine JVM Version used by Tomcat

2007-06-08 Thread Johnny Kewl
I copied this from the wildcat source at http://coolese.100free.com/ sInfo += OS Name: + System.getProperty(os.name) + \n; sInfo += OS Version: + System.getProperty(os.version) + \n; sInfo += Architecture: + System.getProperty(os.arch) + \n;

Re: Developing Tomcat in NB

2007-06-07 Thread Johnny Kewl
Excellent... thank you. Just wanted to ask you if you think its at all possible to do this in Netbeans 5.5 It seems to me that NB 6 has the ability to pick up on the ant scripts as part of the project menu's, and thats what you doing, but I was wondering if your ant scripts can be incorporated

Re: Tomcat doesn't start

2007-06-07 Thread Johnny Kewl
I've seen this as well, sometimes I manage to really screw things up when developing. You changing your context path but I found that if I went into Tomcat 5.5.23\conf\Catalina\localhost and deleted the App.xml context file there... tomcat recovered nicely, on a redeploy. Its almost as if

Re: webappclassloader won't get garbage colelcte, need suggestions (out of memory)

2007-06-07 Thread Johnny Kewl
No, imagine if you used a thread to say send an email. The webapp is done, tomcat is idling and it whacks your thread that hasnt done the email yet. You see it in normal java apps as well, ie if a thread is still busy and you close the app, if you look at the processes, the thread is keeping

Re: can apache tomcat be a virus?

2007-06-05 Thread Johnny Kewl
Doesnt really sound like a virus, or malware, probably just broken. Try this Tools Internet Options Advanced Browsing Uncheck - Enable 3rd party browser extensions It may start working... tell your dad to remove any FREE programs he installed, especially ones that said... cool free toolbar

Re: I would like a new session each time I start my application

2007-06-04 Thread Johnny Kewl
Liz, please tell us what you actually doing and why you need this? I think there is a conceptual problem... - Original Message - From: Bachler, Elisabeth (Elisabeth) [EMAIL PROTECTED] To: users@tomcat.apache.org Sent: Friday, June 01, 2007 6:57 PM Subject: I would like a new session

Re: I would like a new session each time I start my application

2007-06-04 Thread Johnny Kewl
what my problem is ? I don't know another way of doing it. -Original Message- From: Johnny Kewl [mailto:[EMAIL PROTECTED] Sent: lunes, 04 de junio de 2007 11:07 To: Tomcat Users List Subject: Re: I would like a new session each time I start my application Liz, please tell us what you

Re: jsp-output in wrong frames

2007-06-04 Thread Johnny Kewl
Is there a struts mailing list? I think this is a coding issue, just wondering if there is a place someone can post a struts program so that people can see the errors in the code. Struts guys will be able to tell you where connections are not been returned to the dB pool, and why page

Re: Load Balance sticky_session=True, am I missing something?

2007-06-01 Thread Johnny Kewl
Tim... it looks almost right, I took snippets from some of my configs that work ... where I could see a difference. Tomcat has has a built in load balancing option... that needs the session persistance that you thinking about... you dont need it for the JK arrangement. They 2 difference

Re: adding authentication to unprotected page

2007-06-01 Thread Johnny Kewl
You need to read up on Tomcats form based authentication I think thats what you asking. Form actually looks like this FORM ACTION=j_security_check METHOD=POST TABLE TRTDUser name: INPUT TYPE=TEXT NAME=j_username TRTDPassword: INPUT TYPE=PASSWORD NAME=j_password TRTHINPUT TYPE=SUBMIT

Re: Tomcat 5.5 + Apache 2.2 + mod_proxy_ajp

2007-06-01 Thread Johnny Kewl
I cant see the above configuration ;) I'm just wondering if you using the auto generation arrangement... I use mod_jk, and there is a way to get tomcat to generate it for you. If its the same, then yes if you use that arrangement you have to restart, or tell apache to reload the config

Re: Connection Pool and Connections

2007-06-01 Thread Johnny Kewl
Hi LightBulb... No its not going to work like I think you want it to... Statement stmt= con.createStatement(); ResultSet resultSet = stmt.executeQuery(sSql); //For Select and say Statement stmt = con.createStatement();

Re: Servlet and Random Access File

2007-05-31 Thread Johnny Kewl
Teh, there are so many ways suggest you get the Java Sun Tut, its very good. Look at properties, serialization, and file handling. Have a look at lite dB's like Derby. Maybe Mysql, or Postgres as well. If you like frameworks, maybe even hybernate. There is no example servlet... just find

Tomcat 6.0.13 port to a plain Netbeans project... WILD-CAT

2007-05-30 Thread Johnny Kewl
ha. Its so nice we going to give the Mailing List (help line) guys 6 months off... no not really, but they allowed to say... call me when you have found the problem ;) ENJOY... Johnny Kewl eMail: JohnNo

Re: Tomcat Netbeans Project... WildCat

2007-05-30 Thread Johnny Kewl
- Original Message - From: Mark Thomas [EMAIL PROTECTED] To: Tomcat Users List users@tomcat.apache.org Sent: Tuesday, May 29, 2007 7:31 AM Subject: Re: Tomcat Netbeans Project... WildCat Johnny Kewl wrote: + One can dump the src into a Netbeans project, click compile and you have

Tomcat Netbeans Project... WildCat

2007-05-26 Thread Johnny Kewl
. Johnny Kewl eMail: JohnNo Spamkewlstuff.co.za -- replace No Spam with @ -- Cell: +027-72- 473-9331 Java Developer (Tomcat Aficionado) Free Tomcat software at http://coolese.100free.com/

TOMCAT ISSUE: System.Exit

2007-05-24 Thread Johnny Kewl
disappears. Johnny Kewl eMail: JohnNo Spamkewlstuff.co.za -- replace No Spam with @ -- Cell: +027-72- 473-9331 Java Developer (Tomcat Aficionado) Free Tomcat software at http://coolese.100free.com/

<    1   2   3   4   5   6   7   8   >