Re: Poolman and tomcat

2001-05-09 Thread Dave Weis

Randy Layman wrote:
> 
> One common mistake people make is to place the .zip files into the
> WEB-INF/lib directory - this doesn't work.  Tomcat only picks up the .jar
> files.  If you rename classesXXX.zip to classesXXX.jar Tomcat should
> automatically load the files.
> 
> If this doesn't solve your problem, you need to post the error
> either here, or to the PoolMan support.

I couldn't get it working outside of tomcat. I do have Oracle working
fine without pooling through tomcat though. I sent a message to
[EMAIL PROTECTED] at the beginning of the week but didn't get a
response. The error messages are pretty long, should I put them on the
web somewhere to look at?

Thanks for the help
dave


-- 
Dave Weis
businessolver, Inc.
[EMAIL PROTECTED]
http://www.businessolver.com/



Re: Poolman and tomcat

2001-05-09 Thread Dave Weis


Harden ZHU wrote:
> 
> I am using poolman 2.01 and tomcat. I use oracle OCI driver for 8.1.7.
> But when i run PoolManSample, I got error. Any additional step i need do?

I've also tried to get this working with no luck. I tried both
classes111.zip and classes12.zip. I can connect fine from the beans
under tomcat without pooling, but the test sample won't run.

dave

-- 
Dave Weis
businessolver, Inc.
[EMAIL PROTECTED]
http://www.businessolver.com/



Re: ssl with apache

2001-05-08 Thread Dave Weis


Alexander Banthien wrote:
> did you get it to work finally? What you said, made my setup run.
> 
> Assuming you did manage to get it to run: did yu ever try to access the SSL-Data
> (e.g SSL_SESSION_ID) from within your web-app? I have to do this and do not
> really know how to.
> 
> As far as I could see (sniffing in the network), some additional data are
> transferred from apache to tomcat via ajp13. But they are rather cryptic, I can't
> interpret them.

No, I didn't get it running. What I was doing now didn't require SSL but
I will probably end up trying to get mod_ssl running instead of
apache-ssl. We are using the stronghold server.

dave

> Dave Weis schrieb:
> 
> > I've got Tomcat 3.2.1 working fine with apache via http, but can't get
> > it to do ssl properly.
> >
> > Is there a minimum version of mod_ssl that needs to be used? The
> > signature of my server is Apache/1.3.9 Ben-SSL/1.37 Server. Adding the
> > line "SSLOptions +StdEnvVars +ExportCertData" from the howto at
> > http://jakarta.apache.org/tomcat/jakarta-tomcat/src/doc/tomcat-ssl-howto.html
> > gives an error at startup.
> >
> > This is what I have in my httpsd.conf file
> >
> > JkWorkersFile /usr/local/jakarta-tomcat-3.2.1/conf/workers.properties
> > JkLogFile /usr/local/jakarta-tomcat-3.2.1/logs/mod_jk.log
> > JkLogLevel warning
> >
> > # Should mod_jk send SSL information to Tomact (default is On)
> > JkExtractSSL On
> > # What is the indicator for SSL (default is HTTPS)
> > JkHTTPSIndicator HTTPS
> > # What is the indicator for SSL session (default is SSL_SESSION_ID)
> > JkSESSIONIndicator SSL_SESSION_ID
> > # What is the indicator for client SSL cipher suit (default is
> > SSL_CIPHER)
> > JkCIPHERIndicator SSL_CIPHER
> > # What is the indicator for the client SSL certificated (default is
> > SSL_CLIENT_CERT)
> > JkCERTSIndicator SSL_CLIENT_CERT
> >
> > Inside of a vhost:
> >
> > JkMount /mydir/servlet/* ajp13
> > JkMount /mydir/*.jsp ajp13
> >
> > This does all work with the non-ssl version.

-- 
Dave Weis
businessolver, Inc.
[EMAIL PROTECTED]
http://www.businessolver.com/



Re: JNDI Datasource in Tomcat

2001-05-07 Thread Dave Weis


Which database drivers are you using with poolman? I'm trying to use
Oracle, but it's giving me null pointer exceptions when I run the test.
Could you send your poolman.xml file?

Thanks
dave


eric chacon wrote:
> You'll need some connection pooling software which doesn't appear to come
> bundled with Tomcat.  There are several open-source connection pools.
> 
> I've used PoolMan (www.codestudio.com), and found it to work pretty well.
> 
> I did have a problem using JNDI, which I never successfully resolved,
> however:  to make a Datasource (or any object) available through JNDI, you
> need to set up a proper security policy.  I was never able to deploy a
> datasource that my servlets could read.
> 
> Most connection pooling software packages don't require that you use JNDI
> (they come with propietary configuration files and such).
> 
> Note: If you use a full J2EE solution such as Enhydra or JBoss (both of
> which come bundled with Tomcat), then they'll set up your data sources for
> you (you modify some XML files), and you're good to go.

-- 
Dave Weis
businessolver, Inc.
[EMAIL PROTECTED]
http://www.businessolver.com/



JDBC 2.0 connection pooling?

2001-05-01 Thread Dave Weis


Has anyone set up the connection pooling using tomcat 3.2.2? I would
like to stick with the Sun JDBC stuff if possible.

Thanks
dave


-- 
Dave Weis
businessolver, Inc.
[EMAIL PROTECTED]
http://www.businessolver.com/



Re: Mapping using servlets? RequestInterceptor ?

2001-04-19 Thread Dave Weis


There isn't any documentation on writing these, I looked also. I managed
to get one working and put parts of it up for you at

http://www.sjdjweis.com/java/interceptor/

It probably won't compile, I removed some of the sensitive parts. There
are some bits of info on how to install it there also. 

Good luck
dave


Artur Matos wrote:
> 
> Hi,
> 
>  I'm developing a web application where I need to map URIs like:
> 
> /enterprise/resource (a virtual path)
> 
> to
> 
> /resource (a real,existent path)
> 
> where enterprise is a any valid enterprise present in a database. In addition to
> mapping to the correct page, it needs also to register the enterprise used to
> session variables (so that I could use the current enterprise object from my
> jsp page).
> 
> I've implemented this mapping using a servlet (mapping to /portal/*) that parses
> the request (i.e. /portal/enterprise/resource ) and redirects to the correct
> resource. Unfortunately this doesn't seems to work correctly with POST forms or
> multi-part form-data: when the form is submited via POST, tomcat never finds the
> action page (i.e enterprise/action.jsp); Acessing the same page directly from
> the browser, or using GET, works ok. Is this the expected behavior or a tomcat
> bug?
> 
> Because of this, I'm thinking of using RequestInterceptors to implement the
> mapping behavior instead. Are there any examples of redirection and setting
> session variables using RequestInterceptors? I was unable to find any
> documentation on this.
> 
> Thanks for all,
> 
> Artur Matos ([EMAIL PROTECTED])
> 
> -
> Everyone should have http://www.freedom2surf.net/

-- 
Dave Weis
businessolver, Inc.
[EMAIL PROTECTED]
http://www.businessolver.com/



Re: mod_jserv compilation problem (AIX)

2001-04-10 Thread Dave Weis


Compiling libraries on AIX is mostly voodoo and luck. Does the file
/usr/local/apache/libexec/httpd.exp exist?

You might try the newsgroup comp.unix.aix, there are some IBM people
there that may be able to help.

dave

Olivier Hislaire wrote:
> 
> Hi there,
> 
> I am trying to build the mod_jserv.so shared object in IX 4.3.1.0, using
> gcc 2.7.2, apxs from apache 1.3.19 (binary distribution for aix4.3) and
> tomcat 3.2.1. And I *almost* made it :-(
> 
> Since, there is just one stupid problem in linking the share object (see
> below); could anybody help me with this, or tell me where to find a
> suitable mod_jserv.so for my aix box ?
> 
> Thanks,
> 
> Olivier
> 
> - start of inclusion
> 
> (...)
> 
> gcc -DAIX=43 -DUSE_PTHREAD_SERIALIZED_ACCEPT -U__STR__ -DAIX_BIND_PROCESSOR
> -DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite -fpic -DSHARED_MODULE
> -I/usr/local/apache/include -c mod_jserv.c
> 
> ld -H512 -T512 -bhalt:4 -bM:SRE -bnoentry
> -bI:/usr/local/apache/libexec/httpd.exp -lc -o mod_jserv.so mod_jserv.o
> jserv_wrapper_win.o jserv_wrapper_unix.o jserv_wrapper.o jserv_watchdog.o
> jserv_utils.o jserv_status.o jserv_protocols.o jserv_mmap.o jserv_image.o
> jserv_balance.o jserv_ajpv12.o jserv_ajpv11.o autochange.o
> 
> ld: 0711-244 ERROR: No csects or exported symbols have been saved.
> apxs:Break: Command failed with rc=8
> 
> - end
> 
>
> Olivier Hislaire
> 
> MSG International   Email:   [EMAIL PROTECTED]
> 97 Avenue de Tervuren Phone: +32 (0)2 735.91.59 Ext. 55
> 1040 Brussels Fax: +32 (0)2 732.12.19
> Belgium  http://www.msg-i.com
> 
>

-- 
Dave Weis
businessolver, Inc.
[EMAIL PROTECTED]
http://www.businessolver.com/



session cookies across contexts

2001-04-09 Thread Dave Weis


Is it possible to configure Tomcat to use a single session cookie for
all web contexts? Right now I only have a single context in a
subdirectory and it is sending the session cookie with that subdirectory
at the front. I would also like the session data shared.

I see that the cookie is being sent in SessionInterceptor, do I need to
write my own?

Thanks
dave


-- 
Dave Weis



ssl with apache

2001-04-09 Thread Dave Weis


I've got Tomcat 3.2.1 working fine with apache via http, but can't get
it to do ssl properly. 

Is there a minimum version of mod_ssl that needs to be used? The
signature of my server is Apache/1.3.9 Ben-SSL/1.37 Server. Adding the
line "SSLOptions +StdEnvVars +ExportCertData" from the howto at
http://jakarta.apache.org/tomcat/jakarta-tomcat/src/doc/tomcat-ssl-howto.html
gives an error at startup.

This is what I have in my httpsd.conf file

JkWorkersFile /usr/local/jakarta-tomcat-3.2.1/conf/workers.properties
JkLogFile /usr/local/jakarta-tomcat-3.2.1/logs/mod_jk.log
JkLogLevel warning


# Should mod_jk send SSL information to Tomact (default is On)
JkExtractSSL On
# What is the indicator for SSL (default is HTTPS)
JkHTTPSIndicator HTTPS
# What is the indicator for SSL session (default is SSL_SESSION_ID)
JkSESSIONIndicator SSL_SESSION_ID
# What is the indicator for client SSL cipher suit (default is
SSL_CIPHER)
JkCIPHERIndicator SSL_CIPHER
# What is the indicator for the client SSL certificated (default is
SSL_CLIENT_CERT)
JkCERTSIndicator SSL_CLIENT_CERT

Inside of a vhost:

JkMount /mydir/servlet/* ajp13
JkMount /mydir/*.jsp ajp13

This does all work with the non-ssl version.

dave


-- 
Dave Weis



pageContext from a bean?

2001-04-06 Thread Dave Weis


Is it possible to access the pageContext from inside a bean without
passing it in? More specifically, I need to access the request object.
I've tried referencing pageContext by itself with no luck and I've also
done this

JspFactory  factory = JspFactory.getDefaultFactory();
PageContext pageContext = factory.getPageContext(null, null, null, null,
true, 8192, true);

HttpServletRequest incomingRequest =
(javax.servlet.http.HttpServletRequest)   
 pageContext.getRequest();

Thanks for any help
dave

-- 
Dave Weis



Re: Fuzzy Math

2001-04-05 Thread Dave Weis

Jeff Crawford wrote:
> 
> Is anyone running the below (Solaris/JDK 1.2.2_006 or _007) environment that
> could test our JSP (also below)?  It would be a *huge* help to test this in
> a similar environment.


I tried it on Solaris 2.6 with Tomcat 3.2.1, I think the JDK version is
1.3, and got the correct answers.

dave

-- 
Dave Weis
businessolver, Inc.
[EMAIL PROTECTED]
http://www.businessolver.com/



Redirecting from a RequestInterceptor

2001-04-03 Thread Dave Weis


Hello

I am trying to write a request interceptor and redirect users to other
(non-JSP) url's based on the contents of the URL. I've tried to do
things like use request.setRequestURI() and make my own Response with a
Location header and then use request.setResponse(), both in the
requestMap function. I'm guessing requestMap should return the http
status code, but I can't figure out how to set the URL portion.

Thanks for any help.

dave

-- 
Dave Weis



log messages from a bean

2001-04-02 Thread Dave Weis

Hello

How can I write to the servlet.log file from a bean that I'm writing
like I can from jsp pages using log()?

Thanks 
dave

-- 
Dave Weis