Tomcat and pdf fast web view

2006-10-31 Thread FOLLUT Guillaume
Hello, I'm using Tomcat 5.0.28 to share some pdf files but the option fast web view doesn't work : my files need to be downloaded completly before I can view them. Is there a way to see the first page of the pdf while the rest of the document is still downloading? Maybe by a specific servlet?

Re: Servlet Mappings

2006-10-31 Thread ben short
Many thanks for your help Charles. On 10/31/06, Bill Barker [EMAIL PROTECTED] wrote: ben short [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I just tried changing the /images/* to *.jpg and it works Yes, Tomcat's default servlet won't work with a prefix map. It requires either a

2 context paths for one application?

2006-10-31 Thread Peter Neu
Hello, is there a way to configure two context paths for the same application? Like this: localhost/path1/servlet1 localhost/path2/public/servlet2 cheers, Pete - To start a new topic, e-mail: users@tomcat.apache.org To

Re: mod_jk configuration

2006-10-31 Thread bcochofel
Christopher Schultz-2 wrote: Bruno, Alias /jsp-examples /srv/www/tomcat5/base/webapps/jsp-examples JkMount /jsp-examples/*.jsp ajp13 JkMount /jsp-examples/j_security_check ajp13 These three ought to do the trick. Which files aren't being served by Apache httpd? Well

Re: mod_jk configuration

2006-10-31 Thread bcochofel
Now I have an even stranger behavior... I can only JkMount /jsp-examples, I did the same to /tomcat-docs, /servlets-examples and /cocoon and I get : Forbidden You don't have permission to access /tomcat-docs/ on this server. Additionally, a 403 Forbidden error was encountered while trying to

TR: servlet not found since i replace tomcat 4.1.30 by tomcat 4.1.34

2006-10-31 Thread Philippe Couas
Hi it seems allowLinking has changed ? Regards Philippe _ De : Philippe Couas [mailto:[EMAIL PROTECTED] Envoyé : lundi 30 octobre 2006 19:30 À : 'tomcat-user@jakarta.apache.org' Objet : servlet not found since i replace tomcat 4.1.30 by tomcat 4.1.34 Hi I

Location for libraries need for resources in Context.xml

2006-10-31 Thread David Goodenough
With Tomcat 5.5 you can now define things like JDBC DataSources in META-INF/context.xml in your war files. JDBC DataSources need drivers, and obviously they can still be stored in common/lib, but given that they are defined, or rather their use is requested, through the war file, can the

How to install admin package in Tomcat

2006-10-31 Thread Mário Gamito
Hi, I've installed Tomcat 5.5.20. Now, i want to install the admin package. I've done this once, but i confess that i don't recall anymore how i've done it. My question is, where should i put the files from the admin tarball ? The one i've downloaded is apache-tomcat-5.5.20-admin.tar.gz I have

JNDIRealm exception

2006-10-31 Thread [EMAIL PROTECTED]
Problem with JNDIRealm I successfully authenticate my users against active Directory (single domain). But now I have a setup with trusted domains and the authentication fails with the following exception. Everything is working fine if my user is in the domain ar-net.ch. Now I want to

Re: StandartSession.accessCount bug?

2006-10-31 Thread Mark Thomas
Michael Kantarovich wrote: Guys, Did you consider to use java.util.concurrent.atomic.AtomicLong ? No, since this is a Java 5 class and TC5 will run on a 1.4 JVM providing a couple of additional JARs are present. Mark - To

Re: 2 context paths for one application?

2006-10-31 Thread Mark Thomas
When starting a new thread (ie sending a message to the list about a new topic) please do not reply to an existing message and change the subject line. To many of the list archiving services and mail clients used by list subscribers this makes your new message appear as part of the old thread.

Re: How to install admin package in Tomcat

2006-10-31 Thread Mark Thomas
Mário Gamito wrote: Hi, I've installed Tomcat 5.5.20. Now, i want to install the admin package. I've done this once, but i confess that i don't recall anymore how i've done it. My question is, where should i put the files from the admin tarball ? The one i've downloaded is

Re: Location for libraries need for resources in Context.xml

2006-10-31 Thread David Smith
The simple answer is no, you cannot store driver jar files in your webapp's .war file unless you want to setup and manage your own database pool. Basically tomcat's internal classloader has to have access to the driver in addition to your webapp which is why it has to be in common/lib to

Re: StandartSession.accessCount bug?

2006-10-31 Thread Christopher Schultz
Mark, Contended locks are much slower, so it's important to know. It was contended. I have added the uncontended figures: 75ns and 225ns. What do the two different values mean? Also, did your +50ns figure mean that the /overhead/ was +50ns, or that waiting for the other thread to release the

Re: mod_jk configuration

2006-10-31 Thread Christopher Schultz
Bruno, Now I have an even stranger behavior... I can only JkMount /jsp-examples, I did the same to /tomcat-docs, /servlets-examples and /cocoon and I get : Forbidden You don't have permission to access /tomcat-docs/ on this server. Additionally, a 403 Forbidden error was encountered

RE: (FIXED) RE: tomcat can't serve HTML pages more than 48K in size

2006-10-31 Thread Caldarale, Charles R
From: Alistair McDonald [mailto:[EMAIL PROTECTED] Subject: (FIXED) RE: tomcat can't serve HTML pages more than 48K in size Thanks for that. Solved the problem nicely. By the way, I just tested with a 78k static HTML page on a near stock 5.5.20, and did not experience any problems in

Re: FW: question regarding 'mod_jk: error flushing'

2006-10-31 Thread Durk Strooisma
Hi all! I'm wondering the same. I've got four servers (two production machines and their testing counter parts) running SUSE Linux Enterprise Server 9 with Apache 2, Tomcat 5, and ModJK. Below the relevant packages are shown: apache2 2.0.49-27.59 apache2-prefork

Problems with Tomcat 5.0.27 and Simple JNDI Examples

2006-10-31 Thread Mike Jackson
Hi folks, I have been trying to get to grips with JNDI but cannot get data sources or bean factories - using the standard examples in the Tomcat user doc - but cannot get hardly anything to work. I have the following declared in TOMCAT/webapps/axis/WEB-INF/web.xml after the

war file

2006-10-31 Thread Mário Gamito
Hi, I've installed Tomcat and now i have this contineo.war file in the webapps directory that it is supposed to become a web site. Of course i'm a Tomcat newbie :( Asking for your apologies in advance for such a newbie question, what am i supposed to do with this file ? Any help would be

RE: Tomcat 6 and shared/lib, common/ and conf/catalina/localhost?

2006-10-31 Thread Per Johnsson
Thank you. There was no mention in the doc about the removed libs.. I'm always beeing little bit confused when things disapear whithout any mention it. /Regards Per Jonsson -Original Message- From: Caldarale, Charles R [mailto:[EMAIL PROTECTED] Sent: den 31 oktober 2006 14:52 To:

RE: Tomcat 6 and shared/lib, common/ and conf/catalina/localhost?

2006-10-31 Thread Caldarale, Charles R
From: Per Johnsson [mailto:[EMAIL PROTECTED] Subject: RE: Tomcat 6 and shared/lib, common/ and conf/catalina/localhost? There was no mention in the doc about the removed libs.. The diagram in the doc clearly shows the revised default class loader hierarchy: Bootstrap |

Re: war file

2006-10-31 Thread David Delbecq
I bet you put a .war file an expected to see the site working. It's not that easy :) The easiest way to deploy you .war in tomcat is to go to the manager webapp (http://your host:your port/manager/html) and use the 'deploy' part. For the manager to allow you to work on tomcat configuration, you

Re: How to install admin package in Tomcat

2006-10-31 Thread David Smith
Match up the directory structure in the .tar.gz file against tomcat's. The webapp itself goes in server/webapps with the manager webapp and the admin.xml file goes in conf/Catalina/localhost. This is the second time inside a week this question has come up and it is answered in the FAQ:

Re: war file

2006-10-31 Thread David Delbecq
For manager, it's the manager role that is needed, not the admin role. for 404, it says what it should, no such file :D When you access manager you will see where it is mapped. There is a link for all webapp deployed. I suggest you read the doc about the manager i gave you a link to. Mário

Re: war file

2006-10-31 Thread Mikolaj Rydzewski
Mário Gamito wrote: It asks me for a login and a password which i don't know :( I've defined a user with the admin role in tomcat-users.xml, but they're not the right credentials :( It should me manager role, not admin one. -- Mikolaj Rydzewski [EMAIL PROTECTED] smime.p7s Description:

Re: JNDIRealm exception

2006-10-31 Thread Martin Gainty
Hello can we please see the statements leading up to NameParser.parse() method call are you able to ldapsearch using DC and OU parameters without CN? M- This e-mail communication and any attachments may contain confidential and privileged information for the use of the designated recipients

Forcing a sync when a cluster member reconnects

2006-10-31 Thread Eric Demorsy
Hi, I have configured a cluster of 2 tomcat servers and session sync is working fine, except for one point: if I unplug the network cable of one of the machines and plug it back, Tomcat does detect the fact that a member left the cluster, and also detects its return just fine, but no sync

Re: mod_jk configuration

2006-10-31 Thread bcochofel
Christopher Schultz-2 wrote: Here's my /etc/apache2/conf.d/jk.conf: http://www.nabble.com/file/3921/jk.conf jk.conf (These are never coming through. How are you trying to attach files?) I'm using Upload File... option. Here's a copy/paste: # simple configuration for apache (for AJP

RE: Can't login as manager

2006-10-31 Thread Caldarale, Charles R
From: Mário Gamito [mailto:[EMAIL PROTECTED] Subject: Can't login as manager I can't login in the above URL with the credentials gamito/abc123 I've alrady restarted the server. Verify that your changes persisted after the Tomcat restart. Tomcat rewrites conf/tomcat-users.xml, and your

Tomcat Ajp13 Connector hang

2006-10-31 Thread Ni Chen
Hi Folks, We are having an issue that Ajp13 Connector being unresponsive. It happened about once a week. We are running one Apache 2.0, three Tomcat 4.1.27 and mod_jk 1.2.5 / Ajp13 on HP 11i boxes. We noticed that every time Ajp13 Connector received an exception (see below) when setting socket

Re: war file

2006-10-31 Thread Mário Gamito
Hi David, On 10/31/06, David Delbecq [EMAIL PROTECTED] wrote: I bet you put a .war file an expected to see the site working. It's not that easy :) The easiest way to deploy you .war in tomcat is to go to the manager webapp (http://your host:your port/manager/html) and use the 'deploy' part.

RE: Tomcat 6 and shared/lib, common/ and conf/catalina/localhost?

2006-10-31 Thread Caldarale, Charles R
From: Per Johnsson [mailto:[EMAIL PROTECTED] Subject: Tomcat 6 and shared/lib, common/ and conf/catalina/localhost? I downloaded Tomcat 6 (the alpha I presume) the zipped version and I I noticed there was no directory for shared/lib, common/ and no conf/Catalina. I Googled and read the doc

Re: some bug

2006-10-31 Thread Javier Aparicio
HI, I'm in a similar situation. I had several applications running perfectly in Tomcat 5.5.20 but when I try to configure the server with the APR and try to get the certificate list in request only can get the CA certificate (not the user certificate). My connector configuration is the

Re: war file

2006-10-31 Thread Mário Gamito
Hi, For manager, it's the manager role that is needed, not the admin role. My tomcat-users.xml file is: ?xml version='1.0' encoding='utf-8'? tomcat-users role rolename=tomcat/ role rolename=role1/ role rolename=manager/ role rolename=admin/ user

RE: StandartSession.accessCount bug?

2006-10-31 Thread Michael Kantarovich
So you could use concurrency utilities as an external jar (back port from Java5) which is available for 1.4. They claim being able updating longs without locking java-level locks ... http://dcl.mathcs.emory.edu/util/backport-util-concurrent/ -Original Message- From: Mark Thomas

Session is lost

2006-10-31 Thread Eugene Razorenov
Hello, please help me to find the reason of the problem? I have a strange situations with sessions. Server: Jboss(Tomcat 5.5.17) Servlet engine version: 2.4 Java version: 1.4.2-b28 When I submit the Form using method POST, I get new session instead of my current session. I see it from

RE: tomcat can't serve HTML pages more than 48K in size

2006-10-31 Thread Caldarale, Charles R
From: Alistair McDonald [mailto:[EMAIL PROTECTED] Subject: tomcat can't serve HTML pages more than 48K in size Tomcat happily serves up pages up to 48K in size, but above that size it returns an error to the browser: There's an interesting 48k setting in conf/web.xml for the

Re: mod_jk configuration

2006-10-31 Thread Christopher Schultz
Bruno, bcochofel wrote: Christopher Schultz-2 wrote: Here's my /etc/apache2/conf.d/jk.conf: http://www.nabble.com/file/3921/jk.conf jk.conf (These are never coming through. How are you trying to attach files?) I'm using Upload File... option. Hmm... I didn't know that one could upload

Servlet RMI problem File Permission

2006-10-31 Thread anil
Hi - I've been trying to solve a problem for quite some time now and I can't seem to find the solution. Basically I have a servlet running under tomcat (5.5.17) which is acting as an RMI client, looking up to a EJB running under jboss (3.2.5). I can successfully connect to the EJB via a

AW: Re: JNDIRealm exception

2006-10-31 Thread [EMAIL PROTECTED]
This is the code (JNDIRealm) // Get the entry's distinguished name NameParser parser = context.getNameParser(); Name contextName = parser.parse(context. getNameInNamespace()); Name baseName = parser.parse(userBase); // Bugzilla 32269 Name entryName =

Re: mod_jk configuration

2006-10-31 Thread bcochofel
Christopher Schultz-2 wrote: Hmm... I didn't know that one could upload file to an email... consider using copy/paste in the future. It seems to have worked, here. I'm using www.nabble.com... Christopher Schultz-2 wrote: ### jps-examples ##

Re: Problems with Tomcat 5.0.27 and Simple JNDI Examples

2006-10-31 Thread David Smith
A couple of thoughts: 1. There should only be one mysql driver .jar file and it should be in common/lib. Please remove the one in your WEB-INF/lib directory 2. The driver org.gjt.mm.mysql.Driver is depricated (has been for a VERY long time). Update it to com.mysql.jdbc.Driver. 3. You might

Re: war file

2006-10-31 Thread Mário Gamito
Hi, On 10/31/06, Mikolaj Rydzewski [EMAIL PROTECTED] wrote: Mário Gamito wrote: It asks me for a login and a password which i don't know :( I've defined a user with the admin role in tomcat-users.xml, but they're not the right credentials :( It should me manager role, not admin one. Yes, i

Can't login as manager

2006-10-31 Thread Mário Gamito
Hi, I'm trying to login as manager in Tomcat, but i can't. The URL is: http://lx0scr1:8080/manager/html/ My tomcat-users.xml file is: ?xml version='1.0' encoding='utf-8'? tomcat-users role rolename=tomcat/ role rolename=role1/ role

RE: war file

2006-10-31 Thread Caldarale, Charles R
From: Mário Gamito [mailto:[EMAIL PROTECTED] Subject: Re: war file The one thing i've done was placing the .war file in the webapps directory, then restart the server. That should be sufficient, if autoDeploy is enabled (it is by default). This way, it created a new directory with all

tomcat can't serve HTML pages more than 48K in size

2006-10-31 Thread Alistair McDonald
Hi all. I have a tomcat 5.5.9 installation set up. I only use it to serve HTML pages - no JSP. The HTML is doxygen generated, and validates as HTML 4.01 according to the w3 validator. Tomcat happily serves up pages up to 48K in size, but above that size it returns an error to the browser:

Re: mod_jk configuration

2006-10-31 Thread Christopher Schultz
Bruno, Hmm... I didn't know that one could upload file to an email... consider using copy/paste in the future. It seems to have worked, here. I'm using www.nabble.com... Ah. I think the list will clip-out attachments. I'm not sure of the rules, but copy/paste pretty much always works.

(FIXED) RE: tomcat can't serve HTML pages more than 48K in size

2006-10-31 Thread Alistair McDonald
Chuck, Thanks for that. Solved the problem nicely. Cheers, Alistair From: Alistair McDonald [mailto:[EMAIL PROTECTED] Subject: tomcat can't serve HTML pages more than 48K in size Tomcat happily serves up pages up to 48K in size, but above that size it returns an error to the browser:

Re: Problems with Tomcat 5.0.27 and Simple JNDI Examples

2006-10-31 Thread Mike Jackson
Hi David, On Tue, 31 Oct 2006, David Smith wrote: A couple of thoughts: 1. There should only be one mysql driver .jar file and it should be in common/lib. Please remove the one in your WEB-INF/lib directory 2. The driver org.gjt.mm.mysql.Driver is depricated (has been for a VERY long

RE: tomcat can't serve HTML pages more than 48K in size

2006-10-31 Thread CANADAFAST INC.
Hello! I am experiencing some strange html problems in tomcat. I am using the Apache Tomcat 5.5.20 Server The problem is strange to describe. I am trying to enable some vidoe clips files to be downloaded by users, but unfortunatley instead of downloading it opens up the garbage text

Re: tomcat can't serve HTML pages more than 48K in size

2006-10-31 Thread Christopher Schultz
Canadafest, Hello! I am trying to enable some video clips files to be downloaded by users, but unfortunately instead of downloading it opens up the garbage text on the webpage, just like if u try to open a media file in notepad or wordpad. #1: Don't hijack threads. Please post a new

Re: (FIXED) RE: tomcat can't serve HTML pages more than 48K in size

2006-10-31 Thread mast
I have exactly the same problem with a 5.5.17 server and changing the sendfileSize doesn t seem to fix anything it return this error with file above a certain size : java.lang.NoSuchMethodError: org.apache.naming.resources.ResourceAttributes.getCanonicalPath()Ljava/lang/String;

Re: StandartSession.accessCount bug?

2006-10-31 Thread Eric Haszlakiewicz
On Tue, Oct 31, 2006 at 08:38:37AM -0500, Christopher Schultz wrote: Also, did your +50ns figure mean that the /overhead/ was +50ns, or that waiting for the other thread to release the lock (which would include execution of the method itself) took 50ms longer. Since those threads cannot really

Re: [Solved] cheersVery basic web server hosting question

2006-10-31 Thread CANADAFAST INC.
My problem was solved. Thank u everyone who tried to help me. Seems like port 80 was being blocked by my ISP, I was running tomcat on my sony vaio laptop, seems like it has some software which is blocking the ports for anonymous requests. I tried in my PC and its working fine now.

OutOfMemory Exceptions and HTTP Processor Threads

2006-10-31 Thread Ryan Gies
What I observe is: a) A certain amount of free memory is required to instantiate a web application b) Concurrent requests are handled by separate HTTP Processor threads c) The maxSpareThreads attribute of the HTTP Connector is not honored until GC And when I: 1) Deploy three helloworld Turbine

tomcat ssl not work

2006-10-31 Thread Eric Yin
Hi, I just installed Fedora 5 and Tomcat 5.5 which is included in the Fedora 5 DVD. Tomcat works well for the port 8080. you can visit http://joconda.ciise.concordia.ca:8080 to see. But for SSL (8443) it doesn't work. I configure accoding to

experiencing problems with html/media files in tomcat

2006-10-31 Thread CANADAFAST INC.
Hello! I am experiencing some strange html problem in tomcat. I am using the Apache Tomcat 5.5.20 Server The problem is strange to describe. I am trying to enable some vidoe clips files to be downloaded by users, but unfortunatley instead of downloading it opens up the garbage text

Re: getContextPath

2006-10-31 Thread mast
Well i have try with a valid configuration and i still get the same problem with a 5.5.9 server ContextPath: /test ServletPath: /test.jsp PathInfo: null RequestURI: /test/test.jsp QueryString: null with a 5.517 server ContextPath: ServletPath: /test/test.jsp PathInfo: null RequestURI:

RE: getContextPath

2006-10-31 Thread Caldarale, Charles R
From: mast [mailto:[EMAIL PROTECTED] Subject: Re: getContextPath with a 5.5.9 server ContextPath: /test ServletPath: /test.jsp with a 5.517 server ContextPath: ServletPath: /test/test.jsp What APIs are you using to determine ContextPath and ServletPath? - Chuck THIS COMMUNICATION

Re: getContextPath

2006-10-31 Thread mast
i use a simple jsp file with : ContextPath: %= request.getContextPath() %br ServletPath: %= request.getServletPath() %br - Original Message - From: Caldarale, Charles R [EMAIL PROTECTED] To: Tomcat Users List users@tomcat.apache.org Sent: Tuesday, October 31, 2006 8:11 PM Subject:

RE: tomcat ssl not work

2006-10-31 Thread Caldarale, Charles R
From: Eric Yin [mailto:[EMAIL PROTECTED] Subject: tomcat ssl not work Since I can not find keytool from Fedora 5 jdk1.4.2 and I download J2SE(TM) Development Kit 5.0 Update 9: jdk-1_5_0_09-linux-i586.bin and install it and use the keytool from this kit. It's risky to use a JDK tool from

RE: (FIXED) RE: tomcat can't serve HTML pages more than 48K in size

2006-10-31 Thread Caldarale, Charles R
From: mast [mailto:[EMAIL PROTECTED] Subject: Re: (FIXED) RE: tomcat can't serve HTML pages more than 48K in size I have exactly the same problem with a 5.5.17 server and changing the sendfileSize doesn t seem to fix anything What happens if you set it to -1? it return this error

JK 1.2.19 IIS (Win Server 2003 R2) letter case problem in uriworkermap.properties

2006-10-31 Thread James Garrison
With JK 1.2.19 installed on Windows Server 2003 R2, and given the following in uriworkermap.properties: /Autoweb=perseus9010 /Autoweb/*=perseus9010 /autoweb=perseus9010 /autoweb/*=perseus9010 Requests are handled as follows: /Autoweb -- tomcat -- redirect to /Autoweb/ /Autoweb/ -- tomcat --

RE: OutOfMemory Exceptions and HTTP Processor Threads

2006-10-31 Thread Caldarale, Charles R
From: Ryan Gies [mailto:[EMAIL PROTECTED] Subject: OutOfMemory Exceptions and HTTP Processor Threads I will get OutOfMemory Exceptions because there is no free memory to instantiate the 3rd webapp, as the idle HTTP Connectors have consumed all available memory. May or may not have

RE: (FIXED) RE: tomcat can't serve HTML pages more than 48K in size

2006-10-31 Thread Caldarale, Charles R
From: mast [mailto:[EMAIL PROTECTED] Subject: Re: (FIXED) RE: tomcat can't serve HTML pages more than 48K in size i have put this in the web.xml of the server init-param param-namesendfileSize/param-name param-value-1/param-value /init-param Where

Re: (FIXED) RE: tomcat can't serve HTML pages more than 48K in size

2006-10-31 Thread mast
From: Caldarale, Charles R [EMAIL PROTECTED] Subject: Re: (FIXED) RE: tomcat can't serve HTML pages more Where exactly did you put the above? It should go in the servlet section for the DefaultServlet of conf/web.xml (approximately between lines 71 and 82 in an unmodified one). i see i had

Re: Tomcat Ajp13 Connector hang

2006-10-31 Thread Rainer Jung
Hi Mao (or Ni or Chen?), your environment seems *very* outdated. Please update to Tomcat 4.1.34 und mod_jk 1.2.19. If the problem still shows up, please post relevant parts of your configs (Apache and tomcat side) and check via netstat, if tomcat still listens on the Ajp13 port. Regards, Rainer

Re: Tomcat Ajp13 Connector hang

2006-10-31 Thread Ni Chen
Hi Rainer, Thanks a lot for looking into this. I understand this is old configuration. But it is in production, and I don't see any change log/fix related to this issue in either later version of mod_jk or Tomcat 4. The other thing is we do launch netstat after it hang, and we saw AJP

RE: getContextPath

2006-10-31 Thread Caldarale, Charles R
From: mast [mailto:[EMAIL PROTECTED] Subject: Re: getContextPath i use a simple jsp file with : ContextPath: %= request.getContextPath() %br ServletPath: %= request.getServletPath() %br with a 5.5.9 server ContextPath: /test ServletPath: /test.jsp with a 5.517 server ContextPath:

Re: JK 1.2.19 IIS (Win Server 2003 R2) letter case problem in uriworkermap.properties

2006-10-31 Thread Rainer Jung
It was not knwon (at least not to me) before your mail, but you are right. We changed URL case sensitivity for mod_jk 1.2.19, because URLs should be case sensitive, but we missed one place. Could you please open a bug in bugzilla,

RE: getSystemResource not working in servlet

2006-10-31 Thread Caldarale, Charles R
From: Allen,Eva [mailto:[EMAIL PROTECTED] Subject: getSystemResource not working in servlet URL rulesURL = ClassLoader.getSystemResource(x.xml); This only retrieves resources accessible to the System class loader, which typically only looks at the $TOMCAT_HOME/bin directory. but I'd much

JNDI Could not find datasource

2006-10-31 Thread Dave Kennedy
ENV: Tomcat 5.5.17, Eclipse 3.2, Hibernate 3.2 The application runs in Eclipse, but not standalone in Tomcat What does Tomcat need to find the datasource? Error: 13:09:03,936 INFO NamingHelper:26 - JNDI InitialContext properties:{} 13:09:03,936 FATAL DatasourceConnectionProvider:55 - Could not

JNDI Realm and Active Directory root search

2006-10-31 Thread Matt Warren
I'm trying to get a JNDI Realm working as one might expect with Active Directory. Tomcat 5.5.20 Java 1.5.06 Windows 2000 Server The basic issue is that searching from a domain root dc=company,dc=com and using userSubtree=true results in: Oct 31, 2006 3:18:20 PM

Re: Tomcat Ajp13 Connector hang

2006-10-31 Thread Rainer Jung
Hi Mao, Try to send a QUIT signal to the jvm. It will produce a java thread stack dump on STDOUT. The normal tomcat sart scripts redirect stdout to catalina.out, so the result goes there. After kill -QUIT PID (replace PID by the pid of the process) you can inspect the dump in catalina.out to

Re: Tomcat Ajp13 Connector hang

2006-10-31 Thread Mao Ni
Hi Rainer, Thanks a lot for looking into this. I understand this is old configuration. But it is in production, and I don't see any change log/fix related to this issue in either later version of mod_jk or Tomcat 4. The other thing is we do launch netstat after it hang, and we saw AJP Connector

Re: JK 1.2.19 IIS (Win Server 2003 R2) letter case problem in uriworkermap.properties

2006-10-31 Thread James Garrison
A bug has been filed, as requested. The workaround fixed the problem for me. Thanks for the quick response! -- James GarrisonAthens Group, Inc. mailto:[EMAIL PROTECTED]5608 Parkcrest Dr http://www.athensgroup.comAustin, TX

Re: getContextPath

2006-10-31 Thread mast
in the 5.5.17 version my app is under the ROOT directory yes (that s the correct way like we told before no ?) to give another example with exactly the same deployement (both under ROOT) with a 5.5.17 and a 5.5.20 5.5.17 : ContextPath: /test ServletPath: /test.jsp PathInfo: null RequestURI:

RE: getContextPath

2006-10-31 Thread Caldarale, Charles R
From: mast [mailto:[EMAIL PROTECTED] Subject: Re: getContextPath in the 5.5.17 version my app is under the ROOT directory yes (that s the correct way like we told before no ?) Depends on what you mean by under. If your app IS the ROOT directory, then getContextPath() should return an

Re: getContextPath

2006-10-31 Thread mast
From: Caldarale, Charles R [EMAIL PROTECTED] To: Tomcat Users List users@tomcat.apache.org Sent: Tuesday, October 31, 2006 10:37 PM Subject: RE: getContextPath Do you have a test.xml lurking around in conf/[engine]/[host] in one of them? Would that test.xml have a Context element with a docBase

Re: JK 1.2.19 IIS (Win Server 2003 R2) letter case problem in uriworkermap.properties

2006-10-31 Thread Rainer Jung
Hi James, I committed a patch for the problem. If you are able to compile the plugin, you can check out the file from subversion, or apply the following patch to version 1.2.19. Check for split mail lines in the patch. Regards, Rainer Index: native/common/jk_map.c

Re: getContextPath

2006-10-31 Thread mast
Hmm well it seem i have made a mistake the server.xml is correct and my configuration under ROOT too but it seem that if i put some file before the ROOT directory tomcat take that as the defaut context? i explain : i have put like i said : appBase=/usr/local/tomcat5/webapps/users1 there i have

RE: getContextPath

2006-10-31 Thread Caldarale, Charles R
From: mast [mailto:[EMAIL PROTECTED] Subject: Re: getContextPath but i had a WEB-INF and META-INF in the same directory as the ROOT too and they seem to have been taken instead of the one in the ROOT one (is it normal?) Not sure what you mean by normal, but since the setup was in error,

log file servlet

2006-10-31 Thread Tony Smith
I am thinking about writing a log file servlet where I can check the log file of the tomcat session from my web browser. Thus I do not need to use console and vi to check it. Is there already something to do this and I am just reinvent the wheel or this is totally a bad idea? If I do this, how

Re: getContextPath

2006-10-31 Thread mast
little correction it seem that if i put a directory in the same way as the ROOT directory tomcat use it instead of the other exemple : /usr/local/tomcat5/webapps/users1/ROOT/test/test.jsp /usr/local/tomcat5/webapps/users1/test/test.jsp tomcat use the second one (and their appear the

RE: getContextPath

2006-10-31 Thread Caldarale, Charles R
From: mast [mailto:[EMAIL PROTECTED] Subject: Re: getContextPath /usr/local/tomcat5/webapps/users1/ROOT/test/test.jsp /usr/local/tomcat5/webapps/users1/test/test.jsp tomcat use the second one (and their appear the ContextPath: /test ) is this the normal way of tomcat working? if so

RE: log file servlet

2006-10-31 Thread Caldarale, Charles R
From: Tony Smith [mailto:[EMAIL PROTECTED] Subject: log file servlet Is there already something to do this and I am just reinvent the wheel or this is totally a bad idea? Try Lambda Probe (www.lambdaprobe.org). - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE

Datasource following appBase changes

2006-10-31 Thread Scott Cowley
Hi. How come when I put contexts one directory below my appBase I can still get .html and .jsp's served, but the DataSource can't be found? e.g. webapps/tests/test.jsp. - Thank you for any help! from javax.servlet.ServletException: Name jdbc is not bound in this context There is a context.xml

RE: Datasource following appBase changes

2006-10-31 Thread Scott Cowley
Quick correction on that previous post: e.g. webapps/Production/tests.test.jsp. -Original Message- From: Scott Cowley [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 31, 2006 3:40 PM To: users@tomcat.apache.org Subject: Datasource following appBase changes Hi. How come when I put

war problem

2006-10-31 Thread mast
Hi, i have read some documentation about automatically unpacking war file but i still have a problem with it, so i put in the host tag : unpackWARs=true and then i put my war under the ROOT directory. and there it s not deployed but if i put it in the same directory of the ROOT it s deployed (but

Re: war problem

2006-10-31 Thread Christopher Schultz
Mast, i put my war under the ROOT directory. Er! Wrong answer. The ROOT directory is the directory which contains the (expanded) ROOT webapp, not a directory where WAR files should be dropped in order to deply them as the root webapp. If you put a WAR file in there, Tomcat will ignore it. It

Re: getContextPath

2006-10-31 Thread David Smith
At each stage of request resolution, the longest match wins. At the point where the request is routed to a particular webapp, it matches the webapp whose context matches more of the request path than any other. IE in your case, if there is a root webapp with context and a webapp with

Re: (FIXED) war problem

2006-10-31 Thread mast
i understand thanks for the tips problem solved - Original Message - From: Christopher Schultz [EMAIL PROTECTED] To: Tomcat Users List users@tomcat.apache.org Sent: Tuesday, October 31, 2006 11:56 PM Subject: Re: war problem

RE: Datasource following appBase changes

2006-10-31 Thread Scott Cowley
Appreciate the prompt reply, Chuck! That answers a lot of questions. I was hoping I could put two subdirectories, Development and Production, below the appBase and have Tomcat serve out of them. I also hoped to have a path for each app within each of them! This makes it harder to set up a

Problem redirecting appbase on a network drive

2006-10-31 Thread Didier CROUTZ
Hello, I'm using an Apache Tomcat version 5.5.2 on a Windows XP Pro SP2. I'm trying to redirect applications directory on a network drive mounted with Windows net use command. To do this I've made the following modifications into the server.xml file: Host name=localhost debug=0

log question and lambda probe

2006-10-31 Thread mast
Hi again, i have download the lambda probe to see how it was and i have notice some things with log, in their context.xml file there is : Logger className=org.apache.catalina.logger.FileLogger prefix=probe. suffix=.out timestamp=true/ well that

Re: Problem redirecting appbase on a network drive

2006-10-31 Thread Martin Gainty
each machine needs to install its own copy of tomcat and have its own copy of server.xml configured for that machine and not to other tomcat machines consequent browser resolutions need to point to the specific tomcat installed machine e.g. http://machine1:Port/manager

RE: Datasource following appBase changes

2006-10-31 Thread Caldarale, Charles R
From: Scott Cowley [mailto:[EMAIL PROTECTED] Subject: RE: Datasource following appBase changes I was hoping I could put two subdirectories, Development and Production, below the appBase and have Tomcat serve out of them. Most people run separate instances of Tomcat for this purpose,

RE: Problem redirecting appbase on a network drive

2006-10-31 Thread Caldarale, Charles R
From: Martin Gainty [mailto:[EMAIL PROTECTED] Subject: Re: Problem redirecting appbase on a network drive each machine needs to install its own copy of tomcat and have its own copy of server.xml configured for that machine and not to other tomcat machines What the hell are you talking

RE: Problem redirecting appbase on a network drive

2006-10-31 Thread Caldarale, Charles R
From: Didier CROUTZ [mailto:[EMAIL PROTECTED] Subject: Problem redirecting appbase on a network drive I'm using an Apache Tomcat version 5.5.2 on a Windows XP Pro SP2. If it's really 5.5.2 and not 5.5.20, you should move up; lots of bug fixes since then. Host name=localhost debug=0

haaving trouble html in tomcat 5.5.20

2006-10-31 Thread Zeina Aoun
I am having trouble with html in tomcat. I am using the Apache Tomcat 5.5.20 Server The problem is hard to describe. I am trying to enable some video clip files to be downloaded by users, but unfortunatley instead of downloading it opens up the garbage text on the webpage, just like if u try

  1   2   >