Re: Broken pipe errors

2008-05-22 Thread David Smith
Broken pipe can also happen when faulty network hardware or sensitive firewalls drop the connection. --David Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 James, James Law wrote: | Can anyone help with the below error? We have just changed from a FC8 | box with

Re: Moving a site

2008-05-22 Thread David Smith
Message- From: David Smith [mailto:[EMAIL PROTECTED] Sent: Thursday, May 22, 2008 2:36 PM To: Tomcat Users List Subject: Re: Moving a site So you decided to take our hair as well .. :-) Specifics please: Tomcat version: Java version: OS: Any relevant excerpts from the logs: --David

Re: Moving a site

2008-05-22 Thread David Smith
of the folders in webapp folder from the manager just not mine. The file I am moving came from version 4.1 of Tomcat, not sure if that matters or not. -Original Message- From: David Smith [mailto:[EMAIL PROTECTED] Sent: Thursday, May 22, 2008 3:02 PM To: Tomcat Users List Subject: Re

Re: Manager Application (Tomcat 5.5.26)

2008-05-21 Thread David Smith
is currently unavailable Any more ideas? Thanks, Nuno -Original Message- From: Caldarale, Charles R [mailto:[EMAIL PROTECTED] Sent: terça-feira, 20 de Maio de 2008 12:13 To: Tomcat Users List Subject: RE: Manager Application (Tomcat 5.5.26) From: David Smith [mailto:[EMAIL PROTECTED

Re: Manager Application (Tomcat 5.5.26)

2008-05-20 Thread David Smith
is available in the Apache Tomcat/5.5.26 logs. If I do a refresh I get the error I sent in the first e-mail. Does the webapp needs any jar that does not come by default or something? Regards, Nuno -Original Message- From: David Smith [mailto:[EMAIL PROTECTED] Sent: segunda-feira, 19 de Maio de

Re: HTML hyperlink problem in Apache Tomcat 5.5

2008-05-20 Thread David Smith
. - To start a new topic, e-mail: users@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

Re: how to change http://107.105.13.1/webapp/ into http://www.mydomain.com/webapp/

2008-05-20 Thread David Smith
will try to setup a DNS server. For this. God bless. On Mon, May 19, 2008 at 5:46 PM, David Smith [EMAIL PROTECTED] wrote: Not a tomcat question ... you need to get your system registered with a DNS service and it will respond to the www.mydomain.com name regardless of service (tomcat, apache

Re: how to change http://107.105.13.1/webapp/ into http://www.mydomain.com/webapp/

2008-05-19 Thread David Smith
Not a tomcat question ... you need to get your system registered with a DNS service and it will respond to the www.mydomain.com name regardless of service (tomcat, apache, iis, ssh, sftp, etc., ...). --David ryan webb wrote: Hello, How to change http://107.105.13.1/webapplication/ into

Re: *SPAM* Re: How to increase tomcat memory

2008-05-19 Thread David Smith
/etc/init.d/tomcatX is not a file provided by any packages from tomcat.apache.org. I would suspect it's probably the best place for your adjustments when launching tomcat as a service -- especially since it already contained -Xmx128m. Check documentation provided by the packager to get an

Re: Manager Application (Tomcat 5.5.26)

2008-05-19 Thread David Smith
The manager webapp provided by tomcat doesn't need installation -- it's a part of tomcat already in the download distribution. It's location has changed slightly over time -- normally found in the webapps directory, tomcat 5.5.x put it in server/webapps by default. Regarding the error below,

Re: Once again, clear text passwords in context.xml files

2008-05-13 Thread David Smith
Kevin: That works for remote user accounts logging into tomcat webapps, but does not work for database pools, etc., ... where tomcat the service has to perform a login to gain access to protected resources. Marcus: If the admins who are making noise ever really thought about the problem,

Re: How to reload web app from java program?

2008-05-04 Thread David Smith
itself? I suppose I need exactly the same API call as manager app does to reload the context! Regards, Milos The OP is trying to reload one webapp, not the entire tomcat. --David David Kerber wrote: David Smith wrote: Don't think so. The next best things are a) using

Re: Tomcat problem on a multiple CPU system

2008-05-04 Thread David Smith
@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 Fax: (607) 255-0940

Re: How to reload web app from java program?

2008-05-03 Thread David Smith
Don't think so. The next best things are a) using the manager webapp to reload or b) design the webapp to reload local config information itself. The only down side to (b) is it can't work on resources defined in tomcat configs like database pools. --David [EMAIL PROTECTED] wrote: Hello,

Re: How to reload web app from java program?

2008-05-03 Thread David Smith
If you wanted to go that route, might as well call wget or curl to hit the manager webapp with a reload command. The OP is trying to reload one webapp, not the entire tomcat. --David David Kerber wrote: David Smith wrote: Don't think so. The next best things are a) using the manager webapp

Re: Tomcat and JSF

2008-05-02 Thread David Smith
I would suspect one of the xml files tomcat reads at startup uses xsi:schemaLocation, but doesn't declare the xsi namespace. Maybe check your webapps web.xml files to be sure they are well formed. There are a lot of xml validators in the world that can help you with this. --David jaykay

Re: Problem with policies

2008-04-30 Thread David Smith
- To start a new topic, e-mail: users@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

Re: Problem with policies

2008-04-30 Thread David Smith
codeBase file:${catalina.base}/webapps/myapp/- { permission java.security.AllPermission; }; Am I missing something? R. - David Smith [EMAIL PROTECTED] wrote: What makes you think its a problem with the security policy file? This looks more like it can't find the struts html taglib tld

Re: Where to define Context element...

2008-04-29 Thread David Smith
The Tomcat documentation lists several different places that you can define a Context element. I don't want to define it in my app's web.xml Neither should you. Web.xml has its own purpose defined by the servlet spec. My web app is in a war called mytest.war, which I deployed to

Re: access files from jsp

2008-04-29 Thread David Smith
-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) 255-0940

Re: access files from jsp

2008-04-29 Thread David Smith
@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 Fax

Re: access files from jsp

2008-04-29 Thread David Smith
)to allow access to the files from outside? --- David Smith [EMAIL PROTECTED] schrieb: Here's the picture you painted in the original email and I based my answer on: 1. You have a jsp file on a tomcat server which needs to read information from a remote system 2. The system containing

Re: access files from jsp

2008-04-29 Thread David Smith
are at remote web server directory ( f.i. \\tomcat\httpdirectory\files ) and my JSP request for them ? --- David Smith [EMAIL PROTECTED] schrieb: So... the remote file is available to the local system on a network drive. That's a fun one. There are a couple of different ways to do this. 1

Re: access files from jsp

2008-04-29 Thread David Smith
On Apr 29, 2008, at 1:39 PM, David Smith wrote: So... the remote file is available to the local system on a network drive. That's a fun one. There are a couple of different ways to do this. 1. Using Windows fileshares Let me preface this by saying *I've

Re: How to close idle connections

2008-04-28 Thread David Smith
I see you have maxIdle=20. Do you have more that 20 connections sitting idle? Is this really that much of a concern? As long as the connections are released (closed) and returned to the pool, I don't see the problem. The entire idea of a connection pool is the system keeps around a set of

Re: R: How to close idle connections

2008-04-28 Thread David Smith
No, I have at most 20 idle connections, that's goes right, but my boss want less idle connections to avoid to overload the database server. So there isn't way to close an idle connection to remove the relative process? If so, I will set maxIdle=2 and everyone will be happy (expecially me :)

Re: [OT] Comodo as a CA

2008-04-26 Thread David Smith
I used Comodo a couple of years ago. Only changed vendors when the university started a contract w/ another vendor and offered them to departments for free. Never had a problem with Comodo although I did have to make sure the certificate chain was available to the client. That got me around

Re: simple JSP redirect to another page -- how to deal with relative URLs

2008-04-25 Thread David Smith
I see the problem. You could use absolute paths in jsp includes and the servlet container would understand them as relative to the webapp's root as opposed to the server's root: Say you have this file layout webapp |index.jsp |article1 |index.jsp |article1.html |

Re: simple JSP redirect to another page -- how to deal with relative URLs

2008-04-25 Thread David Smith
Never mind .. I saw your other responses and the best solution is the redirect option. After following the redirect, the browser will have the correct URL for calculating the full url of each of the page's resources. --David David Smith wrote: I see the problem. You could use absolute

Re: Datasource and Hibernate

2008-04-24 Thread David Smith
You've been answered. Please take a look at my and Mark's responses. If you can't find them in your email, take a look at the list archives. --David Dubois, Fabien wrote: Hi everybody, I'm using tomcat6 and trying to use datasource for mysql connexion (and hibernate). I have looked to

Re: How do I co-exist both tomcat and java in one windows machine?

2008-04-23 Thread David Smith
Tomcat requires java. There's never been a problem with them on the same box. Can you be a little more specific on what you're asking? --David Nix Hanwei wrote: Hi Gurus, How do I co-exist both tomcat and java in one windows server? Thanks in advance.

Re: How do I co-exist both tomcat and java in one windows machine?

2008-04-23 Thread David Smith
and tomcat 6.0 and java 1.4 and java 1.6 in a box. How do I define CATALINA_HOME and JAVA_HOME and jk connector for each tomcat? - Original Message From: David Smith [EMAIL PROTECTED] To: Tomcat Users List users@tomcat.apache.org Sent: Wednesday, 23 April 2008 5:42:59 Subject: Re: How do

Re: Problem with Datasource

2008-04-23 Thread David Smith
What is in tomat's lib directory? And what's in the resource-ref ... /resource-ref section of your web.xml? Commenting on your resource definition below, remove autoReconnect=true as it's not recommended by the mysql folks. Add validationQuery=select 1 to have the pool test connections on

Re: Access SQL Server 2005 and 2000 on same machine

2008-04-22 Thread David Smith
Ok... how do you get two services on the same port? Are they bound to different IPs? They can't both respond on the same address and port. --David Alexander Diedler wrote: Hello, We have installed a SQL 2000 and SQL 2005 Server Express on the same server and same Port (1433) Now we have no

Re: Directories in Tomcat 5.5\temp

2008-04-22 Thread David Smith
I *think* the antiResourceLocking in tomcat may cause this if configured in your Context ... element. Those with better knowledge might want to comment further. Last I know the webapp is copied/expanded to either temp or work when it's enabled. --David hezjing wrote: Hi Chuck Hmmm ... I

Re: Can't hit tomcat by real IPAddress or Hostname

2008-04-21 Thread David Smith
If I had to hazard a guess, a firewall is in the way. Can you say more about your network topology? From where are you attempting to connect and what's between the client and the server? Lastly, do you have an address attribute in the connector for port 4949 in your server.xml? --David

Re: first authentication attempt fails - mysql timeout

2008-04-21 Thread David Smith
is successful. Is there a way to fix this problem? Thanks for your time. -- 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: Cookie-less session tracking - whats are the downsides

2008-04-17 Thread David Smith
The man in the middle attack you describe below is one possible issue. However it's easy to capture cookies and provide those in an attack. An effective hacker is going to be able to look exactly like the client on an unencrypted connection. URL encoded sessonIds can cause headaches if you

Re: WAR created on tomcat 6.0 -Executed on Tomcat 5.5

2008-04-17 Thread David Smith
I've never had standard.jar or jstl.jar anywhere except the webapp's WEB-INF/lib folder so it's hard to say what tomat will do with that. You may have to declare the taglibs in WEB-INF/web.xml when done that way. Also what is the necessary folders you installed the jars in? --David

Re: Is Connection Pooling still necessary?

2008-04-17 Thread David Smith
Pooling still makes sense although in modern servlet containers it's provided. Outside the JVM, there's the overhead of making the connection and authenticating that can eat up significant amounts of time in busy sites with large numbers of queries to the db. Those costs are completely

Re: changing webapps path

2008-04-16 Thread David Smith
Andre Hübner wrote: Hi List, i use tomcat 5.5.26 on Suse Linux 10.1 Tomcat is installed in /usr/share/tomcat5 Newly created webapps are created in /usr/share/tomcat5/webapps Now i want to change this Path for new uploaded webapps. I could make symlink to folder i want but i think there

Re: WAR created on tomcat 6.0 -Executed on Tomcat 5.5

2008-04-16 Thread David Smith
Check your war file for the existence of standard.jar and jstl.jar in WEB-INF/lib. I'll bet at least standard.jar is missing if not both of them. --David Computerjuice wrote: I have developed a web application using netbeans and Tomcat 6.0. I have deplyed the resulting WAR file to a website

Re: ROOT as 'ROOTORIG'

2008-04-14 Thread David Smith
Just took a quick look at the default ROOT page as it comes with tomcat 6.0.14 and it uses page relative link 'manager/html' instead of a server relative '/manager/html'. I'm hazarding a guess this is a very minor cosmetic bug in tomcat as I can't think of a single reason to use a page

Re: ROOT as 'ROOTORIG'

2008-04-14 Thread David Smith
The short of the issue is it's not the OP's fault -- 'tis a bug in the ROOT webapp as provided by Tomcat. I see Mark has fixed in the trunk and it should be in the next release. Thank you Mark! --David Felix Schumacher wrote: Am Montag, den 14.04.2008, 23:16 +0530 schrieb karthikn: Hi

Re: Classpath Problem

2008-04-11 Thread David Smith
privileged=true docBase=/usr/local/jakarta/tomcat/server/webapps/manager /Context /Host Thank you 2008/4/10, David Smith [EMAIL PROTECTED]: Could you post the Host element of your server.xml? I know people have had this problem and solved it in the past

Re: Perl CGI setup

2008-04-11 Thread David Smith
I know at least Chuck has already responded, but it may need to be emphasized even more. Tomcat will not allow clients to directly request _ANYTHING_ from the WEB-INF directory. This is per the servlet spec. --David Shabu Khan wrote: Thanks Charles. I put it back: servlet-mapping

Re: jsvc creates pid file owned by root

2008-04-10 Thread David Smith
Well ... here's the problem. jsvc needs that pid file to shutdown tomcat. It would be a real PITA if some user or script were to muck around and damage or delete that file. Having said that, most *nix systems have a sticky bit ability to force permissions on newly created files in specific

Re: Tomcat not recompiling new jsp in development mode

2008-04-10 Thread David Smith
Next time, take a look at the timestamp on the files in work/catalina/localhost/* and compare them to the timestamp on the jsps. I'll bet your transfer client is setting the timestamp on your jsps and the local machine's time isn't in sync with the remote server's. When the remote server

Re: Can Tomcat set its pid in a file?

2008-04-10 Thread David Smith
You could use jsvc instead of the shell scripts. --David fredk2 wrote: Hi, Currently the pid file is set when you run catalina.sh (unix/linux) if [ ! -z $CATALINA_PID ]; then echo $! $CATALINA_PID fi In some situation (when using sudo, su, catalina.out piped to a log

Re: Tomcat Manager page won't load

2008-04-10 Thread David Smith
That's a question for your logs. If the logs don't help, is there a core dump hanging around indicating the JVM crashed? --David Gary Opela (Corporate) wrote: Update on this: I uninstalled tomcat, and remedy (mid-tier), rebooted. Next, I installed tomcat 5.5 from the apache.org download.

Re: Classpath Problem

2008-04-10 Thread David Smith
Could you post the Host element of your server.xml? I know people have had this problem and solved it in the past, but it's been a while. --David OpenP2M Open wrote: Hi, I'm migrating an application from one server to another. On the old server the application runs perfectly, but on the new

Re: Servlet Concurrency problem

2008-04-09 Thread David Smith
I'm guessing these requests are from the same browser. The browser limits the number of connections it makes to the server to 2. If you really need more, google for hacks to the browser to allow more. --David davilovick wrote: Hi, we are trying to develop a servlet, but ive encountered

Re: Tomcat 5.5.x or 6.x: ROOT limitation removed?

2008-04-09 Thread David Smith
As you've set it up below, your webapp, one2team will be deployed twice. Once as ROOT and once as one2team. If I were in your shoes, I would create a folder right next to webapps and name it mywebapps or something. Name isn't all that important. Then move the one2team webapp in that folder

Re: tomcat cache wierd behaviour

2008-04-08 Thread David Smith
I've seen some transfer clients (like winscp) default to setting the date/time on the remote copy the same as the local. If the local system time isn't in sync with the server, it could cause issues like this. When the jsp is compiled, tomcat uses the server's date, time and time zone. In

Re: tomcat cache wierd behaviour

2008-04-08 Thread David Smith
the checkbox labeled Preserve timestamp in the screenshot, far right side under 'Attributes'. --David Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 David, David Smith wrote: | I've seen some transfer clients (like winscp) default to setting the | date/time on the remote

Re: How to change default port 8080 in TomCat ?

2008-04-08 Thread David Smith
All sarcasm aside, take a look at the Connector ... / elements in conf/server.xml. Change the port attribute to the port number you want to use. You didn't specify the tomcat version you are using. Here's the docs for tomcat 6.0's HTTP connector:

Re: disable jsp cache in tomcat work folder

2008-04-07 Thread David Smith
Normally jsps are monitored for updates and recompile if the date on the jsp is after the date on it's compiled .class file. If you are having trouble with jsps not recompiling after an update, one thing to check is if there is any difference between your system clock and the server's clock.

Re: web.xml pbm

2008-04-04 Thread David Smith
and where is this web.xml file stored? It has to be in your webapp's WEB-INF (note all CAPS) folder per the servlet specification. --David supareno wrote: hello, my config is: tomcat 5.5.9 jdk 6 linux ubuntu eclipse 3.2 ant 1.7.0 i write a build.xml file to build and deploy my war.

Re: web.xml pbm

2008-04-04 Thread David Smith
That error is different from what you originally posted and implies your webapp is trying to modify the tomcat supplied JNDI name context. That context which houses tomcat container supplied stuff like database pools is read only. ... But that's a different post. Back to the original error

Re: web.xml pbm

2008-04-04 Thread David Smith
: David Smith a écrit : That error is different from what you originally posted and implies your webapp is trying to modify the tomcat supplied JNDI name context. That context which houses tomcat container supplied stuff like database pools is read only. ... But that's a different post. Back

Re: Changing Tomcat Home Page

2008-04-03 Thread David Smith
Remove the ROOT folder and rename MyWebSpace to ROOT. --David Ian Bloggs wrote: I want to change the default home page from /webapps/ROOT to something like /webapps/MyWebSpace. Can anyone advise how I do this please? I'm using Apache Tomcat/6.0.14 (Win32) Regards, Ian

Re: where to put config file in a webapp

2008-04-02 Thread David Smith
Caldarale, Charles R wrote: From: Kimberly Begley [mailto:[EMAIL PROTECTED] Subject: where to put config file in a webapp Currently it is in WEB-INF Normally, such a properties or config file would be placed in WEB-INF/classes, and accessed via ServletContext.getResourceAsStream().

Re: N00b Installation Question

2008-04-02 Thread David Smith
I'll give you a hint ... case matters. Take a really close look at what you've setup in your web.xml and what you've named your servlet. extenXLSTestbed != ExtenXLSTestbed. --David Lizard Lizard wrote: Greetings! I am trying to setup/configure Tomcat 6.0 under Vista. I am mostly following

Re: N00b Installation Question

2008-04-02 Thread David Smith
In that case, you'll have to take a look at your logs for clues to what's happening. Can you post relevant parts of your logs for when your webapp was started and when you tried to request the servlet? --David Lizard Lizard wrote: On Wed, Apr 2, 2008 at 12:06 PM, David Smith [EMAIL

Re: parsing of .jsp not functional

2008-04-01 Thread David Smith
It would seem your request for file.jsp is not being routed through mod_jk and is hitting a local file.jsp in your httpd site. Where is the errant file.jsp located? Does tomcat show any log messages for the moment in time when page is requested? Anything in your httpd logs regarding the

Re: Problem in running Tomcat

2008-04-01 Thread David Smith
Raghavan_sat wrote: David Smith-2 wrote: tomcat 5 w/ gcj -- either get rid of it or take this conversation to the yum folks. We support tomcat as provided by Apache using primarily Sun Java although I'm sure people have had success with IBM's jvm. Other packaging methods introduce

Re: mod_jk and url rewriting+forwarding

2008-04-01 Thread David Smith
mod_jk doesn't use the HTTP protocol. It uses the AJP13 protocol. Unless you've done something unusual with your tomcat, the 8080 connector will be talking HTTP, not AJP. Default AJP port is usually 8009, so try 'worker.MyWorker.port=8009' in your workers.properties file. If you've changed

Re: Problem in running Tomcat

2008-03-30 Thread David Smith
tomcat 5 w/ gcj -- either get rid of it or take this conversation to the yum folks. We support tomcat as provided by Apache using primarily Sun Java although I'm sure people have had success with IBM's jvm. Other packaging methods introduce lot's of symlinks and at times alterations in the

Re: Problem in Running a servlet

2008-03-29 Thread David Smith
The stack below tells me tomcat isn't running any longer after you try to run your servlet. In addition to what Mark suggested, your catalina.out file from the point your servlet was called onward would also be helpful. Also look for a core dump as there's a chance the JVM crashed -- that

Re: Tomcat mod_jk PNG resized to GIF with IE : too small

2008-03-28 Thread David Smith
What I'm seeing is some weird scaling stuff being injected into the response being sent back to IE browsers: img id=form1:image1 style=width:100px;height:100px;filter:progid:DXImageTransform.Microsoft.AlphaImageLoader (src='/pngproblem/resources/jpp000.png;jsessionid=..',

Re: Tomcat JNDI datasource

2008-03-28 Thread David Smith
Your root cause seems to indicate it's having some trouble possibly with the url: Caused by: java.lang.NullPointerException at java.util.StringTokenizer.init(StringTokenizer.java:146) at com.ibm.db2.jcc.DB2Driver.acceptsURL(DB2Driver.java:245) at

Re: Tomcat JNDI datasource

2008-03-28 Thread David Smith
| Context debug=4 | docBase=C:/Java/eclipse-europa/europa-workspace/bop-med/web | path=/bop-med reloadable=true | workDir=work\Catalina\localhost\bop-med Bad boy: take out the docBase and path attributes. At best, they will be ignored. At worse, they will confuse both you /and/

Re: Tomcat JNDI datasource

2008-03-28 Thread David Smith
Bad suggestion. It should exist in one and only one place. That place is common/lib for tc 5.0, 5.5 so it's visible to both tomcat's internal code and the webapp. --David Howard Watson wrote: Hi. Did you try putting your .jar files in \WEB-INF\lib of you webapp? Tom Henricksen [EMAIL

Re: Tomcat JNDI datasource

2008-03-28 Thread David Smith
is outside the Tomcat directory structure there is merit with having associated .jar files in that docBase. And in instances where there are multiple Tomcats running and perhaps multiple versions, then keeping associated files with your app has merit also. David Smith [EMAIL PROTECTED] 3/28

Re: Tomcat JNDI datasource

2008-03-28 Thread David Smith
Just had a brainstorm while responding on another post. The docs for 5.0.30 should describe defining a resource in terms of a Resource ... / element and a ResourceParams/ResourceParams element. The resource as setup below is only correct for version 5.5.x and later. --David Tom

Re: Tomcat mod_jk PNG resized to GIF with IE : too small

2008-03-28 Thread David Smith
parameters but could not see where to turn this resizing off. Thanks anyway. Message d'origine Date: Fri, 28 Mar 2008 09:03:25 -0400 De: David Smith [EMAIL PROTECTED] A: Tomcat Users List users@tomcat.apache.org Sujet: Re: Tomcat mod_jk PNG resized to GIF with IE : too small What I'm

Re: another apache/tomcat/mod_jk/virtual hosting question/issue

2008-03-26 Thread David Smith
Bad Gateway wouldn't be generated by tomcat unless your tomcat code was somehow getting content from another site. Given your most recent log snippets have apparently been from an httpd error log file instead of tomcat's logs (like catalina.out), I'm going to guess your mod_jk setup in httpd

Re: another apache/tomcat/mod_jk/virtual hosting question/issue

2008-03-26 Thread David Smith
Which workers.properties file? It's the one specified by the JkWorkersFile directive in your httpd configuration. If you have more than one, you might want to consider getting rid of the others just to eliminate confusion. Official mod_jk connector docs can be found at

Re: httpd cant talk to tomcat workers

2008-03-26 Thread David Smith
1. You probably want to clean out your workers.properties file. The log below indicates it has a lot of old depricated stuff in it. Mine is just a very bare bones one: worker.list=tcinstance1 worker.tcinstance1.port=8009 worker.tcinstance1.type=ajp13 2. Make sure an ajp13 port is alive at

Re: another apache/tomcat/mod_jk/virtual hosting question/issue

2008-03-25 Thread David Smith
From experience, this error is usually the result of an earlier error. Look further up your logs to the first error that occurs after you request this page. Fix that and this one should go away. --David Tommy Peterson wrote: this is the problem with every jsp page I try to hit. does this

Re: Configuring linux for Tomcat web hosting

2008-03-25 Thread David Smith
1. Configure tomcat to listen on port 80 and without root privilege. Not sure how you setup tomcat on your Ubuntu box, but most linux distributions will require you start it with something like jsvc from the commons-daemon project to do this. 2. Configure your cable router to forward port 80

Re: Configuring linux for Tomcat web hosting

2008-03-25 Thread David Smith
) 657 - 4617 -Original Message- From: David Smith [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 25, 2008 3:01 PM To: Tomcat Users List Subject: Re: Configuring linux for Tomcat web hosting 1. Configure tomcat to listen on port 80 and without root privilege. Not sure how you setup tomcat

Re: another apache/tomcat/mod_jk/virtual hosting question/issue

2008-03-25 Thread David Smith
In that case, there should have been some text after 'org.apache.jasper.JasperException: Unable to compile class for JSP: ' citing the line number and problem with the jsp. Is it really just blank where compile error message should be? Can you try to restart tomcat and see if that clears the

Re: replacement for symbolic links to files (Apache httpd to Tomcat)

2008-03-24 Thread David Smith
Here's a possibility: Write the quick and dirty blog jsp, name it blog.html, and then add this to your web.xml file: servlet-mapping servlet-namejsp/servlet-name url-patternblog.html/url-pattern /servlet-mapping The idea is to specifically map blog.html to the jsp servlet for jsp

Re: replacement for symbolic links to files (Apache httpd to Tomcat)

2008-03-24 Thread David Smith
side-effects). Do you mean to use this in conjunction with a blog.jsp which would then include blog.html? Lloyd On Mar 24, 2008, at 5:13 AM, David Smith wrote: Here's a possibility: Write the quick and dirty blog jsp, name it blog.html, and then add this to your web.xml file: servlet

Re: replacement for symbolic links to files (Apache httpd to Tomcat)

2008-03-24 Thread David Smith
an not specify a servlet class, nor do I understand exactly what this example mapping does (and if it does it without other side-effects). Do you mean to use this in conjunction with a blog.jsp which would then include blog.html? Lloyd On Mar 24, 2008, at 5:13 AM, David Smith wrote: Here's

Re: Regarding installation of Tomcat service wrapper

2008-03-21 Thread David Smith
Hi. error.docx is a MS Word 2007 format file, unreadable by older Office products (thank you Microsoft!) and probably most third party readers without updates or extra software. Could you repost this as a plain old text file? --David radhika123 wrote: Hi I want to know the details how

Re: Tomcat stops after client abort

2008-03-19 Thread David Smith
I'm not sure anyone here can. Tomcat is good at recovering from a client abort -- they happen a lot for all sorts of reasons. Sounds like the ARS Mid-Tier (what ever that is) is at fault and doesn't deal with rejection very well. Have you contacted the company regarding this? ratul

Re: Apache up grade question

2008-03-18 Thread David Smith
The short answer is no, an upgrade to Apache Httpd will not necessitate an upgrade of tomcat. Even a bigger update of httpd from 1.3.x to say 2.2.x won't necessitate an upgrade of tomcat. They aren't that tightly bound together. You may have to recompile your mod_jk module if you use it

Re: Tomcat is confused between sites

2008-03-18 Thread David Smith
That still doesn't rule out an application bug. They may have gotten careless in how they handle request data or cache the server name somewhere not intending to support virtual hosting. --David sol42020 wrote: Most people would think that, but the problem disappears when I modify the

Re: Tomcat is confused between sites

2008-03-18 Thread David Smith
As a member of this list for several years, I can honestly tell you I have not seen one post from anyone who felt better off with the third party packages. You can check the archives yourself -- there are a number of posts from people whose problems disappeared when they uninstalled the third

Re: RES: about java.lang.outofmemory error

2008-03-17 Thread David Smith
If I understand the situation right, the sum total of all memory demands (both tomcat's and others) exceded the sum of all memory on the system, both real and virtual. Reducing the memory allocation to tomcat dropped the total demand to a level the system could provide. If that's the case,

Re: Tomcat on Leopard

2008-03-16 Thread David Smith
I can't speak for the OP, but as a long time Mac user, I know TextEdit's default output is richtext. It's a really annoying behavior of TextEdit. The OP should use either vi (if they're brave or have experience in it) or a developer IDE like NetBeans or Eclipse to write the initial file.

Re: DBCP: Threads sitting forever in getConnection()?

2008-03-16 Thread David Smith
Hi. 1. Please post this in a separate thread as it's a separate issue. 2. Is this happening immediately (in the first request) after start or does it take a few requests to make it wait for a connection? If it takes a few requests, your code is not closing connection as it should. They

Re: What is the best way to stop the tomcat daemon?

2008-03-16 Thread David Smith
You should have gotten a sample service shell script in you jsvc source. Mine has this in the stop portion: jsvc -stop -pidfile $PID_FILE org.apache.catalina.startup.Bootstrap $PID_FILE is a shell variable containing the path of a file with the process id of the running jsvc. I customized

Re: jsp calling a servlet (or at least that's the goal)

2008-03-12 Thread David Smith
Keep in mind it's the browser that calls the servlet, not really your jsp and the browser knows nothing of tomcat contexts. Your form ... tag should have an action of /test/servlet/UploadUnzipTest. In the jsp, you can compute this as form

Re: tomcat and mysql

2008-03-12 Thread David Smith
Drop the ?autoReconnect=true from your mysql url and then add validationQuery=select 1 testOnBorrow=true. I believe the testOnBorrow is true by default, but their's no harm in setting it explicitly. Resource name=jdbc/mysql_gaeaglobalvrmanager auth=Container

Re: Two separate instances of Tomcat running on a single Windows 2003 server.

2008-03-11 Thread David Smith
Be sure in addition to changing the port numbers in the Connector elements of server.xml, you also change the shutdown port numbers at the top of the server.xml. --David Panian, Ardo wrote: Out of the box Tomcat uses ports 8080, 8005, and 8009? is that correct? That said if I had my other

Re: Can't start tomcat 5.5.26 service on windows

2008-03-11 Thread David Smith
Charles Caldarale wrote: I would recommend installing Tomcat (and the JVM) in directory paths without spaces; Microsoft made a real blunder when putting spaces in frequently used directory names, and Apache isn't helping. I agree. MS could have done something as dirt simple as c:\Software

Re: Problem with configuring Apache and Tomcat with mod_jk

2008-03-09 Thread David Smith
The only reference to any worker.worker3.class= property is in association with some inprocess stuff that I believe got dropped from mod_jk a /long/ time ago. The current mod_jk does not have any such directive in workers.properties (see

<    1   2   3   4   5   6   7   8   9   10   >