Hi all,
Can anybody show me how I might get SSL working with embedded Tomcat. When
creating a Connector I have set the value of the secure parameter equals to
true but after this I am not sure what else I need to do.
I have taken a look at the code of Embedded and I notice that there is a
You have to tell tomcat where to find keystore file:
IntrospectionUtils.setProperty(connector, sslProtocol, TLS);
IntrospectionUtils.setProperty(connector, keypass, keystore-password);
IntrospectionUtils.setProperty(connector, keystore, path-to-keystore);
Hope this helps
Aleksandar
Hi,
filext.com ist usually useful in such cases:
http://filext.com/detaillist.php?extdetail=pstSubmit3=Go%21
application/winframe is suggested at the bottom of the page.
HTH,
Christoph
Marot Laurent wrote:
I don't know what to put in the mime-type attribute
mime-mapping
Hi Aleksandar,
Thanks for this. When I update my code to do this I still cannot connect
from a browser using HTTPS (https://localhost:443/). I get a Cannot find
server error in my browser.
But if I change my URL so that I use HTTP (http://localhost:443/) I can see
the Tomcat homepage. Seems
Hi Aleksandar,
Thanks for this. When I update my code to do this I still cannot connect
from a browser using HTTPS (https://localhost:443/). I get a Cannot find
server error in my browser.
But if I change my URL so that I use HTTP (http://localhost:443/) I can see
the Tomcat homepage. Seems like
On Tuesday 31 May 2005 12:39, tom ONeill wrote:
You see tomcat home page on http://localhost:443/ because tomcat redirects
connection (I think so :) ).
I test this on jakarta-tomcat-5.5.9-embedded:
Connector httpConnector = new Connector();
httpConnector.setScheme(https);
Hi all.
Maybe this isn't a good list for this, but here goes.
I know how to define load-on-startup for a Java Web Application, no
problem there. My question is how do I do it for a Struts application?
The trick is, I'd like to load some application parameters from the DB
into the
Hi all,
while trying to get jmx/mx4j running on my tomcat 5.0.28 following
guidellines and other tomcat-user suggestions, I am still running in
some errors and exceptions ...
---
createAdaptor: Exception javax.management.ReflectionException: nested
exception is
Hi,
I have been using Tomcat for some time. Recently my machine crashed and
I had to reinstall the entire environment. When I do startup of Tomcat,
I get an error. I am attaching the screen when I do startup. Can anyone
help me with this?
Thanks...Ram
Or you can use Tomcat 5.5 which does not need a JDK anymore, but can run
on the 5.0 JRE (1.5.0)
Johan Philippe
Real Software
http://www.realsoftwaregroup.com/
-Original Message-
From: George Sexton [mailto:[EMAIL PROTECTED]
Sent: maandag 30 mei 2005 6:48
To: 'Tomcat Users List'
After the whole day searching for answers in the Jakarta docs, I've come up
with something. I made a whole howto which I'll publish right after I test
it.
It turns out that many docs published by people about Tomcat/Apache integration
are wrong and make big mistakes. A lot of them mix-up jk
On 5/31/05, Ram Sriram [EMAIL PROTECTED] wrote:
Caused by: java.lang.IllegalArgumentException: addChild: Child name
'bizDispatc
her' is not unique
at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase
.java:860)
at
There's nothing that's available really:
http://filext.com/detaillist.php?extdetail=pst
Even Microsoft did not provide a type (it is even missing in the registry
definition of .pst).
Johan Philippe
Real Software
http://www.realsoftwaregroup.com/
-Original Message-
From: Marot
Philippe Johan wrote:
There's nothing that's available really:
http://filext.com/detaillist.php?extdetail=pst
Even Microsoft did not provide a type (it is even missing in the registry
definition of .pst).
shouldn't it just go as octet stream?
PST from what I understand is Microsoft Personal Folder file. You shall
always be able to right click on the link and choose Save As in IE or Save
Target As in firefox.
-Original Message-
From: Philippe Johan [mailto:[EMAIL PROTECTED]
Sent: May 31, 2005 8:49 AM
To: Marot Laurent; Tomcat
Hi Aleksandar,
When I enabled logging using the BasicConfigurator I now get much more
logging information (how exactly the logging is configured and what impact
the value of CATALINA_HOME has I havent been able to figure out but Im sure
Ill get it eventually).
Anyway the exception being
Hi Peter,
I am using Tomcat 5.5.9 with the attached server.xml config. Pretty much
using the default settings that come with the install.
Could you elaborate on setting up multicast IP route? At the network
level?
Thanks a bunch.
Gary
-Original Message-
From: Peter Rossbach
Hello,
I'm trying to get Tomcat 5.5 running and I need to use Java 1.4.2. It seems I
require the 'compatibility package' to make this happen. Exactly where is this
available to download, i can't seem to find it.
Thanks
Dave
Main downloads page
http://jakarta.apache.org/site/downloads/downloads_tomcat-5.cgi
See links at bottom of 5.5.9 section
-Original Message-
From: Dave Guzda [mailto:[EMAIL PROTECTED]
Sent: Tuesday 31 May 2005 15:42
To: tomcat-user@jakarta.apache.org
Subject: Where is the
Anto,
Thanks.
That worked. BizDispatcher was declared both in application web.xml and
Tomcats conf\web.xml. I commented the one in Tomcats conf\web.xml. I am
not having the problem anymore...Ram
---
Anto
Hi,
I am using Oracle JDBC Thin Driver from classes12.zip. My code is not
finding the class; I have the path for the zip in the environment
variable, I have the zip file in WEB-INF in ROOT. Do I have to do
anything in any of the Tomcat config files for the runtime to locate the
class.
rename classes12.zip to classes12.jar
-Tim
Ram Sriram wrote:
Hi,
I am using Oracle JDBC Thin Driver from classes12.zip. My code is not
finding the class; I have the path for the zip in the environment
variable, I have the zip file in WEB-INF in ROOT. Do I have to do
anything in any of the
Hi, there,
I got a message below so I just want to know where can
I download the admin package. Suppose it's a java
package? Or a standard .exe file need to run?
== dump ==
Tomcat's administration web application is no longer
installed by default. Download and install the admin
package to use
I'm trying to beat Steve Kirk to the punch!
There is an admin package .zip or tar.gz for the 5.x series available from
a link on the following page:
http://jakarta.apache.org/site/downloads/downloads_tomcat-5.cgi
Tomcat doesn't include apache.
On 31 May 2005, Yuhui Liu wrote:
Hi, there,
I
Although Tomcat doesn't include the httpd server it can itself display web
pages so depending on what you are doing it may be enough.
Ta
Matt
-Original Message-
From: egan0019 [mailto:[EMAIL PROTECTED]
Sent: 31 May 2005 16:30
To: Tomcat Users List
Subject: Re: Where can I download the
Hi Dave,
I've got it and will send it to you if you contact me directly.
Dave
-Original Message-
From: Dave Guzda [mailto:[EMAIL PROTECTED]
Sent: Tuesday, May 31, 2005 7:42 AM
To: tomcat-user@jakarta.apache.org
Subject: Where is the compatibility package to download?
Hello,
I'm
Thanks Dave, but I found it...
I had 'compatibility' in my mind and overlooked 'compat'. :) Now to get it
working...
Thanks for the quick replies - always impressive for a noob to the list ;)
Dave
- Original Message -
From: David Short [EMAIL PROTECTED]
To: 'Tomcat Users List'
Can anyone tell me if they see similar behavior, or if they see
appropriate error and info messages with JkLogLevel?
Bill S.
-Original Message-
From: Shaffer, William (KnowledgeN)
Sent: Monday, May 23, 2005 3:48 PM
To: tomcat-user@jakarta.apache.org
Subject: mod_jk jkloglevel not
Yes it's there. I'm too careless.
Thanks for help.
Calvin
egan0019 [EMAIL PROTECTED] :
I'm trying to beat Steve Kirk to the punch!
There is an admin package .zip or tar.gz for the 5.x series available from
a link on the following page:
hi all,
I try to display the demo example of lucene.
I am using tomcat 5.5.4. Index.jsp is displayed but when I click
search I encountred this message error :
I have put ' lucene-1.4.3.jar and lucene-demos-1.4.3.jar' in the
classPath. Thanks for all
org.apache.jasper.JasperException: Unable
I think the lucene list might be of more help
-Tim
Zakaria KHABOT wrote:
hi all,
I try to display the demo example of lucene.
I am using tomcat 5.5.4. Index.jsp is displayed but when I click
search I encountred this message error :
I have put ' lucene-1.4.3.jar and lucene-demos-1.4.3.jar'
Greetings all!!!
I have setup the isapi_redirect on IIS 5 and pointed it to my Tomcat/JBoss
server. I can get image, html and jsp pages back but when I submit a form from
a JSP, I get a 404. I know I am missing something, but I do not know what.
The requests come in over SSL and are
Hey guys,
I have a problem right now. I wrote a Jsp page to keep sending data to
client browser. However, no exception was thrown when I use out.print() to
send something to client even after client has closed his web browser. My
question is how can i know his browser is closed, so I can stop
That didn't work. Is there any configuration in Tomcat that needs to
know the location of Classes12.zip?
Tim Funk wrote
rename classes12.zip to classes12.jar
-Tim
Ram Sriram wrote:
Hi,
I am using Oracle JDBC Thin Driver from classes12.zip. My code is not
finding the class; I have the
The file should be in WEB-INF/lib
Ram Sriram wrote:
That didn't work. Is there any configuration in Tomcat that needs to
know the location of Classes12.zip?
Tim Funk wrote
rename classes12.zip to classes12.jar
-Tim
Ram Sriram wrote:
Hi,
I am using Oracle JDBC Thin Driver from
Is it in the lib directory of WEB-INF or just in the root of it. You should put
it in the lib sub-directory
-Original Message-
From: Ram Sriram [mailto:[EMAIL PROTECTED]
Sent: 31 May 2005 17:52
To: Tomcat Users List
Subject: Re: Class not found
That didn't work. Is there any
You might need to unzip it, instead.
On 31 May 2005, Ram Sriram wrote:
That didn't work. Is there any configuration in Tomcat that needs to
know the location of Classes12.zip?
Tim Funk wrote
rename classes12.zip to classes12.jar
-Tim
Ram Sriram wrote:
Hi,
I am using Oracle
Hello. I'm hoping someone can help me with a context question.
If I define a context in an xml file in /tomcathome/conf/catalina/localhost
and if a context with the same name is defined in a webapp WEB-INF/xml
file which would win such a fight? I have a feeling my context defined
in
I put the zip file in the lib sub-directory. I unzipped it. None of
these work.
I have have used it before as a zip file and it has worked just fine. My
machine crashed and I have had to setup a new machine and I am having
this problem.
When running under a servlet, does the environment
I renamed the zip file to jar and put it in the lib directory and it
worked. Now it finds the class.
Thanks for the help...Ram
Tim Funk wrote:
The file should be in
This might seem bizarre, but...
Assume that a request contains a session ID as a parameter. Is there a
way *programmatically* to validate that session ID?
In other words, the query string contains the session ID, and in a servlet
I need to be able to ask the container if it is valid or not.
Hey guys,
I have a problem right now. I wrote a Jsp page to keep sending data to
client browser. However, no exception was thrown when I use out.print() to
send something to client even after client has closed his web browser. My
question is how can i know his browser is closed, so I can stop
I am looking for insight on invoking Thread.sleep()
from a Tomcat Servlet. I understand it is explicitly
prohibited in the J2EE spec and it is not hard to
comprehend that invoking sleep on a thread that is
processing multiple requests could cause serious side
effects. Still I hear rumors that
It's allowed and typically a bad idea.
-Tim
Clark O'Brien wrote:
I am looking for insight on invoking Thread.sleep()
from a Tomcat Servlet. I understand it is explicitly
prohibited in the J2EE spec and it is not hard to
comprehend that invoking sleep on a thread that is
processing multiple
Hi Bill,
Thanks again for your response. I believe (if I am not mistaken) that
the method signature displayed in the error as No Such Method (i.e.
the method expected based on the compiled JSP) is the same as the method
you listed below.
Here is the error
java.lang.NoSuchMethodError:
My guess is you are missing the tomcat 4 version of jasper-runtime.jar in
your web-inf/lib dir.
If your precompile a webapp with tomcat 4 code(or I assume jetty uses jasper
as its JSP engine). You need to supply jasper-runtime.jar with your webapp if
you run it on a container running tomcat 5
When I set one up in IIS for Outlook's xnk extension, I used:
Extension: xnk
Mime type application/xnk
-Original Message-
From: Phillip Qin [mailto:[EMAIL PROTECTED]
Sent: Tuesday, May 31, 2005 8:11 AM
To: 'Tomcat Users List'
Subject: RE: .pst file type unknown in tomcat
PST from
The following is a pretty good, even if ugly, article on session ids,
Frank. Very comprehensive and it should cover in some part whatever
you are working on:
http://www.technicalinfo.net/papers/WebBasedSessionManagement.html
On 5/31/05, Frank W. Zammetti [EMAIL PROTECTED] wrote:
This might
and if a context with the same name is defined in a webapp WEB-INF/xml
file which would win such a fight? I have a feeling my context defined
in /localhost is being overwritten by the app. (I'm fighting with
JBuilder 2005 trying to get some JNDI naming stuff to work for my
datasources)
Hi,
We're receiving the following error messages in our isapi_redirect.log,
but are unable to determine the cause.
We're running Tomcat 5.0.28 with JK 1.2.10 IIS on Windows 2000
Advanced Server SP4. The server.xml workers.properties are pretty much
the default out-of-the box copies (But I can
Findlay, Colin, VF-NZ wrote:
Hi,
[Wed Jun 01 02:56:19 2005] [error] write::jk_isapi_plugin.c (619):
WriteClient failed with 2745
Means that the client closed the browser before all data has been set.
[Wed Jun 01 02:56:19 2005] [info] ajp_process_callback::jk_ajp_common.c
(1363):
I fear I should know this answer, but...
How can one, from a servlet (or Struts Action maybe) throw a specific
HTTP return code? I need to return a 403 from a servlet if certain things
are not present in the request... is it just a matter of setting a
particular header, or is there something to
Thanks for the response Patrick. I'm probably going about this all wrong.
Simply put, I'm just trying to make a datasource available to my
application. Sounds sinple enough. I have found a lot of conflicting
information out there on the implementation.
I develop with JBuilder (good, bad or
Yep, I *should* have known that :)...
The sendError() method of HttpServletRequest does it. Sorry for wasted
bandwidth!
--
Frank W. Zammetti
Founder and Chief Software Architect
Omnytex Technologies
http://www.omnytex.com
On Tue, May 31, 2005 3:13 pm, Frank W. Zammetti said:
I fear I should
From
http://jakarta.apache.org/tomcat/tomcat-5.0-doc/config/context.html:
In addition to nesting Context elements inside a Host
element, you can also store them in individual files
(with a .xml extension) in the
$CATALINA_HOME/conf/[enginename]/[hostname]/
directory. See Automatic Application
I think I may have actually found the answer to my own questiondoes
this look like the right path to go down?
http://jakarta.apache.org/tomcat/tomcat-5.0-doc/jndi-resources-howto.html
?
Thanks
-Aaron
Aaron Hackney wrote:
Thanks for the response Patrick. I'm probably going about this
Thanks Jack, that's a good reference. It didn't really answer my specific
question, not that I could see immediately anyway, but I solved the
problem a different way anyhow, so it's all good. I bookmarked that
anyway, could be a good reference down the road for something.
--
Frank W. Zammetti
Probably client's abandoning requests.
-Original Message-
From: Findlay, Colin, VF-NZ [mailto:[EMAIL PROTECTED]
Sent: Tuesday, May 31, 2005 2:54 PM
To: tomcat-user@jakarta.apache.org
Subject: JK network error messages.
Hi,
We're receiving the following error messages in our
Any tips on how to get a JDBC connection going using the embedded version of
Tomcat? Where does the MySql driver go? How is the JNDI resource
configured? I've tried deploying a .war file with a context.xml, but have
had some problems (below). Thanks, Joe
-Original Message-
From: Joe
Many thanks to all.
But one thing i'd like to do is to alert user with Open or Save file as
prompt when he clicks on the link instead of opening it as ASCII/byte
stream in the pop-up ( just as it does with .zip files)
LM
-Message d'origine-
De : Phillip Qin [mailto:[EMAIL
If you want the Open or Save as dialogue box use
res.setHeader(Content-Disposition, attachment; filename= + filename);
Essentially, you will want to add the header Content-Disposition:
attachment; filename=SOME_FILE_NAME into the response. This can be
achieved through your servlet using the
I have done more related to this challenge:
In my servlet, I've tried:
response.setStatus(response.SC_UNAUTHORIZED); // Ie
401
response.setHeader(WWW-AUTHENTICATE,BASIC
realm=\UserDatabase\);
//commenting out this one:
I just loaded Tomcat 5.5.9 on XP Home Edition. When I fire it up, it wants
me to provide a username/password. So, I give it admin/tomcat, which is
what I supplied when prompted when loading Tomcat. After three tries, it
displays Unauthorized.
Any ideas?
Damn, he found it. We try to hide those HOW-TOs really well. ;)
Aaron,
Yeah, that's the right place to look; sorry I didn't include that in
the first reply, but I didn't want to muddy the waters if that wasn't
your real issue. I'm inlining an email that I sent to the list a few
months ago. It's
Problem solved. Oracle had a service running on port 8080 and I was seeing
their login popup.
-Original Message-
From: David Short [mailto:[EMAIL PROTECTED]
Sent: Tuesday, May 31, 2005 1:48 PM
To: Tomcat Users Group
Subject: Tomcat 5.5.9
I just loaded Tomcat 5.5.9 on XP Home Edition.
Hi,
I'm guessing there's no 'official' mechanism within the servlet spec to
identify when a user has logged in. I've looked at the session
lifecycle events but these relate to creating and destroying sessions
http://java.sun.com/j2ee/1.4/docs/api/javax/servlet/http/HttpSessionListener.html
Just a small note, Frank. You use sendError(int sc) for errors but
setStatus(int sc) for codes that are not errors.
On 5/31/05, Frank W. Zammetti [EMAIL PROTECTED] wrote:
Yep, I *should* have known that :)...
The sendError() method of HttpServletRequest does it. Sorry for wasted
bandwidth!
Cool, good to know there is a difference. Thanks!
Frank
Dakota Jack wrote:
Just a small note, Frank. You use sendError(int sc) for errors but
setStatus(int sc) for codes that are not errors.
On 5/31/05, Frank W. Zammetti [EMAIL PROTECTED] wrote:
Yep, I *should* have known that :)...
The
Hi,
I'm not sure this is the rigth place to post my question, but I need help:
I'm developing a digital library and have tomcat-5.0.28 on my machine and
j2sdk1.4.2_06.
I'm using a open source software that gives me an error:
Error message
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Subject: Error java.lang.String.replace
Error message
java.lang.String.replace(Ljava/lang/CharSequence;Ljava/lang/Ch
arSequence;)Ljava/lang/String;
Exception typejava.lang.NoSuchMethodError
I'm not a coder, so I try to figure
Patrick, Thanks *SO MUCH* for the response. I tried your recomendation
using Tomcat 5.5 and it worked as you stated in your inline post.
I was pulling my hair out trying to replicate my success with JBuilder
2005.
I finally figured it out:
I followed your directions below with 1 exception.
Hi
I am trying to setup Tomcat in chroot environment and have
successfully started it up. However, when I run Tomcat in chroot, I
see 10+ Tomcat processes as oppose to a single Tomcat process in a
non-chroot environment. Why is this? Is it normal?
Thanks,
Ben
You can see admin user/password in $TOMCAT_HOME/conf/tomcat-users.xml file.
Regards,
Praveen Soni
STMicroelectronics Pvt Ltd.
David Short wrote, On 06/01/2005 02:18 AM:
I just loaded Tomcat 5.5.9 on XP Home Edition. When I fire it up, it wants
me to provide a username/password. So, I
73 matches
Mail list logo