Re: Template tool

2006-06-14 Thread David Smith
Freemarker can. Very versitile for both web output as well as email and other templating purposes. --David Leonel wrote: On 6/14/06, MW Janssen <[EMAIL PROTECTED]> wrote: i use velocity.. Maarten thanks does it can handle templates from String or has to be templates on file

Re: Http11AprProtocol took 2 hr to init on http-443

2006-06-19 Thread David Smith
Looks to me more like port 80 is taking 2+ hours to initialize, not 443. My guess is tomcat is waiting for something -- possibly a system service. At anyrate, I don't experience that here on any version of tomcat or JDK. --David Jeff Chuang wrote: Hi, After starting tomcat from jsvc as s

Re: pdf documents

2006-06-20 Thread David Smith
I would recommend a servlet that streams the files from some configured absolute path(s) to the client. It's reasonably simple and allows you some degree of control over what is delivered. Map the servlet to *.pdf in your web.xml to make it respond to all requests for pdfs. --David Bob Wyat

Re: pdf documents

2006-06-20 Thread David Smith
I already have a servlet displaying the filenames to select from. My servlet is mapped to a different name in web.xml file. How should I proceed. Should I have another new servlet? What about for different file formats. Should it also be mapped? thanks, suba suresh. David Smith wrote: I would

Re: How does Tomcat detect whether a browser accepts cookies

2006-06-21 Thread David Smith
On first response, Tomcat both set's a cookie JSESSIONID and appends the same to the page links (when properly coded). If the cookie comes back on the next request, url rewriting is dropped in favor of the cookie. No magic, tomcat just covers all it's bases up front. See HttpServletResponse.en

Re: Trouble with Admin WebApp

2006-06-23 Thread David Smith
Wrong place to install the admin webapp. The webapp itself needs to be in $CATALINA_HOME/server/webapps right next to the manager webapp. admin.xml is correctly placed. --David Armour David wrote: Hi I am running Windows 2000. I have installed Tomcat 5.5.17. I am running Java Version: b

Re: When we restarted tomcat, we are getting the below error while connecting to MySql database

2006-06-26 Thread David Smith
Take a look at the user accounts in MySQL. Some things to consider: 1. MySQL authenticates clients based on the host as well as username and password. Login to mysql manually and run this: use mysql ; select user, host from user where user='root' ; If the host column has '%' or 'localhost.l

Re: log4j warning: Please initialize the log4j system properly

2006-06-26 Thread David Smith
[CATALINA_HOME]/common/classes/log4j.properties: log4j.rootLogger=ERROR, R log4j.appender.R=org.apache.log4j.RollingFileAppender log4j.appender.R.File=C:\Program Files\Apache Software Foundation\Tomcat 5.5\logs\tomcat.log log4j.appender.R.MaxFileSize=10MB log4j.appender.R.MaxBackupIndex=10 l

Re: what happens with the content.xml file

2006-06-26 Thread David Smith
I'm not going to claim agreement with the developers on the behavior of the deploy path. I will say you could put version info into a element of the WEB-INF/web.xml file if that's you're goal and it'll show up in the manager webapp without butchering your url. --David tom ot wrote: Hi Pid

Re: many No Referrers in logs

2006-06-26 Thread David Smith
That usually indicates a direct access either by typing in the URL or using a bookmark. --David Robert Kudyba wrote: We have our server.xml file set w/ the following entry: Valve className="org.apache.catalina.valves.AccessLogValve" directory="../logs" prefix="ws_access_log." suffix=".txt" pa

Re: JDBC jar in WEB-INF/lib?

2006-06-27 Thread David Smith
You can if you like. Just implement a ServletContextListener to setup a DBCP pool for your webapp and store the resulting DataSource in the ServletContext. Servlets and JSPs can pull it out of the ServletContext later for use. Then have both the DBCP jar and the MySQL jar in your WEB-INF/lib

Re: Cannot use Tomcat

2006-06-28 Thread David Smith
Offer details. We are not looking over your shoulder at the screen and have no idea what you've setup. --David Rosario Antonio wrote: Tomcat is running but when tryin to access localhost:8080 I receive message: UNAUTHORIZED How can I correct the problem? Thanks Antonio --

Re: Cannot use Tomcat

2006-06-28 Thread David Smith
localhost:8080/index.jsp Displays the page OK. Here in my office my PC is connected to am Intranet and I suspect that is related to my problem. Thanks Antonio -----Original Message- From: David Smith [mailto:[EMAIL PROTECTED] Sent: 28 June 2006 12:39 To: Tomcat Users List Subject:

Re: exec'ing ksh from Servlet

2006-06-29 Thread David Smith
How is that messed up? Makes perfect sense from the perspective of the calling java code and is consistent with input and output streams for files, network connections, etc., ... --David Leon Rosenberg wrote: Alas, the getInputStream and getOutputStream methods are mixed up, the getInputStr

Re: filter increase number of session

2006-06-29 Thread David Smith
There is also the RequestDumperValve which would list out all the request headers/parameters/cookies/etc. that tomcat is receiving. See http://tomcat.apache.org/tomcat-5.5-doc/config/valve.html. It does have a downside in that it locks you into the system's default encoding. :-( --David Le

Re: Access MANIFEST.MF from web-application

2006-06-30 Thread David Smith
rs@tomcat.apache.org 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

Re: tomcat startup problem

2006-06-30 Thread David Smith
You may want to consider saving a copy of server.xml as server.orginal.xml (or something to that effect) and then stripping out all the comments in a production version of the server.xml. Makes reading the config s much easier. If you really need the docs, go back and take a look at the o

Re: web.xml missing

2006-06-30 Thread David Smith
I'm not sure what webapps/Root/WEB-INF/web.xml has to do with anything, but the complaint of a missing web.xml is in context /LoginAction, as well as another more severe complaint about opening an input stream for the validation rules xml file. Did you do a soft link or shortcut? Don't think

Re: Error while connecting to MySQL database

2006-06-30 Thread David Smith
Ok.. 1. Don't mess with the CLASSPATH. In all modern version of tomcat, the class loading heirarchy should take care of all your needs. 2. File ownership - make sure all of tomcat's files are owned by the tomcat user. Sounds to me the db.properties file is not readable by the tomcat user a

Re: How do I fix this error in localhost_log? javax.servlet.ServletException: Error instantiating servlet class org.apache.struts.action.ActionServlet

2006-07-03 Thread David Smith
Include the bean-utils library from http://jakarta.apache.org/commons/beanutils in the WEB-INF/lib directory of your web application. --David [EMAIL PROTECTED] wrote: This is an excerpt from my localhost_log file: 2006-07-03 12:50:32 StandardContext[/strutsBlank]Marking servlet action as un

Re: Authentication problem -> request.getRemoteUser() returns null

2006-07-04 Thread David Smith
using JSP / request.getRemoteUser() it returns null. So the authentication againts apache is ok but, how can I get the infomation into my JSP-Pages ? How is this information passed to tomcat, which configuration setting a necessary? Can anybody help me ? Thanx in advance! Oliver -- David Smi

Re: web app application name

2006-07-05 Thread David Smith
AFAIK, it depends on the listener. Listeners implementing ServletRequestListener can retrieve it from the request; for others I don't see a clear way. --David asaf.lahav wrote: How can I obtain the name of the web application name my listener servlet is running under in Java?

Re: Serving CSS files from a certain URL

2006-07-05 Thread David Smith
In your Test.jsp, why don't you have something similar to: location="${pageContext.request.contextPath}/css/Styles.css" /> I'm of course assuming tomcat 5.x.x and the web.xml file is declared for servlet spec 2.4. This should work whether the running tomcat instance is on your local machine

Re: TC 5.5.17 / SSL - no response (5.5.15 works fine)

2006-07-07 Thread David Smith
The native connector code uses OpenSSL instead of java encryption classes. The certificate formats are different. Try a self-signed OpenSSL cert and see if it it works. --David Danny Lee wrote: BTW: If I disable TCNative/AJP it does the trick, but damn, I wanna use it! -

Re: Tomcat intialization problem

2006-07-07 Thread David Smith
I think you need to fix your networking issues before trying to setup tomcat. If the link you supplied is your support case, the lo network interface isn't working or properly configured. ifconfig on a console logged in as root should show the active network interfaces including at least eth0

Re: Includes that Forward

2006-07-07 Thread David Smith
Personally, I think it's bad design to have an include do a forward and then expect the forward content to replace the include. A forward, even from an include, should replace the entire content of the would be response. The behavior you are looking for could be done easily (and more cleanly)

Re: Tomcat manager URL configuration for 2 tomcat instances, Apache + mod_jk

2006-07-10 Thread David Smith
No, that won't work. Copying jar files from server/lib will cause classloader problems. There is a simpler way: 1. Rename manager.xml in conf/Catalina/localhost to manager-5028.xml 2. Change the path attribute in manager-5028.xml to manager-5028 3. Restart tomcat (or start if it's already stop

Re: Tomcat shutdowns unexpectedly - Please help

2006-07-11 Thread David Smith
I'm no expert, but off the top of my head it appears your JVM is crashing. Especially true if there is absolutely no logging data just before the process stops. You may have indications of what's happening in other log files like syslog or a core dump file. You may also want to look at bug r

Re: url changes

2006-07-11 Thread David Smith
Change the servlet mapping in Blojsom from blog/* to *. Then change the name of the Blojsom webapp to blogs. The end result is the desired URL such as http://www.company.com/blogs/employee.name. Consult the Blojsom docs before making these changes to insure they work as expected and Blojsom

Re: File isn't found in ROOT directory

2006-07-11 Thread David Smith
Two issue here: 1. Place the index.jsp in webapps/ROOT instead of webapps/ROOT/admin 2. ROOT context that comes with tomcat has all it's jsp files pre-compiled. Your new index.jsp is being ignored in favor of the pre-compiled version. Remove the servlet mapping in webapps/ROOT/WEB-INF/web.x

Re: File isn't found in ROOT directory

2006-07-11 Thread David Smith
ss it. Brian -Original Message- From: David Smith [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 11, 2006 11:32 AM To: Tomcat Users List Subject: Re: File isn't found in ROOT directory Two issue here: 1. Place the index.jsp in webapps/ROOT instead of webapps/ROOT/admin 2. ROOT co

Re: Accessing a servlet

2006-07-11 Thread David Smith
Did you reload the webapp after making the change? All changes to WEB-INF/web.xml or files in WEB-INF/classes and WEB-INF/lib will require a reload before they become active in tomcat. --David McRaven, Brian wrote: I was able to refer to a book I have and so I dropped the .class extensions

Re: Simple question, but can't figure out answer

2006-07-12 Thread David Smith
Hi. I've been lurking on this thread for a while this morning. Here's a few things you might want to consider 1. Your perl script to serve up images is pulling from /images according to what was posted. Given that perl probably isn't chrooted to the directory your webapp is in, the ima

Re: HTTP Status 503 - Servlet admin.login_jsp is currently unavailable

2006-07-12 Thread David Smith
Did you store the admin webapp in server/webapps where it belongs? Also check your logs. There should be an exception trace just before the place where this was marked as unavailable. --David simon jones wrote: Hi, can anyone help me with this one? Thanks! I've installed tomcat - no prob

Re: HTTP Status 503 - Servlet admin.login_jsp is currently unavailable

2006-07-12 Thread David Smith
d() -Original Message----- From: David Smith [mailto:[EMAIL PROTECTED] Sent: 12 July 2006 17:38 To: Tomcat Users List Subject: Re: HTTP Status 503 - Servlet admin.login_jsp is currently unavailable Did you store the admin webapp in server/webapps where it belongs? Also check your logs.

Re: HTTP Status 503 - Servlet admin.login_jsp is currently unavailable

2006-07-13 Thread David Smith
Ok I did as instructed and tried the admin. Now I get the "Tomcat's administration web application is no longer installed by default. Download and install the "admin" package to use it. " error. No entries in the log either, where next? Cheers, Simon -----Orig

Re: HTTP Status 503 - Servlet admin.login_jsp is currently unavailable

2006-07-13 Thread David Smith
x 2 root root 4096 Apr 14 19:09 users/ drwxr-xr-x 2 root root 4096 Apr 14 19:09 valve/ drwxr-xr-x 3 root root 4096 Jul 10 16:53 WEB-INF/ Simon -Original Message- From: David Smith [mailto:[EMAIL PROTECTED] Sent: 13 July 2006 12:49 To: Tomcat Users List Subject: Re: HTTP Statu

Re: HowTo configure IP Filter XOR User Login

2006-07-13 Thread David Smith
I know of nothing built-in to tomcat for that. You could implement a request filter to handle the job although it would mean implementing your own authentication. --David [EMAIL PROTECTED] wrote: Hello, I need to configure two different ways to login to an app. The first one is an ip filt

Re: JDBC Realm error

2006-07-13 Thread David Smith
Why don't you try using the same dbURL you use in the java code -- "jdbc:odbc:DSNName". Also add in the attributes connectionName for the auth username to the database and connectionPassword for the auth password to same. --David Propes, Barry L wrote: I'm not sure if this is the method of

Re: Tomcat Not An App Server

2006-07-13 Thread David Smith
Tomcat's not really an app server? Geee really, I feel so inadequate now. :-( Seriously, I think I've seen this religious war around here somewhere and it really depends on definition. No, it's not a full J2EE container, but it's definitely an app server in my opinion. Have you read the se

Re: JDBC Realm error

2006-07-13 Thread David Smith
r in my opinion) toss the JDBC-ODBC bridge software and just use a true Oracle JDBC driver with a standard Oracle connection string. --David Propes, Barry L wrote: well, Tomcat didn't like that at all! It tries to come up (the console) and then quickly disappears! -Original Mess

Re: Tomcat5 installation problem

2006-07-14 Thread David Smith
Port 8005 which tomcat uses as a shutdown port is in use by another process. You could change that in server.xml or shutdown the service on 8005 to fix it. --David Oguz Yarımtepe wrote: Hi. I was trying to install Tomcat 5.5.17 to a windowsXP machine with a service pack 2. I followed the ins

Re: Tomcat on a server

2006-07-17 Thread David Smith
Yes, but Tomcat also pools threads and keeps them around between requests, recycling as necessary. The servlet's themselves should avoid class instance variables unless they are reset to some known state at the beggining or end of every request for this reason. --David Alan Meyer wrote:

Re: [OT] Problems with file permissions

2006-07-19 Thread David Smith
Two solutions, neither are 'apache' solutions: 1. Set sticky bits on the permissions on the folder so new files created under it adopt it's settings. 2. Configure your ftp service to correctly set permissions on upload. Of course, I don't see where any of this has to do with tomcat, hence the

Re: [OT] Problems with file permissions

2006-07-19 Thread David Smith
but I am just puzzled why Apache cares about file permissions instead of user/group security. Thanks again for any help you can give. Michele David Smith <[EMAIL PROTECTED]> No Phone Info Available 19/07/2006 15:02 Please respond to "Tomcat Users List" To Tomcat Us

Re: Tomcat 5.5/Axis 1.4 java.lang.reflect.InvocationTargetException

2006-07-20 Thread David Smith
Q1) As long as I do not referece the classes, which I believe means the classes are not loaded, then there is not problem. When they are accessed, then it fails. The classes are in both common, shared and webapps, where else I am supposed to place them? First, read the classloader howto on the to

Re: Database Connection Error Cannot create PoolableConnectionFactory

2006-07-20 Thread David Smith
java.security.AccessControlException indicates you are running tomcat with the security manager. You'll need to edit your catalina.policy file to allow this connection. The policy file itself has a number of examples, here's just one modified to your situation below: grant codebase "jar:fil

Re: log rotation

2006-07-21 Thread David Smith
catalina.out is the redirected output of tomcat -- not a product of log4j or commons-logging. As such you're best bet is to have a cron job stop tomcat, rename the file and then restart it at say 6:00am when the internet hits the lowest ebb of demand. That method should be safe for all OS's.

Re: Tomcat fails to refresh connections when mySQL server on linux is shutdown and restarted

2006-07-24 Thread David Smith
Best practice is to store the DataSource, not the connections in your singelton class. Then get a connection, perform your queries, and close the connection immediately. The pool will take care of managing the connections including creating new ones when existing connections die which happens

Re: Can't figure out directory structure (again:-(

2006-07-24 Thread David Smith
According to the configurations you posted, the full path of your login servlet is /smsinfo/smsinfo/login. I doubt that was what you were really after. The URL mapping in web.xml is relative to the webapp, not the root. Also, if this is tomcat 5.x, you should put your definition in it's ow

Re: Some tomcat config questions

2006-07-24 Thread David Smith
Third if I telnet to port 80 and issue "GET / HTTP/1.0" the "Location" header contain the local ip address not the public one, It's sat behind a firewall. I tried the "server=external ip" in each connector but I still get the internal ip address returned, any way to fix it? If you want to bind

Re: Links to relative URL's from a JSP

2006-07-24 Thread David Smith
> 2) JSP files, even though accessing image files in the same directory must use the previous directory, e.g., even though the images are contained in the same directory. What does the URL in your browser look like when you are access the JSP pages? The browser constructs the full path to th

Re: Setting the classpath for my application

2006-07-24 Thread David Smith
Ok. Confirmed. Per the servlet spec, all jars in the WEB-INF/lib folder are included in the webapp's classloader. Now, here are some questions that might help narrow down what's happening: 1. Is the jar a valid jar file? Does it's internal folder structure mirror the package structure? 2

Re: Tomcat on Win Server 2003?

2006-07-24 Thread David Smith
Can it be installed on Win 2003 Server? Yes. Can't find any ref's? Probably because it's built in Java and as such is intended to be platform independent. Take a look at the downloads page -- there is a download that installs it as a service. --David maya wrote: can Tomcat be installed

Re: Help needed HTTP response header

2006-07-24 Thread David Smith
Don't think that's possible in a version of tomcat as old as the one you are using. I believe that feature was added to the connectors in tomcat 5.0.x or tomcat 5.5.x. To get what you want in such an old (-cough- ancient) version of tomcat would probably require altering the source code and r

Re: Links to relative URL's from a JSP

2006-07-24 Thread David Smith
th a "correct" relative URL location, and the other two using "../" before the image filename. If I access the JSP using an absolute URL, one of the images will work, if I use dispatcher forwarding, 2 of them will work. I am using Eclipse for development. Sincerely, Mi

Re: ResponseWrapper and sendRedirect not working

2006-07-25 Thread David Smith
I'm not seeing the complete sequence in your filter code, or even a redirect. Should be something like: doFilter(){ MyRequestWrapper reqWrapper = new MyRequestWrapper(servletRequest); MyResponseWrapper respWrapper = new MyResponseWrapper(servletResponse); MyUserObj clientUser = MyU

Re: Where is my Tomcat

2006-07-25 Thread David Smith
OOzy Pal wrote: On 7/25/06, Martin Gainty <[EMAIL PROTECTED]> wrote: All Tomcat installations come with startup. and shutdown. located in $TOMCAT_HOME/bin run the startup. first in some sort of console (xterm...) and note the errors e.g. If it cant find $JAVA_HOME it will output debug messa

Re: Install tomcat on a linux (suse) V-Server (Strato)

2006-07-26 Thread David Smith
Output is redirected to catalina.out in the logs directory. Take a look at that for details on what is/isn't happening. --David heinz rübezahl wrote: Hi, i tried to install a tomcat server on a linux (suse) V-Server of strato. But it doesn't work! I had sucess at windows but anyway. I would

Re: Initial configuration problems

2006-07-27 Thread David Smith
There isn't a lot of information to go on here. Are there any error messages in the logs regarding the manager webapp? Also could you be more specific regarding "...installing the various software elements, adding the environment variables...". You should be able to run the manager webapp ri

Re: Tomcat and MySQL error

2006-07-27 Thread David Smith
The answer depends on how the MySQL connection is made and where. Tomcat doesn't offer just one way to handle this or just one place to configure it. The MySQL connection string can be in server.xml or the web application itself. You might want to do a search to see where "www.old-domain.com

Re: apache not talking to tomcat w/ mod_jk

2006-07-27 Thread David Smith
I got the impression (and I could be wrong here) early on in this thread you may have dropped your jsp in the apache httpd docroot and tried it there. This isn't mod_perl or one of those other modules that allow files to sit directly in the apache docroot or one of it's folders. If this is th

Re: What are the advantages on tomcat5.5.17 over the tomcat4.1.29

2006-07-27 Thread David Smith
Then you need to google again. This subject has been covered in various ways on the list: 1. 5.0.x and 5.5.x both support servlet spec 2.4 (4.1.x supports servlet spec 2.3) 2. 5.5 no longer requires a JDK. A JRE is sufficient 3. There have been HUGE performance improvements in 5.5 (comparabl

Re: tomcat , wondoze , Unable to find a javac compiler;

2006-07-27 Thread David Smith
Are the env vars User variables for your account or system variables? Take a look at this: 1. Click Start, then RIGHT click on My Computer. 2. Choose Properties from the pop-up menu 3. Click the Advanced tab in the System Properties window. 4. Click on the Environment Variables button 5. The re

Re: Apache - Tomcat connector

2006-07-27 Thread David Smith
attachments with the extension .ZIP or .EXE. Please rename all .ZIP attachments to .ZZZ. Please zip all .EXE attachments and then rename them to .ZZZ. If you receive an attachment named .ZZZ please rename it to .ZIP. Sorry for the inconvenience. -- David Smith Network Operations

Re: Back to 404 problem: The requested resource (/Sisc/servlet/servle ts/PesquisaTabPeriferica) is not available

2006-07-27 Thread David Smith
action=strFilePath; return true; objfrm.submit(); } ... Thanks a lot - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Tomcat 5.5.17 can connect to any webserver without mod_jk ?is this true?

2006-07-31 Thread David Smith
In that context, yes. Basically you are setting up a reverse proxy from your Apache/IIS front-end to tomcat. In that event, each connector in tomcat dedicated to a specific Apache/IIS front-end will need the proxyName and proxyPort attributes so it can correctly generate URL links. As for th

Re: Tomcat Upgrade

2006-07-31 Thread David Smith
For what it's worth, I don't think the changes between 4.0.x and 4.1.x are all that significant -- same servlet spec, same deployment as I remember. I wouldn't be a bit surprised if the point difference in releases had more to do with internal restructuring than anything else. Start with a re

Re: Initializing Parameter

2006-07-31 Thread David Smith
ServletContextListener is a new feature of servlet spec 2.4 (tomcat 5.0.x, 5.5.x). The essential parts are: 1. write a class implementing the javax.servlet.ServletContextListener interface. The interface itself requires two methods -- contextInitialized() [see below] and contextDestroyed().

Re: org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot create JDBC driver of class '' for connect URL 'null'

2006-07-31 Thread David Smith
Is your SQL JDBC driver in common/lib? It has to be there for tomcat to set it up as a resource. Also drop the tag from your context definition. Not needed when the resource is defined inside the tag and may confuse tomcat. --David Aynalem, Seblewengel (Trawick) wrote: Hi there: I am

Re: org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot create JDBC driver of class '' for connect URL 'null'

2006-07-31 Thread David Smith
70 config=null Jul 31, 2006 3:01:10 PM org.apache.catalina.storeconfig.StoreLoader load INFO: Find registry server-registry.xml at classpath resource Jul 31, 2006 3:01:10 PM org.apache.catalina.startup.Catalina start INFO: Server startup in 5147 ms -Original Message- From:

Re: org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot create JDBC driver of class '' for connect URL 'null'

2006-07-31 Thread David Smith
ng ID=0 time=0/70 config=null Jul 31, 2006 3:01:10 PM org.apache.catalina.storeconfig.StoreLoader load INFO: Find registry server-registry.xml at classpath resource Jul 31, 2006 3:01:10 PM org.apache.catalina.startup.Catalina start INFO: Server startup in 5147 ms -Original Message- Fro

Re: Initializing Parameter

2006-07-31 Thread David Smith
Christopher Schultz wrote: Ryan, One more question: What is the best method for retrieving the values? You only have one option: ServletContext.getInitParameter There are, however, some tools that can help you load data that is not String-based. Jakarta commons beanutils package (s

Re: org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot create JDBC driver of class '' for connect URL 'null'

2006-07-31 Thread David Smith
t like tomcat would. --David Aynalem, Seblewengel (Trawick) wrote: Sorry to ask this... how do you verify server connection independently. This is my first time configuring doing database connection. Thanks a lot, -Original Message----- From: David Smith [mailto:[EMAIL PROTECTED] Sent: Mon

Re: Servlet that needs ROOT access

2006-08-01 Thread David Smith
Is it possible to run tomcat as root? Yes. Is it advised? No. I think you're on the right track with the separate process idea. That would limit the opportunities presented to would be hackers. Another idea, you might be able to do something with the sudo command and Runtime.exec() as long

Re: Tomcat 5.5.17 can connect to any webserver without mod_jk ?is this true?

2006-08-01 Thread David Smith
/1.3 protocol. Think if it as incorporating the functions of mod_jk into mod_proxy. --David Raju Balugu wrote: Thanks to David Smith and Mark Thomas . What is the difference between mod_proxy_ajp and mod_proxy?Could you please give details on that? Regards Raju On 8/1/06, Mark Thomas

Re: org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot create JDBC driver of class '' for connect URL 'null'

2006-08-01 Thread David Smith
Could there be any other cause for this error: org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot create PoolableConnectionFactory (The TCP/IP connection to the host has failed. java.net.ConnectException: Connection refused: connect) -Original Message----- From: David Smith [mailto:[

Re: org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot create JDBC driver of class '' for connect URL 'null'

2006-08-01 Thread David Smith
rg.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot create PoolableConnectionFactory (The TCP/IP connection to the host has failed. java.net.ConnectException: Connection refused: connect) -Original Message- From: David Smith [mailto:[EMAIL PROTECTED] Sent: Monday, July 31, 2

Re: Someone Please: Why Is Tomcat Looking In The Wrong Directory?

2006-08-01 Thread David Smith
I'm responding to the first message in the thread, but have read all of it. A thought: How are you opening this file? Hopefully it's via ServletContext.getResourceAsStream( "/myapp/conf/myapp.properties" ) ; --David Robinson, Eric wrote: Hello all, When I start tomcat, I get several mes

Re: Someone Please: Why Is Tomcat Looking In The Wrong Directory?

2006-08-01 Thread David Smith
r that question as I am not the developer. Although I called it "myapp" for simplicty, it is really a third-party application. -- Eric Robinson -Original Message- From: David Smith [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 01, 2006 8:23 AM To: Tomcat Users List Subject

Re: Someone Please: Why Is Tomcat Looking In The Wrong Directory?

2006-08-01 Thread David Smith
directory and below and I see a couple of places where it is doing a System.GetProperty("tomcat.home"), but that's about it. -- Eric Robinson -Original Message----- From: David Smith [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 01, 2006 8:55 AM To: Tomcat Users List Subject: Re:

Re: Dynamically add Filter to webapp without declaring in web.xml

2006-08-01 Thread David Smith
Depending on your version of tomcat, ServletContextListener may be an excellent standard way to go. There was a thread just a few days ago on that. --David Harakiri wrote: Hello, is it possible to dynamically add a Filter for a web app using the tomcat ? If so, is there an example how to d

Re: [OT?] Servlet, redirect and progress-monitoring?

2006-08-02 Thread David Smith
I suspect what you really have to do is set the PDF generation off into a background thread, storing a reference to the thread in the session. Then return with a refresh every 10 - 15 seconds until the thread finishes. Clean up after the thread so you don't end up with memory leaks and possib

Re: place to put taglib descriptors

2006-08-03 Thread David Smith
The only way a tld should be in WEB-INF/lib is if it's in the META-INF of the jar containing the taglib classes. They can be in let's say WEB-INF/tlds and then added to web.xml in a tag, one per tag. --David Marten Lehmann wrote: Hello, currently (in a 2.4 container) I'm putting mit ta

Re: Unable to compile the Jsp in Tomcat

2006-08-03 Thread David Smith
You say: 1. On first load after deploying, you get the exception below 2. Second request to the jsp loads fine. I'm not sure why, but it sounds like the results of compiling the .jsp to .java isn't written yet when the compiler is invoked for compiling the .java to a .class. By the time the s

Re: >>Tomcat 4<<: org.apache.commons.dbcp.SQLNestedException: Cannot create JDBC driver of class '' for connect URL 'null'

2006-08-03 Thread David Smith
Your setup is textbook for tomcat 4.1.x, but I took a quick look at the docs for 4.0 and things look very slightly different. Take a look at: http://tomcat.apache.org/tomcat-4.0-doc/jndi-resources-howto.html One thing I'm wondering considering the docs for 4.0 don't mention the DBCP pooling i

Re: place to put taglib descriptors

2006-08-04 Thread David Smith
You could place them in the META-INF of the jar files they go with. Otherwise, no auto-configure locations that I know of. What's the problem with configuring them in web.xml? --David Marten Lehmann wrote: Hello, They can be in let's say WEB-INF/tlds and then added to web.xml in a tag,

Re: Classpath problem

2006-08-07 Thread David Smith
The quick answer: Do not mess with classpath. Tomcat has a very specific classloader hierarchy. See http://tomcat.apache.org/tomcat-5.5-doc/class-loader-howto.html for details. If this does not answer your question, please post a more detailed message with specifics. --David Julien vand

Re: apache Tomcat webserver problem

2006-08-07 Thread David Smith
Question: Is the "other computer" you are trying to contact tomcat from on the same subnet or outside your cable router. I ask because 192.168.x.x addresses are not routeable. You can get around that with config settings in your cable router, check the docs for details. Outside of that, che

Re: Restarting Tomcat causes application to be displayed across all instances

2006-08-07 Thread David Smith
Tomcat does not explicitely use any specific classpath outside of it's own. It even ignores the system set CLASSPATH variable. Check your config settings and webapp for references to ~/cvs/fable/* directory. --David Ryan O'Hara wrote: I think I found a promising lead to what is going wrong

Re: Problem with java.library.path

2006-08-07 Thread David Smith
Your log message sited below is not related to accessing jpl.jar. It's just a message stating it couldn't use the new native APR connector and is falling back to the traditional Coyote connector. As far as an external jar file, best practice is include it in your webapp in WEB-INF/lib. In $C

Re: Taglibs ; error in a JSP using expression langluage

2006-08-08 Thread David Smith
One other possibility -- which servlet spec version do you have specified in your web.xml? If web.xml declares an older version of the servlet spec, these ${} expressions may not be available. --David Pid wrote: which version of tomcat are you using? is Expression Language enabled? as it l

Re: stress ROOT application instead my application

2006-08-08 Thread David Smith
That's because you are setting up Apache to view your ecommerce site as the root, but tomcat is still using the ROOT webapp as the root. Dump the ROOT webapp, rename ecommerce to ROOT and reconfigure Apache to your webapp (now named ROOT). --David jeusdi wrote: Helo World, I'm trying confi

Re: tomcat JSP Servlet Apache JK2

2006-08-08 Thread David Smith
Typical cause is a config error in your mod_jk setup or your jsp file located in the wrong place. Please post details of your Apache, mod_jk, and tomcat setups for a more helpful answer. --David jeusdi wrote: Hello, I've configured Apache Web Server with mod_jk2 to communicate it with Apach

Re: Upgrade problem (useBean)

2006-08-08 Thread David Smith
This may be something for a bugzilla report, but I looked at the source of org.apache.jasper.compiler.Generator. The real exception generated is eaten in favor of the very unhelpful message you received. The possible original exceptions may have been one of: java.lang.ClassNotFoundException

Re: Upgrade problem (useBean)

2006-08-08 Thread David Smith
something like: <% internet.database.SimpleUseOfConnectionPool myBean = new internet.database.SimpleUseOfConnectionPool() ; %> If that works, then I would say jasper is at fault somehow. If not, take a look at the generated exception for the real cause of your problem. --David Lars Nielsen Lind wrote

Re: Connector Problems -

2006-08-08 Thread David Smith
Past thread have effectively said use the .so with Apache even though you might be on Windows. In reality I would think the error would be much different if Apache couldn't load mod_jk.so. Your Apache config mentions use of a worker named ajp13. Is that one working, and if so, where is it co

Re: Connector Problems -

2006-08-08 Thread David Smith
enableLookups="false" redirectPort="8443" protocol="AJP/1.3" /> Is this what your were looking for ? ? ? David Smith <[EMAIL PROTECTED]> wrote: Past thread have effectively said use the .so with Apache even though you might be on Windows.

Re: Connector Problems -

2006-08-08 Thread David Smith
the mod_jk.nlm and nsapi.nlm win32/i386 Contains the mod_jk.dll for Windows as well as other useful binaries. -Original Message- From: David Smith [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 08, 2006 3:39 PM To: Tomcat Users List Subject: Re: Connector Problems - Past thread

Re: Upgrade problem (useBean)

2006-08-08 Thread David Smith
Lars Nielsen Lind wrote: David Smith skrev: Usually you'd know it if it was. By default it isn't and has to be explicitly turned on. See http://tomcat.apache.org/tomcat-5.5-doc/security-manager-howto.html for more information. Here's a quick and dirty test -- insert

  1   2   3   4   5   6   7   8   9   10   >