Re: Virtual Hosting and SSL

2005-10-11 Thread David Smith
Try address=192.168.56.32 or whatever IP you want tomcat to bind to. The port attribute will do the same thing for defining what port number to bind to. --David Justin Jaynes wrote: I DID try, but there is no IP address attribute for connector elements. .. at least not in the documentation

Re: cannot setup JNDI with MySQL

2005-10-06 Thread David Smith
3306`) from the command line? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- === David Smith Network Operations Supervisor

Re: Context path changes in context.xml not working

2005-10-05 Thread David Smith
commands, e-mail: [EMAIL PROTECTED] -- === David Smith Network Operations Supervisor Department of Entomology College of Agriculture Life Sciences Cornell University 2132 Comstock Hall Ithaca, NY 14853 Phone: 607.255.9571 Fax: 607.255.0939

Re: Aliases for JNDI (JDBC) resources?

2005-10-03 Thread David Smith
-- === David Smith Network Operations Supervisor Department of Entomology College of Agriculture Life Sciences Cornell University 2132 Comstock Hall Ithaca, NY 14853 Phone: 607.255.9571 Fax: 607.255.0939

Re: Running Tomcat as Non-Root under Linux listen for port 80

2005-09-27 Thread David Smith
a.k.a. Commons-Daemon (http://jakarta.apache.org/commons/daemon/) Works beautifully. --David Andrés Glez. wrote: Use jsvc. - Original Message - From: NoKideen [EMAIL PROTECTED] To: tomcat-user@jakarta.apache.org Sent: Tuesday, September 27, 2005 6:13 PM Subject: Running Tomcat as

Re: HOW DOES TOMCAT JNDI CONNECTION POOLING WORKS

2005-09-23 Thread David Smith
is pool maintained? Any help is appreciated --RahulJoshi - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- === David Smith Network

Re: Where to place a common jar file?

2005-09-19 Thread David Smith
-- === David Smith Network Operations Supervisor Department of Entomology College of Agriculture Life Sciences Cornell University 2132 Comstock Hall Ithaca, NY 14853 Phone: 607.255.9571 Fax: 607.255.0939

Re: Trying to connect tomcat5 with postgresql database

2005-09-12 Thread David Smith
PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- David Smith Network Operations Supervisor Department of Entomology Cornell University 2132 Comstock Hall Ithaca, NY 14853 Phone: (607) 255-9571 Fax: (607) 255-0940

Re: Trying to connect tomcat5 with postgresql database

2005-09-11 Thread David Smith
] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- David Smith Network Operations Supervisor Department of Entomology Cornell University 2132 Comstock Hall Ithaca, NY 14853 Phone: (607) 255-9571 Fax: (607

Re: JNDI/Tomcat question from newbie

2005-09-01 Thread David Smith
] -- === David Smith Network Operations Supervisor Department of Entomology College of Agriculture Life Sciences Cornell University 2132 Comstock Hall Ithaca, NY 14853 Phone: 607.255.9571 Fax: 607.255.0939 - To unsubscribe, e

Re: Tomcat 5.5 where is a hard-copy dtd reference?

2005-09-01 Thread David Smith
] -- === David Smith Network Operations Supervisor Department of Entomology College of Agriculture Life Sciences Cornell University 2132 Comstock Hall Ithaca, NY 14853 Phone: 607.255.9571 Fax: 607.255.0939 - To unsubscribe

Re: Users Can See root files

2005-08-31 Thread David Smith
] -- === David Smith Network Operations Supervisor Department of Entomology College of Agriculture Life Sciences Cornell University 2132 Comstock Hall Ithaca, NY 14853 Phone: 607.255.9571 Fax: 607.255.0939

Re: Getting LOGON_USER from the header

2005-08-29 Thread David Smith
By default, tomcat ignores the REMOTE_USER header from Apache or IIS in favor if it's own authentication. To get tomcat to accept the IIS authentication info, add this attribute to the Connector/ element in server.xml: tomcatAuthentication=false --David Robert Jose wrote: Thanks for the

Re: Problema de configuracion de memoria de la JVM con Tomcat 5

2005-08-22 Thread David Smith
PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- === David Smith Network Operations Supervisor Department of Entomology College of Agriculture Life Sciences Cornell University 2132 Comstock Hall Ithaca, NY 14853 Phone: 607.255.9571 Fax

Re: Pound reverse proxy with Tomcat

2005-08-22 Thread David Smith
, doesn't work. thanks in advance -- === David Smith Network Operations Supervisor Department of Entomology College of Agriculture Life Sciences Cornell University 2132 Comstock Hall Ithaca, NY 14853 Phone: 607.255.9571 Fax: 607.255.0939

Re: session problems: www.blahblah.com versus blahblah.com

2005-08-16 Thread David Smith
] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- === David Smith Network Operations Supervisor Department of Entomology College of Agriculture Life Sciences Cornell

Re: Security Questions Regarding Tomcat

2005-08-15 Thread David Smith
proxyPort=80 disableUploadTimeout=true / -- I did not add this and from what I can tell this comes with the default config. Any info? Roberto David Smith [EMAIL PROTECTED] 08/12/2005 11:40 AM Please respond to Tomcat Users List tomcat-user@jakarta.apache.org To Tomcat Users List

Re: Security Questions Regarding Tomcat

2005-08-15 Thread David Smith
! -- === David Smith Network Operations Supervisor Department of Entomology College of Agriculture Life Sciences Cornell University 2132 Comstock Hall Ithaca, NY 14853 Phone: 607.255.9571 Fax: 607.255.0939 - To unsubscribe, e-mail

Re: Security Questions Regarding Tomcat

2005-08-12 Thread David Smith
See the Commons-Daemon project on the Jakarta site for starting tomcat as a non-root answer. --David Harrell, Ralph wrote: I would like to be able to start TOMCAT as a non-root user but am unable to as we are running SSL and use port 443 and non-root users do not have the permission to use

Re: Security Questions Regarding Tomcat

2005-08-12 Thread David Smith
This sounds really fishy. Tomcat does not by default have any connectors configured for port 80. There must be another service or you've modified your server.xml somehow. --David Robert V. Coward/CTR/OSAGWI wrote: Having a similar issue to this with Tomcat 5. Apparently T5 comes with a port

Re: Security Questions Regarding Tomcat

2005-08-12 Thread David Smith
I don't know -- I can see some value to the root only ports below 1024. It prevents non-privileged users from stealing trusted service ports in a mainframe environment -- not that that's a reality anymore. The best way to handle this in a production environment is to use the commons-daemon

Re: anonymising Tomcat

2005-08-05 Thread David Smith
Servlet spec 2.4 describes what you're looking for in section SRV 9.9.2 with more info in SRV.13.4 on how to configure it. Essentially you're looking for this in web.xml: error-page error-code404/error-code location/some/error/page.jsp/location /error-page There's also a version for dealing

Re: Web application directory structure

2005-07-27 Thread David Smith
You're right in that it should work. I can only guess the most likely reason this might fail is your web.xml configuration. Look for servlet mappings that might catch the data/test1.html url. Your log files should have more information. Also check to be sure the tomcat service has read

Re: attributes in servletcontext and servletrequest

2005-07-26 Thread David Smith
] -- === David Smith Network Operations Supervisor Department of Entomology College of Agriculture Life Sciences Cornell University 2132 Comstock Hall Ithaca, NY 14853 Phone: 607.255.9571 Fax: 607.255.0939

Re: Problem running tomcat with a CMS application

2005-07-26 Thread David Smith
. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- === David Smith Network Operations Supervisor Department of Entomology College of Agriculture Life Sciences Cornell

Re: Problem running tomcat with a CMS application

2005-07-26 Thread David Smith
- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- === David Smith Network Operations Supervisor Department of Entomology College of Agriculture Life Sciences Cornell

Re: can't start tomcat as user

2005-07-21 Thread David Smith
This problem can be caused by the port = 1024 problem under unix/linux. If so, take a look at the commons-daemon project on the jakarta site. Also be sure your config, log, webapp (optional), work, and temp directories are owned by the tomcat user. They should be writeable by tomcat at least

Re: Ports 8005 8009 8080 in default Tomcat 4.x installation.

2005-07-21 Thread David Smith
-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- === David Smith Network Operations Supervisor Department of Entomology College of Agriculture Life Sciences Cornell University 2132 Comstock Hall Ithaca, NY 14853 Phone

Re: tc4 tc4

2005-07-19 Thread David Smith
Also set the shutdown port at the top of the server.xml to something other than 8005 . --David Chris Pat wrote: Hi I have tc4 working fine. Installed tc5.5.9 and set the port to 9080 and of course a diff dir. However I cant connect to it at that port even tough I have his from the tc5

Re: tc4 tc4

2005-07-19 Thread David Smith
tc5 and I still cant get in on that port. This is the second un/reinstall reboot today. Yes, it is a wintel box w2ksrvsp4. Any ideas? --- David Smith [EMAIL PROTECTED] wrote: Also set the shutdown port at the top of the server.xml to something other than 8005 . --David Chris Pat wrote

Re: tc4 tc4

2005-07-19 Thread David Smith
in that file of tc4 was on that port, bounced tc5 and I still cant get in on that port. This is the second un/reinstall reboot today. Yes, it is a wintel box w2ksrvsp4. Any ideas? --- David Smith [EMAIL PROTECTED] wrote: Also set the shutdown port

Re: Session Mixup

2005-07-14 Thread David Smith
Any static field storage in your bean object? --David Srinivas Gunturu wrote: Hello All, I have been fighting this session mix-up problem in our application which is very easily reproducible. Environment: Tomcat 5.0.9 Struts 1.1 Upon user login, we create a user bean object and store on

Re: Session Mixup

2005-07-14 Thread David Smith
Ok. One other thought that's burned me once -- servlet instances are recycled between requests without resetting any of it's field members. The next request gets it exactly as the one before left it. That means you should either avoid field members in favor of method parameters + method local

Re: Welcome File

2005-07-10 Thread David Smith
Question: Does it return a page if you request the index.jsf page directly? --David Behrang Saeedzadeh wrote: Hi Thanks for the reply. I think the servlet mappipng should be , servlet-mapping servlet-nameFaces Servlet/servlet-name

Re: add to classpath

2005-07-10 Thread David Smith
Then I would highly recommend a persistent backend like a Db instead of playing with the classpath. Just my opinion. --David Stuart wrote: Guru, I need to do this so that I can deliver the application following my company's standard format. The tomcat application is just a small part of

Re: servlet mapping and url

2005-07-06 Thread David Smith
This trick isn't necessary in Tomcat 5.x and servlet spec 2.4. Welcome files as listed in the web.xml are each appended to the remote user's request and the result is processed until it resolves to a servlet or file. --David Geiglein, Gary wrote: If you create a file in the root of the

Re: java.util.zip.ZipException: invalid block type

2005-06-30 Thread David Smith
I would say if both you and another developer are getting this error, it would mean one of your .jar files is corrupt. Check them by unzipping them into a temp directory or replace them with known working versions. --David Ben Anderson wrote: I'm not deploying wars. I'm just pointing to a

Re: Convert URL path from directory/ to directory/index.htm (Spring related)

2005-06-29 Thread David Smith
This is also done in Tomcat via welcome-file element in web.xml. Ex.: welcome-file-list welcome-fileindex.htm /welcome-file /welcome-file-list In servlet spec 2.4 (Tomcat 5.0,5.5), this can map to either a physical file or a servlet mapped to that URL. I think in earlier servlet specs, it had

Re: http session lost between struts action

2005-06-27 Thread David Smith
Check these: 1. Your browser is accepting cookies 2. Your links are being generated by taglibs that insure the jsessionid is attached if needed. I say if needed because if tomcat is getting a valid session cookie from your browser, the jsessionid won't be added to the link. They don't both

Re: http session lost between struts action

2005-06-27 Thread David Smith
You might want to setup the Request Dumper Valve (*org.apache.catalina.valves.RequestDumperValve*.) and see if that offer's any insight. I suspect the cookie isn't being returned in subsequent requests after the welcome page. Unfortunately, I don't have enough info about your setup to even

Re: Load oracle.jdbc.driver.OracleDriver class

2005-06-23 Thread David Smith
Put the jar in common/lib and don't mess with the classpath. Tomcat's internal classloaders will take care of finding the jar. --David Giacomino Raccuia wrote: Hi! I just upgraded from tomcat 4.0.3 to 5.5.9, I put all my librarie in shared/lib and set correctly the CLASSPATH, but when I

Re: Startup class in Tomcat 5.x

2005-06-15 Thread David Smith
The servlet spec is your friend: http://www.jcp.org/en/jsr/detail?id=154 Among other things, SRV.10 of the spec describes the use of event listeners like javax.servlet.ServletContextListener for handling events like when a webapp starts or stops. Completely portable to all servlet 2.4 spec

Re: Vexing problem with Tomcat 5.0.28/Pointbase/JNDI/ConnectionPooling

2005-06-12 Thread David Smith
This tells me a lot: Caused by: java.sql.SQLException: No suitable driver Make sure the driver .jar file is in common/lib and the driverClassName parameter of your ResourceParams element references the correct driver class (don't use a DataSource class here). In your case, I think that

Re: shared install under Linux

2005-05-27 Thread David Smith
Sounds like you want to setup multiple TC instances. Try using CATALINA_BASE. See this message for more info: http://www.mail-archive.com/tomcat-user@jakarta.apache.org/msg151971.html --David Marius Scurtescu wrote: Mark wrote: Then in that case, I would make the context writable to all

Re: Are we required to move to Tomcat 5.5 in order to move to JDK 1.5

2005-05-26 Thread David Smith
Small correction -- 5.5 needs the compat package to work on jdk l.4, not 5.0 needs it to work on jdk 1.5. I've used TC 5.0 jdk 1.5 together no problem. --David Steve Kirk wrote: You can run 5.0.28 on jdk1.5 but you need to add a compatibility package which is available from the tc

Re: html:errors/ blank page on invalid form

2005-05-25 Thread David Smith
Look for an exception in the logs. Empty output usually means an uncaught exception. --David Andy wrote: Hi All, I'm unable to output any errors using html:errors/ tag, in Tomcat 5.5.7 I've tried numerous configurations and have now ran out of patience. As I haven't been using Struts for

Re: Validation Frame work

2005-05-24 Thread David Smith
Because you should never trust the client. They may not be submitting from your form. Javascript is just a nicety to save the user a whole request/response cycle just to find out a field is missing or wrong. Consider it a security issue. -- David raja buddha wrote: Hi all In struts why do

Re: How to read arguments?

2005-05-24 Thread David Smith
You might want to check the Tomcat source for an example, but I believe Tomcat uses getter/setter bean methods to transfer that info to an instance of the object after creating it. So for instance, the attribute debug would be set by calling newRealmInstance.setDebug(992) ; --David Jim

Re: Apache vs Tomcat WRT Security

2005-05-19 Thread David Smith
. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- === David Smith Network Operations Supervisor Department of Entomology College

Re: Upgrading from 5.0.28 to 5.5.9

2005-05-17 Thread David Smith
to change? Chris - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- === David Smith Network Operations Supervisor Department of Entomology

Re: website hosting

2005-05-16 Thread David Smith
- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- === David Smith Network Operations Supervisor Department of Entomology College of Agriculture Life Sciences Cornell University 2132 Comstock Hall Ithaca, NY 14853

Re: .asp and tomcat 5.5.9

2005-05-12 Thread David Smith
] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- === David Smith Network Operations Supervisor Department of Entomology College of Agriculture Life Sciences Cornell University 2132 Comstock

Re: Problem in Parsing - Error while doing lookup - HELP

2005-05-11 Thread David Smith
] -- === David Smith Network Operations Supervisor Department of Entomology College of Agriculture Life Sciences Cornell University 2132 Comstock Hall Ithaca, NY 14853 Phone: 607.255.9571 Fax: 607.255.0939

Re: Tomcat Administration problem

2005-05-02 Thread David Smith
In addition to the advice below, did you restart Tomcat after updating tomcat-users.xml? Last I knew this file wasn't reparsed after startup. Could be wrong on that though. If you want the authentication to be updateable while tomcat is running, use a database realm. Docs should be

Re: Catalina.out eats my harddisk space

2005-04-29 Thread David Smith
Question to the OT: how are you deleting catalina.out? If you aren't shutting down tomcat first, you need to do that. Otherwise some OS's recreate the file to it's former size with empty space where log info used to be. Beyond that the other poster's ideas should also be followed. --David

Re: Session lost when switching from https to http in Tomcat 5.

2005-04-28 Thread David Smith
Last I knew sessions are not shared between SSL and non-SSL connections by design (as opposed to a bug). Your best bet is probably: 1. Start a session on the non-ssl side 2. Forward the user to the ssl login w/ the session id in the request 3. The ssl login stores the session id and any other

Re: Where is Jakarta's common email jar file

2005-04-22 Thread David Smith
Cool. I didn't even know Commons had an email project. --David Patrick Thomas wrote: Lorenzo, I don't know about a jar file, but you can look at the CVS repository for the java files. (Look in src/java/ for the package root) They're packaged, so you could make the jar yourself easily enough. (jar

Re: Where is Jakarta's common email jar file

2005-04-22 Thread David Smith
You sure you don't really want JavaMail from Sun? http://java.sun.com/products/javamail/index.jsp You'll also need Java Activation Framework. --David Lorenzo Jiménez wrote: Hi, Do anyone knows where to download latest Jakarta's commons email jar. I tried in Jakarta commons website, but I cannot

Re: Tomcat 5.5.9 Connection Pool / JNDI / DBCP

2005-04-20 Thread David Smith
You should be doing this in your code: Context initContext = null; try { initContext = new InitialContext() ; } catch ( Exception e1 ) { //... do something with the trapped exception } try { DataSource ds = (DataSource)initContext.lookup(java:/comp/env/jdbc/testdatabase); } catch ( Exception

Re: tomcat 5.5 help

2005-04-13 Thread David Smith
TC 5.5 moved to being built around JDK 5. It works in JDK 1.4, but needs some extra classes that are included in the JDK 5 download. What JDK are you using and if it's v 1.4, did you download and install the TC 5.5 compatibility package as well? --David dummy wrote: Problem with tomcat 5.5.

Re: Upgrading from tomcat 3.2.2 to 3.3.2 on Windows

2005-04-13 Thread David Smith
I would say take a look at the release notes here: http://jakarta.apache.org/tomcat/tomcat-3.3-doc/index.html --David Horvath, Ruth (Ruth) ** CTR ** wrote: Where do I find these ? Ruth -Original Message- From: Jonathan Eric Miller [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 13,

Re: DBCP Please Help Get Working Properly

2005-04-11 Thread David Smith
difference I see is that the class using a naming import and the jsp does not. Can anyone help. Thanks, Scott -Original Message- From: David Smith [mailto:[EMAIL PROTECTED] Sent: Friday, April 08, 2005 1:14 PM To: Tomcat Users List Subject: Re: Add Context Path, Tomcat 5.5.7 Hi. Take

Re: war file producing jsp problems

2005-04-11 Thread David Smith
How are you declaring your web.xml file. If you are declaring with the servlet 2.3 DTD, you won't be able to use the ${} operators available in the JSP 2 spec. Use the 2.4 schema instead. ?xml version=1.0 encoding=ISO-8859-1? web-app xmlns=http://java.sun.com/xml/ns/j2ee;

Re: DBCP Please Help Get Working Properly

2005-04-11 Thread David Smith
that displays when you go to localhost. So, is there any good documentation that shows how to do this, step by step? Thanks, Scott -Original Message- From: David Smith [mailto:[EMAIL PROTECTED] Sent: Monday, April 11, 2005 8:18 AM To: Tomcat Users List Subject: Re: DBCP Please Help Get

Re: remove comments from jsp via tomcat

2005-04-08 Thread David Smith
You could place standard java comments inside of % % pairs. --David Steven Pannell wrote: Hi, Is there anyway to configure tomcat to strip out the comment tags from the jsp files before streaming them as html to the client browsers??? with some other application servers this is possible. thx.

Re: Add Context Path, Tomcat 5.5.7

2005-04-08 Thread David Smith
Hi. Take a look at this for where to put Context elements: http://jakarta.apache.org/tomcat/tomcat-5.5-doc/config/context.html This is new with Tomcat 5.0 and is continued in Tomcat 5.5 --David Scott Purcell wrote: Hello, I am following the information here to add DBCP to my application.

Re: Using Tomcat 5.5.x with Mysql

2005-04-07 Thread David Smith
Could you post the code used in doing the lookup? What I see here appears to imply you are using jdbc: as the jndi name to look up. As posted earlier, your jndi should look more like java:comp/env/jdbc/TestDB in the code where you do the lookup. --David Marchioni Francesco wrote: Hi all, I'm

Re: R: Using Tomcat 5.5.x with Mysql

2005-04-07 Thread David Smith
)ctx.lookup(jdbc/TestDB); Francesco -Messaggio originale- Da: David Smith [mailto:[EMAIL PROTECTED] Inviato: giovedì 7 aprile 2005 14.47 A: Tomcat Users List Oggetto: Re: Using Tomcat 5.5.x with Mysql Could you post the code used in doing the lookup? What I see here appears to imply you

Re: non-root on 80

2005-04-05 Thread David Smith
Just configure your Tomcat to use port 80 in the Connector element of your server.xml and then use jsvc to start it. --David NetSQL wrote: I read that it has a stop method... but how do I get it to run at port 80 ? .V David Smith wrote: Look at jsvc in the commons-daemon project

Re: non-root on 80

2005-04-04 Thread David Smith
Look at jsvc in the commons-daemon project on jakarta.apache.org/commons --David NetSQL wrote: apache drops to non root after bind to 80. How can this be done w/ tc 5.5? .V - To unsubscribe, e-mail: [EMAIL PROTECTED] For

Re: Facing problem with implementation of DBCP

2005-03-28 Thread David Smith
This is usually because of a mis-match in settings in one or more of your context.xml definition, your web.xml, and your JNDI lookup code. Check to be sure they are named consistently and properly configured. Also check your logs for any exceptions related to this. For further help, please

Re: No bug with Delegate !

2005-03-25 Thread David Smith
If you want to use the .jar in WEB-INF/lib, you'll also have to implement your own DBCP pool for the app. That can be done in a ServletContextListener in servlet spec 2.4. When the container instantiates the pool, it's always going to use the jar in common/lib (or possibly shared/lib)

Re: replacing ROOT

2005-03-23 Thread David Smith
Comments in xml can start anywhere on or above the line you want commented out and end anywhere after. New lines are treated as whitespace and have no meaning when parsed. !-- Context ../Context -- is just as valid as !-- Context/Context -- Comments can't be nested, but that's

Re: different versions of libraries

2005-03-23 Thread David Smith
WEB-INF/lib of the app you need it in. That's the simple answer. For a complete answer, read: http://jakarta.apache.org/tomcat/tomcat-5.0-doc/class-loader-howto.html and the servlet spec --David Andreas Andersson wrote: Hi! I need to use a really new version of xalan/xerces in one of my

Re: tomcat 5.0.25 question

2005-03-23 Thread David Smith
I have it working here on Tomcat 5.0.x, JDK 5, WinXP -- no problems to note so far and I installed it from a binary download. The only gotcha that I know about is you can't build for JDK 5 and then use it on JDK 1.4.x --David Lionel Farbos wrote: I don't know where you can find more details

Re: com.sybase.jdbc2.jdbc.SybDriver error

2005-03-09 Thread David Smith
Move jconn2.jar to C:\Tomcat\common\lib and restart. Tomcat ignores the classpath in favor of it's classloaders and eliminates a huge load of headaches with it. --David [EMAIL PROTECTED] wrote: Hi there, i'm sure this issue has been raised before, i get the following error when running one

Re: Tomcat 5.5.8 Postgresql 7.4.6 No suitable driver exception

2005-03-04 Thread David Smith
One of the only things I don't see here -- and it's a big one -- no postgresql jdbc driver in common/lib. Tomcat doesn't come with it by default. You have to download the latest and install it before this will work. --David Ole Ersoy wrote: Hi everybody, I'm attempting to get the JNDI

Re: Equivalent of Resin run-at servlet configuration

2005-03-03 Thread David Smith
I think the Cocoon project has such a facility. I'm not sure how complicated it would be to pull out that functionality, but their work might be worth looking at for this. --David Parsons Technical Services wrote: With all the questions and suggestions flying around, a question to the other

Re: newbie having problems with MySQL JDBC/JNDI Datasource example

2005-03-02 Thread David Smith
In your context definition, you have Resource name=TestDB.. In your web.xml, you have res-ref-namejdbc/TestDB/res-ref-name These two need to match. If one is jdbc/TestDB, so must the other. --David Darryl Wagoner wrote: Greetings, Not sure if this made it the first time. I didn't see it show

Re: newbie having problems with MySQL JDBC/JNDI Datasource example

2005-03-02 Thread David Smith
No problem. Amazing what an extra set of eyes will catch, isn't it? Enjoy! David Darryl Wagoner wrote: David, I have been looking at this off and on for weeks and could not see the problem. I changed the context to be jdbc/TestDB and it worked. Thank you very much David Smith wrote

Re: Need access to classes outside Tomcat for JSPs

2005-03-01 Thread David Smith
Why do you want your classes outside of Tomcat? Copy the classes to your project when you build and eliminate the dependency. Or better yet, use a build environment like Ant to do the copying for you. As a bonus, it'll catch errors before you get to production and the webapp will be more

Re: error-page directive

2005-03-01 Thread David Smith
The order matters. It's a requirement that comes from validating the web.xml against a DTD -- not anything that Tomcat itself requires. In the servlet 2.4 spec, they moved to valdating against a schema so order no longer matters. --David Ian van der Neut wrote: On Tue, 1 Mar 2005 10:41:36

Re: Need access to classes outside Tomcat for JSPs

2005-03-01 Thread David Smith
Well, not to be rude, but your design choice is IMHO, poor. Build tools are available and designed to handle version control -- which is what I read as the reason for your reluctance to include the classes directly in the webapp. Every few months, I see someone come on the list asking what

Re: error-page directive

2005-03-01 Thread David Smith
Message- From: David Smith [mailto:[EMAIL PROTECTED] Sent: 01 March 2005 13:27 To: Tomcat Users List Subject: Re: error-page directive The order matters. It's a requirement that comes from validating the web.xml against a DTD -- not anything that Tomcat itself requires. In the servlet 2.4

Re: JavaMail API ?

2005-03-01 Thread David Smith
No mistake that I know about. JAF and JavaMail are both separate downloads from Sun's site and have been all along. Licensing issues probably prevent them from being included in the Tomcat dist. --David Nikola Milutinovic wrote: Nikola Milutinovic wrote: Hi all. I'm running Tomcat 5.5.7 on

Re: Starting up Tomcat when the Linux starts up

2005-02-25 Thread David Smith
console and log: check your linux man pages for the tee command. It's designed to split output between standard out and a file. --David Behrang Saeedzadeh wrote: Thanks for the response. BTW - I'm new to Linux :-) and don't know much about it... On Thu, 24 Feb 2005 15:13:09 -0500, David Smith [EMAIL

Re: Very Straneg problem with MySQL-Connector

2005-02-24 Thread David Smith
Hi. The issue is mysql validates user, host, and password on login -- sort of a three factor authentication. Go into mysql and take a look at the result of these commands to see what users are defined: use mysql ; select user, host, password from user ; IMHO, don't use root from a webapp.

Re: How to send hidden variables to next page

2005-02-24 Thread David Smith
a solution directly, it's wonderful. Thanks a lot. Sorry again if it's not the right place to post this. --- David Smith [EMAIL PROTECTED] wrote: The best advice I can offer -- have a javascript that does the submit for you on the event the drop-down changes state. Then let a servlet handle storing

Re: Starting up Tomcat when the Linux starts up

2005-02-24 Thread David Smith
Depends on your flavor of linux. Mandrake (I've heard RH is similar) stores the init script in /etc/init.d with a sym link in /etc/rc[runlevel-here].d. For example, if your script is tomcat5, then tomcat5 would be stored /etc/init.d w/ a sym link to it from /etc/rc5.d. 5 being the runlevel

Re: How to send hidden variables to next page

2005-02-23 Thread David Smith
The best advice I can offer -- have a javascript that does the submit for you on the event the drop-down changes state. Then let a servlet handle storing your form data in the session and passing updated data to the next page. Outside of something like that, I think you'll need to

Re: JasperException while running JSP

2005-02-18 Thread David Smith
This is really just a guess, but could it be your class isn't in a package? Try this: 1. Create the folder structure com/mycompany/mywebproject under WEB-INF/classes substituting in your company name and web project name where indicated. 2. place this line near the beginning of your java

Re: Serving up a Flash file

2005-02-18 Thread David Smith
Just think out of the box a little on this one. Your .swf file can be literally anywhere on the web and on any web server as long as it's accessible. Then just write your code as: HTML BODY bgcolor=#ff OBJECT width=300 height=200 align=center PARAM name=movie

Re: deployment with a different context than war name - tomcat 5.5.7

2005-02-18 Thread David Smith
I would suspect your stuck on this one. I think I remember a thread here back in the fall that essentially said the path attribute to Context/ is ignored in TC 5.5.7. Any of the developers care to confirm that?? --David Chad Woolley wrote: Hi, Can anyone point me to a working example of of

Re: log4j best practices

2005-02-17 Thread David Smith
I believe the classes have to be compiled with debug info included. If using ant, javac would be done with the debug=true attribute. See further info on ant's javac task here: http://ant.apache.org/manual/CoreTasks/javac.html --David Brian McGovern wrote: Im not able to get the class name and

Re: Several configuration issues with Tomcat 5.5.7/Apache2 compiling JSPs - Fixed

2005-02-16 Thread David Smith
Great! Glad to see it working. I would still find the time to refactor your code and remove the dependencies on specific directories though. The new classloader is so much nicer than the old classpath system. --David Sam Halicke wrote: It ended up being the CLASSPATH environment variable,

Re: [OT]connecting to MySql database

2005-02-16 Thread David Smith
Technically speaking, this is off-topic and marked as such. Take a look at this for more info: http://struts.apache.org/faqs/database.html On the surface, I see a missing type attribute on the data-source element and you should probably be using com.mysql.jdbc.Driver for the driver class

Re: stdout - console instead of catalina.out

2005-02-16 Thread David Smith
The startup shell script is responsible for redirecting output to catalina.out. remove ' catalina.out' and you should be good to go. You could also pipe your output to the 'tee' utility. See the man pages for details. --David Eric Wulff wrote: I just started logging via log4j and although

Re: Several configuration issues with Tomcat 5.5.7/Apache2 compiling JSPs

2005-02-15 Thread David Smith
Forget classpath -- it's ignored in Tomcat 5.5 and as I remember, was being phased out in Tomcat 3 (wow -- have I been reading these mail lists for that long??). If you put your classes and jars in the right places, they will be found. In your case, the classes are being found, but some

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

2005-02-14 Thread David Smith
Admittedly, as another poster noted, a tour through the docs (specifically the Servlet spec) would help you tremendously in figuring this out yourself. To answer your question -- your url should be http://localhost:8080/myApp/TestingServlet. For your own sanity, read the spec though. It

Re: Enabling CGI

2005-02-11 Thread David Smith
Hi Steve. Having just done this myself to help someone else, yes. There's a comment block in the global web.xml file (find it at $CATALINA_HOME/conf/web.xml) that really helps in explaining things. --David Kelly, Steve wrote: Hi Richard, So that's my cgi programs. So if my cgi programs are in

  1   2   3   4   >