Hi!
Is there anyone out there who would like to figure out what I am doing wrong
when trying to create a realm in Tomcat that is supposed to authenitcate
users over JNDI against an Active Directory server.
In my server.xml I have the following
Realm className=org.apache.catalina.realm.JNDIRealm
Thanks.
Mark Thomas wrote:
Sorry. Try this:
http://cvs.apache.org/viewcvs.cgi/jakarta-tomcat-4.0/catalina/src/share/org/apac
he/catalina/session/JDBCStore.java
--
Harald Henkel
GS automation GmbH
Winterstraße 2
82223 Eichenau
Germany
Tel:+ 49-8141-35 731-37
Fax:+ 49-8141-35 731-38
Hi
However, here's an interesting/fairly recent thread:
http://marc.theaimsgroup.com/?l=tomcat-userm=106036177509367w=2
30K file:
Server #of Samples Average Deviation Median
Apache 1000 182ms 277 90
Tomcat 1000 185ms 249 80
And that way 4.1.27, over which 5.x
One thing you might want to check is that whatever PrintService SPI
implementation is looking up your printers doesn't cache the result for
the lifetime of the JVM.
Does your command line app show new printers and then exit? If so, you
might want to change it so you can:
1) list the printers
2)
uh ...
it works fine from our side. But as i saw so many posts concerning that point i was
really puzzled it was so simple to set up :-)
-Message d'origine-
De : Steve Kirk [mailto:[EMAIL PROTECTED]
Envoyé : mercredi 13 octobre 2004 16:56
À : 'Tomcat Users List'
Objet : RE:
Hi all,
Has anyone created a DataSourceRealm that works with DIGEST
authentication? I'm planning to make one, but only if I'm not
reinventing the wheel.
A relative bugzilla issue:
http://issues.apache.org/bugzilla/show_bug.cgi?id=19767
Best regards,
-- Shinobu Kawai
--
Shinobu Kawai
Hi, I have two webapps that use different xalan version, how can I put
them on the some tomcat instance?
Thanks in advance, Matteo.
Everything should be made as simple as possible, but not simpler. --
Albert Einstein
_
Matteo TURRA
Thanks Matt.
This is in fact what I have been doing to date :) . The problem is, that to
configure the error page to handle several different status codes, you have
to keep repeating basically the same 4 lines of config, with just the error
code changing each time - a bit repetitive, and not good
I'm trying to get Jasper to pre-compile my JSP pages. I've got an Ant
task (swiped from the manual) kicking this off, and it works pretty
well up to a point. However...
This application has a number of pages that are built out of JSP
fragments. Something like this:
!-- File A --
% String s =
Hi Jon,
I was arriving to the same conclusion. The servlet and perhaps Tomcat is
caching the result of the PrintServiceLookup for the lifetime of the JVM.
If I write a java program to list the services and run the program from the
command line, I can see the newly added service right away. This
File A should *not* be called fileA.jsp. It should be called fileA.jspf
An added advanatage is you know what what all your incoded fragment files
are by looking at the file name.
-Tim
Dave Minter wrote:
I'm trying to get Jasper to pre-compile my JSP pages. I've got an Ant
task (swiped from the
On Friday 15 October 2004 13:52, Dave Minter wrote:
I'm trying to get Jasper to pre-compile my JSP pages. I've got an Ant
task (swiped from the manual) kicking this off, and it works pretty
well up to a point. However...
This application has a number of pages that are built out of JSP
Hi
If I write a java program to list the services and run the program from
the command line, I can see the newly added service right away.
Modify your program to list the services, wait one minute, list the services
again.
Install a printer in that time.
See, if the application reflects that
Hi,
You're in a bit of a sore spot. Stick each Xalan jar in the WEB-INF/lib
directory of your webapps, and make sure there's no other copies of
Xalan around, e.g. in common/lib, jre/lib/ext.
If that doesn't work, and I think it might not because Xalan is
endorsed, you might have to modify your
Hi,
Tomcat will complain if it finds errors it can't deal with. We
encourage people to use an independent tool, such as XMLSpy or one of
the free online variants, to validate any all XML configuration files.
That applies to web.xml as well.
Yoav Shapira http://www.yoavshapira.com
Hi,
You can use exception-type to catch a broad class of exceptions (such
as java.lang.Exception for example ;) Or maybe
javax.servlet.ServletException). If you use the error-code approach,
you have to list them individually, which you're right is verbose and
time-consuming. There might be a
Hi,
I'm using jsvc because the shutdown.sh script gave me some problems...
I don't know why, sometimes, shutdown.sh can't fully stop tomcat, this
Every time someone doesn't investigate the root cause, it comes back to
bite them -- it's a law of (software) nature ;)
The #1 reason shutdown.sh
Hi,
Tomcat only ships with the basic JavaMail provider, which IIRC doesn't
have S/MIME support. You have to get a 3rd party library, such as
CryptoMail (a SourceForge project IIRC), and use it. You might need to
write a trivial CryptoMailSessionFactory to use as the Bean factory for
Tomcat's
Hi!
Perhaps one of the gurus could space a few minutes...
I have worked with tomcat quite a bit, but never had to do anythings
like this before: I need to do some work (basically get some data from a
db and set up a scheduler) once and immediately when my webapp is
deployed or redeployed
On Fri, Oct 15, 2004 at 12:44:17PM +0100, Steve Kirk wrote:
: configure the error page to handle several different status codes, you have
: to keep repeating basically the same 4 lines of config, with just the error
: code changing each time - a bit repetitive, and not good from a maintenance
:
On Fri, Oct 15, 2004 at 08:18:56AM +0200, Roland Carlsson wrote:
: Is there anyone out there who would like to figure out what I am doing wrong
: when trying to create a realm in Tomcat that is supposed to authenitcate
: users over JNDI against an Active Directory server.
Why not try this:
ServletContextListener
http://jakarta.apache.org/tomcat/tomcat-5.0-doc/servletapi/javax/servlet/ServletContextListener.html
-Tim
Philipp Taprogge wrote:
Hi!
Perhaps one of the gurus could space a few minutes...
I have worked with tomcat quite a bit, but never had to do anythings
like this before:
On Fri, Oct 15, 2004 at 03:16:44PM +0200, Philipp Taprogge wrote:
: Perhaps one of the gurus could space a few minutes...
-or you could search the archives. ;) Your question comes up regularly.
: I have worked with tomcat quite a bit, but never had to do anythings
: like this before: I need to
On Fri, 15 Oct 2004 08:49:22 -0400, Shapira, Yoav [EMAIL PROTECTED] wrote:
Hi,
You're in a bit of a sore spot. Stick each Xalan jar in the WEB-INF/lib
directory of your webapps, and make sure there's no other copies of
Xalan around, e.g. in common/lib, jre/lib/ext.
If that doesn't work,
Hi and thanks for the quick replies.
QM wrote:
-or you could search the archives. ;) Your question comes up regularly.
Yes, I should have. I am sorry. I did not imagine my problem was that
common...
For Tomcat 4.x and later, investigate the ContextListener class.
Looks exactly like what I was
BulletProofSoft.com Support Ticket Reply.
DO NOT REPLY TO THIS EMAIL
Please use our Online Support system for faster results to your questions.
You can monitor the status of your ticket online where you can add follow up replies.
http://www.bulletproofsoft.com/cgi-bin/custquest/quest_desk.cgi
On Fri, 15 Oct 2004 14:11:54 +0200, Michael Schuerig
[EMAIL PROTECTED] wrote:
On Friday 15 October 2004 13:52, Dave Minter wrote:
[snip]
I've given JSP segments (fragments) a .jspf extension and that does the
trick for me. See the spec JSP.1.1.8.
Michael
And indeed that seems to work for
Hi Yoav.
Tomcat and QMail are installed on same host. Currently
clients (Mozilla-mail, KMail, ect) send email using
SSL encryption.
I need also send e-mails from Tomcat.
Can I configure Tomcat server.xml or QMail or smtp
relay (/etc/tcp.smtp) or ? to send e-mail via TCP and
not SSL?
Thanks!
Hi,
I personally don't know, as I haven't tried it. But it's more of a
JavaMail question than a Tomcat question. All Tomcat does is provide a
Bean factory for the normal JavaMail Session objects. Tomcat doesn't
provide customized mail Session objects or anything like that.
Yoav Shapira
I guess the issue is with compilation or JNI.
-Original Message-
From: Marot Laurent [mailto:[EMAIL PROTECTED]
Sent: October 15, 2004 5:13 AM
To: Tomcat Users List
Subject: RE: Connection Pooling using JNDI DataSource
uh ...
it works fine from our side. But as i saw so many posts
Hi
Tomcat and QMail are installed on same host. Currently clients
(Mozilla-mail, KMail, ect) send email using SSL encryption.
If tomcat is on the same host as your mail daemon, ssl encryption makes no
sense. Send the mail without ssl. It might be nessessary to configure this
in QMail, but since
Hi all,
I found a way to create some DataSources in a webapp context from a properties file,
at tomcat startup.
I did it by creating a custom tag that I will add on the entrance page.
For information, doing it from a struts plugin also works if you create the
DataSources in the _Global_
-Original Message-
From: Shapira, Yoav
Tomcat will complain if it finds errors it can't deal with.
We encourage people to use an independent tool, such as
XMLSpy or one of the free online variants, to validate any
all XML configuration files.
That applies
Hi everybody:
it's where I am now:
Since I don't want to create a session for non-authenticated user, I
made a small change to my login jsp:
%@ page session=false
This is strange but it looks like I have this problem only when I
access my web application through the proxy server.
Here the steps
Hi,
I am having Apache in from of Tomcat. Mapped all .jsp tom Tomcat.
But if I type index.JSP Apache will give the source code. How to
prevent it.
rgds
Antony Paul
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional
Greetings all. I have a jsp running on Tomcat 5.0.12. When this jsp
is called, I get the following exception:
/ConfirmClaim.jsp(85,0) Unterminated lt;%@ page tag
org.apache.jasper.JasperException: /ConfirmClaim.jsp(85,0) Unterminated lt;%@ p
age tag
at
Hi,
Does 5.0.28 show the same issue?
Yoav Shapira http://www.yoavshapira.com
-Original Message-
From: Xeth Waxman [mailto:[EMAIL PROTECTED]
Sent: Friday, October 15, 2004 10:28 AM
To: [EMAIL PROTECTED]
Subject: Unterminated lt;@ page tag Issue
Greetings all. I have a jsp running on
Well,
it could be a certificate issue.
tail -f /var/log/qmail/smtpd/current | tai64nlocal
...
454 TLS connection failed: error:14094416:SSL
routines:SSL _READ_BYTES:sslv3 alert certificate
unknown (#4.3.0)
Looks like I need to import qmail's clientcert.pem
into Tomcat or Java trustStore.
I'm fairly certain it's your syntax:
%@ page import=java.util.ArrayList, com.gcc.creditclaim.CreditClaim; %
should be:
%@ page import=java.util.ArrayList,com.gcc.creditclaim.CreditClaim %
(entries are quoted all together, and no trailing semicolon).
-Original Message-
From: Xeth
Shouldn't this be more like:
[EMAIL PROTECTED] import=java.util.ArrayList,com.gcc.creditclaim.CreditClaim %
Note the classes were concatenated together in one set of quotes w/ a
comma separator and the last semicolon was removed.
--David
Xeth Waxman wrote:
Greetings all. I have a jsp running on
Yoav:
I can't install additional software in our environment (we have strict
controls in place which at times like this are very irksome), so I
can't install a seperate version of Tomcat - so I don't know whether
this would happen in 5.0.28 or not. I hope it would - I would feel
much better if
%@ page import=java.util.ArrayList, com.gcc.creditclaim.CreditClaim; %
should be
%@ page import=java.util.ArrayList
import=com.gcc.creditclaim.CreditClaim %
-Tim
Xeth Waxman wrote:
Greetings all. I have a jsp running on Tomcat 5.0.12. When this jsp
is called, I get the following
Hello!
Thanks for your answer! I'll try to find a tool that can help me but I
appreciate some tips if anyone have used a good tool for this.
Regards
Roland Carlsson
Den 04-10-15 15.16, skrev QM [EMAIL PROTECTED]:
On Fri, Oct 15, 2004 at 08:18:56AM +0200, Roland Carlsson wrote:
: Is there
Ben:
I changed it, and now I'm getting a different error - here's the head
of the output:
SEVERE: Javac exception
Compile failed; see the compiler error output for details.
at org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:844)
at
Mike:
Thanks for the prompt jump on the issue! I actually had someone else
point this out to me as well, so the tag is now:
%@ page import=java.util.ArrayList, com.gcc.creditclaim.CreditClaim%
However, I'm getting a seperate error now which I have placed in my
most recent posting to the list.
What version of Tomcat are you running?
If it's 5.5 you need to make sure that your JAVA_HOME environment
variable points to a full jdk not just a jre.
On Fri, 2004-10-15 at 10:59, Xeth Waxman wrote:
Ben:
I changed it, and now I'm getting a different error - here's the head
of the
Hi,
I was reading in a JSTL book about the Context crossContext attribute, but
it explains nothing.
What exactly does crossContext=true allow one to do?
Thx.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional
Hi,
I am trying to get set up subdomains on a remote server (WebAppCabaret). I
want to have the following valid URLs:
cnw.xxx.com
blog.xxx.com
www.xxx.com
They are all currently routed to Tomcat.
I want each to map to a different directory or app. Do I set this up in
Tomcat or in Apache? How?
Can someone help me get started building my own custom realm? I can't seem
to locate which jar file this class is in.
Also, once I create the Realm in, say for example, package my.realm.package,
where do I place the class files so that the custom realm can be accessed
from Tomcat?
Thanks!
IIRC, it is in $CATALINA_HOME/server/lib/catalina.jar, and that is where
you would put your implementation, too (if it is in a jar...if it is a
class, put it in $CATALINA_HOME/server/classes).
Larry
[EMAIL PROTECTED] 10/15/04 9:21 AM
Can someone help me get started building my own custom
Yoav,
Would you be interested in working on a contract basis to assist us
with this problem? If so what would your per hour charge be?
Thanks,
Sam
On Thu, 14 Oct 2004 16:06:37 -0400, Shapira, Yoav [EMAIL PROTECTED] wrote:
Hi,
Excellent post, that one from Matt Dale -- good advice.
Yoav
Spoke to someone else who had the same problem.
As far as I can see this is a bug in Tomcat, it is unable to find the
custom formatter unless anyone knows different Ill raise this as a bug.
Paul Taylor wrote:
Did you specify your own formatter in your properties file ?
Ive changed my code from
THANK YOU!~
-Original Message-
From: Larry Meadors [mailto:[EMAIL PROTECTED]
Sent: Friday, October 15, 2004 11:30 AM
To: [EMAIL PROTECTED]
Subject: Re: org.apache.catalina.Realm
IIRC, it is in $CATALINA_HOME/server/lib/catalina.jar, and that is where you
would put your implementation,
Hey Ron-
I recently built a web interface for users to reset their own AD passwords.
I am using Novell's libraries to connect to AD LDAP.
I have included Novell's sample GetAuthenticated.java code that shows a
few different says of Binding to an LDAP database.
You can download the libraries
I don't know the answer to that. It's unlikely, though. You could put
something like Apache in the front and use URL rewriting, which can
basically force any URL with a given pattern to be redirected, either
forcing HTTP or HTTPS and doing the redirect only when the scheme is not
what you want.
I tried 2.6.7 w/o -server and it was a no-go. Also, a new libc6 just
hit unstable and I tried the various combinations with that but it seems
I'm stuck with 2.4.27 for now.
Jeff Bowden wrote:
Yeah, I'm using -server. I tried kernel 2.4.27 on the debian box and
that actually works. If I get
Hi,
It makes ServletContext#getContext(/myotherapp) return a non-null
ServletContext object.
That's some good book you have, that explains nothing ;)
Yoav Shapira http://www.yoavshapira.com
-Original Message-
From: e-Denton Subscriber [mailto:[EMAIL PROTECTED]
Sent: Friday, October
Hi,
If you file this as a bug, please make sure to include all relevant
files, ideally in one WAR which we can just deploy to our local servers
to reproduce your problem.
Yoav Shapira http://www.yoavshapira.com
-Original Message-
From: Paul Taylor [mailto:[EMAIL PROTECTED]
Sent:
On Mon, 27 Sep 2004 20:11:24 +0100, Paul Taylor [EMAIL PROTECTED] wrote:
Hi in a previous non Tomcat project I wrote some classes that used the
java.util.logging library that comes with java 1.4 quite successfully. I
am now trying to use the same classes with Toimcat 5.0 but it doesnt
like
Is there somewhere I can find the implementation of the JDBCRealm class?
Looking at the Realm how-to I don't get a lot of information about
sequence of calls, what methods are overridable, etc. Can anyone point me
to the implementation of this class?
-Original Message-
From: Larry
Download the source distribution?
[EMAIL PROTECTED] 10/15/04 9:51 AM
Is there somewhere I can find the implementation of the JDBCRealm class?
Looking at the Realm how-to I don't get a lot of information about
sequence of calls, what methods are overridable, etc. Can anyone point
me
to the
Hi,
Or follow any of the links that say CVS Repositories on the apache.org
pages, which will take you here: http://cvs.apache.org/viewcvs.cgi/.
Then go to
jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/realm.
Yoav Shapira http://www.yoavshapira.com
-Original Message-
Thanks again!
-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
Sent: Friday, October 15, 2004 12:02 PM
To: Tomcat Users List
Subject: RE: org.apache.catalina.Realm
Hi,
Or follow any of the links that say CVS Repositories on the apache.org
pages, which will take you
Hi,
I am using a servlet that open an excel file from an output stream
which is working very well. However, I want to use it under SSL
connection which looks to be quite easy. I made the change in tomcat
and it is working very well. However when I try to open my excel file
using Internet Explorer
Yep. This comes up every so often on the list.
Whenever IE downloads content we change the Pragma response header to be
public instead of no-cache:
String userAgent = request.getHeader(user-agent);
if (response.containsHeader(Pragma)
userAgent!=null
Our web site is entirely SSL. Most users have IE. Our application is used
to securely transfer and digitally sign attached files that must be
downloaded. Yet, we've never seen this problem. Who is putting in the
Pragma header in the response in the first place that you have to change
it this
hello
i'm trying to get my portlet / servlet to see the authenticated user
(request.getRemoteUser returns NULL)
i have the username in my tomcat-users.xml (put the whole DN for username) and i have
the web.xml configured to force CLIENT-CERT auth
after reading
I just added the following line to my Host in server.xml:
Context path=/diveport-cache-servlet
docBase=C:\Work\Dev\diveport-cache\dist\diveport-cache-servlet/
And now Tomcat crashes upon startup, with the following in 'stdout.log':
java.lang.reflect.InvocationTargetException
at
Hi,
We shouldn't crash with an NPE, regardless, but out of curiosity, are
there actually any files in your docBase?
Yoav Shapira http://www.yoavshapira.com
-Original Message-
From: James Clark [mailto:[EMAIL PROTECTED]
Sent: Friday, October 15, 2004 1:51 PM
To: [EMAIL PROTECTED]
Shapira, Yoav wrote:
Hi,
We shouldn't crash with an NPE, regardless, but out of curiosity, are
there actually any files in your docBase?
Yes, the structure is like this:
WEB-INF
classes
com/dimins/so-on-and-so-forth
lib
diveline.jar
web.xml
cacheroot
pages
Hi,
Hmm, well, I'm glad you found a workaround. I don't spend much time on
the Windows Service, but I know it has some intricacies (as do Windows
services in general) with respect to what account they run under.
Yoav Shapira http://www.yoavshapira.com
-Original Message-
From: James
Actually, I'm a big advocate against staying in HTTPS, because of the
overhead. However, this is a problem with Tomcat, because in the 4.x and
5.x lines it was decided by someone that if a session started in HTTPS it
is only valid in HTTPS (basically, the session cookie is turned into a
secure
Unfortunately, the exception-type does not catch return code. I
already have one exception-typejava.lang.Exception/exception-type
which is a good umbrella for all exception an alike. However, it does
not catch 404, for example. It seems like Tomcat catches it and handles
it separately. Due
Hi,
Unfortunately, the exception-type does not catch return code. I
I didn't say it does ;) I was just offering an alternative, and it
looks like you'd already taken advantage of it, so that's a good thing.
web applications. I really don't look forward to managing a long list
of error-page
Hello dudes, is there a way to make tomcat create just one instance
of each taglib in JVM?
Regards,
Edson
On old Tomcat 4 projects, the Manager used Ant to generate Java source
from my JSPs, which could then be compiled directly with my other Java
source, and all was good. The Manager saw that it was good, and it was
good.
In the great migration to Tomcat 5, the Ant script proclaimed:
this task
Hi,
I assume you're already read
http://jakarta.apache.org/tomcat/tomcat-5.0-doc/jasper-howto.html#Web%20
Application%20Compilation? To me, that page suggests JspC just creates
java code, and then javac must be called (explicitly, by you) to compile
that code.
Moreover, the error you're getting
This might work for stand-alone Tomcat. I am using Tomcat 5.0.28? that
ships with JBoss 3.2.5. There isn't a Manager or Context in
server.xml. It does have a DefaultContext, but according to the Tomcat
configuration page, the Manager node does not live under
DefaultContext. My problem is
I am testing Tomcat 5.0.28 on Windows 2000 Pro. I use catalina-ant deploy
task to deploy my webapp war. Where did this exception come from? My web
application runs fine.
stdout.log
15-Oct-2004 3:25:48 PM org.apache.catalina.startup.HostConfig deployWARs
WARNING: Exception while expanding web
Hi,
Looks like you already have an app deployed at the context path.
Yoav Shapira http://www.yoavshapira.com
-Original Message-
From: Phillip Qin [mailto:[EMAIL PROTECTED]
Sent: Friday, October 15, 2004 3:46 PM
To: '[EMAIL PROTECTED]'
Subject: Tomcat 5.0.28 + Ant deploy/undeploy task
Yes, Yoav, everything you wrote is correct. I have read all those
things, and the source is being created *for those files that do not
have dependencies with my other java source.*
In short, I was wondering why the older JSP Java generation in ANT
didn't need those class dependencies, but the
Noop. Before I run deploy task through ant, I checked several directories.
conf/Catalina/investments.localhost: no ROOT.xml
webapps/www.investments.shareowner.com: no ROOT.war nor ROOT/
work/Catalina/www.investments.shareowner.com: no _/
I suspect that Tomcat Manager is deploying the same
Hi,
I suspect that Tomcat Manager is deploying the same application twice,
one
for context.xml, one for war.
In host, I set autoDeploy, deployXML and unpackWar to true.
Any suggestion?
You covered it above. With autoDeploy and the rest set to true, it'll
try to deploy twice, and that's why
You are right. I copied config from my Tomcat 4.1 server.xml. After I
changed autoDeploy to false, my deployment no longer throws exception. One
quick question regarding Tomcat Manager application, I noticed that in
Tomcat 4, war is deployed to work dir while in Tomcat 5 war is in webapps,
are you
I have an application that calls some JNI native code that relies on certain
environment variables being set. When Tomcat runs as a service it does not seem
to get the variables. The The Apache Jakarta Tomcat 5.5 Servlet/JSP Container
document states that these variables may be set with the
Total wild goose chase. I was using ps auxw to look for threads which
work on 2.4 but on 2.6 you need an extra 'H' to see the threads.
To summarize: There is no problem running tomcat5 on sun-j2se-1.4.2 on
debian unstable using kernel 2.6.8. Works like a champ.
hy,
I am runnig Tomcat 5.0.25 on Mac OS X (client) 10.3.5
But the same behaviour occurs with older Tomcat versions.
Sometimes Tomcat (the whole server, not my application) crashes
without any explanation on log files.
I can't reproduce the crash condition it seems in some ways related
with my
In witch way I can be more precise?
By posting your log files.
On Fri, 2004-10-15 at 18:10, Edoardo Panfili wrote:
hy,
I am runnig Tomcat 5.0.25 on Mac OS X (client) 10.3.5
But the same behaviour occurs with older Tomcat versions.
Sometimes Tomcat (the whole server, not my
88 matches
Mail list logo