Hmm - when reading HTTP1.1 chunked data, is there a way of detecting
reciept of the terminal 0 chunk in a servlet ?
Googling about, Apparently this does not report an EOD exception
(as I would expect) because some people have been using post last
chunk data for server internal out-of band
Hi,
I'm trying to upgrade from Tomcat 5.5.15 to 6.0.10. Everything seems
to have gone fine except that most of my includes are broken.
I can do this:
[EMAIL PROTECTED] file = something.jsp %
But I can't do this:
[EMAIL PROTECTED] file = /path/to/something.jsp %
The latter gives me a status
On 3/4/07, Patrick Lee [EMAIL PROTECTED] wrote:
But I can't do this:
[EMAIL PROTECTED] file = /path/to/something.jsp %
It works for me (this will be tested in the TCK, so there can't be any
regressions on this sort of feature). The path is still relative to
the webapp root, of course.
Rémy
On 3/3/07, Etienne Giraudy [EMAIL PROTECTED] wrote:
Shall this be considered as a regression as in that case tomcat
configuration is somehow altered by a web app?
(in that case I'll fill a bug in bugzilla))
I don't think there can be a change of behavior in this sort of thing
between TC 5.5
I would assume it works in general and is specific to my instance here.
Note that
[EMAIL PROTECTED] file = /path/to/something.jsp %
works fine if I am inside the root directory of the webapp, If however
I have that include inside /somewhere/file.jsp then it always gives me
a File not found.
On 3/4/07, Patrick Lee [EMAIL PROTECTED] wrote:
I would assume it works in general and is specific to my instance here.
Note that
[EMAIL PROTECTED] file = /path/to/something.jsp %
works fine if I am inside the root directory of the webapp, If however
I have that include inside
Hi All,
I've hit this problem and my development has come to a
screeching halt. :-\
I'm using Tomcat 5.5.17 with a JDK/JRE of 1.5.0_11
on a Windows XP Pro SP2 system.
In my Servlets I use:
RequestDispatcher dispatcher =
getServletContext().getRequestDispatcher(/servlet/BlahServlet);
if (
On 3/4/07, Etienne Giraudy [EMAIL PROTECTED] wrote:
I guess that the point that is questionnable here is the way the API
is designed: modifying the system property 'legal' and, AFAIK, it is
the only way to choose the parser implementation we want to use
To see how standard and legal this usage is, you can try enabling
the security manager (the only way to control writing to system
properties - which are always JVM wide, so since Tomcat uses JAXP,
Tomcat cannot avoid being affected to some extent when a webapp
changes the parser factory - is to
I guess the general form of this question is, with HTTP1.1 chunked
input, how do I read a chunk at a time, which requires I know the
length of the chunk before calling read() so if I attempt to read
more than the length of the chunk so I can process it immediately
instead of waiting for
The servlet API does not expose these details. At best you have the
InputStream to read from. (And use available() if you want to try to
read without blocking (but due to buffering probably won't work anyways))
But since you can't send the response without finishing the reading of
the input
Hi All,
I was at least able to get the Servlet that was unavailable
to finally show up. This has been one of the most frustrating
things I've come across.. :-\
I figured that something was happening in the Servlet before
the Servlet that was being flagged as unavailable, so I
commented out
Hello All-
Attempting to get a self-signed certificate CACERT operational and cannot
determine which valid storetype format using the keytool command
I have tried storetype=JCEKS but this always displays
invalid keysotre format
Thanks!
Martin--
It seems that Tomcat 6 is not finding the jars in the application
library WEB-INF/lib.
If I put the spring.jar in the tomcat lib directory it is found.
If I put it in the application lib directory it is not found.
If I fix the spring.jar issue, I just get an Class not found error on
the next
Did you set the environment variables correctly?
CATALINA_HOME , should point to the root folder of Tomcat's installation, and
JAVA_HOME to JDK's root folder.
Also specify the directory of your project in the docBase attribute of Context
definition.
Tomcat auto detects the libs under
From: Martin Gainty [mailto:[EMAIL PROTECTED]
Subject: valid keystore formats?
I have tried storetype=JCEKS but this always displays
invalid keysotre format
The default keystore format is jks (not case sensitive); support for
other formats is provided by additional JCE providers that
Hi!
I have a JSP-App and need a database connection (to the MS Access
database unleashed).
But, I get following exception:
org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot create JDBC
driver of class '' for connect URL 'null'
This is the context in conf\Catalina\localhost
FYI problem solved,
In case some other newbie has the same problem, I've decided to add this
message to the list.
I solved my problem of not being able to access the tomcat server functions
through anything other than localhost:8080.
The problem was a misunderstanding of how the httpd server
Do you have your host appBase set to be the same as your webapp
docBase?
Yes, the context docBase is set at .
Easy enough for me to change that and I'm guessing there are good
reasons not to have a setup like that.
Thanks.
-
Hi Martin,
Isn't it supposed to be JKS.
John
Hello All-
Attempting to get a self-signed certificate CACERT operational and cannot
determine which valid storetype format using the keytool command
I have tried storetype=JCEKS but this always displays
invalid keysotre format
Thanks!
Martin--
Rashmi Rubdi wrote:
Did you set the environment variables correctly?
CATALINA_HOME , should point to the root folder of Tomcat's installation, and
JAVA_HOME to JDK's root folder.
I screwed up CATALINA_HOME but after correcting it and rebooting the
problem remains.
Also specify the
From: Ron Wheeler [mailto:[EMAIL PROTECTED]
Subject: Re: WEB-INF/lib ignored in Tomcat 6
Should I add a doc base to the application context?
No; docBase should only be used when the app is stored outside of the
Host appBase directory.
Tomcat auto detects the libs under WEB-INF/lib of a
Hi Ron--
.\META-INF\context.xml has a reloadable attribute which must be set to true to
tell tomcat to monitor jars in .\WEB-INF\lib
http://tomcat.apache.org/tomcat-5.5-doc/config/loader.html
also take a look at the delegate attribute to specifically load classes via
parent class loader before
On 03/03/2007, at 5:42 PM, Paul A. Hoadley wrote:
Ultimately what I want to do is quite simple: display a build
number in the footer of some JSP pages. I'm using Ant's
'buildnumber' task to increment the build number at each compile,
and I am adding a global 'Implementation-Version'
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)
signature.asc
Description: OpenPGP digital signature
yes I surmised there was a dependency on the provider (in my case I was using
BC as some of my Axis Projects were using BC)
In the case of the default Sun provider I'll use the default keystore of JKS
Thanks Chuck,
Martin--
if available() is accurately suported I guess that does part of the
job, but it still doesn't let you know the last chunk you read was
the last one. It is wholly dependent on the higher levels reading an
end tag, which seems like a design mistake instead of getting and
end of file or end of
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 first part of it
Hi:
I am hoping someone can help me identify what I'm sure is a very
simple oversight on my part...but I cannot get Apache+Tomcat working...
Configuration: Mac OS/X 10.4.8 (PPC client), Apache 1.3.33, mod_jk
1.2.21, Tomcat 6.0.10
I can run Tomcat standalone, (i.e. start and browse to
Hi,
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 /myapp/
description The requested
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 know what I am doing.. Here is what I know and my setup for this test
example that I keep getting a class compile
From: Paul A. Hoadley [mailto:[EMAIL PROTECTED]
Subject: Re: Using getImplementationVersion() to read MANIFEST.MF
1. How can I read the value of the property from some arbitrary
class, say /WEB-INF/classes/some/package/Version.class?
You can use the following construct to create an
Sorry about the previous premature post.
This is the full question/problem
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 know what I am doing.. Here is
On 05/03/2007, at 5:39 PM, Caldarale, Charles R wrote:
From: Paul A. Hoadley [mailto:[EMAIL PROTECTED]
Subject: Re: Using getImplementationVersion() to read MANIFEST.MF
1. How can I read the value of the property from some arbitrary
class, say /WEB-INF/classes/some/package/Version.class?
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 the app is deployed as a .war
on a device with a
35 matches
Mail list logo