At 01:53 AM 03/12/01, you wrote:
This default is required by the Servlet and JSP specifications, so it is
not configurable.
So why did they decide against unicode??? Shouldn't that be the standard?
Quick question (vaguely off topic?) re. encoding:
The situation:
We have a database (at the
On Mon, 3 Dec 2001, Jim Cheesman wrote:
Date: Mon, 03 Dec 2001 09:11:56 +0100
From: Jim Cheesman [EMAIL PROTECTED]
Reply-To: Tomcat Users List [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Subject: Re: Jsp compile option for Big5 encoding / encoding question
At 01:53 AM
Craig (or somebody else), could you, please, give me a hint in following question?
| JSP pages follow these rules:
|
| * If you declare a pageEncoding attribute on your %@ page %
| directive (supported in JSP 1.2 only), that character set is used
| to read the text of the page itself (as
Thanx, Craig, but something is wrong...
| Yes, dynamically setting the content type and character encoding is
| supported in JSP 1.2 (and therefore in Tomcat 4). You have three choices:
|
| * You can use a scriptlet to set the content type at the top of your
| JSP page:
|
| %
| String
i have to give some arguments to java.exe like -Xms etc to let the virtual
machine use more memeory than it uses by default.
right now, i have modified the the .bat file
is this is the right place and the way to do it? or is there any better way
of handling this?
i am on NT with tomcat-4.0.1
I have install TOMCAT 3.3 and jdk 1.3.0
TOMCAT_HOME and JAVA_HOME is set.
and when i go to the examples URL i have a error :
java.lang.NoClassDefFoundError: sun/tools/javac/Main
i start tomcat with : bin/tomcat.sh start,
and the display that CLASSPATH= $TOMCAT_HOME/lib
nothing for the JDK???
At 09:02 AM 03/12/01, you wrote:
And thanks for the (mostly) snipped answer.
At 01:53 AM 03/12/01, you wrote:
This default is required by the Servlet and JSP specifications, so it is
not configurable.
So why did they decide against unicode??? Shouldn't that be the standard?
| Thanks William
| My libapr.dll wasn't in the above directory
| Unfortunately, it only changed the error message.
| Syntax error on line 193 of e:/program files/apache
| group/apache/conf/httpd.conf
:
| Cannot load e:/program files/apache group/apache/modules/mod_webapp.so into
| serv
| er:
-Original Message-
From: Justin Rowles [mailto:[EMAIL PROTECTED]]
Sent: Friday, November 30, 2001 9:57 AM
To: 'Tomcat Users List'
Subject: RE: Known Memory clean-up issues?
NOW, does anyone know when the damn jspDestroy method should
be invoked?!
PLEASE!
From the JavaDoc
I had the same problem and here is what I found:
I found where Tomcat is trying to add the tools.jar file. The line contains:
System.getProperty( java.home ) + /../lib/tools.jar
A println(java.home = + System.getProperty( java.home )) in a test
program returns:
java.home =
Hi all,
Recently I saw in the vuln-dev list a directory
listing vulnerability in Tomcat 3.2.3. It's simple,
just call the URL:
http://yousite/%3f.jsp
Is it fixed in Tomcat 3.2.4 ?
Thanks
--
To unsubscribe: mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
As it seems a whole lot of people keep coming back to the classloader, I
have a few questions in general.
1) Tomcat seems to be taking a pretty self-centered view of the world, in
that any libraries it needs must be installed in one of it's pre-designated
directories. Why is that? I'm
Hi !
I've been boxing around a problem on tomcat 4.01 which I didn't have on 3.2.1.
I have a repository of servlets in a DB2-database. To add a servlet I have another
servlet responsible for looking at uploaded data, load the data, fetch the packagename
of the uploaded class. Finally I store
Hi Andi,
You don't mention below what directives you added to inform
Apache how to find the /siteos resources. You can try adding:
forwardAll=false
to the ApacheConfig ... entry to have a conf/auto/mod_jk.conf
file written that tries to allow Apache to serve static resources.
You can use
One of the advantages of mod_jk is that it handles ;jsessionid
automatically. I would recommend using it over mod_jserv.
However, to deal with ;jsessionid with mod_jserv in the past,
I have used:
Location ~ /.*;jsessionid=.*
SetHandler jserv-servlet
/Location
Cheers,
Larry
-Original
I don't believe:
docBase=/site/www.tenetchoices.com/webapps/
would be correct in any version of Tomcat. docBase should
point to the directory that contains WEB-INF as one of its
subdirectories. Typically WEB-INF's are found under
*subdirectories* of webapps, not directly underneath
Hi,
I've found nothing about how to save Variables wich are stored globally in
reference to one context.
Normally I handle the variables in session objects for each user. But I've
some preferences wich should be read only once at the start of the tomcat
server and then always only read by the
Amol,
I am on solaris and using the same options by setting them in
CATALINA_OPTS. On NT you can set CATALINA_OPTS in your system or user
environment.
mss
-Original Message-
From: amol
To: Tomcat Users List
Sent: 12/3/01 4:57 AM
Subject: init arguments to java.exe
i have to give some
Just a note on the URL after you get the driver working:
connectionURL=jdbc:mysql://localhost/authority?user=test;password=test
The connection URL should have an amperstand encoded instead of a semicolon
before password. It's unique to MySQL's JDBC driver and isn't done with any
others that
Craig,
Thanks for the reply. The servlet.jar file was in the jre/lib/ext
directory! I took it out and restarted tomcat, but came up with the same
problem. I also did a find on servlet.jar in TOMCAT_HOME and found only the
one instance in common/lib. I reset my CLASSPATH (which should not make
I have written an application for my Tomcat container integrated with
Apache. I'd like to use it under two different virtual hosts and with
two different url path (see path attribute in Context tag of server.xml
configuration file), but, for resource reasons, I do not want two copies
of my
You may want to use a properties file or much more 'mordern' nowadays,
create XML file which hold the values.
The Properties class is easier to work with directly I think.
Wouter
-Original Message-
From: Sebastian Hagenbrock [mailto:[EMAIL PROTECTED]]
Sent: Monday, 03 December, 2001
Hi
Please I need help.
I asked this question before but didn't get any reply.
I'm using Tomcat3.2.3 and IIS for my project.
Unit test on my computer is going fine. But on the server one application after
HttpSession session = request.getSession(false);
return NULL, like session does not
Have a look at system.properties
eg:
// Set up new system propeties
sc = getServletContext();
RootPath = sc.getRealPath(/);
propFile = new FileInputStream(RootPath + myapp.properties);
Hi everyone. I have some newbie questions.
I use Tomcat 3.2.3 /Linux and Oracle 8i /Windows NT
I would like to know how should I specify JDBC drivers (classpath, their
location).
I read also that Oracle JDBC drivers need to use versions of JDK = 1.1.1
or our server is 1.3.1 Is this absolutely
Hi, I'm working with Tomcat 4.0.
I need to make user's validation for some directories
with servlets into.
I'm installing a webapplications with Tomcat 4.0 and the servlets.
I'm trying to do user authentication on login, following the
examples in :
Sorry! This was a bug in MY code, not Tomcat's! There was a
change after all in my code between the version that works
and the one that doesn't. It's fixed and working fine.
No problem with Tomcat. No problem with com.oreilly.servlet
package.
-Original Message-
From: Jerome
Would anybody be able to help me out with this?
I have a TOMCAT server at www.mydomain.com www.mydomain.com and it's
working on the regular port 80.
I was wondering if there is a way I could set it up so, if I get a request
to kpax.mydomain.com that it would go to that server.
Right now all
Is there a way to set a global application variable for all servlets? I am
using Tomcat 4.0.1 and have seen the SnoopSession example for setting an
init variable for a servlet...I need a global variable. Thanks.
Chad Alan Prey
Software Engineer YesMail.com
home - 619.299.1784
cell -
I am using Tomcat 4.0 and JDK 1.3.1. with a Win98 OS. I believe I have my
JAVA_HOME, and CLASSPATH set properly but my Apache web server and Tomcat
are not compiling the JSP files. I think the problem is the catalina.bat
file. The catalina.bat file looks for an NT environment. If it finds NT
How did you get that URL?
It should look like this:
http://localhost:8080/news/servlet/lm;jsessionid=22ym1bzx71?act=bgetinde
x
-Ursprüngliche Nachricht-
Von: Erwin Ambrosch [mailto:[EMAIL PROTECTED]]
Gesendet: Montag, 3. Dezember 2001 17:35
An: Tomcat Mailinglist
Betreff: TC 3.3
Create a .jar file with the single class containing your global variable(s). Put that
in the $CATALINA_HOME/common/lib directory (I think that's the right one). Any
servlets running under that Tomcat instance wil have that .jar file in their
classpath. If the variable(s) can change, you
-Original Message-
From: Sebastian Hagenbrock [mailto:[EMAIL PROTECTED]]
Sent: 03 December 2001 14:36
To: Tomcat Maillist
Subject: How to create global variables wich could be accessed by all
jsp sites and servlet's?
Hi,
I've found nothing about how to save Variables wich are
On Mon, 3 Dec 2001, Ing. Gabriel Gajdos wrote:
Date: Mon, 3 Dec 2001 11:02:50 +0100
From: Ing. Gabriel Gajdos [EMAIL PROTECTED]
Reply-To: Tomcat Users List [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: RE: RE2: Jsp compile option for Big5 encoding / encoding question
Thanx, Craig,
I get the URL when I login using FORM based authetnication.
After being logged in properly the ;jsessionid is no longer part of the URL
for additional requests.
Erwin
Ralph Einfeldt wrote:
How did you get that URL?
It should look like this:
I'm using Tomcat 4.0 and IIS 5.0 for an https site.
I need to use into a JSP page the Client Certificate sent by the Client to
the Server IIS during SSL Hanshake.
Someone know how I can do it?
Thanks.
Gianluca D'Introno
--
To unsubscribe: mailto:[EMAIL PROTECTED]
For additional commands:
Hi,
I have a servlet that functions as a frontend to a digital object
repository. Requests to the servlet are in the form of encoded URLs that
pass the necessary repository query arguments as parameters. Once the
query has been resolved by the servlet, the URL obtained from the
repository is
What does your form look like ?
-Ursprüngliche Nachricht-
Von: Erwin Ambrosch [mailto:[EMAIL PROTECTED]]
Gesendet: Montag, 3. Dezember 2001 18:03
An: Tomcat Users List
Betreff: Re: AW: TC 3.3 jsessionid
I get the URL when I login using FORM based authetnication.
After being
Mike Kelley wrote:
Read that but it leaves some questions for a newbie ... Like where and how
to setup the authentication? The how to just kkinda skips that part ...
Here's how to do this for the SOAP servlet.
Other servlets should be similar.
On the client, set the username and password
Hi.
Imagine I have a webapp, say app1, under %TOMCAT_HOME%\webapps, and under
app1 I have a directory named 'images' where I put all the images my pages
need.
If I direct the browser to http://localhost:8080/app1/images I'll have access to the
contents of this directory.
Is there a way to
Hi,
I have two differente context in one tomcat, but I would like two use different
classpath in the two context, and if I can use diffent config why memory of the jvm.
Thanks.
(Excuse me my bad english)
Diego Martin Moreno
You don't identify what path is not being found. It is the
path to web.xml, a path to one of the properties files, or
something else?
Larry
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Monday, December 03, 2001 11:46 AM
To: [EMAIL PROTECTED]; [EMAIL
galbayar == galbayar [EMAIL PROTECTED] writes:
galbayar my jsp is: I can't find any error. but WAP browser have Page Cannot be
galbayar displayed error.
galbayar %@ page contentType=text/vnd.wap.wml;charset=ISO-8859-1%
galbayar %response.setHeader(Cache-Control,no-cache);%
dirk == dirk storck storck writes:
dirk Hi,
dirk has someone used JAAS (or more JBossSX) for security within Struts and
dirk Tomcat?
dirk Any comments and suggestions are welcome !
I assume you were unable to get it to work. I implemented form-based
authentication in my
Hi everyone,
I have two questions about Tomcat and HTTPS, and
I really appreciate if anyone can help me out.
1. Tomcat's readme file says HTTPS client authentication
and digest are not supported, but if I turned
ClientAuth variable on, what should I get? I tried
it, but it somehow gave
perhaps:
Host name=mydomain.com
Context path=
docBase=/home/royal/public_html /
/Host
Host name=www.mydomain.com
Context path=
docBase=/home/royal/public_html /
/Host
Host
But what if the machine is a PHYSICAL separate machine?
My router tells anything requesting a web page on port 80 to go to
www.mydomain.com. SO even through kpax.mydomain.com is a separate machine,
it goes to www.mydomain.com because the router directs and on port 80 there.
If this doesn't
We want to provide some basic authentification using NT LoginId. All our
users in the Intranet use NT Machines and Tomcat is running out of process
on IIS. Is it possible to get Nt Login? Appreciate some sample code if
possible. I could get it with Tomcat3.2.3 earlier. We have migrated to
tomcat
hello,
i am running a Tomcat 3.3 on Win2k box, and I am having a problem where
every once in a while (i can't see a pattern), the context manager drops and
rebuilds the webapp. Is this something that anyone else has ever seen?
here are the lines in my log file
2001-12-03 15:07:09 -
Sounds like the easiest solution would be to update your router to
point to the other machine for requests to kpax.mydomain.com:80.
Barring that, if you are using Apache to serve the static content of
your sites, you may be able to use mod_rewrite to achieve the desired
result. Check out the
Manual. I copied the .war file into the webapps folder, added entries
to server.xml, httpd.conf and restarted.
There is an installer?!
--- Brian Baxter [EMAIL PROTECTED] wrote:
Also, I had to update the tomcat startup script to include the
classpath of the webapps. I thought this was done
Simple solution:
Put an index.html file in your images directory -it will be displayed
instead of the directory listing.
More complex solution:
In your httpd.conf file look for the Directory section (there may be
more than 1). You will probably find a line like this:
Options Indexes
Are there any changes occurring within this web application,
such as updates to servlets? The default behavior in Tomcat 3.3
for such changes is to reload the web application. I'm not
certain, but I think changes to the web.xml would also
trigger a reload. If this is occuring spontaneously,
A standart form for FORM based authentication, here is acopy:
html
body
form method=POST action=j_security_check
center
table
tr
tdbUser-Name:/b/tdtdinput type=text name=j_username/td
/tr
tr
tdbPasswort:/b/tdtdinput type=password
name=j_password/td
/tr
trtd
Larry,
i am not modifying the Servlets or any of the conf files during the process.
i *think* that nothing out of the ordinary is happening when this occurs.
the only thing i could think to mention is that i do have quite a bit of
stuff in session (session and app scope), and maybe the servlet
This looks like a bug that was fixed in the nightlies for mod_webapp. You
might want to download the source and build it for a better, more stable
version.
--David
On Monday 03 December 2001 03:53 pm, you wrote:
This weekend I installed mod_webapp and pointed it to Tomcat 4.0.1 and
things
hi
Using Apache 1.3.22
On win95
With Tomcat4.0.1
Error message: =
Syntax error on line 193 of e:/program files/apache
group/apache/conf/httpd.conf:
Cannot load e:/program files/apache group/apache/modules/mod_webapp.so into
server: (31) A device attached to the system is not functionning
It was suggested that I compile mod_webapp myself, but it dies after it runs
for quite a while... What should I do about this? (Error below.) I did a
./configure with-apxs=/usr/local/apache/bin/apxs and then plain old make.
It builds for a few minutes and then bombs. I've compiled Apache HTTP
Hi everyone,
For those who have built a web application using the standard MVC pattern
I'm sure you have found it can be quite a tedious and cumbersome solution.
The constant need to jump in and out of html/java and the messy process of
moving data between the model, the controller and the view
What's wrong with Element Construction Set
(http://jakarta.apache.org/ecs/index.html) ?
IMHO the whole point of MVC is to separate presentation logic from business
logic. Your solution seems to only abstract html construction via java
object manipulation. There's much more to MVC than just
Well that particular project you referred its just a generic construction
set for Html or Xml. The toolkit I've proposed goes beyond that, my objects
actually have state and are true objects in the OO sense.
The toolkit does more than just abstract html construction via java
manipulation, if
If you put the Oracle drivers archive file (classes12.zip) in the lib
directory ( /path/to/tomcat/lib ) it will be automatically loaded for
you when tomcat starts up. You don't have to specify it in the
classpath.
You can put your JDBC connect string, driver, username and password
into the
Well, after taking second look I agree that ECS is more primitive.
Don't get me wrong, I'm just trying to say that making HTML construction
done via Java objects and providing convenience methods for extracting
request parameters is no replacement for MVC in a general case. Say, I want
to
Hi everyone.
Please help us with configuration. Our Foundation, ELIC, Escuelas Libres de
Investigación Científica para Niños' is a non profit institution.
I use Tomcat 4.0.1, Apache 2.0.28, Mysql 3.22 and solaris 8, and need conect
with database, please help with this configration.
Thanks a
I am trying to get Tomcat 4 to run as an service on win2000pro. I copied
the wrapper.properties file from my Tomcat 3.2 installation and placed it
in CATALINA_HOME\conf\ directory and used jk_nt_service to create the
service. When I try to start the service, windows returns a message saying
the
I've got Tomcat 4.01 set up on Win98 as well, and it's working fine at least
w/respect to starting. The key I've found is to use the Windows start menu
to light things up rather than opening a command window and running the
batch files.
-Original Message-
From: Steve [mailto:[EMAIL
Hi everyone.
Please help us with configuration. Our Foundation, ELIC, Escuelas Libres de
Investigación Científica para Niños' is a non profit institution.
I use Tomcat 4.0.1, Apache 2.0.28, Mysql 3.22 and solaris 8, and need conect
with database, please help with this configration,
The system
Well yes like any solution there are strengths and weaknesses. You're
absolutely correct here, if you do need to change your html then you will
need to change your java code and recompile. But mind you the Jsp is only
one part of the overall solution (I'm talking in the traditional mvc
sense),
Hi all:
Tomcat 3.3 (on linux) seems to be quite shoddily
developed. Surprising that, given it's high
visibility and posture.
Consider for instance:
I downloaded the binary distro of tomcat 3.3.
I have set and exported both TOMCAT_HOME and
JAVA_HOME. Compiled and installed mod_jk.so
too.
Adding to what Vlad said, consider a web application that will be
deployed in the ASP model: multiple companies will use the same service
(for example email, contact list, calendar), but they each want their
own look feel. In this case, the view must absolutely be separate
from the controller
hi,
I am installing tomcat3.2 rpm on Sun java 1.3.1 in linux, well it installed
properly with a startup script in /etc/rc.d/init.d, but the shutdown part is
not working. after I give the command tomcat stop and run netstat I see two
java programs running still on 8080 and 8007. The script says
I'm not usually practicing help to rude people but I'll make an exception
and will give you a hint.
I used almost every version of TC since 3.x to 4.0. Yes, I had problems
starting it and moments of frustration, but all issues turned out to be my
fault mostly due to my incompetence at that time.
Hi August,
Your examples are very specific and are aimed where the traditional mvc
pattern would serve well. But there also many situations where having to
write a jsp, a bean and a controller just proves to be a very tedious and
cumbersome process. I know it, I've done it!
This toolkit is
Hi guys,
Im trying to load my servlet from my webapps directory with which i
created a specific working
direcory($CATALINA_HOME/webapps/test) for it. Once, I access it to my
browser i do get a 404 error and when i check the log i see a huge mesg
(below is an excerpt from that log)
2001-11-30
The path to the properties file is not found .
You can try the same example . I am sending you as an attachment . It is
just 39.9 kb so please dont worry .
Cheers Amol
- Original Message -
From: Larry Isaacs [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Sent: Monday,
Greetings!
I have a quick question. I was running just fine on Tomcat 3.2.3. I
have built servlets, which sit in
webapps/myapp/WEB-INF/classes/myapp/*.class
In Tomcat 3.2.3, this structure was picked up when Tomcat started, and
the servlets ran perfectly. Note - there was no need for web.xml
- Original Message -
From: William Tansill [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Monday, December 03, 2001 1:15 AM
Subject: RE: mod_webapp config
My guess is that if you want to create and run your own JSP's, you will need
to install them per the standard
hello there...
i hope you can help me with this problem..i have no idea on what's happening
here
the following lines are shown in the console once i do https post
java.lang.NoClassDefFoundError: javax/net/SocketFactory
at java.lang.ClassLoader.defineClass0(Native Method)
at
thanks for the reply...
I already download the following:
jsse.jar, jnet.jar, jcert.jar
then i stored them in $CATALINA_HOME\common\lib
yet it doesnt work...
it doesnt seem to find my jar files, but i can
implement https in my browser i followed that
SSL configuration HOW TO , yet why cant i
Vladimir Grishchenko [EMAIL PROTECTED], looked
up from a pending proctological exam, butthole
opening, and contracting and gushing rectal mucous and
opined:
I used almost every version of TC since 3.x to 4.0.
[..a buncha crap flushed..]
Jeez. It must be part of the human condition that
there
i made it work i have missed ';' in my classpath..
but after that im having this exception
javax.net.ssl.SSLException: untrusted server cert chain
i already have my .keystore ...yet im having this error...
-Original Message-
From: Byung Jin Chun [mailto:[EMAIL PROTECTED]]
Sent: Tuesday,
--- Jan Labanowski [EMAIL PROTECTED] wrote:
You must be working for Microsoft, I assume...
BTW... servlet.xml cannot have DTD, since people can
add their own stuff
(classes), instantiate it in server.xml, and name it
the way they want,
and DTD would not allow it...
Jan
Please don't top
You said:
rant
I ... I I I I I I I I I I
I I I know I can do it, but I I I . I . I
I /rant
Best regards,
[EMAIL PROTECTED]
Pretty personal stuff for a brilliant software engineer and a Yahoo fella.
You miss
Hi,
using mod_jk for connecting TC40 and Apache1.3 works fine for Windows NT,
2000 and Solaris. I could easily build the connector from source using the
download and the documentation from
http://jakarta.apache.org/~hgomez/ajp13-tc4.0/.
The only difference between Solaris and Win is that I
Try to change the action to:
form method=POST action=%= response.encodeURL(j_security_check)
%
-Ursprüngliche Nachricht-
Von: Erwin Ambrosch [mailto:[EMAIL PROTECTED]]
Gesendet: Montag, 3. Dezember 2001 22:35
An: Tomcat Users List
Betreff: Re: AW: AW: TC 3.3 jsessionid
snip/
--
Micael Padraig Og mac Grene wrote:
[...]
snip
Padraig og mac ?
What kind of a name is that ? It sounds similar to
the sound I make when I fart. Smells about the
same too. Since you are so apt in making suggestions,
allow me to make two of my own: a) look up the
word 'rant' in an English
On Tue, 4 Dec 2001, hanzo wrote:
|
| - Original Message -
| From: William Tansill [EMAIL PROTECTED]
| To: Tomcat Users List [EMAIL PROTECTED]
| Sent: Monday, December 03, 2001 1:15 AM
| Subject: RE: mod_webapp config
|
|
| My guess is that if you want to create and run your own JSP's,
Did you registered JSSE security provider?
Look at point 4 on INSTALL.txt, in the JSSE package.
Jovie Castaneda wrote:
i made it work i have missed ';' in my classpath..
but after that im having this exception
javax.net.ssl.SSLException: untrusted server cert chain
i already have my
This weekend I installed mod_webapp and pointed it to Tomcat 4.0.1 and
things appeared to be working fine until I tried to upload a file through
it. If I point the browser directly to my servlet files get uploaded fine
from the form but if I try going through Apache via mod_webapp I get the
I just downloaded and installed Tomcat 3.2.4 and the problem in on this
version too.
I think that if you a 404 error page defined, this problem doesn't happen.
Anyway, I think it's a vulnerability.
On Mon Dec 3 11:16:34 2001, Renato [EMAIL PROTECTED]
escreveu :
Hi all,
Recently I saw
Dear friends ,
Dear friends , i am trying hard to have a context path set in a linux enviormrnt
for a servlet . The path works fine when i am using win2000 server for debvelopement
but when i am deploying it on a linux enviorment i am have inga eroor of thre path
not found .
can anybody
91 matches
Mail list logo