Newbie - JDBC problem "Name is not bound in this context"

2004-08-07 Thread ohaya
Hi, I just got Tomcat 5.0.27 installed (with Apache 2.0.50), and am trying to get a simple JDBC JSP working. The JSP is called 'test.jsp'. I have the JDBC-ODBC bridge installed and am going through that. I've been using the bridge driver from standalone Java applications, so I think that is wor

Re: Newbie - JDBC problem "Name is not bound in this context"

2004-08-07 Thread ohaya
> I'm not a JNDI expert but you can try this: > > Context ic = new InitialContext(); > Context ctx = (Context) ic.lookup("java:comp/env"); > DataSource ds = (DataSource) ic.lookup("jdbc/jimnew"); > Hi Dennis, I've been wrestling with this problem for most of today, and at this point, I don't

Re: Newbie - JDBC problem "Name is not bound in this context"

2004-08-07 Thread ohaya
"D'Alessandro, Arthur" wrote: > > Add a resourcelink to your context definition. Arthur, I'm kind of (well, really) new to Tomcat, so could you clarify? Am I right that you mean to add that to the server.xml? At least with the distribution that I installed, which I posted with my original

Re: Newbie - JDBC problem "Name is not bound in this context"

2004-08-07 Thread ohaya
"D'Alessandro, Arthur" wrote: > > path="/yourwebappname" privileged="false" reloadable="true" > swallowOutput="true"> >type="javax.sql.DataSource"/> > > > Either in your server.xml, or as 'context.xml' in your webapps /META-INF > folder.. > Hi Arthur, Guess what? I think that I've fo

Re: Newbie - JDBC problem "Name is not bound in this context"

2004-08-09 Thread ohaya
d_1, Answers/comments below, interspersed... Jim d_l wrote: > > Can you clarify what version of Tomcat you are using? d_1, I'm running Tomcat 5.0.27... > It seems that there is a configuration change .. from Tomcat4 to Tomcat5 .. > > the context goes in to \conf\Catalina\localhost\.xml

Re: Newbie - JDBC problem "Name is not bound in this context"

2004-08-09 Thread ohaya
QM wrote: > > On Mon, Aug 09, 2004 at 09:29:51AM -0400, ohaya wrote: > : > BUT .. in my Tomcat 5.0.27 .. I only see three .xml files in above > : > location .. > : > > : > admin.xml > : > balancer.xml > : > manager.xml > : > > : > no other

Re: Re: Newbie - JDBC problem "Name is not bound in this context"

2004-08-09 Thread ohaya
> > From: "d_l" <[EMAIL PROTECTED]> > Date: 2004/08/09 Mon AM 10:24:12 EDT > To: [EMAIL PROTECTED] > Subject: Re: Newbie - JDBC problem "Name is not bound in this context" > > On 9 Aug 2004 at 9:29, ohaya ohaya-at-cox.net |Tomcat User List| wro

Re: Newbie - JDBC problem "Name is not bound in this context"

2004-08-09 Thread ohaya
d_l wrote: > > On 9 Aug 2004 at 12:37, QM qm300-at-brandxdev.net |Tomcat User Li wrote: > > > > http://jakarta.apache.org/tomcat/tomcat-5.0-doc/config/context.html > > > > My previous message will make more sense then, and both of your > > questions should be answered. > > > I referred to

Re: Newbie - JDBC problem "Name is not bound in this context"

2004-08-09 Thread ohaya
> > There are 2 ways for the {tomcat}/conf/{...}.xml files to be created: > > 1/ META-INF/context.xml is extracted from a WAR file when it is deployed > and copied there. > (Unless the matching XML file already exists under conf/, in which case > the WAR file's context.xml is ignored) > >

Re: Newbie - JDBC problem "Name is not bound in this context"

2004-08-09 Thread ohaya
d_l wrote: > > On 9 Aug 2004 at 17:00, ohaya ohaya-at-cox.net |Tomcat User List| wrote: > > > Now the thing that I'm wondering is where did those others come from. > > At this point, it's clear that Tomcat must've created them (I'm 100% > > sure

Problem retrieving client cert info

2004-08-17 Thread ohaya
Hi, I have an SSL-enabled Apache + Tomcat with mod_jk2. Apache is configured to require client certificates, and I've confirmed that this client authentication seems to be working (see below). I have a JSP where I want to retrieve some info from the client certificate. Here's the code that I'm t

How to enable mod_jk2 logging or trace problem

2004-08-17 Thread ohaya
Hi, I had posted a msg earlier today about a problem I'm having where in my JSP, I don't seem to be able to retrieve the client certificate information for my Apache+Tomcat+mod_jk2 server. I'm starting to wonder if maybe the problem may be that Apache is not passing the information on to Tomcat.

How to get mod_jk2 to pass (environment?) variables

2004-08-18 Thread ohaya
Hi, My apologies for continuing to post similar messages, but I'm still not able to get my JSPs to retrieve any of the information from client certificates in my Apache+Tomcat+mod_jk2 server. I've been testing like crazy for 2-3 days now, and going nowhere fast. At this point, I'm getting more c

Building mod_jk2 and pointers to where to modify it...

2004-08-18 Thread ohaya
Hi, I am not getting anywhere with a problem that I'm having with trying to access/retrieve SSL client certificate information with Apache+Tomcat+mod_jk2, so I'm thinking that my only avenue for resolving this problem may be to build mod_jk2 binary myself, possibly modifying the code to add some a

Tomcat dies immediately

2004-08-18 Thread ohaya
Hi, I'm trying to setup Tomcat 5.0.27 to talk to Apache using mod_proxy on Win2K server. When I add the following to server.xml to setup the proxy port: and try to start Tomcat, a DOS window flashes up for a few seconds, then disappears, i.e., Tomcat doesn't seem to be able to startup. Can a

Re: Tomcat dies immediately

2004-08-18 Thread ohaya
QM wrote: > > On Wed, Aug 18, 2004 at 10:00:43PM -0400, ohaya wrote: > : I'm trying to setup Tomcat 5.0.27 to talk to Apache using mod_proxy on > : Win2K server. > : When I add the following to server.xml to setup the proxy port: > : [snip] > : and try to start Tomca

New idea - Enable Tomcat for SSL?

2004-08-19 Thread ohaya
Hi, With the problems that I've posted about, trying to run Apache+Tomcat+mod_jk/jk2/proxy and not being able to retrieve the PKI client certificate information in JSPs, I'm now wondering if the best way to do this might be to just forget about Apache, and just run Tomcat by itself. I've seen som

Re: New idea - Enable Tomcat for SSL?

2004-08-19 Thread ohaya
"Shapira, Yoav" wrote: > > Hi, > http://jakarta.apache.org/tomcat/tomcat-5.0-doc/ssl-howto.html > > And, of course, > http://jakarta.apache.org/tomcat/faq/connectors.html#integrate which > should have saved you considerable time and effort. > Yoav, I had posted a number of messages about pr

Re: New idea - Enable Tomcat for SSL?

2004-08-20 Thread ohaya
;Shapira, Yoav" wrote: > > Hi, > I don't know about CRL support -- why not just try it out? > > Yoav Shapira > Millennium Research Informatics > > >-Original Message- > >From: ohaya [mailto:[EMAIL PROTECTED] > >Sent: Thursday, August 19, 20

Re: New idea - Enable Tomcat for SSL?

2004-08-20 Thread ohaya
rid-data-build.web.cern.ch/proj-grid-data-build/edg-java-se > >curity/edg-java-security-1.5.9/tomcat/Authentication_Admin_Guide.html, > >suggesting a custom SSLSocketFactory is in order. Tomcat of course lets > >you integrate whatever socket factory you want for your connector, and >

Where are Tomcat logs when run as service?

2004-08-22 Thread ohaya
Hi, Up until tonight, I've been running standalone Tomcat as an executable. But, I installed Tomcat on another machine, this time, installing it as a service. I can't find anywhere where Tomcat on this new machine logs the messages like you seen in the DOS window when you run Tomcat as an execut

Re: Where are Tomcat logs when run as service?

2004-08-23 Thread ohaya
Shakeel wrote: > > Hi, thats good that you started this as a service, we just done same with > our application, and may be our discussion help each other. > > Here is exact information about logs of Tomcat when running as a service. > 1- All System.out.print go to $:\Tomcat4.1\logs\stdout.log >

Re: How to Enable Logging HTTP Requests (Tomcat standalone)?

2004-12-15 Thread ohaya
> 1/ please post a *new* message when writing to the list. Replying to > an old (unrelated) message confuses thread-aware mailers, which makes > your question harder to find (and thus answer). Sorry, I couldn't remember the address and got lazy (too early in the morning :)) > 2/ do you mea

Re: Re: How to Enable Logging HTTP Requests (Tomcat standalone)?

2004-12-15 Thread ohaya
> > In 5.0.28 the accessLogValve is already configured for you. You just > need to uncommment it in your server.xml file. > > > > directory="logs" prefix="localhost_access_log." suffix=".txt" > pattern="common" resolveHosts="false"/> > Ben, Thanks. Unfortun

Re: How to Enable Logging HTTP Requests (Tomcat standalone)?

2004-12-15 Thread ohaya
Ben Souther wrote: > > > Ben, > > > > Thanks. Unfortunately, and I have to apologize for this omission, I forgot > > to mention that I'm working with Tomcat 4.1.31. Also unfortunately, that's > > the only version that I can work with, for some specific reasons... > > > > For V4.1.31, is ther

Tomcat binaries for Solaris 9 SPARC?

2004-12-13 Thread ohaya
Hi, I was wondering where I might get binaries for Tomcat for Solaris 9 SPARC? I went to the www.apache.org website, and there are ".tar.gz" versions, but I couldn't see any specific for Solaris/SPARC systems. Thanks in advance, Jim --

Re: Tomcat binaries for Solaris 9 SPARC?

2004-12-13 Thread ohaya
"Caldarale, Charles R" wrote: > > > From: ohaya [mailto:[EMAIL PROTECTED] > > Subject: Tomcat binaries for Solaris 9 SPARC? > > > > I was wondering where I might get binaries for Tomcat for Solaris 9 > > SPARC? I went to the www.apache.org website,

How to Enable Logging HTTP Requests (Tomcat standalone)?

2004-12-15 Thread ohaya
Hi, I was wondering if it's possible to configure a standalone Tomcat to log HTTP requests (and posts too, ideally)? If it is, how do I do this, and where does it (Tomcat) log the output to? I've tried editing the Debug level in the Connector in server.xml, and then bouncing Tomcat, but that doe

Running Tomcat as service

2005-01-30 Thread ohaya
Hi, I've been running (an older) version of Tomcat (4.1.31) on a test Windows 2000 system for awhile as an application, and this weekend, I wanted to try to run it as a service, so I downloaded and ran the .EXE version from www.apache.org. The installation seemed to go ok, but whenever the servic

Re: Tomcat SSL Client Authentication

2005-04-27 Thread ohaya
Hi, I believe that the "clientAuth" needs to be set to "true" in the server.xml. Jim lercoli wrote: > > Hello > > I've configured Tomcat SSL Client Authentication with these settings : > > web.xml > > ... > > > > > Entire Application > > /* > > GET > > POST > > > > > > CONF

Re: Tomcat SSL Client Authentication

2005-04-27 Thread ohaya
heck for client cert revocations (i.e., CRL checking). I don't know if that has changed at all since then. lercoli wrote: > > Hi Jim > > I've tried with clientAuth = true but server certificate window doesn't > appear and I get page not found error. > &

How to Replace Tomcat authentication?

2005-07-14 Thread ohaya
Hi, I've been looking into possibly replacing Tomcat's authentication with our own functionality. It looks like there use to be a class called SimpleRealm in the older Tomcat versions that would have done the trick if we replaced it, but I can't find any references to it in the latest source that

Re: How to Replace Tomcat authentication?

2005-07-14 Thread ohaya
Bill Barker wrote: > > "ohaya" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > Hi, > > > > I've been looking into possibly replacing Tomcat's authentication with > > our own functionality. It looks like there use to be a c

Re: How to Replace Tomcat authentication?

2005-07-14 Thread ohaya
Bill Barker wrote: > > "ohaya" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > Hi, > > > > I've been looking into possibly replacing Tomcat's authentication with > > our own functionality. It looks like there use to be a c

Re: How to Replace Tomcat authentication?

2005-07-14 Thread ohaya
Bill Barker wrote: > > "ohaya" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > Hi, > > > > I've been looking into possibly replacing Tomcat's authentication with > > our own functionality. It looks like there use to be a c

Is anyone receiving this? Messages bouncing

2005-07-15 Thread ohaya
Hi, Since last night, I have been getting "delivery failed" messages when sending to the mailing list. If anyone sees this message, would you mind responding to let me know? I've emailed the "help" email address last night, but haven't heard back yet. Thanks, Jim --

Re: Is anyone receiving this? Messages bouncing

2005-07-15 Thread ohaya
Edrei and Zhou, Ok, thanks! I'll try again with the msgs that bounced. Sorry for the bother... Jim Edrei Marcelo wrote: > > hi, i received > - Original Message ----- > From: ohaya > To: tomcat-user@jakarta.apache.org > Sent: Friday, July 15, 2005 5:10 PM

Re: How to Replace Tomcat authentication?

2005-07-15 Thread ohaya
Bill Barker wrote: > > "ohaya" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > Hi, > > > > I've been looking into possibly replacing Tomcat's authentication with > > our own functionality. It looks like there use to be a c

Where is default logon.jsp for Tomcat Admin webapp?

2005-07-15 Thread ohaya
Hi, When connecting to the Tomcat Admin webapp, a forms-based login page appears. The web.xml for "admin" has a login-config section that indicates that the login page is "/login.jsp". However, I've looked all over my hard drive, and especially in the "admin" directory, and I can't find any such

Re: Where is default logon.jsp for Tomcat Admin webapp?

2005-07-17 Thread ohaya
;ve checked for hidden files, etc., but login.jsp just isn't there. That is why I'm asking my question... Jim Mark Thomas wrote: > > CATALINA_BASE\server\webapps\admin\login.jsp > > ohaya wrote: > > Hi, > > > > When connecting to the Tomcat Admin webapp,

Re: Where is default logon.jsp for Tomcat Admin webapp?

2005-07-17 Thread ohaya
"Caldarale, Charles R" wrote: > > > From: ohaya [mailto:[EMAIL PROTECTED] > > Subject: Re: Where is default logon.jsp for Tomcat Admin webapp? > > > > As I indicated in my original msg, on my installation of Tomcat > > (5.0.27), there is no login.jsp

Re: JAASRealm and Subject

2005-07-18 Thread ohaya
ould be for Tomcat? Jim ohaya wrote: > > Rogerio, > > I've been wrestling with this exact same problem, but haven't had any > more success than you have had thus far, so if you find out the answer > to this, can you please post a msg here? I'll do the same..

Re: JAASRealm and Subject

2005-07-18 Thread ohaya
Rogerio, I've been wrestling with this exact same problem, but haven't had any more success than you have had thus far, so if you find out the answer to this, can you please post a msg here? I'll do the same... Thanks, Jim Rogerio Baldini das Neves wrote: > > Hi! > > I'm using the Tomcat

Re: JAASRealm and Subject

2005-07-18 Thread ohaya
like with the Tomcat environment, any work that the LoginModule does to populate the Principals, etc. seems to be totally inaccessible to servlets and JSPs? Thanks, and apologies for the longish message... Jim ohaya wrote: > > Hi, > > I'

Re: JAASRealm and Subject

2005-07-18 Thread ohaya
as request.getRemoteUser if the user has been authenticated, right? Jim Jo wrote: > > Is casting request.getUserPrincipal() to your custome-made Principal gonna > help get what you want ? > > Jojada.- > > - Original Message - > From: "ohaya" <[EMAIL

Re: Tomcat vs Jboss-Tomcat

2005-07-19 Thread ohaya
Sridhar, For just JSPs, you only need Tomcat. I think that JBoss will be needed if you use EJBs. Jim Sridhar wrote: > > Hi Everybody, > > Is it any difference will come between Tomcat and Jboss-Tomcat. > Which is best for Executing executing only JSPs. > > Regards > Sridhar --

Re: JAASRealm and Subject

2005-07-19 Thread ohaya
ot related. > But I am not 100% sure about that. > > Thank you again. > Rogerio > > - Original Message - > From: "ohaya" <[EMAIL PROTECTED]> > To: "Tomcat Users List" > Sent: Monday, July 18, 2005 10:14 PM > Subject: Re: JAASRealm and Subject > &