Re: More number of connections got created than maxActive

2007-10-15 Thread David Smith
Can you determine with certainty that this one pool was responsible for all 121 connections? You don't have any other webapps with their own pool hitting the same db? --David Bhaskar wrote: Hi, I am currently using dbcp 1.2.1 with common pool 1.3. Currently i have following settings in serv

Re: More number of connections got created than maxActive

2007-10-15 Thread David Smith
Also, if you have a connection leak, then DBCP will continue to create connections to meet demand, even if the old connections are not closed. Since they are no longer in the "pool" (since they were never returned), they don't count against the "size" of the pool. Huh?? Borrowed objects ar

Re: href to .xls file shows raw file

2007-10-15 Thread David Smith
Could be caching issue. Try clearing your browser cache and try again. --David alla winter wrote: I added to web.xml ( on both, server level and application level) the following clause xls application/vnd.ms-excel and then restarted the server, but still got the same res

Re: Tomcat 6 failing to evaluate EL expressions, Tomcat 6 bug?!!!!

2007-10-15 Thread David Smith
I haven't done anything with Tomcat 6 and the #{ ... } el expressions yet, but I know in the past when EL features weren't working, it's been the fault of the version declaration in the web.xml. Did you declare your webapp to be servlet/jsp spec that supports this kind of EL expression? Any o

Re: How to Suppress Server Header in the HTTP Response

2007-10-17 Thread David Smith
Take a look at http://tomcat.apache.org/tomcat-5.5-doc/config/http.html Specifically your interested in the server attribute in the standard implementation section. --David Jatinder Kaur wrote: Hi, I am looking for a way to suppress the server header in the HTTP Response. I am using Tomcat

Re: More number of connections got created than maxActive

2007-10-17 Thread David Smith
These questions may be better answered on a DBCP user list since they are very specific to DBCP and commons-pool. --David Bhaskar wrote: I tried with dbcp1.2.2 today and found same issue. With maxActive=30, maxIdle=30 and minIdle=30, connecitons went upto 120. And it didn't comeback after 3

Re: All threads are currently busy

2007-10-18 Thread David Smith
This next method call is the problem. I am sending a POST request from one servlet instance to another one. But in situations with high load, all 20 instances are busy, so the ActiveRoleRemoval.sendLogoutMessages method which sends the POST request blocks because there is no other instance/thr

Re: All threads are currently busy

2007-10-19 Thread David Smith
You'd do something like req.getRequestDispatcher("/contextRel/path/to/logoutUrl").forward( req, resp ). All of the request parameters available to the current servlet would be passed on to the logout servlet. --David Peter Bauer wrote: Am Donnerstag 18 Oktober 2007 schrieb Christopher Schul

Re: a simple question about Directory structure in Tomcat

2007-10-23 Thread David Smith
This is by design. WEB-INF is a special directory that must be a direct subdirectory of the webapp's top level. In other words, webapps/myApp/WEB-INF is good. WEB-INF in any other location within your webapp is bad. All this is described in the servlet spec and not tomcat specific. --Davi

Re: [OT] Re: JDBC Realm with case insensitive user name

2007-10-26 Thread David Smith
Peter -- cool it. As quoted from the OP below: I tried this approach but get class not found exceptions, I am using tomcat6 in development and 5.5 in production. I package this class in a jar and drop it in the $CATALENA_BASE/server/lib folder. Tim Funk actually (and correctly) asked the OP

Tracking Authentication rejects in Tomcat 5.5

2007-10-29 Thread Scott Smith
I'm using Tomcat 5.5 and using dataSourceRealm to do authentication. I need to track bad logins. In particular, I want to track any logins where the password is wrong. I also want to track the remote server's IP address that provides a bad login. It appears that I can track bad logins by cre

RE: Tracking Authentication rejects in Tomcat 5.5

2007-10-29 Thread Scott Smith
I found this tonight. It looks promising. http://sourceforge.net/projects/lockout-realm It appears he has the HttpServletRequest object available and that means you can do a getRemoteAddr(). So, I haven't played with it, but... Scott From: Kevin Jackson

Re: migration from tomcat 4.1 to 5.5

2007-10-30 Thread David Smith
Throw out servlet-api.jar, servlet.jar. Servlet-api.jar is provided in the common/lib folder. As to TagSupport and JspException, they should be provided by common/lib/jsp-api.jar. --David itay sahar wrote: hi, i have an application running on tomcat 4.1. i want to make a huge addings to t

Re: CLASSPATH, .jar files, packages, and so forth

2007-11-01 Thread David Smith
The servlet spec describes how webapps are supposed to be layed out. The general layout template in tomcat is | | | | WEB-INF (note this must be all caps and case IS important) |classes (where to put non-jarred class files) |lib (where to put webapp specific jar libra

Re: j_security_check redirect after login

2007-11-08 Thread David Smith
You never directly call j_security_check. Here's how the process flow works: 1. browser attempts to load a protected page 2. tomcat saves the request and redirects the client to j_security_check for authentication 3. on successful authentication, tomcat restores the original request. So basi

Re: j_security_check redirect after login

2007-11-08 Thread David Smith
3. It is unclear what happens in the event when a user requests the form- login-page directly instead of going through a container-managed resource. How does j_security_check know where to redirect the user once he has authenticated successfully? That's not allowed. At minimum

Re: EL and tomcat version

2007-11-12 Thread David Smith
Aside from comments you already received indicating 5.0.x is no longer supported, make sure your web.xml declares servlet spec 2.4. That enables jsp 2.0 EL expressons. --David Terje utvikling wrote: Hi. In order for me to be able to use the functions in EL, do i need to be running on a tomca

Re:

2007-11-12 Thread David Smith
I'm going to venture a guess you need to declare the jsp taglib at the top of your jsp file. Also you don't need all the html to execute a forward. Only the tag is required w/o all the ... stuff. The client won't see the html anyway. Lastly, you webapp will continue to use servlet spec 2

Re: Fw: Tomcat6.exe and Windows Services

2007-11-13 Thread David Smith
What's in your log files? As to the shutdown hook not being called, it may be because the webapp hadn't been started yet. --David Konstantin Ryadov wrote: Hello! I use myapp.exe(I rename tomcat6.exe) for installing Windows service for my application - not tomcat(my Main Class, parameters, c

Re: hi

2007-11-13 Thread David Smith
Have you taken a look at http://tomcat.apache.org/tomcat-5.5-doc/setup.html ? nirmala wrote: hi I want installation procedure for apache tomcat5.5 DISCLAIMER: This e-mail and any attachments are intended only for the individual or company to which it is addressed and may contain information

Re:

2007-11-13 Thread David Smith
ny possible old stuff. --David itay sahar wrote: hi david thanks for reply, my web.xml include the following declaration: http://java.sun.com/dtd/web-app_2_3.dtd";> refer to your advice "guess you need to declare the jsp taglib" i'm not sure which declaration is needed if a

Re: Apache Tomcat-6.0.14 installation issue.

2007-11-14 Thread David Smith
Using JRE_HOME: /usr/java/j2sdk1.4.2_16/ Your jdk is too old for tomcat 6. See the release notes. Install java 5 or later. --David Potri Raaja wrote: Hi, I installed Apache Tomcat-6.0.14 and after the installation I logged in to the bin folder of tomcat and executed the co

Re: Tomcat5.5 roll over standard output daily

2007-11-14 Thread David Smith
stdout.log is the redirected standard output of tomcat. Rollover isn't possible because it's outside of tomcat. I believe if you google for tomat swallow output, you'll get info on making most of standard output hit tomcat's internal logging mechanism. --David Klaus21 wrote: Hi All, does

Re: [TC 5.0.25] Posting directly to j_security_check

2007-11-15 Thread David Smith
j_security_check should never be directly referenced. Clients should be requesting a secured resource. Tomcat then saves the request and forwards the client to the login page (specified in WEB-INF/web.xml) which in turn submit's authentication information to j_security_check. Then tomcat res

Re: Tomcat vs (other container) compatibility

2007-11-17 Thread David Smith
Michael wrote: Johnny Kewl wrote: --- HARBOR: http://coolharbor.100free.com/index.htm Now Tomcat is also a cool pojo application server --- -

Re: Problem with Tomacat 4.1

2007-11-18 Thread David Smith
'tis a Vista issue. I don't have Vista but I suspect it's firewall is blocking your tomcat. Just curious though -- why are you using such an old version of tomcat? --David Sneha Manohar wrote: Hi , I have Microsoft window vista OS .I have downloaded Tomcat verision 4.1. I have set JAVA_HOME

Re: Problem with Tomacat 4.1

2007-11-18 Thread David Smith
n you pls suggest which version of tomact should I use ?. It Will be help full if you can mention path for downloads Thank In Advance sneha David Smith <[EMAIL PROTECTED]> wrote: 'tis a Vista issue. I don't have Vista but I suspect it's firewall is blocking your t

Re: Port in address to tomcat webpage?

2007-11-20 Thread David Smith
When you don't give your browser get a port number, it assumes port 80 which is the registered, well known port for web traffic as defined by the IANA. Production websites all listen on port 80 which is why you never have to put it in your URLs to Google for example. The entire list of these

Re: Problem calling a servlet

2007-11-24 Thread David Smith
You have to look at it from the client side since that's where the path to the resource is constructed. If you'd like the more stable server relative path to a form, then do this in your jsp: form body .. ${request.contextPath} returns the server relative path of your webapp a

Re: Tomcat 5.5.25 DHCP SQLException: Already closed.

2007-11-30 Thread David Smith
I'm guessing somewhere in your code, you're calling close() on a connection and that's bringing up this exception. It would appear org.apache.commons.dbcp.PoolableConnection is going against the Sun javadocs for at least java 5 which states that calling close() on an already closed connection

Re: java.lang.NoClassDefFoundError: org/apache/commons/collections/SequencedHashMap

2007-12-02 Thread David Smith
Actually classes in common/lib or common/classes are visible to all webapps and tomcat internals. From your original post, the only org.apache.commons.collections.SequenceHashMap you had was in the admin webapp and that's not visible to tomcat internals or any other webapp. All the other Seq

Re: error with javac

2007-12-03 Thread David Smith
1. You didn't include a package directive in your source. You really should package your sources. 2. How are you compiling these? Most people use an IDE or let a build tool like maven or ant do the ugly heavy lifting for them. From your description you seem to be doing this by hand. NetBea

Re: Tomcat data source

2007-12-04 Thread David Smith
I don't think you can just define a global datasource and not make a reference to it in the context.xml file. --David Roberto Pellegrino wrote: Hi all, i use Tomcat *5.5.17 *my question is quite simple: it's possible to use a dataSource that are not defined on webApp context??? I define the

Re: Tomcat data source

2007-12-04 Thread David Smith
o at least. --David Roberto Pellegrino wrote: I have a particular application who make select query and show results. The dataSource are dinamic and defined by the administrator, not know at develop time. I want to be able to use the tomcat dataSource to use the pool... - Robert - David Smith wrot

Re: DataSource created but not initialized => Cannot create JDBC driver of class '' for connect URL 'null'

2007-12-07 Thread David Smith
Where did you place your mysql driver jar file? It has to be in tomcat's /lib directory to be visible to tomat's internal code for building the db pool and your webapp. Also did you happen to look at the logs around when your webapp started for any relevant messages? --David Thomas Okken wr

Re: DataSource created but not initialized => Cannot create JDBC driver of class '' for connect URL 'null'

2007-12-07 Thread David Smith
tup.Catalina start INFO: Server startup in 3005 ms There is a warning about the docBase attribute (strange; I copied that text verbatim from the Tomcat FAQ); if I remove that attribute, the warning goes away, but the DataSource remains uninitialized. - Thomas David Smith wrote: Where did you

Re: AW: Tomcat 5.5.25 DBCP SQLException: Already closed.

2007-12-11 Thread David Smith
connection) showed that in my scenario DBCP 1.2.2 returns an already closed conenction while DBCP 1.2.1 returns a valid connection. I've already asked the DBCP folks... Bjoern Eickvonder -Ursprüngliche Nachricht----- Von: David Smith [mailto:[EMAIL PROTECTED] Gesendet: Freitag, 30

Re: Tomcat does not stay on as a windows service

2007-12-14 Thread David Smith
I've also found the TcpDump tool available from Microsoft's website extremely helpful in looking at this stuff. I would say it should be safe to stop the instance of java.exe holding on to 8005, but you should try to be sure it's not used for anything. Various third party software companies

Re: problem in loading class file

2007-12-14 Thread David Smith
:///c:/Tud/Server/program/bin. --David Faisal wrote: Thank you very much for replying. The tomcat version is 5.5 and Java version is 1.5.0_14 and platform is Windows XP. The class is located in webapps/axis/WEB-INF/classes/WebService.class Thanking you, Faisal David Smith-2 wrote: Hi F

Re: problem in loading class file

2007-12-14 Thread David Smith
Hi Faisal. Could you post a few very important additional details? Tomcat version Platform Tomcat relative path to the class/jar you're having trouble with. --David Faisal wrote: Hello, I can execute the following java code in a standalone application very well but when i put the same code i

Re: error number 500

2007-12-16 Thread David Smith
Take a look at the messages in the log files.You should see details in there regarding what happened. They are located in the /logs directory where tomcat was installed. --David Joly M wrote: I have installed tomcat 6. i have tried to run the "cal1" jsp example, but i've got an apache e

Re: JSP to HTML

2007-12-18 Thread David Smith
How about servletContext.getRequestDispatcher( path ).include( req, resp )? Seems like it should do what you are asking. --David Luo Yong wrote: Hi all. Is there any way to produce HTML from a JSP file? I'm wrting a servlet which can get the HTML result of a JSP file in the same container.

Re: apache and tomcat

2007-12-18 Thread David Smith
You're right -- Apache Tomcat doesn't handle PHP especially well. It's designed to handle and execute code in java web applications built to the servlet spec very well though. Think of Apache Httpd as a general web server -- it serves content very well and with the right modules can hand off

Re: apache and tomcat

2007-12-18 Thread David Smith
wrote: I have installed Apache server on port 80 as per installation recommened. Problem is port seems to be in use. Tomcat 6 is on port 8080, does this affect the Apache server in any way? Richard. - Original Message From: David Smith <[EMAIL PROTECTED]> To: Tomcat Users

Re: Servlet File Structure

2007-12-18 Thread David Smith
Just by chance, could we see a sample url to one of your pages and a sample internal link? It doesn't seem like this should be a big deal. --David Spencer Tickner wrote: Hi Hassan, I wish I could establish a convention for internal links.. Unfortunately it's not possible as we get co

Re: ActionErrors.validate()

2007-12-20 Thread David Smith
Additionally when posting to the struts list, definitely mention what version you are working with. A cursory look at the struts website shows version 1.3.x is significantly different from version 2.0.x. I will say the class you are trying to extend should probably be ActionForm if using Stru

Re: how to run a simple jsp file

2007-12-21 Thread David Smith
Could you post the error in your logs corresponding to the 500 error? Also would be helpful to know tomcat, os, and java versions. --David Joly M wrote: Hello there, I'm struggling on running JSP files. I've got some JSP files containing Java codes. When I try to run those files, I get an er

Re: how to run a simple jsp file

2007-12-21 Thread David Smith
:320) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266) javax.servlet.http.HttpServlet.service(HttpServlet.java:803) Cheers, 2007/12/21, David Smith <[EMAIL PROTECTED]>: Could you post the error in your logs corresponding to the 500 error? Also would be helpful to know tomcat, os

Re: NoClassDefFoundError: TagExtraInfo missing?

2007-12-24 Thread David Smith
Sorry Martin, but bad advice. In recent versions of tomcat, jsp-api is provided in the /lib directory of tomcat. If you have your own in your webapp (or in the jave environment for that manner), please remove it as it will cause many a wonderous error. Also tomcat does not work with j2ee as

Re: NoClassDefFoundError: TagExtraInfo missing?

2007-12-24 Thread David Smith
Just out of curiousity, are you trying to run your webapp from within Eclipse? If so, try it without Eclipse -- deploy it to your installed tomcat and see if the error continues. If the error goes away, it may be something funky with your Eclipse -- missing .jar file or something. --David A

Re: javax.servlet.ServletException

2007-12-24 Thread David Smith
I'm looking at your original post on this problem and what I see is you are trying to do stuff against how the EL expression language works. Stuff like ${request.session.getAttribute('message_srv') can't work. Instead, this expression should access attributes as if they were bean properties

Re: NoClassDefFoundError: TagExtraInfo missing?

2007-12-24 Thread David Smith
Not obviously. J2EE contains all the stuff tomcat contains plus some. I suspect the duplication of the servlet and jsp api classes in both tomcat and j2ee is causing the issues. The OP should either 1) use a j2sdk w/ tomcat or 2) use j2ee w/o tomcat, but never j2ee with tomcat. Adding the j

Re: Tomcat not working with new Java

2007-12-25 Thread David Smith
Tomcat 5.5 requires either a Java 5 JVM or the compatibility package found where you got your tomcat. It'll be titled "JDK 1.4 Compatibility Package". I'm just amazed you were ever able to make tomcat work at all with GCJ. --David Markus wrote: I have Tomcat 5.5 on a Fedora 5 machine. I re

Re: NoClassDefFoundError: TagExtraInfo missing?

2007-12-27 Thread David Smith
jar jsp-api.jar servlet-api.jar tomcat-coyote.jar tomcat-dbcp.jar tomcat-i18n-es.jar tomcat-i18n-fr.jar tomcat-i18n-ja.jar David Smith-2 wrote: Sorry Martin, but bad advice. In recent versions of tomcat, jsp-api is provided in the /lib directory of tomcat. If you have your own in you

Re: file transfer error

2008-01-02 Thread David Smith
But is tomcat using your user account or it's own? Usually tomcat runs as a service and may not have the same access rights you do. The exception seems pretty clear tomcat was denied permission to the file at file://\\10.1.103.110\FileUpload\Punjab\02-jan-08.enr --David Rohit wrote: I ha

Re: NamingException

2008-01-02 Thread David Smith
ResourceParams doesn't exist in tomcat 5.5, 6.0. All those parameters became attributes of the element. What version of tomcat are you using Abel? --David Mariano wrote: First of all if you are working with tomcat 5.5 you have to put your jdbc library file in TOMCAT_HOME/common/lib but if

Re: need help with Tomcat-generated redirects

2008-01-02 Thread David Smith
Connector attribute proxyPort should fix the inclusion of the port number in tomcat generated urls. --David Julian Dunn wrote: Hi, I have some applications running under a Tomcat installation set up in this way: [load balancer on port 80] ---> [Apache server on port 5001] --> [Tomcat server

Re: Comment on Printing a document @ Apache Tomcat 6.0

2008-01-03 Thread David Smith
I just looked at that using WinXP/IE 7 and it's fine. Do you have the "Shrink to Fit" option set? The behavior you are seeing is what I would expect out of IE 6 -- a browser without the "Shrink to Fit" option. --David AbelMacAdam wrote: Hi, Just a note that I could not print the following

Re: Error while trying to parse a JSP from a bean

2008-01-03 Thread David Smith
myapp/index.jsp is throwing a NPE and returns a 500 error, causing the problem you see in application.jsp. You should look at why myapp/index.jsp is throwing a NPE (NullPointerException). --David Pedro Santa wrote: Hi all! I'm getting an error while trying to parse a JSP from a bean. Here'

JK connector causes Tomcat to utilize 50% CPU

2008-01-03 Thread Smith, Michael
pd.conf to use JK: LoadModule jk_module modules/mod_jk.so(in the LoadModule section) Include "c:/tomcat5525/conf/mod_jk.conf" (down at the bottom) 5) restart Apache and Tomcat. At first the CPU is at 0%, after the first loading of "Hello World" it goes to 50

Re: Avoiding same server to server HTTP calls to generate HTML pages via JSPs

2008-01-03 Thread David Smith
There are two easy methods that should work: 1. The tag of the standard tag library -- see http://jakarta.apache.org/taglibs/doc/standard-doc/intro.html 2. RequestDispatcher from the servlet spec which can not only forward, but also perform includes Both incorporate the output of jsps and

Re: jdbc connection pooling

2008-01-04 Thread David Smith
As you've described it using tomcat's JNDI resources, the driver has to be in common/lib. If the application defines and manages it's own pool separate from tomcat, then you could put it in the app's WEB-INF/lib folder. This has everything to do with how the classloaders work. Since tomcat a

Re: org.apache.commons.digester.Digester endElement (Q & A)

2008-01-05 Thread David Smith
What I see below is a comment block that does not encompass both the beginning and ending elements. This would fail if run through a XML validator. If the begin element is in the comment, so should it's corresponding end element. Additionally be careful you don't try to nest comments. --

Re: org.apache.commons.digester.Digester endElement (Q & A)

2008-01-05 Thread David Smith
I just realized what you posted was just a very narrow excerpt of the comment block only. Could you provide a complete example? --David David Smith wrote: What I see below is a comment block that does not encompass both the beginning and ending elements. This would fail if run through a

Re: java.lang.NoClassDefFoundError: org/apache/catalina/loader/WebappClassLoader

2008-01-07 Thread David Smith
Bad move. Each jar should only exist once. If it's in tomcat's common/lib, it can't exist in your webapp's WEB-INF/lib and vice-versa. I suspect this is more a spring question than a tomcat question as spring does some interesting things with the classloader. The class in question in partic

Re: Why use a Web Server over Tomcat?

2008-01-09 Thread David Smith
In my CISSP training, we covered the possiblity of putting a web server in between two firewalls. The outer one cleans the course junk out of the data stream like denial of service attacks, web server compromise attackes, malformed packets, as well as closing down server services that should b

Re: web.xml configured correctly, but still getting '404...resource not found'

2008-01-09 Thread David Smith
Messing with the classpath will bring you nothing but pain and misery. I would strongly recommend you leave it alone. Also the servlet mappings are relative to the context so your good on that front as well. Are there any messages in your tomcat logs regarding the request? Are you sure the

Re: web.xml configured correctly, but still getting '404...resource not found'

2008-01-09 Thread David Smith
a stand alone server. David Smith-2 wrote: Messing with the classpath will bring you nothing but pain and misery. I would strongly recommend you leave it alone. Also the servlet mappings are relative to the context so your good on that front as well. Are there any messages in your tom

Re: org.apache.commons.digester.Digester endElement (Q & A)

2008-01-10 Thread David Smith
tc 4.1.36 ~ 2) giving it a first run to make sure everything is OK ~ 2) writing, within the admin.xml or manage.xml conf files, something like ~ wrote: I just realized what you posted was just a very narrow excerpt of the comment block only. Could you provide a complete example? --David D

Re: org.apache.commons.digester.Digester endElement (Q & A)

2008-01-11 Thread David Smith
Thanks. It's an interesting problem. It does validate against an xml validator, but I can't reproduce your error in my tomcat 5.5 environment. If it's really an error w/ tomcat, it has to be unique to your version of tomcat. Any one on this list still using tomcat 4.1 want to respond? --D

Re: Error: server\webapps\manager does not exist or is not a readable directory...

2008-01-11 Thread David Smith
e is file named manager.xml in conf/Catalina/localhost and the manager webapp itself at server/webapps/manager. --David Thomas Chang wrote: The file conf/Catalina/localhost/admin.xml is there is it just contains one line: David Smith <[EMAIL PROTECTED]> schrieb: Not sure abo

Re: Datasource Property Parameters (Oracle) JNDI

2008-01-11 Thread David Smith
Be careful of your attribute names as case matters. Attribute names = class property names and class properties are usually referred to with a lower case first letter as in initialLimit="5", not InitialLimit="5". --David Andrew Hole wrote: Hello! I think that I have the same problem. Wh

Re: Error: server\webapps\manager does not exist or is not a readable directory...

2008-01-11 Thread David Smith
Not sure about the manager webapp responding in 404 since the stack track below refers to the admin webapp. Regarding the stack trace below, It would appear you have the admin webapp defined in a .../> element but the admin webapp itself isn't present. Look for a file named admin.xml in conf/C

Re: Problem with accessing HTML page under non-default appBase in Tomcat.

2008-01-11 Thread David Smith
To be clear, the appBase can contain nothing but webapps and tomcat considers all content to be a part of one webapp or another. The ROOT webapp is a special webapp that processes all requests not matching any other webapp's path. To serve up your html file from the root of your site, place i

Re: Error: server\webapps\manager does not exist or is not a readable directory...

2008-01-11 Thread David Smith
do with the admin webapp and should not impact deployment of the manager webapp. David Smith <[EMAIL PROTECTED]> schrieb: Right -- as I expected. I'll bet you don't have a webapp at server/webapps/admin which would cause the stack trace you are seeing. That doesn't fix th

Re: Tomcat Standalone issue

2008-01-12 Thread David Smith
Ok... so why are your trying to access your webapp on port 8080 when the connector is clearly configured for port 9010? Try http://ip:9010/index.html and change the port attribute in the element if you are really after port 8080. --David Mary Joseph wrote: I am facing a problem with tomca

Re: JBoss 4.2.2, http port is not working, but https is working

2008-01-13 Thread David Smith
I don't see anything obviously wrong here. I assume jboss.bind.address is set somewhere else in the config. Is there anything in the logs indicating a problem? Have you verified via netstat that tomcat is listening on 8080 and the address you've specified? --David Dave wrote: JBoss 4.2.2,

Re: tomcat starting problem

2008-01-13 Thread David Smith
This is a debug level event -- not an error and nothing is broken. If you configured your logging to a higher level like warn you'd only get a brief mention of it w/o a stack trace. It doesn't break anything in tomcat -- just letting you know it can't find a native library designed to improve

Re: how to configure (server.xml) for mysql dev with tomcat/JDBC

2008-01-13 Thread David Smith
There is also a copy in ...webapps/examples/WEB-INF/lib/, not sure if thats correct Remove this one. It will conflict with the one in tomcat's lib directory. export setCLASSPATH=/usr/local/tomcat/apache-tomcat-6.0.14/lib/ mysql-connector-java-5.0.8-bin.jar:$CLASSPATH Don't ever set the

Re: how to configure (server.xml) for mysql dev with tomcat/JDBC

2008-01-13 Thread David Smith
Find the mysql-connector-java-5.0.8.jar file in the download you received from mysql.com. Put only that file in tomcat's lib directory. Remove the rest from tomcat's lib directory and things should be good to go. If the mysql .jar file is located anywhere else in your tomcat installation inc

Re: how to configure (server.xml) for mysql dev with tomcat/JDBC

2008-01-14 Thread David Smith
to be : Could the path attribute be incorrect ? I followed the directions exactly. David Smith-2 wrote: Find the mysql-connector-java-5.0.8.jar file in the download you received from mysql.com. Put only that file in tomcat's lib directory. Remove the rest from tomcat's lib dire

Re: how to configure (server.xml) for mysql dev with tomcat/JDBC

2008-01-14 Thread David Smith
te be incorrect ? I followed the directions exactly. David Smith-2 wrote: Find the mysql-connector-java-5.0.8.jar file in the download you received from mysql.com. Put only that file in tomcat's lib directory. Remove the rest from tomcat's lib directory and things should be goo

Re: Context does not work

2008-01-15 Thread David Smith
Hmm... might help to define "But it doesn't work." How exactly does it not work? For the record, you Context element should *not* be in conf/context.xml. That file defines defaults for all webapps. It *should* be in one of two places: webapps/StrutsDemo/META-INF/context.xml in which case

Re: Context does not work

2008-01-15 Thread David Smith
Chris Riekenberg wrote: Hmm... might help to define "But it doesn't work." How exactly does it not work? He returns a Http error 404. Page could not find. For the record, you Context element should *not* be in conf/context.xml. That file defines defaults for all webapps. It *sh

Re: Context does not work

2008-01-15 Thread David Smith
A second launch means a second set of servlet instances, second set of resources, overall a higher memory footprint and they won't share data. Placing this stuff in server.xml does work, but if you want to change the config you are required to bounce the tomcat service for changes to take effe

Re: Access a config file located outsite j2ee app [SEC=UNOFFICIAL]

2008-01-16 Thread David Smith
I tried using relative paths once. My experience is relative paths won't work as the "current directory" is whatever the working directory was on tomcat start. I had to scrap it as it really wasn't consistent enough to be usable. Something to try might be setting this path using: (inside th

Re: How to get the authenticated user

2008-01-16 Thread David Smith
1. Reposts are annoying and I saw this post *3* times. Please wait for answers. 2. Assuming you are trying to do this in a jsp, have your considered ${pageContext.request.remoteUser} ? --David Vackar wrote: Hi, Does anyone know how to get the username of the person who is currently logged

Re: username/password in DataSource configuration

2008-01-16 Thread David Smith
What happens if you include them, but empty -- eg username="" password=""? I don't configure my datasources without a username and password, so I've never actually tried it myself but it's worth trying. --David [EMAIL PROTECTED] wrote: Hi everyone, The connection to SQL server in my machine

Re: New jsp not being read

2008-01-17 Thread David Smith
I see this most often when the jsp is on a remote server and the clocks are out of sync between my desktop system and the server. Check to be sure the clocks are in sync if tomcat is on a remote system and transfer the jsp again. You may want to also consider cleaning out tomcat's work direct

Re: application startup problem

2008-01-18 Thread David Smith
A different David here ... given the error doesn't have actual version numbers in it, it may be a corrupted class. Can you recompile it and see if that fixes the issue? --David Jannetta Steyn wrote: Hi David Thanks for your response. At least one class file in your war requires a jvm

Re: No Authentication Dialog appears for Tomcat Manager

2008-01-18 Thread David Smith
I'm just wondering if you got a 401 page, but a 200 status or something like that. Maybe one of your customizations did some filtering and/or proxying and changed the response code. Seems like the most reasonable cause of your problem. --David Mark Riggins wrote: It turns out that Netbean

Re: JSP compilation internal error

2008-01-22 Thread David Smith
I've been bitten by this one. You need to add standard.jar to your build from the jstl standard taglibs download. --David sush wrote: Hi All, Following up with previous error (listed below), for debugging purposes I turned the xmlValidation to true. I found the problem. Even though I ha

Re: java.lang.NoSuchMethodError: org.apache.commons.fileupload.servlet.ServletFileUpload.parseRequest

2008-01-23 Thread David Smith
Tomcat as distributed doesn't have the commons-fileupload library. If this is a conflict between two versions in two different locations, it's one you've setup. Take a look and make sure there isn't another one in tomcat's /lib directory. --David Liquid Mark wrote: Hi, Have you solved t

Re: Problem with protecting pages in Tomcat 5.5

2008-01-24 Thread David Smith
I would think the simplest way to go is to define a role and add all registered users to it. Nothing says a user can't have more than one role. --David Diogenes Gomes wrote: Thank you very much Caldarale. Please, do you know how to define "any role"? The framework I use takes care of author

Re: Need some help in using Oracle Database connection pool in jakarta-tomcat-5.0.28

2007-06-05 Thread David Smith
I would recommend not using the admin console to define datasources. There have been messages on this list for a while indicating the admin console webapp doesn't always persist the config to the disk. Instead, configure it in the context.xml file if at all possible. --David Somu Sundar Red

Re: Tomcat Administration HTTP Status 500 -

2007-06-07 Thread David Smith
This may or may not be the problem, but did you install it in server/webapps next to the manager webapp? That is where it's supposed to be as opposed to in the webapps directory with the other webapps. --David Elton Kong wrote: Martin, Here is the log pasted. There is a little more at the e

Re: mime type problem and aliasing as well

2007-06-08 Thread David Smith
Best suggestion I can offer is to have a configurable filter in the ROOT webapp that looks at the request and does a client side redirect to the proper target. The client side redirect will correct the url in the browser for all future reference. --David Arian Abrahantes wrote: Hi all: mi

Re: Tomcat 6 classloader leak in Commons Pool

2007-06-11 Thread David Smith
In older versions of tomcat (5.0.x) there is a factory attribute defining the pool to use. It's unclear from the limited look I did whether that was carried forward to 5.5 and 6.0. --David Diego Rodríguez Martín wrote: Hi, Is there any way to fix this leak downgrading the version of com

Re: Data Sources Overwritten

2007-06-14 Thread David Smith
Best bet is to configure it manually in the context.xml for the webapp. I've never had good luck with the administration webapp in the very few times I've tried to use it. You describe tomcat as over-writing the config submitted via the admin webapp. It's more likely the admin webapp is chan

Re: Tomcat / WAR File; Classpath not recognised for properties file

2007-06-18 Thread David Smith
nformosa wrote: > Hi All, > > I'm having trouble when deploying my WAR application. The War file contains > mainly the WEB.xml, and index.html file and a number of required libraries, > incudling the compiled src code i've written, All libraries are stored > within the WEB-INF/libs which is correct

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