;, getPathInfo()
would return /and/this/fake/path, I guess. In your case it's null.
- Jens
--
Veniamin Fichin
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
there?
--
Veniamin Fichin
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Arsen A. Gutsal wrote:
Getting subj during deploying into root () context.
Who may help me?
May be there really is another context at this path? Check all path
attributes of Context element(s) in your server.xml .
--
Veniamin Fichin
Francisco José Arnau Vives wrote:
How to know if platform is Windows or Linux from a jsp file in order to
define variables to access to the file system?
java.lang.System#getProperty(os.name)
-
To unsubscribe, e-mail: [EMAIL
[EMAIL PROTECTED] wrote:
Does one need to stop-restart Tomcat server every time when a servlet is changed/compiled ? The restart takes lots of time during the development and testing of web application. Is there any way to expedite this.
reloadable=true attribute of Context tag will do what
reloadable attribute is enough, but yes, when you add a new one, you
should edit web.xml and restarting Tomcat or redeploy entire webapp.
mfg
Michael Nitschke
-Original Message-
From: Veniamin Fichin [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 02, 2004 12:53 PM
To: Tomcat Users List
Ronald Klop wrote:
The docs on
http://jakarta.apache.org/tomcat/tomcat-5.0-doc/config/context.html do
not mention the default setting of reloadable.
Does anybody know what it is?
Just try it! :-) IMHO reasonable default setting is false.
Ronald Klop wrote:
Does the maxPostSize setting for the Connector in server.xml affect the
max. size of a file upload?
Since file upload occurs with POST method, yes it restricts upload
file size.
-
To unsubscribe, e-mail:
Ronald Klop wrote:
Is it possible that this does not work?
The docs
(http://jakarta.apache.org/tomcat/tomcat-5.0-doc/config/ajp.html) say
that the default is 2MB, but I can download much larger files.
Is this a bug or a feature?
Don't know, I never used it. Additionally, I have no ajp.html
Jonathan Eric Miller wrote:
The strange thing is that this page seems to only intermittently be
displayed. i.e. it is catching the case where the session expires, but, in
some cases since I'm using container based security, it is going back to the
login page. Sometimes it goes to this page first,
Xavier MOGHRABI wrote:
Hi,
I've read the documentation but I don't understand clearly where can I
configure TOmcat to use *PersistentManager* instead of *StandardManager*.
Do you know it ?
Shortly:
Context docBase=app.war path=/app
!-- ... --
Manager
Jonathan Eric Miller wrote:
Yeah, that seems like it would work. I'm wondering if I could maybe use a
filter by itself though and not use the listener and do something like the
following.
1. Intercept all requests with a filter.
2. Get the HttpSession out of the request. Get the session ID by
Jonathan Eric Miller wrote:
Thanks. I think option #1 is what I'm looking for. What I don't understand
is what I need to do with the session listener though?
I don't understand how to determine whether the new session is truly new, or
if it's a new session because a previous session timed out.
agarlita,dan wrote:
I have some questions about error customisation.
I want to change the look of 500 Error. (that is
org.apache.jasper.JasperException)
so, I want to redirect all strings to the new page.
so, for example the 404 error is simple becouse we know that is Page Not
Found
but, the 500
[EMAIL PROTECTED] wrote:
I have a JSP page that has an applet embeded in it. The Applet talks to a
Servlet. I have a session within the JSP when I try to access the session
within my Servlet, I get NullPointerException as there is no session
object.
How do I get the session object in my Servlet
Hello all!
Can anybody tell me how can I archive subj? I need to view all
sessions rotating in a server and have an ability to modify their
content, mainly for testing/debugging purposes.
I'm able to walk through Tomcat containers hierarchy
ServerFactory.getServer()
server.findServices()
Emerson Cargnin wrote:
How do I read a cookie (inside a JSP) that I created inside a servlet.
It looks that it has different path properties and so when I'm inside
the JSP it can't read the cookie...
There is javax.servlet.http.Cookie.setPath(String) which obviously
works as it named. :-)
MUKUND Premchander wrote:
I am using tomcat 3.2 not tomcat 4.0 hence as per your suggestion
I did try and implement HttpSessionBindingListener and put the object
into the session in the same jsp ,
the valueBound was called but when the session access threw null pointer
exception valueUnbound
[EMAIL PROTECTED] wrote:
I have a directory that contains servlets. This directory, named testdir,
sits on the server, but not in Tomcat 5.0 ( or webapps/WEB-INF/classes).
How do I deploy this directory?
I went to Tomcat Manager, and tried to enter the values in the following
fields, but it
Julio César Aguilar wrote:
I've done several tests in Windows and this is what I found.
To remember my settings
No CATALINA_BASE defined. Tests done with CATALINA_HOME/shared/lib.
1. As being told, I can find jars put in CATALINA_HOME/common/lib.
2.
What exactly the moment when CNFE is
Hello Seiji.
What it means character is not encoded correctly? If PDF content
is unreadable, then that's PDF file problem, not Tomcat. Is this PDF
opens correctly by itself, i.e. when you open it through Adobe Reader?
Anyway, just do response.setContentType(application/pdf) and let
seiji takegata wrote:
Hi Veniamin,
Thank you for your reply.
What it means character is not encoded correctly? If PDF content
is unreadable, then that's PDF file problem, not Tomcat. Is this PDF
opens correctly by itself, i.e. when you open it through Adobe Reader?
Anyway, just do
seiji takegata wrote:
Try this:
%@ page contentType=application/pdf; charset=ISO-8859-1
pageEncoding=Shift_JIS %
I tried. This time jasper generates:
response.setContentType(application/pdf; charset=ISO-8859-1);
OK, and with that you still can't get PDF right?
Maybe you should
Julio César Aguilar wrote:
If you use multiple instance Tomcat's feature, this may be the case.
In Windows I'm using a single instance of tomcat, there's no
CATALINA_BASE so it should be the same as CATALINA_HOME if I understand
correctly.
Then I don't know... My installation is that:
MUKUND Premchander wrote:
Thank you for your reply .
I use IE 6 as my browser in windows and tomcat on HP unix.
I meant that ,all I did was open a browser window load my application,
goto a particular page Set page to refresh for every 10 secs(
application had a combo box to set interval of
Julio Cesar Aguilar wrote:
I've read the ClassLoading part of Tomcat documentation and searched this list
but I've still found no clue to my recent problem:
Tomcat 5.0.19
JDK 1.4.2_03
Windows XP
I have several applications running with a common jar of my own in each
WEB-INF/lib and everthing
Malcolm Warren wrote:
I wish it was as easy as you say...
I know that I don't have to implement my own url re-writing, but I did,
and it was a long time ago!
Right now I don't really want to re-write everything - sending the
jsessionid as an ordinary parameter worked in Jrun, can't it work in
QM wrote:
: - Finally, is it the best practice to hard-code the 'context' prefix in
: your application?
JSTL. I forget the exact tag names, but any JSTL reference will have
them listed. There's a tag for creating context-relative links, and (I
believe) one for creating context-relative image
Peter Guyatt wrote:
Hi There,
The NPE is coming from the { if (session == null || session.isNew()) }
since even if session is null then you are still trying to call a method of
session.
According to Java language specification, 15.24 Conditional-Or
Operator ||, it's not so. That says
Hi there.
May be this bug report
http://issues.apache.org/bugzilla/show_bug.cgi?id=23929 will enlighten
you, me and others who have issues with i18n. Very professional
explanation of the problem, thanks to Remy.
[EMAIL PROTECTED] wrote:
The problem:
I am using Oracle 8.1.7 DB , in a
Dennis Thrysøe wrote:
Hi,
I'm having problems including a JSP page from another JSP page using
parameters with special characters.
I looked through the archives, but couldn't find anything about this issue.
Try this URL:
http://issues.apache.org/bugzilla/show_bug.cgi?id=23929 . Connector
This is my problem also, and sadly it's so since long time I use Tomcat.
I've attach a simple little test case .war file to reproduce the
problem. There are four HTML forms there, two of them submits to JSP
page (GET and POST methods), others go to servlet (same methods).
On top of it is
Some fixes to WAR file posted recently. Now POST methods all work
fine, but none of GET.
Original Message
Subject: Re: Servlet on Tomcat + Oracle +ISU 8859-8 (Hebrew CharSet) -
encodin g problem
Date: Wed, 31 Mar 2004 14:34:27 +0400
From: Veniamin Fichin [EMAIL PROTECTED
[EMAIL PROTECTED] wrote:
Thanks Veniamin Fichin,
Can you copy paste your code that solves the problem?
The output encoding of view.jsp page was hard-coded utf-8 value. I
changed it to be more flexible by lookling into session attribute which
was set previously. Code snipped follows
the scene to not ask such a
stupid questions again.
Thanks a lot.
--
Veniamin Fichin [EMAIL PROTECTED]
Programmer athttp://www.rbcsoft.ru/
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL
Veniamin Fichin wrote:
Hello list.
I fought with that for about two weeks recently and had done it, so
my JNDIRealm works. But! Now servlet that just gets a connection from
JNDI resource and tries to query database is broken! Situation is that:
Correction: not JNDIRealm
and
want to use this resource in one of them only. Will ResourceLink's
existance in one Context be the guarantee that only this Context will
have an access to Resource, but not the others?
--= [ cut ] =--
--
Veniamin Fichin [EMAIL PROTECTED]
Programmer athttp://www.rbcsoft.ru/
--
To unsubscribe
existance in one Context be the guarantee that only this Context will
have an access to Resource, but not the others?
--
Veniamin Fichin [EMAIL PROTECTED]
Programmer athttp://www.rbcsoft.ru/
?xml version=1.0 encoding=UTF-8 ?
Server port=8005 shutdown=SHUTDOWN debug=0
GlobalNamingResources
be it's a default value of buffer size of a JSP file? Look at
%@ page buffer=... % directive, its default is 8kb.
--
Veniamin Fichin [EMAIL PROTECTED]
Programmer athttp://www.rbcsoft.ru/
--
To unsubscribe, e-mail: mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL
configured, I want to use it. I
tested it in a servlet, and it works.
--
Veniamin Fichin [EMAIL PROTECTED]
Programmer athttp://www.rbcsoft.ru/
--
To unsubscribe, e-mail: mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Thanks for your reply!
See below...
Roberts, Eric wrote:
Hi,
Try this:
First define your DataSource resource e.g.
Resource name=jdbc/esljsp auth=Container scope=Shareable type=javax.sql.DataSource/
and add the necessary ResourceParams name=jdbc/esljsp
and the parameters.
then define your
Roberts, Eric wrote:
Yes, but the resource name is jdbc/esljsp - java:comp/env/jdbc/esljsp would be used in a servlet using JNDI such as:
ctx = new InitialContext();
Context envCtx = (Context) ctx.lookup(java:/comp/env/);
DataSource ds = (DataSource) envCtx.lookup(/jdbc/esljsp);
)DataSourceName only.
And I see that tomcat docs is wrong in DataSourceRealm description,
because attribute list there is not reflect real things in code.
Now I'm trying to look into the sources, but I'm not so hacky...
-Original Message-
From: Veniamin Fichin [mailto:[EMAIL PROTECTED
Roberts, Eric wrote:
Just some other things which may help:
I define my Realm datasource in the GlobalNamingResource element of server.xml and this is where the parameters are also defined.
Any Context requiring authentication is defined with privileged=true.
My Realm is defined within the
Hello list!
Currently I'm trying to protect some area at my site with FORM based
authentication. Following Servlet 2.3 specification, I wrote this
configutation:
--= [ server.xml ] =--
Resource name=jdbc/esljsp
type=javax.sql.DataSource
auth=Container
Hi list!
I've faces the strange problem that I don't understand.
I need to configure some authentication at some part of our site, so I
chose FORM based authentication through DataSourceRealm described in
Realm Configuration HOW-TO.
First, I've mentioned that explanation about DataSourceRealm
=text name=j_username value=br
input type=text name=j_password value=br
input type=submit
/form
--= [ / cut ] =--
Veniamin Fichin wrote:
Hi list!
I've faces the strange problem that I don't understand.
--= [ cut ] =--
--
To unsubscribe, e-mail: mailto:[EMAIL PROTECTED]
For additional
Andrew Guts wrote:
When I include templates using %@ include % i see a lot of '?'
instead of text. When using jsp:include all seems as expected.
Why so?
Maybe you should use %@ page pageEncoding=... % ?
--
To unsubscribe, e-mail: mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
Hello list!
Chandolu, Yuva wrote:
Hi,
I get the error org.apache.jasper.JasperException: Cannot load JDBC
driver class 'null'.
What is this and how can I proceed from here? I have Tomcat 4.1.12,
JDK1.4.1 installed and have DBCP 1.0, Pool 1.0, Collections 2.0, and
Oracle's jdbc driver
Tuncay Baskan wrote:
I'm trying to use a JNDI name for a JDBC resource. Configuration is
as follows:
Tomcat 4.0.3
DBCP 1.0
In the server.xml, I have the following DefaultContext entry. (It must
be DefaultContext because there are 3 other webapps that use the same
database)
--= cut =--
Hello list!
May be I've made a mistake in my previous post with the same subject,
when I asked a question after thanking people for helping me and
providing many lines of my (now) working configuration. I guess nobody
just saw it.
The question is: what is the way to check if DBCP is really
Hello list!
Thanks to Robert Sowders, John and Craig, I've finally set DBCP up. For
those who still trying to do the same, here is my configuration. If
anybody have issues about it, please respond.
--= [ server.xml snippet ]=--
Resource name=jdbc/esljsp
Roberts, Eric wrote:
Try this way instead - it works for me!
Thanks, I'll try it. I just thought that I cat use Oracle dbcp
implementation only, without BasicDataSourceFactory Tomcat alternative.
Server.xml:
Resource description=Oracle database resource for esljsp project
Tushar Kulkarni wrote:
Hi I want to set multiple instances for tomcat4. How do I do that?
Thanks
In the Tomcat documentation there are some explanation about it. Mainly
you have to set CATALINA_HOME to point to your Tomcat installation, and
CATALINA_BASE pointing to directory where you want
Turner, John wrote:
That's pretty much the solution...this has come up before.
By the time JK gets involved, Apache is just about done with the URL...it
doesn't perform any rewriting, etc. it's just looking for a match.
But in my understanding first of all when Apache is requested to process
Madere, Colin wrote:
The docs at http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/index.html
dont' quite seem to cover everything (you know what I mean). I build with
the --enable-jni since it is suggested for Apache 2.0 and I get a
jk_jnicb.so but I don't get a mod_jk.so as the
Craig R. McClanahan wrote:
A have to implement some functionality that related to multiple
instances. I need a servlet which accepts common http requests from
client-side applets. When a next request arrives, servlet must
register a client somehow (for example, store its name and, possibly,
Tim Funk wrote:
You'll want to protect your WEB-INF directory as well as any properties
files. You can do that by using by the following in your httpd.conf:
(This should be the syntax)
Files ~ \.properties$
Order allow,deny
Deny from all
Satisfy All
/Files
Directory ~ /WEB-INF/
Craig R. McClanahan wrote:
May be my question is not too close to this topic, but it may be
related. It is below...
I was reading in a book today that JSP implementations are still
permitted to create multiple instances of the ... servlet in order to
provide improved performance. Does
Mladen Turk wrote:
The Jakarta-Tomcat-Connector team is pleased to announce the
availability of JK2 2.0.1.
Binaries and source versions of the release are available and can be
downloaded from :
http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk2/release/v2.0.1/
May be a
Rossen Raykov wrote:
Tomcat 4.x JSP source exposure security advisory
1. Summary
Tomcat 4.0.4 and 4.1.10 (probably all other earlier versions also) are
vulnerable to source code exposure by using the default servlet
org.apache.catalina.servlets.DefaultServlet.
--= [ cut ] =--
3.
61 matches
Mail list logo