Re: server.xml configuration..

2007-03-05 Thread Li
You can move your jsp files which you would like to secure to WEB-INF/, and use dispatched way to access ... then you can define few error files like 404, 503 or your own error.jspwhich can be handled by your java class wish this helps On 3/6/07, prt <[EMAIL PROTECTED]> wrote: Hi to all, Wher

server.xml configuration..

2007-03-05 Thread prt
Hi to all, Where i have to config and what, to prevent direct access to my jsp files ? For example, I have project name test. If i whant to show product data the link is, http://localhost/test?do=showProductData. This link run the index.jsp that is in text, and in index.jsp there is include to ac

Fwd: Specify location of server.xml as a start up argument

2007-03-05 Thread Anto Paul
Hi dev team, Any comments on this ?. It will be nice to run a different application by flipping server.xml. -- Forwarded message -- From: Anto Paul <[EMAIL PROTECTED]> Date: Feb 13, 2007 1:04 PM Subject: Specify location of server.xml as a start up argument To: users@tomcat.ap

Re: jdk upgrade

2007-03-05 Thread Hernâni Cerqueira
Thanks for your help, 5*... Caldarale, Charles R escreveu: From: Hernâni Cerqueira [mailto:[EMAIL PROTECTED] Subject: Re: jdk upgrade I guess i can find some info online about how to do it, Actually, you probably won't. but should i just remove it or upgrade it? Just remove

RE: jdk upgrade

2007-03-05 Thread Caldarale, Charles R
> From: Hernâni Cerqueira [mailto:[EMAIL PROTECTED] > Subject: Re: jdk upgrade > > I guess i can find some info online about how to do it, Actually, you probably won't. > but should i just remove it or upgrade it? Just remove it - there is no upgrade. It's for use only with JRE 1.4, and cons

Re: jdk upgrade

2007-03-05 Thread Hernâni Cerqueira
Caldarale, Charles R escreveu: First of all, thanks for your reply Make sure you remove Tomcat's 1.4 compatibility package before attempting to run it on Jave SE 5 or 6. I guess i can find some info online about how to do it, but should i just remove it or upgrade it? I atached the script

RE: jdk upgrade

2007-03-05 Thread Caldarale, Charles R
> From: Hernâni Cerqueira [mailto:[EMAIL PROTECTED] > Subject: jdk upgrade > > I already have some apps running on tomcat 5.5 running on java 1.4.2, > but i just finished a tapestry application that heavily deppends on > annotations so i really need to upgrade to at least java 1.5. Make sure

trimDirectiveWhitespaces not working

2007-03-05 Thread Peik Feng
Hi, I have installed Tomcat 6.0.10 with JRE 1.6.0. I tried to set trimDirectiveWhitespaces in page directive but it doesn't take effect. <%@ page trimDirectiveWhitespaces="true" %> I also tried to set in jsp-property-group in web.xml also no effect. true Any help is appreciated.

Re: Detecting terminal HTTP chunk

2007-03-05 Thread Peter Kennard
typo, if anyone read it, I meant IPV6 :) PK - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

jdk upgrade

2007-03-05 Thread Hernâni Cerqueira
Hello all, sorry if this question seems trivial to you, but i'm just a web develloper that started working on hes own , and now i have to deal with some heavy server management, wath can be really tricky (for me at least)... I already have some apps running on tomcat 5.5 running on java 1.4.2,

Re: install DBCP and mm.mysql 2.0.14 (JDBC Driver) and a test app, getting class compile error

2007-03-05 Thread Andre Prasetya
mmm i think its a syntax error at test.jsp see line 7 foo.DBTest On 3/5/07, Wayne Bragg <[EMAIL PROTECTED]> wrote: I am trying to install DBCP and mm.mysql 2.0.14 (JDBC Driver) and a test app to see if it works. I'm not sure I have all the correct steps and configuration, in other words I don't

Re: [OT] How to get hold of security information from web.xml

2007-03-05 Thread Mark Thomas
Peter Coppens wrote: > Works fine, but what worries me is that I have to make this a priviliged web > app now and I am unclear as to what the consequences of that are. The Tomcat > doc is fairly brief on the meaning of the privileged attribute of the > context element so that did not reallly help.

Re: tomcat5 auto context detection

2007-03-05 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. Thi

Re: AJP flush packets (tomcat 6.0.10 and mod_jk 1.2.21)

2007-03-05 Thread Sven Köhler
>> Any ideas? > > Any ideas why tomcat 6.0.10 doesn't send flush packets? I should see > them in mod_jk's log, right? (JkLogLevel is debug) The explanation is: Is the JNI APR stuff is installed, Tomcat will use org.apache.coyote.ajp.AjpAprProtocol. Not the JNI APR stuff is NOT installed, Tomcat

Re: AJP flush packets (tomcat 6.0.10 and mod_jk 1.2.21)

2007-03-05 Thread Sven Köhler
> in mod_jk's logfile, i don't see any flush-packets (= write packet of > length 0) and so apache doesn't do flushing either. > > Of course the old "JkOption +FlushPackets" works. > But the new flush-packets would be much nicer. > > I think, that i might have to enable the flush-packets thing wit

Re: APR, sendfile and logging of response size

2007-03-05 Thread Markus Schönhaber
Rémy Maucherat wrote: > On 3/5/07, Markus Schönhaber <[EMAIL PROTECTED]> wrote: > > Is there a way to use APR and sendfile and still get the Base Connector's > > behaviour wrt the response size? If so, which? > > No, it is not possible without hacks that I don't want to add. The > reponse will be a

Re: APR, sendfile and logging of response size

2007-03-05 Thread Rémy Maucherat
On 3/5/07, Markus Schönhaber <[EMAIL PROTECTED]> wrote: Is there a way to use APR and sendfile and still get the Base Connector's behaviour wrt the response size? If so, which? No, it is not possible without hacks that I don't want to add. The reponse will be asynchronously (or not, it depends

Re: Newbie help...Mac OS/X+Tomcat+Apache

2007-03-05 Thread Jeff Weinberger
Ron and Ranier: Thank you again!! it seems you got me pointed in the right direction. The simple obvious thing I was overlooking turned up in the Tomcat 4.0 documentation. I was asking Tomcat to open an SSL connection, but not providing server keys. I took out the sections of my server.x

APR, sendfile and logging of response size

2007-03-05 Thread Markus Schönhaber
Hello! When using Tomcat 6.0.10, Tomcat Native library 1.1.8 and requesting a big static file from the server, the file's size is neither written to the access log (it contains a '-' in the response size field) nor added to value the Server Status page shows as "Bytes sent". If I add useSendfil

Re: Using getImplementationVersion() to read MANIFEST.MF

2007-03-05 Thread Paul A. Hoadley
On 06/03/2007, at 12:53 AM, Caldarale, Charles R wrote: I guess the question is this: is there another way for a non-servlet class instantiated within a servlet container to obtain a ServletContext object? How is your bean created? I just instantiate it in some JSP code (in particular, in a

Re: install DBCP and mm.mysql 2.0.14 (JDBC Driver) and test app, get class compile error.

2007-03-05 Thread Wayne Bragg
Thank you once again David, Yes I did upgrade the mysql driver, made the appropriate changes, and now it's all working fine! Is there any reason to have .classpath and .project in the \DBTest\ directory? Are they for deploying or a leftover from another platform? Next step is to tie in PHP

Re: Newbie help...Mac OS/X+Tomcat+Apache

2007-03-05 Thread Rainer Jung
Get yourself a default config (server.xml) from a download. Try to get that running first (which should be easy). Then try to port the changes from your actual config to the default config, not changing to much in one step and trying to understand from the docs, what the changes mean. Apply

RE: tomcat5 auto content detection

2007-03-05 Thread Caldarale, Charles R
> From: mike spisak [mailto:[EMAIL PROTECTED] > Subject: tomcat5 auto content detection > > I'd like to make it so that I don't have to edit my > server.xml every time I add a new app within some > domain/sub domain... If by "sub domain" you mean some part of a webapp path - there is no such th

Re: [OT] How to get hold of security information from web.xml

2007-03-05 Thread Peter Coppens
After peeking into the tomcat manager webapp I have found a way of getting there 1. Define the webapp context with privileged is true 2. Have the servlet extend ContainerServlet and get hold of the unwrapped Context when setWrapper is called. Works fine, but what worries me is that I have to ma

RE: SSL on Tomcat 5 problem.

2007-03-05 Thread Caldarale, Charles R
> From: Hoa Doan [mailto:[EMAIL PROTECTED] > Subject: SSL on Tomcat 5 problem. > > I have gone through the steps provided on Tomcat SSL document > and generated a .keystore file. Unfortunately, you didn't look at the fine print. > Mar 2, 2007 4:24:07 PM org.apache.coyote.http11.Http11AprProtoc

tomcat5 auto content detection

2007-03-05 Thread mike spisak
Sorry if re-post - I think this got buried in a reply to a different post either way: Hi All, I'm trying to get tomcat to auto-recognize that I have new java applications (e.g. a new WEB-INF) in a sub-directory for my virtual hosts.. I'd like to make it so that I don't have to edit my

RE: [OT] Tomcat Compiler probs

2007-03-05 Thread Caldarale, Charles R
> From: Natasha N Wright [mailto:[EMAIL PROTECTED] > Subject: Re: [OT] Tomcat Compiler probs > > the tomcat4 part of the command as far as i'm aware just > makes sure that the correct JDK version shipped with > TOmcat 4 is used. No JDK ships with Tomcat - you have to install one yourself. Regar

Re: Newbie help...Mac OS/X+Tomcat+Apache

2007-03-05 Thread Jeff Weinberger
Ron and Ranier: Thank you so much for getting me pointed in the right direction. It seems like there is a real problem behind this, but I don't know tomcat well enough to determine what it is. It appears to be looking for /var/root/.keystore - and fails to find it. The file, of course doe

Re: install DBCP and mm.mysql 2.0.14 (JDBC Driver) and test app, get class compile error.

2007-03-05 Thread David Smith
The tag in your context config changes and the tag is removed as in In a side note, if you update your mysql driver, the new class name is com.mysql.jdbc.Driver and you should remove ?autoReconnect=true from the database url. --David Wayne Bragg wrote: > What version of tomcat are you

Re: install DBCP and mm.mysql 2.0.14 (JDBC Driver) and test app, get class compile error.

2007-03-05 Thread Wayne Bragg
What version of tomcat are you using? What follows is based on using version 5.0.x. The syntax for configuring JDBC resources in 5.5 is a little different. Of course I am using 5.5. Thats' what I get for not providing that to start with. So what you gave me below needs to be modified HOW? Be

Re: install DBCP and mm.mysql 2.0.14 (JDBC Driver) and test app, get class compile error.

2007-03-05 Thread Wayne Bragg
What version of tomcat are you using? What follows is based on using version 5.0.x. The syntax for configuring JDBC resources in 5.5 is a little different. Of course I am using 5.5. Thats' what I get for not providing that to start with. So what you gave me below needs to be modified HOW? B

Re: install DBCP and mm.mysql 2.0.14 (JDBC Driver) and test app, get class compile error.

2007-03-05 Thread David Smith
Answers inline below. --David Wayne Bragg wrote: > Thank you David, > > I was suspicious about the .java needing to be compiled and the > commons-dbcp.jar and commons-pool.jar being unnecessary. What about > commons-collections-3.2.jar is that necessary or does commons-el.jar > have what is neede

Re: Tomcat Service Manager for windows

2007-03-05 Thread Mark Liu
Thanks. How do we use this stuff. I have a hard time figuring out. The documentation he has on the web has a completely different GUI interface from actual application. Maybe that's for an older version. I have tomcat 6.0 installed at C:\Tomcat_6. I would like to have 2 instances of tomcat on

Re: Problems connecting

2007-03-05 Thread Hoa Doan
If your router have port forwarding try that. Wayne Bragg <[EMAIL PROTECTED]> wrote: For what it's worth. I wouldn't be so quick, did he ever say what error page he was getting from outside? This happened to me and it was because I wasn't handing off the NEW app code to Tomcat from httpd jk con

SSL on Tomcat 5 problem.

2007-03-05 Thread Hoa Doan
I have gone through the steps provided on Tomcat SSL document and generated a .keystore file. I put it in my C:\keystore directory. Here are my server.xml config: And this is my Catalina log file. Mar 2, 2007 4:24:07 PM org.apache.coyote.http11.Http11AprProtocol init INFO: In

Re: Removing work directory

2007-03-05 Thread Jim Goodspeed
We are currently compiling the source right on the server, but we are in the process of switching to war files. I'm hoping that switching our build process will resolve this issue. On 3/5/07, David Delbecq <[EMAIL PROTECTED]> wrote: A little strange indeed. How do you deploy? I think tomcat co

Re: Problems connecting

2007-03-05 Thread Wayne Bragg
For what it's worth. I wouldn't be so quick, did he ever say what error page he was getting from outside? This happened to me and it was because I wasn't handing off the NEW app code to Tomcat from httpd jk connector ie: JkMount /what-ever-your-app/*.jsp ajp13worker1. Depends on how he set up To

Re: Newbie help...Mac OS/X+Tomcat+Apache

2007-03-05 Thread Rainer Jung
hi Jeff, any tomcat log messges during startup? Regards, Rainer Jeff Weinberger wrote: Rainer: Thank you very much for your help! Sorry about the IP address confusion - I chose badly in including log entries. I tried this with localhost (127.0.0.1) and I also tried it to be accessed from

Re: [OT] Tomcat Compiler probs

2007-03-05 Thread Natasha N Wright
Caldarale, Charles R wrote: From: Natasha N Wright [mailto:[EMAIL PROTECTED] Subject: Re: Tomcat Compiler probs I am creating a servlet which connects to a database so I am using the: tomcat4 javac .java command to compile my java files. Is tomcat4 a script that someone has placed on your

Re: install DBCP and mm.mysql 2.0.14 (JDBC Driver) and test app, get class compile error.

2007-03-05 Thread Wayne Bragg
David, you can ignore the question about how to compile .java into .class. I just found out the jdk can do that. Wayne - Original Message - From: "David Smith" <[EMAIL PROTECTED]> To: "Tomcat Users List" Sent: Monday, March 05, 2007 7:06 AM Subject: Re: install DBCP and mm.mysql 2.0

tomcat5 auto context detection

2007-03-05 Thread mike spisak
Hi All, I'm trying to get tomcat to auto-recognize that I have new java applications (e.g. a new WEB-INF) in a sub-directory for my virtual hosts.. I'd like to make it so that I don't have to edit my server.xml every time I add a new app within some domain/sub domain... is this possible?

Re: install DBCP and mm.mysql 2.0.14 (JDBC Driver) and test app, get class compile error.

2007-03-05 Thread Wayne Bragg
Thank you David, I was suspicious about the .java needing to be compiled and the commons-dbcp.jar and commons-pool.jar being unnecessary. What about commons-collections-3.2.jar is that necessary or does commons-el.jar have what is needed? Commons-el.jar is all that was in there to start with.

Re: Newbie help...Mac OS/X+Tomcat+Apache

2007-03-05 Thread Ron Wheeler
If you go to localhost:8080 and click on "Status" you shuld be taken to a page that shows in some detail what Tomcat thinks that it is doing. You should see a section ajp-8009 which will tell you if Tomcat is listening on 8009 for AJP transactions and if it say anyone try to communicate over tha

Re: Newbie help...Mac OS/X+Tomcat+Apache

2007-03-05 Thread Jeff Weinberger
Rainer: Thank you very much for your help! Sorry about the IP address confusion - I chose badly in including log entries. I tried this with localhost (127.0.0.1) and I also tried it to be accessed from elsewhere on the network (the local IP of the tomcat machine is 10.0.1.202), and sent th

How to get hold of security information from web.xml

2007-03-05 Thread Peter Coppens
Gentlepeople, I am trying to add a bit of extra security at the application level. I would like to leverage the information that is defined in the security-constraint (et al) web.xml settings. I found the things I need in org.apache.catalina.deploy but I can not get bootstrapped from the inform

Re: logging access for virtual hosts

2007-03-05 Thread Markus Schönhaber
teknokrat wrote: > If I want to set up virtual hosts with their own loggers, must I add the > valve in server.xml or is it possible to do this with context.xml file? You seem to mix virtual hosts and context.xml files. Anyway: you can specify, for example, an AccessLogValve inside a Context. This

RE: [OT] Tomcat Compiler probs

2007-03-05 Thread Caldarale, Charles R
> From: Natasha N Wright [mailto:[EMAIL PROTECTED] > Subject: Re: Tomcat Compiler probs > > I am creating a servlet which connects to a database > so I am using the: > > tomcat4 javac .java > command to compile my java files. Is tomcat4 a script that someone has placed on your system? It's not

logging access for virtual hosts

2007-03-05 Thread teknokrat
If I want to set up virtual hosts with their own loggers, must I add the valve in server.xml or is it possible to do this with context.xml file? thanks - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-

Re: [OT] RE: Problems connecting

2007-03-05 Thread rmarra
> [Marking off-topic as this is a network problem, not a Tomcat problem - > but having the thread in the archive may help others] > >> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] >> For this reason I start to think that is something related with cheap >> router, my one is a Zystel Prestige 60

RE: Problems connecting

2007-03-05 Thread rmarra
Ok what I did is uncomment this part in server.xml I don't know if is the right one... - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL P

[OT] RE: Problems connecting

2007-03-05 Thread Peter Crowther
[Marking off-topic as this is a network problem, not a Tomcat problem - but having the thread in the archive may help others] > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > For this reason I start to think that is something related with cheap > router, my one is a Zystel Prestige 600 & eff

Re:[OT] Detecting terminal HTTP chunk

2007-03-05 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Peter, Peter Kennard wrote: > In some sense yes, but then almost all uses of HTTP are doing this to > one extent or another because initially HTTP was so shallowly > conceived. Actually, I completely disagree. I feel that HTTP has withstood the test

RE: Problems connecting

2007-03-05 Thread rmarra
> I'm still not clear on what the problem is. Are you saying your > application doesn't function properly when accessed from the cell phone? > What does happen when you try to do so? (Tell us exact error messages, > etc.) The error is intercepted by the application in a try catch construct and h

Re: Tomcat Compiler probs

2007-03-05 Thread Natasha N Wright
I am creating a servlet which connects to a database so I am using the: tomcat4 javac .java command to compile my java files. regards natasha Caldarale, Charles R wrote: From: Natasha N Wright [mailto:[EMAIL PROTECTED] Subject: Tomcat Compiler probs all files compile & run fine when using

Re: unpackWARs Pros and Cons

2007-03-05 Thread Mikolaj Rydzewski
Rachel Wilson wrote: We have encountered issues with deploying unpacked war files on Windows platforms: when redeploying webapps tomcat fails to clear out the unpacked directory because windows locks some jar files. There is a "antiResourceLocking" workaround but we decided to work with packed w

RE: Problems connecting

2007-03-05 Thread rmarra
> - You have a NATted network I guess yes > - From the machine hosting Tomcat, you can connect using localhost yes > - From the outside world, you can connect using the external IP address yes > - From inside the NAT, you cannot connect using the external IP address yes, but in this case is not com

RE: Problems connecting

2007-03-05 Thread Caldarale, Charles R
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > Subject: Re: Problems connecting > > Ok I tried, if in the emulator I use the real IP I got the > same problem I cannot connect. Thru my favorite browser (of > course firefox) if I put http://62.56.xxx.xxx:8080 I got > back an error page...

Re: SQLNestedException

2007-03-05 Thread Daniel Stephens
1st. verifiy that the driver you need is in the Tomcat common lib. 2nd. verify your config in your server.xml and make sure your character "case" is correct. 3rd, double check your web.xml or context.xml to make sure your referencing your DataSource correctly, and finally post this and your class(

RE: Tomcat Compiler probs

2007-03-05 Thread Caldarale, Charles R
> From: Natasha N Wright [mailto:[EMAIL PROTECTED] > Subject: Tomcat Compiler probs > > all files compile & run fine when using java 1.5, but when i > attempt to compile with TomCat 4: This is an odd thing to say, since Tomcat (any version) does not compile .java files, other than those produce

RE: Problems connecting

2007-03-05 Thread Caldarale, Charles R
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > Subject: RE: Problems connecting > > The point Chuck is that really I don't know could be my > application, but then why it works with localhost & not > via real IP, I'm still not clear on what the problem is. Are you saying your applicatio

Re: Problems connecting

2007-03-05 Thread rmarra
> Hi, > > Why don't you try http://62.56.xxx.xxx:8080 with the j2me emulator ? > If it works that way we may conclude that you have a j2me issue. > If not it may be a tomcat conf problem. > > You should also access the url through your favorite browser (firefox) ... > > Tell us the results ! > > re

RE: Problems connecting

2007-03-05 Thread Peter Crowther
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > The point is when I change localhost with a real ip > 62.56.xxx.xxx I cannot > connect to the server, but the nice things is if in my > cellphone I enter > the address http://62.56.xxx.xxx:8080 I got the tipical > welcome page of > Tomcat. S

Re: Problems connecting

2007-03-05 Thread Nicolas Schwartz
Hi, Why don't you try http://62.56.xxx.xxx:8080 with the j2me emulator ? If it works that way we may conclude that you have a j2me issue. If not it may be a tomcat conf problem. You should also access the url through your favorite browser (firefox) ... Tell us the results ! regards, Nicolas [

RE: Problems connecting

2007-03-05 Thread rmarra
>> >> The point is when I change localhost with a real ip >> 62.56.xxx.xxx I cannot connect to the server, but >> the nice things is if in my cellphone I enter the >> address http://62.56.xxx.xxx:8080 I got the tipical >> welcome page of Tomcat. > > The above statement is self-contradictory: in on

Tomcat Compiler probs

2007-03-05 Thread Natasha N Wright
I am trying to compile a java file(a.java) which creates instances of other classes(b.java & c.java) i have created. all files compile & run fine when using java 1.5, but when i attempt to compile with TomCat 4: b.java & c.java compile fine a.java throws errors, it throws 'cannot resolve symbo

RE: Problems connecting

2007-03-05 Thread Caldarale, Charles R
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > Subject: Problems connecting > > The point is when I change localhost with a real ip > 62.56.xxx.xxx I cannot connect to the server, but > the nice things is if in my cellphone I enter the > address http://62.56.xxx.xxx:8080 I got the tipica

Problems connecting

2007-03-05 Thread rmarra
Hi experts, let me explain the situation first & let me tell you that Im really newbie with application server. What I done is a Java application (J2ME) that works over cellphone, with the java toolkit I got an emulator & my application works properly, I send a request the servlet over Tomcat repl

RE: Tomcat 6 - includes broken

2007-03-05 Thread Caldarale, Charles R
> From: Patrick Lee [mailto:[EMAIL PROTECTED] > Subject: Re: Tomcat 6 - includes broken > > unpackWARs="true" autoDeploy="true" >xmlValidation="false" xmlNamespaceAware="false"> > > > > This is what's not working. Additionally, If I do set the docBase to > something else th

RE: Using getImplementationVersion() to read MANIFEST.MF

2007-03-05 Thread Caldarale, Charles R
> From: Paul A. Hoadley [mailto:[EMAIL PROTECTED] > Subject: Re: Using getImplementationVersion() to read MANIFEST.MF > > Oh, I just meant I used java.util.jar.Manifest to parse > the manifest instead of java.util.Properties. I still > used ServletContext.getResourceAsStream() to obtain it. > I

Re: Detecting terminal HTTP chunk

2007-03-05 Thread Peter Kennard
At 04:53 3/5/2007, you wrote: Peter Kennard wrote: At 23:07 3/4/2007, you wrote: But since you can't send the response without finishing the reading of the input stream - the entire question doesn't seem to make sense. If the input pipe is slow (ie: cellphone with slow pipe) and you are sendin

Re: Tomcat 6 - includes broken

2007-03-05 Thread Pid
Patrick Lee wrote: The path attribute only works in server.xml. It is ignored in all other cases. Also, it is not recommended to define contexts in server.xml since you have to restart Tomcat to pick up any changes. I am putting this in server.xml inside the relevant host. Not fussed about relo

Re: Tomcat 6 - includes broken

2007-03-05 Thread Patrick Lee
The path attribute only works in server.xml. It is ignored in all other cases. Also, it is not recommended to define contexts in server.xml since you have to restart Tomcat to pick up any changes. I am putting this in server.xml inside the relevant host. Not fussed about reloads. Mostly I serve

Re: install DBCP and mm.mysql 2.0.14 (JDBC Driver) and test app, get class compile error.

2007-03-05 Thread David Smith
A few things to consider ... 1) What version of tomcat are you using? What follows is based on using version 5.0.x. The syntax for configuring JDBC resources in 5.5 is a little different. 2) mm.mysql 2.0.14 is VERY old. What version of MySQL Db server are you using? You may want to take a lo

Re: Tomcat 6 - includes broken

2007-03-05 Thread Mark Thomas
Patrick Lee wrote: > Apologies for all the replies but has setting a default context > changed? I noticed this page linked on the Configuration Reference - > http://tomcat.apache.org/tomcat-6.0-doc/config/defaultcontext.html. > > Unfortunately, this page gives me a 404. That link has been removed

Re: Tomcat 6 - includes broken

2007-03-05 Thread Mark Thomas
Patrick Lee wrote: > Further, I am unable to set a default context effectively. Eg. > > The path attribute only works in server.xml. It is ignored in all other cases. Also, it is not recommended to define contexts in server.xml since you have to restart Tomcat to pick up any changes. Outside of

Re: Tomcat 6 - includes broken

2007-03-05 Thread Patrick Lee
Apologies for all the replies but has setting a default context changed? I noticed this page linked on the Configuration Reference - http://tomcat.apache.org/tomcat-6.0-doc/config/defaultcontext.html. Unfortunately, this page gives me a 404. Thanks. -

Re: Tomcat 6 - includes broken

2007-03-05 Thread Patrick Lee
Further, I am unable to set a default context effectively. Eg. This won't serve /something/index.jsp on the site from /default/something/index.jsp but instead from the root of the appBase (not the content docBase). The only thing it will serve from /default is files directly inside it. If howe

Re: Tomcat 6 - includes broken

2007-03-05 Thread Patrick Lee
Do you have your host appBase set to be the same as your webapp docBase? This will cause the behaviour you see here. This worked (purely by accident - it was never intended to) in previous versions due to a bug that has since been fixed. Actually, having changed that the problem persists. I eit

RE: unpackWARs Pros and Cons

2007-03-05 Thread Rachel Wilson
We have encountered issues with deploying unpacked war files on Windows platforms: when redeploying webapps tomcat fails to clear out the unpacked directory because windows locks some jar files. There is a "antiResourceLocking" workaround but we decided to work with packed war files in the end --

Re: Marking servlet ... as unavailable

2007-03-05 Thread Joe Siebenmann
I could be wrong, but it appeared that when the Servlet was flagged as unavailable, that THAT would cause a series of other problems which the stackTrace() showed, not what actually caused it to be flagged as unavailable. If you're right, that it was flagged outside of Tomcat, than there isn't a

SV: SPNEGO

2007-03-05 Thread Morten Mortensen
Java 6 has the last codec necessary for avoiding doing any ASN.1 whatsoever as part of HTTP Negotiate/SPNEGO/kerberos. With Java 6 it is possible to implement it pretty cleanly using the GSS API. Without jCIFS. Regards Morten Sabroe Mortensen -Oprindelig meddelelse- Fra: Caldarale, Cha

Re: Detecting terminal HTTP chunk

2007-03-05 Thread Pid
Peter Kennard wrote: At 23:07 3/4/2007, you wrote: But since you can't send the response without finishing the reading of the input stream - the entire question doesn't seem to make sense. If the input pipe is slow (ie: cellphone with slow pipe) and you are sending a transaction where the fir

Re: IIS Experience Anyone?

2007-03-05 Thread Jost Richstein
Some remarks: - Sometimes the dll does not run correctly due to access rights in windows. The easiest way to avoid that is to use a windows installer of the dll that will handle all that for you. Version 1.2.15 provides an installer as far as I remember (*.msi). Give it a try just to see if

Re: MyApp servlet not deploying

2007-03-05 Thread Markus Schönhaber
Prateek Asthana wrote: > I was trying to run the "myapp" servlet example. The examples provided > in the webapps directory seem to run fine but when i try the "myapp" > example by deploying. compiling and so on as illustrated, I run into > the following error: > > type Status report > message /mya

Re: Marking servlet ... as unavailable

2007-03-05 Thread David Delbecq
En l'instant précis du 04/03/07 22:27, Joe Siebenmann s'exprimait en ces termes: > > It would be nice if there was some better information available > as to what it "didn't like" for it to flag it as "unavailable". > Nothing of any value was in any of the log files. > You logs stated: SEVERE: A

Re: Removing work directory

2007-03-05 Thread David Delbecq
A little strange indeed. How do you deploy? I think tomcat compare timestamp of .java files to timestamps of .jsp files to know if it need rebuild. Here we deploy using .war file, that mean or jsps are always more recent then work directory, and we don't have issues :) En l'instant précis du 04/03

Re: Using getImplementationVersion() to read MANIFEST.MF

2007-03-05 Thread Paul A. Hoadley
On 05/03/2007, at 6:22 PM, Caldarale, Charles R wrote: From: Paul A. Hoadley [mailto:[EMAIL PROTECTED] Subject: Re: Using getImplementationVersion() to read MANIFEST.MF I ended up doing something quite like this (though using java.util.jar.Manifest) Watch out for that - it won't work unless t

Re: Newbie help...Mac OS/X+Tomcat+Apache

2007-03-05 Thread Rainer Jung
Hi Jeff, errno 61 on Mac OS X is connection refused: 61 ECONNREFUSED Connection refused. No connection could be made because the target machine actively refused it. It looks a little strange, that you configured to connect to localhost, but the log shows 10.0.1.202. Either the config you showed