Re: howto federate tomcat JNDI to another JNDI context ?

2004-01-14 Thread Mark R. Diggory
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

Server.xml Resources and LDAP DirContext Object Factories

2004-01-11 Thread Mark R. Diggory
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

LDAP DirContext Object Factories in server.xml Resources

2004-01-09 Thread Mark R. Diggory
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

Re: how to change default SMTP port 25 in java mail?

2003-12-16 Thread Mark R. Diggory
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

Re: Disabling JSP execution under certain dirs

2003-12-12 Thread Mark R. Diggory
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

Re: Disabling JSP execution under certain dirs

2003-12-12 Thread Mark R. Diggory
(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

Do I need a Custom Resource Factory for this?

2003-12-12 Thread Mark R. Diggory
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

Re: Disabling JSP execution under certain dirs

2003-12-12 Thread Mark R. Diggory
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

Re: Do I need a Custom Resource Factory for this?

2003-12-12 Thread Mark R. Diggory
/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

Re: how to customize HTTPSession

2003-11-23 Thread Mark R. Diggory
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]

Re: E-Mail to CompuServe Customer Service

2003-08-22 Thread Mark R. Diggory
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

Re: E-Mail to CompuServe Customer Service

2003-08-22 Thread Mark R. Diggory
: 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

Re: Jasper, JSPC, Ant and Precompiling JSP's

2003-08-10 Thread Mark R. Diggory
-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

Jasper, JSPC, Ant and Precompiling JSP's

2003-08-04 Thread 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

Re: Jasper, JSPC, Ant and Precompiling JSP's

2003-08-04 Thread Mark R. Diggory
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

Re: Jasper, JSPC, Ant and Precompiling JSP's

2003-08-04 Thread Mark R. Diggory
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

Re: Jasper, JSPC, Ant and Precompiling JSP's

2003-08-04 Thread Mark R. Diggory
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

Jasper, JSPC, Ant and Precompiling JSP's

2003-08-01 Thread 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

How to unsubscribe a different email address from ezlm [was Re: GETSOME MANNERS!!!!! Re: TO SIMONE LEIGH]

2003-06-06 Thread Mark R. Diggory
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],

Re: How to unsubscribe a different email address from ezlm [was Re:GET SOME MANNERS!!!!! Re: TO SIMONE LEIGH]

2003-06-06 Thread Mark R. Diggory
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

TryCatchFinally Interface and rendering rest of JSP page.

2002-12-13 Thread Mark R. Diggory
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,

mod_webapp (was: Re: TOMCAT-STANDALONE needed with Apache Server?)

2002-10-10 Thread Mark R. Diggory
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

Re: Jasper complains when parsing valid TLD (was: Can't deploy CustomTag Library ... )

2002-10-09 Thread Mark R. Diggory
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

Re: Jasper complains when parsing valid TLD (was: Can't deploy CustomTag Library ... )

2002-10-09 Thread Mark R. Diggory
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

Jasper complains when parsing valid TLD (was: Can't deploy CustomTag Library ... )

2002-10-08 Thread Mark R. Diggory
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

Re: Can't deploy Custom Tag Library on Microsoth Windoz

2002-10-07 Thread Mark R. Diggory
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

Can't deploy Custom Tag Library on Microsoth Windoz

2002-10-07 Thread Mark R. Diggory
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:

Class Loading Question

2002-10-07 Thread Mark R. Diggory
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

Re: Configuring Tomcat to start with different verisons of a WebApp

2002-10-07 Thread Mark R. Diggory
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:

Re: Can't deploy Custom Tag Library on Microsoth Windoz

2002-10-07 Thread Mark R. Diggory
! -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

Re: Can't deploy Custom Tag Library on Microsoth Windoz

2002-10-07 Thread Mark R. Diggory
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

Re: Can't deploy Custom Tag Library on Microsoth Windoz

2002-10-07 Thread Mark R. Diggory
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

Re: Configuring Tomcat to start with different verisons of a WebApp

2002-10-07 Thread Mark R. Diggory
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

Re: Can't deploy Custom Tag Library on Microsoth Windoz

2002-10-07 Thread Mark R. Diggory
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

Re: Can't deploy Custom Tag Library on Microsoth Windoz

2002-10-07 Thread Mark R. Diggory
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

Re: Can't deploy Custom Tag Library on Microsoth Windoz

2002-10-07 Thread Mark R. Diggory
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

Re: retry form based login

2002-10-01 Thread Mark R. Diggory
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

Re: retry form based login

2002-10-01 Thread Mark R. Diggory
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

Re: Log4j @ jGuru.com

2002-09-27 Thread Mark R. Diggory
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

Re: Log4j @ jGuru.com

2002-09-27 Thread Mark R. Diggory
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

Re: Caching / Cloning

2002-09-18 Thread Mark R. Diggory
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

Re: Caching / Cloning

2002-09-18 Thread Mark R. Diggory
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

Re: Problems getting roles in JNDI Realm (This *IS* a problem.)

2002-09-09 Thread Mark R. Diggory
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

Re: Problems getting roles in JNDI Realm (This *IS* a problem.)

2002-09-09 Thread Mark R. Diggory
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

Problems getting roles in JNDI Realm

2002-09-07 Thread Mark R. Diggory
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;

Re: Problems getting roles in JNDI Realm (more info)

2002-09-07 Thread Mark R. Diggory
) + 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

Re: Problems getting roles in JNDI Realm (This *IS* a problem.)

2002-09-07 Thread Mark R. Diggory
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

Is this a Bug in request.getServletPath() ?

2002-08-29 Thread Mark R. Diggory
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

Re: Is this a Bug in request.getServletPath() ?

2002-08-29 Thread Mark R. Diggory
() 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

Re: Is this a Bug in request.getServletPath() ?

2002-08-29 Thread Mark R. Diggory
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

Re: Is this a Bug in request.getServletPath() ?

2002-08-29 Thread Mark R. Diggory
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

How do I get hold of a resource relative to a JSP Page?

2002-08-28 Thread Mark R. Diggory
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

Re: SystemErrLogger and SystemOutLogger

2002-04-26 Thread Mark R. Diggory
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

Realms and User Sessions.

2002-02-18 Thread Mark R. Diggory
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:

Re: Realms and User Sessions.

2002-02-18 Thread Mark R. Diggory
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

Re: Realms and User Sessions.

2002-02-18 Thread Mark R. Diggory
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

exception-type in web.xml

2002-02-16 Thread Mark R. Diggory
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

Re: exception-type in web.xml

2002-02-16 Thread Mark R. Diggory
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

Re: Please someone, I really need help with this issue.

2002-02-10 Thread Mark R. Diggory
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

Please Help....Re: Listeners in the WARP Connector?

2002-02-08 Thread Mark R. Diggory
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

Listeners in the WARP Connector?

2002-02-07 Thread Mark R. Diggory
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

Re: Listeners in the WARP Connector?

2002-02-07 Thread Mark R. Diggory
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

REMOTE_HOST not showing up in Tomcat3.2

2001-08-16 Thread Mark R. Diggory
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