Download Dialog inclusing file extention

2008-01-22 Thread Kazufumi Arai
Hello, someone gives me information about definishion parameter for download dialog. I have phenomenon that windows download dialog with no file extention when using tomcat 1.4.x. I guess where I can set file extention like ".mol" in any file in conf folder included in tomcat 1.4.x Please give me

RE: Tomcat 6 embedded use - problems with jsp - No Java compiler available

2008-01-22 Thread olk
Hi, thanks for your reply - meanwhile I found it out myself - I was missing the jasper-jdt.jar. But it was hard to guess as the error message "No compiler available" does not point you on this. I would rather expect a "ClassDef not found" or so . You never stop learning new things :o)

Tomcat blew up (stack overflow error) deploying an app with MyFaces/RichFaces

2008-01-22 Thread Karr, David
Tomcat 5.5.25, JDK 1.5.0_11, WinXPSP2. I copied a war file to webapps and it auto-deployed it, but it failed autodeploy, which I expected. I then copied in several jars into the exploded WEB-INF/lib directory. At that point, in a fraction of a second the log file was filled up with a stack overf

Re: How to set ContentType from within Filter?

2008-01-22 Thread Eric B.
"Christopher Schultz" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Eric, > > Eric B. wrote: > | Multiple reasons, one main one primary one being that we have styles > defined > | on a per-user basis, stored in a database. So ra

Re: Question about Tomcat/IIS and NTLM authentication

2008-01-22 Thread Gabe Wong
eborisow wrote: mgainty wrote: NAMES: You cannot change to any names unknown to your (NTLM) authentication algorithm http://tomcat.apache.org/tomcat-5.5-doc/catalina/docs/api/org/apache/catalin a/realm/RealmBase.html#authenticate(java.lang.String,%20java.lang.String) Martin Martin,

Re: Question about Tomcat/IIS and NTLM authentication

2008-01-22 Thread eborisow
mgainty wrote: > > NAMES: You cannot change to any names unknown to your (NTLM) > authentication > algorithm > http://tomcat.apache.org/tomcat-5.5-doc/catalina/docs/api/org/apache/catalin > a/realm/RealmBase.html#authenticate(java.lang.String,%20java.lang.String) > > Martin > > Martin, Than

Re: [!! SPAM] Re: how to communicate between different tomcat servers

2008-01-22 Thread frank
Thank you chris for your reply. I try to arrange all the services on one webserver, anyway if it need to be devided into several servers, I have to find a way to communicate between the servers, and I may use JMS or RMI to implement this. How about the diffierence between JMS and RMI? Thanks a

RE: Tomcat worked before, now it doesn't

2008-01-22 Thread B McFee
Hi, I tried the attached and got the following output which I dont understand: RESULT OF NETSTAT Proto Local Address Foreign AddressState TCPC36432-B:ftp C36432-B:0 LISTENING TCPC36432-B:http C36432-B:0 LISTENING TCP

Re: Question about Tomcat/IIS and NTLM authentication

2008-01-22 Thread Martin Gainty
the DirContext is abstract so you will need to construct either a file based directory context (FileDirContext) such as what you see http://tomcat.apache.org/tomcat-5.5-doc/catalina/docs/api/org/apache/naming/ resources/FileDirContext.html or a ProxyDirContext such as what you see here http://tomc

Re: Tomcat native / APR for windows

2008-01-22 Thread Bill Barker
I'm guessing that you don't have JAVA_HOME set when you try to compile it (or when you exported the Makefile). Thus the compiler can't find %JAVA_HOME%\include\jni.h, which it needs to integrate with the Java code. <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi, > > I am tryi

Re: SSL error when invoking web service

2008-01-22 Thread Bill Barker
"Rizwan Merchant" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > Hi, > > We have a web based application running on Tomcat 6. The server.xml file > is configured so that the application can handle incoming https requests > on port 443 (default). When a user hits the URL http://ww

Re: Question about Tomcat/IIS and NTLM authentication

2008-01-22 Thread eborisow
Gabe Wong wrote: > > I believe as the user is already authenticated via IIS, the authenticate > method is not called in this situation. > So you may try overriding: > protected Principal getPrincipal(String username) > Gabe, Thanks for sticking with this. I did try getPrincipal as well and i

Re: ConcurrentModificationException on tomcat cluster with SimpleTcpCluster strategy

2008-01-22 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Filip, Filip Hanik - Dev Lists wrote: | if you look at the stack trace, there is no error in the clustering | code. something is modifying your session attribute while the cluster is | trying to send it I'm suggesting that this should not be conside

Re: [!! SPAM] Re: how to communicate between different tomcat servers

2008-01-22 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 David, David Brown wrote: | Hello, are talking about between TC instances or one or more | applications (dot).war deployed under one or more TC instances? The OP indicated that separate Tomcat instances were involved. - -chris -BEGIN PGP SIGNA

Need help - Duplicated session ID problem

2008-01-22 Thread Yang Cao
Hi, All, We are running the following set up: apache - 2.2.3 tomcat - 5.5.20 jboss - 4.0.5 We are running sticky session with no clustering We currently are running into some random problems, where apparently duplicated session IDs have been created from time to time, so that one user can

RE: problems installing administration console on TC5.5.25

2008-01-22 Thread Caldarale, Charles R
> From: Michael Phoenix [mailto:[EMAIL PROTECTED] > Subject: problems installing administration console on TC5.5.25 > > I just get the message: "Tomcat's administration web > application is no longer installed by default. Download > and install the "admin" package to use it." 1) Insure the dire

Help: how to install on iseries AS400

2008-01-22 Thread Vida Luz Arista
Hi All, I have experience installaing apache-tomcat on Linux, but now I need to install apache-tomcat on AS400, the operate syste is V5R4M0. I need a guide, somebody can help me ? Regards. - To start a new topic, e-mail: users@

problems installing administration console on TC5.5.25

2008-01-22 Thread Michael Phoenix
I am trying to install the tomcat admin console on version 5.5.25 and am having a hard time. I used the following directions from the Tomcat faq as listed below, you can also link to them using http://wiki.apache.org/tomcat/HowTo#head-f50555909547d981d0e2b0303236...

Re: ConcurrentModificationException on tomcat cluster with SimpleTcpCluster strategy

2008-01-22 Thread Filip Hanik - Dev Lists
if you look at the stack trace, there is no error in the clustering code. something is modifying your session attribute while the cluster is trying to send it Filip Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Filip, Filip Hanik - Dev Lists wrote: | the solution

Re: Tomcat 6 - Cluster error.

2008-01-22 Thread Filip Hanik - Dev Lists
the error is because a member disappeared, the cluster code should not be doing channel.send(channel.getMembers()); but it should be doing channel.getMembers() can return an empty array, correct your code to do this Member[] dest = channel.getMembers(); if(dest.length>0)channel.send(dest) Filip

Re: comet end event

2008-01-22 Thread Peter Warren
Thanks, Filip, for your time on this! I used your changes and still get an END event. With your changes the client and socket are definitely staying alive now. I stepped through the client code and see the end event appear on the server as soon as I step through the line that writes the 0crlfcrl

Re: comet end event

2008-01-22 Thread Filip Hanik - Dev Lists
as an addendum, the END event that you were seeing was caused by an EOF being sent from your test client to the server. Filip Peter Warren wrote: Just to make sure that I wasn't crazy, I did some more tests, including using your cometgui.jar. My results still show both read errors and END eve

Re: comet end event

2008-01-22 Thread Filip Hanik - Dev Lists
your test client is wrong,I've pasted in the correct one only three changes 1. set the timeout so that the socket stays alive 2. keep reading data so that the socket stays alive 3. 0crlfcrlf as the last chunk works as expected. to make a workable client, it should read until it gets the last-ch

Re: Question about Tomcat/IIS and NTLM authentication

2008-01-22 Thread Gabe Wong
eborisow wrote: Gabe Wong wrote: Could be how logging output is setup. The constructor may be created before output gets redirected elsewhere. Look in the other log files under the logs directory. Also is the realm configured in server.xml or context.xml? Gabe, Here's the thing. I

RE: tomcat5_security problem

2008-01-22 Thread Caldarale, Charles R
> From: Rick Knight [mailto:[EMAIL PROTECTED] > Subject: tomcat5_security problem > > When I set "tomcat5_security=no" tomcat will not start. > Can someone suggest a solution for this? Yes - avoid headaches by throwing away that 3rd-party repackaged version of Tomcat and install a real one from

tomcat5_security problem

2008-01-22 Thread Rick Knight
Hello list, I have a problem with Tomcat5 running on Kubuntu 7.04. The default configuration with "tomcat5_security=yes" does work, but I need to set "tomcat5_security=no" for a particular application, Ilient SysAid. When I set "tomcat5_security=no" tomcat will not start. Can someone suggest a

RE: ssl.SessionId Cache keeps growing

2008-01-22 Thread Caldarale, Charles R
> From: Yuval Perlov [mailto:[EMAIL PROTECTED] > Subject: Re: ssl.SessionId Cache keeps growing > Been all over those objects thinking I can set a system > wide default. There is the JVM -XX:SoftRefLRUPolicyMSPerMB=n option, where n is defined as "Number of milliseconds per MB of free space in

Re: Question about Tomcat/IIS and NTLM authentication

2008-01-22 Thread eborisow
Gabe Wong wrote: > > Could be how logging output is setup. The constructor may be created > before output gets redirected elsewhere. > Look in the other log files under the logs directory. Also is the realm > configured in server.xml or context.xml? > > Gabe, Here's the thing. I also added

SSL error when invoking web service

2008-01-22 Thread Rizwan Merchant
Hi, We have a web based application running on Tomcat 6. The server.xml file is configured so that the application can handle incoming https requests on port 443 (default). When a user hits the URL http://www.mydomain.com, it automatically redirects to https://www.mydomain.com (due to securit

Re: Question about Tomcat/IIS and NTLM authentication

2008-01-22 Thread Gabe Wong
eborisow wrote: Gabe Wong wrote: Check the syntax as it was just done on the fly. Here's the latest. I created a class that extends JNDIRealm and I can see some debug messages in my constructor, but I don't see my authenticate method getting invoked. I just wanted to see if I could

Re: comet end event

2008-01-22 Thread Peter Warren
Just to make sure that I wasn't crazy, I did some more tests, including using your cometgui.jar. My results still show both read errors and END events. Is it possible that it's a platform issue? I'm running Windows XP Pro SP2. As I mentioned before I'm using the tomcat 6.0.x trunk as of 21-01-20

Re: Tomcat 5.5 won't start up anymore after adding/removing webapps

2008-01-22 Thread Martin Gainty
clean %CATALINA_HOME%/temp clean %CATALINA_HOME%/work rename all instances of myfaces-impl-1.1.2.jar to *.*.old comment all instances of StartupServletContextListener such as this entry in web.xml.myfaces org.apache.myfaces.webapp.StartupServletContextListener (OR uninstall and re-in

error page for ViewExpiredException using JSF-RI 1.2

2008-01-22 Thread Stephen More
I am currently using JSF-RI 1.2_07, facelets 1.1.13 and tomcat 5.5.23 Within my web.xml the following works as expected: java.lang.Exception /redirect.jsp The following is NOT working: javax.faces.application.ViewExpiredException /redirect.jsp

Redeploy a war file

2008-01-22 Thread David Brown
Try to export your Eclipse project as an ANT build.xml. Edit the build.xml to perform ANT deployment upon successful command-line build of your project. Chris Riekenberg wrote .. > Hello, > > I would like to redeploy my web application as war file, but if I export > my project from Eclipse > he

Re: Tomcat 5.5 won't start up anymore after adding/removing webapps

2008-01-22 Thread david delbecq
Those are just serialized session of users generated when webapps stop. There shouldn't be any reference to myface except in your personal webapps. The fact it's present in other apps make me think you did more than deploy webapp, like modifying the common web.xml that is shared across all weba

RE: Tomcat 5.5 won't start up anymore after adding/removing webapps

2008-01-22 Thread Karr, David
There weren't any files corresponding to those apps in the conf tree. However, when I just tried grepping for that class name in the entire tree, I found it in the following files: ./work/Catalina/localhost/jsp-examples/tldCache.ser ./work/Catalina/localhost/servlets-examples/tldCache.ser ./

Re: Tomcat 5.5 won't start up anymore after adding/removing webapps

2008-01-22 Thread david delbecq
To manually undeploy a webapp, when tomcat is stopped, remove webapps/* remove work/Catalina/localhost/ remove conf/Catalina/localhost/.xml Karr, David a écrit : I installed v5.5.25. I installed the "admin" app (although the instructions on doing this seem uncertain). I used it for a few hours

Re: Tomcat 5.5 won't start up anymore after adding/removing webapps

2008-01-22 Thread Len Popp
ServletContextListeners are configured in an app's web.xml file, so look for all web.xml files on the server (look inside .war files too) to see if any of them mention org.apache.myfaces.webapp.StartupServletContextListener. -- Len On Jan 22, 2008 12:47 PM, Karr, David <[EMAIL PROTECTED]> wrote:

Re: Tomcat 5.5 won't start up anymore after adding/removing webapps

2008-01-22 Thread David Brown
Usually in the past web based deployment/undeployment has been through the manager app and not the admin app. The work directory is only for the compilation of the JSP. Can you deploy using ANT? Please reply with more info and maybe you will get a better response: OS: type/version JDK: version

Tomcat 5.5 won't start up anymore after adding/removing webapps

2008-01-22 Thread Karr, David
I installed v5.5.25. I installed the "admin" app (although the instructions on doing this seem uncertain). I used it for a few hours, deploying and undeploying some experimental apps using MyFaces and RichFaces. Now, for some reason, I'm finding that Tomcat won't start up at all, and I've undepl

Re: comet end event

2008-01-22 Thread Martin Gainty
i *thought* chunked-encoding was enabled by http 1.1 web server when content-length was unspecified? http://www.innovation.ch/java/HTTPClient/api/HTTPClient/HttpURLConnection.ht ml M- - Original Message - From: "Filip Hanik - Dev Lists" <[EMAIL PROTECTED]> To: "Tomcat Users List" Sent:

Re: comet end event

2008-01-22 Thread Filip Hanik - Dev Lists
I just tried again, and I didn't get your scenario. however, it may appear that is happening if you try to close the comet event asynchronously, and then send a new request directly, since at that point, you don't have a valid chunk, instead it is trying to parse the next request as a chunk F

Re: comet end event

2008-01-22 Thread Filip Hanik - Dev Lists
I still don't get the END event, however, thanks for pointing it out, you did find a regression bug about the timeout http://svn.apache.org/viewvc?view=rev&revision=614249 I've added the patch above to the proposal list for 6.0.x to fix the timeout issue Filip Peter Warren wrote: as I men

Re: comet end event

2008-01-22 Thread Filip Hanik - Dev Lists
I'll take a look at this for you! Filip Peter Warren wrote: as I mentioned, the "last chunk" doesn't generate an END event, I tried it locally. of course against 6.0.x trunk. I played around a bit because I was definitely getting an END event and found: Sending 0crlf does not generate a

Re: [!! SPAM] Re: how to communicate between different tomcat servers

2008-01-22 Thread David Brown
Hello, are talking about between TC instances or one or more applications (dot).war deployed under one or more TC instances? Christopher Schultz wrote .. > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Frank, > > frank wrote: > | I try to arrange all the services on one webserver, anyway

RE: JSP compilation internal error

2008-01-22 Thread Milak, Sushil
Hi Martin, Inside /WEB-INF/web.xml I have declared tag library like this... It works for CORE and SQL library without declaring them at the top of jsp page. Provided they are included inside /WEB-INF/web.xml. It complains if I include the relevant import statements at the top of each jsp page. F

Re: JSP compilation internal error

2008-01-22 Thread Martin Gainty
i dont see the taglib prefix decl at the top of your jsp <%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"; %> http://java.sun.com/products/jsp/jstl/1.1/docs/tlddocs/index.html M - Original Message - From: "sush" <[EMAIL PROTECTED]> To: Sent: Tuesday, January 22, 2

Re: Comet Development

2008-01-22 Thread Pid
Siobhan wrote: No, I have successfully created many java web applications, but for some reason can not seem to successfully create a comet one. Something is not working and I don't know what. I've taken all the code, placed it where I thought it should be placed, but still something doesn't work.

Re: [!! SPAM] Re: how to communicate between different tomcat servers

2008-01-22 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Frank, frank wrote: | I try to arrange all the services on one webserver, anyway if it need | to be devided into several servers, I have to find a way to communicate | between the servers, and I may use JMS or RMI to implement this. How | about the d

Re: How to set ContentType from within Filter?

2008-01-22 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Eric, Eric B. wrote: | Multiple reasons, one main one primary one being that we have styles defined | on a per-user basis, stored in a database. So rather than generate an | entire CSS file on the fly, this allows us to display certain customization

RE: JSP compilation internal error

2008-01-22 Thread Milak, Sushil
Hey David, Could u elaborate more on this. I do have jstl.jar and standard.jar files inside WEB-INF/lib/ Thanks Sushil -Original Message- From: David Smith [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 22, 2008 10:02 AM To: Tomcat Users List Subject: Re: JSP compilation internal err

Re: JSP compilation internal error

2008-01-22 Thread David Smith
I've been bitten by this one. You need to add standard.jar to your build from the jstl standard taglibs download. --David sush wrote: Hi All, Following up with previous error (listed below), for debugging purposes I turned the xmlValidation to true. I found the problem. Even though I ha

Re: JSP compilation internal error

2008-01-22 Thread sush0000
Hi All, Following up with previous error (listed below), for debugging purposes I turned the xmlValidation to true. I found the problem. Even though I have correct jstl version information, tag library declarations in web.xml file, it does not recognize JSTL: function library. I am using java-1.5

RE: Applets and Sessions

2008-01-22 Thread Charlie Wingate
Thank you David; that explanation sent me in a new direction of thinking and it has helped quite a bit. Charlie Wingate [EMAIL PROTECTED] The significant problems we have cannot be solved at the same level of thinking with which we created them. ~ Albert Einstein -Original Message- Fr

Re: Question about Tomcat/IIS and NTLM authentication

2008-01-22 Thread eborisow
Gabe Wong wrote: > > > Check the syntax as it was just done on the fly. > > Here's the latest. I created a class that extends JNDIRealm and I can see some debug messages in my constructor, but I don't see my authenticate method getting invoked. I just wanted to see if I could override the a

RE: ssl.SessionId Cache keeps growing

2008-01-22 Thread Caldarale, Charles R
> From: Jonadan [mailto:[EMAIL PROTECTED] > Subject: Re: ssl.SessionId Cache keeps growing > > There are alternative designs than using sessions! Not in this case. Don't confuse HTTPSession with SSLSession - the former is managed by Tomcat and can be avoided as you state, the latter is purely i

RE: Comet Development

2008-01-22 Thread Siobhan
No, I have successfully created many java web applications, but for some reason can not seem to successfully create a comet one. Something is not working and I don't know what. I've taken all the code, placed it where I thought it should be placed, but still something doesn't work. I have searched

Re: Tomcat native / APR for windows

2008-01-22 Thread Markus Schönhaber
[EMAIL PROTECTED] wrote: > I am trying to build tomcat native for windows and have not been very > successful on this.. I can't help with your problem, but would you mind explaining why you want to build the native library yourself? The Tomcat installer .exe will fetch and install the native dl

Re: Tomcat benchmark

2008-01-22 Thread samehgad
Hi Andrew You can determine the number of concurrent requests using sample formula This formula gives a decent estimate for the number of threads you can create: (MaxProcessMemory - JVMMemory - ReservedOsMemory) / (ThreadStackSize) = Number of threads Example: For Java 1.5 I get the followin

RE: Tomcat 6 - Cluster error.

2008-01-22 Thread Raúl García
Hi again, I'm getting an error when one of the nodes are shutdown and I make a hit to the server. Seems like the node 2, is trying to send the session to the other node (But is offline) LOG_INSTANCE-2 === === I lauch the shutdown command of node1: 21-ene-2008 17:15:10 org.apache

Tomcat native / APR for windows

2008-01-22 Thread mark . x . anthony
Hi, I am trying to build tomcat native for windows and have not been very successful on this.. Below are the steps that I have take to try and get this done · Extracted Tomcat Native from the source in the directory structure E:\tomcat55-build\tomcat-native-1.1.10-win32-src\jni\native

Re: ssl.SessionId Cache keeps growing

2008-01-22 Thread Jonadan
There are alternative designs than using sessions! If the problem is that serious, you might consider other options. Regards. Yuval Perlov wrote: > > On a side note, I'd like to argue that if you have users logging in, > you can't help having some kind of object on the server side telling