Re: configuring tomcat on XP as a service

2005-05-04 Thread luke
Hi, 03May2005 @ 22:45 Greg Baynham thusly spake However, I have set the environment variables JAVA_HOME and PATH to both reference my installation of the JSDK. I have rebooted, but still get the Do the env var paths have spaces? Since I had a problem with that on windows once, I've made

Re: configuring tomcat on XP as a service

2005-05-04 Thread Dominik Drzewiecki
Greg Baynham [EMAIL PROTECTED] wrote: I'm getting tripped up trying to get tomcat to run JSP code when it's installed as a service. when I access a JSP page I get this error: root cause Unable to find a javac compiler; com.sun.tools.javac.Main is not on the classpath. Perhaps JAVA_HOME

RE: Network Disk Not Exist Under Tomcat-5.5.9

2005-05-04 Thread Peter Crowther
From: NanFei Wang [mailto:[EMAIL PROTECTED] Why Network Disk Not Exist Under Tomcat-5.5.9 ? Are you running Tomcat as a service? If so, remember that drive mappings (eg. mapping Y: to \\myserver\myshare) are user- and session-specific. You have mapped a drive as a user; the services on your

Amount of free disk space

2005-05-04 Thread Mark Benussi
I host my sites with a provider who supplied tomcat 5.0 on a UNIX platform. Is there a Java API call I can make to detect how much disk space has been allocated to my account and the current amount used?

RE: Amount of free disk space

2005-05-04 Thread Peter Crowther
From: Mark Benussi [mailto:[EMAIL PROTECTED] Is there a Java API call I can make to detect how much disk space has been allocated to my account and the current amount used? Depending on how hard they've nailed down the lid on Tomcat, you *might* be able to invoke UNIX executables using

Re: Network Disk Not Exist Under Tomcat-5.5.9

2005-05-04 Thread NanFei Wang
Dear Peter, I have already mapped a Network Disk named 'Y'. My question is : If the webserver is Tomcat with ver.earlier than Tomcat-5.5.9(like 5.0.18), Then the test.jsp will get Y:\ exists()=true But with Tomcat-5.5.9 ,the test.jsp will get Y:\ exists()=false Thanks - NanFei - Original

pdf not working

2005-05-04 Thread Maarten Janssen
Hi all, Iam trying to call a link to a new window and that's calling a pdf document thats somewhere in my folder under webapps. The problem is that the pdf is not shown. If i try it with an image it will be displayed correctly. I am using Tomcat 5.5. Maarten -- No virus found in this outgoing

Re: pdf not working

2005-05-04 Thread Parsons Technical Services
What browser are you using? Doug - Original Message - From: Maarten Janssen [EMAIL PROTECTED] To: Tomcat User List tomcat-user@jakarta.apache.org Sent: Wednesday, May 04, 2005 6:04 AM Subject: pdf not working Hi all, Iam trying to call a link to a new window and that's calling a pdf

RE: pdf not working

2005-05-04 Thread Maarten Janssen
hI. I am using internet explorer. The problem is when I open it as a file system file (i.e. d:\etc..\x.pdf) it works. But a relative path to a folder in my webapps it is NOT working. Maarten -Oorspronkelijk bericht- Van: Parsons Technical Services [mailto:[EMAIL PROTECTED] Verzonden:

Tomcat5.5.9 + jdk1.5 HTTPS

2005-05-04 Thread Carlos Conde
Hello, I'm trying to enable HTTPS with Tomcat5.5.9. Here is my connector description in the server.xml file: Connector port=8443 minProcessors=5 maxProcessors=75 enableLookups=true disableUploadTimeout=true

Help Basedir Error

2005-05-04 Thread Richard Reyes
Hi Guys, Im trying to setup tomcat 5 on Fedora Core 3 and I keep on having this BASEDIR error... [EMAIL PROTECTED] ~]$ env | grep CATALINA CATALINA_HOME=/home/sandman/jakarta-tomcat-5.0.28 CATALINA_BASE=/home/sandman/jakarta-tomcat-5.0.28 [EMAIL PROTECTED] ~]$ $CATALINA_HOME/bin/startup.sh The

SSL Connector with client auth in TC 5.5.9

2005-05-04 Thread Domenico Aquilino
We are switching to TC 5.5.9 in an embedded server. In version 5.0.29, whe configured SSL with client auth as follows: CoyoteConnector connector = new CoyoteConnector(); connector.setAddress( host ); connector.setPort( port ); connector.setSecure(true); connector.setCiphers(

StandardContext is added to host but won't start

2005-05-04 Thread Erik Hellman \(KA/EAB\)
I'm trying to create and deploy a StandardContext (i.e., a webapp) inside my Servlet: StandardContext theContext = new StandardContext() theContext.setDisplayName(thePath); theContext.setDocBase(myBaseDir + thePath); theContext.setName(thePath); theContext.setPath(thePath);

Re: pdf not working

2005-05-04 Thread Jay Hulslander
Just so I understand, file.jpg is hosted fine back to a browser. File.pdf, in the same location, is not hosted back to the browser find. Is that what you are experiencing? Sounds like tomcat is configured to execute pdf documents as opposed to hosting them. Much like you would configure a

Re: Network Disk Not Exist Under Tomcat-5.5.9

2005-05-04 Thread NanFei Wang
Hi, I have found the solution as follow: change tomcat service account: Control Panel Administrative Tools Services change tomcat service log on account: administrator Now,it works. the test.jsp will get Y:\ exists()=true - NanFei - Original Message - From: NanFei Wang [EMAIL

Serving files using tomcat

2005-05-04 Thread Steve Vanspall
Hi, I have been looking around and haven't found a solution that works basically I have a PDF that gets created dynamically. Now to save memory I have the PDF written to a file rather than a ByteArray. The only way I can be sure that I wont encounter errors creating the file is to use

Re: pdf not working

2005-05-04 Thread Michael McQuade
I have the exact opposite of your problem, and I have no idea why mine works, I want to display a PDF file in the Browser Window from a list of documents. It may be JPG, DOC, BMP, PDF, whatever.. And then I want to be able to VIEW the document FULL SCREEN, and send it out to WORD, or

RE: pdf not working

2005-05-04 Thread David B. Saul
Here is what worked for me. The PDF is created dynamically. 1. a small bit of code which used FOP and served it as a stream. Be sure to set the response type. byte[] fo; . . . InputSource fopInput = new InputSource( new ByteArrayInputStream( fo ) );

RE: pdf not working

2005-05-04 Thread Phillip Qin
I think your point 2 is more important. I found out that in IE, I have to append .pdf somewhere in the url otherwise the ActiveX control that interprets pdf simple wouldn't work. In my piece of work, I use http://www.mydomain.com/myapp/statement.pdf?myquerystring... Mozilla/Firefox has no such

BadPaddingException revisited

2005-05-04 Thread Faine, Mark
Is a keystore required to use PKCS12 ssl certs with Tomcat 5? I'm trying (once again) to convert a cert issued for Apache (OpenSSL) to a pkcs12 for Tomcat but I keep getting the following error: Protocol handler start failed: java.io.IOException: failed to decrypt safe contents entry:

RE: pdf not working

2005-05-04 Thread David B. Saul
Yes - I did some looking on the MS site and found that the earlier IE browsers were making three requests while 5.5 makes two. Haven't found what 6 is doing. But setting the response type, length, adding the pdf=.pdf\ works. In addition the same kind of thing helped with SVG - but slightly

Re: Serving files using tomcat

2005-05-04 Thread Anhony
Greetings, Take a look at the code fragment below. It should serve as a good starting point. I hope this helps. AS- private void processPDFRequest(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException, Exception { int bytesCopied = 0;

Multiple Server With Tomcat

2005-05-04 Thread Farid Izem
Hi All, This is the first time, i'm trying to configure Tomcat. I'm currently using Tomcat 5.0.28 / Java 1.4.2. I'have written my own server.xml regarding Tomcat Documentation at jakarta.apache.org. this is what i have done : Server className=org.apache.catalina.core.StandardServer port=8015

Tomcat v5.0.28 has memory leaking?

2005-05-04 Thread Gary Shi
Tomcat v5.0.28 has memory leaking Problem ? My environment: Win2000 with SP4 380M Ram Intel(R)ieo 2.8 GHz Tomcat v5.0.28 Axia-1-2RC3 JDBC Driver to SQL-Server2000 We have a small web services to be hosted in Tomcat . Problem: When we send request to web services for 10 hours non-stop,

RE: SSL, Form Authentication 408 error

2005-05-04 Thread Andrew Chapman
I have resolved this problem, and as is so often is the case (certainly with me anyway) the cause of this wasn't what it initially appeared. Anyway I thought I'd share my findings in case anyone else came across this problem. This is an IE specific problem relating to IFRAMES and nothing to do

Re: Tomcat v5.0.28 has memory leaking?

2005-05-04 Thread Jason Bainbridge
On 5/4/05, Gary Shi [EMAIL PROTECTED] wrote: Tomcat v5.0.28 has memory leaking Problem ? My environment: Win2000 with SP4 380M Ram Intel(R)ieo 2.8 GHz Tomcat v5.0.28 Axia-1-2RC3 JDBC Driver to SQL-Server2000 We have a small web services to be hosted in Tomcat .

Admin Application doesn't save correctly - Tomcat 5.5.7

2005-05-04 Thread Ankit Shah
Hi, We are experiencing a strange problem with the Tomcat admin utility. Upon clicking 'Commit Changes', NOT ALL options are written out to the server.xml file !! Here is the tag that was messed up: Before: Connector port=4443 maxThreads=40 minSpareThreads=10 maxSpareThreads=25

Re: Serving files using tomcat

2005-05-04 Thread Steve Vanspall
Unfortunately that is what I do OutputStream dos = null; FileInputStream fis = null; try { fis = new FileInputStream(rf.getPdf()); response.setContentType(application/pdf); response.setContentLength((int) rf.getPdf().length()); //response.setHeader(response.) dos =

Tomcat server memory optimization

2005-05-04 Thread =?iso-8859-1?Q?Ac=E1cio_Furtado_Costa?=
I read an article about Considering the server VM. In this article I realize the JVM (Sun´s) actually contains different VM inside the binary that´s executed to start up Java applications: the Client and The Server VM. The server VM trades priorities for emphasis on greater scalability for

RE: pdf not working

2005-05-04 Thread Diogo Quintela \(EF\)
Hello Try adding the following any of the following response headers: Content-Type, application/pdf And any of the follwing.. Content-disposition,inline; filename=example.pdf Content-disposition,attachment; filename=example.pdf Content-disposition,filename= example.pdf Diogo Quintela @see

RE: pdf not working

2005-05-04 Thread Diogo Quintela \(EF\)
Next time I promise I'll read it before clicking Send. :-) Diogo -Original Message- From: Diogo Quintela (EF) [mailto:[EMAIL PROTECTED] Sent: quarta-feira, 4 de Maio de 2005 17:01 To: 'Tomcat Users List' Subject: RE: pdf not working Hello Try adding the following any of the following

RE: Serving files using tomcat

2005-05-04 Thread Phillip Qin
Code should work. Also read email between Daivd and mine. .pdf has to be appended for IE to load pdf. -Original Message- From: Steve Vanspall [mailto:[EMAIL PROTECTED] Sent: May 4, 2005 11:48 AM To: Tomcat Users List Subject: Re: Serving files using tomcat Unfortunately that is what I

RE: pdf not working

2005-05-04 Thread Phillip Qin
Has Content-Disposition become standard or just a recommendation? -Original Message- From: Diogo Quintela (EF) [mailto:[EMAIL PROTECTED] Sent: May 4, 2005 12:10 PM To: 'Tomcat Users List' Subject: RE: pdf not working Next time I promise I'll read it before clicking Send. :-) Diogo

Re: Serving files using tomcat

2005-05-04 Thread Anhony
I use this code and it works in my app. Their are small differences between how we copy the data to the response output. I don't know for sure, but this may account for why the fragment I posted works. The difference is small, I think it would be worth giving it a try. AS- - Original

Implementing a custom REALM and storing retrieved information

2005-05-04 Thread stephan
Hi there, I'm about to code my own authentication realm implementation. I'm facing an interesting problem. My authentication mechanism returns not only username/password but an additional security token that I need in my servlets to communicate with a backend system. I will implement

Re: Serving files using tomcat

2005-05-04 Thread Steve Vanspall
Yes i see no difference, I assume StreamCopier.copy() just does what my code does. I cannot find it in any of the standard jars, so I assume this is one of your own. Other than that everything else seems to be fine. Oh well I am sure I will owrk it out Steve - Original Message - From:

Tomcat processes

2005-05-04 Thread Iannis Hanen
Hi everyone, I have a question related to the scalability and performance of Tomcat. Typically, when tomcat gets started, it creates one process that spawns all the threads required to answer the requests for all the deployed web applications. Let's assume that I have 6 distinct web

Re: Network Disk Not Exist Under Tomcat-5.5.9

2005-05-04 Thread Jason Bainbridge
On 5/4/05, NanFei Wang [EMAIL PROTECTED] wrote: Hi, I have found the solution as follow: change tomcat service account: Control Panel Administrative Tools Services change tomcat service log on account: administrator Uhm you don't want to do that, running any service as Administrator is

Re: Tomcat5.5.9 + jdk1.5 HTTPS

2005-05-04 Thread Jason Bainbridge
On 5/4/05, Carlos Conde [EMAIL PROTECTED] wrote: Hello, I'm trying to enable HTTPS with Tomcat5.5.9. Here is my connector description in the server.xml file: Connector port=8443 minProcessors=5 maxProcessors=75 enableLookups=true

RE: Tomcat processes

2005-05-04 Thread J. Ryan Earl
Generally speaking, one process with a lot of threads should perform better than distributing the threads among multiple processes because you're not doing as much context switching and it's more efficient on caches. J. Ryan Earl Systems/Network Engineer dynaConnections Corporation 512.306.9898

RE: Serving files using tomcat

2005-05-04 Thread David B. Saul
May not be critical but try using the ServletOutputStream instead of OutputStream. DOC URL: http://java.sun.com/j2ee/1.4/docs/api/javax/servlet/ServletResponse.html //Clear content of the underlying buffer in the response //without clearing headers or status code. response.resetBuffer();

RE: BadPaddingException revisited

2005-05-04 Thread Faine, Mark
The password was incorrect, after correcting this, the server works as intended. -Mark -Original Message- From: Faine, Mark Sent: Wednesday, May 04, 2005 9:27 AM To: 'Tomcat Users List' Subject: BadPaddingException revisited Is a keystore required to use PKCS12 ssl certs with

simple deployment problem - please help

2005-05-04 Thread Guy Katz
hi; i have tomcat 5.5.9 running with jdk1.4.2 my application is configured in a context element in the server.xml and it is deployed twice instead of once!!! (only one context is defined in the server.xml) i have no idea why. if i remove the context element from the server.xml and prepare a

Re: Moving from http to https doesnt expire session

2005-05-04 Thread Bob Feretich
If you start a session under http, Tomcat will maintain the session into https. This is the desired behavior for most users. Most e-commerce sites use shopping cart models and don't switch to https until you want to check out. If the session was changed on the transition, you would lose the

Re: Serving files using tomcat

2005-05-04 Thread Dakota Jack
If you are using struts, you should be forwarding a null. That is probably your problem. On 5/4/05, Steve Vanspall [EMAIL PROTECTED] wrote: Unfortunately that is what I do OutputStream dos = null; FileInputStream fis = null; try { fis = new FileInputStream(rf.getPdf());

Re: Help - Alias or Symlink to external(to the context) images directory?

2005-05-04 Thread Matt Galvin
On 5/3/05, Mott Leroy [EMAIL PROTECTED] wrote: http://jakarta.apache.org/tomcat/tomcat-5.0-doc/config/context.html - see the allowLinking property. This did the trick :) Thanks Mott!!! As far as how to create the symlink when the app is deployed, not sure beyond running some sort of script

Re: tomcat stopped

2005-05-04 Thread Fred Cook
Hi Wendy, We just use cp to get foo.war into the webapps dir. But we shut down tomcat first, then restart it. The exact steps: We build our test app under a /home file system, then cp the .war file to the Tomcat webapps dir , Tomcat is under the same /home file system. Shut down Tomcat.

Re: Moving from http to https doesnt expire session

2005-05-04 Thread Fabian Pena
Thank Bob. Yes, I think an invalidate and then a request.getSession(true) doesn't work. Do you know if there are some other options, or a tomcat setting to do this? The only solution that i found at this moment, was set a diferent domain name for http and https. As you see, me english is not

username password

2005-05-04 Thread peter thesing
Dear Reader, Recently i have installed jakarta tomcat 4.1 and i have some questions regarding logging in. It is installed from the Cd's that came with SuSE 9.0. SuSE support in non-existing and therefore they are unable to answer my questions. I have the following irritating issues; What are the

How do I redirect all tomcat ports to use SSL?

2005-05-04 Thread Donny R Rota
This weeks puzzler 8^) I want all my Tomcat requests to go through SSL. I setup tomcat, and got port 80 and port 443 (SSL) working. But I cannot redirect port 80 to 443. I keep getting refused: Is there a way in Tomcat to redirect all port 80 requests to SSL(443)? I know you can do it the other

Re: How do I redirect all tomcat ports to use SSL?

2005-05-04 Thread Fabian Pena
In a web application, you can edit your web.xml file and add a security-constraint to redirect all application requests to SSL. I Hope this help Fabian Donny R Rota wrote: This weeks puzzler 8^) I want all my Tomcat requests to go through SSL. I setup tomcat, and got port 80 and port 443 (SSL)

Log the Content-type

2005-05-04 Thread Juan Manuel Soler =?iso-8859-1?b?UmluY/Nu?=
Hi I need to log the content-type of the request in a tomcat web-server, can someone help me with that??? thx - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

POST not working

2005-05-04 Thread Christian Dechery
Hi everyone, hope u can help me solve this one. It's at least weird. I have a 4.1.3 installed on a FreeBSD machine running a huge intranet corporate system. It runs smoothly and very fast, but for some very weird reason, that webapp is the only one on the server wich allows POST. Even the

Re: username password

2005-05-04 Thread Mark Thomas
peter thesing wrote: What are the default user name and password settings for both admin and manager? For security reasons there isn't a default user name and password for either of these applications. How can i enter a custom user name and password to ensure security? Yes. Does an upgrade to

Re: POST not working

2005-05-04 Thread Mark Thomas
What response do you get when you try to POST? Mark Christian Dechery wrote: Hi everyone, hope u can help me solve this one. It's at least weird. I have a 4.1.3 installed on a FreeBSD machine running a huge intranet corporate system. It runs smoothly and very fast, but for some very weird

Loading JAR changes without redeploy.

2005-05-04 Thread Eduardo Lobo
Hi, I have this problem: I need to make a web application that read some resources(xml files) from JAR files (located in the shared/lib folder), but I need to update constantly the JARs content, then I need that the web application always gets the last JAR files version without

Re: username password

2005-05-04 Thread Anoop kumar V
role rolename=tomcat/ role rolename=role1/ role rolename=manager/ role rolename=admin/ user username=root password=w8woord roles=standard,tomcat,admin,manager/ I dont think 'standard' is a role that has been defined - so maybe for debugging purposes remove that and check - i just verified

username passwd

2005-05-04 Thread peter thesing
i am happy Thanks all for your input now i can explore tomcat further I have removed the words tomcat and standard from the line Then with rctomcat restart the application was shutdown and restarted again with no errors and Presto, i can log in to both apps Yours Happy Peter

Re: How do I redirect all tomcat ports to use SSL?

2005-05-04 Thread Donny R Rota
Thanks, I use security-constraints now, and I've been looking for this answer for weeks. I've not found that option available. Can you send me an URL to this? In the mean time, I'm going to see if I can find that option in my other sources. thanks! ...Don...

How to stop Session Tracking, or stop extraction of ;jsessionid=XXX from requested URL

2005-05-04 Thread Jedidiah Northridge
Hello, I don't need the functionality of session tracking, either through URL rewriting or via Cookie assignment. Is there anyway I can disable it completely? More specifically, is there anyway I can stop my Tomcat from extracting the ;jsessionid=XXX from an incoming URI? At present, when I

Re: tomcat stopped

2005-05-04 Thread Wendy Smoak
From: Fred Cook [EMAIL PROTECTED] We just use cp to get foo.war into the webapps dir. But we shut down tomcat first, then restart it. The exact steps: We build our test app under a /home file system, then cp the .war file to the Tomcat webapps dir , Tomcat is under the same /home file

Re: How to stop Session Tracking, or stop extraction of ;jsessionid=XXX from requested URL

2005-05-04 Thread Tim Funk
The easiest thing to do is to change all your jsp's to have the following code. [EMAIL PROTECTED] session='false'% Then unless you have code specifically asking for a session - no sessions should be created. A simplier but uglier kludge is to create a Filter which overrides getSession and

Re: How do I redirect all tomcat ports to use SSL?

2005-05-04 Thread Hassan Schroeder
Donny R Rota wrote: Thanks, I use security-constraints now, and I've been looking for this answer for weeks. I've not found that option available. Can you send me an URL to this? In the mean time, I'm going to see if I can find that option in my other sources. Uh, your other sources would

Re: Network Disk Not Exist Under Tomcat-5.5.9

2005-05-04 Thread NanFei Wang
Dear Jason: You are right : - Uhm you don't want to do that, running any service as Administrator is just asking for trouble. You want a dedicated service account for tomcat, there were some posts about the pernissions and privileges required for such an account a

Re: Network Disk Not Exist Under Tomcat-5.5.9

2005-05-04 Thread Jason Bainbridge
On 5/4/05, NanFei Wang [EMAIL PROTECTED] wrote: Dear Jason: You are right : - Uhm you don't want to do that, running any service as Administrator is just asking for trouble. You want a dedicated service account for tomcat, there were some posts about the

Re: Amount of free disk space

2005-05-04 Thread QM
On Wed, May 04, 2005 at 09:09:53AM +0100, Peter Crowther wrote: : From: Mark Benussi [mailto:[EMAIL PROTECTED] : Is there a Java API call I can make to detect how much disk : space has been : allocated to my account and the current amount used? : : Depending on how hard they've nailed down

symlink not being completely followed

2005-05-04 Thread Scott Heitkamp
I've setup tomcat to follow a symlink to a directory outside of the webapp. That part works just fine. I can load a jsp that is linked outside the webapp directory. The problem that I am having is that Tomcat is not allowing a Java Servlet to completely follow the symlink. Here is what

Re: symlink not being completely followed

2005-05-04 Thread Jason Bainbridge
On 5/4/05, Scott Heitkamp [EMAIL PROTECTED] wrote: I've setup tomcat to follow a symlink to a directory outside of the webapp. That part works just fine. I can load a jsp that is linked outside the webapp directory. The problem that I am having is that Tomcat is not allowing a Java

Re: symlink not being completely followed

2005-05-04 Thread Scott Heitkamp
Yes, I have allowLinking=true in my Context for the webapp I'm working with. Jason Bainbridge [EMAIL PROTECTED] wrote:On 5/4/05, Scott Heitkamp wrote: I've setup tomcat to follow a symlink to a directory outside of the webapp. That part works just fine. I can load a jsp that is linked outside

Re: Network Disk Not Exist Under Tomcat-5.5.9

2005-05-04 Thread NanFei Wang
Hi, Jason Would you please to give me a sample code in a *.jsp file to show how to use \\machinename\sharename I try to use my test.jsp file as follow --- %@ page language=java contentType=text/html;charset=Big5 % % String uncPath=remotehostname\\sharedname;