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
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
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
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?
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
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
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
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
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:
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
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
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(
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);
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
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
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
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
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 )
);
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
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:
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
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;
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 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,
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
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 .
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
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 =
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
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
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
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
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
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
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
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:
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
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
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
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
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();
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
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
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
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());
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
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.
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
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
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
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)
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]
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
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
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
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
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
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
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...
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
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
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
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
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
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
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
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
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
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
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;
70 matches
Mail list logo