Hello Nico,
Yes I've been attempting to do the same thing with suns LDAP Context.
Unfortunately (even for myself as an Apache Jakarta Developer, neither
the tomcat user or developer lists have gotten any responses to my emails).
I've done several attempts to start a discussion on this, maybe
I'm hoping maybe someone might be able give an example of how to bind an
Ldap DirContext as a Resource into the context (using Resource tags in
the server.xml). As such I'm hoping to be able to build a Federated
Namespace and be able to access my ldap context in a federated fashion
from the
I'm hoping maybe you might be able to shed some light on something I've
been struggling with. I'm trying to bind an Ldap DirContext as a
Resource into the default web application context (using Resource tags
in the server.xml). As such I'm hoping to be able to build a Federated
Namespace and
This is not off topic for the tomcat user list Chris. How would one do
this in tomcats configuration? By adding an environmental variable to
resource configuration in the server.xml file of tomcat. A proper
subject for the tomcat user list indeed.
See the configuration doc for tomcat if you
Yes, Unfortunately, I bounced off this as well, it would have behooved
the Servlet API developers to allow URL Rewrites to be a little more
powerful from a REGEXP standpoint. Look at the j2sdk1.4 api, we now have
regexp's available there default. One would suspect that the Servlet API
could
(and this mapping works
with any other servlet name defined in the same web.xml file).
Is it that today it's a Friday? Am I misunderstanding something very basic? Is
this a common behaviour, or just happens in Tomcat (4.1.something)?
Thanks,
Albert.
- Original Message -
From: Mark R. Diggory [EMAIL
I have a JNDI DirContext I use for accessing and LDAP server within my
webapplication. I'd like to configure/instatiate it from my server.xml
and store it in the provided InitialContext provided to the webapp (as
opposed to allowing the webapp to configure it).
My question is: Do I need to
with any other servlet name defined in the same web.xml file).
Is it that today it's a Friday? Am I misunderstanding something very basic? Is
this a common behaviour, or just happens in Tomcat (4.1.something)?
Thanks,
Albert.
- Original Message -
From: Mark R. Diggory [EMAIL PROTECTED
/name
valuecom.sun.jndi.ldap.LdapCtxFactory/value
/parameter
parameter
name.../name
value.../value
/parameter
/ResourceParams
-M.
Mark R. Diggory wrote:
I have a JNDI DirContext I use for accessing and LDAP server within my
webapplication. I'd like to configure
You might look into implementing the
javax.servlet.hhtp.HttpSessionBindingListener interface, this will allow
you to act when an object is added/removed from the session. Simply put,
you could write valueBound/UnBound methods that set Cookies into the
HttpResponse.
-Mark
[EMAIL PROTECTED]
Typical Microsoft! Isn't it about time some of these companies that are
complaining about loosing so much money to these virus' sued Microsoft
for negligence.
Really, if all these companies are loosing so much money to these
downright stupid email exploits that a 6th grader could write, you'd
:
You've obviously never read a Microsoft EULA.
John
Mark R. Diggory wrote:
Typical Microsoft! Isn't it about time some of these companies that
are complaining about loosing so much money to these virus' sued
Microsoft for negligence.
Really, if all these companies are loosing so much money
-howto.html#Web%20Application%20Compilation
If you ignore the part about the web.xml fragment, and make sure your output dir is
the same as your Tomcat workdir, then this works
too ( I think - I did so many experiments my mind is now cloudy ).
Steph
-Original Message-
From: Mark R. Diggory
Hello,
I've done my best to review the archives to resolve my problem, but I've
not found a solution there so I'm posting it.
I'm stuck back on Tomcat 4.1.24 (LE) and I'm encountering some issues
with JSP Precompilation using Ant and JSPC. First let me outline my problem.
Most messages I've read
Thanks Ian,
We actually already have a shell script that does this too. I was hoping
to get some details on how to make the jspc and tomcat behaviors more
consistent with each other so that I could move away from this strategy
and use the compiler directly.
Unfortunately, its often the case
In fact, I'm curious to the status of this in 5.0 and the directions
that this will take in the future, I may be willing to do a little work
to add work directory compilation to the capabilities of JspC, if they
do not already exist.
-Mark
Mark R. Diggory wrote:
Thanks Ian,
We actually
from the same HMDC i know, I suspect the site you are trying to pre-compile, is one I wrote last summer.
-Original Message-
From: Mark R. Diggory [mailto:[EMAIL PROTECTED]
Sent: Friday, August 01, 2003 5:19 PM
To: Tomcat Users List
Subject: Jasper, JSPC, Ant and Precompiling JSP's
Hello
Hello,
I've done my best to review the archives to resolve my problem, but I've
not found a solution there so I'm posting it.
I'm stuck back on Tomcat 4.1.24 (LE) and I'm encountering some issues
with JSP Precompilation using Ant and JSPC. First let me outline my problem.
Most messages I've
Snippet from the Ezmlm Manual --- specifically read the second and thrid
paragraphs (Gee, they couldn't have automated this could they?).
1.4 Unsubscribing from an ezmlm mailing list.
You've guessed it already! To unsubscribe from [EMAIL PROTECTED]
just send a message to [EMAIL PROTECTED],
PROTECTED]
Unsubscribe me. ezmlm will send a confirmation request to your
address and remove the address once you reply.
[EMAIL PROTECTED]
Unsubscribe [EMAIL PROTECTED]
-Mark
Mark R. Diggory wrote:
Snippet from the Ezmlm Manual --- specifically read the second and thrid
paragraphs
Hi,
I have a problem that has arisen in Migrating JSP Custom tag code from
tomcat 4.0.3 to tomcat 4.1.12. It seems that when an exception is caught
inside a JSP Tag with TryCatchFinally Interface implmented, the rest of
the page will not render after the tag. Am I missing something obvious,
Hi all,
This is a little confusing, I notice that in 4.1's server.xml file it
still has the WARP connector as the default example of connecting up
to apache. If what you say is the case, should this be mod_jk instead?
i.e. Shouldn't this be a more appropriate connector example that works
on
Hmmm, this definitly looks like a booger in Forte's TLD generation
code... I'll have to *go bug them* for awhile now!
Thank you Jan,
-M.
Jan Luehe wrote:
Mark,
So, on 4.1.* with logging cranked way up, I've been seeing errors that
Jasper encountered a TEI class when the tld already has
If anyone was concered about this issue, it looks like the Forte fixed
this issue and my taglibraries are old and need to be updated to include
the chages.
Mark R. Diggory wrote:
Hmmm, this definitly looks like a booger in Forte's TLD generation
code... I'll have to *go bug them
Jean-Francois Arcand wrote:
Well, after reading all you mail/exchange (look at my
email-addressCraig have the same ;-) ), you should take time to
think/re-read your stuff before sending that type of email. I know
it's frustrating, but .
Point well taken, I apoligize if anyone
Jean-Francois Arcand wrote:
Which version of Xerces are you using? If it's 2.2, there is a bug
associated with the problem:
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=13282
-- Jeanfrancois
Mark R. Diggory wrote:
I keep getting these parsing exceptions when I try to load my custom
I keep getting these parsing exceptions when I try to load my custom
taglibs (from JAR files) on Tomcat 4.0.3, 4.0.5, 4.1 on Windows 2000/XP.
Starting service Tomcat-Standalone
Apache Tomcat/4.0.3
PARSE error at line 1 column -1
org.xml.sax.SAXParseException: Character conversion error:
I'm looking in the ClassLoading documentation and I see this as the
loading order
/WEB-INF/classes of your web application
/WEB-INF/lib/*.jar of your web application
Bootstrap classes of your JVM
System class loader classses (described above)
$CATALINA_HOME/common/classes
A, stupid me. I didn't configure CATALINA_BASE and I've moved the
location of webapps so I didn't need multiple copies of my
webapplication for testing on each version! (Mark whack's himself on the
head!)
I'll try that and see if it solves the problem.
-Mark
Tim Moore wrote:
!
-Mark
Mark R. Diggory wrote:
I keep getting these parsing exceptions when I try to load my custom
taglibs (from JAR files) on Tomcat 4.0.3, 4.0.5, 4.1 on Windows 2000/XP.
Starting service Tomcat-Standalone
Apache Tomcat/4.0.3
PARSE error at line 1 column -1
org.xml.sax.SAXParseException
If you access your XML parser through the JAXP APIs (which Tomcat does for
its own use), there is a standard and portable mechanism for selecting the
parser implementation to be used -- see the JAXP specification for
details.
Craig McClanahan
No, this has to strictly deal with default
Craig R. McClanahan wrote:
I've tried numerous encodings in my tld file, it always says UTF-8 even when I'm not
encoded in UTF-8. It was pointed out that this is a bug in an old version of Xerces.
But, when I install LE versions, I'm not using Xerces, I'm using the default Crimson
parser in
Sorry, I answered in the wrong thread, please ignore this message
Mark R. Diggory wrote:
A, stupid me. I didn't configure CATALINA_BASE and I've moved the
location of webapps so I didn't need multiple copies of my
webapplication for testing on each version! (Mark whack's himself
Are you testing on Windows with j2sdk1.4?
Craig R. McClanahan wrote:
Works for me with no problems on all 4.0.x and 4.1.x versions of Tomcat;
but I'm not trying to use any UTF-8 characters in my TLDs either.
Craig
--
To unsubscribe, e-mail: mailto:[EMAIL PROTECTED]
For additional
wrote:
Which version of Xerces are you using? If it's 2.2, there is a bug
associated with the problem:
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=13282
-- Jeanfrancois
Mark R. Diggory wrote:
I keep getting these parsing exceptions when I try to load my custom
taglibs (from JAR
This doesn't seem to happen with the standard.jar and I'm totally
copying its layout and the version information at the beginning of the
file accept for the encoding being UTF-8 instead of ISO...
Well, I notice that the standard jar also stores the files under thier
own names and not
Don't quote me on this, but I think you could just have your form error
page point at the login page. Then the login page would show up again on
failure.
-Mark
Vincent Stoessel wrote:
Hello All,
maybe I had too much caffeine today but I can't
get my head out of this causality loop I'm
Why do you say this? You can call the j_security_check service from
any jsp page, whether its the one defined in the login attribute of
web.xml or not.
html
head
titleLogin Page for Examples/title
body bgcolor=white
form method=POST action='%= response.encodeURL(j_security_check) %'
table
Please note, I'm not bashing your incentive in getting together a forum
for Log4J issues, I say Cheers to that, but I see a avenue for
development here at jakarta.apache.org...
Unfortunately, to search any faq messages at jGuru you have to become
member at 14.95 a month or 149.95 a year. That
archive.
-Original Message-
From: Mark R. Diggory [mailto:[EMAIL PROTECTED]]
Sent: Friday, September 27, 2002 11:23 AM
To: Log4J Users List; Tomcat Users List
Subject: Re: Log4j @ jGuru.com
Please note, I'm not bashing your incentive in getting together a forum
for Log4J issues, I say Cheers
Put it in the ServletContext, then its available to all Sessions and
Servlets across the application.
Are jaxp Transformers syncronized at all? If so, couldn't different
sessions grab the same transformer from the context and use it?
-M.
neal wrote:
Actually,
Isn't the SessionContext
in the cache
then you can stick a new instance in.
-M.
Mark R. Diggory wrote:
Put it in the ServletContext, then its available to all Sessions and
Servlets across the application.
Are jaxp Transformers syncronized at all? If so, couldn't different
sessions grab the same transformer from
be benifical if the
interface provided for this option by providing something like a
bind-as-user='true|false' query-as-user='true|false' in the realm
configuration.
This is a great Realm interface to JNDI/LDAP. Thanks for writting it.
-Mark
Mark R. Diggory wrote:
Looking over
John Holman wrote:
Mark
Looking up roles as the administrator (or anonymously if
connectionName and connectionPassword are not specified) is a
deliberate design decision.
John.
?? But, if you've already established a connection with the users
principle and credentials, why would
I'm trying to get a realm set up via JNDI to an Openldap server. Here is
my current server.xml config.
Realm
className=org.apache.catalina.realm.JNDIRealm debug=99
connectionURL=ldap://vdc.fas.harvard.edu:389;
) + BR);
}
%
is returning
vdcGroup: public
vdcGroup: researchers
vdcGroup: curators
vdcGroup: administrators
-Mark
Mark R. Diggory wrote:
I'm trying to get a realm set up via JNDI to an Openldap server. Here
is my current server.xml config.
Realm
className
is impossible because if you provide the
connectionName and connectionPassword attributes, then it just looks up
the password on authentication instead of binding as the user.
-M.
Mark R. Diggory wrote:
I know my request should work at the LDAP Server through JNDI because
the following does work
I'm trying to get a file in the filesystem relative to the location of a
JSP Page. At first Blush the following would seem appropriate:
%
String jsp_location = application.getRealPath(request.getServletPath());
String relative = jsp_location.substring(0,jsp_location.lastIndexOf(/));
... get
() and/or
getResourceAsStream(), as that would give you the resource and would
work in a WAR, which the getRealPath() approach won't.
Yoav Shapira
Millennium ChemInformatics
-Original Message-
From: Mark R. Diggory [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 29, 2002 9:53 AM
To: Tomcat Users List
Subject
won't.
Yoav Shapira
Millennium ChemInformatics
-Original Message-
From: Mark R. Diggory [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 29, 2002 9:53 AM
To: Tomcat Users List
Subject: Is this a Bug in request.getServletPath() ?
I'm trying to get a file in the filesystem
Craig R. McClanahan wrote:
On Thu, 29 Aug 2002, Mark R. Diggory wrote:
Date: Thu, 29 Aug 2002 15:13:21 -0400
From: Mark R. Diggory [EMAIL PROTECTED]
Reply-To: Tomcat Users List [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Subject: Re: Is this a Bug in request.getServletPath
I'm trying to get a file in the filesystem relative to the location of a
JSP Page. At first Blush the following would seem appropriate:
%
String jsp_location = application.getRealPath(request.getServletPath());
String relative = jsp_location.substring(0,jsp_location.lastIndexOf(/));
... get
Thanks,
Yes, I read this numerous times. But, I'd like something simpler than
manipulating the dtomcat4 script (which is what I want to avoid). I'd
like a way to set it in the /etc/tomcat4/conf/tomcat4 preferences or in
server.xml. I'm not looking for a quick fix to configure this on one
There are some objects I create inside my Custom Security Realm that I
want to make available in the Users session. Is there a way I can get
hold of the users session from within my custom realm class?
-Mark Diggory
--
To unsubscribe: mailto:[EMAIL PROTECTED]
For additional commands:
I assume you are talking about Tomcat 4, right?
Yes.
If so, there is no way for the Realm itself to reference the user's
session -- all a Realm knows how to do is answer the is this user
authorized and does this user have the right role type questions.
If you want to modify the state of
If you want to modify the state of the current request or session, you
should really be looking at subclassing one of the existing Authenticator
classes, instead of trying to do that in the Realm.
The Authenticator is chosen based on which login-method you select. One
of the four
I'm using tomcat 4.0.1.
While
error-page
error-code400/error-code
location/Error/Http/BadRequest.jsp/location
/error-page
does route to error pages when proper status is set in the page. The
following doesn't seem to work as well for exceptions.
error-page
Apologies... I was catching exceptions in a filter, stopping them from
continuing on to the Engine...
Mark R. Diggory wrote:
I'm using tomcat 4.0.1.
While
error-page
error-code400/error-code
location/Error/Http/BadRequest.jsp/location
/error-page
does route
I tried including
WebAppDeploy ROOT warpConnection /
this totally doessn't work, the ROOT mapping interfereswith all the other mappings and
then nothing works but the ROOT mapping.
if I hard code the sers directory with WebAppDeploy then it works, but
this is not scaleable
WebAppDeploy
Mark R. Diggory wrote:
I assume I would need to use a WebAppDeploy descriptor to map the
users directories to Tomcat, how would I do that for generic users
directories (~/public_html)?
WebAppConnection warpConnection warp localhost:8008
WebAppDeploy examples warpConnection
I've successflly set up tomcat to server user public_html directories
using the example in the docmentation.
However, this doesn't seem to work as well when I try it through my WARP
connection.
Is this possible? Any tips?
!-- Define an Apache-Connector Service --
Service
warpConnection /manager/
WebAppDeploy webdav warpConnection /webdav/
Mark R. Diggory wrote:
I've successflly set up tomcat to server user public_html directories
using the example in the docmentation.
However, this doesn't seem to work as well when I try it through my
WARP connection
Hello,
Is there something I have to configure in mod_jk to get the REOMOTE_HOST
to resolve. Its apparently available in Apache but seems to not show up
in Tomcat when I do request.getRemoteHost().
thank you,
Mark Diggory
63 matches
Mail list logo