Re: Problem using JNDI/DBCP to get DataSouce

2004-03-15 Thread Parsons Technical Services
Paul, Add this to the context for each application that needs the database. Doug Parsons www.parsonstechnical.com - Original Message - From: "Paul Mahoney" <[EMAIL PROTECTED]> To: "'Tomcat Users List'" <[EMAIL PROTECTED]> Sent: Monday, March 15, 2004 2:28 PM Subject: Problem using J

Re: Java Hosting

2004-03-12 Thread Parsons Technical Services
www.domainsite.com At $6.99 a year it's hard to beat. I haven't found a better deal with all the features they offer. Doug www.parsonstechnical.com - Original Message - From: "Yiannis Mavroukakis" <[EMAIL PROTECTED]> To: "'Tomcat Users List'" <[EMAIL PROTECTED]> Sent: Friday, March 12,

Re: Tomcat 4.1 hangs on File Reading

2004-03-10 Thread Parsons Technical Services
Adam, Sound very similar to a problem I had a couple of days ago. Are you using any loops in your code? Specifically while or do-while or endless for loops. If so try changing them to a for loop with a high count say 10k-100k and see what happens. I had a sort method that under the right condition

Re: Plm with web.xml - Tomcat 4.1.27

2004-03-10 Thread Parsons Technical Services
Latha, For TC4 you need the web.xml to be this: http://java.sun.com/dtd/web-app_2_3.dtd";> testServlet Testing yourPackageName.testServlet testServlet /testServlet In TC4 you have to have both (if I understand correctly) and when you map you do

Re: JNDI Datasource Reference in DD Not Necessary?

2004-03-09 Thread Parsons Technical Services
> Well in the localhost directory I have an .xml for each Web App in > the system, it contains a context tag (going from memory at the moment as > I'm not in front of the server) > This is a new feature in TC5 > > i defined the resource in server.xml. > > Guess that will be something for me to tr

Re: JNDI Datasource Reference in DD Not Necessary?

2004-03-08 Thread Parsons Technical Services
Harry, Take a look at this page: http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/globalresources.html As noted on the page: "This is equivalent to the inclusion of the following element in the web application deployment descriptor (/WEB-INF/web.xml): " The question is: Is the fragment bel

JNDI DataSource clarification questions.

2004-03-08 Thread Parsons Technical Services
Now I am to the point of needing some clarification on JNDI. Current config. TC 4.1.29 Standalone RH 9 Planned config TC 5 (latest stable) TAO Linux (Approx RH Enterprise) I am running an application and using JNDI against MySQL. All is working fine but! 1. I deploy via a war file. I must resta

Re: Apache as Service on Linux - Help

2004-03-08 Thread Parsons Technical Services
Rama, What Mathew is talking about is that Linux does not have services as windows does. I think that the term you need to search for is daemon. Or google for run Tomcat daemon. Tomcat 5 has instructions for this on the setup page. I don't know if this can be applied to TC4. http://jakarta.apache

Re: Spam on tomcat-user?

2004-03-07 Thread Parsons Technical Services
gain when I hit Send on this note. > > Rhino > > - Original Message - > From: "Parsons Technical Services" <[EMAIL PROTECTED]> > To: "Tomcat Users List" <[EMAIL PROTECTED]> > Sent: Sunday, March 07, 2004 7:41 PM > Subject: Re: Spam on to

Re: Spam on tomcat-user?

2004-03-07 Thread Parsons Technical Services
: "Parsons Technical Services" <[EMAIL PROTECTED]> To: "Tomcat Users List" <[EMAIL PROTECTED]> Sent: Sunday, March 07, 2004 9:15 PM Subject: Re: Spam on tomcat-user? > Rhino, > > Got the same email you did. Now without any refer

Re: Spam on tomcat-user?

2004-03-07 Thread Parsons Technical Services
Rhino, Got the same email you did. Now without any reference words to see the results. Doug - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Spam on tomcat-user?

2004-03-07 Thread Parsons Technical Services
Rhino, Thought I would test your theory here as well as throw in my own. Mandrake is a root that was used in the Harry Potter series. It may be that your email was harvested because of the relation. Unless someone has just set this up I haven't had any issues in the past, other than some virus jun

Re: DataSource not found

2004-03-05 Thread Parsons Technical Services
Snotman, For an example. Search the archives for the thread "Servlets with JDBC connectivity". Look for the messages from me. Doug Parsons - Original Message - From: "Snotman" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Friday, March 05, 2004 1:08 AM Subject

Re: JSP import problem

2004-03-01 Thread Parsons Technical Services
David, 1. What is the package line say in the classes contained in the mytest.jar? 2. What are the class names contained in the mytest.jar? 3. Have you checked spelling and capitalization? Just checking the basics first. Doug www.parsonstechnical.com - Original Message - From: "Dav

Re: Web site error.

2004-03-01 Thread Parsons Technical Services
Yoav, The one on the left of the page does work. But if you look further down the page in the main body there is another link for JK Documentation and it points to http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk2/doc/ which is redirected to the http://jakarta.apache.org/site/binindex

Web site error.

2004-02-27 Thread Parsons Technical Services
When I went to look for a link on documentation I ran into this: TC Main page http://jakarta.apache.org/tomcat/ Documentation for TC4 goes to http://jakarta.apache.org/tomcat/tomcat-4.1-doc/index.html JK Documentation goes to http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/index.html Good TC

Re: source code exposure

2004-02-26 Thread Parsons Technical Services
unplug, I am running 4.1.29 in standalone. Try the page directly on TC. Mine goes to the same page with either URL. I suspect that what may be happening is that in the first case Apache is handing off the request to TC which returns the html. In the second case Apache is serving the page up direct

Re: another servlet-mapping question,.............

2004-02-25 Thread Parsons Technical Services
Andrew, First what strikes me is that you say you are getting this error. Usually with mapping issues, you get a resource not found. Can you browse anything else on the hosting server? Try putting just a static page up and see if you can get to it. With mapping, a gotcha trick is the invoker. Do

Re: Content type for jsp/html files

2004-02-24 Thread Parsons Technical Services
an easier > way to display "plan text" files by setting the content type (and not > encode the content). > > -Original Message- > From: Parsons Technical Services [mailto:[EMAIL PROTECTED] > > Sent: den 24 februari 2004 23:28 > To: Tomcat Users List > Subj

Re: Content type for jsp/html files

2004-02-24 Thread Parsons Technical Services
Johan, If the purpose is just to see the code, then you can parse the stream and replace each of the <> symbols with a substitute. This will cause the browser to see everything as plain text. Parse the stream. If character equals < then replace with < If character equals > then replace with > Wit

Re: What's the problem with Tomcat 4.1.29 and Switch?

2004-02-23 Thread Parsons Technical Services
Okay, so I learned something. I was right but also wrong. As I said "my" understanding which now is New and Improved. Use ifs not switches on jsp. Got to write that down somewhere . Sorry George. Doug - Original Message - From: "George Hester" <[EMAIL PROTECTED]> To: <[EMAIL PROTECT

Re: What's the problem with Tomcat 4.1.29 and Switch?

2004-02-23 Thread Parsons Technical Services
George, OK, I'll bite. Why? Not sure why you want to try this but from what I understand, no it won't work. The clue is that the jsp page is converted to a servlet and any code between the <% %> must stand on it own as valid code. When you split the code you have created two segments that if ente

Re: Disable Directory Listing for Specific Apps.

2004-02-19 Thread Parsons Technical Services
If I understand the notes correctly, if you simply include a welcome file then TC will not serve up the directory listing. This is also how my setup acts. It will not show the directory for my app which has an index file. And the global web.xml is untouched. See the notes in the global web.xml and

Re: Servlet won't run init()

2004-02-19 Thread Parsons Technical Services
Phil, Okay, I'll go for 4 cents and throw out another one. I do not use a pool for my IDE. Unless you are load testing the code in the IDE then what advantage is there to using a pool? My current setup uses a direct connection in the IDE via DriverManager and uses the pool when deployed to TC. For

Re: Servlet won't run init()

2004-02-19 Thread Parsons Technical Services
IF, and a big one at that, the only reason, in this case, that this is needed is the connection pool how about the JNDI for the connection pool? http://jakarta.apache.org/tomcat/tomcat-4.0-doc/jndi-resources-howto.html http://jakarta.apache.org/tomcat/tomcat-5.0-doc/jndi-resources-howto.html Jus

Re: Server ip address

2004-02-18 Thread Parsons Technical Services
http://jakarta.apache.org/tomcat/faq/misc.html#ip http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/coyote.html - Original Message - From: "Eric VERGNAUD" <[EMAIL PROTECTED]> To: "Tomcat Users List" <[EMAIL PROTECTED]> Sent: Wednesday, February 18, 2004 9:35 PM Subject: Server ip ad

Re: jsp error

2004-02-18 Thread Parsons Technical Services
AIL PROTECTED]> To: "Parsons Technical Services" <[EMAIL PROTECTED]> Sent: Wednesday, February 18, 2004 3:10 PM Subject: Re: re :jsp error > This is the code > jsp is stored in root directory > > > > > class file is stored classes in web inf of the root direc

Re: jsp error

2004-02-18 Thread Parsons Technical Services
dnesday, February 18, 2004 12:57 PM Subject: Re: jsp error > Hello Doug , > I hve not chnged any thing in the web .xml .The context path is still the root. > my os is windows 95 > regards > mano > > Parsons Technical Services <[EMAIL PROTECTED]> wro

Re: Stopping repeating requests

2004-02-18 Thread Parsons Technical Services
Phil, True. I should have not said "all client side". How about client side validation? Point being as weather to handle it more from the client or server. All depends on application. Doug > Hi! > > Parsons Technical Services wrote: > > The > > better way is to

Re: jsp error

2004-02-18 Thread Parsons Technical Services
Mano, When you say that it runs ok after starting apache, do you also mean you are accessing it from apache? What is your setup and OS. Post your web.xml and any errors. A similar symptom occurred when the mappings were not correct. Doug www.parsonstechnical.com - Original Message -

Re: Stopping repeating requests

2004-02-18 Thread Parsons Technical Services
Pete, When the user submits the page where is the user sent? If he stays on the same page and the form stay populated you need to do some checks for change in a field before allowing the page to submit again. The better way is to clear the form or send them to another page. That's all client side.

Re: PROBLEM STARTING TOMCAT----------------PLEASE HELP

2004-02-18 Thread Parsons Technical Services
> > Thanks. > I tried that and got some break through. > Now instead of "error code 2" ping 127.0.0.1, gives "Destination > unreachable" > and for ping localhost, it gives unknown host name. > > Also "ipcongif" still doesnt work. > >

Re: PROBLEM STARTING TOMCAT----------------PLEASE HELP

2004-02-17 Thread Parsons Technical Services
Sunit, This is moving off topic for the list, but here it goes. First READ all of these instruction. You may find your problem without having to go through all these steps. Open Network Connections. One at a time right click a network device and select properties. Select uninstall. Do this for a

Re: JNDI problem with SQLServer

2004-02-16 Thread Parsons Technical Services
You have: > > > url > > jdbc:microsoft:sqlserver://localhost:1433 > > The value needs some additional information. If you named your database as "robinhood" then you need the string to read: jdbc:microsoft:sqlserver://localhost:1433/robinhood?autoReconnect=true Nothing else jumped out at me

Re: jsp deployment-- Clarification of Invoker

2004-02-15 Thread Parsons Technical Services
including the jsp, and both using Tomcat by itself and going through Apache. > > Thanks for all who helped. > > Jerry > > Parsons Technical Services wrote: > > >My understanding of invoker and my attempt to explain invoker and mapping. > >Please correct any error I

Re: jsp deployment-- Clarification of Invoker

2004-02-14 Thread Parsons Technical Services
My understanding of invoker and my attempt to explain invoker and mapping. Please correct any error I have made. Jerry Ford wrote: > I don't fully understand the invoker servlet myself, but here's what I > think I know: > > The invoker mapping only applies to servlets, not html or jsps, and the >

Re: how to increase tomcat performance

2004-02-14 Thread Parsons Technical Services
Filip, Does this symptom sound similar to problems with memory leaks? Doug - Original Message - From: "Filip Hanik (lists)" <[EMAIL PROTECTED]> To: "Tomcat Users List" <[EMAIL PROTECTED]>; "Deepak Hegde" <[EMAIL PROTECTED]> Sent: Saturday, February 14, 2004 11:12 PM Subject: RE: how to

Re: jsp deployment

2004-02-14 Thread Parsons Technical Services
Jerry, Try renaming EBook in the context and rename the directory to match. OR Remove the EBook app and then rename test to EBook. Wonder if there is a typo somewhere.. EBook..Ebook..EBooK..etc. It's a real bite what one letter can do. Doug - Original Message - From: "Jerry Ford" <[

Re: jsp deployment

2004-02-14 Thread Parsons Technical Services
> I don't fully understand the invoker servlet myself, but here's what I > think I know: Nor do I. I am just going by what I have encountered and how I fixed it. > > The invoker mapping only applies to servlets, not html or jsps, and the > servlets are working (at least through Apache). If the

Re: jsp deployment

2004-02-14 Thread Parsons Technical Services
Sorry had a typo: resource not found should be: resource not available Thinking one thing typing another. Doug - Original Message - From: "Parsons Technical Services" <[EMAIL PROTECTED]> To: "Tomcat Users List" <[EMAIL PROTECTED]> Sent: Saturday, F

Re: jsp deployment

2004-02-14 Thread Parsons Technical Services
> > Tomcat manager shows EBook is running. And, when I request it through > > Apache, Tomcat does serve it up. When I request it through port 8080, > > Tomcat says it's not available: > > I suggest for now you forget running via Apache totally, since if it is > not working directly from Tomcat,

Re: jsp deployment

2004-02-13 Thread Parsons Technical Services
Jerry, Hang in there. Most of us have been there. To me it felt like a game show with everyone shouting out different answers all at once. As for Didier and Dwanye, not nice. Think about when you were on the other side and desperately looking for that one answer. How would you feel about opening

Re: jsp deployment

2004-02-13 Thread Parsons Technical Services
ch do work. > > I restart Tomcat everytime I make a change. > > Still get the 404 when I call the jsp, even though the html files in the > same directory work fine, as do the servlets in the same webapp space. > > Jerry > > Parsons Technical Services wrote: > > >

Re: jsp deployment

2004-02-12 Thread Parsons Technical Services
Jerry, Just for a test, change the file name to end with .txt and see if the page is displayed. If it still fails. I would double check the permissions/ownership on that file. If it works, then try a restart. After a restart if it still fails, check your configs for an entry that might be blocki

Re: PROBLEM STARTING TOMCAT----------------PLEASE HELP

2004-02-11 Thread Parsons Technical Services
Sunit, Do you have a firewall enabled? What other network based services are you running?(IIS, etc) Is this machine on a network?(Gotta ask) Can you ping yourself? ping localhost OR ping 127.0.0.0 OR ping xxx.xxx.xxx.xxx the ip of your machine Doug - Original Message - From: "Sunit Ban

Re: 404 Error in examples

2004-02-11 Thread Parsons Technical Services
Are there any error statements in the logs? Also, versions and platform(s) you are on. Has the server been restarted? Can you get directly to tomcat (did you leave port 8080 up)? Can you tell if the page is being generated by tomcat(sounds like it) or apache? Doug Parsons www.parsonstechnical.com

Re: Another Try at MySQL Connection Pooling

2004-02-11 Thread Parsons Technical Services
Okay, Grasping at straws now, but otherwise out of ideas. 1. Can you ping localhost successfully? If no change url to IP of machine. 2. Do you have a firewall running on the machine? Disable it. 3. Anyone had any problems with naming conventions? Change timesheets to tmsheets. 8+3 4. When you

Re: Another Try at MySQL Connection Pooling

2004-02-11 Thread Parsons Technical Services
Merrill, Humor me for a moment. This might be due to you trying different setups, but, take a minute to go through all your settings and names and make sure that they are all set to the same thing and the same case. In the line below it is refering to timesheet.xml and earlier you had timesheets.

Re: Another Try at MySQL Connection Pooling

2004-02-11 Thread Parsons Technical Services
I have another shoe to go so try this. Try changing the name to: url jdbc:mysql://localhost/timesheets?.. Lower case on the timesheets. I am running on linux. Not sure if it will matter on windows. Doug - Original Message - From: "Merrill Cornish" <[EMAIL PROTECTED]> T

Re: Another Try at MySQL Connection Pooling

2004-02-11 Thread Parsons Technical Services
o: "Tomcat Users List" <[EMAIL PROTECTED]> Cc: "Merrill Cornish" <[EMAIL PROTECTED]> Sent: Wednesday, February 11, 2004 2:33 PM Subject: Re: Another Try at MySQL Connection Pooling > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Parsons Technical

Re: Another Try at MySQL Connection Pooling

2004-02-11 Thread Parsons Technical Services
Merrill, I may end up eating a little sole, but I have had shoe before. Your name for the jdbc is wrong. It should be: driverClassName com.mysql.jdbc.Driver Yeah, I know the notes said otherwise. They were written prior to MySQL taking on the drivers officially. As for

Re: Does anyone have successfully build mod_jk2 on RH9 with Tomcat 4.1.xx, please share

2004-02-11 Thread Parsons Technical Services
Anthony, Phupha does not apxs on his machine. RD9 so nicely leaves it off. In order to build mod_jk2, you must install apache from source or another rpm that includes apxs. I have the same issue. Currently I am running Tomcat in standalone mode. Doug - Original Message - From: "Anthon

Re: Servlet thread safety in Tomcat

2004-02-09 Thread Parsons Technical Services
Another approach is to have your application create an instance for each session that will retrieve the mail for that session. Just ensure that the resource you are accessing can handle it, or you will have problems either way. (Note I am approaching this from a programming view. I am not familar w

<    1   2   3   4   5   6