Re: Tomcat SSL w/ Apache

2002-10-29 Thread Robert L Sowders
The configuration you describe for virtual hosts is correct except that 
for SSL to work correctly in Apache you have to use IP based virtual 
hosting.  Name based virtual hosting will give you errors.  See 
http://www.modssl.org/docs/2.8/ssl_faq.html#ToC47

rls





"Randy Secrist" <[EMAIL PROTECTED]>
10/29/2002 07:58 PM
Please respond to "Tomcat Users List"

 
To: "Tomcat Users List" <[EMAIL PROTECTED]>
cc: 
Subject:Tomcat SSL w/ Apache


I have an interesting problem that I don't know much about.  I am 
integrating Apache with Tomcat using mod_jk - and I have it mostly 
working.  The only real problem I have left - is getting SSL - which 
appears to be working with Apache - to work with Tomcat.

I have both HTTP connector's disabled in Tomcat.  The only connector I 
have up is Coyote's AJP on 8009.  (Via tomcat 4.1.12).

When I switch to https and accept my self generated certificate, the 
browser returns the compiled jsp page, without any non secure warnings... 
- but if I call <%=request.isSecure()%> - it returns FALSE - even though I 
am using HTTPS.  I'm not sure why this could be happening.

In Apache - I have 2 virtual hosts mapped to the same domain name - on 
different ports - because I couldn't get it to work right with just one.

mydomain.com:80
and
mydomain.com:443 (with all my SSL directives...)

Could anyone offer advise?

Randy



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: SEVERE: Handshake failed

2002-10-29 Thread Bill Barker
This is a known problem (but it is only that it is taking time to fill the
log files).  Upgrade to 4.1.14 to fix.

"Chakradhar Tallam" <[EMAIL PROTECTED]> wrote in message
news:11A60EF518EFD311962E0010B5092C17AE1043@;EXCHANGE...
> hi there,
>
> we got a web application running on production system. it uses SSL to
serve
> few pages. we have been getting the following exception lately on a
regular
> basis but the SSL page is served to the user. looks like, the performance
is
> affecting a bit because of this exception. do any of u have any idea why
is
> this happening.
>
> the application uses TOMCAT 4.1.12, STRUTS 1.0.2
>
> -
> 29/10/2002 01:14:14 org.apache.tomcat.util.log.CommonLogHandler log
> SEVERE: Handshake failed
> javax.net.ssl.SSLException: error while writing to socket
> at com.sun.net.ssl.internal.ssl.SSLSocketImpl.b(DashoA6275)
> at com.sun.net.ssl.internal.ssl.SSLSocketImpl.a(DashoA6275)
> at com.sun.net.ssl.internal.ssl.SSLSocketImpl.a(DashoA6275)
> at com.sun.net.ssl.internal.ssl.AppOutputStream.write(DashoA6275)
> at java.io.OutputStream.write(OutputStream.java:58)
> at
> com.sun.net.ssl.internal.ssl.SSLSocketImpl.startHandshake(DashoA6275)
>
> at
> org.apache.tomcat.util.net.JSSESocketFactory.handshake(JSSESocketFact
> ory.java:290)
> at
> org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java
> :493)
> at
> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadP
> ool.java:533)
> at java.lang.Thread.run(Thread.java:536)
> 29/10/2002 01:14:14 org.apache.tomcat.util.log.CommonLogHandler log
> SEVERE: Caught exception executing
> org.apache.tomcat.util.net.TcpWorkerThread@8e
> 4805, terminating thread
> java.lang.NullPointerException
> at
> org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java
> :512)
> at
> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadP
> ool.java:533)
> at java.lang.Thread.run(Thread.java:536)
> -
> Chakradhar Tallam
> Consultant
> Object Consulting
> Level 11 / 75 Miller Street, North Sydney, NSW - 2060
> Phone: +61 2 9459 3356 Fax: +61 2 9955 6659
> Email: [EMAIL PROTECTED]
> Web: http://www.objectconsulting.com.au/
> consulting | development | training | support
> our experience makes the difference
>
>





--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Charsets and RequestDispatcher

2002-10-29 Thread Bill Barker
It is explicitly forbidden for an include to change the headers (including
content-type).  Your servlet needs to do a
response.setContentType("text/html; charset=windows-1253") before doing the
include.

Alternatively, for the servlet below, consider doing a "forward" instead of
an "include".

"Holger Brozio" <[EMAIL PROTECTED]> wrote in message
news:013101c27f34$93bd9f60$111d000a@;rnd.j.ad.intershop.net...
> Hello,
>
> i have made the following observation:
>
> I am using Tomcat 4.1.12 on Windows NT.
>
> If i display the jsp page with charset "windows-1253" by invoking the page
> the direct way,
> the characters are displayed correct.
>
> e.g. http://localhost/jsp/enc_test/ch1253.jsp
>
> After that i wrote a small servlet, which uses the
> RequestDispatcher.include()
> mechanism to dispaly the same page inside of this servlet:
>
> e.g.
>
> public class RequestDispatcherTest extends HttpServlet
> {
> public void doGet(HttpServletRequest request,
>HttpServletResponse response)
> throws IOException, ServletException
> {
> // Acquire request parameters we need
> String incPage = request.getParameter("incpage");
> if (incPage != null)
> {
> RequestDispatcher rd =
> getServletContext().getRequestDispatcher(incPage);
> rd.include(request, response);
> return;
> }
>
> System.out.println("No parameter incpage given!");
> }
> }
>
> I have invoked the execution of the page by:
>
>
http://localhost/servlet/RequestDispatcherTest?incpage=/jsp/enc_test/ch1253.
> jsp
>
> To my surprise, all the characters are now displayed as question marks:
>
> ?? ?
>
> 24 ?? 1997
>
> 8 Mbps ??? ? ??? ??? 1998
>
> ??? ??? ?? ?? ?? ?? ??? ?? ???  2 Mbps,
???
> ??  ??  ???  ?? ??? ??? ??? 4 Mbps
,
> ? FORTHnet A.E. ??? ???  ??? ?? ?? ?? ??? ??? ???
> ? ??? ? ?, ? ??? ??? ?? ??
> ??? ?, ? ? 8 Mbps. ? ?? , 
> ??? ? ??  Internet ??? ??? ??? ?? 
,
> ? ?? ?  ???   ??? ?? ???, ??
> ? ?o FORTHnet ?? ??? ?  ??? ? ? ??? ?.
>
> ? ?? ??? ?? ??? ??  ??? ? ??? ,   ???
> ??? ???  MCI, ??? ???  ??? ? ? ? ???
> ??? ??? ??,  ??? ?? ?
??
> ?? ??. ? ???  ? ??? ?
> ? ???  ??,  ??? ??? ???  ? ???
> ? ??? ??? ?  ??? ??, ? ??? ?? ?? ?? ??
> ?? ??? ??? ? ??? ??? ??? 1998, ? ??? ?? ? ??
> ? ??.
>
> ?: ??? 
>
> : 7295100
>
> FAX: 7258520
> -
>
> My question now is:
> Is this the normal (correct) behaviour or is this a bug?
> Does the servlet spec 2.3 prohibit to change the character set of an
> included page somehow?
>
> Thanks in advance
>
> Holger





--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: tc4.1.12 and Apache2.0.43 mod_jk Root Context not appearing in mod_jk.conf

2002-10-29 Thread Bill Barker
You also need to set the noRoot="false" attribute in the Listener.  It
defaults to "true", since otherwise (if the default forwardAll="true"), all
requests get sent to Tomcat.

"Tref Gare" <[EMAIL PROTECTED]> wrote in message
news:D9E0834F4E6DA84C8F8F421EDA28E84106A63F@;proxy.areeba.com.au...
Thanks Robert,

You actually helped me out last week with the same howto.. however in
this case we're a step past that.  I've got the listeners set up as per
the howto and they're doing fine when it comes to setting up the
examples context, however they don't seem to want to have anything to do
with the root context.

I was wondering briefly if this has something to do with the invoker
servlet (disabled by default in tomcat 4.1.12) but I'm only trying to
reach .jsp's at the moment not /servlet/MyServlet etc.

On the topic can you enlighten me at all as to what's the advantage
(aside from ease of use) of using the auto generated files as compared
to manually created ones (ie: taking the params in mod_jk.conf and
copying/tweaking them in httpd.conf direct).  I'm going to have some non
vanilla mappings (*.form for example) that I imagine might not be able
to be configured via the auto generated file.


Tref

--
Tref Gare
Development Consultant
Areeba
Level 19/114 William St, Melbourne VIC 3000
email: [EMAIL PROTECTED]
phone: +61 3 9642 5553
fax: +61 3 9642 1335
website: http://www.areeba.com.au
--
"This email is intended only for the use of the individual or entity
named above and contains information that is confidential. No
confidentiality is waived or lost by any mis-transmission. If you
received this correspondence in error, please notify the sender and
immediately delete it from your system. You must not disclose, copy or
rely on any part of this correspondence if you are not the intended
recipient. Any communication directed to clients via this message is
subject to our Agreement and relevant Project Schedule. Any information
that is transmitted via email which may offend may have been sent
without knowledge or the consent of Areeba."
--

-Original Message-
From: Robert L Sowders [mailto:rsowders@;usgs.gov]
Sent: Tuesday, 29 October 2002 7:52 PM
Subject: Re: tc4.1.12 and Apache2.0.43 mod_jk Root Context not appearing
in mod_jk.conf

You will need to setup a listener in server.xml and then the Include in
your httpd.conf will be something like "Include
/usr/local/tomcat/conf/auto/mod_jk.conf"

Here is a How To that I refer to from time to time.

http://www.johnturner.com/howto/apache2-tomcat4110-jk-howto.html

The part you want is at step 3.

rls





"Tref Gare" <[EMAIL PROTECTED]>
10/28/2002 07:39 PM
Please respond to "Tomcat Users List"


To: "Tomcat Users List" <[EMAIL PROTECTED]>
cc:
Subject:tc4.1.12 and Apache2.0.43 mod_jk Root Context
not appearing in mod_jk.conf


Hi All,

Any help much appreciated.

We've got a tomcat 4.1.12 and Apache 2.0.43 connected up using mod_jk
and I'm having grief getting the root context to register in
mod_jk.conf.

I had thought that any contexts defined in Tomcat would be automatically
setup in mod_jk.conf, is there a secret I'm unaware of?

I've got both docBase and appBase settings set to the same location
which is also the root context. Eg:

Tomcat thinks it's docBase is /WWW/MySite
Apache thinks it's DocumentRoot is /WWW/MySite

Tomcat has currently only two contexts setup

/examples which has been moved to /WWW/MySite/examples

This one works fine in both Tomcat standalone and via Apache


However the root context is setup as follows



and just refuses to register in mod_jk.conf, leaving all jsps displaying
as pure source and WEB-INF etc wide open to the world.

I'm swimming here.. any suggestions?

Thanks

--
Tref Gare
Development Consultant
Areeba
Level 19/114 William St, Melbourne VIC 3000
email: [EMAIL PROTECTED]
phone: +61 3 9642 5553
fax: +61 3 9642 1335
website: http://www.areeba.com.au
--
"This email is intended only for the use of the individual or entity
named above and contains information that is confidential. No
confidentiality is waived or lost by any mis-transmission. If you
received this correspondence in error, please notify the sender and
immediately delete it from your system. You must not disclose, copy or
rely on any part of this correspondence if you are not the intended
recipient. Any communication directed to clients via this message is
subject to our Agreement and relevant Project Schedule. Any information
that is transmitted via email which may offend may have been sent
without knowledge or the consent of Areeba."
--

-Original Message-
From: William Lee [mailto:wlee@;sendmail.com]
Sent: Tues

Re: Force One page to not use SSL

2002-10-29 Thread Craig R. McClanahan


On Tue, 29 Oct 2002, Bill Barker wrote:

>
> This mis-feature is in the standard version of Tomcat 3.3.1.
>

Another good reason for me to never use it :-).

> >
> > > Thanks!
> > > Aaron.
> >
> > Craig
>

Craig


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Servlets deployment directory location

2002-10-29 Thread John B
> Suppose I have this servlet 
> 
> \WEBAPPS\ROOT\WEB-INF\CLASSES\HelloServlet
> 
> for versions 4.0.6 and before , I could use 
> "http://localhost:8080/servlet/HelloServlet";
> 
> but now under 4.1.12, it is no longer working. It
> just cannot find it at
> all. However, normal HTML pages can still be
> accessed just like 
> before.

The thing that let you use the /servlet directory was
a servlet invoker.  Due to possible security problems,
it was disabled by default.  So before you turn it
back on, make sure that security is not too big of a
concern for you.  Someone else is surely better
qualified than I to explain the mechanism of the
invoker.

That having been said, if you want to turn it back on,
go to

http://www.moreservlets.com/Using-Tomcat-4.html

to get directions on it.  (Marty Hall is quite the
authority on Java Servlets & Server Pages).  Anyways,
hope that helps.

__
Do you Yahoo!?
HotJobs - Search new jobs daily now
http://hotjobs.yahoo.com/

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Force One page to not use SSL

2002-10-29 Thread Bill Barker

"Craig R. McClanahan" <[EMAIL PROTECTED]> wrote in message
news:20021029215637.J8960-10@;icarus.apache.org...
>
>
> On Tue, 29 Oct 2002, Rustad, Aaron wrote:
>
> > Date: Tue, 29 Oct 2002 17:54:34 -0700
> > From: "Rustad, Aaron" <[EMAIL PROTECTED]>
> > Reply-To: Tomcat Users List <[EMAIL PROTECTED]>
> > To: 'Tomcat Users List' <[EMAIL PROTECTED]>
> > Subject: RE: Force One page to not use SSL
> >
> > Man alive! Does this thread have to continue in this direction? Myself
and
> > Jeff both have similar problems, and we are requesting a common
solution. I
> > think we both expressed that we are aware of the consequences of our
> > "security-flawed" approach to app design, yet everyone seems to think
that
> > this has not been thought through.
> >
>
> Tomcat is downloaded roughly 100,000 times per month.  From many many
> years of experience supporting Tomcat users, I can *guarantee* you that
> the vast majority of those who download Tomcat would *not* understand the
> implications of being able to do this.
>
> > All I am asking is...does anyone know how to persist a session from
HTTPs to
> > HTTP. Any potential solutions are GREATLY appreciate...any other
suggestions
> > (even though they might be well-meaning) are discouraged.
> >
>
> (a) It's open source.  Download the source code for your favorite version
> of Tomcat.  Modify it to do what you want.
>
> (b) Spend a little more for your CPU and network bandwidth so that it's
> not an issue.
>
> As a Tomcat committer, I will unconditionally veto any attempt to include
> this mis-feature in a standard version of Tomcat.  If you want a servlet
> container that lets you hang yourself, please go elsewhere.

This mis-feature is in the standard version of Tomcat 3.3.1.

>
> > Thanks!
> > Aaron.
>
> Craig





--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Removing Response Headers

2002-10-29 Thread Craig R. McClanahan


On Tue, 29 Oct 2002, Alex Muc wrote:

> Date: Tue, 29 Oct 2002 22:39:54 -0500
> From: Alex Muc <[EMAIL PROTECTED]>
> Reply-To: Tomcat Users List <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED]
> Subject: Removing Response Headers
>
> Hi,
>
> I'm trying to find a way to remove response headers from the default set
> of response headers that Tomcat sends back to the browser with each
> request.  From my analysis here's what Tomcat sends back by default on
> most requests:
>
> HTTP/1.1 200 OK
> Content-Type: text/html;ISO-8859-1
> Date: Wed, 30 Oct 2002 03:09:21 GMT
> Server: Apache Tomcat/4.0.4 (HTTP/1.1 Connector)
> Transfer-Encoding: chunked
> Set-Cookie: JSESSIONID=E0A77CD43161227E989CE9C0BA3C6D8F;Path=/cc
>
> [body of the request here]
>
> I'd like to be able to get rid of the Date, Server and Set-Cookie
> header.  I don't see anyway to do this using the methods provided on
> HttpServletResponse.  That object only has methods for adding header
> fields.  I briefly investigated using a filter to do this, but I don't a
> filter will give me access to the header part of the response, only the
> main body of the HTTP response.  I may be wrong about this, so please
> correct me if you know otherwise.
>
> Why do I want to do this?  I'm writing an application for the J2ME MIDP
> specification which is to run on Palm Pilot devices.  I'm doing
> performance testing and the Palm Pilot is spending a significant amount
> of time processing the response headers that are coming into it as
> responses from web pages that it is requesting from my Tomcat server.
> My testing indicates that it takes the Palm Pilot approximately 1/2 of a
> second to process each additional response header.  This adds up to a
> lot of extra air time and unnecessary processing time.  I need to
> minimize the amount of data that is transmitted between the Palm Pilot
> and the server so that it runs as fast as possible.  The way I arrived
> at the 1/2 of a second per response header figure was by adding extra
> headers to the request and timing how much longer than normal the
> processing took.
>
> I'm hoping someone can tell me if this is possible or not.
>

There's two different answers, depending on whether the headers are added
by a servlet or by the container itself.

* For headers added by a servlet (the "Date" header is added by
  the default file-serving servlet), you can use a Filter, but
  you have to create a wrapper around the response (extend
  HttpServletResponseWrapper).  In your custom wrapper class,
  you would explicitly ignore the headers that you don't want to
  actually send, by overriding methods like setHeader().

* For headers added by the container (the "Server" and "Set-Cookie"
  headers in your case), a Filter won't do the trick, because they
  are typically implemented inside the container's implementation
  class for the response.  For that, you'd need to create a Valve
  (Tomcat specific) that accomplished essentially the same purpose
  inside the container as a Filter does inside a webapp -- it would
  create a wrapper around Tomcat's internal HttpResponse class, and
  override the methods where those headers are created.

For the Set-Cookie header for JSESSIONID in particular, you can also
employ one of the following (much easier) techniques:

* Ensure that your webapp does not use sessions (so the session id
  cookie would never get set)

* Set the "cookies" attribute of the  element for your webapp
  to false, so that cookies will not be used for session maintenance
  (you will need to perform URL rewriting if you still need sessions
  in this scenario).

> Thank you for your assistance.
>
> Alex.

Craig


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Apache+SSL+Tomcat - servlet redirection problem

2002-10-29 Thread Anitha K Rao
Hello,

   Check out this site. May be this would help you.
http://enterprise.netscape.com/docs/enterprise/60/servlet/serv.htm


- Original Message -
From: "Bala" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Wednesday, October 30, 2002 10:38 AM
Subject: Apache+SSL+Tomcat - servlet redirection problem


> I configurd Apache 1.3.9 , modSSL, openSSL and TOMCAT
> 3.2.3.
> For http , it is working fine. For Https, In one of my
> servlet ,
> I redirected the request to other servlet. To form the
> redirect
> URL i used "HttpServletRequest.getScheme();" It always
> returns
> "http" instead of "https". I am getting following
> error msg.
> 
> Bad Request
>
> Your browser sent a request that this server could not
> understand.
>
> Reason: You're speaking plain HTTP to an SSL-enabled
> server port.
> Instead use the HTTPS scheme to access this URL,
> please.
>
>  Hint: https://someurl
> -
> SSL works fine, except the redirection part.
> How to make things work?. Please give me an idea?
>
> Regards
> Balachandar
>
>
>
> =
> "One important key to success is self-confidence.
>  An important key to self-confidence is preparation"
>
> __
> Do you Yahoo!?
> HotJobs - Search new jobs daily now
> http://hotjobs.yahoo.com/
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>
>


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: DBCP Woes! Ahaa!

2002-10-29 Thread Craig R. McClanahan


On Tue, 29 Oct 2002, neal wrote:

> Date: Tue, 29 Oct 2002 18:48:20 -0800
> From: neal <[EMAIL PROTECTED]>
> Reply-To: Tomcat Users List <[EMAIL PROTECTED]>
> To: Tomcat Users List <[EMAIL PROTECTED]>
> Subject: RE: DBCP Woes! Ahaa!
>
> AHAAA!
>
> I figured it out ... well ... sort of.
>
> My primary content is www.hotel.us.  But, I also configured hotel.us,
> hotel.us.com, etc to all point to www.hotel.us.  It turns out that the times
> I was getting the JDBC not bound to Context error, were the times I was
> going to the alternat domains, not www.hotel.us!
>
> Ok, so that is the issue!  Pheew!  BUT, here's another question.  Must I
> configure DBCP in every single one of those other hosts?  I was hoping I
> could jsut switch crossContext=true on the Context containing the correct
> setup.

The crossContext attribute has nothing at all to do with JNDI resources --
it only determines whether the ServletContext.getContext() method will
unconditionally return null or not.  See the documentation (hyperlink
listed below) for more details.

JNDI resources for each  must be configured individually.  If you
are using Tomcat 4.1, there is a mechanism to share the physical resources
themselves (such as a JDBC data source) by defining the resources in the
 section at the top of server.xml, and then using a
 element nested inside each  element that links to
it (analogous to a symbolic link in a filesystem).

> Perhaps for this to work the contexts must all be nested within the
> same host? But to have different urls resolve the only way I know to do it,
> is via a seperate host node, per domain:
>
>   
>   
>   
>
> Any thoughts?
>

Are all (or most) of the domain names supposed to resolve to the exact
same set of webapps?  If so, you're probably best off using the
"defaulthost"  capability of the  element:



...


...



In this scenario, any request received by this Tomcat instance, for any
unrecognized host name will be forwarded to the hotel.us domain.  You can
explicitly list the separate hosts that should not be shared, as
illustrated with the "other.com" entry above.

For more info about all of the server.xml options, see the docs included
in the standard Tomcat distribution at:

  http://localhost:8080/tomcat-docs/config/

or online:

  http://jakarta.apache.org/tomcat/tomcat-4.0-doc/config/
  http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/


> Thanks everyone for your help
>
> Neal

Craig


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Force One page to not use SSL

2002-10-29 Thread Craig R. McClanahan


On Tue, 29 Oct 2002, Rustad, Aaron wrote:

> Date: Tue, 29 Oct 2002 17:54:34 -0700
> From: "Rustad, Aaron" <[EMAIL PROTECTED]>
> Reply-To: Tomcat Users List <[EMAIL PROTECTED]>
> To: 'Tomcat Users List' <[EMAIL PROTECTED]>
> Subject: RE: Force One page to not use SSL
>
> Man alive! Does this thread have to continue in this direction? Myself and
> Jeff both have similar problems, and we are requesting a common solution. I
> think we both expressed that we are aware of the consequences of our
> "security-flawed" approach to app design, yet everyone seems to think that
> this has not been thought through.
>

Tomcat is downloaded roughly 100,000 times per month.  From many many
years of experience supporting Tomcat users, I can *guarantee* you that
the vast majority of those who download Tomcat would *not* understand the
implications of being able to do this.

> All I am asking is...does anyone know how to persist a session from HTTPs to
> HTTP. Any potential solutions are GREATLY appreciate...any other suggestions
> (even though they might be well-meaning) are discouraged.
>

(a) It's open source.  Download the source code for your favorite version
of Tomcat.  Modify it to do what you want.

(b) Spend a little more for your CPU and network bandwidth so that it's
not an issue.

As a Tomcat committer, I will unconditionally veto any attempt to include
this mis-feature in a standard version of Tomcat.  If you want a servlet
container that lets you hang yourself, please go elsewhere.

> Thanks!
> Aaron.

Craig


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Force One page to not use SSL

2002-10-29 Thread Craig R. McClanahan


On Tue, 29 Oct 2002, Schnitzer, Jeff wrote:

> Date: Tue, 29 Oct 2002 15:56:47 -0800
> From: "Schnitzer, Jeff" <[EMAIL PROTECTED]>
> Reply-To: Tomcat Users List <[EMAIL PROTECTED]>
> To: Tomcat Users List <[EMAIL PROTECTED]>
> Subject: RE: Force One page to not use SSL
>
> I've read the list archives and I'm aware of the security "issue", but I
> still want to switch from HTTPS to HTTP.
>
> Yes, I know someone could hijack the session.  We're not worried about
> that; at worst someone could make some obnoxious posts to a forum.  We
> force users to submit their password a second time (and go into SSL, of
> course) whenever anything sensitive is touched, such as passwords or
> credit card info.
>
> We get a _lot_ of traffic.  Running everything under SSL is not really
> an option.  Can Apache/Tomcat/mod_jk be made to handle the switch?  In
> our current configuration, it appears that the session is getting lost
> in the transition from HTTPS->HTTP so the user is forced to log in
> again.
>

Then I'm afraid you will need to modify your version of Tomcat to make
this transition possible.  It would be irresponsible for the standard
container to allow people who don't know what they are doing to shoot
themselves in the foot on security.

> Thanks,
> Jeff Schnitzer
> [EMAIL PROTECTED]
> The Sims Online
>

Craig


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Apache+SSL+Tomcat - servlet redirection problem

2002-10-29 Thread Bala
I configurd Apache 1.3.9 , modSSL, openSSL and TOMCAT
3.2.3.
For http , it is working fine. For Https, In one of my
servlet ,
I redirected the request to other servlet. To form the
redirect 
URL i used "HttpServletRequest.getScheme();" It always
returns 
"http" instead of "https". I am getting following
error msg.

Bad Request

Your browser sent a request that this server could not
understand.

Reason: You're speaking plain HTTP to an SSL-enabled
server port.
Instead use the HTTPS scheme to access this URL,
please.

 Hint: https://someurl
-
SSL works fine, except the redirection part.
How to make things work?. Please give me an idea?

Regards
Balachandar



=
"One important key to success is self-confidence. 
 An important key to self-confidence is preparation"

__
Do you Yahoo!?
HotJobs - Search new jobs daily now
http://hotjobs.yahoo.com/

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: SEVERE: Handshake failed

2002-10-29 Thread Arshad . Hussain

  

try increaing minProcessors="15" maxProcessors="125"
or more according to u r need

-Original Message-
From: Chakradhar Tallam [mailto:c.tallam@;objectconsulting.com.au]
Sent: Tuesday, October 29, 2002 8:21 PM
To: '[EMAIL PROTECTED]'
Cc: '[EMAIL PROTECTED]'
Subject: SEVERE: Handshake failed


hi there,

we got a web application running on production system. it uses SSL to serve
few pages. we have been getting the following exception lately on a regular
basis but the SSL page is served to the user. looks like, the performance is
affecting a bit because of this exception. do any of u have any idea why is
this happening.

the application uses TOMCAT 4.1.12, STRUTS 1.0.2

-
29/10/2002 01:14:14 org.apache.tomcat.util.log.CommonLogHandler log
SEVERE: Handshake failed
javax.net.ssl.SSLException: error while writing to socket
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.b(DashoA6275)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.a(DashoA6275)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.a(DashoA6275)
at com.sun.net.ssl.internal.ssl.AppOutputStream.write(DashoA6275)
at java.io.OutputStream.write(OutputStream.java:58)
at
com.sun.net.ssl.internal.ssl.SSLSocketImpl.startHandshake(DashoA6275)

at
org.apache.tomcat.util.net.JSSESocketFactory.handshake(JSSESocketFact
ory.java:290)
at
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java
:493)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadP
ool.java:533)
at java.lang.Thread.run(Thread.java:536)
29/10/2002 01:14:14 org.apache.tomcat.util.log.CommonLogHandler log
SEVERE: Caught exception executing
org.apache.tomcat.util.net.TcpWorkerThread@8e
4805, terminating thread
java.lang.NullPointerException
at
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java
:512)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadP
ool.java:533)
at java.lang.Thread.run(Thread.java:536)
-
Chakradhar Tallam
Consultant
Object Consulting
Level 11 / 75 Miller Street, North Sydney, NSW - 2060
Phone: +61 2 9459 3356 Fax: +61 2 9955 6659 
Email: [EMAIL PROTECTED]
Web: http://www.objectconsulting.com.au/
consulting | development | training | support
our experience makes the difference


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: DBCP Woes! Ahaa!

2002-10-29 Thread Jacob Kjome

You should be able to set it up in a  element or you 
can use  and then in your context use a 
.

The Tomcat docs for 4.1 talk all about this.

Jake

At 06:48 PM 10/29/2002 -0800, you wrote:
AHAAA!

I figured it out ... well ... sort of.

My primary content is www.hotel.us.  But, I also configured hotel.us,
hotel.us.com, etc to all point to www.hotel.us.  It turns out that the times
I was getting the JDBC not bound to Context error, were the times I was
going to the alternat domains, not www.hotel.us!

Ok, so that is the issue!  Pheew!  BUT, here's another question.  Must I
configure DBCP in every single one of those other hosts?  I was hoping I
could jsut switch crossContext=true on the Context containing the correct
setup. Perhaps for this to work the contexts must all be nested within the
same host? But to have different urls resolve the only way I know to do it,
is via a seperate host node, per domain:

  
  
  

Any thoughts?

Thanks everyone for your help

Neal


-Original Message-
From: neal [mailto:nealcabage@;yahoo.com]
Sent: Tuesday, October 29, 2002 6:21 PM
To: Tomcat Users List
Subject: RE: DBCP Woes!


That sounds likely, but unfortunately I'm not familiar enough with JNDI to
really know how to do that.

But, let's say that this is the problem.  What would the solution be?  Other
than the server.xml parameters I've specified, how does one bind a
Datasource to a Context? And, can you think of any reasons why that would
have been working 10 hours ago, but isn't now?  I didn't even alter the
server.xml file until *after* this became an issue.


Thanks.
Neal


-Original Message-
From: micael [mailto:caraunltd@;harbornet.com]
Sent: Tuesday, October 29, 2002 5:09 PM
To: Tomcat Users List
Subject: RE: DBCP Woes!


Write a class to see whether or not jdbc is bound in the context.  It
probably isn't.

At 05:15 PM 10/29/2002 -0800, you wrote:
>My setup?  I'm using MySQL 3.23 and the latest version of (don't recall the
>number) Connector/J for my driver.  This is of course all sitting inside
>tomcat 4.0.4.  I have manually installed the DBCP, collections and whatever
>other support classes I needed for DBCP.
>
>I have configured DBCP via my server.xml file as such (below).  When I was
>recieving the error from (org.hsql) that was because I was also attempting
>to creating a reference to the resource within my web.xml file.  I have
>since removed it and that error has ceased.  The error I am currently
>experiencing (javax.naming.NameNotFoundException: Name jdbc is not bound in
>this Context) was happening last night.  *Seemed* to spontaneously got
away,
>then this morning I loaded a few classes and rebooted and it started again.
>I have since removed those classes but the error is persisting.
>
>Its worth noting that I can still obtain connections directly through JDBC,
>without the use of DBCP, no problem.
>
>Please let me know if you can think of anything
>
>Thanks!
>Neal
>
>
>
>
>directory="logs"  prefix="dbcp_" suffix=".log"
> timestamp="true" />
>
>type="javax.sql.DataSource"
>/>
>   
> 
>   factory
>
org.apache.commons.dbcp.BasicDataSourceFactory
> 
> 
>   maxActive
>   100
> 
> 
>   maxIdle
>   3
> 
> 
>   maxWait
>   100
> 
> 
>  username
>  x
> 
> 
>  password
>  x
> 
> 
>driverClassName
>com.mysql.jdbc.Driver
> 
> 
>   url
>   jdbc:mysql:///hotel
> 
>
>   
>
> 
>
>-Original Message-
>From: micael [mailto:caraunltd@;harbornet.com]
>Sent: Tuesday, October 29, 2002 4:06 PM
>To: Tomcat Users List
>Subject: RE: DBCP Woes!
>
>
>I don't know your setup at all, neal, but this is a hypersonic database
>reference.  What is your setup?
>
>At 04:31 PM 10/29/2002 -0800, you wrote:
> >I considered poolman but it doesn't look like its supported or even
> >available from the website to download anymore.  Is this the case?  I
have
> >heard good things about it.
> >
> >Don't suppose you understand this JDBC conext binding error, do you?
> >
> >Thanks.
> >Neal
> >
> >
> >-Original Message-
> >From: Mike Jackson [mailto:mjackson@;cdi-hq.com]
> >Sent: Tuesday, October 29, 2002 3:25 PM
> >To: Tomcat Users List
> >Subject: RE: DBCP Woes!
> >
> >
> >Poolman works nicely, I have little to no problems with it.  Then again
> >I haven't used DBCP.  But you'd still have had the exhasted connections
> >problem with poolman.
> >
> >--mikej
> >-=-
> >mike jackson
> >[EMAIL PROTECTED]
> >
> > > -Original Message-
> > > From: neal [mailto:nealcabage@;yahoo.com]
> > > Sent: Tuesday, October 29, 2002 4:22 PM
> > > T

unknown error

2002-10-29 Thread Arshad . Hussain
we are using apache and tomcat with ssl layer we only have jsp and servelts
and tomcat version is 4.0 and apche is 1.3 i get this error randomly and
since we have catch all exception and redirect it to error page the client
sees the error page eevery time this error is thrown i doubt this error has
anything do with application but i suspect it is conguration issue with
server.xml   further more it does not sem to happen when we use tomcat alone
in ssl mode we are using modwebapp as connector from between apache and
tomcat i am not 
some please help me soon it is production enviroment 

StandardWrapperValve[default]: Servlet.service() for servlet default threw
exception java.lang.NumberFormatException: at
java.lang.Long.parseLong(Long.java:344) at
java.lang.Long.parseLong(Long.java:381) at
java.text.DigitList.getLong(DigitList.java:150) at
java.text.DecimalFormat.parse(DecimalFormat.java:1067) at
java.text.SimpleDateFormat.subParse(SimpleDateFormat.java:1698) at
java.text.SimpleDateFormat.parse(SimpleDateFormat.java:1159) at
java.text.DateFormat.parse(DateFormat.java:332) at
org.apache.catalina.servlets.DefaultServlet.checkIfHeaders(DefaultServlet.ja
va:753) at
org.apache.catalina.servlets.DefaultServlet.serveResource(DefaultServlet.jav
a:1098) at
org.apache.catalina.servlets.DefaultServlet.doGet(DefaultServlet.java:519)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740) at
javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:247) at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:193) at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:243) at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66) at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:190) at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66) at
org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:2
46) at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64) at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2347)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180
) at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66) at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
java:170) at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64) at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170
) at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64) at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
:174) at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66) at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468) at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64) at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at
org.apache.catalina.connector.warp.WarpRequestHandler.handle(WarpRequestHand
ler.java:217) at
org.apache.catalina.connector.warp.WarpConnection.run(WarpConnection.java:19
4) at java.lang.Thread.run(Thread.java:536)




--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Removing Response Headers

2002-10-29 Thread Jacob Kjome

You can probably use a filter + a ResponseWrapper to modify the original 
content.

Jake

At 10:39 PM 10/29/2002 -0500, you wrote:
Hi,

I'm trying to find a way to remove response headers from the default set
of response headers that Tomcat sends back to the browser with each
request.  From my analysis here's what Tomcat sends back by default on
most requests:

HTTP/1.1 200 OK
Content-Type: text/html;ISO-8859-1
Date: Wed, 30 Oct 2002 03:09:21 GMT
Server: Apache Tomcat/4.0.4 (HTTP/1.1 Connector)
Transfer-Encoding: chunked
Set-Cookie: JSESSIONID=E0A77CD43161227E989CE9C0BA3C6D8F;Path=/cc

[body of the request here]

I'd like to be able to get rid of the Date, Server and Set-Cookie
header.  I don't see anyway to do this using the methods provided on
HttpServletResponse.  That object only has methods for adding header
fields.  I briefly investigated using a filter to do this, but I don't a 
filter will give me access to the header part of the response, only the 
main body of the HTTP response.  I may be wrong about this, so please 
correct me if you know otherwise.

Why do I want to do this?  I'm writing an application for the J2ME MIDP 
specification which is to run on Palm Pilot devices.  I'm doing 
performance testing and the Palm Pilot is spending a significant amount of 
time processing the response headers that are coming into it as responses 
from web pages that it is requesting from my Tomcat server. My testing 
indicates that it takes the Palm Pilot approximately 1/2 of a second to 
process each additional response header.  This adds up to a lot of extra 
air time and unnecessary processing time.  I need to minimize the amount 
of data that is transmitted between the Palm Pilot and the server so that 
it runs as fast as possible.  The way I arrived at the 1/2 of a second per 
response header figure was by adding extra headers to the request and 
timing how much longer than normal the processing took.

I'm hoping someone can tell me if this is possible or not.

Thank you for your assistance.

Alex.


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 


Tomcat SSL w/ Apache

2002-10-29 Thread Randy Secrist
I have an interesting problem that I don't know much about.  I am integrating Apache 
with Tomcat using mod_jk - and I have it mostly working.  The only real problem I have 
left - is getting SSL - which appears to be working with Apache - to work with Tomcat.

I have both HTTP connector's disabled in Tomcat.  The only connector I have up is 
Coyote's AJP on 8009.  (Via tomcat 4.1.12).

When I switch to https and accept my self generated certificate, the browser returns 
the compiled jsp page, without any non secure warnings... - but if I call 
<%=request.isSecure()%> - it returns FALSE - even though I am using HTTPS.  I'm not 
sure why this could be happening.

In Apache - I have 2 virtual hosts mapped to the same domain name - on different ports 
- because I couldn't get it to work right with just one.

mydomain.com:80
and
mydomain.com:443 (with all my SSL directives...)

Could anyone offer advise?

Randy


Removing Response Headers

2002-10-29 Thread Alex Muc
Hi,

I'm trying to find a way to remove response headers from the default set
of response headers that Tomcat sends back to the browser with each
request.  From my analysis here's what Tomcat sends back by default on
most requests:

HTTP/1.1 200 OK
Content-Type: text/html;ISO-8859-1
Date: Wed, 30 Oct 2002 03:09:21 GMT
Server: Apache Tomcat/4.0.4 (HTTP/1.1 Connector)
Transfer-Encoding: chunked
Set-Cookie: JSESSIONID=E0A77CD43161227E989CE9C0BA3C6D8F;Path=/cc

[body of the request here]

I'd like to be able to get rid of the Date, Server and Set-Cookie
header.  I don't see anyway to do this using the methods provided on
HttpServletResponse.  That object only has methods for adding header
fields.  I briefly investigated using a filter to do this, but I don't a 
filter will give me access to the header part of the response, only the 
main body of the HTTP response.  I may be wrong about this, so please 
correct me if you know otherwise.

Why do I want to do this?  I'm writing an application for the J2ME MIDP 
specification which is to run on Palm Pilot devices.  I'm doing 
performance testing and the Palm Pilot is spending a significant amount 
of time processing the response headers that are coming into it as 
responses from web pages that it is requesting from my Tomcat server. 
My testing indicates that it takes the Palm Pilot approximately 1/2 of a 
second to process each additional response header.  This adds up to a 
lot of extra air time and unnecessary processing time.  I need to 
minimize the amount of data that is transmitted between the Palm Pilot 
and the server so that it runs as fast as possible.  The way I arrived 
at the 1/2 of a second per response header figure was by adding extra 
headers to the request and timing how much longer than normal the 
processing took.

I'm hoping someone can tell me if this is possible or not.

Thank you for your assistance.

Alex.


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 



RE: DBCP Woes! Ahaa!

2002-10-29 Thread neal
AHAAA!

I figured it out ... well ... sort of.

My primary content is www.hotel.us.  But, I also configured hotel.us,
hotel.us.com, etc to all point to www.hotel.us.  It turns out that the times
I was getting the JDBC not bound to Context error, were the times I was
going to the alternat domains, not www.hotel.us!

Ok, so that is the issue!  Pheew!  BUT, here's another question.  Must I
configure DBCP in every single one of those other hosts?  I was hoping I
could jsut switch crossContext=true on the Context containing the correct
setup. Perhaps for this to work the contexts must all be nested within the
same host? But to have different urls resolve the only way I know to do it,
is via a seperate host node, per domain:

  
  
  

Any thoughts?

Thanks everyone for your help

Neal


-Original Message-
From: neal [mailto:nealcabage@;yahoo.com]
Sent: Tuesday, October 29, 2002 6:21 PM
To: Tomcat Users List
Subject: RE: DBCP Woes!


That sounds likely, but unfortunately I'm not familiar enough with JNDI to
really know how to do that.

But, let's say that this is the problem.  What would the solution be?  Other
than the server.xml parameters I've specified, how does one bind a
Datasource to a Context? And, can you think of any reasons why that would
have been working 10 hours ago, but isn't now?  I didn't even alter the
server.xml file until *after* this became an issue.


Thanks.
Neal


-Original Message-
From: micael [mailto:caraunltd@;harbornet.com]
Sent: Tuesday, October 29, 2002 5:09 PM
To: Tomcat Users List
Subject: RE: DBCP Woes!


Write a class to see whether or not jdbc is bound in the context.  It
probably isn't.

At 05:15 PM 10/29/2002 -0800, you wrote:
>My setup?  I'm using MySQL 3.23 and the latest version of (don't recall the
>number) Connector/J for my driver.  This is of course all sitting inside
>tomcat 4.0.4.  I have manually installed the DBCP, collections and whatever
>other support classes I needed for DBCP.
>
>I have configured DBCP via my server.xml file as such (below).  When I was
>recieving the error from (org.hsql) that was because I was also attempting
>to creating a reference to the resource within my web.xml file.  I have
>since removed it and that error has ceased.  The error I am currently
>experiencing (javax.naming.NameNotFoundException: Name jdbc is not bound in
>this Context) was happening last night.  *Seemed* to spontaneously got
away,
>then this morning I loaded a few classes and rebooted and it started again.
>I have since removed those classes but the error is persisting.
>
>Its worth noting that I can still obtain connections directly through JDBC,
>without the use of DBCP, no problem.
>
>Please let me know if you can think of anything
>
>Thanks!
>Neal
>
>
>
>
>directory="logs"  prefix="dbcp_" suffix=".log"
> timestamp="true" />
>
>type="javax.sql.DataSource"
>/>
>   
> 
>   factory
>
org.apache.commons.dbcp.BasicDataSourceFactory
> 
> 
>   maxActive
>   100
> 
> 
>   maxIdle
>   3
> 
> 
>   maxWait
>   100
> 
> 
>  username
>  x
> 
> 
>  password
>  x
> 
> 
>driverClassName
>com.mysql.jdbc.Driver
> 
> 
>   url
>   jdbc:mysql:///hotel
> 
>
>   
>
> 
>
>-Original Message-
>From: micael [mailto:caraunltd@;harbornet.com]
>Sent: Tuesday, October 29, 2002 4:06 PM
>To: Tomcat Users List
>Subject: RE: DBCP Woes!
>
>
>I don't know your setup at all, neal, but this is a hypersonic database
>reference.  What is your setup?
>
>At 04:31 PM 10/29/2002 -0800, you wrote:
> >I considered poolman but it doesn't look like its supported or even
> >available from the website to download anymore.  Is this the case?  I
have
> >heard good things about it.
> >
> >Don't suppose you understand this JDBC conext binding error, do you?
> >
> >Thanks.
> >Neal
> >
> >
> >-Original Message-
> >From: Mike Jackson [mailto:mjackson@;cdi-hq.com]
> >Sent: Tuesday, October 29, 2002 3:25 PM
> >To: Tomcat Users List
> >Subject: RE: DBCP Woes!
> >
> >
> >Poolman works nicely, I have little to no problems with it.  Then again
> >I haven't used DBCP.  But you'd still have had the exhasted connections
> >problem with poolman.
> >
> >--mikej
> >-=-
> >mike jackson
> >[EMAIL PROTECTED]
> >
> > > -Original Message-
> > > From: neal [mailto:nealcabage@;yahoo.com]
> > > Sent: Tuesday, October 29, 2002 4:22 PM
> > > To: Tomcat Users List
> > > Subject: RE: DBCP Woes!
> > >
> > >
> > > Now I have some other strange error related to accessing my
> > > database.  Ever
> > > since I started messing with thsi s

Re: DBCP Woes!

2002-10-29 Thread V. Cekvenich
Try this code:
http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/basicportal/basicportal_07/src/basicWebLib/org/commons/DAO/BasicDAOImpl.java?rev=1.3&content-type=text/vnd.viewcvs-markup

.V

neal wrote:

Oh yeah, and this is the source code for creating a connection:

protected Connection getConnection() throws NamingException,
SQLException, Exception {
this.CONTEXT  = new InitialContext();
Connection conn = null;
if(this.CONTEXT == null ) throw new Exception("Context needed to
establish conection");
DataSource ds = (DataSource)CONTEXT.lookup("java:comp/env/jdbc/" +
this.DATABASE);

if (ds != null) {
conn = ds.getConnection();
}else{
return null;
}
return conn;
}

So it would appear it is blowing up on the line where its attempting to
create datasource.  I read another Deja post not too long ago where someone
was saying that this error is often caused by not having the right context
path reference in the code for creating a Datasource.  Someone else said
that you must define your datasource via the web.xml and then its avail for
reference.  BUT, why was it working before (and why is it still working on
my laptop) with out the web.xml reference, and with these exact context
paths?

So confusing.  :(

Neal

-Original Message-
From: neal [mailto:nealcabage@;yahoo.com]
Sent: Tuesday, October 29, 2002 5:16 PM
To: Tomcat Users List
Subject: RE: DBCP Woes!


My setup?  I'm using MySQL 3.23 and the latest version of (don't recall the
number) Connector/J for my driver.  This is of course all sitting inside
tomcat 4.0.4.  I have manually installed the DBCP, collections and whatever
other support classes I needed for DBCP.

I have configured DBCP via my server.xml file as such (below).  When I was
recieving the error from (org.hsql) that was because I was also attempting
to creating a reference to the resource within my web.xml file.  I have
since removed it and that error has ceased.  The error I am currently
experiencing (javax.naming.NameNotFoundException: Name jdbc is not bound in
this Context) was happening last night.  *Seemed* to spontaneously got away,
then this morning I loaded a few classes and rebooted and it started again.
I have since removed those classes but the error is persisting.

Its worth noting that I can still obtain connections directly through JDBC,
without the use of DBCP, no problem.

Please let me know if you can think of anything

Thanks!
Neal




  

	  
	  
	
	  factory
	  org.apache.commons.dbcp.BasicDataSourceFactory
	
	
	  maxActive
	  100
	
	
	  maxIdle
	  3
	
	
	  maxWait
	  100
	
	
	 username
	 x
	
	
	 password
	 x
	
	
	   driverClassName
	   com.mysql.jdbc.Driver
	
	
	  url
	  jdbc:mysql:///hotel
	

	  

	

-Original Message-
From: micael [mailto:caraunltd@;harbornet.com]
Sent: Tuesday, October 29, 2002 4:06 PM
To: Tomcat Users List
Subject: RE: DBCP Woes!


I don't know your setup at all, neal, but this is a hypersonic database
reference.  What is your setup?

At 04:31 PM 10/29/2002 -0800, you wrote:


I considered poolman but it doesn't look like its supported or even
available from the website to download anymore.  Is this the case?  I have
heard good things about it.

Don't suppose you understand this JDBC conext binding error, do you?

Thanks.
Neal


-Original Message-
From: Mike Jackson [mailto:mjackson@;cdi-hq.com]
Sent: Tuesday, October 29, 2002 3:25 PM
To: Tomcat Users List
Subject: RE: DBCP Woes!


Poolman works nicely, I have little to no problems with it.  Then again
I haven't used DBCP.  But you'd still have had the exhasted connections
problem with poolman.

--mikej
-=-
mike jackson
[EMAIL PROTECTED]



-Original Message-
From: neal [mailto:nealcabage@;yahoo.com]
Sent: Tuesday, October 29, 2002 4:22 PM
To: Tomcat Users List
Subject: RE: DBCP Woes!


Now I have some other strange error related to accessing my
database.  Ever
since I started messing with thsi stuff my conneciton to my dB has been
flakey at best.  Sometimes it works ... sometimes it doesn't.

javax.naming.NamingException: Exception creating DataSource:
org.hsql.jdbcDriver

I don't even know where this class is defined or called!!!



:(


Neal




Still having DBCP problems.

I ensured that all my connections, statements, and resulset objects
are being properly released when using DBCP for connection pooling. I've
enabled recoverAbandoned. It seems that yes I did have some
connection pool
leaking,
but that has since been resolved.  But I still get this message
(along with
a
failure) from time to time.  Does anyone know why?

javax.naming.NameNotFoundException: Name jdbc is not bound in this



Context


This is a different message than I was getting when I was having



problems


with the DBCP pool being exhausted.

Thanks!
N

SEVERE: Handshake failed

2002-10-29 Thread Chakradhar Tallam
hi there,

we got a web application running on production system. it uses SSL to serve
few pages. we have been getting the following exception lately on a regular
basis but the SSL page is served to the user. looks like, the performance is
affecting a bit because of this exception. do any of u have any idea why is
this happening.

the application uses TOMCAT 4.1.12, STRUTS 1.0.2

-
29/10/2002 01:14:14 org.apache.tomcat.util.log.CommonLogHandler log
SEVERE: Handshake failed
javax.net.ssl.SSLException: error while writing to socket
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.b(DashoA6275)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.a(DashoA6275)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.a(DashoA6275)
at com.sun.net.ssl.internal.ssl.AppOutputStream.write(DashoA6275)
at java.io.OutputStream.write(OutputStream.java:58)
at
com.sun.net.ssl.internal.ssl.SSLSocketImpl.startHandshake(DashoA6275)

at
org.apache.tomcat.util.net.JSSESocketFactory.handshake(JSSESocketFact
ory.java:290)
at
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java
:493)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadP
ool.java:533)
at java.lang.Thread.run(Thread.java:536)
29/10/2002 01:14:14 org.apache.tomcat.util.log.CommonLogHandler log
SEVERE: Caught exception executing
org.apache.tomcat.util.net.TcpWorkerThread@8e
4805, terminating thread
java.lang.NullPointerException
at
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java
:512)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadP
ool.java:533)
at java.lang.Thread.run(Thread.java:536)
-
Chakradhar Tallam
Consultant
Object Consulting
Level 11 / 75 Miller Street, North Sydney, NSW - 2060
Phone: +61 2 9459 3356 Fax: +61 2 9955 6659 
Email: [EMAIL PROTECTED]
Web: http://www.objectconsulting.com.au/
consulting | development | training | support
our experience makes the difference




RE: DBCP Woes!

2002-10-29 Thread neal
That sounds likely, but unfortunately I'm not familiar enough with JNDI to
really know how to do that.

But, let's say that this is the problem.  What would the solution be?  Other
than the server.xml parameters I've specified, how does one bind a
Datasource to a Context? And, can you think of any reasons why that would
have been working 10 hours ago, but isn't now?  I didn't even alter the
server.xml file until *after* this became an issue.


Thanks.
Neal


-Original Message-
From: micael [mailto:caraunltd@;harbornet.com]
Sent: Tuesday, October 29, 2002 5:09 PM
To: Tomcat Users List
Subject: RE: DBCP Woes!


Write a class to see whether or not jdbc is bound in the context.  It
probably isn't.

At 05:15 PM 10/29/2002 -0800, you wrote:
>My setup?  I'm using MySQL 3.23 and the latest version of (don't recall the
>number) Connector/J for my driver.  This is of course all sitting inside
>tomcat 4.0.4.  I have manually installed the DBCP, collections and whatever
>other support classes I needed for DBCP.
>
>I have configured DBCP via my server.xml file as such (below).  When I was
>recieving the error from (org.hsql) that was because I was also attempting
>to creating a reference to the resource within my web.xml file.  I have
>since removed it and that error has ceased.  The error I am currently
>experiencing (javax.naming.NameNotFoundException: Name jdbc is not bound in
>this Context) was happening last night.  *Seemed* to spontaneously got
away,
>then this morning I loaded a few classes and rebooted and it started again.
>I have since removed those classes but the error is persisting.
>
>Its worth noting that I can still obtain connections directly through JDBC,
>without the use of DBCP, no problem.
>
>Please let me know if you can think of anything
>
>Thanks!
>Neal
>
>
>
>
>directory="logs"  prefix="dbcp_" suffix=".log"
> timestamp="true" />
>
>type="javax.sql.DataSource"
>/>
>   
> 
>   factory
>
org.apache.commons.dbcp.BasicDataSourceFactory
> 
> 
>   maxActive
>   100
> 
> 
>   maxIdle
>   3
> 
> 
>   maxWait
>   100
> 
> 
>  username
>  x
> 
> 
>  password
>  x
> 
> 
>driverClassName
>com.mysql.jdbc.Driver
> 
> 
>   url
>   jdbc:mysql:///hotel
> 
>
>   
>
> 
>
>-Original Message-
>From: micael [mailto:caraunltd@;harbornet.com]
>Sent: Tuesday, October 29, 2002 4:06 PM
>To: Tomcat Users List
>Subject: RE: DBCP Woes!
>
>
>I don't know your setup at all, neal, but this is a hypersonic database
>reference.  What is your setup?
>
>At 04:31 PM 10/29/2002 -0800, you wrote:
> >I considered poolman but it doesn't look like its supported or even
> >available from the website to download anymore.  Is this the case?  I
have
> >heard good things about it.
> >
> >Don't suppose you understand this JDBC conext binding error, do you?
> >
> >Thanks.
> >Neal
> >
> >
> >-Original Message-
> >From: Mike Jackson [mailto:mjackson@;cdi-hq.com]
> >Sent: Tuesday, October 29, 2002 3:25 PM
> >To: Tomcat Users List
> >Subject: RE: DBCP Woes!
> >
> >
> >Poolman works nicely, I have little to no problems with it.  Then again
> >I haven't used DBCP.  But you'd still have had the exhasted connections
> >problem with poolman.
> >
> >--mikej
> >-=-
> >mike jackson
> >[EMAIL PROTECTED]
> >
> > > -Original Message-
> > > From: neal [mailto:nealcabage@;yahoo.com]
> > > Sent: Tuesday, October 29, 2002 4:22 PM
> > > To: Tomcat Users List
> > > Subject: RE: DBCP Woes!
> > >
> > >
> > > Now I have some other strange error related to accessing my
> > > database.  Ever
> > > since I started messing with thsi stuff my conneciton to my dB has
been
> > > flakey at best.  Sometimes it works ... sometimes it doesn't.
> > >
> > > javax.naming.NamingException: Exception creating DataSource:
> > > org.hsql.jdbcDriver
> > >
> > > I don't even know where this class is defined or called!!!
> > >
> > > >:(
> > >
> > > Neal
> > >
> > >
> > >
> > >
> > > Still having DBCP problems.
> > >
> > > I ensured that all my connections, statements, and resulset objects
> > > are being properly released when using DBCP for connection pooling.
I've
> > > enabled recoverAbandoned. It seems that yes I did have some
> > > connection pool
> > > leaking,
> > > but that has since been resolved.  But I still get this message
> > > (along with
> > > a
> > > failure) from time to time.  Does anyone know why?
> > >
> > > javax.naming.NameNotFoundException: Name jdbc is not bound in this
>Context
> > >
> > > This is a different message than I was getting when I was having
>problems
> > > with the

What causes Tomcat CPU usage to slowly rise over time?

2002-10-29 Thread Brandon Cruz
I have been trying to figure out the answer to this question for months now
with no success.  What causes the CPU usage for java to slowly rise as
tomcat is left running?  Slowly but surely, the CPU rises and rises until
eventually it gets around 50% and stops.  I think that is only because other
processes won't give up 100% of the CPU to java.

What causes this?  I have looked at everything I can think of.

P.S.  Memory usage rises slowly as well.

Tomcat 3.2.4
AJP 13
Apache 1.3.x
Linux RedHat


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: DBCP Woes!

2002-10-29 Thread micael
Write a class to see whether or not jdbc is bound in the context.  It 
probably isn't.

At 05:15 PM 10/29/2002 -0800, you wrote:
My setup?  I'm using MySQL 3.23 and the latest version of (don't recall the
number) Connector/J for my driver.  This is of course all sitting inside
tomcat 4.0.4.  I have manually installed the DBCP, collections and whatever
other support classes I needed for DBCP.

I have configured DBCP via my server.xml file as such (below).  When I was
recieving the error from (org.hsql) that was because I was also attempting
to creating a reference to the resource within my web.xml file.  I have
since removed it and that error has ceased.  The error I am currently
experiencing (javax.naming.NameNotFoundException: Name jdbc is not bound in
this Context) was happening last night.  *Seemed* to spontaneously got away,
then this morning I loaded a few classes and rebooted and it started again.
I have since removed those classes but the error is persisting.

Its worth noting that I can still obtain connections directly through JDBC,
without the use of DBCP, no problem.

Please let me know if you can think of anything

Thanks!
Neal




  
directory="logs"  prefix="dbcp_" suffix=".log" 
timestamp="true" />

  
/>
  

  factory
  org.apache.commons.dbcp.BasicDataSourceFactory


  maxActive
  100


  maxIdle
  3


  maxWait
  100


 username
 x


 password
 x


   driverClassName
   com.mysql.jdbc.Driver


  url
  jdbc:mysql:///hotel


  



-Original Message-
From: micael [mailto:caraunltd@;harbornet.com]
Sent: Tuesday, October 29, 2002 4:06 PM
To: Tomcat Users List
Subject: RE: DBCP Woes!


I don't know your setup at all, neal, but this is a hypersonic database
reference.  What is your setup?

At 04:31 PM 10/29/2002 -0800, you wrote:
>I considered poolman but it doesn't look like its supported or even
>available from the website to download anymore.  Is this the case?  I have
>heard good things about it.
>
>Don't suppose you understand this JDBC conext binding error, do you?
>
>Thanks.
>Neal
>
>
>-Original Message-
>From: Mike Jackson [mailto:mjackson@;cdi-hq.com]
>Sent: Tuesday, October 29, 2002 3:25 PM
>To: Tomcat Users List
>Subject: RE: DBCP Woes!
>
>
>Poolman works nicely, I have little to no problems with it.  Then again
>I haven't used DBCP.  But you'd still have had the exhasted connections
>problem with poolman.
>
>--mikej
>-=-
>mike jackson
>[EMAIL PROTECTED]
>
> > -Original Message-
> > From: neal [mailto:nealcabage@;yahoo.com]
> > Sent: Tuesday, October 29, 2002 4:22 PM
> > To: Tomcat Users List
> > Subject: RE: DBCP Woes!
> >
> >
> > Now I have some other strange error related to accessing my
> > database.  Ever
> > since I started messing with thsi stuff my conneciton to my dB has been
> > flakey at best.  Sometimes it works ... sometimes it doesn't.
> >
> > javax.naming.NamingException: Exception creating DataSource:
> > org.hsql.jdbcDriver
> >
> > I don't even know where this class is defined or called!!!
> >
> > >:(
> >
> > Neal
> >
> >
> >
> >
> > Still having DBCP problems.
> >
> > I ensured that all my connections, statements, and resulset objects
> > are being properly released when using DBCP for connection pooling. I've
> > enabled recoverAbandoned. It seems that yes I did have some
> > connection pool
> > leaking,
> > but that has since been resolved.  But I still get this message
> > (along with
> > a
> > failure) from time to time.  Does anyone know why?
> >
> > javax.naming.NameNotFoundException: Name jdbc is not bound in this
Context
> >
> > This is a different message than I was getting when I was having
problems
> > with the DBCP pool being exhausted.
> >
> > Thanks!
> > Neal
> >
> >
> > --
> > To unsubscribe, e-mail:
> > 
> > For additional commands, e-mail:
> > 
> >
> >
> > --
> > To unsubscribe, e-mail:
>
>For additional commands, e-mail:
>
>
>
>
>--
>To unsubscribe, e-mail:
>
>For additional commands, e-mail:
>
>
>
>--
>To unsubscribe, e-mail:

>For additional commands, e-mail:


Micael

---

This electronic mail  transmission and any accompanying documents co

RE: DBCP Woes!

2002-10-29 Thread Iain Sanderson

Neal,

I use Poolman and have found it excellent. A testimony to it's usefulness
is that folk are still recommending it 9 months after its developer stopped
supporting it and issued the final 2.1b release.

You'll find that Poolman's connection code is near identical to that which
you've shown, so your change to Poolman will hardly require any
"investment".

Your NamingException is may be related to a JNDI naming resource. Check
your JNDI.properties file if there is one.

Iain.





"neal" <[EMAIL PROTECTED]> on 10/29/2002 08:36:02 PM

Please respond to "Tomcat Users List" <[EMAIL PROTECTED]>

To:"Tomcat Users List" <[EMAIL PROTECTED]>
cc:

Subject:RE: DBCP Woes!


Oh yeah, and this is the source code for creating a connection:

protected Connection getConnection() throws NamingException,
SQLException, Exception {
this.CONTEXT  = new InitialContext();
Connection conn = null;
if(this.CONTEXT == null ) throw new Exception("Context needed to
establish conection");
DataSource ds = (DataSource)CONTEXT.lookup("java:comp/env/jdbc/" +
this.DATABASE);

if (ds != null) {
conn = ds.getConnection();
}else{
return null;
}
return conn;
}

So it would appear it is blowing up on the line where its attempting to
create datasource.  I read another Deja post not too long ago where someone
was saying that this error is often caused by not having the right context
path reference in the code for creating a Datasource.  Someone else said
that you must define your datasource via the web.xml and then its avail for
reference.  BUT, why was it working before (and why is it still working on
my laptop) with out the web.xml reference, and with these exact context
paths?

So confusing.  :(

Neal

-Original Message-
From: neal [mailto:nealcabage@;yahoo.com]
Sent: Tuesday, October 29, 2002 5:16 PM
To: Tomcat Users List
Subject: RE: DBCP Woes!


My setup?  I'm using MySQL 3.23 and the latest version of (don't recall the
number) Connector/J for my driver.  This is of course all sitting inside
tomcat 4.0.4.  I have manually installed the DBCP, collections and whatever
other support classes I needed for DBCP.

I have configured DBCP via my server.xml file as such (below).  When I was
recieving the error from (org.hsql) that was because I was also attempting
to creating a reference to the resource within my web.xml file.  I have
since removed it and that error has ceased.  The error I am currently
experiencing (javax.naming.NameNotFoundException: Name jdbc is not bound in
this Context) was happening last night.  *Seemed* to spontaneously got
away,
then this morning I loaded a few classes and rebooted and it started again.
I have since removed those classes but the error is persisting.

Its worth noting that I can still obtain connections directly through JDBC,
without the use of DBCP, no problem.

Please let me know if you can think of anything

Thanks!
Neal




  

   
   
 
   factory
   org.apache.commons.dbcp.BasicDataSourceFactory
 
 
   maxActive
   100
 
 
   maxIdle
   3
 
 
   maxWait
   100
 
 
  username
  x
 
 
  password
  x
 
 
driverClassName
com.mysql.jdbc.Driver
 
 
   url
   jdbc:mysql:///hotel
 

   

 

-Original Message-
From: micael [mailto:caraunltd@;harbornet.com]
Sent: Tuesday, October 29, 2002 4:06 PM
To: Tomcat Users List
Subject: RE: DBCP Woes!


I don't know your setup at all, neal, but this is a hypersonic database
reference.  What is your setup?

At 04:31 PM 10/29/2002 -0800, you wrote:
>I considered poolman but it doesn't look like its supported or even
>available from the website to download anymore.  Is this the case?  I have
>heard good things about it.
>
>Don't suppose you understand this JDBC conext binding error, do you?
>
>Thanks.
>Neal
>
>
>-Original Message-
>From: Mike Jackson [mailto:mjackson@;cdi-hq.com]
>Sent: Tuesday, October 29, 2002 3:25 PM
>To: Tomcat Users List
>Subject: RE: DBCP Woes!
>
>
>Poolman works nicely, I have little to no problems with it.  Then again
>I haven't used DBCP.  But you'd still have had the exhasted connections
>problem with poolman.
>
>--mikej
>-=-
>mike jackson
>[EMAIL PROTECTED]
>
> > -Original Message-
> > From: neal [mailto:nealcabage@;yahoo.com]
> > Sent: Tuesday, October 29, 2002 4:22 PM
> > To: Tomcat Users List
> > Subject: RE: DBCP Woes!
> >
> >
> > Now I have some other strange error related to accessing my
> > database.  Ever
> > since I started messing with thsi stuff my conneciton to my dB has been
> > flakey at best.  Sometimes it works ... sometimes it doesn't.
> >
> > javax.naming.NamingException: Exception creating DataSource:
> > org.hsql.jdbcDriver
> >
> > I don't even know where this class is defined or called!!!
> >
> > >:(
> >
> > Neal
> >
> >
> >
> >
> >

RE: DBCP Woes!

2002-10-29 Thread neal
Thanks for the poolman links.  Well, I'm invested in DBCP already so I'll
give it another day to explain itself to me. ;-)  It not by then, I think
I'll dive into Poolman.

Thanks.
Neal


-Original Message-
From: Mike Jackson [mailto:mjackson@;cdi-hq.com]
Sent: Tuesday, October 29, 2002 4:02 PM
To: Tomcat Users List
Subject: RE: DBCP Woes!


Here's two links, these are the one's I've got archived.  They
should be latest, unless they've started development again.
But really, I've never had any problems with poolman, so...

http://www.cdi-hq.com/mj/poolman-2.0.4.tar.gz
http://www.cdi-hq.com/mj/poolman-2.1-b1.tar.gz

--mikej
-=-
mike jackson
[EMAIL PROTECTED]

> -Original Message-
> From: neal [mailto:nealcabage@;yahoo.com]
> Sent: Tuesday, October 29, 2002 4:52 PM
> To: Tomcat Users List
> Subject: RE: DBCP Woes!
>
>
> Interesting.  Yeah, this error occassionally pops up and ocassionally goes
> away.  When its flaring up I can't get any connections via DBCP.  But, I
> still can through regular (non-pooled) JDBC.  Uuugh.
>
> Maybe I should look at Poolman.  Where can you download it from?
>
> Are there many people out there successfully using DBCP?  I don't
> know if it
> matters but I'm using 4.0.4 and had to install all the classes myself.  It
> didn't come with Tomcat as it curently does in 4.1.
>
> Neal
>
>
> -Original Message-
> From: Mike Jackson [mailto:mjackson@;cdi-hq.com]
> Sent: Tuesday, October 29, 2002 3:44 PM
> To: Tomcat Users List
> Subject: RE: DBCP Woes!
>
>
> I don't think anyone's actively working on it anymore, but it's rock solid
> (tm).
> At least with the way that I'm using it.
>
> As for the JDBC thing, it looks like it's the underlying JDBC driver.  I
> don't
> know how DBCP works, but I'd imagine that it's not too different from
> Poolman.
> The point is that if there isn't a connection it's going to make
> a new one,
> and
> that error looks like that's probably where it's occuring.  The
> error looks
> like
> it can't find the hsql driver, something to do with the name lookup via
> jndi.
> But I'm not an expert on jndi, so I probably can't help you there.  If it
> manages
> to make connections fine up to a point then I'd look at a limit in the
> database,
> there could be something that'll only allow up to so many
> connections to be
> created without closing the older ones.  But that's just a guess.
>
> If you want to try out poolman I have the .tar.gz's for both the last beta
> and
> the last "release" version.  I'd be happy to email them to you if
> you wish.
> And I could even through in an example config xml file (points at oracle).
>
> --mikej
> -=-
> mike jackson
> [EMAIL PROTECTED]
>
> > -Original Message-
> > From: neal [mailto:nealcabage@;yahoo.com]
> > Sent: Tuesday, October 29, 2002 4:32 PM
> > To: Tomcat Users List
> > Subject: RE: DBCP Woes!
> >
> >
> > I considered poolman but it doesn't look like its supported or even
> > available from the website to download anymore.  Is this the
> case?  I have
> > heard good things about it.
> >
> > Don't suppose you understand this JDBC conext binding error, do you?
> >
> > Thanks.
> > Neal
> >
> >
> > -Original Message-
> > From: Mike Jackson [mailto:mjackson@;cdi-hq.com]
> > Sent: Tuesday, October 29, 2002 3:25 PM
> > To: Tomcat Users List
> > Subject: RE: DBCP Woes!
> >
> >
> > Poolman works nicely, I have little to no problems with it.  Then again
> > I haven't used DBCP.  But you'd still have had the exhasted connections
> > problem with poolman.
> >
> > --mikej
> > -=-
> > mike jackson
> > [EMAIL PROTECTED]
> >
> > > -Original Message-
> > > From: neal [mailto:nealcabage@;yahoo.com]
> > > Sent: Tuesday, October 29, 2002 4:22 PM
> > > To: Tomcat Users List
> > > Subject: RE: DBCP Woes!
> > >
> > >
> > > Now I have some other strange error related to accessing my
> > > database.  Ever
> > > since I started messing with thsi stuff my conneciton to my
> dB has been
> > > flakey at best.  Sometimes it works ... sometimes it doesn't.
> > >
> > > javax.naming.NamingException: Exception creating DataSource:
> > > org.hsql.jdbcDriver
> > >
> > > I don't even know where this class is defined or called!!!
> > >
> > > >:(
> > >
> > > Neal
> > >
> > >
> > >
> > >
> > > Still having DBCP problems.
> > >
> > > I ensured that all my connections, statements, and resulset objects
> > > are being properly released when using DBCP for connection
> pooling. I've
> > > enabled recoverAbandoned. It seems that yes I did have some
> > > connection pool
> > > leaking,
> > > but that has since been resolved.  But I still get this message
> > > (along with
> > > a
> > > failure) from time to time.  Does anyone know why?
> > >
> > > javax.naming.NameNotFoundException: Name jdbc is not bound in
> > this Context
> > >
> > > This is a different message than I was getting when I was
> > having problems
> > > with the DBCP pool being exhausted.
> > >
> > > Thanks!
> > > Neal
> > 

RE: Force One page to not use SSL

2002-10-29 Thread Rustad, Aaron
Man alive! Does this thread have to continue in this direction? Myself and
Jeff both have similar problems, and we are requesting a common solution. I
think we both expressed that we are aware of the consequences of our
"security-flawed" approach to app design, yet everyone seems to think that
this has not been thought through. 

All I am asking is...does anyone know how to persist a session from HTTPs to
HTTP. Any potential solutions are GREATLY appreciate...any other suggestions
(even though they might be well-meaning) are discouraged.

Thanks!
Aaron.

-Original Message-
From: Justin Ruthenbeck [mailto:justinr@;nextengine.com]
Sent: October 29, 2002 5:20 PM
To: Tomcat Users List
Subject: RE: Force One page to not use SSL



Jeff --

This may be a bit simple minded since I don't understand your entire 
situation there, but it doesn't sound like you're interested in protecting 
these JARs in the first place (hence you don't need HTTPS for them).  Why, 
then, do you even need to make sure the user is authenticated (ie *has* a 
session) in the first place?  Why not just serve them up to anyone who 
requests them?

If you need the user to be in a session, you can approximate (which 
implies, of course, a less-than-elegant solution) the session by 
duplicating some of what Tomcat does to handle sessions.  Namely, give your 
own token/cookie to the user and also into your context at HTTPS session 
start time ... keep your list synched with Tomcat's by removing the tokens 
whenever sessions are invalidated.  When deciding whether to serve up the 
JARs, use this to determine whether the user is 
authenticated.  Duplication, yes, but it's *a* solution.

I'd be interested to hear what you end up doing...

justin



At 03:56 PM 10/29/2002, you wrote:
>I've read the list archives and I'm aware of the security "issue", but I
>still want to switch from HTTPS to HTTP.
>
>Yes, I know someone could hijack the session.  We're not worried about
>that; at worst someone could make some obnoxious posts to a forum.  We
>force users to submit their password a second time (and go into SSL, of
>course) whenever anything sensitive is touched, such as passwords or
>credit card info.
>
>We get a _lot_ of traffic.  Running everything under SSL is not really
>an option.  Can Apache/Tomcat/mod_jk be made to handle the switch?  In
>our current configuration, it appears that the session is getting lost
>in the transition from HTTPS->HTTP so the user is forced to log in
>again.
>
>Thanks,
>Jeff Schnitzer
>[EMAIL PROTECTED]
>The Sims Online
>
>
>
> > -Original Message-
> > From: Craig R. McClanahan [mailto:craigmcc@;apache.org]
> > Sent: Monday, October 28, 2002 8:37 PM
> > To: Tomcat Users List
> > Subject: Re: Force One page to not use SSL
> >
> >
> >
> > On Mon, 28 Oct 2002, Rustad, Aaron wrote:
> >
> > > Date: Mon, 28 Oct 2002 17:48:40 -0700
> > > From: "Rustad, Aaron" <[EMAIL PROTECTED]>
> > > Reply-To: Tomcat Users List <[EMAIL PROTECTED]>
> > > To: "'[EMAIL PROTECTED]'"
><[EMAIL PROTECTED]>
> > > Subject: Force One page to not use SSL
> > >
> > > I am trying to force one page NOT to use HTTPS and still maintain
>the
> > > session. I have looked in mailing list, and all I see is how you are
>not
> > > supposed to do this. Well, I really...really...really need to do
>this
> > and
> > > yes, I understand that I shouldn't.
> > >
> > > So, if anyone knows how I can maintain the session that is given to
>my
> > > client from HTTPS -> HTTP I would greatly appreciate it.
> > >
> >
> > There is no support for this because it would be a huge security hole.
> > For much discussion on this topic, check the mailing list archives.
> >
> > > Some background:
> > >
> > > 1. IIS as a front for Tomcat 4.0.1.
> > > 2. Using AJP13
> > >
> > > Thanks!
> > > Aaron.
> >
> > Craig
> >
> >
> > --
> > To unsubscribe, e-mail:    
> [EMAIL PROTECTED]>
> > For additional commands, e-mail:  
> [EMAIL PROTECTED]>
>
>
>--
>To unsubscribe, e-mail:

>For additional commands, e-mail:



--
To unsubscribe, e-mail:

For additional commands, e-mail:


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: DBCP Woes!

2002-10-29 Thread neal
Oh yeah, and this is the source code for creating a connection:

protected Connection getConnection() throws NamingException,
SQLException, Exception {
this.CONTEXT  = new InitialContext();
Connection conn = null;
if(this.CONTEXT == null ) throw new Exception("Context needed to
establish conection");
DataSource ds = (DataSource)CONTEXT.lookup("java:comp/env/jdbc/" +
this.DATABASE);

if (ds != null) {
conn = ds.getConnection();
}else{
return null;
}
return conn;
}

So it would appear it is blowing up on the line where its attempting to
create datasource.  I read another Deja post not too long ago where someone
was saying that this error is often caused by not having the right context
path reference in the code for creating a Datasource.  Someone else said
that you must define your datasource via the web.xml and then its avail for
reference.  BUT, why was it working before (and why is it still working on
my laptop) with out the web.xml reference, and with these exact context
paths?

So confusing.  :(

Neal

-Original Message-
From: neal [mailto:nealcabage@;yahoo.com]
Sent: Tuesday, October 29, 2002 5:16 PM
To: Tomcat Users List
Subject: RE: DBCP Woes!


My setup?  I'm using MySQL 3.23 and the latest version of (don't recall the
number) Connector/J for my driver.  This is of course all sitting inside
tomcat 4.0.4.  I have manually installed the DBCP, collections and whatever
other support classes I needed for DBCP.

I have configured DBCP via my server.xml file as such (below).  When I was
recieving the error from (org.hsql) that was because I was also attempting
to creating a reference to the resource within my web.xml file.  I have
since removed it and that error has ceased.  The error I am currently
experiencing (javax.naming.NameNotFoundException: Name jdbc is not bound in
this Context) was happening last night.  *Seemed* to spontaneously got away,
then this morning I loaded a few classes and rebooted and it started again.
I have since removed those classes but the error is persisting.

Its worth noting that I can still obtain connections directly through JDBC,
without the use of DBCP, no problem.

Please let me know if you can think of anything

Thanks!
Neal




  

  
  

  factory
  org.apache.commons.dbcp.BasicDataSourceFactory


  maxActive
  100


  maxIdle
  3


  maxWait
  100


 username
 x


 password
 x


   driverClassName
   com.mysql.jdbc.Driver


  url
  jdbc:mysql:///hotel


  



-Original Message-
From: micael [mailto:caraunltd@;harbornet.com]
Sent: Tuesday, October 29, 2002 4:06 PM
To: Tomcat Users List
Subject: RE: DBCP Woes!


I don't know your setup at all, neal, but this is a hypersonic database
reference.  What is your setup?

At 04:31 PM 10/29/2002 -0800, you wrote:
>I considered poolman but it doesn't look like its supported or even
>available from the website to download anymore.  Is this the case?  I have
>heard good things about it.
>
>Don't suppose you understand this JDBC conext binding error, do you?
>
>Thanks.
>Neal
>
>
>-Original Message-
>From: Mike Jackson [mailto:mjackson@;cdi-hq.com]
>Sent: Tuesday, October 29, 2002 3:25 PM
>To: Tomcat Users List
>Subject: RE: DBCP Woes!
>
>
>Poolman works nicely, I have little to no problems with it.  Then again
>I haven't used DBCP.  But you'd still have had the exhasted connections
>problem with poolman.
>
>--mikej
>-=-
>mike jackson
>[EMAIL PROTECTED]
>
> > -Original Message-
> > From: neal [mailto:nealcabage@;yahoo.com]
> > Sent: Tuesday, October 29, 2002 4:22 PM
> > To: Tomcat Users List
> > Subject: RE: DBCP Woes!
> >
> >
> > Now I have some other strange error related to accessing my
> > database.  Ever
> > since I started messing with thsi stuff my conneciton to my dB has been
> > flakey at best.  Sometimes it works ... sometimes it doesn't.
> >
> > javax.naming.NamingException: Exception creating DataSource:
> > org.hsql.jdbcDriver
> >
> > I don't even know where this class is defined or called!!!
> >
> > >:(
> >
> > Neal
> >
> >
> >
> >
> > Still having DBCP problems.
> >
> > I ensured that all my connections, statements, and resulset objects
> > are being properly released when using DBCP for connection pooling. I've
> > enabled recoverAbandoned. It seems that yes I did have some
> > connection pool
> > leaking,
> > but that has since been resolved.  But I still get this message
> > (along with
> > a
> > failure) from time to time.  Does anyone know why?
> >
> >

RE: Force One page to not use SSL

2002-10-29 Thread Justin Ruthenbeck

Jeff --

This may be a bit simple minded since I don't understand your entire 
situation there, but it doesn't sound like you're interested in protecting 
these JARs in the first place (hence you don't need HTTPS for them).  Why, 
then, do you even need to make sure the user is authenticated (ie *has* a 
session) in the first place?  Why not just serve them up to anyone who 
requests them?

If you need the user to be in a session, you can approximate (which 
implies, of course, a less-than-elegant solution) the session by 
duplicating some of what Tomcat does to handle sessions.  Namely, give your 
own token/cookie to the user and also into your context at HTTPS session 
start time ... keep your list synched with Tomcat's by removing the tokens 
whenever sessions are invalidated.  When deciding whether to serve up the 
JARs, use this to determine whether the user is 
authenticated.  Duplication, yes, but it's *a* solution.

I'd be interested to hear what you end up doing...

justin



At 03:56 PM 10/29/2002, you wrote:
I've read the list archives and I'm aware of the security "issue", but I
still want to switch from HTTPS to HTTP.

Yes, I know someone could hijack the session.  We're not worried about
that; at worst someone could make some obnoxious posts to a forum.  We
force users to submit their password a second time (and go into SSL, of
course) whenever anything sensitive is touched, such as passwords or
credit card info.

We get a _lot_ of traffic.  Running everything under SSL is not really
an option.  Can Apache/Tomcat/mod_jk be made to handle the switch?  In
our current configuration, it appears that the session is getting lost
in the transition from HTTPS->HTTP so the user is forced to log in
again.

Thanks,
Jeff Schnitzer
[EMAIL PROTECTED]
The Sims Online



> -Original Message-
> From: Craig R. McClanahan [mailto:craigmcc@;apache.org]
> Sent: Monday, October 28, 2002 8:37 PM
> To: Tomcat Users List
> Subject: Re: Force One page to not use SSL
>
>
>
> On Mon, 28 Oct 2002, Rustad, Aaron wrote:
>
> > Date: Mon, 28 Oct 2002 17:48:40 -0700
> > From: "Rustad, Aaron" <[EMAIL PROTECTED]>
> > Reply-To: Tomcat Users List <[EMAIL PROTECTED]>
> > To: "'[EMAIL PROTECTED]'"
<[EMAIL PROTECTED]>
> > Subject: Force One page to not use SSL
> >
> > I am trying to force one page NOT to use HTTPS and still maintain
the
> > session. I have looked in mailing list, and all I see is how you are
not
> > supposed to do this. Well, I really...really...really need to do
this
> and
> > yes, I understand that I shouldn't.
> >
> > So, if anyone knows how I can maintain the session that is given to
my
> > client from HTTPS -> HTTP I would greatly appreciate it.
> >
>
> There is no support for this because it would be a huge security hole.
> For much discussion on this topic, check the mailing list archives.
>
> > Some background:
> >
> > 1. IIS as a front for Tomcat 4.0.1.
> > 2. Using AJP13
> >
> > Thanks!
> > Aaron.
>
> Craig
>
>
> --
> To unsubscribe, e-mail:    
[EMAIL PROTECTED]>
> For additional commands, e-mail:  
[EMAIL PROTECTED]>


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: DBCP Woes!

2002-10-29 Thread neal
My setup?  I'm using MySQL 3.23 and the latest version of (don't recall the
number) Connector/J for my driver.  This is of course all sitting inside
tomcat 4.0.4.  I have manually installed the DBCP, collections and whatever
other support classes I needed for DBCP.

I have configured DBCP via my server.xml file as such (below).  When I was
recieving the error from (org.hsql) that was because I was also attempting
to creating a reference to the resource within my web.xml file.  I have
since removed it and that error has ceased.  The error I am currently
experiencing (javax.naming.NameNotFoundException: Name jdbc is not bound in
this Context) was happening last night.  *Seemed* to spontaneously got away,
then this morning I loaded a few classes and rebooted and it started again.
I have since removed those classes but the error is persisting.

Its worth noting that I can still obtain connections directly through JDBC,
without the use of DBCP, no problem.

Please let me know if you can think of anything

Thanks!
Neal




  

  
  

  factory
  org.apache.commons.dbcp.BasicDataSourceFactory


  maxActive
  100


  maxIdle
  3


  maxWait
  100


 username
 x


 password
 x


   driverClassName
   com.mysql.jdbc.Driver


  url
  jdbc:mysql:///hotel


  



-Original Message-
From: micael [mailto:caraunltd@;harbornet.com]
Sent: Tuesday, October 29, 2002 4:06 PM
To: Tomcat Users List
Subject: RE: DBCP Woes!


I don't know your setup at all, neal, but this is a hypersonic database
reference.  What is your setup?

At 04:31 PM 10/29/2002 -0800, you wrote:
>I considered poolman but it doesn't look like its supported or even
>available from the website to download anymore.  Is this the case?  I have
>heard good things about it.
>
>Don't suppose you understand this JDBC conext binding error, do you?
>
>Thanks.
>Neal
>
>
>-Original Message-
>From: Mike Jackson [mailto:mjackson@;cdi-hq.com]
>Sent: Tuesday, October 29, 2002 3:25 PM
>To: Tomcat Users List
>Subject: RE: DBCP Woes!
>
>
>Poolman works nicely, I have little to no problems with it.  Then again
>I haven't used DBCP.  But you'd still have had the exhasted connections
>problem with poolman.
>
>--mikej
>-=-
>mike jackson
>[EMAIL PROTECTED]
>
> > -Original Message-
> > From: neal [mailto:nealcabage@;yahoo.com]
> > Sent: Tuesday, October 29, 2002 4:22 PM
> > To: Tomcat Users List
> > Subject: RE: DBCP Woes!
> >
> >
> > Now I have some other strange error related to accessing my
> > database.  Ever
> > since I started messing with thsi stuff my conneciton to my dB has been
> > flakey at best.  Sometimes it works ... sometimes it doesn't.
> >
> > javax.naming.NamingException: Exception creating DataSource:
> > org.hsql.jdbcDriver
> >
> > I don't even know where this class is defined or called!!!
> >
> > >:(
> >
> > Neal
> >
> >
> >
> >
> > Still having DBCP problems.
> >
> > I ensured that all my connections, statements, and resulset objects
> > are being properly released when using DBCP for connection pooling. I've
> > enabled recoverAbandoned. It seems that yes I did have some
> > connection pool
> > leaking,
> > but that has since been resolved.  But I still get this message
> > (along with
> > a
> > failure) from time to time.  Does anyone know why?
> >
> > javax.naming.NameNotFoundException: Name jdbc is not bound in this
Context
> >
> > This is a different message than I was getting when I was having
problems
> > with the DBCP pool being exhausted.
> >
> > Thanks!
> > Neal
> >
> >
> > --
> > To unsubscribe, e-mail:
> > 
> > For additional commands, e-mail:
> > 
> >
> >
> > --
> > To unsubscribe, e-mail:
>
>For additional commands, e-mail:
>
>
>
>
>--
>To unsubscribe, e-mail:
>
>For additional commands, e-mail:
>
>
>
>--
>To unsubscribe, e-mail:

>For additional commands, e-mail:


Micael

---

This electronic mail  transmission and any accompanying documents contain
information belonging to the sender which may be confidential and legally
privileged.  This information is intended only for the use of the
individual or entity to whom this electronic mail transmission was sen

ANNOUNCE: basicPortal release 0.7e on Sourceforge

2002-10-29 Thread John Menke
The basicPortal project on Sourceforge has just released a new release of
their FREE OPEN SOURCE portal software.  See http://basicportal.SF.net.

basicPortal is a SET OF vertical applications designed to increase web
programmer
productivity that incorporates Struts, the JSTL tag library, a BASIC DAO
implementation, and MVC programming techniques.  The goal of basicPortal is
provide developers with a working base of code to jumpstart their web/portal
projects.

basicPortal:

- contains the functionality common to 80% of web projects
- we let developers customize the last 20%.


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Force One page to not use SSL

2002-10-29 Thread Dan Lipofsky
We do the switch, using Apache1.3.20/Tomcat3.2.4 on Solaris.
We just use an absolute URL when doing the switch.
No problems with lost sessions.
- Dan

- Original Message - 
I've read the list archives and I'm aware of the security "issue", but I
still want to switch from HTTPS to HTTP.

Yes, I know someone could hijack the session.  We're not worried about
that; at worst someone could make some obnoxious posts to a forum.  We
force users to submit their password a second time (and go into SSL, of
course) whenever anything sensitive is touched, such as passwords or
credit card info.

We get a _lot_ of traffic.  Running everything under SSL is not really
an option.  Can Apache/Tomcat/mod_jk be made to handle the switch?  In
our current configuration, it appears that the session is getting lost
in the transition from HTTPS->HTTP so the user is forced to log in
again.



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: DBCP Woes!

2002-10-29 Thread micael
I don't know your setup at all, neal, but this is a hypersonic database 
reference.  What is your setup?

At 04:31 PM 10/29/2002 -0800, you wrote:
I considered poolman but it doesn't look like its supported or even
available from the website to download anymore.  Is this the case?  I have
heard good things about it.

Don't suppose you understand this JDBC conext binding error, do you?

Thanks.
Neal


-Original Message-
From: Mike Jackson [mailto:mjackson@;cdi-hq.com]
Sent: Tuesday, October 29, 2002 3:25 PM
To: Tomcat Users List
Subject: RE: DBCP Woes!


Poolman works nicely, I have little to no problems with it.  Then again
I haven't used DBCP.  But you'd still have had the exhasted connections
problem with poolman.

--mikej
-=-
mike jackson
[EMAIL PROTECTED]

> -Original Message-
> From: neal [mailto:nealcabage@;yahoo.com]
> Sent: Tuesday, October 29, 2002 4:22 PM
> To: Tomcat Users List
> Subject: RE: DBCP Woes!
>
>
> Now I have some other strange error related to accessing my
> database.  Ever
> since I started messing with thsi stuff my conneciton to my dB has been
> flakey at best.  Sometimes it works ... sometimes it doesn't.
>
> javax.naming.NamingException: Exception creating DataSource:
> org.hsql.jdbcDriver
>
> I don't even know where this class is defined or called!!!
>
> >:(
>
> Neal
>
>
>
>
> Still having DBCP problems.
>
> I ensured that all my connections, statements, and resulset objects
> are being properly released when using DBCP for connection pooling. I've
> enabled recoverAbandoned. It seems that yes I did have some
> connection pool
> leaking,
> but that has since been resolved.  But I still get this message
> (along with
> a
> failure) from time to time.  Does anyone know why?
>
> javax.naming.NameNotFoundException: Name jdbc is not bound in this Context
>
> This is a different message than I was getting when I was having problems
> with the DBCP pool being exhausted.
>
> Thanks!
> Neal
>
>
> --
> To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 
>
>
> --
> To unsubscribe, e-mail:

For additional commands, e-mail:




--
To unsubscribe, e-mail:

For additional commands, e-mail:



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 


Micael

---

This electronic mail  transmission and any accompanying documents contain 
information belonging to the sender which may be confidential and legally 
privileged.  This information is intended only for the use of the 
individual or entity to whom this electronic mail transmission was sent as 
indicated above. If you are not the intended recipient, any disclosure, 
copying, distribution, or action taken in reliance on the contents of the 
information contained in this transmission is strictly prohibited.  If you 
have received this transmission in error, please delete the message.  Thank you 



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 



RE: DBCP Woes!

2002-10-29 Thread Mike Jackson
Here's two links, these are the one's I've got archived.  They
should be latest, unless they've started development again.
But really, I've never had any problems with poolman, so...

http://www.cdi-hq.com/mj/poolman-2.0.4.tar.gz
http://www.cdi-hq.com/mj/poolman-2.1-b1.tar.gz

--mikej
-=-
mike jackson
[EMAIL PROTECTED]

> -Original Message-
> From: neal [mailto:nealcabage@;yahoo.com]
> Sent: Tuesday, October 29, 2002 4:52 PM
> To: Tomcat Users List
> Subject: RE: DBCP Woes!
>
>
> Interesting.  Yeah, this error occassionally pops up and ocassionally goes
> away.  When its flaring up I can't get any connections via DBCP.  But, I
> still can through regular (non-pooled) JDBC.  Uuugh.
>
> Maybe I should look at Poolman.  Where can you download it from?
>
> Are there many people out there successfully using DBCP?  I don't
> know if it
> matters but I'm using 4.0.4 and had to install all the classes myself.  It
> didn't come with Tomcat as it curently does in 4.1.
>
> Neal
>
>
> -Original Message-
> From: Mike Jackson [mailto:mjackson@;cdi-hq.com]
> Sent: Tuesday, October 29, 2002 3:44 PM
> To: Tomcat Users List
> Subject: RE: DBCP Woes!
>
>
> I don't think anyone's actively working on it anymore, but it's rock solid
> (tm).
> At least with the way that I'm using it.
>
> As for the JDBC thing, it looks like it's the underlying JDBC driver.  I
> don't
> know how DBCP works, but I'd imagine that it's not too different from
> Poolman.
> The point is that if there isn't a connection it's going to make
> a new one,
> and
> that error looks like that's probably where it's occuring.  The
> error looks
> like
> it can't find the hsql driver, something to do with the name lookup via
> jndi.
> But I'm not an expert on jndi, so I probably can't help you there.  If it
> manages
> to make connections fine up to a point then I'd look at a limit in the
> database,
> there could be something that'll only allow up to so many
> connections to be
> created without closing the older ones.  But that's just a guess.
>
> If you want to try out poolman I have the .tar.gz's for both the last beta
> and
> the last "release" version.  I'd be happy to email them to you if
> you wish.
> And I could even through in an example config xml file (points at oracle).
>
> --mikej
> -=-
> mike jackson
> [EMAIL PROTECTED]
>
> > -Original Message-
> > From: neal [mailto:nealcabage@;yahoo.com]
> > Sent: Tuesday, October 29, 2002 4:32 PM
> > To: Tomcat Users List
> > Subject: RE: DBCP Woes!
> >
> >
> > I considered poolman but it doesn't look like its supported or even
> > available from the website to download anymore.  Is this the
> case?  I have
> > heard good things about it.
> >
> > Don't suppose you understand this JDBC conext binding error, do you?
> >
> > Thanks.
> > Neal
> >
> >
> > -Original Message-
> > From: Mike Jackson [mailto:mjackson@;cdi-hq.com]
> > Sent: Tuesday, October 29, 2002 3:25 PM
> > To: Tomcat Users List
> > Subject: RE: DBCP Woes!
> >
> >
> > Poolman works nicely, I have little to no problems with it.  Then again
> > I haven't used DBCP.  But you'd still have had the exhasted connections
> > problem with poolman.
> >
> > --mikej
> > -=-
> > mike jackson
> > [EMAIL PROTECTED]
> >
> > > -Original Message-
> > > From: neal [mailto:nealcabage@;yahoo.com]
> > > Sent: Tuesday, October 29, 2002 4:22 PM
> > > To: Tomcat Users List
> > > Subject: RE: DBCP Woes!
> > >
> > >
> > > Now I have some other strange error related to accessing my
> > > database.  Ever
> > > since I started messing with thsi stuff my conneciton to my
> dB has been
> > > flakey at best.  Sometimes it works ... sometimes it doesn't.
> > >
> > > javax.naming.NamingException: Exception creating DataSource:
> > > org.hsql.jdbcDriver
> > >
> > > I don't even know where this class is defined or called!!!
> > >
> > > >:(
> > >
> > > Neal
> > >
> > >
> > >
> > >
> > > Still having DBCP problems.
> > >
> > > I ensured that all my connections, statements, and resulset objects
> > > are being properly released when using DBCP for connection
> pooling. I've
> > > enabled recoverAbandoned. It seems that yes I did have some
> > > connection pool
> > > leaking,
> > > but that has since been resolved.  But I still get this message
> > > (along with
> > > a
> > > failure) from time to time.  Does anyone know why?
> > >
> > > javax.naming.NameNotFoundException: Name jdbc is not bound in
> > this Context
> > >
> > > This is a different message than I was getting when I was
> > having problems
> > > with the DBCP pool being exhausted.
> > >
> > > Thanks!
> > > Neal
> > >
> > >
> > > --
> > > To unsubscribe, e-mail:
> > > 
> > > For additional commands, e-mail:
> > > 
> > >
> > >
> > > --
> > > To unsubscribe, e-mail:
> > 
> > For additional commands, e-mail:
> > 

RE: Force One page to not use SSL

2002-10-29 Thread Schnitzer, Jeff
I've read the list archives and I'm aware of the security "issue", but I
still want to switch from HTTPS to HTTP.

Yes, I know someone could hijack the session.  We're not worried about
that; at worst someone could make some obnoxious posts to a forum.  We
force users to submit their password a second time (and go into SSL, of
course) whenever anything sensitive is touched, such as passwords or
credit card info.

We get a _lot_ of traffic.  Running everything under SSL is not really
an option.  Can Apache/Tomcat/mod_jk be made to handle the switch?  In
our current configuration, it appears that the session is getting lost
in the transition from HTTPS->HTTP so the user is forced to log in
again.

Thanks,
Jeff Schnitzer
[EMAIL PROTECTED]
The Sims Online



> -Original Message-
> From: Craig R. McClanahan [mailto:craigmcc@;apache.org]
> Sent: Monday, October 28, 2002 8:37 PM
> To: Tomcat Users List
> Subject: Re: Force One page to not use SSL
> 
> 
> 
> On Mon, 28 Oct 2002, Rustad, Aaron wrote:
> 
> > Date: Mon, 28 Oct 2002 17:48:40 -0700
> > From: "Rustad, Aaron" <[EMAIL PROTECTED]>
> > Reply-To: Tomcat Users List <[EMAIL PROTECTED]>
> > To: "'[EMAIL PROTECTED]'"
<[EMAIL PROTECTED]>
> > Subject: Force One page to not use SSL
> >
> > I am trying to force one page NOT to use HTTPS and still maintain
the
> > session. I have looked in mailing list, and all I see is how you are
not
> > supposed to do this. Well, I really...really...really need to do
this
> and
> > yes, I understand that I shouldn't.
> >
> > So, if anyone knows how I can maintain the session that is given to
my
> > client from HTTPS -> HTTP I would greatly appreciate it.
> >
> 
> There is no support for this because it would be a huge security hole.
> For much discussion on this topic, check the mailing list archives.
> 
> > Some background:
> >
> > 1. IIS as a front for Tomcat 4.0.1.
> > 2. Using AJP13
> >
> > Thanks!
> > Aaron.
> 
> Craig
> 
> 
> --
> To unsubscribe, e-mail:    [EMAIL PROTECTED]>
> For additional commands, e-mail:  [EMAIL PROTECTED]>


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: DBCP Woes!

2002-10-29 Thread neal
Interesting.  Yeah, this error occassionally pops up and ocassionally goes
away.  When its flaring up I can't get any connections via DBCP.  But, I
still can through regular (non-pooled) JDBC.  Uuugh.

Maybe I should look at Poolman.  Where can you download it from?

Are there many people out there successfully using DBCP?  I don't know if it
matters but I'm using 4.0.4 and had to install all the classes myself.  It
didn't come with Tomcat as it curently does in 4.1.

Neal


-Original Message-
From: Mike Jackson [mailto:mjackson@;cdi-hq.com]
Sent: Tuesday, October 29, 2002 3:44 PM
To: Tomcat Users List
Subject: RE: DBCP Woes!


I don't think anyone's actively working on it anymore, but it's rock solid
(tm).
At least with the way that I'm using it.

As for the JDBC thing, it looks like it's the underlying JDBC driver.  I
don't
know how DBCP works, but I'd imagine that it's not too different from
Poolman.
The point is that if there isn't a connection it's going to make a new one,
and
that error looks like that's probably where it's occuring.  The error looks
like
it can't find the hsql driver, something to do with the name lookup via
jndi.
But I'm not an expert on jndi, so I probably can't help you there.  If it
manages
to make connections fine up to a point then I'd look at a limit in the
database,
there could be something that'll only allow up to so many connections to be
created without closing the older ones.  But that's just a guess.

If you want to try out poolman I have the .tar.gz's for both the last beta
and
the last "release" version.  I'd be happy to email them to you if you wish.
And I could even through in an example config xml file (points at oracle).

--mikej
-=-
mike jackson
[EMAIL PROTECTED]

> -Original Message-
> From: neal [mailto:nealcabage@;yahoo.com]
> Sent: Tuesday, October 29, 2002 4:32 PM
> To: Tomcat Users List
> Subject: RE: DBCP Woes!
>
>
> I considered poolman but it doesn't look like its supported or even
> available from the website to download anymore.  Is this the case?  I have
> heard good things about it.
>
> Don't suppose you understand this JDBC conext binding error, do you?
>
> Thanks.
> Neal
>
>
> -Original Message-
> From: Mike Jackson [mailto:mjackson@;cdi-hq.com]
> Sent: Tuesday, October 29, 2002 3:25 PM
> To: Tomcat Users List
> Subject: RE: DBCP Woes!
>
>
> Poolman works nicely, I have little to no problems with it.  Then again
> I haven't used DBCP.  But you'd still have had the exhasted connections
> problem with poolman.
>
> --mikej
> -=-
> mike jackson
> [EMAIL PROTECTED]
>
> > -Original Message-
> > From: neal [mailto:nealcabage@;yahoo.com]
> > Sent: Tuesday, October 29, 2002 4:22 PM
> > To: Tomcat Users List
> > Subject: RE: DBCP Woes!
> >
> >
> > Now I have some other strange error related to accessing my
> > database.  Ever
> > since I started messing with thsi stuff my conneciton to my dB has been
> > flakey at best.  Sometimes it works ... sometimes it doesn't.
> >
> > javax.naming.NamingException: Exception creating DataSource:
> > org.hsql.jdbcDriver
> >
> > I don't even know where this class is defined or called!!!
> >
> > >:(
> >
> > Neal
> >
> >
> >
> >
> > Still having DBCP problems.
> >
> > I ensured that all my connections, statements, and resulset objects
> > are being properly released when using DBCP for connection pooling. I've
> > enabled recoverAbandoned. It seems that yes I did have some
> > connection pool
> > leaking,
> > but that has since been resolved.  But I still get this message
> > (along with
> > a
> > failure) from time to time.  Does anyone know why?
> >
> > javax.naming.NameNotFoundException: Name jdbc is not bound in
> this Context
> >
> > This is a different message than I was getting when I was
> having problems
> > with the DBCP pool being exhausted.
> >
> > Thanks!
> > Neal
> >
> >
> > --
> > To unsubscribe, e-mail:
> > 
> > For additional commands, e-mail:
> > 
> >
> >
> > --
> > To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 
>
>
>
> --
> To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 
>
>
> --
> To unsubscribe, e-mail:

For additional commands, e-mail:




--
To unsubscribe, e-mail:

For additional commands, e-mail:



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: DBCP Woes!

2002-10-29 Thread Mike Jackson
I don't think anyone's actively working on it anymore, but it's rock solid
(tm).
At least with the way that I'm using it.

As for the JDBC thing, it looks like it's the underlying JDBC driver.  I
don't
know how DBCP works, but I'd imagine that it's not too different from
Poolman.
The point is that if there isn't a connection it's going to make a new one,
and
that error looks like that's probably where it's occuring.  The error looks
like
it can't find the hsql driver, something to do with the name lookup via
jndi.
But I'm not an expert on jndi, so I probably can't help you there.  If it
manages
to make connections fine up to a point then I'd look at a limit in the
database,
there could be something that'll only allow up to so many connections to be
created without closing the older ones.  But that's just a guess.

If you want to try out poolman I have the .tar.gz's for both the last beta
and
the last "release" version.  I'd be happy to email them to you if you wish.
And I could even through in an example config xml file (points at oracle).

--mikej
-=-
mike jackson
[EMAIL PROTECTED]

> -Original Message-
> From: neal [mailto:nealcabage@;yahoo.com]
> Sent: Tuesday, October 29, 2002 4:32 PM
> To: Tomcat Users List
> Subject: RE: DBCP Woes!
>
>
> I considered poolman but it doesn't look like its supported or even
> available from the website to download anymore.  Is this the case?  I have
> heard good things about it.
>
> Don't suppose you understand this JDBC conext binding error, do you?
>
> Thanks.
> Neal
>
>
> -Original Message-
> From: Mike Jackson [mailto:mjackson@;cdi-hq.com]
> Sent: Tuesday, October 29, 2002 3:25 PM
> To: Tomcat Users List
> Subject: RE: DBCP Woes!
>
>
> Poolman works nicely, I have little to no problems with it.  Then again
> I haven't used DBCP.  But you'd still have had the exhasted connections
> problem with poolman.
>
> --mikej
> -=-
> mike jackson
> [EMAIL PROTECTED]
>
> > -Original Message-
> > From: neal [mailto:nealcabage@;yahoo.com]
> > Sent: Tuesday, October 29, 2002 4:22 PM
> > To: Tomcat Users List
> > Subject: RE: DBCP Woes!
> >
> >
> > Now I have some other strange error related to accessing my
> > database.  Ever
> > since I started messing with thsi stuff my conneciton to my dB has been
> > flakey at best.  Sometimes it works ... sometimes it doesn't.
> >
> > javax.naming.NamingException: Exception creating DataSource:
> > org.hsql.jdbcDriver
> >
> > I don't even know where this class is defined or called!!!
> >
> > >:(
> >
> > Neal
> >
> >
> >
> >
> > Still having DBCP problems.
> >
> > I ensured that all my connections, statements, and resulset objects
> > are being properly released when using DBCP for connection pooling. I've
> > enabled recoverAbandoned. It seems that yes I did have some
> > connection pool
> > leaking,
> > but that has since been resolved.  But I still get this message
> > (along with
> > a
> > failure) from time to time.  Does anyone know why?
> >
> > javax.naming.NameNotFoundException: Name jdbc is not bound in
> this Context
> >
> > This is a different message than I was getting when I was
> having problems
> > with the DBCP pool being exhausted.
> >
> > Thanks!
> > Neal
> >
> >
> > --
> > To unsubscribe, e-mail:
> > 
> > For additional commands, e-mail:
> > 
> >
> >
> > --
> > To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 
>
>
>
> --
> To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 
>
>
> --
> To unsubscribe, e-mail:

For additional commands, e-mail:




--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: DBCP Woes!

2002-10-29 Thread neal
I considered poolman but it doesn't look like its supported or even
available from the website to download anymore.  Is this the case?  I have
heard good things about it.

Don't suppose you understand this JDBC conext binding error, do you?

Thanks.
Neal


-Original Message-
From: Mike Jackson [mailto:mjackson@;cdi-hq.com]
Sent: Tuesday, October 29, 2002 3:25 PM
To: Tomcat Users List
Subject: RE: DBCP Woes!


Poolman works nicely, I have little to no problems with it.  Then again
I haven't used DBCP.  But you'd still have had the exhasted connections
problem with poolman.

--mikej
-=-
mike jackson
[EMAIL PROTECTED]

> -Original Message-
> From: neal [mailto:nealcabage@;yahoo.com]
> Sent: Tuesday, October 29, 2002 4:22 PM
> To: Tomcat Users List
> Subject: RE: DBCP Woes!
>
>
> Now I have some other strange error related to accessing my
> database.  Ever
> since I started messing with thsi stuff my conneciton to my dB has been
> flakey at best.  Sometimes it works ... sometimes it doesn't.
>
> javax.naming.NamingException: Exception creating DataSource:
> org.hsql.jdbcDriver
>
> I don't even know where this class is defined or called!!!
>
> >:(
>
> Neal
>
>
>
>
> Still having DBCP problems.
>
> I ensured that all my connections, statements, and resulset objects
> are being properly released when using DBCP for connection pooling. I've
> enabled recoverAbandoned. It seems that yes I did have some
> connection pool
> leaking,
> but that has since been resolved.  But I still get this message
> (along with
> a
> failure) from time to time.  Does anyone know why?
>
> javax.naming.NameNotFoundException: Name jdbc is not bound in this Context
>
> This is a different message than I was getting when I was having problems
> with the DBCP pool being exhausted.
>
> Thanks!
> Neal
>
>
> --
> To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 
>
>
> --
> To unsubscribe, e-mail:

For additional commands, e-mail:




--
To unsubscribe, e-mail:

For additional commands, e-mail:



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: coyote connector and SSL generates exception for every GET request - Tomcat 4.1.12

2002-10-29 Thread Sara Wilken
I found out about it by being the one that patched it. :)  I just forgot to
update the release notes afterwards.


- Original Message -
From: "HAVENS,PETER (HP-Cupertino,ex3)" <[EMAIL PROTECTED]>
To: "'Tomcat Users List'" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Monday, October 28, 2002 12:52 PM
Subject: RE: coyote connector and SSL generates exception for every GET
request - Tomcat 4.1.12


> Bill,
>
> I looked through the release notes for 4.1.13 and 4.1.12 and did not find
> any mention of this issue.  May ask how you found out about this and
whether
> it is documented or captured somewhere?
>
> Thanks,
>
> -Peter
>
> -Original Message-
> From: Bill Barker [mailto:res0ob23@;verizon.net]
> Sent: Friday, October 25, 2002 10:47 PM
> To: [EMAIL PROTECTED]
> Subject: Re: coyote connector and SSL generates exception for every GET
> request - Tomcat 4.1.12
>
> It's a normally harmless bug in 4.1.12 (it just takes up logfile space).
> Due to security reasons, the 4.1.12 release came out while the SSL support
> still had debugging statements left in the code.  If you want it to go
away,
> grab the tomcat-util.jar from the (unofficial) 4.1.13 release at
> http://jakarta.apache.org/builds/jakarta-tomcat-4.0/test/v4.1.13/bin/.  If
> you are not using a SecurityManager sandbox, then you could consider
> upgrading to 4.1.13 for everything.
>
> "HAVENS,PETER (HP-Cupertino,ex3)" <[EMAIL PROTECTED]> wrote in message
> news:8041C6C444CD5A49A64D8971B20E39AFE630AC@;xcup30.cup.hp.com...
> > Can someone help me understand why I am seeing these exceptions in my
> > Catalina.out.  I am running tomcat 4.1.12 and I have it configured to
use
> > coyote connector in my server.xml
> >
> >  Server.xml snippet --
> >  >port="280" minProcessors="5" maxProcessors="75"
> >enableLookups="false" redirectPort="5"
> >acceptCount="10" debug="0" connectionTimeout="6"/>
> >
> > 
> >  >port="5" minProcessors="5" maxProcessors="75"
> >enableLookups="false" acceptCount="10" debug="0"
> >scheme="https" secure="true">
> >> className="org.apache.coyote.tomcat4.CoyoteServerSocketFactory"
> >clientAuth="false" protocol="TLS"
> >keystoreFile="/etc/opt/mx/config/security/certificates"
> >keystorePass="changeit"
> >
> >  End Server.xml snippet --
> >
> > Here are the exceptions being generated and found in my Catalina.out for
> > every SSL GET request.
> >
> > --- Catalina.out snippet --
> > Oct 25, 2002 4:02:46 PM org.apache.coyote.http11.Http11Processor action
> > WARNING: Exception getting SSL attributes
> > javax.net.ssl.SSLPeerUnverifiedException: peer not authenticated
> >   at
> >
>
com.sun.net.ssl.internal.ssl.SSLSessionImpl.getPeerCertificateChain(DashoA62
> > 75)
> >   at
> >
>
org.apache.tomcat.util.net.JSSESupport.getPeerCertificateChain(JSSESupport.j
> > ava:118)
> >   at
> >
org.apache.coyote.http11.Http11Processor.action(Http11Processor.java:543)
> >   at org.apache.coyote.Response.action(Response.java:216)
> >   at
> >
>
org.apache.coyote.tomcat4.CoyoteAdapter.postParseRequest(CoyoteAdapter.java:
> > 314)
> >   at
> > org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:221)
> >   at
> >
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:405)
> >   at
> >
>
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConne
> > ction(Http11Protocol.java:380)
> >   at
> >
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:508)
> >   at
> >
>
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav
> > a:533)
> >   at java.lang.Thread.run(Thread.java:536)
> >
> > --- End Catalina.out snippet --
> >
> >
> > Thank you very much,
> >
> > -Peter
> >
>
>
>
>
>
> --
> To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




localization in Tomcat V4

2002-10-29 Thread Shyam Aramkuni
 Hi,
 Can we achive the localized web-resources by putting in a 
 filter?or is there an in built support for localization in Tomcat V4?
 Thanks
 Shyam




Re: Force One page to not use SSL

2002-10-29 Thread Nicholas Pappas
Why not break up your applet into two -  one applet on an HTTP page that just
handles the jar downloads?

"Rustad, Aaron" wrote:

> OK, let me explain the real problem then. What I really want to do is
> download a bunch of jars for an applet, however, doing this over HTTPS is
> driving my nuts!!! Can I somehow use HTTP to get the jars and still have the
> page that the applet resides in HTTPS?
>
> Thanks again!
> Aaron.
>
> -Original Message-
> From: Craig R. McClanahan [mailto:craigmcc@;apache.org]
> Sent: October 28, 2002 9:37 PM
> To: Tomcat Users List
> Subject: Re: Force One page to not use SSL
>
> On Mon, 28 Oct 2002, Rustad, Aaron wrote:
>
> > Date: Mon, 28 Oct 2002 17:48:40 -0700
> > From: "Rustad, Aaron" <[EMAIL PROTECTED]>
> > Reply-To: Tomcat Users List <[EMAIL PROTECTED]>
> > To: "'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]>
> > Subject: Force One page to not use SSL
> >
> > I am trying to force one page NOT to use HTTPS and still maintain the
> > session. I have looked in mailing list, and all I see is how you are not
> > supposed to do this. Well, I really...really...really need to do this and
> > yes, I understand that I shouldn't.
> >
> > So, if anyone knows how I can maintain the session that is given to my
> > client from HTTPS -> HTTP I would greatly appreciate it.
> >
>
> There is no support for this because it would be a huge security hole.
> For much discussion on this topic, check the mailing list archives.
>
> > Some background:
> >
> > 1. IIS as a front for Tomcat 4.0.1.
> > 2. Using AJP13
> >
> > Thanks!
> > Aaron.
>
> Craig
>
> --
> To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 
>
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 

--
Nicholas Pappas



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: DBCP Woes!

2002-10-29 Thread Mike Jackson
Poolman works nicely, I have little to no problems with it.  Then again
I haven't used DBCP.  But you'd still have had the exhasted connections
problem with poolman.

--mikej
-=-
mike jackson
[EMAIL PROTECTED]

> -Original Message-
> From: neal [mailto:nealcabage@;yahoo.com]
> Sent: Tuesday, October 29, 2002 4:22 PM
> To: Tomcat Users List
> Subject: RE: DBCP Woes!
>
>
> Now I have some other strange error related to accessing my
> database.  Ever
> since I started messing with thsi stuff my conneciton to my dB has been
> flakey at best.  Sometimes it works ... sometimes it doesn't.
>
> javax.naming.NamingException: Exception creating DataSource:
> org.hsql.jdbcDriver
>
> I don't even know where this class is defined or called!!!
>
> >:(
>
> Neal
>
>
>
>
> Still having DBCP problems.
>
> I ensured that all my connections, statements, and resulset objects
> are being properly released when using DBCP for connection pooling. I've
> enabled recoverAbandoned. It seems that yes I did have some
> connection pool
> leaking,
> but that has since been resolved.  But I still get this message
> (along with
> a
> failure) from time to time.  Does anyone know why?
>
> javax.naming.NameNotFoundException: Name jdbc is not bound in this Context
>
> This is a different message than I was getting when I was having problems
> with the DBCP pool being exhausted.
>
> Thanks!
> Neal
>
>
> --
> To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 
>
>
> --
> To unsubscribe, e-mail:

For additional commands, e-mail:




--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: mod_jk + tomcat on Solaris 8 ( about Turner's HOWTO )

2002-10-29 Thread MURAT BALKAS

My mod_jk.so is at the default location with other modules :
/usr/apache/libexec/mod_jk.so

All of my configuration files are attached with comments. If I go over them
I realised that I'm really confused about

a) ports ( Should both of them bind to same port? How? )
  Now, my apache listens on port 80 and my tomcat listens on port 443.
Is it right? When I start tomcat I start an engine on port 443.
b) virtualhosts
  On server.xml and workers.properties I've defined only localhost. But
on httpd.conf although my ServerName is localhost I've defined another
VirtualHost. Is it right?

Please help me. I'm really confused.

Murat BALKAS

My server.xml file : ( related lines )
--
...
...


...
...



  

...
...


...
...


...
...


 
...
...


...
...

My workers.properties file :
-

# BEGIN workers.properties
#
# Setup for apache system
#
# (optional) make this equal to CATALINA_HOME
workers.tomcat_home=/usr/local/jakarta-tomcat-4.0.4
#
# (optional) make this equal to JAVA_HOME
workers.java_home=/usr/j2se
#
ps=/
worker.list=ajp13

# Definition for Ajp13 worker
#
worker.ajp13.port=8009

# change this line to match apache ServerName and Host name in server.xml
worker.ajp13.host=localhost

worker.ajp13.type=ajp13
#
# END workers.properties

My httpd.conf ( related lines ) :
--
...
...
ServerType standalone
...
...
# Bind on port 80, leave 443 for tomcat
Port 80
...
...
# Listen only on 80 not 443

Listen 80
# Listen 443

...
...
# ServerName same as server.xml host directive
ServerName localhost
...
...
# I don't know why a virtualhost listening on 443 

...
...
# include mod_jk.conf
Include /usr/local/jakarta-tomcat-4.0.4/conf/auto/mod_jk.conf
...
...
# another virtualhost. I'm really confused.

ServerAdmin [EMAIL PROTECTED]
DocumentRoot /usr/local/myapprootdir/mydir
ServerName test.x.net.tr


My mod_jk.conf :


## Auto generated on Tue Oct 29 12:19:47 EET 2002##


  LoadModule jk_module libexec/mod_jk.so


JkWorkersFile "/usr/local/jakarta-tomcat-4.0.4/conf/jk/workers.properties"
JkLogFile "/usr/local/jakarta-tomcat-4.0.4/logs/mod_jk.log"

JkLogLevel debug


ServerName localhost

 localhost:/EasyBridge 

# Static files
Alias /EasyBridge "/usr/local/jakarta-tomcat-4.0.4/webapps/EasyBridge"


Options Indexes FollowSymLinks
DirectoryIndex index.html index.htm index.jsp



# Deny direct access to WEB-INF and META-INF
#

AllowOverride None
deny from all



AllowOverride None
deny from all


JkMount /EasyBridge/jsp/security/login/j_security_check  ajp13
JkMount /EasyBridge/snoop  ajp13
JkMount /EasyBridge/*.snp  ajp13
JkMount /EasyBridge/*.jsp  ajp13
JkMount /EasyBridge/servlet/*  ajp13
JkMount /EasyBridge/servletToJsp  ajp13

 localhost:/examples 

# Static files
Alias /examples "/usr/local/jakarta-tomcat-4.0.4/webapps/examples"

   
Options Indexes FollowSymLinks
DirectoryIndex index.html index.htm index.jsp



# Deny direct access to WEB-INF and META-INF
#

AllowOverride None
deny from all



AllowOverride None
deny from all


JkMount /examples/jsp/security/protected/j_security_check  ajp13
JkMount /examples/snoop  ajp13
JkMount /examples/CompressionTest  ajp13
JkMount /examples/*.jsp  ajp13
JkMount /examples/servlet/*  ajp13
JkMount /examples/servletToJsp  ajp13
JkMount /examples/SendMailServlet  ajp13

 localhost:/webdav 

# Static files
Alias /webdav "/usr/local/jakarta-tomcat-4.0.4/webapps/webdav"


Options Indexes FollowSymLinks
DirectoryIndex index.jsp index.html index.htm


# Deny direct access to WEB-INF and META-INF
   
AllowOverride None
deny from all



AllowOverride None
deny from all


JkMount /webdav/*.jsp  ajp13
JkMount /webdav/servlet/*  ajp13

 localhost:/tomcat-docs 

# Static files
Alias /tomcat-docs
"/usr/local/jakarta-tomcat-4.0.4/webapps/tomcat-docs"


Options Indexes FollowSymLinks
DirectoryIndex index.html index.htm index.jsp



# Deny direct access to WEB-INF and META-INF
#

AllowOverride None
deny from all



AllowOverride None
deny from all


JkMount /tomcat-docs/*.jsp  ajp13
JkMount /tomcat-docs/servlet/*  ajp13

 localhost:/manager 

# Static files
Alias /manager "/usr/local/jakarta-tomcat-4.0.4/webapps/manager"


Options Indexes FollowSymLinks
DirectoryIndex index.html index.htm index.jsp

   # Deny direct access to W

RE: DBCP Woes!

2002-10-29 Thread neal
Now I have some other strange error related to accessing my database.  Ever
since I started messing with thsi stuff my conneciton to my dB has been
flakey at best.  Sometimes it works ... sometimes it doesn't.

javax.naming.NamingException: Exception creating DataSource:
org.hsql.jdbcDriver

I don't even know where this class is defined or called!!!

>:(

Neal




Still having DBCP problems.

I ensured that all my connections, statements, and resulset objects
are being properly released when using DBCP for connection pooling. I've
enabled recoverAbandoned. It seems that yes I did have some connection pool
leaking,
but that has since been resolved.  But I still get this message (along with
a
failure) from time to time.  Does anyone know why?

javax.naming.NameNotFoundException: Name jdbc is not bound in this Context

This is a different message than I was getting when I was having problems
with the DBCP pool being exhausted.

Thanks!
Neal


--
To unsubscribe, e-mail:

For additional commands, e-mail:



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: DBCP Woes!

2002-10-29 Thread neal
Still having DBCP problems.

I ensured that all my connections, statements, and resulset objects
are being properly released when using DBCP for connection pooling. I've
enabled recoverAbandoned. It seems that yes I did have some connection pool
leaking,
but that has since been resolved.  But I still get this message (along with
a
failure) from time to time.  Does anyone know why?

javax.naming.NameNotFoundException: Name jdbc is not bound in this Context

This is a different message than I was getting when I was having problems
with the DBCP pool being exhausted.

Thanks!
Neal


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Tomcat 4.1 memory leak with Coyote connectors

2002-10-29 Thread Iain Sanderson
Hi,

Has anyone else seen a memory leak using Tomcat 4.1/JDK 1.4.1  and a Struts
web application?  I was using the Coyote Http 1.1 connectors on port 8080
and 443 ( for  SSL) in Server XML, and found my web app died after 24 hours
or so with an OutOfMemoryException.  I suspected a memory leak and thought
my code was suspect for loitering objects, so I downloaded JProbe from
Sitraka. JProbe MemoryDebugger showed a memory leak of about 1K/second, but
this started even on the initial load of my most basic (start)  webpage,
without any logic yet initiated. There was no eveidence any of my code was
causing loitering objects that wasn't cleaned with java's garbage
collection.  I eventially found an accumulation of java.net.* objects and
socketTimeoutException objects that corresponded to the  memory leak. It
was fixed by changing from the Coyote Connectors in  server.xml  ( which I
din't change) to the legacy Http connectors. I found a similar problem
posted for Tomcat 3.x about a year ago, again mentioning the Coyote
connectors. Has anyone else seen this problem and is this a bug?



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Is CLASSPATH ignored ?

2002-10-29 Thread Craig R. McClanahan


On Tue, 29 Oct 2002, Sinclair, Alan  (CORP, GEAccess) wrote:

> Date: Tue, 29 Oct 2002 13:01:06 -0700
> From: "Sinclair, Alan  (CORP, GEAccess)" <[EMAIL PROTECTED]>
> Reply-To: Tomcat Users List <[EMAIL PROTECTED]>
> To: "Tomcat Users List (E-mail)" <[EMAIL PROTECTED]>
> Subject: Is CLASSPATH ignored ?
>
> All,
>
> Does the UNIX Tomcat implementation ignore the CLASSPATH environment
> variable ?
>

Yes.

> For example, in order to make DBCP pooling work, I placed the Oracle JAR
> file in $CATALINA_HOME/common/lib  Does this mean that all application JAR
> files must be installed in ../common/lib ?
>

http://jakarta.apache.org/tomcat/tomcat-4.1-doc/class-loader-howto.html

> Thanks

Craig


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Tomcat gives servlets thru Apache but only for localhost

2002-10-29 Thread Whyatt, Marie V
Apologies if I haven't found this answered in the archives...

>From the same system Apache and Tomcat are running on (toucan), I can see
Tomcat's HelloWorldExample servlet if I use either of the URLs:

  http://localhost/examples/servlets/HelloWorldExample or
  http://toucan/examples/servlets/HelloWorldExample

But I get a "404 Not Found" if I use the full host URL (toucan.pnl.gov) or
IP address, or if I try from a browser on another computer.

I'm guessing I only have Tomcat configured to work in standalone mode
because I see "localhost" specified in Tomcat's server.xml, in the
auto-generated mod_jk.conf file, and in jk/workers.properties; and so I'm
thinking I must add configuration information for non-standalone -- the
trouble is reading the Tomcat documentation and experimenting with
server.xml configurations have gotten me nowhere.

I'm using Apache's httpd.conf with only minimal modifications and I'm
suspicious I may need to add more to it than the command to Include the
auto-generated mod_jk.conf file -- perhaps "AddModule libexec/mod_jk.so"?
Do I also have to define a virtual host for Tomcat to talk to?

Any guidance is greatly appreciated,
- Marie

([EMAIL PROTECTED])



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: JAR Files needed

2002-10-29 Thread Garrett Smith

Add servlet.jar to your classpath:
CATALINA_HOME/common/lib/servlet.jar

You do this with an Ant task if you're using Ant.

Garrett

--- Julius Davies <[EMAIL PROTECTED]> wrote:
> 
> Brian Brookwell,
> 
> Officially, you need J2EE (Java 2, Enterprise Edition).  Go to
> http://java.sun.com to download it.  After installing J2EE you'll find a jar
> file called "j2ee.jar" which contains everything you need to compile
> servlets.
> 
> Personally, I just dip into $TOMCAT/common/lib and use the jar files in
> there.  For my own web applications I tend to need "servlet.jar",
> "activation.jar" and "mail.jar".  These are just subsets of "j2ee.jar".
> 
> yours,
> 
> Julius Davies, Programmer, CUCBC
> Email: [EMAIL PROTECTED], Ph: 604.730.6385
> 
> 
> 
> 
> > -Original Message-
> > From: Brookwell Brookwell [mailto:BrookwellB@;MacEwan.ca]
> > Sent: Tuesday, October 29, 2002 10:17 AM
> > To: [EMAIL PROTECTED]
> > Subject: JAR Files needed
> > 
> > 
> > This is the first time I've tried getting a servlet running 
> > under Linux.  We're using TOmcat and I'd like to know what 
> > JAR files are needed tocompile the servlet.
> > 
> > Brian Brookwell
> > 
> > 
> > --
> > To unsubscribe, e-mail:   
> > 
> > For additional commands, e-mail: 
> > 
> > 
> > 
> 
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 
> 


=
http://dhtmlkitchen.com/
JSP | Servlets | DHTML 

Garrett Needs A Job

__
Do you Yahoo!?
HotJobs - Search new jobs daily now
http://hotjobs.yahoo.com/

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: mod_jk + tomcat on Solaris 8 ( about Turner's HOWTO )

2002-10-29 Thread Tref Gare
Where is your mod_jk.so installed?

And secondly what does your mod_jk.conf look like
(CATALINA_HOME/conf/auto/mod_jk.conf)

I'd say between those two we'll find the culprit.

cheers

--
Tref Gare
Development Consultant
Areeba
Level 19/114 William St, Melbourne VIC 3000
email: [EMAIL PROTECTED]
phone: +61 3 9642 5553
fax: +61 3 9642 1335
website: http://www.areeba.com.au
--
"This email is intended only for the use of the individual or entity
named above and contains information that is confidential. No
confidentiality is waived or lost by any mis-transmission. If you
received this correspondence in error, please notify the sender and
immediately delete it from your system. You must not disclose, copy or
rely on any part of this correspondence if you are not the intended
recipient. Any communication directed to clients via this message is
subject to our Agreement and relevant Project Schedule. Any information
that is transmitted via email which may offend may have been sent
without knowledge or the consent of Areeba."
--

-Original Message-
From: MURAT BALKAS [mailto:murat.balkas@;o2.net.tr] 
Sent: Tuesday, 29 October 2002 9:28 PM
To: Tomcat Users List
Subject: RE: mod_jk + tomcat on Solaris 8 ( about Turner's HOWTO )


Thanks. I've downloaded it from the link below, and followed the other
instructions.

When I start tomcat I get :

mod_jk location: libexec/mod_jk.so
Make sure it is installed corectly or  set the config location
Using 

And If I try to open examples directory I get :

[Tue Oct 29 12:15:11 2002]  [jk_uri_worker_map.c (477)]: Attempting to
map
URI '/examples/jsp/num/numguess.jsp'
[Tue Oct 29 12:15:11 2002]  [jk_uri_worker_map.c (599)]:
jk_uri_worker_map_t::map_uri_to_worker, done without a match

INFO : I've used localhost on tomcat's Host directive, apache's
ServerName
and worker.ajp13.host.

  What's the problem?

Murat



 

  "Turner, John"

  <[EMAIL PROTECTED]>To:   'Tomcat Users
List' <[EMAIL PROTECTED]>  
   cc:

  10/28/2002 10:08 Subject:  RE: mod_jk +
tomcat on Solaris 8 ( about Turner's HOWTO ) 
  PM

  Please respond to

  "Tomcat Users

  List"

 

 






There's no need to build the connectors from source unless you want to.

You can get Solaris 8 JK binaries here:

http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk/release/v1
.2.0

/bin/solaris8/

There aren't any JK2 binaries yet, but I'm sure someone on the list has
them.

John

> -Original Message-
> From: MURAT BALKAS [mailto:murat.balkas@;o2.net.tr]
> Sent: Monday, October 28, 2002 2:30 PM
> To: Tomcat Users List
> Subject: Re: mod_jk + tomcat on Solaris 8 ( about Turner's HOWTO )
>
>
>
> MORE INFO :
>
>   after realising that I will not be able to find the file
> Makefile.linux I tried the second method which is traditional
> configure
> method. But, after installing every required package and running
> ./buildconf.sh I get :
>
> libtoolize --force --automake --copy
> aclocal
> automake -a --foreign -i --copy
> autom4te: need GNU m4 1.4 or later: /usr/ccs/bin/m4
> configure.in: `AM_INIT_AUTOMAKE' must be used
> automake: your implementation of AM_INIT_AUTOMAKE comes from an
> automake: old Automake version.  You should recreate aclocal.m4
> automake: with aclocal and run automake again.
> configure.in: installing `./install-sh'
> configure.in: installing `./mkinstalldirs'
> configure.in: installing `./missing'
> automake: no `Makefile.am' found or specified
> autoconf
> autom4te: need GNU m4 1.4 or later: /usr/ccs/bin/m4
>
>   I get /usr/local/bin/m4 when I do 'which m4' but I can
> not force my
> system to use /usr/local/bin/m4.
>
> Murat BALKAS
>
>
>
>
>
>
>   "MURAT BALKAS"
>
>
>"Tomcat Users List" <[EMAIL PROTECTED]>
>
>   net.tr>  cc:
>
>
>Subject:
> mod_jk + tomcat on Solaris 8 ( about Turner's HOWTO )
>
>   10/28/2002 08:22
>
>
>   PM
>
>
>   Please respond to
>
>
>   "Tomcat Users
>
>
>   List"
>
>
>
>
>
>
>
>
>
>
>
>
>
> Hi,
>
>   I've read your HOWTO and followed the instructions.
> Until the item
> "f" I didn't have any difficulty. But, on the time f I couldn't find
> Makefile.linux to change it to suite for my system.
>
>   Did I forget anything?
>
>   Thanks for the HOWTO. It's what I was looking for.
>
> Murat
>
>
>
>
>   "Turner, John"
>
>   <[EMAIL PROTECTED]>To:   'Tomcat Users
> Li

RE: Admin/Manager problems

2002-10-29 Thread Srinadh Karumuri
I am not sure if you already figured it out or not. Same thing happened to 
me and after doing a 'ps | grep java' I found out that my 'stop' script 
couldn't shutdown for some reason. I killed this java process in limbo and 
restarted tomcat and everything is working ok.

Sri

At 05:25 PM 10/21/2002, James D. Whittington wrote:
Yes I restarted the server after the changes and still the same thing.
"Access has been Denied" Its starting to give me some kind of mental
disorder.

James Whittington


-Original Message-
From: Cox, Charlie [mailto:ccox@;cincom.com]
Sent: Monday, October 21, 2002 7:47 AM
To: 'Tomcat Users List'
Subject: RE: Admin/Manager problems


did you restart tomcat after changing tomcat-users file?

> -Original Message-
> From: James D. Whittington [mailto:jim@;whittington.com]
> Sent: Sunday, October 20, 2002 10:34 AM
> To: [EMAIL PROTECTED]
> Subject: Admin/Manager problems
>
>
> Ok here it goes... I am a real newbie to java and tomcat, so
> please forgive
> my ignorance.
>
> I have tomcat 4.1.12 installed on a Mandrake 9.0 machine
> using the java sdk
> version 1.4.1.01. Everything seems to be running ok, tomcat
> starts and stops
> with out errors. I can access the tomcat server page on port
> 8080, but when
> I try to access the admin or the manager pages. When I try
> the password is
> not accepted. I have checked and modified the
> tomcat4-users.xml to no avail.
>
> When I try the admin page I enter the user name tomcat and
> the same for the
> password, I get this back.
> HTTP Status 403 - Access to the requested resource has been denied
>
> --
> --
> 
>
> type Status report
>
> message Access to the requested resource has been denied
>
> description Access to the specified resource (Access to the requested
> resource has been denied) has been forbidden.
>
>
> --
> --
> 
>
> Apache Tomcat/4.1
>
> I have tried several variations, creating new users that are
> the same as
> local users on this box. I have looked for more information
> but I haven't
> had any luck.
>
> Can someone point me in the right direction?
>
> James Whittington
>
>
>
> --
> To unsubscribe, e-mail:

For additional commands, e-mail:


--
To unsubscribe, e-mail:

For additional commands, e-mail:





--
To unsubscribe, e-mail:   
For additional commands, e-mail: 



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: JAR Files needed

2002-10-29 Thread Julius Davies

Brian Brookwell,

Officially, you need J2EE (Java 2, Enterprise Edition).  Go to http://java.sun.com to 
download it.  After installing J2EE you'll find a jar file called "j2ee.jar" which 
contains everything you need to compile servlets.

Personally, I just dip into $TOMCAT/common/lib and use the jar files in there.  For my 
own web applications I tend to need "servlet.jar", "activation.jar" and "mail.jar".  
These are just subsets of "j2ee.jar".

yours,

Julius Davies, Programmer, CUCBC
Email: [EMAIL PROTECTED], Ph: 604.730.6385




> -Original Message-
> From: Brookwell Brookwell [mailto:BrookwellB@;MacEwan.ca]
> Sent: Tuesday, October 29, 2002 10:17 AM
> To: [EMAIL PROTECTED]
> Subject: JAR Files needed
> 
> 
> This is the first time I've tried getting a servlet running 
> under Linux.  We're using TOmcat and I'd like to know what 
> JAR files are needed tocompile the servlet.
> 
> Brian Brookwell
> 
> 
> --
> To unsubscribe, e-mail:   
> 
> For additional commands, e-mail: 
> 
> 
> 

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Is CLASSPATH ignored ?

2002-10-29 Thread Sinclair, Alan (CORP, GEAccess)
Okay, thanks

-Original Message-
From: Cox, Charlie [mailto:ccox@;cincom.com]
Sent: Tuesday, October 29, 2002 1:13 PM
To: 'Tomcat Users List'
Subject: RE: Is CLASSPATH ignored ?


yes, classpath is ignored.

you must put them in /WEB-INF/lib for each application or in /common/lib if
you want to share them between apps. database jars need to be in /common/lib
to be visible to tomcat's classes and also your webapps.

Charlie

> -Original Message-
> From: Sinclair, Alan (CORP, GEAccess)
> [mailto:alan.sinclair@;geaccess.com]
> Sent: Tuesday, October 29, 2002 3:01 PM
> To: Tomcat Users List (E-mail)
> Subject: Is CLASSPATH ignored ?
> 
> 
> All,
> 
> Does the UNIX Tomcat implementation ignore the CLASSPATH environment
> variable ?
> 
> For example, in order to make DBCP pooling work, I placed the 
> Oracle JAR
> file in $CATALINA_HOME/common/lib  Does this mean that all 
> application JAR
> files must be installed in ../common/lib ?
> 
> Thanks
> 
> --
> To unsubscribe, e-mail:   
> 
> For additional commands, e-mail: 
> 
> 

--
To unsubscribe, e-mail:

For additional commands, e-mail:


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: about tail

2002-10-29 Thread Robert L Sowders
If you are using tail from cygwin it would be "tail -f name_of_file".

The windows program has a GUI to work from.

rls





Peng Annie <[EMAIL PROTECTED]>
10/29/2002 02:40 AM
Please respond to "Tomcat Users List"

 
To: 'Tomcat Users List' <[EMAIL PROTECTED]>
cc: 
Subject:about tail


Hi Robert,

another question: how to configure tail? I can not see any thing in the 
dos
window

Annie

-Original Message-
From: Robert L Sowders [mailto:rsowders@;usgs.gov]
Sent: 29 October 2002 12:02
To: Tomcat Users List
Subject: RE: where to set CATALINA_OPTS?


EEk, corba,

Not sure if those will work with JSDK 1.3.1.  But I know less than most 
about corba.  Perhaps someone else would be better suited.

Have you tried setting them in the [vm] section of the workers2.properties 

file?  These look like you're going to need a class path also.  You have 
so many you might want to go ahead and set them as a system variable.  I 
still think your going to need at least one class path to point to all 
that stuff.

rls





Peng Annie <[EMAIL PROTECTED]>
10/29/2002 01:08 AM
Please respond to "Tomcat Users List"

 
To: 'Tomcat Users List' <[EMAIL PROTECTED]>
cc: 
Subject:RE: where to set CATALINA_OPTS?


I want to set

CATALINA_OPTS= -Dorg.omg.CORBA.ORBClass=com.inprise.vbroker.orb.ORB ^
-Dorg.omg.CORBA.ORBSingletonClass=com.inprise.vbroker.orb.ORBSingleton ^
-Djavax.rmi.CORBA.StubClass=com.inprise.vbroker.rmi.CORBA.StubImpl ^
-Djavax.rmi.CORBA.UtilClass=com.inprise.vbroker.rmi.CORBA.UtilImpl ^
-Djavax.rmi.CORBA.PortableRemoteObjectClass=com.inprise.vbroker.rmi.CORBA.Po
rtableRemoteObjectImpl ^
-Dvbroker.agent.enableLocator=false ^
-DORBInitRef=NameService=corbaloc::localhost:/NameService



-Original Message-
From: Robert L Sowders [mailto:rsowders@;usgs.gov]
Sent: 29 October 2002 11:04
To: Tomcat Users List
Subject: RE: where to set CATALINA_OPTS?


What OPTs do you want to set?

rls





Peng Annie <[EMAIL PROTECTED]>
10/29/2002 12:27 AM
Please respond to "Tomcat Users List"

 
To: 'Tomcat Users List' <[EMAIL PROTECTED]>
cc: 
Subject:RE: where to set CATALINA_OPTS?


Hi everyone,

Thanks for help. I am using Win2k, JK2, Apache2, and TC4. I have tried 
every
way you recommended. Setting CATALINA_OPTS in system environment variable,
or setting it in worker2.properties, or setting it in catalina.bat in
$CATALINA_HOME/bin. All failed. One thing came to my mind. I am using
JSDK1.3, not 1.4, Does it matter? Is CATALINA_OPTS recognizable by JVM
residing in JSDK1.3?

Best Regards,

Annie

-Original Message-
From: Bill Barker [mailto:wbarker@;wilshire.com]
Sent: 29 October 2002 09:14
To: [EMAIL PROTECTED]
Subject: Re: where to set CATALINA_OPTS?


You can create a script file "$CATALINA_HOME/bin/setenv.sh".  If you set 
the
CATALINA_OPTS variable in this script, it will be picked up by the main
startup script.

"Peng Annie" <[EMAIL PROTECTED]> wrote in message
news:012172501CC5D411A9D100D0B72073AA02105FE6@;kcobe4.nt.kone.com...
> Hi there,
>
> I have Apache2 running as service, tomcat4 is invoked by JK. Where can I
set
> variable CATALINA_OPTS? should I set it in system environment variable?
>
> BR,
>
> Annie
>





--
To unsubscribe, e-mail:

For additional commands, e-mail:





--
To unsubscribe, e-mail:

For additional commands, e-mail:





--
To unsubscribe, e-mail:

For additional commands, e-mail:





--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: about tail

2002-10-29 Thread Robert L Sowders
You must always provide the information that I cannot see.

What version of tail did you get?  CYG-WIN, or the windows program?

rls






Peng Annie <[EMAIL PROTECTED]>
10/29/2002 02:40 AM
Please respond to "Tomcat Users List"

 
To: 'Tomcat Users List' <[EMAIL PROTECTED]>
cc: 
Subject:about tail


Hi Robert,

another question: how to configure tail? I can not see any thing in the 
dos
window

Annie

-Original Message-
From: Robert L Sowders [mailto:rsowders@;usgs.gov]
Sent: 29 October 2002 12:02
To: Tomcat Users List
Subject: RE: where to set CATALINA_OPTS?


EEk, corba,

Not sure if those will work with JSDK 1.3.1.  But I know less than most 
about corba.  Perhaps someone else would be better suited.

Have you tried setting them in the [vm] section of the workers2.properties 

file?  These look like you're going to need a class path also.  You have 
so many you might want to go ahead and set them as a system variable.  I 
still think your going to need at least one class path to point to all 
that stuff.

rls





Peng Annie <[EMAIL PROTECTED]>
10/29/2002 01:08 AM
Please respond to "Tomcat Users List"

 
To: 'Tomcat Users List' <[EMAIL PROTECTED]>
cc: 
Subject:RE: where to set CATALINA_OPTS?


I want to set

CATALINA_OPTS= -Dorg.omg.CORBA.ORBClass=com.inprise.vbroker.orb.ORB ^
-Dorg.omg.CORBA.ORBSingletonClass=com.inprise.vbroker.orb.ORBSingleton ^
-Djavax.rmi.CORBA.StubClass=com.inprise.vbroker.rmi.CORBA.StubImpl ^
-Djavax.rmi.CORBA.UtilClass=com.inprise.vbroker.rmi.CORBA.UtilImpl ^
-Djavax.rmi.CORBA.PortableRemoteObjectClass=com.inprise.vbroker.rmi.CORBA.Po
rtableRemoteObjectImpl ^
-Dvbroker.agent.enableLocator=false ^
-DORBInitRef=NameService=corbaloc::localhost:/NameService



-Original Message-
From: Robert L Sowders [mailto:rsowders@;usgs.gov]
Sent: 29 October 2002 11:04
To: Tomcat Users List
Subject: RE: where to set CATALINA_OPTS?


What OPTs do you want to set?

rls





Peng Annie <[EMAIL PROTECTED]>
10/29/2002 12:27 AM
Please respond to "Tomcat Users List"

 
To: 'Tomcat Users List' <[EMAIL PROTECTED]>
cc: 
Subject:RE: where to set CATALINA_OPTS?


Hi everyone,

Thanks for help. I am using Win2k, JK2, Apache2, and TC4. I have tried 
every
way you recommended. Setting CATALINA_OPTS in system environment variable,
or setting it in worker2.properties, or setting it in catalina.bat in
$CATALINA_HOME/bin. All failed. One thing came to my mind. I am using
JSDK1.3, not 1.4, Does it matter? Is CATALINA_OPTS recognizable by JVM
residing in JSDK1.3?

Best Regards,

Annie

-Original Message-
From: Bill Barker [mailto:wbarker@;wilshire.com]
Sent: 29 October 2002 09:14
To: [EMAIL PROTECTED]
Subject: Re: where to set CATALINA_OPTS?


You can create a script file "$CATALINA_HOME/bin/setenv.sh".  If you set 
the
CATALINA_OPTS variable in this script, it will be picked up by the main
startup script.

"Peng Annie" <[EMAIL PROTECTED]> wrote in message
news:012172501CC5D411A9D100D0B72073AA02105FE6@;kcobe4.nt.kone.com...
> Hi there,
>
> I have Apache2 running as service, tomcat4 is invoked by JK. Where can I
set
> variable CATALINA_OPTS? should I set it in system environment variable?
>
> BR,
>
> Annie
>





--
To unsubscribe, e-mail:

For additional commands, e-mail:





--
To unsubscribe, e-mail:

For additional commands, e-mail:





--
To unsubscribe, e-mail:

For additional commands, e-mail:





--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Is CLASSPATH ignored ?

2002-10-29 Thread Cox, Charlie
yes, classpath is ignored.

you must put them in /WEB-INF/lib for each application or in /common/lib if
you want to share them between apps. database jars need to be in /common/lib
to be visible to tomcat's classes and also your webapps.

Charlie

> -Original Message-
> From: Sinclair, Alan (CORP, GEAccess)
> [mailto:alan.sinclair@;geaccess.com]
> Sent: Tuesday, October 29, 2002 3:01 PM
> To: Tomcat Users List (E-mail)
> Subject: Is CLASSPATH ignored ?
> 
> 
> All,
> 
> Does the UNIX Tomcat implementation ignore the CLASSPATH environment
> variable ?
> 
> For example, in order to make DBCP pooling work, I placed the 
> Oracle JAR
> file in $CATALINA_HOME/common/lib  Does this mean that all 
> application JAR
> files must be installed in ../common/lib ?
> 
> Thanks
> 
> --
> To unsubscribe, e-mail:   
> 
> For additional commands, e-mail: 
> 
> 

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Is CLASSPATH ignored ?

2002-10-29 Thread Sinclair, Alan (CORP, GEAccess)
All,

Does the UNIX Tomcat implementation ignore the CLASSPATH environment
variable ?

For example, in order to make DBCP pooling work, I placed the Oracle JAR
file in $CATALINA_HOME/common/lib  Does this mean that all application JAR
files must be installed in ../common/lib ?

Thanks

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Error when attempting to start Tomcat 4.1.12 on NT system runningJDK 1.2.2

2002-10-29 Thread Robert Christenson
All,

Thanks to Gunter D'Hondt, I've set an environment variable called 
JAVA_COMPILER to the value NONE and now Tomcat 4.1.12 starts up 
correctly using jdk1.2.2.

Question, does anybody know if this would adversely affect compilation 
of JSPs etc.?

And, where is this documented?  I looked in the RUNNING.txt file and 
there's no mention of it.  Is this an oversite.  Can we get it added to 
the RUNNING.txt?


Thanks for your time.

-Robert

Robert Christenson wrote:


Hello All,

I'm receiving an error when attempting to start my tomcat container.

D:\jakarta-tomcat-4.1.12\bin>catalina run
Using CATALINA_BASE:   d:\jakarta-tomcat-4.1.12
Using CATALINA_HOME:   d:\jakarta-tomcat-4.1.12
Using CATALINA_TMPDIR: d:\jakarta-tomcat-4.1.12\temp
Using JAVA_HOME:   d:\java\jdk1.2.2
Bootstrap: Class loader creation threw exception
java.lang.IllegalMonitorStateException: current thread not owner
  at 
org.apache.catalina.loader.StandardClassLoader.addRepositoryInternal(StandardClassLoader.java, 
Compiled Code)

  at 
org.apache.catalina.loader.StandardClassLoader.(StandardClassLoader.java, 
Compiled Code)
  at 
org.apache.catalina.startup.ClassLoaderFactory.createClassLoader(ClassLoaderFactory.java, 
Compiled Code)
  at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java, 
Compiled Code)

D:\jakarta-tomcat-4.1.12\bin>

Can anyone direct me to what the problem may be?  According to the 
download area for Tomcat 4.1.12, it runs on JDK1.2+

By the way, it does run when I set my JDK to JDK1.3.1.  But for 
specific reasons, I need to run JDK 1.2.2

Thanks for any help,

-Robert Christenson





--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: MOD_JK.SO

2002-10-29 Thread Ben Ricker
On Tue, 2002-10-29 at 12:22, [EMAIL PROTECTED] wrote:
> 
> 
> according to this :
> 
> http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/connectors.html
> 
> i should need mod_jk2 and not mod_jk (well, mod_jk may also work, but
> hey,..) - and its enabled by default on the appserver im using..

I use the mod_jk version for stability reasons: mod_jk2 is rather new,
so I would rather use the mostly "tried-and-true" mod_jk 1.x. That is my
personal opinion, though. Others use mod_jk2 without any problems.
 
> If by any chance i am right, can someone tell me why I cant find a humble
> link to download the file ?  maybe jakarta are having webserver problems.

Try http://jakarta.apache.org/builds/jakarta-tomcat-connectors/ for
connetor downloads, or go to John Turner's wonderful page:
http://www.johnturner.com/howto/apache-tomcat-howto.html.

Ben Ricker
Wellinx.com


 
> I quote from the site :
> 
> 
> 
> (Do not hesitate to ask for the binary needed for your platform to  
> the Tomcat mail lists, but be patient). 
> 
> 
> 
> 
> so here goes : im using linux - can i have this file - please..
> 
> thanks 4 reading this far.
> 
> Mehdi
> 
> 
> 
> 
> 
> 
> 
>  
>   
>   Mehdi.Nejad@bluew  
>   
>   ave.com  To:   "Tomcat Users List" 
><[EMAIL PROTECTED]>   
>cc:   
>   
>   29/10/2002 18:02 Subject:  MOD_JK.SO   
>   
>   Please respond to  
>   
>   "Tomcat Users  
>   
>   List"  
>   
>  
>   
>  
>   
> 
> 
> 
> 
> 
> Hi,
> 
> We are trying to get Tomcat 4.1.12 and Apache 1 3 26 working together using
> mod_jk.so.
> 
> We are receiving the followitng error :
> 
> Starting httpd: Syntax error on line 224 of /etc/httpd/conf/httpd.conf:
> Cannot load /usr/local/apache/libexec/mod_jk.so into server:
> /usr/local/apache/libexec/mod_jk.so:
>  undefined symbol: ap_ctx_get
> 
> Never done this before, and im probably just plain wrong !
> 
> Any replys would be apperciated,
> 
> Cheers,
> 
> M
> 
> Mehdi Nejad - Senior Developer
> [EMAIL PROTECTED]
> ~~
> Bluewave Ltd - Online Creations
> http://www.bluewave.com
> Tel. +44 (0)20 7479 8394
> ~~
> 
> 
> 
>   "Jordi Guijarro"
> 
><[EMAIL PROTECTED]>
>   ab.es>   cc:
> 
>Subject:  Run Tomcat 4.1.2
> on Novell
>   29/10/2002 17:38
> 
>   Please respond to
> 
>   "Tomcat Users
> 
>   List"
> 
> 
> 
> 
> 
> 
> 
> Hi,
> 
> How can I run Tomcat 4.1.2 on Novell Netware 5.1 ¿?  Nowadays I've a
> script (ncf file)  to start catalina in Tomcat 4.0.4 version. This
> script is not included in Tomcat 4.1.2. Someone knows about it ?
> 
> Thank you,
> 
> Jordi
> 
> 
> 
> 
> 
> 
> --
> To unsubscribe, e-mail:   <
> mailto:tomcat-user-unsubscribe@;jakarta.apache.org>
> For additional commands, e-mail: <
> mailto:tomcat-user-help@;jakarta.apache.org>
> 
> 
> 
> 
> 
> 
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 
> 



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re[5]: DBCP speed of lookup -vs- stored reference to Datasource?

2002-10-29 Thread Jacob Kjome

Whooops.  I had read the following:

RE>> (This article also states that ThreadLocal works even slower
RE>>  before JDK 1.4)

as

"This article also states that ThreadLocal works even slower [than]
before [in] JDK 1.4".

So, I thought you were saying that the implementation of ThreadLocal
was slower in j2sdk1.4.0 than in 1.3.1.  I accepted that idea because
I know of a number of performance regression fixes between j2sdk1.4.0
and j2sdk1.4.1.  Well, either way, I use j2sdk1.4.1 which should be
even faster than 1.4.0 and if the author thinks that 1.4.0 has
performance gains over the alternative of running through the
syncronized block every time, then it looks like I am doing the most
optimized thing I can do by using ThreadLocal.  Now, the only other
consideration is whether I want to be able to modify the configuration
of the DataSource at runtime using the Tomcat Admin app.  If that is
the case, then I'd throw out all the synchronization stuff and just
use query the InitialContext every time for the DataSource object.
Craig seemed to think that solution would be pretty fast and provide
flexibility.  I will definitely consider it.

Jake

Tuesday, October 29, 2002, 11:49:23 AM, you wrote:

JK> Hello Ralph,

JK> Well, supposedly, everything slowed down in the j2sdk1.4.0 release.
JK> The j2sdk1.4.1 release fixed a *ton* of performance regressions that
JK> occurred between jdk1.3.x and j2sdk1.4.0.  So, I think the jury is
JK> still out on whether ThreadLocal is still slow in j2sdk1.4.1.

JK> And yes, the goal is to reduce synchronized access to improve
JK> performance.  If I do remove the outer if using the old way that I had
JK> things set up, wouldn't that now make it so I *do* incur the
JK> excessive synchronization performance hit?  ThreadLocal, if it works
JK> speedily in j2sdk1.4.1, should solve that, should it not?

JK> Jake

JK> Tuesday, October 29, 2002, 2:40:16 AM, you wrote:
RE>> The best way to avoid the double checke locking issue 
RE>> is just not to use it.

RE>> Before trying to implement 'double checked locking' right,
RE>> you have to understand the purpose.

RE>> The goal was to reduce synchronized access to achieve more
RE>> performance. (Did you have another rationale ?)  
RE>> In most cases it's just enough to remove the outer if. 
RE>> Also look at:
RE>> http://www.javaworld.com/javaworld/jw-11-2001/jw-1116-dcl.html
RE>> (This article also states that ThreadLocal works even slower
RE>>  before JDK 1.4)

>>> -Original Message-
>>> From: Jacob Kjome [mailto:hoju@;visi.com]
>>> Sent: Tuesday, October 29, 2002 5:12 AM
>>> To: Tomcat Users List
>>> Cc: Craig R. McClanahan
>>> Subject: Re[2]: DBCP speed of lookup -vs- stored reference to
>>> Datasource?
>>>  
>>> I was just making an attempt to avoid the 
>>> Double-Checked Locking issue and the article 
>>> http://www.cs.umd.edu/~pugh/java/memoryModel/DoubleCheckedLocking.html 
>>> under the title "Fixing Double-Checked Locking 
>>> using Thread Local Storage" provided an issue 
>>> that they said worked.  Maybe you could provide 
>>> an example showing me what you would do to create 
>>> a proper static singleton that doesn't suffer 
>>> from the Double-Checked Locking issue without 
>>> resorting to the ThreadLocal solution?
>>>

RE>> --
RE>> To unsubscribe, e-mail:   
RE>> For additional commands, e-mail: 






-- 
Best regards,
 Jacobmailto:hoju@;visi.com


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




JAR Files needed

2002-10-29 Thread Brookwell Brookwell
This is the first time I've tried getting a servlet running under Linux.  We're using 
TOmcat and I'd like to know what JAR files are needed tocompile the servlet.

Brian Brookwell


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: MOD_JK.SO

2002-10-29 Thread Mehdi . Nejad


according to this :

http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/connectors.html

i should need mod_jk2 and not mod_jk (well, mod_jk may also work, but
hey,..) - and its enabled by default on the appserver im using..

If by any chance i am right, can someone tell me why I cant find a humble
link to download the file ?  maybe jakarta are having webserver problems.

I quote from the site :



(Do not hesitate to ask for the binary needed for your platform to  
the Tomcat mail lists, but be patient). 




so here goes : im using linux - can i have this file - please..

thanks 4 reading this far.

Mehdi







   
 
  Mehdi.Nejad@bluew
 
  ave.com  To:   "Tomcat Users List" 
<[EMAIL PROTECTED]>   
   cc: 
 
  29/10/2002 18:02 Subject:  MOD_JK.SO 
 
  Please respond to
 
  "Tomcat Users
 
  List"
 
   
 
   
 





Hi,

We are trying to get Tomcat 4.1.12 and Apache 1 3 26 working together using
mod_jk.so.

We are receiving the followitng error :

Starting httpd: Syntax error on line 224 of /etc/httpd/conf/httpd.conf:
Cannot load /usr/local/apache/libexec/mod_jk.so into server:
/usr/local/apache/libexec/mod_jk.so:
 undefined symbol: ap_ctx_get

Never done this before, and im probably just plain wrong !

Any replys would be apperciated,

Cheers,

M

Mehdi Nejad - Senior Developer
[EMAIL PROTECTED]
~~
Bluewave Ltd - Online Creations
http://www.bluewave.com
Tel. +44 (0)20 7479 8394
~~



  "Jordi Guijarro"

  
  ab.es>   cc:

   Subject:  Run Tomcat 4.1.2
on Novell
  29/10/2002 17:38

  Please respond to

  "Tomcat Users

  List"







Hi,

How can I run Tomcat 4.1.2 on Novell Netware 5.1 ¿?  Nowadays I've a
script (ncf file)  to start catalina in Tomcat 4.0.4 version. This
script is not included in Tomcat 4.1.2. Someone knows about it ?

Thank you,

Jordi






--
To unsubscribe, e-mail:   <
mailto:tomcat-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <
mailto:tomcat-user-help@;jakarta.apache.org>






--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: MOD_JK.SO

2002-10-29 Thread Ben Ricker
I got this on Apache 1.3.27. I assume you downloaded the binary
mod_jk.so. Make sure that you got that fits your use or non-use of SSL
in the server. Not sure where you got the binary, but there is a note on
the jakarta connector download page that lists which binary is for
which.

I myself just compiled the connector from source; I could not get the
binary connector to work with Apache without getting that error.

Ben Ricker
Wellinx.com

On Tue, 2002-10-29 at 12:02, [EMAIL PROTECTED] wrote:
> 
> Hi,
> 
> We are trying to get Tomcat 4.1.12 and Apache 1 3 26 working together using
> mod_jk.so.
> 
> We are receiving the followitng error :
> 
> Starting httpd: Syntax error on line 224 of /etc/httpd/conf/httpd.conf:
> Cannot load /usr/local/apache/libexec/mod_jk.so into server:
> /usr/local/apache/libexec/mod_jk.so:
>  undefined symbol: ap_ctx_get
> 
> Never done this before, and im probably just plain wrong !
> 
> Any replys would be apperciated,
> 
> Cheers,
> 
> M
> 
> Mehdi Nejad - Senior Developer
> [EMAIL PROTECTED]
> ~~
> Bluewave Ltd - Online Creations
> http://www.bluewave.com
> Tel. +44 (0)20 7479 8394
> ~~
> 
> 
>  
>   
>   "Jordi Guijarro"   
>   
>   <[EMAIL PROTECTED]>   
>   ab.es>   cc:   
>   
>Subject:  Run Tomcat 4.1.2 on Novell  
>   
>   29/10/2002 17:38   
>   
>   Please respond to  
>   
>   "Tomcat Users  
>   
>   List"  
>   
>  
>   
>  
>   
> 
> 
> 
> 
> Hi,
> 
> How can I run Tomcat 4.1.2 on Novell Netware 5.1 ¿?  Nowadays I've a
> script (ncf file)  to start catalina in Tomcat 4.0.4 version. This
> script is not included in Tomcat 4.1.2. Someone knows about it ?
> 
> Thank you,
> 
> Jordi
> 
> 
> 
> 
> 
> 
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 
> 



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Tomcat standalone speed versus Tomcat/Apache

2002-10-29 Thread David Tildesley
Tests we did with tomcat 4.1.12 showed it is defintely in order of
magnitudes faster by itself than connected with apache with mod_jk.
But why don't you run your own tests and let us compare notes.

-Original Message-
From: Andy Wickson [mailto:andy@;awtech.co.uk]
Sent: Wednesday, 30 October 2002 7:02 a.m.
To: Tomcat Users List
Subject: Tomcat standalone speed versus Tomcat/Apache


Hi all,

Has anyone done any comparisons of the above?
Are there any rules of thumb regarding this e.g., percentage of static
versus dynamic content/site popularity etc.
Just wondering whether Tomcat will cut it on its own for my modest site.

Regards
Andy Wickson


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: JDBC driver class 'null' error

2002-10-29 Thread Sinclair, Alan (CORP, GEAccess)
Thanks, I discovered that yesterday.

-Original Message-
From: [EMAIL PROTECTED] [mailto:pqin@;shareowner.com]
Sent: Tuesday, October 29, 2002 7:21 AM
To: [EMAIL PROTECTED]
Subject: RE: JDBC driver class 'null' error 


Rename jdbc driver package to .jar and put in common/lib

Regards,
 
 
Phillip Qin
 
Software Developer
Canadian Shareowner
121 Richmond Street W, 7th Floor
Toronto, ON M5H 2K1
(416) 595-9600 ext 291
 

-Original Message-
From: Sinclair, Alan (CORP, GEAccess) [mailto:alan.sinclair@;geaccess.com] 
Sent: October 28, 2002 5:54 PM
To: 'Tomcat Users List'
Subject: RE: JDBC driver class 'null' error 

Tried that, same error. Thanks anyway.

-Original Message-
From: Vic A [mailto:marauder_77@;hotmail.com]
Sent: Monday, October 28, 2002 3:20 PM
To: [EMAIL PROTECTED]
Subject: Re: JDBC driver class 'null' error 



../common/lib is classes used for internal tomcat processes that need to be 
shared.  Try putting the JDBC driver in ../shared/lib

Victor Albisharat
[EMAIL PROTECTED]



---
From: Sinclair, Alan (CORP, GEAccess)
Subject: JDBC driver class 'null' error
Date: Mon, 28 Oct 2002 11:39:52 -0800



Hi,

Tomcat V4.1.12

Trying to setup a connection pool to Oracle and get the following error:
java.sql.SQLException: Cannot load JDBC driver class 'null'

The Oracle classes12.jar file has been copied into ../common/lib  I checked
that the oracle.jdbc.driver.OracleDriver class specified in the server.xml
JDBC data resource is present in the jar file

Any ideas why Tomcat cannot find the JDBC driver ?

Thnaks for any help.







>From: "Vic A" <[EMAIL PROTECTED]>
>Reply-To: "Tomcat Users List" <[EMAIL PROTECTED]>
>To: [EMAIL PROTECTED]
>Subject: Tomcat losing connection capabilities/not being able to shutdown
>Date: Mon, 28 Oct 2002 17:13:39 -0500
>
>
>
>I've been having a recurring error with Tomcat.  It works fine upon 
>startup, able to access MySQL databases from other servers with the 
>servlets that I've programmed.  However, after a time, it cannot seem to 
>connect to the databases through servlets, yet when I run Java standalone 
>equivalents of the servlets, they connect to the databases just fine.  
>Also, when these connection problems start, I tried to stop the Tomcat 
>service then restart it, but it cannot shut down.  I can't even "hard kill"

>it through Task Manager.  I'm running this on Windows 2000 without a 
>firewall.  Any ideas on what's going on?
>
>Victor Albisharat
>[EMAIL PROTECTED]
>
>
>_
>Broadband? Dial-up? Get reliable MSN Internet Access. 
>http://resourcecenter.msn.com/access/plans/default.asp
>
>
>--
>To unsubscribe, e-mail:   
>
>For additional commands, e-mail: 
>


_
Get a speedy connection with MSN Broadband.  Join now! 
http://resourcecenter.msn.com/access/plans/freeactivation.asp


--
To unsubscribe, e-mail:

For additional commands, e-mail:


--
To unsubscribe, e-mail:

For additional commands, e-mail:


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Tomcat standalone speed versus Tomcat/Apache

2002-10-29 Thread Andy Wickson
Hi all,

Has anyone done any comparisons of the above?
Are there any rules of thumb regarding this e.g., percentage of static versus dynamic 
content/site popularity etc.
Just wondering whether Tomcat will cut it on its own for my modest site.

Regards
Andy Wickson



MOD_JK.SO

2002-10-29 Thread Mehdi . Nejad

Hi,

We are trying to get Tomcat 4.1.12 and Apache 1 3 26 working together using
mod_jk.so.

We are receiving the followitng error :

Starting httpd: Syntax error on line 224 of /etc/httpd/conf/httpd.conf:
Cannot load /usr/local/apache/libexec/mod_jk.so into server:
/usr/local/apache/libexec/mod_jk.so:
 undefined symbol: ap_ctx_get

Never done this before, and im probably just plain wrong !

Any replys would be apperciated,

Cheers,

M

Mehdi Nejad - Senior Developer
[EMAIL PROTECTED]
~~
Bluewave Ltd - Online Creations
http://www.bluewave.com
Tel. +44 (0)20 7479 8394
~~


   
 
  "Jordi Guijarro" 
 
 
  ab.es>   cc: 
 
   Subject:  Run Tomcat 4.1.2 on Novell
 
  29/10/2002 17:38 
 
  Please respond to
 
  "Tomcat Users
 
  List"
 
   
 
   
 




Hi,

How can I run Tomcat 4.1.2 on Novell Netware 5.1 ¿?  Nowadays I've a
script (ncf file)  to start catalina in Tomcat 4.0.4 version. This
script is not included in Tomcat 4.1.2. Someone knows about it ?

Thank you,

Jordi






--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




[TC v4.1.12] Integrating with BouncyCastle on JDK v1.4.1_01

2002-10-29 Thread Pae Choi
Forst of all, my applogies if this has been asked and solved.

If anyone has integrated TC v4.1.12 with BC-jdk14-115 on
JDK 1.4.1_01 using PKCS12 key store, not JKS keystore, would
you please share with me whether it's feasible or not. To wit,
without modifying the TC source code.

Any suggestions and comments on this? Thank you.

Regards,


Pae




--
To unsubscribe, e-mail:   
For additional commands, e-mail: 





Run Tomcat 4.1.2 on Novell

2002-10-29 Thread Jordi Guijarro
Hi,
 
How can I run Tomcat 4.1.2 on Novell Netware 5.1 ¿?  Nowadays I’ve a
script (ncf file)  to start catalina in Tomcat 4.0.4 version. This
script is not included in Tomcat 4.1.2. Someone knows about it ?
 
Thank you,
 
Jordi
 



Re[4]: DBCP speed of lookup -vs- stored reference to Datasource?

2002-10-29 Thread Jacob Kjome
Hello Ralph,

Well, supposedly, everything slowed down in the j2sdk1.4.0 release.
The j2sdk1.4.1 release fixed a *ton* of performance regressions that
occurred between jdk1.3.x and j2sdk1.4.0.  So, I think the jury is
still out on whether ThreadLocal is still slow in j2sdk1.4.1.

And yes, the goal is to reduce synchronized access to improve
performance.  If I do remove the outer if using the old way that I had
things set up, wouldn't that now make it so I *do* incur the
excessive synchronization performance hit?  ThreadLocal, if it works
speedily in j2sdk1.4.1, should solve that, should it not?

Jake

Tuesday, October 29, 2002, 2:40:16 AM, you wrote:
RE> The best way to avoid the double checke locking issue 
RE> is just not to use it.

RE> Before trying to implement 'double checked locking' right,
RE> you have to understand the purpose.

RE> The goal was to reduce synchronized access to achieve more
RE> performance. (Did you have another rationale ?)  
RE> In most cases it's just enough to remove the outer if. 
RE> Also look at:
RE> http://www.javaworld.com/javaworld/jw-11-2001/jw-1116-dcl.html
RE> (This article also states that ThreadLocal works even slower
RE>  before JDK 1.4)

>> -Original Message-
>> From: Jacob Kjome [mailto:hoju@;visi.com]
>> Sent: Tuesday, October 29, 2002 5:12 AM
>> To: Tomcat Users List
>> Cc: Craig R. McClanahan
>> Subject: Re[2]: DBCP speed of lookup -vs- stored reference to
>> Datasource?
>>  
>> I was just making an attempt to avoid the 
>> Double-Checked Locking issue and the article 
>> http://www.cs.umd.edu/~pugh/java/memoryModel/DoubleCheckedLocking.html 
>> under the title "Fixing Double-Checked Locking 
>> using Thread Local Storage" provided an issue 
>> that they said worked.  Maybe you could provide 
>> an example showing me what you would do to create 
>> a proper static singleton that doesn't suffer 
>> from the Double-Checked Locking issue without 
>> resorting to the ThreadLocal solution?
>>

RE> --
RE> To unsubscribe, e-mail:   
RE> For additional commands, e-mail: 



-- 
Best regards,
 Jacobmailto:hoju@;visi.com


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Force One page to not use SSL

2002-10-29 Thread Srinadh Karumuri

You can probably try forwarding to absolute path, with the JSESSIONID value.
Since you are using IIS as secure server, it shouldn't matter to Tomcat.

For example:
In a servlet you can forward control from 
https://my.domain.com/myapp/jsp/mypage1.jsp to 
http://my.domain.com/myapp/jsp/mypage2.jsp;jsessionid=To6582mC3751376572349896At
(I am not sure you need the jsessionid value).


Sri

At 10:46 AM 10/29/2002, Rustad, Aaron wrote:
OK, let me explain the real problem then. What I really want to do is
download a bunch of jars for an applet, however, doing this over HTTPS is
driving my nuts!!! Can I somehow use HTTP to get the jars and still have the
page that the applet resides in HTTPS?

Thanks again!
Aaron.

-Original Message-
From: Craig R. McClanahan [mailto:craigmcc@;apache.org]
Sent: October 28, 2002 9:37 PM
To: Tomcat Users List
Subject: Re: Force One page to not use SSL




On Mon, 28 Oct 2002, Rustad, Aaron wrote:

> Date: Mon, 28 Oct 2002 17:48:40 -0700
> From: "Rustad, Aaron" <[EMAIL PROTECTED]>
> Reply-To: Tomcat Users List <[EMAIL PROTECTED]>
> To: "'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]>
> Subject: Force One page to not use SSL
>
> I am trying to force one page NOT to use HTTPS and still maintain the
> session. I have looked in mailing list, and all I see is how you are not
> supposed to do this. Well, I really...really...really need to do this and
> yes, I understand that I shouldn't.
>
> So, if anyone knows how I can maintain the session that is given to my
> client from HTTPS -> HTTP I would greatly appreciate it.
>

There is no support for this because it would be a huge security hole.
For much discussion on this topic, check the mailing list archives.

> Some background:
>
> 1. IIS as a front for Tomcat 4.0.1.
> 2. Using AJP13
>
> Thanks!
> Aaron.

Craig


--
To unsubscribe, e-mail:

For additional commands, e-mail:


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




apache/tomcat multiple hosts

2002-10-29 Thread tamsin
hi,
i'm using apache, tomcat 4.1 and mod_jk
i have apache configured:


ServerName www.foo.com
DocumentRoot /home/foo
JkMount /servlet/* worker1


and in server.xml:

 


this all works fine. however, i want to serve a copy of the foo site from
demo.foo.com

i.e. i want to add something like:

ServerName demo.foo.com
DocumentRoot /home/foodemo
JkMount /servlet/* worker1



but i'm not sure how to configure tomcat for the second context? thanks for
any help,
tamsin



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Session start

2002-10-29 Thread Mauro Daniel Ardolino
Hello!
I'm confussed about when does a session starts.

For example I have a simple servlet that keeps a count of the times it was
called session by session.  So it uses the HttpSession requesting it to
the servlet request.

Browsing with netscape on a linux gui, opening 2 browsers, calling the
same servlet, the session is shared.  I want to start a new session!  I
mean every time a user opens a new browser or a new window of the browser 
and calls my servlet, I want to start a new session.

Can it be done?

Thanks.

-- Mauro


-- 
Ing.Mauro Daniel Ardolino
Departamento de Desarrollo y Servicios
Altersoft
Billinghurst 1599 - Piso 9
C1425DTE - Capital Federal
Tel/Fax: 4821-3376 / 4822-8759
mailto: [EMAIL PROTECTED]
website: http://www.altersoft.com.ar


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Compatibility between Windows and Linux tomcat

2002-10-29 Thread Bertus Keyser
Hallo

I would like to know if there are any compatibility issues between running
Linux Apache with mod_jk and running Tomcat on Windows with the ajp13
protocol.

Bertus Keyser

IMPRESS SOFTWARE (SA)
Peter Place Park
Bryanston, Johannesburg

Phone   +27 11 706-0339
Fax +27 11 706-8753
Mobile  +27 83 459-5624


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Apache/Tomcat and Internationalization

2002-10-29 Thread Bryan Vannortwick
I am trying to use internationalization with an Apache & Tomcat configuration & am 
having a problem getting it to work properly.

The config is (all machines Win2000):

Browser (IE 5.5 - set to Japanese) ---> Apache 1.3.26 --> Tomcat 4.0.4 (our 
application installed & running via Tomcat )

 I have used mod_jk to link Apache & Tomcat.

If I use the Browser & Tomcat alone, I can view our application in Japanese just fine.
If I hit the Apache home site (not our application), it comes up in Japanese, (I've 
can also view other html pages set up for it in Japanese)

The problem is when I view our application using BOTH Apache & Tomcat, it comes up in 
English only.  If I 1st access our application using Tomcat, then Apache it will come 
up in Japanese, but upon logoff it goes back to English only again.

Any ideas/help would be appreciated.

Thanks,

Bryan  



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




[4.1.14] New test milestone released

2002-10-29 Thread Remy Maucherat
A new test milestone of Tomcat 4.1 has just been released. Please help 
test this upcoming Tomcat release for compliance issues and other problems.

Downloads:
http://jakarta.apache.org/builds/jakarta-tomcat-4.0/test/v4.1.14/

Significant changes over 4.1.13 include a security manager bugfix. Over 
4.1.12, Tomcat 4.1.14 includes bugfixes as well as performance improvements.

The full list of changes is available in the release notes.
http://jakarta.apache.org/builds/jakarta-tomcat-4.0/test/v4.1.14/RELEASE-NOTES

Remy


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 



RE: Autoreload of .war archives on Tomcat 4.0

2002-10-29 Thread Deepa Raja
This is not possible. War will not be deployed if the webapp folder for the
war already exist. It does not matter whether the war has been modified or
not. For a new war to be deployed the webapp folder for that war (if any
exist) is to be removed and tomcat is to be restarted. Also note : Tomcat
will not deploy wars if there are more than one wars placed in the tomcat
home directory.

Hope that makes sense
Deepa

-Original Message-
From: Andrea Carpani [mailto:ancarpan@;vitaminic.net]
Sent: Tuesday, October 29, 2002 3:37 PM
To: Tomcat Users List
Subject: Autoreload of .war archives on Tomcat 4.0



Hi all,

I've got a standard tomcat layout where I can deploy war applications on
the "webapps" dir. This archive is decompressed and used by tomcat and
works fine. What I'd like to do is to change the war file (without
removing the expanded directory tree and without restarting tomcat) and
have tomcat reload the application: is this possible?

Thanks.

-- 
- .a.c.
- Andrea Carpani
- <[EMAIL PROTECTED]>

http://www.vitaminic.[it|com|co.uk|de|es|fr|nl|se|dk|ie]
http://www.peoplesound.com
http://www.iuma.com
http://www.zipmind.it
http://www.francemp3.com (www.mp3france.com)
___
DISCLAIMER, PLEASE NOTE: This communication is intended only for use by
the
addressee. It may contain confidential or privileged information.
Transmission, distribution and/or copy cannot be permitted. Please
notify
Vitaminic Spa immediately by reply e-mail if you are not the intended
recipient. Vitaminic Spa does not accept liability for corruption,
interception or amendment, if any, or the consequences thereof.
___



--
To unsubscribe, e-mail:

For additional commands, e-mail:





--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Autoreload of .war archives on Tomcat 4.0

2002-10-29 Thread Andrea Carpani

Hi all,

I've got a standard tomcat layout where I can deploy war applications on
the "webapps" dir. This archive is decompressed and used by tomcat and
works fine. What I'd like to do is to change the war file (without
removing the expanded directory tree and without restarting tomcat) and
have tomcat reload the application: is this possible?

Thanks.

-- 
- .a.c.
- Andrea Carpani
- <[EMAIL PROTECTED]>

http://www.vitaminic.[it|com|co.uk|de|es|fr|nl|se|dk|ie]
http://www.peoplesound.com
http://www.iuma.com
http://www.zipmind.it
http://www.francemp3.com (www.mp3france.com)
___
DISCLAIMER, PLEASE NOTE: This communication is intended only for use by
the
addressee. It may contain confidential or privileged information.
Transmission, distribution and/or copy cannot be permitted. Please
notify
Vitaminic Spa immediately by reply e-mail if you are not the intended
recipient. Vitaminic Spa does not accept liability for corruption,
interception or amendment, if any, or the consequences thereof.
___



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Force One page to not use SSL

2002-10-29 Thread Rustad, Aaron
OK, let me explain the real problem then. What I really want to do is
download a bunch of jars for an applet, however, doing this over HTTPS is
driving my nuts!!! Can I somehow use HTTP to get the jars and still have the
page that the applet resides in HTTPS?

Thanks again!
Aaron.

-Original Message-
From: Craig R. McClanahan [mailto:craigmcc@;apache.org]
Sent: October 28, 2002 9:37 PM
To: Tomcat Users List
Subject: Re: Force One page to not use SSL




On Mon, 28 Oct 2002, Rustad, Aaron wrote:

> Date: Mon, 28 Oct 2002 17:48:40 -0700
> From: "Rustad, Aaron" <[EMAIL PROTECTED]>
> Reply-To: Tomcat Users List <[EMAIL PROTECTED]>
> To: "'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]>
> Subject: Force One page to not use SSL
>
> I am trying to force one page NOT to use HTTPS and still maintain the
> session. I have looked in mailing list, and all I see is how you are not
> supposed to do this. Well, I really...really...really need to do this and
> yes, I understand that I shouldn't.
>
> So, if anyone knows how I can maintain the session that is given to my
> client from HTTPS -> HTTP I would greatly appreciate it.
>

There is no support for this because it would be a huge security hole.
For much discussion on this topic, check the mailing list archives.

> Some background:
>
> 1. IIS as a front for Tomcat 4.0.1.
> 2. Using AJP13
>
> Thanks!
> Aaron.

Craig


--
To unsubscribe, e-mail:

For additional commands, e-mail:


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Configure JNDI

2002-10-29 Thread Garrett Smith
Mohan,

By having the configuration inside of your context in server.xml, I don't think
it's possible. I tried jocl, but couldn't get it to work with tc. Craig
McClanahan advised me to set up a context in server.xml instead to using jocl. 

This makes it very time consuming to develop webapps, and especially when
trying to fix the problems with Tomcat using different ClassLoaders - 1 for
storing the object and another for finding the runtime class.


Garrett



--- Mohan Radhakrishnan <[EMAIL PROTECTED]> wrote:
> Hi,
> Is it possible to configure datasources with the admin and have it
> recognized without stopping the tomcat server? After the runtime
> configuration, I can iterate over the env context and pick up the new
> datasources ?
> bye,
> Mohan
> 
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 
> 


=
http://dhtmlkitchen.com/
JSP | Servlets | DHTML 

Garrett Needs A Job

__
Do you Yahoo!?
HotJobs - Search new jobs daily now
http://hotjobs.yahoo.com/

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Tomcat 4.1.12 hanging under stress?

2002-10-29 Thread Ben Ricker
On Mon, 2002-10-28 at 20:24, William Lee wrote:
 
> Hmm, it may have something to do with the kernel, I'll try later to see 
> whether this is the case.  I don't think the log gives me much though. 
> Anyhow, I've made a weird discovery that I found interesting.

After the other info you gave me, I am less concerned with the kernel
now. I would still upgrade it, though. There is a nasty networking bug
in the 2,4,9 kernel, I believe, that effects scalability.

> It seems like there's a "barrier" when the JVM consume around 90MB of 
> RAM.  Once the JVM got over that barrier, then things will keep working.

You may be dealing with garbage collection issues. If the GC gets going
before that, it will lock everything up while it GCs.

Try messing with the following options:

-Xms and  -Xmx using CATALINA_OPTS set in the startup script. For
example: 

CATALINA_OPTS=-Xms128M -Xmx2048M

would set the heap size minimum to 128meg and would force garbage
collection at 2048meg. Play with that and see how it affects the
slowdown.

You can alos set two other options to help out debugging:

-Xincgc and -Xloggc:gcinfo.log

I forgot what the first setting does (ingrease GC?) but the second one
turns on logging when it garbage collects. If you watch that file as the
failure happens, you can tell if garbage collecting is having an effect
or not.

HTH,

Ben Ricker
Wellinx, Inc.




--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: DbcpDataSourceFactory: driverClassName is required

2002-10-29 Thread pqin
Can you send us the log file? Usually it contains info about when to load
jndi, params etc. that might help figuring out what went wrong during jws
startup.

Regards,
 
 
Phillip Qin
 
Software Developer
Canadian Shareowner
121 Richmond Street W, 7th Floor
Toronto, ON M5H 2K1
(416) 595-9600 ext 291
 

-Original Message-
From: John Ruffin [mailto:John.Ruffin@;AccredoHealth.com] 
Sent: October 29, 2002 10:17 AM
To: 'Tomcat Users List'
Subject: RE: DbcpDataSourceFactory: driverClassName is required

msbase.jar, mssqlserver.jar, and msutil.jar are in common/lib.  

Again, class.forname works but not JNDI.

-Original Message-
From: [EMAIL PROTECTED] [mailto:pqin@;shareowner.com]
Sent: Tuesday, October 29, 2002 8:22 AM
To: [EMAIL PROTECTED]
Subject: RE: DbcpDataSourceFactory: driverClassName is required


Rename jdbc to .jar and put in common/lib

Regards,
 
 
Phillip Qin
 
Software Developer
Canadian Shareowner
121 Richmond Street W, 7th Floor
Toronto, ON M5H 2K1
(416) 595-9600 ext 291
 

-Original Message-
From: John Ruffin [mailto:John.Ruffin@;AccredoHealth.com] 
Sent: October 28, 2002 5:32 PM
To: 'Tomcat Users List'
Subject: DbcpDataSourceFactory: driverClassName is required

Using j2sdk1.4.0_01, jwsdp-1_0_01, SQL2k, on W2k, there seems to be an issue
with JNDI.

When accessing a datasource with JNDI, I get the error message:
"javax.servlet.ServletException: DbcpDataSourceFactory: driverClassName is
required" .  However, if I use the Class.forName code - that works.

Searching the archives, I see this was an issue with DB2 using TC4.0.4 (see
http://www.mail-archive.com/tomcat-user@;jakarta.apache.org/msg64387.html)
but I haven't seen any posts (problems or fixes) regarding SQL2k.

Thanks for your feedback!

Here is the relevant code from the  scriptlet  (I'm
just testing the connection, MVC'ers):

Context ctx = new InitialContext();
Context envCtx = (Context)envCtx.lookup("java:comp/env");
DataSource ds = (DataSource)envCtx.lookup("jdbc/Northwind");
Connection conn = ds.getConnection();
...

web.xml relevant code:

DB Connection
jdbc/Northwind
javax.sql.DataSource
Container

...

server.xml relevant code:


...

driverClassName
com.microsoft.jdbc.sqlserver.SQLServerDriver

...



The information in this email is confidential and may be 
legally privileged. It is intended solely for the addressee,
and access by anyone else is unauthorized.

If you are not the intended recipient, any disclosure, 
copying, distribution or any action taken or omitted to be
taken in reliance on it, is prohibited and may be unlawful. 

If you believe that you have received this email in error, 
please advise us by calling (901) 385 3688, or emailing
[EMAIL PROTECTED], and then delete this message
and all copies and backups thereof. Thank you.



--
To unsubscribe, e-mail:

For additional commands, e-mail:




The information in this email is confidential and may be 
legally privileged. It is intended solely for the addressee,
and access by anyone else is unauthorized.

If you are not the intended recipient, any disclosure, 
copying, distribution or any action taken or omitted to be
taken in reliance on it, is prohibited and may be unlawful. 

If you believe that you have received this email in error, 
please advise us by calling (901) 385 3688, or emailing
[EMAIL PROTECTED], and then delete this message
and all copies and backups thereof. Thank you.



--
To unsubscribe, e-mail:

For additional commands, e-mail:




RE: DbcpDataSourceFactory: driverClassName is required

2002-10-29 Thread John Ruffin
msbase.jar, mssqlserver.jar, and msutil.jar are in common/lib.  

Again, class.forname works but not JNDI.

-Original Message-
From: [EMAIL PROTECTED] [mailto:pqin@;shareowner.com]
Sent: Tuesday, October 29, 2002 8:22 AM
To: [EMAIL PROTECTED]
Subject: RE: DbcpDataSourceFactory: driverClassName is required


Rename jdbc to .jar and put in common/lib

Regards,
 
 
Phillip Qin
 
Software Developer
Canadian Shareowner
121 Richmond Street W, 7th Floor
Toronto, ON M5H 2K1
(416) 595-9600 ext 291
 

-Original Message-
From: John Ruffin [mailto:John.Ruffin@;AccredoHealth.com] 
Sent: October 28, 2002 5:32 PM
To: 'Tomcat Users List'
Subject: DbcpDataSourceFactory: driverClassName is required

Using j2sdk1.4.0_01, jwsdp-1_0_01, SQL2k, on W2k, there seems to be an issue
with JNDI.

When accessing a datasource with JNDI, I get the error message:
"javax.servlet.ServletException: DbcpDataSourceFactory: driverClassName is
required" .  However, if I use the Class.forName code - that works.

Searching the archives, I see this was an issue with DB2 using TC4.0.4 (see
http://www.mail-archive.com/tomcat-user@;jakarta.apache.org/msg64387.html)
but I haven't seen any posts (problems or fixes) regarding SQL2k.

Thanks for your feedback!

Here is the relevant code from the  scriptlet  (I'm
just testing the connection, MVC'ers):

Context ctx = new InitialContext();
Context envCtx = (Context)envCtx.lookup("java:comp/env");
DataSource ds = (DataSource)envCtx.lookup("jdbc/Northwind");
Connection conn = ds.getConnection();
...

web.xml relevant code:

DB Connection
jdbc/Northwind
javax.sql.DataSource
Container

...

server.xml relevant code:


...

driverClassName
com.microsoft.jdbc.sqlserver.SQLServerDriver

...



The information in this email is confidential and may be 
legally privileged. It is intended solely for the addressee,
and access by anyone else is unauthorized.

If you are not the intended recipient, any disclosure, 
copying, distribution or any action taken or omitted to be
taken in reliance on it, is prohibited and may be unlawful. 

If you believe that you have received this email in error, 
please advise us by calling (901) 385 3688, or emailing
[EMAIL PROTECTED], and then delete this message
and all copies and backups thereof. Thank you.



--
To unsubscribe, e-mail:

For additional commands, e-mail:




The information in this email is confidential and may be 
legally privileged. It is intended solely for the addressee,
and access by anyone else is unauthorized.

If you are not the intended recipient, any disclosure, 
copying, distribution or any action taken or omitted to be
taken in reliance on it, is prohibited and may be unlawful. 

If you believe that you have received this email in error, 
please advise us by calling (901) 385 3688, or emailing
[EMAIL PROTECTED], and then delete this message
and all copies and backups thereof. Thank you.



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Enabling users home directory for applets

2002-10-29 Thread Dan Didier
Hi, 

I have tomcat4 installed and working with j2sdk-1_4_1_01 

I would like to give access to a system user to develop and publish their 
own servlets.  Does anyone know where I can find documentation on this?  I 
have looked throught the documentation, and have not seen an exact match to 
what I am looking to do.  I noticed something about virtual servers, but I 
am not sure. 

This is the only user on the whole system that will need to do this. 

If you have some pointers for me I would appreciate it. 

Thanks! 
Dan Didier 


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Where to put Java files/classes

2002-10-29 Thread Michael Schulz

Classes that you develop for use with your .jsp pages are normally placed in
the $CATALINA_HOME/webapps/yourwebapp/WEB-INF/classes folder.  This is the
standard place for classes and this requirement is documented in the Java
Servlet Specification Version 2.3, section 9.5, which is available for
download from java.sun.com.  The WEB-INF/classes folder is automatically
added to your webapp classpath by Tomcat when your webapp is deployed.

-Mike Schulz


-Original Message-
From: Andreas Probst [mailto:andpro77@;gmx.net]
Sent: Sunday, October 27, 2002 3:01 AM
To: Tomcat Users List
Subject: Re: Where to put Java files/classes


Hi Ryan,

you shouldn't have your source files mixed up with Tomcat. You
should rather develop somewhere else and use a build tool like
Jakarta Ant to deploy your app to Tomcat.

Craig's App Developer Guide at
tomcathome/webapps/tomcat-docs/appdev/index.html
gives a very good introduction into the development process.

Good luck.

Andreas


On 26 Oct 2002 at 15:17, Ryan Heusinkveld wrote:

> Hi all,
>
> I am trying to configure Tomcat to allow me to import and use classes that
I
> have created within my jsp pages.  I imported them within my page, but I
get
> the error that the classes cannot be found.  I created a directory under
my
> $CATALINA_HOME called 'src', and packaged my classes accordingly under
> there.  What do I need to do to tell Tomcat that the classes are under
> there?  Should I be placing them somewhere else?
> Any help is appreciated.
>
> -Ryan
>


--
To unsubscribe, e-mail:

For additional commands, e-mail:



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: DbcpDataSourceFactory: driverClassName is required

2002-10-29 Thread pqin
Rename jdbc to .jar and put in common/lib

Regards,
 
 
Phillip Qin
 
Software Developer
Canadian Shareowner
121 Richmond Street W, 7th Floor
Toronto, ON M5H 2K1
(416) 595-9600 ext 291
 

-Original Message-
From: John Ruffin [mailto:John.Ruffin@;AccredoHealth.com] 
Sent: October 28, 2002 5:32 PM
To: 'Tomcat Users List'
Subject: DbcpDataSourceFactory: driverClassName is required

Using j2sdk1.4.0_01, jwsdp-1_0_01, SQL2k, on W2k, there seems to be an issue
with JNDI.

When accessing a datasource with JNDI, I get the error message:
"javax.servlet.ServletException: DbcpDataSourceFactory: driverClassName is
required" .  However, if I use the Class.forName code - that works.

Searching the archives, I see this was an issue with DB2 using TC4.0.4 (see
http://www.mail-archive.com/tomcat-user@;jakarta.apache.org/msg64387.html)
but I haven't seen any posts (problems or fixes) regarding SQL2k.

Thanks for your feedback!

Here is the relevant code from the  scriptlet  (I'm
just testing the connection, MVC'ers):

Context ctx = new InitialContext();
Context envCtx = (Context)envCtx.lookup("java:comp/env");
DataSource ds = (DataSource)envCtx.lookup("jdbc/Northwind");
Connection conn = ds.getConnection();
...

web.xml relevant code:

DB Connection
jdbc/Northwind
javax.sql.DataSource
Container

...

server.xml relevant code:


...

driverClassName
com.microsoft.jdbc.sqlserver.SQLServerDriver

...



The information in this email is confidential and may be 
legally privileged. It is intended solely for the addressee,
and access by anyone else is unauthorized.

If you are not the intended recipient, any disclosure, 
copying, distribution or any action taken or omitted to be
taken in reliance on it, is prohibited and may be unlawful. 

If you believe that you have received this email in error, 
please advise us by calling (901) 385 3688, or emailing
[EMAIL PROTECTED], and then delete this message
and all copies and backups thereof. Thank you.



--
To unsubscribe, e-mail:

For additional commands, e-mail:




RE: JDBC driver class 'null' error

2002-10-29 Thread pqin
Rename jdbc driver package to .jar and put in common/lib

Regards,
 
 
Phillip Qin
 
Software Developer
Canadian Shareowner
121 Richmond Street W, 7th Floor
Toronto, ON M5H 2K1
(416) 595-9600 ext 291
 

-Original Message-
From: Sinclair, Alan (CORP, GEAccess) [mailto:alan.sinclair@;geaccess.com] 
Sent: October 28, 2002 5:54 PM
To: 'Tomcat Users List'
Subject: RE: JDBC driver class 'null' error 

Tried that, same error. Thanks anyway.

-Original Message-
From: Vic A [mailto:marauder_77@;hotmail.com]
Sent: Monday, October 28, 2002 3:20 PM
To: [EMAIL PROTECTED]
Subject: Re: JDBC driver class 'null' error 



../common/lib is classes used for internal tomcat processes that need to be 
shared.  Try putting the JDBC driver in ../shared/lib

Victor Albisharat
[EMAIL PROTECTED]



---
From: Sinclair, Alan (CORP, GEAccess)
Subject: JDBC driver class 'null' error
Date: Mon, 28 Oct 2002 11:39:52 -0800



Hi,

Tomcat V4.1.12

Trying to setup a connection pool to Oracle and get the following error:
java.sql.SQLException: Cannot load JDBC driver class 'null'

The Oracle classes12.jar file has been copied into ../common/lib  I checked
that the oracle.jdbc.driver.OracleDriver class specified in the server.xml
JDBC data resource is present in the jar file

Any ideas why Tomcat cannot find the JDBC driver ?

Thnaks for any help.







>From: "Vic A" <[EMAIL PROTECTED]>
>Reply-To: "Tomcat Users List" <[EMAIL PROTECTED]>
>To: [EMAIL PROTECTED]
>Subject: Tomcat losing connection capabilities/not being able to shutdown
>Date: Mon, 28 Oct 2002 17:13:39 -0500
>
>
>
>I've been having a recurring error with Tomcat.  It works fine upon 
>startup, able to access MySQL databases from other servers with the 
>servlets that I've programmed.  However, after a time, it cannot seem to 
>connect to the databases through servlets, yet when I run Java standalone 
>equivalents of the servlets, they connect to the databases just fine.  
>Also, when these connection problems start, I tried to stop the Tomcat 
>service then restart it, but it cannot shut down.  I can't even "hard kill"

>it through Task Manager.  I'm running this on Windows 2000 without a 
>firewall.  Any ideas on what's going on?
>
>Victor Albisharat
>[EMAIL PROTECTED]
>
>
>_
>Broadband? Dial-up? Get reliable MSN Internet Access. 
>http://resourcecenter.msn.com/access/plans/default.asp
>
>
>--
>To unsubscribe, e-mail:   
>
>For additional commands, e-mail: 
>


_
Get a speedy connection with MSN Broadband.  Join now! 
http://resourcecenter.msn.com/access/plans/freeactivation.asp


--
To unsubscribe, e-mail:

For additional commands, e-mail:


--
To unsubscribe, e-mail:

For additional commands, e-mail:




RE: tools to monitor a tomcat application

2002-10-29 Thread Shapira, Yoav
Hi,

>Try radar...
>
>http://radar.sourceforge.net/

Is Radar still in active development?  It says on their site they
support Tomcat 3.2, which is old.  Whether they are or not in active
development, perhaps the folks who helped with Radar could put up their
hands and help with the tomcat admin webapp?? ;)

>> are there any tools available to monitor a tomcat web application?
please
>> provide me with few pointers.

Many.  It depends on what level of monitoring you wish to do.

I personally like Nagios for our server monitoring.  It's not specific
to tomcat nor java.  See http://www.nagios.org/

Wget is a good Unix tool, again for server and network monitoring.  See
http://www.gnu.org/software/wget/wget.html

If you're looking for something that tests more than the server, i.e.
you want to get some URL from the server, look at the response and
analyze it, there are more tools for that as well.  You could use
JUnit/Cactus and run it periodically via cron or another scheduler.
http://jakarta.apache.org/cactus/

You could use something like PushToTest, http://www.pushtotest.com  I
used to use that a lot, and Frank is a good guy.  The 3.x versions are
supposed to be very powerful.  For the type of testing in the above
paragraph.

Like I said there are many.  Other people will probably also reply with
dozes of their favorites. 

Yoav Shapira
Millennium ChemInformatics

This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 


RE: Differences Coyote/JK2 AJP1.3 vs AJP 1.3 Connector

2002-10-29 Thread Ralph Einfeldt
The difference is the internal structure.

Ajp13Connector is the the older, more proven 
solution but has some architectural problems.

CoyoteConnector is an new connector architecture.
The CoyoteConnector itself is protocol independend
and uses external classes to speak the protocol.

The CoyoteConnector with JkCoyoteHandler is the 
recommended solution for AJP no matter wether you use 
mod_jk or mod_jk2.

> -Original Message-
> From: "Thébault, Médérick"
> [mailto:Mederick.Thebault@;brittany-ferries.fr]
> Sent: Tuesday, October 29, 2002 2:47 PM
> To: Tomcat Users List
> Subject: Differences Coyote/JK2 AJP1.3 vs AJP 1.3 Connector
> 
> 
> What is the difference between those two connectors :
> 
>  protocolHandlerClassName="org.apache.jk.server.JkCoyoteHandler"/>
> 
> mailto:tomcat-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: 




RE: shared jars amongst web apps.

2002-10-29 Thread Cox, Charlie
sounds like you want each webapp to have its own instance of
statics,singletons,etc within your jar. In order to do this, you will need
to copy the jar into each WEB-INF/lib where it is needed (and allow each
with catalina.policy if applicable)

Charlie

> -Original Message-
> From: Frank Diakovasilis [mailto:fdiak@;lexel.com]
> Sent: Monday, October 28, 2002 11:23 AM
> To: Tomcat Users List
> Subject: shared jars amongst web apps.
> 
> 
> Does anybody know of a location where I can put a jar file 
> that is shared
> among the web apps of a tomcat instance, but not thought out 
> all instances.
> i.e. putting a jar in common/ would share that file 
> throughout all instances
> of tomcat, which I do  not want.  Short of explicitly 
> including the location
> in class path, is there a way to do this?
>  
> Thanks
> 

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Tomcat losing connection capabilities/not being able to shutdown

2002-10-29 Thread Shapira, Yoav
Hi,

>able to access MySQL databases from other servers with the servlets
that
>I've programmed.  However, after a time, it cannot seem to connect to
the

Are there any error messages?

>databases through servlets, yet when I run Java standalone equivalents
of
>the servlets, they connect to the databases just fine.  Also, when
these

It's very difficult to simulate a servlet environment outside a servlet
container.  There are always timing, threading, and other issues that
are subtle and easy to overlook.

Nonetheless, stand-alone tests are useful.  Just don't rely on them to
say with 100% certainty that the code is right.

>connection problems start, I tried to stop the Tomcat service then
restart
>it, but it cannot shut down.  I can't even "hard kill" it through Task

Tomcat will not shutdown if you (explicitly or through some 3rd party
software you're using in your webapp) have started non-daemon threads.
See the JavaDoc for the Thread class for an example.

If the above is happening, there are several possible workarounds.
Perhaps the simplest one is to write a ServletContextListener that calls
System.exit() at the end of its contextDestroyed() method.  Obviously,
you want to make sure yours is the only webapp on the tomcat instance if
you take this approach.

Additional configuration and logging details would help us help you ;)

Yoav Shapira
Millennium ChemInformatics


This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 


Differences Coyote/JK2 AJP1.3 vs AJP 1.3 Connector

2002-10-29 Thread "Thébault, Médérick"
Hello,

What is the difference between those two connectors :





Both are in the Tomcat server.xml release.

In trying to setup Tomcat 4.1.12, Apache 2.0.42 amd mod_jk2, I went to
choose of one of this connector and could not make my mind. I had to try
and see which one is the right.

Does anyone have some tips or URLs to understand which one use in which
case?

Thanx

Med

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: [urgent]Help pleeeeez--context problem--logfiles attached

2002-10-29 Thread Shapira, Yoav
Hi,
Without looking at your files, what happens if you don't add your context to the 
server.xml?  What non-default context properties are you using?

It would be helpful if you could post only the relevant portions of your 
configuration, i.e. just your  entry.  A lot of people, including myself, 
don't particularly like going through attachments to the list.

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Vishal Gupta [mailto:vhgupta1@;yahoo.com] 
Sent: Tuesday, October 29, 2002 1:00 AM
To: [EMAIL PROTECTED]
Subject: [urgent]Help plez--context problem--logfiles attached

Hi,
Please help me out as tomcat is crashing as soon as i add myApp context to it.
But it works fine without it. Please give me the possible reasons and the solution for 
it. Any help will be appreciated.
Also attached is log file and config files.
sever.xml.bak1   is the file when tomcat works fine.
server.xml   is file when tomcat crashes.
debug.txt    gives outputs of ps -ef | grep tomcat 
debug*   are logfiles of tomcat

Problem is sever.xml file as tomcat works fine with sever.xml.bak1.

Best Regards,
Vishal


Vishal Gupta
Schlumberger Measurement & Systems India Ltd 
10th Floor, HMG Ambassador
Bangalore 560 025
Tel: +91 98451 32104 off: +91 80 2075052-55 Ext: 117 Fax:+91 80 2075056 
E-Mail :- [EMAIL PROTECTED] and [EMAIL PROTECTED]


Do you Yahoo!?
HotJobs - Search new jobs daily now

This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 


Tomcat 4.1.12 + FreeBSD 4.7 + Linux-sun-jdk1.4.1

2002-10-29 Thread Nicholas Hemley
Hi,

Is anyone else running this configuration successfully since Tomcat will not run as 
anything other than 'root' due to a HotSpot problem.

Cheers,
Nic Hemley

NHS Lothian Webmaster



**
The information contained in this message may be confidential or legally privileged 
and is intended for the addressee only,

If you have received this message in error or there are any problems please notify the 
originator immediately.

The unauthorised use, disclosure, copying or alteration of this message is strictly 
forbidden.
**


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: AJP13 ..You must Read this !

2002-10-29 Thread Sigurður Bjarnason
nop.. there is not ! :(

siggi


-Original Message-
From: Andy Eastham [mailto:andy.eastham@;gliant.com]
Sent: 29. október 2002 12:02
To: Tomcat Users List
Subject: RE: AJP13 ..You must Read this !


It's not something to do with line feeds / carriage returns is it?

Andy

> -Original Message-
> From: Sigurður Bjarnason [mailto:siggi@;betware.com]
> Sent: 29 October 2002 11:55
> To: Tomcat (E-mail)
> Subject: AJP13 ..You must Read this !
>
>
>
>
> Hi all
>
> I been having a very strange problem with the ajp13 connector..
>
> OK the senario is this.. I have apache configured with ajp13 and
> mod_jk.so .. Everything is working ok.. and I have Jboss + Tomcat
> that apache is talking to.. Everything..is working there also..
>
> I am doing ab ( Apache Bench ) tests to this setup, I start the
> Jboss bundle and do a test... I get some errors on the test
> telling me that about 60% of the requests fails !
>
> Ok Then. I open tomcat4-service.xml and JUST write it to deploy
> it again ( I dont change anything ) ..  and do another AB test..
> and guess what.. NO errors.. ??!?!?!
>
> I have done this about 50 times to verify that I am not
> mistaken.. So do anyone have a CLUE what could be going on with
> the connection..
>
> These are my ajp13 settings on Jboss..
>
>  
>  "org.apache.catalina.connector.http.HttpConnector"
>port = "8080" minProcessors = "75" maxProcessors =
> "300" enableLookups = "true"
>acceptCount = "80" debug = "0" connectionTimeout =
> "6"/>
>   minProcessors="75" maxProcessors="300"
> enableLookups="true" acceptCount="80" debug="1" />
>
>
> Best Regards
> Siggi
>
> --
> To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 
>
>



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




accessClassInPackage.org.apache.catalina.realm permission

2002-10-29 Thread Renato
Hi all,

One of my users is asking for the following permission in his context

java.security.AccessControlException: access denied (java.lang.RuntimePermission 
accessClassInPackage.org.apache.catalina.realm) 

He is using the securityfilter.jar library

I'm using Tomcat 4.1.12 with SecurityManager. 

Is is safe to grant this permission ? 

Thanks
Renato


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: VerifyError when creating Struts action bean

2002-10-29 Thread Steinar Bang
> Steinar Bang <[EMAIL PROTECTED]>:

>> Platform: Intel PIII, RedHat 7.2, apache 1.3.20, ajp1.3
>>   tomcat 4.1.12, BlackDown Java SDK 1.3.1,
>>   Struts 1.1-b2, xerces-j 1.4.4

>> When I run with tomcat 3.3 my webapp run as expected, but when I try
>> it with tomcat 4.1.12, I get a VerifyError when creating one of the
>> webapp's Action beans. 
[snip!]
>> [ERROR] RequestProcessor - -No action instance for path /main could be created 
>signature: 
>(Lorg/apache/struts/action/ActionMapping;Lorg/apache/struts/action/ActionForm;Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;Lno/dod/T>

When I replaced
 
with
 
in the  element in the  task of the ant build file,
the problem went away.

This is replacing (an unknown version of) xerces.jar in our CVS, with
the version 2-something of xerces distributed with tomcat 4.1.12.



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Filters, MVC, ResultSets

2002-10-29 Thread Felipe Schnack
  Of course there is copying, or you'll never could be disconnected :-)
  And actually, jxutil uses an ArrayList... better than a Vector, as it
isn't synchronized, but If you don't need unordered readings, an
LinkedList would be much faster, IMHO

On Tue, 2002-10-29 at 10:09, V. Cekvenich wrote:
> Or a disconected rowset, so no copying.
> 
> 
>Ex:http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/basicportal/basicportal_07/src/basicWebLib/org/commons/DAO/BasicDAOImpl.java?rev=1.2&content-type=text/vnd.viewcvs-markup
> 
> .v
> 
> 
> Felipe Schnack wrote:
> >   I think a LinkedList would be better performance-wise, wouldn't it?
> > 
> > On Mon, 2002-10-28 at 21:01, German Augusto Niebles Alvarez wrote:
> > 
> >>I suggest you use vectors and beans (collection of beans) to poblate rs
> >>and then close de resultset, and use a class to connect to database
> >>(jdbchelper class), i send you an example:
> >>
> >>
> >>
> >>  // Obtiene la informacion acerca de la empresa
> >>  public Vector obtenerInformacionOrganizacion()
> >>  // throws SQLException,javax.naming.NamingException
> >>  {
> >>
> >>Vector contenedorRazonSocial = new Vector();
> >>
> >>Connection connection = null;
> >>String selectRazonSocialStr =
> >>  "SELECT * FROM tblRazonSocial";
> >>
> >>PreparedStatement selectStatement = null;
> >>
> >>try {
> >>
> >>  // Obtiene una conexion a la base de datos, requiere Try
> >>  connection = jdbcAccess.getConnection();
> >>
> >>  // Prepara la sentencia de Busqueda
> >>  selectStatement =
> >>connection.prepareStatement(selectRazonSocialStr);
> >>
> >>  // Obtiene el resultset
> >>  ResultSet rs = selectStatement.executeQuery();
> >>
> >>  // Si el rs tiene next es que tiene un registro con la informacion
> >>acerca de la empresa
> >>
> >>  FachadaRazonSocialBean facRazonSocialBean;
> >>
> >>  if (rs.next()) {
> >>
> >>facRazonSocialBean = new FachadaRazonSocialBean();
> >>
> >>facRazonSocialBean.setNit(rs.getString("nit"));
> >>facRazonSocialBean.setNombre(rs.getString("nombre"));
> >>facRazonSocialBean.setDireccion(rs.getString("direccion"));
> >>facRazonSocialBean.setTelefono(rs.getString("telefono"));
> >>facRazonSocialBean.setEMail(rs.getString("email"));
> >>   
> >>facRazonSocialBean.setDireccionWeb(rs.getString("direccionWeb"));
> >>facRazonSocialBean.setCodigoIAC(rs.getString("codigoIAC"));
> >>
> >>contenedorRazonSocial.add(facRazonSocialBean);
> >>
> >>  }
> >>  contenedorRazonSocial.trimToSize();
> >>
> >>  // Cierra el Resultset
> >>  rs.close();
> >>  jdbcAccess.cleanup(connection, selectStatement,null);
> >>
> >>}
> >>
> >>// Area de obtencion de Excepciones
> >>catch(NamingException ne) {
> >>  System.out.println("NamingException in JDBCAccess :" + ne);
> >>}
> >>
> >>catch (SQLException sqle) {
> >>   System.out.println("SQLException in JDBCAccess:" + sqle);
> >> }
> >>
> >> catch (Exception e)
> >> {
> >>   System.out.println("Exception In JDBCAccess:" + e);
> >> }
> >>finally {
> >>return contenedorRazonSocial;
> >>
> >>}
> >>  }
> >>
> >>
> >>
> >>==
> >>
> >>Atentamente,
> >>
> >>
> >>Germán Niebles
> >>Analista de Información
> >>Tel 4-93-86-00 Ext 7053
> >>
> >>
> >[EMAIL PROTECTED] 10/28 4:39 p.m. >>>
> 
> >>Hey All,
> >>
> >>Everyone says for performance purposes, working directly with the
> >>resultset is optimal.  But, with MVC, we can't just push the RS to the
> >>JSP to display and ignore closing.
> >>
> >>Is it possible with Filters to do a M->C1->V->C2 where C1 sets
> >>resultsets in the request, then pushes the response up to the JSP to
> >>render the content and then closes the resultset after rendering.  I
> >>know 'programatically' it would work, but, I'm wondering about
> >>exceptions and making sure that the resultsets get closed.  An example
> >>would be passing the request/response to the JSP, but then an exception
> >>occurs up the chain, does the exception trickle back down through the
> >>filters no matter what to catch and close my JDBC items?
> >>
> >>Best Regards,
> >>Jacob Hookom
> > 
> 
> 
> 
> 
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 
> 
-- 

Felipe Schnack
Analista de Sistemas
[EMAIL PROTECTED]
Cel.: (51)91287530
Linux Counter #281893

Faculdade Ritter dos Reis
www.ritterdosreis.br
[EMAIL PROTECTED]
Fone/Fax.: (51)32303328


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Filters, MVC, ResultSets

2002-10-29 Thread V. Cekvenich
Or a disconected rowset, so no copying.

Ex:http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/basicportal/basicportal_07/src/basicWebLib/org/commons/DAO/BasicDAOImpl.java?rev=1.2&content-type=text/vnd.viewcvs-markup

.v


Felipe Schnack wrote:

  I think a LinkedList would be better performance-wise, wouldn't it?

On Mon, 2002-10-28 at 21:01, German Augusto Niebles Alvarez wrote:


I suggest you use vectors and beans (collection of beans) to poblate rs
and then close de resultset, and use a class to connect to database
(jdbchelper class), i send you an example:



 // Obtiene la informacion acerca de la empresa
 public Vector obtenerInformacionOrganizacion()
 // throws SQLException,javax.naming.NamingException
 {

   Vector contenedorRazonSocial = new Vector();

   Connection connection = null;
   String selectRazonSocialStr =
 "SELECT * FROM tblRazonSocial";

   PreparedStatement selectStatement = null;

   try {

 // Obtiene una conexion a la base de datos, requiere Try
 connection = jdbcAccess.getConnection();

 // Prepara la sentencia de Busqueda
 selectStatement =
connection.prepareStatement(selectRazonSocialStr);

 // Obtiene el resultset
 ResultSet rs = selectStatement.executeQuery();

 // Si el rs tiene next es que tiene un registro con la informacion
acerca de la empresa

 FachadaRazonSocialBean facRazonSocialBean;

 if (rs.next()) {

   facRazonSocialBean = new FachadaRazonSocialBean();

   facRazonSocialBean.setNit(rs.getString("nit"));
   facRazonSocialBean.setNombre(rs.getString("nombre"));
   facRazonSocialBean.setDireccion(rs.getString("direccion"));
   facRazonSocialBean.setTelefono(rs.getString("telefono"));
   facRazonSocialBean.setEMail(rs.getString("email"));
  
facRazonSocialBean.setDireccionWeb(rs.getString("direccionWeb"));
   facRazonSocialBean.setCodigoIAC(rs.getString("codigoIAC"));

   contenedorRazonSocial.add(facRazonSocialBean);

 }
 contenedorRazonSocial.trimToSize();

 // Cierra el Resultset
 rs.close();
 jdbcAccess.cleanup(connection, selectStatement,null);

   }

   // Area de obtencion de Excepciones
   catch(NamingException ne) {
 System.out.println("NamingException in JDBCAccess :" + ne);
   }

   catch (SQLException sqle) {
  System.out.println("SQLException in JDBCAccess:" + sqle);
}

catch (Exception e)
{
  System.out.println("Exception In JDBCAccess:" + e);
}
   finally {
   return contenedorRazonSocial;

   }
 }



==

Atentamente,


Germán Niebles
Analista de Información
Tel 4-93-86-00 Ext 7053


[EMAIL PROTECTED] 10/28 4:39 p.m. >>>



Hey All,

Everyone says for performance purposes, working directly with the
resultset is optimal.  But, with MVC, we can't just push the RS to the
JSP to display and ignore closing.

Is it possible with Filters to do a M->C1->V->C2 where C1 sets
resultsets in the request, then pushes the response up to the JSP to
render the content and then closes the resultset after rendering.  I
know 'programatically' it would work, but, I'm wondering about
exceptions and making sure that the resultsets get closed.  An example
would be passing the request/response to the JSP, but then an exception
occurs up the chain, does the exception trickle back down through the
filters no matter what to catch and close my JDBC items?

Best Regards,
Jacob Hookom







--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




  1   2   >