Re: Finding Version Of Tomcat On Unix?

2007-04-04 Thread David Smith
As with the recently asked question on which java version is in use, you should be able to glean that from the manager webapp. http://localhost:8080/manager/html (replace localhost and 8080 with appropriate values for your installation) Log in with a user that has the manager role and it

Re: accessing files/dirs.....

2007-04-03 Thread David Smith
I'm not sure what you're attempting to do here, but have you thought about ServletContext.getResource() and ServletContext.getResourceAsStream() ? Both are safe methods of reading resources from the webapp whether it be in a compressed archive or not. There is also getRealPath(), but it will

Re: accessing files/dirs.....

2007-04-03 Thread David Smith
for that dir? :) (also, alas, don't quite remember how to use methods of interfaces -- since interfaces can't be instantiated, didn't find getInstance() method for this interface.. but well, can look this up elsewhere, I suppose:) thank you... David Smith wrote: I'm not sure what you're

Re: path Attribute for Context Element

2007-04-02 Thread David Smith
Stefan Duffner wrote: Hi, I try to add a new webapplication to a Tomcat in version 5.5.23. I add an own context.xml, which contains some jndi configuration for the tomcat connection pool. I deployed this webapplication into my application directory as subdirectory named appl. This works

Re: Number of Servlets Tomcat Container Creates

2007-03-30 Thread David Smith
Quoting the spec here (SRV.2.1 of servlet spec 2.4): The handling of concurrent requests to a Web application generally requires that the Web Developer design servlets that can deal with muiltiple threads executing within the service method at a particular time. Generally the Web container

Re: Number of Servlets Tomcat Container Creates

2007-03-30 Thread David Smith
Evan J wrote: On 3/30/07, David Smith [EMAIL PROTECTED] wrote: Quoting the spec here (SRV.2.1 of servlet spec 2.4): The handling of concurrent requests to a Web application generally requires that the Web Developer design servlets that can deal with muiltiple threads executing within

Re: connection pool

2007-03-22 Thread David Smith
Hmmm... that's odd. Can you offer any more details of the problem? OS? tomcat version? database and driver? Any reliance on mapped network drive resources? --David Gioia, Michael wrote: Hi, I'm still having a problem with tomcat with keeping up the connection to the database thru the

Re: context not recognised?

2007-03-22 Thread David Smith
Nope create a new xml file in that location named after your webapp's context ... ie Project.xml. In the xml file, just put in the Context ../Context block. --David Richard Dunne wrote: I have these: admin, balancer and manager .xml files in

Re: How to run a .exe file from a web application in tomcat

2007-03-22 Thread David Smith
Just for clarifications sake, are you asking for how to launch a client-side app or a server-side app? Server-side is moderately easy, client-side is a whole different animal. For security reasons, you really can't call a specific client-side app from tomcat. Best bet there is to make sure

Re: How to run a .exe file from a web application in tomcat

2007-03-22 Thread David Smith
back. --David Jitendra Ch wrote: Hi David Smith,Our requirement is call Client side application only, and there are two tasks under this, they are editing an image(.jpg) and a text file. As you said it is not possible to call client side application, how to call an server

Re: apache-tomcat on an ia64 rhel4?

2007-03-21 Thread David Smith
Tomcat is really a whole service environment for running java servlets and jsp. Don't think if it in terms of CGIs that just run for the request and close down. Tomcat is more akin to Apache's httpd, listening ports and responding to client requests on the http or https protocol. It can be

Re: Unable to compile class for JSP

2007-03-20 Thread David Smith
The error report implies that it's trying to compile a jsp it can't read (line -1 and jsp file: null). Can you check for a root cause in the logs relating to the stack trace below? Also check the usual suspects -- file permissions, security manager, etc. --David [EMAIL PROTECTED] wrote:

Re: Can't solve problem: Unable to compile class for JSP

2007-03-19 Thread David Smith
Have you taken a look at the full stack trace of the root cause in the logs? It would also be helpful if we could see the relevant jsp source and know which version of tomcat you are working with. --David Linas Stankevicius wrote: Hallo, i tried to solve this problem and i read many posts

Re: Same session for one IP

2007-03-16 Thread David Smith
None that I no of. More to the point, it's a security issue to have all the browsers behind one IP share a common session. Witness how cable routers can share one IP with an entire apartment building. Would you really want your neighbor with the super loud metal rock to see your credit card

Re: org.apache.jasper.compiler.DefaultErrorHandler.javacError

2007-03-15 Thread David Smith
This is a partial stack taken out of the middle. Please post a COMPLETE stack from the start and including the the root cause (if available). Also we well need to know OS, JDK version, tomcat version. --David Raghuveer wrote: Could anyone suggest me what is the following error related to.

Re: Classpath Problem

2007-03-14 Thread David Smith
Apologies if this sounds insulting, but ... you did include java.util.HashMap in your jsp, didn't you? IE: [EMAIL PROTECTED] import=java.util .HashMap % --David Mark Hale wrote: Hi there. I am new to Tomcat and have installed Tomcat6 and JDK1.5 on Windows. I get Tomcat to run and can

Re: The requested resource (/) is not available.

2007-03-13 Thread David Smith
It would except tomcat just serves up folders with out web.xml files as static resources. A WARN might be in order, but that's about it. In addition, tomcat does not chase down sym links. Best practice is to be sure all required resources are contained within the webapp. --David Aditya Prasad

Re: Apache - tomcat connection on Suse Lnux

2007-03-13 Thread David Smith
Looks like the error says it all. Tomcat can't find servlet-api.jar in common/lib. Check that it really exists there and isn't a symlink. Tomcat isn't known for tolerating symlinks all that well. --David dianelane wrote: On a Suse linu 10 server, with Apache2 I am trying to setup Tomcat5

Re: Cannot create resource instance

2007-03-08 Thread David Smith
) at java.lang.Thread.run(Thread.java:539) Cannot create resource instance David Smith wrote: Then I would point you to http://tomcat.apache.org/tomcat-4.1-doc/jndi-resources-howto.html and http://tomcat.apache.org/tomcat-4.1-doc/jndi-datasource-examples-howto.h tml for some excellent information

Re: Cannot create resource instance

2007-03-07 Thread David Smith
Before we can offer any relevant advice, please let us know which version of tomcat you are working with. There are configuration differences between 5.0.x and 5.5.x. --David Natasha N Wright wrote: Hi, I am trying to create a servlet which connects to a oracle database. My servlet is

Re: getting context path name

2007-03-07 Thread David Smith
request.getContextPath() should supply what you need. If the webapp is the ROOT webapp, it will return an empty string. That just makes it easy to write stuff like: img src=${pageContext.request.contextPath}/images/myMasthead.jpg / If you really need the ROOT webapp to return /, then you'll

Re: Cannot create resource instance

2007-03-07 Thread David Smith
-xx.xx.jar and commons-pool.jar are not necessary in WEB-INF. --David Natasha N Wright wrote: I am using Tomcat version 4. with JDK 1.4 (quite old i know!) David Smith wrote: Before we can offer any relevant advice, please let us know which version of tomcat you are working

Re: install DBCP and mm.mysql 2.0.14 (JDBC Driver) and test app, get class compile error.

2007-03-06 Thread David Smith
There's no reason I know of to have .classpath or .project in the webapp. The servlet spec doesn't define them and tomcat doesn't use them. I would imagine these are specific to the development environment you are working in. I've seen posts from other people integrating PHP with Tomcat, but

Re: install DBCP and mm.mysql 2.0.14 (JDBC Driver) and test app, get class compile error.

2007-03-05 Thread David Smith
A few things to consider ... 1) What version of tomcat are you using? What follows is based on using version 5.0.x. The syntax for configuring JDBC resources in 5.5 is a little different. 2) mm.mysql 2.0.14 is VERY old. What version of MySQL Db server are you using? You may want to take a

Re: install DBCP and mm.mysql 2.0.14 (JDBC Driver) and test app, get class compile error.

2007-03-05 Thread David Smith
of people on this list seem to like Eclipse as an IDE. I personally am a fan of Netbeans. Don't use any of Microsoft's developer tools except for those rare moments when I have to help a co-worker out with .net stuff. Thanks for the help.. - Original Message - From: David Smith [EMAIL

Re: install DBCP and mm.mysql 2.0.14 (JDBC Driver) and test app, get class compile error.

2007-03-05 Thread David Smith
ignore the question about how to compile .java into .class. I just found out the jdk can do that. Wayne - Original Message - From: David Smith [EMAIL PROTECTED] To: Tomcat Users List users@tomcat.apache.org Sent: Monday, March 05, 2007 7:06 AM Subject: Re: install DBCP and mm.mysql

Re: page remembers data

2007-03-01 Thread David Smith
Michal Glowacki wrote: Hi I'm not sure if it's the problem of Tomcat, but I've spotted it after upgrading to JBoss 4.0.5 (Tomcat 5.5.20). This not the problem of session scoped beans as I'm using request ones. When I enter some data, submit them and return back to that page, the data

Re: create[8005]: java.net.BindException: error occured while starting tomcat on Ubuntu Plateform

2007-03-01 Thread David Smith
hetal wrote: StandardServer.await: create[8005]: java.net.BindException: Cannot assign requested address I have installed j2sdk1.5 and tomcat-5.0.28 on ubuntu plateform. I have changed port no in server.xml also but still i am facing same problem.. error that is displayed in catalina.out is

Re: .java(Permission denied) error in tomcat

2007-02-27 Thread David Smith
Try clearing out your work directory and restarting tomcat. Tomcat will rebuild the stuff it had there. Also check to be sure ownership or permissions of files in the work directory aren't being altered. The work directory and all it's contents should be owned by tomcat and read/write by owner.

Re: URL-pointing problem

2007-02-27 Thread David Smith
There's a difference between webapp names and servlet names. You want to change the webapp's name. To do that, just change the name of the webapp in the webapps folder ie pub_db - publications or pub_db.war - publications.war. You may have to make a similar name change to the context.xml file

Re: connection pool - DBCP error

2007-02-27 Thread David Smith
The pooling in tomcat is a refactored copy of Commons-DBCP (http://jakarta.apache.org/commons/dbcp). See the javadocs for org.apache.commons.dbcp.BasicDataSource for all the options settable. minEvictableIdleTimeMillis= translates to setMinEvictableIdleTimeMillis(). --David Propes, Barry L

Re: Mysql timouts...

2007-02-23 Thread David Smith
the pool test on borrow. That's the default behavior as long as a validationQuery is specified. --David Jacob Rhoden wrote: David Smith wrote: I think I see what's happening here. You've told the database pool to continually test connections every hour. The validation query itself

Re: Mysql timouts...

2007-02-22 Thread David Smith
If you read through http://tomcat.apache.org/tomcat-5.5-doc/jndi-resources-howto.html, you'll find the validationQuery attribute is used to test connections before they are borrowed from the pool. The query can be as simple as select 1. As a side note, drop the autoReconnect=true from your

Re: Running tomcat as an unprivileged user with a war file

2007-02-22 Thread David Smith
Jim Goodspeed wrote: I would like to run tomcat as an unprivileged user for security reasons, but when my war file is created through Ant it loses all of the permissions (as it says it will in the Ant manual). Does anyone know of a way to run tomcat as an unprivileged user and still use a

Re: where to store user-generated files?

2007-02-21 Thread David Smith
I'm sure this is horribly insufficient, so I would recommend reading the servlet spec. It's not all that bad a read as far as specifications go and you can learn a lot about how tomcat operates. If you have a servlet mapping all *.jpg to some servlet myServlet in web.xml, web.xml also has

Re: Expression Language in JSP and JasperException

2007-02-21 Thread David Smith
Ok. I'm not overly familiar with Stripes, so you'll have to bear with me a little. I can think of a few ways to handle this. First, look at what makes a request from calculator.jsp unique. You could use the referrer header, the value of a submit button, or the presence of the equation request

Re: Get rid of 8080 port in Tomcat 3.3

2007-02-21 Thread David Smith
I haven't tried it on such an old version of tomcat, but I would think jsvc from the commons-daemon project would work here. http://jakarta.apache.org/commons/daemon It essentially allows you to start tomcat as a privileged user long enough to grab the port and then drop back to a low privilege

Re: Expression Language in JSP and JasperException

2007-02-20 Thread David Smith
Does com.some.packages.action.LoginActionBean have a public method getResult()? The test below effectively translates to: if (actionBean.getResult() != null) { // some stuff to do } --David Piotr Kiraga wrote: Hi, When I'm using in JSP: c:if test=${actionBean.result !=

Re: Expression Language in JSP and JasperException

2007-02-20 Thread David Smith
Piotr Kiraga wrote: Does com.some.packages.action.LoginActionBean have a public method getResult()? The test below effectively translates to: if (actionBean.getResult() != null) { // some stuff to do } The problem is that there could be a class that has no property with name

Re: Can't find classes in jar files in WEB-INF

2007-02-20 Thread David Smith
file and placing it in WEB-INF/lib? Are there any messages in the logs when your webapp starts that might indicate a problem? --David aladdin wrote: Have we given up here? Do I need to have the packages in separate jars? On Monday 19 February 2007 08:02, David Smith wrote: You don't need

Re: Expression Language in JSP and JasperException

2007-02-20 Thread David Smith
; } } Regards, -- David Smith Network Operations Supervisor Department of Entomology Cornell University 2132 Comstock Hall Ithaca, NY 14853 Phone: (607) 255-9571 Fax: (607) 255-0940 - To start a new topic, e-mail: users

Re: Can't find classes in jar files in WEB-INF

2007-02-19 Thread David Smith
. So, if I make sure the WEB-INF/classes subdirectory is empty, how do I tell tomcat to go get classes out of the WEB-INF/lib/whatever.jar file? Thanks. On Sunday 18 February 2007 20:05, David Smith wrote: It should be noted there are only a couple of places .jar files are allowed in tomcat

Re: Can't find classes in jar files in WEB-INF

2007-02-18 Thread David Smith
It should be noted there are only a couple of places .jar files are allowed in tomcat: 1. WEB-INF/lib 2. common/lib of the tomcat installation directory WEB-INF itself is not checked or scanned for .jar files at all. In addition, any files in the classes directory will override their

Re: ampersand (amp;) handling in jspx - any workaround?

2007-02-15 Thread David Smith
Pid wrote: Stefan wrote: Christopher Schultz schrieb: Stefan, Stefan wrote: Christopher Schultz schrieb: Compare this to XSLT. If you want a stylesheet to emit an '', don't you use amp;? And if you want to emit 'amp;' you have to double it. I don't see the difference,

Re: [OT] RE: insight into model.do

2007-02-14 Thread David Smith
Looking at the source code for the class my.package.action.ModelAction will get you to the entry point for handling the request. Depending on the size of the app and how well versed your predecessor was, this could be the whole back-end or it could call other classes to handle the database

Re: request.getRemoteUser() returning null

2007-02-14 Thread David Smith
You'll need to add an attribute to the ajp13 connector in server.xml: tomcatAuthentication=false By default, tomcat ignores the REMOTE_USER header provided by the IIS or Apache HTTPd front-end. This allows that header through. --David Uwe_77 wrote: Hello, I configured IIS 6.0 (Windows 2003)

Re: [OT] RE: insight into model.do

2007-02-14 Thread David Smith
) architecture. http://jcp.org/aboutJava/communityprocess/final/jsr154/index.html --David Steve Ingraham wrote: David Smith wrote: Looking at the source code for the class my.package.action.ModelAction will get you to the entry point for handling the request. Depending on the size of the app

Re: ampersand (amp;) handling in jspx - any workaround?

2007-02-14 Thread David Smith
Ok... you are wrong. An by itself is wrong. It's a hack, but you end up having to do amp;amp; Seems like these should be preserved instead of decoded when the output is x/html. I can see it getting real ugly if you have to process a document through several transforms. But that's just

Re: insight into model.do

2007-02-13 Thread David Smith
Actually, model.do is really just an abstract path that can map to a file or a servlet. Take a look in the WEB-INF/web.xml file of the occa webapp for the servlet mappings. There should be a servlet there mapped to *.do or model.do. The class in that mapping is responsible for handling the

Re: Unable to work with Tomcat 4.0

2007-02-12 Thread David Smith
There are a few things to look at: 1. Check that the examples webapp is present in the webapps directory. 2. Check with the manager webapp that the examples webapp is deployed. (http://localhost:8080/manager/html) 3. Check the logs around the time tomcat was started for other errors attempting

Re: Daylight Saving Time Impact

2007-02-08 Thread David Smith
This might be of interest in figuring out what jre/jdk you need to handle the Daylight Savings Time change: http://java.sun.com/developer/technicalArticles/Intl/tzupdatertool.html Tomcat itself relies on the OS and JRE/JDK for time zone handling and as such doesn't have to be updated. --David

Re: File permission problem not understood

2007-02-06 Thread David Smith
java.security.AccessControlException: access denied (java.io.FilePermission /var/lib/tomcat5.5/webapps/blog/WEB-INF/classes/META-INF/hivemodule.xml read) This line (above) would indicate you have the security manager running. To fix this, you'll need to adjust conf/catalina.policy to allow

Re: Tomcat and MySQL sync problems

2007-01-29 Thread David Smith
It appears your code is holding on to a connection to the database. Bad design practice. Review your code for any place that might keep hold of a connection between requests and make sure the connection is closed. Also, If you haven't done so yet, use a database connection pool. If using

Re: datasource-realm troubles

2007-01-29 Thread David Smith
I would guess from the outset that your Context.xml file isn't being used. Where are your putting it and what are you naming it? What's the name of your webapp when deployed? Quick checks: 1. It has to be named to match your webapp if your are storing it in Catalina/localhost and deploying an

Re: Tomcat as root and security issues

2007-01-26 Thread David Smith
Or the commons daemon project's jsvc which can launch as root long enough to grab port 80 and then shift to an unprivileged user for normal runtime operations. --David Peter Crowther wrote: From: Gaurav Kushwaha [mailto:[EMAIL PROTECTED] I read somewhere that if I want to run Tomcat standalone

Re: Tomcat 4.1.29 Question

2007-01-25 Thread David Smith
It's not a tomcat issue, so no. The time comes from the JVM and the OS. So check the Java JVM for fix versions and patches for your OS. BTW, this has been covered many, many times in recent months. I'm sure you'll find lots of links with Google. --David GARNER Jim J wrote: Congress passed a

Re: tomcat Webapp security.

2007-01-23 Thread David Smith
hate to love (and love to hate): Yahoo! TV's Guilty Pleasures list. http://tv.yahoo.com/collections/265 -- === David Smith Network Operations Supervisor Department of Entomology College of Agriculture Life Sciences Cornell University 2132 Comstock Hall

Re: Webapps loading order

2007-01-22 Thread David Smith
Funny, I find lot's of info on this and the answer is always no. Some posts suggest hacks though: http://www.google.com/search?hl=enq=tomcat+webapp+load+order As has been noted in at least one of the results above, it's a fragile design. Better to design the depending webapps to handle the

Re: Cannot create JDBC driver

2007-01-17 Thread David Smith
Ok ... I'll bite. What's a realm got to do with the original post? The OP is just trying to setup a database pool via tomcat's built-in JNDI. OP -- Your code didn't match completely with the example code on the tomcat website. Here it is matched up with what's in the docs: InitialContext

Re: Help loading XML config file via Init Servlet

2007-01-16 Thread David Smith
I think you are really after this.class.getResourceAsStream( org/coffeebreak/config/attributes-config.xml ) ; which would use the classloader to locate your xml file in WEB-INF/classes or your jar file and return an InputStream to it. --David James Dekker wrote: Robert, The problem with the

Re: Adding a virtual host in Tomcat 5.5

2007-01-16 Thread David Smith
First thing to realize is this is not like setting up PHP. JSPs aren't meant to live on their own like what you've setup below. Consider pointing your tomcat virtual host to /home/username/webapps. Then create a folder /home/username named ROOT (case is important here) and place your .jsp file

Re: JSTL c:if statements

2007-01-12 Thread David Smith
Could you post your page source? Also post the web-app dtd declaration in your web.xml file. I suspect either servlet spec version or tag usage is causing your issue. --David rotvang wrote: I have Tomcat version 5.0.28, and I am trying to use the JSTL tags in my webapp. I have placed the 2

Re: tomcat 5.5, java 6 and jconsole not working as service

2007-01-09 Thread David Smith
I've had some interesting issues with Maven 2 and Java 6, but Tomcat 5.5.20 has run great on Java 6. --David Martin Dubuc wrote: I haven't been successful running Tomcat on Java 6. My guess is that Tomcat can't run yet on Java 6. Martin On 1/9/07, teknokrat [EMAIL PROTECTED] wrote: I am

Re: how to configure tomcat for Turkey?

2007-01-04 Thread David Smith
Dharma General wrote: (2) at present, i want to find out about an error message --- java.lang.NumberFormatException: For input string: 0,00 at sun.misc.FloatingDecimal.readJavaFormatString(Unknown Source) at java.lang.Float.parseFloat(Unknown Source) what is it? thx Read the java

Re: MOD_JK Redirection issues

2007-01-03 Thread David Smith
I can see how the server might decode %2f in the path to /. The % character is a special character in urls and should be decoded. If you really mean for the url to literally include '%2f' as part of the file name, I would think the url should be:

Re: IllegalStateException

2007-01-03 Thread David Smith
Shooting from the hip here, it appears your web code is attempting to send the client a redirect after some response data has been sent to the client. You can't redirect after sending a response. Can you offer more context regarding what code is throwing this and what version of tomcat? --David

Re: What a wonderfull world ..

2007-01-02 Thread David Smith
Chuck = Charles Caldarale. Dinesh Kumar wrote: who is chuck? Bill Barker wrote: Frack, after all Chuck started it. Get a life, and let these two little kiddies get on with their mud fight. Just do what I do and block both of

Re: TOMCAT 1.4

2006-12-31 Thread David Smith
Tomcat is typically installed as a service using commons-daemon from http://jakarta.apache.org/commons/daemon. As a result, it's process name in any install I've done is jsvc. You might also see it as java if you start it using a shell script directly. Individual netstat commands change

Re: session#getId changes during doGet invocation under heavy load

2006-12-30 Thread David Smith
Hmm... I can see two senarios that can cause this situation: 1. Your sessions are configured to be way too short. I'd recommend at sessions live at least until the request times out. 2. You have a reference to the session in a servlet instance -- either directly or indirectly.

Re: What a wonderfull world ..

2006-12-30 Thread David Smith
Frack, after all Chuck started it. Get a life, and let these two little kiddies get on with their mud fight. Who started what is debatable but there's no need to continue it -- or invite it as is the case here. --David Bill Barker wrote: Mark Thomas [EMAIL PROTECTED] wrote in

Re: Peak load of Tomcat-powered server(s)?

2006-12-27 Thread David Smith
Martin -- That doesn't answer the question. Where is there a connection between the maxThreads and the number of users defined in tomcat-user.xml? As far as I can tell, the only way number of users in tomcat-users.xml can influence anything is 1) the amount of memory needed to hold the

Re: JSP Reload problem (wierd)

2006-12-25 Thread David Smith
Try Shift+Reload. I don't think Ctrl+Reload does anything. --David Mon Cab wrote: I am using WinSCP to open and edit jsp's on my remote Tomcat server. I open the file from the server to edit and add a hello world into the Login jsp. Then I request the page in IE 6 and it loads the page and

Re: Peak load of Tomcat-powered server(s)?

2006-12-25 Thread David Smith
I knew somewhere in the past someone had done some performance testing against static content. After a bit of googling, I found this paper detailing some performance testing with regard to various JDKs and different sizes of static png files:

Re: Tomcat on Gentoo from the horse, no hear say.

2006-12-24 Thread David Smith
Despite your request to the contrary, this very long winded message is begging for responses. If all you wanted was for people with Gentoo packaged tomcat to contact Gentoo user's list, you should have simply requested that. On to the comments --- 1. Compiling tomcat. Why??? Java by it's

Re: Tomcat on Gentoo from the horse, no hear say.

2006-12-24 Thread David Smith
William L. Thomson Jr. wrote: On Sun, 2006-12-24 at 18:32 -0500, Martin Gainty wrote: William- Just went to gentoo site and cant read the type (without a magnifying glass)..apparently the font is cranked way down No control over that sorry. But any browser should have the ability to

Re: Re-executing a servlet request

2006-12-22 Thread David Smith
value=${param.myFormField} / c:set var=mySessProp2 scope=session value=${param.myFormField2} / !-- Keep going though all the form fields you want to save. -- /c:if pYour request for ${SessProp} follows:/p . --David David Kerber wrote: David Smith wrote: So you want to effectively save

Re: Re-executing a servlet request

2006-12-22 Thread David Smith
Oooops. Minor point in code, but one that could trip someone up if they copy paste my code: pYour request for ${SessProp} follows:/p should read: pYour request for ${mySessProp} follows:/p --David David Smith wrote: You won't be able to re-compose the request object as if it was just

Re: Which class i have missed?

2006-12-22 Thread David Smith
And how did you install tomcat (rpm package or .tar.gz dl from tomcat.apache.org)? Did you set permissions on all the folders and files so tomcat can read them? --David Wang Penghui wrote: Hello, Everyone, After install tomcat 5.5.20 in RHEL4, i have tested the jsp-examples which distributed

Re: Re-executing a servlet request

2006-12-22 Thread David Smith
though all the form fields you want to save. -- /c:if pYour request for ${SessProp} follows:/p . --David David Kerber wrote: David Smith wrote: So you want to effectively save the parameters from the original request to page 1 and then use them when you come back to page 1

Re: Re-executing a servlet request

2006-12-21 Thread David Smith
So you want to effectively save the parameters from the original request to page 1 and then use them when you come back to page 1. I can see two options: 1. Sessionless -- each page propogates the original params as hidden fields until you return to page 1 where it makes use of them. 2. With

Re: Setting up the logger

2006-12-16 Thread David Smith
Tomcat 5.5 removed the Logger tag. See http://tomcat.apache.org/faq/logging.html for details on how to setup logging. --David Harbir wrote: Hello Every One! I am using the Tomcat version 5.5.17 I am new to tomcat, and learning the meaning of the tags in the /conf/server.xml file. In my

Re: Tomcat localhost server page won't open on XP PC with bitdefender 10

2006-12-15 Thread David Smith
1) What do you get when you attempt to access tomcat at home? 2) Try looking at the tomcat logs to be sure it started normally 3) SysInternals TCPMon (free at www.sysinternals.com) can show if tomcat is listening on the ports you expect. 4) Consult the Bit Defender documentation on how to

Re: File not found with file include in a jsp file.

2006-12-12 Thread David Smith
You can't have files in the webapps top level. In this regard things stop working the way they do in Apache Httpd. Move your headerCon.jsp file down into the product webapp or put the whole works in a ROOT directory inside of your wwwroot. --David Wang Penghui wrote: Dick Balaska 写道: If

Re: File not found with file include in a jsp file.

2006-12-12 Thread David Smith
recommend you read the servlet spec at http://jcp.org/aboutJava/communityprocess/final/jsr154/index.html --David David Smith 写道: You can't have files in the webapps top level. In this regard things stop working the way they do in Apache Httpd. Move your headerCon.jsp file down

Re: File not found with file include in a jsp file.

2006-12-12 Thread David Smith
/index.html --David David Smith ??: You can't have files in the webapps top level. In this regard things stop working the way they do in Apache Httpd. Move your headerCon.jsp file down into the product webapp or put the whole works in a ROOT directory inside of your wwwroot. --David

Re: [tomcat 5.0] - DBCP pooling vs sharing a single open connection

2006-12-11 Thread David Smith
Single connections create bottlenecks and slow down throughput when the site get's busy. DBCP allows for multiple managed connections for faster performance. Plus it can take care of when connections die and create new ones automatically. There are shades of grey as well. I have one

Re: Tomcat5.5.x cannot run on Java6

2006-12-11 Thread David Smith
While I haven't had a chance to actually try it yet, I would imagine just change the JAVA_HOME to point to 6 and start. You could try it and let us know what happens. --David Eric Chow wrote: Hello, How can run Tomcat5.5 in Java6 ?

Re: EL not evaluatin in TC 5.5

2006-12-05 Thread David Smith
Did you declare your web.xml to use the servlet spec 2.4 schema? AFAIK, that's required to make EL expressions work. --David Roberto Marra wrote: I usually put under WEB-INF/tld/ all the JSP tag library and under WEB-INF/lib all the *.jar file... even jstl.jar I never have had problem

Re: EL not evaluatin in TC 5.5

2006-12-05 Thread David Smith
Roberto Marra wrote: In my web.xml I don't declare to use the servlet spec 2.4 schema David Smith ha scritto: Did you declare your web.xml to use the servlet spec 2.4 schema? AFAIK, that's required to make EL expressions work. --David Try replacing the top of your web.xml

Re: Context problem in tomcat 5.5

2006-12-05 Thread David Smith
An even better resource for servlet mapping is the servlet spec. It can be downloaded here: http://jcp.org/aboutJava/communityprocess/final/jsr154/index.html SRV.11 describes mapping requests to servlets and SRV.13.4 describes elements of a web.xml file. --David Martin Gainty wrote:

Re: tomcat w/o commercial crap

2006-12-05 Thread David Smith
?? Sun's Commercial Crap ?? What about http://tomcat.apache.org? --David Enrico Weigelt wrote: Hi folks, is there any chance to get tomcat working w/o sun's commercial crap ? I'm working on gentoo and can't tomcat it w/o going to the sun shop :(( cu

Re: tomcat w/o commercial crap

2006-12-05 Thread David Smith
In every install I've done, I've only needed the tomcat download from tomcat.apache.org (and a JVM of course). Never needed to get extra stuff direct from Sun's site. Sounds like you are trying to use some third party package install that added dependencies. --David Enrico Weigelt wrote:

Re: compiled header filter on tomcat 5.5

2006-12-05 Thread David Smith
I see the prob here -- your code was compiled for java version 1.5 and you are using an older jvm to run tomcat. Match up and build your code on the same java version your server is using. I typically have Netbeans build to 1.4 just to stay on the safe side (plus I'm not using any of the 1.5

Re: jsp optimization for db driver load and connection

2006-12-04 Thread David Smith
You'll have to do something because the below code is very inefficient. Creating and closing connections is an extremely expensive operation and the way this is written you're getting one on every request. At minimum, I would recommend a ServletContextListener that creates a pooled

Re: Probm in starting Tomcat5.5

2006-12-03 Thread David Smith
thiru chengodu wrote: Hi, i'm using Tomcat 5.5.1 in windows xp, Now i cant start Tomcat and receiving the following err while try to start...PLEASE HELP ME TO RECOVER THIS PROBLEM and why it happens? *Error:* *Windows could'nt start TOMCAT in ur local machine.* Have you looked at

Re: Webapps inexplicably losing access to common/shared classloaders

2006-12-02 Thread David Smith
Caldarale, Charles R wrote: From: David Smith [mailto:[EMAIL PROTECTED] Subject: Re: Webapps inexplicably losing access to common/shared classloaders H. only fixed by a system restart? This sounds like an environment variable is changed during start or stop and the new value

Re: Webapps inexplicably losing access to common/shared classloaders

2006-12-01 Thread David Smith
Timothy Collett wrote: Now, this seems to happen *every* time I stop and restart Tomcat... I'm somewhat at a loss to see what could be put into a bad state by stopping and restarting Tomcat, but put back in a good state by restarting the computer. Shouldn't everything be cleaned up by

Re: Connector question

2006-11-30 Thread David Smith
Nope. You can remove the one not used. I would recommend you comment it out first and test. Remove when it's tested to work just to make sure you are removing the right one. --David Narayanaswamy, Mohan wrote: In one of my development server, we have the following two entry, Do we need

Re: Address already in use

2006-11-30 Thread David Smith
TCPView from http://www.sysinternals.com can help you figure out what program has control over your port . --David red phoenix wrote: My JDK is jdk1.5.0_09 and my tomcat is 5.5.17,and I use Norton Antivirus 2006,when I start Tomcat,it raise following error: Error: Error initializing

Re: virtual mapping on Tomcat 5.5

2006-11-29 Thread David Smith
1. the path attribute of your context definition will be ignored by tomcat 5.5. The webapp itself will be deployed as RMS, not images. 2. Assuming you have an images folder in your RMS webapp and a file named logo.gif exists there, the url http://localhost:8080/RMS/images/logo.gif should work.

<    5   6   7   8   9   10   11   12   13   14   >