Glen, thanks for responding. I placed both the property and path element
references to servlet-api
at the beginning of their respective sections, and defined jdk.javac.path. I
still get the same
error.
Any ideas on why build.xml provided by the Tomcat website doesn't work?
--- Glen Mazza
I realized apache2 web server properyl handles % sign in URIs, i need =
exact functionality on tomcat 5 too.
When I try to pass a parameter containing % sign, the parameter value on =
the server seems null.
like
http://localhost:8080/aSite/aPage?query=hi%everybody
Tomcat 5 cannot handle that, Is
Hi,
I am trying to work out, how exactly I map Tomcat Users/Groups
(defined in a JDBCRealm) to security roles, which are defined in my web
application deployment descriptor.
I am trying to understand the following in the context of formbased login:
As the tomcat administrator, I have no
Olinga K. Abbott wrote:
Glen, thanks for responding. I placed both the property and path element
references to servlet-api
at the beginning of their respective sections, and defined jdk.javac.path. I
still get the same
error.
Any ideas on why build.xml provided by the Tomcat website doesn't
Hi,
I'm a new user of this list.
I have an Apache + tomcat + mod_jk2 running on my linux box.
My Webapp control users log on and I have static content which could be
accessed only by authorized user.
I want to apache serve all static content. Is there a solution??
Thanks.
Hello.
abdurrahman sahin wrote:
I realized apache2 web server properyl handles % sign in URIs, i need =
exact functionality on tomcat 5 too.
When I try to pass a parameter containing % sign, the parameter value on =
the server seems null.
like
Thank you for your responses Vinu and Chuck
I got rid of the definition as Vinu suggested, and it seems that I do not have
to have any context.xml in the META-INF for the app.
The jsp file appears in my browser window, except it doesn't evaluate the jsp
expression I include. Maybe you can tell
hi;
my friend tried it, reported that it didn't work.
abdurrahman
-Original Message-
From: Aurélien DEHAY [mailto:[EMAIL PROTECTED]
Sent: Wednesday, February 01, 2006 11:29 AM
To: Tomcat Users List
Subject: Re: percent sign in URI
Hello.
abdurrahman sahin wrote:
I realized apache2
Hello abdurrahman,
Your url is incorrect, replace it with
http://localhost:8080/aSite/aPage?query=hi%25everybody
According to rfc 1738, 2.2. URL Character Encoding Issues
Octets must be encoded ..., if the use of the corresponding character is
unsafe, ...
The character % is unsafe
Hi Tomcatters,
I beg your pardon for this affront to any self-respecting servlet
coder's mind.
I am but merely a Unix sysadmin plagued with a varying zoo of
Tomcats on different Unices who is largely Java-ignorant and only
has to maintain these cats (sorry, but Perl suits my mundane
admin tasks
hi David;
I am aware of the case. As I stated before Apache2 server properly handles
that problem and I need that functionality because our customer's system
built on it.
-Original Message-
From: David Delbecq [mailto:[EMAIL PROTECTED]
Sent: Wednesday, February 01, 2006 11:58 AM
To:
How does your customer system handle this?
http://localhost:8080/aSite/aPage?query=I%fear%dead%results
badly, obviously :)
Possible solutions:
1) You can still try in servlet 'aPage' to grab the request using
request.getQueryString() which should returns you query=hi%everybody
2) You can write
hello,
kindly tell me where Business Logic(BL) files are been put?i'd put in
TOMCAT_HOME\webapps\primeReports\WEB-INF\classes\Reports\
where,
primeReports is the name of the folder which i'd created.
the following error is coming:-
org.apache.jasper.JasperException: Unable
hi David;
I think I'll try your 2nd solution offer.
thank you for your help.
-Original Message-
From: David Delbecq [mailto:[EMAIL PROTECTED]
Sent: Wednesday, February 01, 2006 1:16 PM
To: Tomcat Users List
Subject: Re: percent sign in URI
How does your customer system handle this?
If this were fixed, there would be a host of people complaining about the
opposite. The URL below is inavlid based ont the RFC. getParameter has some
basic assumptions that the url is correctly encoded.
If you wish to place bad data in the query string, I recommend using
Hi Dronesh,
after lots of testing I've got it working now. It's looks like that I just had
a wrong struts.jar in my classpath.
Thanks, Lothar
Tomcat Users List users@tomcat.apache.org schrieb am 31.01.06 19:47:58:
Hi Lothar,
Seems there is some configration problem or tld file is not in
See the FAQ. http://tomcat.apache.org/faq/
There are a few ways to get the version
1) Use version.sh (or vertsion.bat)
2) Look at the manager webapp (in url /manager/html/)
3) More ways that I can't remember
-Tim
[EMAIL PROTECTED] wrote:
Hi Tomcatters,
I beg your pardon for this affront to
Hi All
Can any one tell me exactly from wher can i download POI.jar and POI API
documents . I tried
http://www.reportmill.com/rm4/
http://apache.mirrors.tds.net/jakarta/poi/release/src/
when i clik on jar or tar the page keeps on waitign for download to happen.
Thanks in Advance
Birendar S
I'm not sure properly is the correct word to use in your
situation. Doing things based on bug is always a big risk. If one day
Apache corrects this bug, your customer will have a great pain in the *ss!
abdurrahman sahin wrote:
hi David;
I am aware of the case. As I stated before Apache2
Hi!
I tried the following code from a jsp-page one time on a tomcat 4.1.30 and
one time on a tomcat 4.1.31.
String up = update test_double set test_value = '26.5' where oid = '1';
Statement st = dbConn.createStatement();
st.executeUpdate(up);
Interestingly this code works with tomcat 4.1.30 but
I've done code similar to this. Yore can go one of two ways:
1) Store your properties file in WEB- INF/classes and then call
propFile.load(this.getClass().getClassLoader().getResourceAsStream(application.properties''));
2) Store the properties file anywhere in the webapp and call
Hi Guys
I'm running a web application on Tomcat 5.5.12, and I cannot connect to
my SMTP server using javamail from it for some reason. The error I am
getting is the following:-
javax.mail.MessagingException: Could not connect to SMTP host:
smtpServer, port: 25;
nested exception is:
Hello,
I have to connect an Apache location to a Tomcat webapp with a different
name. How can I achieve this?
e.g. http://localhost/edu/fedora should point to
http://localhost:8080/fedora
Any ideas?
Many thanks in advance
Dieter
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
Subject: How to identify version of a running Tomcat and
similar trivia
3. How to identify a Tomcat's config?
4. Parsing the config
5. Tool for monitoring a Tomcat's state
For all of the above, try the manager and admin apps that are
Setting clientAuth to true / false in the Connector configuration
works fine, but how do I configure client authenticaton on a
per-directory or even per-servlet basis?
This is my current configuration:
In server.xml:
Connector port=8443
maxThreads=150 minSpareThreads=25
Thanks Warren, Tim and Charles,
Right now I'll leave it as $CATALINA_HOME/conf/context.xml since at this
time I'm only deploying one webapp. I had hoped to make it webapp
specific, but oh well...
If I do end up having more webapps I'll create a shell script (linux OS
here) that copies a webapp
[EMAIL PROTECTED] wrote:
Hi!
I tried the following code from a jsp-page one time on a tomcat 4.1.30 and
one time on a tomcat 4.1.31.
String up = update test_double set test_value = '26.5' where oid = '1';
Statement st = dbConn.createStatement();
st.executeUpdate(up);
Interestingly this code
On 2 Feb 2006 at 0:12, Matthew Evans wrote:
Hi Guys
I'm running a web application on Tomcat 5.5.12, and I cannot connect
to my SMTP server using javamail from it for some reason. The error I
am getting is the following:- javax.mail.MessagingException: Could not
connect to SMTP host:
I am getting this error occasionally and am unable to
figure out the problem.
--
HTTP/1.1 408 The time allowed for the login process
has been exceeded.
If you wish to continue you must either click back
twice and re-click
the link you requested or close and re-open your
The clientAuth attribute of the connector has to be set to true. Then
you will need a client cert to access resources under /html/*, but not
other pages. See the Tomcat SSL guide on how to create the client cert.
ND
-Original Message-
From: Markus [mailto:[EMAIL PROTECTED]
Sent:
The code says (in FormAuthenticator)
if (session == null)
session = request.getSessionInternal(false);
if (session == null) {
if (containerLog.isDebugEnabled())
containerLog.debug
(User took so long to log on the session
No, it's running on a different server.
-Original Message-
From: Steve Ochani [mailto:[EMAIL PROTECTED]
Sent: Thursday, 2 February 2006 1:59 AM
To: Tomcat Users List; Matthew Evans
Subject: Re: can't send email from tomcat using javamail api
On 2 Feb 2006 at 0:12, Matthew Evans wrote:
Could you publish the stack trace for this?
ND
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Wednesday, February 01, 2006 8:06 AM
To: users@tomcat.apache.org
Subject: BUG in Tomcat 4.3.31 with Oracle 9?
Hi!
I tried the following code from a jsp-page one
Thank you Tim, I'll try your suggestions.
Scott
--- Tim Funk [EMAIL PROTECTED] wrote:
The code says (in FormAuthenticator)
if (session == null)
session =
request.getSessionInternal(false);
if (session == null) {
if (containerLog.isDebugEnabled())
Hi all,
Don't know if anyone remembers my original mail about this from
20/1/06, but it's just happened again. I've pasted the section where the
connector went nuts below (at end of mail). This is the first thing to
appear in mod_jk's log. Then, about 30 seconds later, The JBoss server
on the
Hi Tim,
thanks for referring me to the Tomcat FAQs.
That's for sure the first source of information one should read
before nagging the list community with redundant questions.
At least did I find therein a description how to enable CGI
support.
Yet, the trivial task of identifying a running Java
if you just want to do it for this file, just add the filename instead
of the *, for example
servlet-mapping
servlet-namejsp/servlet-name
url-pattern/path/file/url-pattern
/servlet-mapping
in your web.xml
this has worked for me, when I've done it for files in the main path
anyway,
just shooting from the hip...
do you have any java policies configured, which forbids connections to
another server?
Leon
On 2/1/06, Matthew Evans [EMAIL PROTECTED] wrote:
No, it's running on a different server.
-Original Message-
From: Steve Ochani [mailto:[EMAIL PROTECTED]
Sent:
Oh, as to your original question about log/syslog. I believe since the later
versions of Tomcat 5.5.x all can use Log4J for all logging, you can do this.
I believe reading that Log4J has a syslog appender that will re-direct
output to syslog.
You will need to go to the Log4J site
Hi;
Is there anyone on this list that know isapi_redirect? I have this bad
feeling that there is only 1 person who knows this code (the one who wrote
it) and that he/she is not on this list. If I have to pay for support that's
fine but I really need to get this answered (or we'll be forced to
Glen, thanks for the suggestion on the search terms. After reading some search
hits, I copied all
the jars in TOMCAT_HOME\common\lib to ANT_HOME\lib and everything works now.
--- Glen Mazza [EMAIL PROTECTED] wrote:
Olinga K. Abbott wrote:
Glen, thanks for responding. I placed both the
-Original Message-
From: David Thielen [mailto:[EMAIL PROTECTED]
Sent: Wednesday, February 01, 2006 11:35 AM
To: tomcat-user@jakarta.apache.org
Subject: Desperate for help with isapi_redirect.dll
Hi;
David,
As I understand it, you want the jk version 1.2.x NOT jk2. jk2 was a splitter
Yes, and it worked fine. That's what made me even more confused.
-Original Message-
From: Leon Rosenberg [mailto:[EMAIL PROTECTED]
Sent: Thursday, 2 February 2006 3:02 AM
To: Tomcat Users List
Subject: Re: can't send email from tomcat using javamail api
P.S.
Have you tried to execute
Creating client certs is no problem, I already had client
authentication working on the Connector-Level.
Nick:
In other words: it is NOT possible in tomcat to have a webapp with
BOTH, a private part with ssl AND client authentication and a public
part with ssl but WITHOUT client authentication?
$JAVA_HOME/jre/lib/security/java.policy
tomcat permissions are configured in
$TOMCAT_HOME/conf/catalina.policy
regards
Leon
On 2/1/06, Matthew Evans [EMAIL PROTECTED] wrote:
I don't think so. The webapp is currently able to make SOAP calls to another
server on the network. And connect to a
Yees!
I had tried to put the filename as a URL pattern, but without the path Tomcat
didn't like it. Now, just adding a slash in front a the filename solves my
problem!
Thanks!
Martin
Christian Andersson [EMAIL PROTECTED] wrote: if you just want to do it for
this file, just add the
it is the smtp server that is rejecting the connection.do you need
to authenticate to your smtp server?
Matthew Evans wrote:
I don't think so. The webapp is currently able to make SOAP calls to another
server on the network. And connect to a SQL Server database.
Where would you suggest I
There are also a few other things. I had this happen one time, and it
was a dns problemanother time it was another networking problem.
Whatever it is, like I said beforeor should have restated as:
it appears that java is attempting to make the connection, but is being
refused for some
Tomcat is like any server based java app. It will always require a convulted
classpath as well as multiple classloaders to do anything interesting.
The most failsafe way to get the version regarless of the packaging is to do
the following: (no, i'm not kidding)
1) find catalina.jar. It
Hi,
I have a question about java logging within a context.
I´d like to have a way to isolate the jdk1.4 log between Tomcat contexts.
In my own lines of code, I create a JDK1.4 logger with an associated name,
Handler and Formatter. This way, I have one log file per context.
My problem is when I
Hi
Yes, it is possible. From connector configuration doc:
clientAuth:
Set this value to true if you want Tomcat to require all SSL clients to
present a client Certificate in order to use this socket.
Set this value to want if you want Tomcat to request a client Certificate,
but not fail
2006/2/1, Tim Lucia [EMAIL PROTECTED]:
I use log4j as the logging implementation, and then chose the
RollingFileAppender (Daily or Size--your choice)
Or use logrotate (that is, if you use some Unix variant and the program exists).
--
Francis Galiegue, [EMAIL PROTECTED], [EMAIL PROTECTED],
go to tomcat/bin
type catalina.sh version
output will look like:
Using CATALINA_BASE: /usr/local/tomcat
Using CATALINA_HOME: /usr/local/tomcat
Using CATALINA_TMPDIR: /usr/local/tomcat/temp
Using JRE_HOME: /usr/local/java
Server version: Apache Tomcat/5.5.12
Server built: Sep 23 2005
Tobias Illik wrote:
snip
How can I establish this link/mapping in Tomcat?
It has to be performed in web.xml
Mark
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Markus wrote:
Setting clientAuth to true / false in the Connector configuration
works fine, but how do I configure client authenticaton on a
per-directory or even per-servlet basis?
snip/
And here are the results I get:
https://domain/anypage : OK
https://domain/html/anypage : HTTP
Hello;
I am using 1.2.14 so that's not the problem. And yes, Tomcat is on the same
box as IIS and so they can talk. Port 8009 is blocked by our corporate
firewall but is not blocked internally.
And it works - you can go to
http://www.windwardreports.com/store/pages/demo.faces and that is served
David Thielen wrote:
Hello;
I am using 1.2.14 so that's not the problem. And yes, Tomcat is on the same
box as IIS and so they can talk. Port 8009 is blocked by our corporate
firewall but is not blocked internally.
And it works - you can go to
Hi All,
I have a small question. Please excuse me if this is a trivial question.
I have a case where in I have some files missing in the ROOT folder.
I wanted to know why Tomcat does not replace the missing files in the ROOT
folder after I place a new ROOT.war in the webapps and
François wrote:
I've successfully implemented this type of authentication for jsp files
(using url-pattern/path/to/my/folder/*/url-pattern), but any other
type of ressources, and in particular .txt type of files, are not
protected at all.
security-constraint
web-resource-collection
[EMAIL PROTECTED] wrote:
I have a case where in I have some files missing in the ROOT folder.
I wanted to know why Tomcat does not replace the missing files in the ROOT
folder after I place a new ROOT.war in the webapps and restart the Tomcat.
Here I am not deleting the ROOT folder.
As per
I followed the howto about connection pooling at
http://tomcat.apache.org/tomcat-5.5-doc/jndi-datasource-examples-howto.html
and I had following question:
Do I use the DataSource class like in the example or the
ConnectionPoolDataSource class (like it says to do in my book)?
Any insights
I got the configuration working now and I thank the responders for their
feedback and help.
Although I created a completely new work set, I did copy my source files
over to it.
With this I also copied the web.xml file. What I forgot was that I had a
servlet definition and mapping which
Thanks Mark for the reply...
But do we have any way so that tomcat extracts the ROOT.war and replaces
only the missing/changed files (can be based on the time stamp) in the ROOT
folder even though the ROOT is not deleted..?
Sorry if my question sounds dumb.
Regards,
Shashidhar V
-Original
Use of the webXmlFragment attribute with Jasper produces an xml fragment
requiring inserting into
web.xml. Although I could write some custom code to perform this task, probably
using xslt, this
seems like a common enough use case that a solution should already exist. Does
anyone know of such
a
Is it possible to confiugrat a LoginModule (according to JAAS
guidelines) which will apply different authorization strategies
according to the application requesting the JAAS service.
My initial thoughts were around configuring two separeta JAAS Realms in
this way:
conf/server.xml
Realm
Stefan Baramov wrote:
Using the realm-name/ tag I was hoping to link the login configuration
for each application to a particular JAAS Realm. However this is not
happening. Both application will use the second JAAS Realm and it seems
that realm-name tag is completely ignored.
Finally, I
Without knowing what book you refer to, and what class or interface
ConnectionPoolDataSource represents, it is difficult to know for sure.
DataSource (javax.sql.DataSource) is an Interface, not a class. Objects
returned from tomcat are sure to implement this interface, and are pooled
behind
Mark Thomas wrote:
You will need to send the war directly to me rather than to the list
as it will get stripped out.
OK. Test war received. IIS installed (I'd be lost without VMWare).
ISAPI 1.2.15 installed. ISAPI configured to talk to Tomcat 5.5.x HEAD.
I can reproduce the problem. (So far so
The Http10Connector refers to HTTP/1.0. It also means that you've got a TC
3.x server running there. If you've got a conf/modules.xml then it's
probably TC 3.3.1a (since 3.3.2 uses the CoyoteConnector by default).
Otherwise, it's probably TC 3.2.4.
It also explains why there is no /manager
69 matches
Mail list logo