RE: Can't view examples

2007-03-27 Thread Propes, Barry L [GCG-NAOT]
were those commented out in the web.xml or server.xml file?

-Original Message-
From: Joe Green [mailto:[EMAIL PROTECTED]
Sent: Monday, March 26, 2007 8:53 PM
To: users@tomcat.apache.org
Subject: Can't view examples


Hi, 

I installed Apache Tomcat/6.0.10 on Win
XP Pro.  Tomcat Web Application Manager
shows status is OK. But when I click on Servlets and JSP Examples link on 
http://127.0.0.1:8080/, I get a 404 error.  I also get 404 errors
when I click on links /examples/, /host-manager and /manager. 

I do something wrong? I didn't get any error during installation. I was 
assuming that
Apache/Tomcat comes with sample examples. Can some
one give me some idea as what is going on? I am new to JSP and Apache/Tomcat.
 
Thanks

joe 







-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Apache and Tomcat bridging - Servlet enabled?

2007-03-27 Thread Propes, Barry L [GCG-NAOT]
sounds like you may have declared the servlet name, but not the servlet mapping?

I've accidentally left that out before on my web.xml file.


-Original Message-
From: Foo Shyn [mailto:[EMAIL PROTECTED]
Sent: Monday, March 26, 2007 9:28 PM
To: Tomcat Users List
Subject: Apache and Tomcat bridging - Servlet enabled?


Hi,

This question suddenly struck me when i'm trying to solve my server problem. 
Here goes:

Server settings: Apache 2 as front, Tomcat 4.1 as back, J2SDK 1.4.2
Let say that i'd configure that Apache so that whenever a request for 
www.abc.com will be redirected to the Tomcat's A context which contain a 
servlet TestServlet. The web.xml is there.

When i access the www.abc.com/TestServlet , the Apache throws me a 404 error 
(not Tomcat), which means that the Apache failed to redirect the request to A 
folder. But when i configure my servlet path as /TestServlet.jsp, and i use the 
path www.abc.com/TestServlet.jsp (not a jsp page!) to access the servlet, i 
manage to do so. 

Is this some settings problem on Apache? or my Tomcat problem?

Thanx.
Regards,
FooShyn

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: connection pool

2007-03-22 Thread Propes, Barry L [GCG-NAOT]
exactly.

-Original Message-
From: Nelson, Tracy M. [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 22, 2007 9:05 AM
To: Tomcat Users List
Subject: RE: connection pool


| From: Gioia, Michael [mailto:[EMAIL PROTECTED]
| Sent: Thursday, 22 March, 2007 08:36
| 
| Barry, how did you have a service stop and start on it's own, with out
| rebooting the machine?

You can probably use the NET START/STOP service-name commands in a script,
and then run that script as a scheduled job (or task in Windows parlance).
-

The information contained in this message is confidential
proprietary property of Nelnet, Inc. and its affiliated 
companies (Nelnet) and is intended for the recipient only.
Any reproduction, forwarding, or copying without the express
permission of Nelnet is strictly prohibited. If you have
received this communication in error, please notify us
immediately by replying to this e-mail.


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: connection pool

2007-03-22 Thread Propes, Barry L [GCG-NAOT]
but it sounds like it works fine all week, and then when he comes in Monday, it 
has stopped. He has to restart Tomcat to reconnect.

Theoretically, shouldn't he run out of connections midweek or sooner if that's 
the case?



-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 22, 2007 12:24 PM
To: Tomcat Users List
Subject: Re: connection pool



I dont use Tomcats built in db pooling, use a different one, but I think the 
problem is not that it drops the connection, because any pool should simply 
reallocate a new one when needed.
I have a feeling you are exhausting all the available connections, and the 
pool cant give you a new one.
Are you releasing the connections after each request???
 If not you will quickly run out of dB connections..



- Original Message - 
From: Gioia, Michael [EMAIL PROTECTED]
To: users@tomcat.apache.org
Sent: Thursday, March 22, 2007 4:01 PM
Subject: connection pool


Hi, I'm still having a problem with tomcat with keeping up the
connection to the database thru the connection pool.



Almost every weekend the database gets bumped and the java app that were
running needs to have tomcat restarted to reconnect to the database thru
the connection pool.  When we come in on Monday tomcat and the database
are up and running, but the app will not connect to the database.



I tried to use a batch file and have it run in scheduler to stop and
start the tomcat service, but it doesn't seem to work it the machine is
logged out.



Is there a way to reestablish the connection so our users don't have to
wait until we come in on Monday to restart tomcat?





MG









-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: requiring multiple roles for access

2007-03-22 Thread Propes, Barry L [GCG-NAOT]
oh, ok. I'd say your solution's pretty plausible.

I've just now had to retool my users table a bit adding a timestamp for auth 
purposes, too.

I've just got the one extra table that allows people to be in multiple 
categories, yet confined to the one role in the users_role table.



-Original Message-
From: Ryan [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 22, 2007 2:39 PM
To: Tomcat Users List
Subject: Re: requiring multiple roles for access


Barry,

This is a good implementation, and yes, it does make sense. I did go with a
different implementation, though, essentially I created a new table that
stores the users previous roles  and timestamp them when the user is
disabled. When they are re-enabled, I just put the role data back into the
roles table so there's no change in their previous access. This way, the JSP
developers don't have to think about it, it just happens in the background.
It's probably not the best implementation, but it'll do ;-).

By the way, I've given up on the role combo login, I was just hoping when I
wrote that one.

Thanks,
Ryan


On 3/22/07, Propes, Barry L [GCG-NAOT] [EMAIL PROTECTED] wrote:

 Hey Ryan,

 I didn't end up catching it, only because the people getting the email
 that would log in to the voting section, it doesn't come into play for
 them.

 In other words, if they get the email, they're already in the DB as a user
 and have the necessary role.


 If I was going to catch it, I'd need to catch it in this JSP, the way I
 wrote it. The architecture I used on this one file was not ideal, as I have
 three select query statements residing within it.

 What I could stand to do, and would do, is catch it in the JSP, but
 probably by the declared string variable I have, called jrole.

 jrole in this case is the one of admin, service, legal, risk, etc.

 So if they're not one of four roles, I need to throw in a catch block for
 the SQL Exception there, otherwise I'd get an exhausted results set error,
 or invalid cursor state, if it can't find the matching role.

 Does this make sense? Or help you any? Sorry if it wasn't of more help.

 Let me know. And let me know moreso the way your site/app is structured;
 for example, who needs to go to a protected area, what roles, etc.

 I don't think you can make it have a dual/double login layer. Wouldn't
 make too much sense anyway as they'd have to use the same combo and that
 would defeat the session purpose anyway.

 -Original Message-
 From: Ryan [mailto:[EMAIL PROTECTED]
 Sent: Thursday, March 22, 2007 9:35 AM
 To: Tomcat Users List
 Subject: Re: requiring multiple roles for access


 Barry,

 Regarding your method below, do you catch this method in JSP or somewhere
 else?

 Thanks,
 Ryan


 On 3/21/07, Propes, Barry L [GCG-NAOT] [EMAIL PROTECTED]
 wrote:
 
  I don't know about disabling users, as I haven't tried something like
  that, and there may be ways of tiering the access in regards to roles,
 which
  I technically haven't tried either.
 
  But what I have is a group of people who absolutely have to access one
  portion, and then some admins who have to access another. But for
 reasons
  you can probably imagine, I certainly don't want it wide open to anyone
 with
  an account. So I've got it gated as such in this manner.
  Does this make sense? Another thing I did was run separate select
 queries
  from the users and approvers table, one I created and linked together
 by a
  unique ID. If someone contained one role, they could access this
 section. If
  not, in another case, an exception is thrown, which I didn't catch
 properly
  right away, but it doesn't let that user into the section.
 
  Let me know if you need more insight into it.
 
  Good luck with it Ryan!
 
  -Original Message-
  From: Ryan [mailto:[EMAIL PROTECTED]
  Sent: Wednesday, March 21, 2007 2:22 PM
  To: Tomcat Users List
  Subject: Re: requiring multiple roles for access
 
 
  Barry,
 
  I'm looking for a way to disable the user by taking them out of one
 role,
  but leaving them in the roles they were in before they were disabled
 (for
  informational purposes). I didn't think it would be possible, but I
 wanted
  to throw it out there in case I missed something. What you are
 suggesting
  may also be suitable.
 
  Thanks,
  Ryan
 
 
  On 3/21/07, Propes, Barry L [GCG-NAOT] [EMAIL PROTECTED]
  wrote:
  
   I know you can assign different roles to an app, and to a user, and
 make
   that user need one role to get to one part and an additional role to
  access
   a separate part of the app, but the entire app? Not sure about that.
  
   I've got people in my users table that have to have multiple roles for
   several tasks within my app. If they only have one role, they're able
 to
  do
   a certain part of the app, but not all of it. Is this what you're
 trying
  to
   accomplish?
  
   -Original Message-
   From: Ryan [mailto:[EMAIL PROTECTED]
   Sent: Wednesday, March 21, 2007 8:39 AM
   To: users

RE: requiring multiple roles for access

2007-03-22 Thread Propes, Barry L [GCG-NAOT]
you betif you want me to send you any sample code or my table structure, 
FWIW, I'll be glad to.


-Original Message-
From: Ryan [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 22, 2007 5:33 PM
To: Tomcat Users List
Subject: Re: requiring multiple roles for access


Yeh, this project is moving pretty fast, so I'm going with some quick
solutions that may or may not be elegant :-) If I get a chance to revisit
this, I'm going to try your solution. Thanks again for all your help. - Ryan


On 3/22/07, Propes, Barry L [GCG-NAOT] [EMAIL PROTECTED] wrote:

 oh, ok. I'd say your solution's pretty plausible.

 I've just now had to retool my users table a bit adding a timestamp for
 auth purposes, too.

 I've just got the one extra table that allows people to be in multiple
 categories, yet confined to the one role in the users_role table.



 -Original Message-
 From: Ryan [mailto:[EMAIL PROTECTED]
 Sent: Thursday, March 22, 2007 2:39 PM
 To: Tomcat Users List
 Subject: Re: requiring multiple roles for access


 Barry,

 This is a good implementation, and yes, it does make sense. I did go with
 a
 different implementation, though, essentially I created a new table that
 stores the users previous roles  and timestamp them when the user is
 disabled. When they are re-enabled, I just put the role data back into the
 roles table so there's no change in their previous access. This way, the
 JSP
 developers don't have to think about it, it just happens in the
 background.
 It's probably not the best implementation, but it'll do ;-).

 By the way, I've given up on the role combo login, I was just hoping when
 I
 wrote that one.

 Thanks,
 Ryan


 On 3/22/07, Propes, Barry L [GCG-NAOT] [EMAIL PROTECTED]
 wrote:
 
  Hey Ryan,
 
  I didn't end up catching it, only because the people getting the email
  that would log in to the voting section, it doesn't come into play for
  them.
 
  In other words, if they get the email, they're already in the DB as a
 user
  and have the necessary role.
 
 
  If I was going to catch it, I'd need to catch it in this JSP, the way I
  wrote it. The architecture I used on this one file was not ideal, as I
 have
  three select query statements residing within it.
 
  What I could stand to do, and would do, is catch it in the JSP, but
  probably by the declared string variable I have, called jrole.
 
  jrole in this case is the one of admin, service, legal, risk, etc.
 
  So if they're not one of four roles, I need to throw in a catch block
 for
  the SQL Exception there, otherwise I'd get an exhausted results set
 error,
  or invalid cursor state, if it can't find the matching role.
 
  Does this make sense? Or help you any? Sorry if it wasn't of more help.
 
  Let me know. And let me know moreso the way your site/app is structured;
  for example, who needs to go to a protected area, what roles, etc.
 
  I don't think you can make it have a dual/double login layer. Wouldn't
  make too much sense anyway as they'd have to use the same combo and that
  would defeat the session purpose anyway.
 
  -Original Message-
  From: Ryan [mailto:[EMAIL PROTECTED]
  Sent: Thursday, March 22, 2007 9:35 AM
  To: Tomcat Users List
  Subject: Re: requiring multiple roles for access
 
 
  Barry,
 
  Regarding your method below, do you catch this method in JSP or
 somewhere
  else?
 
  Thanks,
  Ryan
 
 
  On 3/21/07, Propes, Barry L [GCG-NAOT] [EMAIL PROTECTED]
  wrote:
  
   I don't know about disabling users, as I haven't tried something like
   that, and there may be ways of tiering the access in regards to roles,
  which
   I technically haven't tried either.
  
   But what I have is a group of people who absolutely have to access one
   portion, and then some admins who have to access another. But for
  reasons
   you can probably imagine, I certainly don't want it wide open to
 anyone
  with
   an account. So I've got it gated as such in this manner.
   Does this make sense? Another thing I did was run separate select
  queries
   from the users and approvers table, one I created and linked
 together
  by a
   unique ID. If someone contained one role, they could access this
  section. If
   not, in another case, an exception is thrown, which I didn't catch
  properly
   right away, but it doesn't let that user into the section.
  
   Let me know if you need more insight into it.
  
   Good luck with it Ryan!
  
   -Original Message-
   From: Ryan [mailto:[EMAIL PROTECTED]
   Sent: Wednesday, March 21, 2007 2:22 PM
   To: Tomcat Users List
   Subject: Re: requiring multiple roles for access
  
  
   Barry,
  
   I'm looking for a way to disable the user by taking them out of one
  role,
   but leaving them in the roles they were in before they were disabled
  (for
   informational purposes). I didn't think it would be possible, but I
  wanted
   to throw it out there in case I missed something. What you are
  suggesting
   may also be suitable.
  
   Thanks,
   Ryan

RE: A disk directory context without cache

2007-03-21 Thread Propes, Barry L [GCG-NAOT]
all of mine look like this, with no slashes on docBase

Context path=/examples docBase=examples debug=0

in fact...I had a problem before when I did put slashes in the docBase 
attribute.

-Original Message-
From: Artur Rataj [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 21, 2007 9:23 AM
To: Tomcat Users List
Subject: Re: A disk directory context without cache


Please help me. I tried this:

Context path=/disk docBase=/home/lib/disk debug=0
 reloadable=true
/Context

with various combinations of slashes, with a symlink etc. it all gives
404 when trying

http://address/disk

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: requiring multiple roles for access

2007-03-21 Thread Propes, Barry L [GCG-NAOT]
yeah and you might even add another table to tie it in, too. I've done that as 
well.

Tomcat requires the users and user_roles tables, but that doesn't inhibit you 
from customizing it further if needed.

-Original Message-
From: Ryan [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 21, 2007 2:28 PM
To: Tomcat Users List
Subject: Re: requiring multiple roles for access


Chuck,

I think you and Barry are correct, I will probably to define another role
for this purpose and segregate different parts of the application.

Thanks,
Ryan


On 3/21/07, Caldarale, Charles R [EMAIL PROTECTED] wrote:

  From: Ryan [mailto:[EMAIL PROTECTED]
  Subject: requiring multiple roles for access
 
  I would like to require a user to belong to two roles to
  access a certain application (i.e. user must belong to role1
  AND role2 to access). I've tried the following in my web.xml
auth-constraint
 role-namerole1/role-name
 role-namerole2/role-name
/auth-constraint
 
  Unfortunately, this doesn't seem to work (it seems to allow
  role1 OR role2).

 As expected; to quote from the servlet spec:

 A user must be a member of at least one of the named roles to be
 permitted to perform the constrained requests.

  Is what I'm trying to do possible??

 The easiest way might be just to define a separate role for this purpose
 rather than trying to piggy-back off combinations.

 - Chuck



 THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
 MATERIAL and is thus for use only by the intended recipient. If you
 received this in error, please contact the sender and delete the e-mail
 and its attachments from all computers.

 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Unable to compile class for JSP

2007-03-20 Thread Propes, Barry L [GCG-NAOT]
doesn't seem like much to go onwhich example did you use and did you look 
in the work folder to see what the compiled servlets were referring to?

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 20, 2007 11:21 AM
To: users@tomcat.apache.org
Subject: Unable to compile class for JSP


Hi,

This might be a silly question, but it seems to be quite a common
problem (lots or links in google). But none of the offered solutions so
far worked.

So I am asking the people who probably know!

 

I installed tomcat 4.1.29 with JDK 1.4.2

 

Trying the JSP examples coming with it, I get the following message:

 

type Exception report

message 

description The server encountered an internal error () that prevented
it from fulfilling this request.

exception 

org.apache.jasper.JasperException: Unable to compile class for JSP
 
An error occurred at line: -1 in the jsp file: null
 
Generated servlet error:
[javac] Compiling 1 source file
 
 
 
at
org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHa
ndler.java:130)
at
org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.ja
va:293)
at
org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:353)
at
org.apache.jasper.compiler.Compiler.compile(Compiler.java:370)
at
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.ja
va:473)
at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.ja
va:190)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
at
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
tionFilterChain.java:247)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
erChain.java:193)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValv
e.java:256)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvokeNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4
80)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValv
e.java:191)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvokeNext(StandardPipeline.java:643)
at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(Authenticator
Base.java:494)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvokeNext(StandardPipeline.java:641)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4
80)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:241
7)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java
:180)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvokeNext(StandardPipeline.java:643)
at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherVa
lve.java:171)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvokeNext(StandardPipeline.java:641)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java
:172)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvokeNext(StandardPipeline.java:641)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4
80)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.
java:174)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvokeNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4
80)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:193)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:78
1)
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processC
onnection(Http11Protocol.java:549)
at
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:58
9)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool
.java:666)
at java.lang.Thread.run(Unknown Source)



Apache Tomcat/4.1.29


 

Thanks for help!

 

Peter

 

 

 


-
To start a new topic, e-mail: users@tomcat.apache.org
To 

4.x series difference

2007-03-20 Thread Propes, Barry L [GCG-NAOT]
Hello users,
 
A while back I had posted about running different versions on a desktop to see 
if it caused conflicts, created problems and so on.
 
The versions in question are 4.0.1 and 4.1.3. For a lengthy time, I had used 
4.0.1 in my dev. environment and 4.1.3 on our production server, both of these 
servers in question being Win2K.
 
Several of you replied back and said there should be no problem, and while on 
version wouldn't do DBCP and the other would allow for it, there seems like 
little difference.
 
One thing that previously worked in both environments and now seems to not work 
ok is the structure of a Prepared Statement.
 
I'll create one like I always have, and now Oracle seems to see the semicolon 
ending the SQL statement as an illegal character, whereas before it did not.
 
I'm not saying or implying this is a Tomcat deal, but I wonder why it would 
work before and now suddenly would not.
 
Basic prepared statement might look like this:
 
   String prepquer = UPDATE users_dev SET user_name = ?, USER_PASS = ?, 
USER_TIMSTMP = SYSDATE, USER_DBFLGAG = 0 +
WHERE user_name = ?;;
   PreparedStatement preps = connection.prepareStatement(prepquer);
 
The console now gives me this error, 
java.sql.SQLException: ORA-00911: invalid character.
 
I say now, this behavior actually started coincidentally after I started using 
4.1.3 in my dev. environment.
 
If anyone can shed light on this here, feel free. Maybe I should address it in 
the Oracle forum, which I'll probably go ahead and do.
 
But if it's concretely not Tomcat, let me know that, too.
 
Thanks!


RE: 4.x series difference

2007-03-20 Thread Propes, Barry L [GCG-NAOT]
Ok, that might be the problem, but I wonder why now.


-Original Message-
From: Edmund Urbani [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 20, 2007 1:53 PM
To: Tomcat Users List
Subject: Re: 4.x series difference


Propes, Barry L [GCG-NAOT] wrote:
 Hello users,
  
 A while back I had posted about running different versions on a desktop to 
 see if it caused conflicts, created problems and so on.
  
 The versions in question are 4.0.1 and 4.1.3. For a lengthy time, I had used 
 4.0.1 in my dev. environment and 4.1.3 on our production server, both of 
 these servers in question being Win2K.
  
 Several of you replied back and said there should be no problem, and while on 
 version wouldn't do DBCP and the other would allow for it, there seems like 
 little difference.
  
 One thing that previously worked in both environments and now seems to not 
 work ok is the structure of a Prepared Statement.
  
 I'll create one like I always have, and now Oracle seems to see the semicolon 
 ending the SQL statement as an illegal character, whereas before it did not.
  
 I'm not saying or implying this is a Tomcat deal, but I wonder why it would 
 work before and now suddenly would not.
  
 Basic prepared statement might look like this:
  
String prepquer = UPDATE users_dev SET user_name = ?, USER_PASS = ?, 
 USER_TIMSTMP = SYSDATE, USER_DBFLGAG = 0 +
 WHERE user_name = ?;;
PreparedStatement preps = connection.prepareStatement(prepquer);
  
 The console now gives me this error, 
 java.sql.SQLException: ORA-00911: invalid character.
  
 I say now, this behavior actually started coincidentally after I started 
 using 4.1.3 in my dev. environment.
  
 If anyone can shed light on this here, feel free. Maybe I should address it 
 in the Oracle forum, which I'll probably go ahead and do.
  
 But if it's concretely not Tomcat, let me know that, too.
  
 Thanks!
 

Not sure whether this has anything to do with your problem, but I think it's 
odd 
that your SQL statement has a trailing semicolon. I never use semicolons with 
JDBC. So I thought maybe that's the invalid character. ... not that this 
would 
explain why you get this error now and not earlier...

Cheers,
  Edmund

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: 4.x series difference

2007-03-20 Thread Propes, Barry L [GCG-NAOT]
ok, strangely now after removing that semicolon it works as it did/should.

Might have been an old driver I was using before that allowed that I suppose.

-Original Message-
From: Edmund Urbani [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 20, 2007 1:53 PM
To: Tomcat Users List
Subject: Re: 4.x series difference


Propes, Barry L [GCG-NAOT] wrote:
 Hello users,
  
 A while back I had posted about running different versions on a desktop to 
 see if it caused conflicts, created problems and so on.
  
 The versions in question are 4.0.1 and 4.1.3. For a lengthy time, I had used 
 4.0.1 in my dev. environment and 4.1.3 on our production server, both of 
 these servers in question being Win2K.
  
 Several of you replied back and said there should be no problem, and while on 
 version wouldn't do DBCP and the other would allow for it, there seems like 
 little difference.
  
 One thing that previously worked in both environments and now seems to not 
 work ok is the structure of a Prepared Statement.
  
 I'll create one like I always have, and now Oracle seems to see the semicolon 
 ending the SQL statement as an illegal character, whereas before it did not.
  
 I'm not saying or implying this is a Tomcat deal, but I wonder why it would 
 work before and now suddenly would not.
  
 Basic prepared statement might look like this:
  
String prepquer = UPDATE users_dev SET user_name = ?, USER_PASS = ?, 
 USER_TIMSTMP = SYSDATE, USER_DBFLGAG = 0 +
 WHERE user_name = ?;;
PreparedStatement preps = connection.prepareStatement(prepquer);
  
 The console now gives me this error, 
 java.sql.SQLException: ORA-00911: invalid character.
  
 I say now, this behavior actually started coincidentally after I started 
 using 4.1.3 in my dev. environment.
  
 If anyone can shed light on this here, feel free. Maybe I should address it 
 in the Oracle forum, which I'll probably go ahead and do.
  
 But if it's concretely not Tomcat, let me know that, too.
  
 Thanks!
 

Not sure whether this has anything to do with your problem, but I think it's 
odd 
that your SQL statement has a trailing semicolon. I never use semicolons with 
JDBC. So I thought maybe that's the invalid character. ... not that this 
would 
explain why you get this error now and not earlier...

Cheers,
  Edmund

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: deploying problem

2007-03-20 Thread Propes, Barry L [GCG-NAOT]
usually in the root of the tomcat directory in a folder called logs. At least 
older versions are.

-Original Message-
From: Deano!! [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 20, 2007 3:11 PM
To: users@tomcat.apache.org
Subject: Re: deploying problem



well im a tomcat beginner so where would i find the logs? i realise that
sounds like a stupid question but i have only recently starting trying to
use tomcat

Rob Kirkbride-2 wrote:
 
 Deano,
 
 What does the log file have to say?
 
 Rob
 
 Deano!! wrote:
 to tell the truth i really dont truly know, when in the tomcat manager it
 says that it is running, but when i go into it i get that error message,
 i
 then went into full server status and when i go to my apps part its added
 a
 count to the error count in the /faces/ part so i wondered if maybe there
 is
 a library/module that netbeans 5.5's bundled tomcat has that tomcat 5.5
 used
 in fedora doesn't

 http://deansserver.serveftp.com:8080/InterfacesHCI   

   
 
 
 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/deploying-problem-tf3433368.html#a9580682
Sent from the Tomcat - User mailing list archive at Nabble.com.


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: 4.x series difference

2007-03-20 Thread Propes, Barry L [GCG-NAOT]
yeah, Chris, at one point I did update the Oracle driver, and looking back, I 
believe that was the difference.

In most cases I'm running stored procedures anyway, but occasionally I may be 
running a small prepared statement.

-Original Message-
From: Christopher Schultz [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 20, 2007 3:12 PM
To: Tomcat Users List
Subject: Re: 4.x series difference


-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Barry,

Propes, Barry L [GCG-NAOT] wrote:
 One thing that previously worked in both environments and now seems 
 to not work ok is the structure of a Prepared Statement.
 
 I'll create one like I always have, and now Oracle seems to see the 
 semicolon ending the SQL statement as an illegal character, whereas 
 before it did not.

Have you upgraded your Oracle driver in the process?

I have never put semi-colons in any of my prepared statements, since
it's not actually part of the statement. Usually, the semi-colon is the
statement delimiter for a command-line interface. Since only a single
statement can be executed (right?) through a prepared statement, I would
just remove the semi-colon altogether, since it's not necessary (or even
correct?).

- -chris
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.7 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGAEAj9CaO5/Lv0PARAsjsAJ0YEvRWS5yP2ZeXu4WQFAq1edXhBQCeMtJc
6kXOQpEcyg1XTHiymsgkS6s=
=qSr+
-END PGP SIGNATURE-

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: connection pool

2007-03-19 Thread Propes, Barry L [GCG-NAOT]
I wonder if you have some bad thread or something hanging in Tomcat causing 
this.

Any way you have Tomcat stop and restart on its own?

We do that on our Win platform as a service -- ostensobly in part to avoid that 
type of thing.

-Original Message-
From: Gioia, Michael [mailto:[EMAIL PROTECTED]
Sent: Monday, March 19, 2007 10:52 AM
To: users@tomcat.apache.org
Subject: connection pool


Hi, I'm new to tomcat and have a problem with keeping up the connection
to the database thru the connection pool.

 

Almost every weekend the database gets bumped and the java app that were
running needs to have tomcat restarted to reconnect to the database thru
the connection pool.  When we come in on Monday tomcat and the database
are up and running, but the app will not connect to the database.

 

Is there a way to reestablish the connection so our users don't have to
wait until we come in on Monday to restart tomcat?

 

Many Thanks,

MG


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: connection pool

2007-03-19 Thread Propes, Barry L [GCG-NAOT]
is testOnBorrow an attribute in the xml config? I haven't seen that in my 
version, coincidentally.

-Original Message-
From: Tim Lucia [mailto:[EMAIL PROTECTED]
Sent: Monday, March 19, 2007 11:15 AM
To: 'Tomcat Users List'
Subject: RE: connection pool


Do you have a validation query?  Is testOnBorrow set to true?  Doing both of
these things will force the pool to really close and really re-open any
connection which fails the validation query.

Tim


 -Original Message-
 From: Piwoni, Andre [mailto:[EMAIL PROTECTED]
 Sent: Monday, March 19, 2007 12:04 PM
 To: Tomcat Users List
 Subject: RE: connection pool
 
 I have the same problem. Ideally, there shouldn't be any broken
 connections in the pool. When needed
 connection should be created if database is up and running. This doesn't
 seem to be the case.
 
 -Original Message-
 From: Gioia, Michael [mailto:[EMAIL PROTECTED]
 Sent: Monday, March 19, 2007 8:52 AM
 To: users@tomcat.apache.org
 Subject: connection pool
 
 Hi, I'm new to tomcat and have a problem with keeping up the connection
 to the database thru the connection pool.
 
 
 
 Almost every weekend the database gets bumped and the java app that were
 running needs to have tomcat restarted to reconnect to the database thru
 the connection pool.  When we come in on Monday tomcat and the database
 are up and running, but the app will not connect to the database.
 
 
 
 Is there a way to reestablish the connection so our users don't have to
 wait until we come in on Monday to restart tomcat?
 
 
 
 Many Thanks,
 
 MG
 
 
 --
 
 
 This email is confidential and may be legally privileged.
 
 It is intended solely for the addressee. Access to this email by anyone
 else, unless expressly approved by the sender or an authorized addressee,
 is unauthorized.
 
 If you are not the intended recipient, any disclosure, copying,
 distribution or any action omitted or taken in reliance on it, is
 prohibited and may be unlawful. If you believe that you have received this
 email in error, please contact the sender, delete this e-mail and destroy
 all copies.
 
 ==
 
 
 
 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Server DB Connects are very slow after restart

2007-03-16 Thread Propes, Barry L [GCG-NAOT]
we had similar connection problems with Oracle here.

At first I changed drivers, which I thought would help, then while I was 
furiously trying to implement connection pooling, which I ended up doing, we 
discovered there were big problems with the network connection to Oracle, as 
well as the listeners cache on the DB being full.

They rebooted the oracle server and all was immediately  well. Might see if 
they can try that where you are.

-Original Message-
From: Peter Neu [mailto:[EMAIL PROTECTED]
Sent: Friday, March 16, 2007 6:04 AM
To: 'Tomcat Users List'
Subject: Server DB Connects are very slow after restart


Hello,

I have trouble with my tomcat server 5.5.9, java 1.5 and oracle db 9i. 
CATALINA_OPTS=-Xmx1900m -Xms256m -XX:MaxPermSize=256m
-XX:ReservedCodeCacheSize=64m -Dcom.sun.management.jmxremote

After the restart of the server the db connects from my webapps are very
slow. I can't see why no trace in the logs, enough physical memory 

The log file is not too big. What can I check to find out what is wrong?


Cheers,
Pete






-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Server DB Connects are very slow after restart

2007-03-16 Thread Propes, Barry L [GCG-NAOT]
I'm almost positive we did that (I did that); contributed to that, though not 
alone.

We may have had some cursor leaks as well. Rebooting alone didn't 
sufficethey did tweak some stuff to how it handles incoming connections.
I imagine they either hardcoded some IP addresses as acceptable always, so that 
the DB listeners would always see those.
I think that was a big problem, was that out of all 32 listeners they had, two 
recognized the IP address, the rest either had run out of memory or maybe the 
cursor leaks potentially caused them to run out of memory?

-Original Message-
From: Christopher Schultz [mailto:[EMAIL PROTECTED]
Sent: Friday, March 16, 2007 10:03 AM
To: Tomcat Users List
Subject: Re: Server DB Connects are very slow after restart


-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

All,

Propes, Barry L [GCG-NAOT] wrote:
 we had similar connection problems with Oracle here.
 
 At first I changed drivers, which I thought would help, then while I
 was furiously trying to implement connection pooling, which I ended
 up doing, we discovered there were big problems with the network
 connection to Oracle, as well as the listeners cache on the DB being
 full.
 
 They rebooted the oracle server and all was immediately  well. Might
 see if they can try that where you are.

If rebooting the database server worked, you might be leaking cursors or
even connections. IIRC, Oracle won't release a cursor on the server
unless you actually call ResultSet.close. So, even if you don't have a
connection leak, you still might have a cursor leak.

And, of course, if you have a connection leak -- even one that doesn't
snowball over time... like if you have one that runs on startup only but
gets leaked -- the server will never drop that connection (at least,
this was the behavior of Oracle last time I used it with Java).
Connections on the server side require obscene amounts of memory, and
you can really bring your Oracle server to its knees with leaky
connections and/or cursors.

Maybe that doesn't help, but I figured I'd point it out, anyway.

- -chris

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.7 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFF+rGa9CaO5/Lv0PARAqfMAJ0XzFWKZ+3enY0ge6YPBogaMLHAeACfUmmX
nb0jR7W/j1g7TFwug8RaKRw=
=fORQ
-END PGP SIGNATURE-

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Quick Question for TomCat Gurus

2007-03-15 Thread Propes, Barry L [GCG-NAOT]
change up your catalina.bat or.sh file to point to the JDK 1.6 version

set JAVA_HOME=C:\j2sdk1.4.0

I'm using an older version here. This is from my catalina.bat file

although not sure if TC 4.1 will work well with that JDK or not.

-Original Message-
From: David Smith [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 15, 2007 10:59 AM
To: Tomcat Users List
Subject: Re: Quick Question for TomCat Gurus


Somewhere in the execution path you still have java 1.4.2.  Check your 
PATH environment variable -- the first folder that contains java.exe 
will be the one that returns. 

As to what jdk tomcat 4.1 is running with, check the manager webapp 
(http://localhost:8080/manager/html) and adjust the start/stop scripts 
if necessary.

The exception cited below has to do with a jsp not finding a bean 
instance with the name managerMenu in the page context, request, session 
or servlet context.  I'm guessing it's supposed to be run after some 
other servlet or filter code that adds this to one of the mentioned scopes.

--David

Bruno Vilardo wrote:

 Hello All,

 Tomcat 4.1
 Suse Linux Enterprise Server
 Java 1.6.0

 Is there any issue using Tomcat 4.1 with Java 1.6.0?

 Our System Admin has installed the Java 1.6.0 but when running the java
 -version it shows a different java version as below:

 $java -version
 java version 1.4.2_13
 Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_13-b06)
 Java HotSpot(TM) Client VM (build 1.4.2_13-b06, mixed mode)

 I also found some messages in the localhost.log as below:

 more localhost_log.2007-03-15.txt
 2007-03-15 11:18:42 StandardWrapperValve[jsp]: Servlet.service() for 
 servlet
 jsp threw exception
 javax.servlet.ServletException: Cannot find bean managerMenu in any scope
at org.apache.jasper.runtime.PageContextImpl.handlePageException(
 PageContextImpl.java:495)
at org.apache.jsp.displaymenudetail_jsp._jspService
 (displaymenudetail_jsp.java:126)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java
 :92)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:809)
at org.apache.jasper.servlet.JspServletWrapper.service(
 JspServletWrapper.java:162)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(
 JspServlet.java:240)
at 
 org.apache.jasper.servlet.JspServlet.service(JspServlet.java:187)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:809)
at 
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
 ApplicationFilterChain.j
 ava:200)

 Does anybody know what this could be?

 Thanks a lot in advance!!!

 Best Regards,

 Bruno



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: JSP page not updated on each request

2007-03-15 Thread Propes, Barry L [GCG-NAOT]
I've also noticed in my apps sometimes that items with javascript references 
either get so deeply cached or are not recognized until I stop and restart 
Tomcat.

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 15, 2007 8:14 AM
To: Tomcat Users List
Subject: Re: JSP page not updated on each request


Mmmm, dont know I think the browser should be picking up file changes, but 
if you want to make sure the browser doesnt cache, then if I remember 
correctly search for NO-CACHE and set the headers returned, the browser will 
reload every time. Note that headers are different for different browsers so 
you have to set a few headers... google will tell you.

Note that when you developing, I've noticed if you leave the browser open, 
it may still display previous page... but it doesnt happen once deployed.

Other thing that maybe catching you is that you changing something in the 
servlet INIT routine... and that somehow impacts on your JSP pages say thru 
a bean. That wont reflect until you stop and start tomcat..INIT runs once at 
start up.

good luck

- Original Message - 
From: pkumar [EMAIL PROTECTED]
To: users@tomcat.apache.org
Sent: Thursday, March 15, 2007 9:39 AM
Subject: JSP page not updated on each request



 Hello, The JSP pages in my project is not showing the updated one upon 
 each
 request..Its showing the old one and only when i press the refresh, its
 showing the updated one...I believe this is the problem with Tomcat..Can
 someone help.
 Thanks in advance
 Pradeep

 -- 
 View this message in context: 
 http://www.nabble.com/JSP-page-not-updated-on-each-request-tf3406783.html#a9489775
 Sent from the Tomcat - User mailing list archive at Nabble.com.


 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]

 


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Quick Question for TomCat Gurus

2007-03-15 Thread Propes, Barry L [GCG-NAOT]
ok, sorry about that.

-Original Message-
From: David Smith [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 15, 2007 11:22 AM
To: Tomcat Users List
Subject: Re: Quick Question for TomCat Gurus


Barry -- what you suggest only works on Windows boxes and only if using 
the *.bat files.  The OP has already stated this is a linux box: Suse 
Linux Enterprise Server

Not knowing how the OP starts tomcat, it's hard to give solid advice on 
the best method for switching JDKs.


--David

Propes, Barry L [GCG-NAOT] wrote:

change up your catalina.bat or.sh file to point to the JDK 1.6 version

set JAVA_HOME=C:\j2sdk1.4.0

I'm using an older version here. This is from my catalina.bat file

although not sure if TC 4.1 will work well with that JDK or not.

-Original Message-
From: David Smith [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 15, 2007 10:59 AM
To: Tomcat Users List
Subject: Re: Quick Question for TomCat Gurus


Somewhere in the execution path you still have java 1.4.2.  Check your 
PATH environment variable -- the first folder that contains java.exe 
will be the one that returns. 

As to what jdk tomcat 4.1 is running with, check the manager webapp 
(http://localhost:8080/manager/html) and adjust the start/stop scripts 
if necessary.

The exception cited below has to do with a jsp not finding a bean 
instance with the name managerMenu in the page context, request, session 
or servlet context.  I'm guessing it's supposed to be run after some 
other servlet or filter code that adds this to one of the mentioned scopes.

--David

Bruno Vilardo wrote:

  

Hello All,

Tomcat 4.1
Suse Linux Enterprise Server
Java 1.6.0

Is there any issue using Tomcat 4.1 with Java 1.6.0?

Our System Admin has installed the Java 1.6.0 but when running the java
-version it shows a different java version as below:

$java -version
java version 1.4.2_13
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_13-b06)
Java HotSpot(TM) Client VM (build 1.4.2_13-b06, mixed mode)

I also found some messages in the localhost.log as below:

more localhost_log.2007-03-15.txt
2007-03-15 11:18:42 StandardWrapperValve[jsp]: Servlet.service() for 
servlet
jsp threw exception
javax.servlet.ServletException: Cannot find bean managerMenu in any scope
   at org.apache.jasper.runtime.PageContextImpl.handlePageException(
PageContextImpl.java:495)
   at org.apache.jsp.displaymenudetail_jsp._jspService
(displaymenudetail_jsp.java:126)
   at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java
:92)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:809)
   at org.apache.jasper.servlet.JspServletWrapper.service(
JspServletWrapper.java:162)
   at org.apache.jasper.servlet.JspServlet.serviceJspFile(
JspServlet.java:240)
   at 
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:187)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:809)
   at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
ApplicationFilterChain.j
ava:200)

Does anybody know what this could be?

Thanks a lot in advance!!!

Best Regards,

Bruno





-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

  



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Is there a better way to do this?

2007-03-14 Thread Propes, Barry L [GCG-NAOT]
even if the server.xml file's reloadable is set to true?

reloadable=true in the Context param?

-Original Message-
From: Steveswt [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 14, 2007 12:15 PM
To: users@tomcat.apache.org
Subject: Is there a better way to do this?



Hi, 

I am one of the web developers for a company that uses java technology. I've
noticed my changes (jsp's) don't take into effect unless I remove the file
from the server, refesh the browsers like 5 times till i get a 404, then
place the new file back on the server.

I assume the changes dont take effect because it is reading the old class
file that tomcat created. Is there a better way to update the new changes
immediately??

If im posting in the wrong area, please direct me to the best place :)

Thanks!
-- 
View this message in context: 
http://www.nabble.com/Is-there-a-better-way-to-do-this--tf3403561.html#a9479073
Sent from the Tomcat - User mailing list archive at Nabble.com.


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Classpath Problem

2007-03-14 Thread Propes, Barry L [GCG-NAOT]
might need an updated jar file for that.

Might have been included with one package earlier and is now in another one.

-Original Message-
From: Mark Hale [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 14, 2007 2:29 PM
To: users@tomcat.apache.org
Subject: Classpath Problem


Hi there.

I am new to Tomcat and have installed Tomcat6 and JDK1.5 on Windows.
I get Tomcat to run and can include my own JSP's.  However, whenever I
use classes like HashMap I get a compiler error (HashMap cannot be
resolved to a type).

I've dug all through the web, documentation and mail archives.

Does anyone have a url that will help or information for a newbie on
why classes in what would be in j2se are not available to compile?

Another piece of info:  my jvm in tomcat6w is set to:

C:\Program Files\Java\jdk1.5.0_11\jre\bin\server\jvm.dll

Thanks!

Mark

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: The return type is incompatible with JspSourceDependent.getDependants()

2007-03-01 Thread Propes, Barry L [GCG-NAOT]
might be reflective of the JDK you're using and how that generated JSP was 
being written. What method, package was being used, etc.

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 01, 2007 3:29 PM
To: Tomcat Users List
Subject: The return type is incompatible with
JspSourceDependent.getDependants()


All,
We just upgraded Tomcat to 5. We have several web
apps that are on this machine. Of the several that are
there only one doesn't work after the upgrade. This is
the error we recieve when we try and bring up the
default page for the site:

HTTP Status 500 - 



type Exception report


message 

description The server encountered an internal error
() that prevented it from fulfilling this request.

exception 

org.apache.jasper.JasperException: Unable to compile
class for JSP

Generated servlet error:
The return type is incompatible with
JspSourceDependent.getDependants()



org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:512)

org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:377)

org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)

org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)

javax.servlet.http.HttpServlet.service(HttpServlet.java:810)

org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)



I am unclear as to what this really means. If anyone
could point me to something to try, I would greatly
appreciate it.

Thank you so much.
B

 




 

Bored stiff? Loosen up... 
Download and play hundreds of games for free on Yahoo! Games.
http://games.yahoo.com/games/front

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: connection pool - DBCP error

2007-02-27 Thread Propes, Barry L [GCG-NAOT]
Daniel,

I scoured the APIs for that method and couldn't find anywhere, but I added to 
my server.xml file any way.

Without something like lamda probe, would I see any connections dropping, or 
would I need a third party tool like that to see it logged?

ORwould I just not get any errors like before and assume that that addition 
and revision has successfully addressed it?

Thanks!

Barry

-Original Message-
From: Stephens, Daniel [mailto:[EMAIL PROTECTED]
Sent: Monday, February 26, 2007 4:55 PM
To: Tomcat Users List
Subject: RE: connection pool - DBCP error


I had to add the following before I saw that behavior. You'll have to check
the API, to make sure the minEvictableIdleTimeMillis and
timeBetweenEvictionRunsMillis are set correctly for your pool. But once I
added these, I would see abandoned connections get dropped. 

I put these settings in, because I found that the DBCP pool only evalutes
connections on a check-in/out basis.

 
parameternameminEvictableIdleTimeMillis/namevalue5000/value/param
eter
 
parameternametimeBetweenEvictionRunsMillis/namevalue1/value/p
arameter
 parameternametestWhileIdle/namevaluetrue/value/parameter
 parameternamevalidationQuery/namevalueselect count(*) from
dual/value/parameter


-Original Message-
From: Propes, Barry L [GCG-NAOT] [mailto:[EMAIL PROTECTED] 
Sent: Monday, February 26, 2007 3:48 PM
To: Tomcat Users List
Subject: connection pool - DBCP error

I am getting a slight error with regards to my connection pool
configuration.
 
I may not have totally closed the connection properly, but shouldn't the
following account for it?
 
 

AbandonedObjectPool is used (
[EMAIL PROTECTED])
 
   LogAbandoned: true
   RemoveAbandoned: true
   RemoveAbandonedTimeout: 60

 
in other words, if I have the following configured like so, 
 
   parameter
 namemaxWait/name
 value7000/value
   /parameter
 parameter
 nameremoveAbandoned/name
 valuetrue/value
 /parameter
 parameter
 nameremoveAbandonedTimeout/name
 value60/value
 /parameter
 parameter
 namelogAbandoned/name
 valuetrue/value
 /parameter
 
shouldn't the RemoveAbandoned params account for an open or vagrant
connection and kill it off properly?
Am I wrong in the assumption this attribute should have?
 
Thanks,
 
Barry


-
The information in this message may be proprietary and/or
confidential, and protected from disclosure.  If the reader of this
message is not the intended recipient, or an employee or agent
responsible for delivering this message to the intended recipient,
you are hereby notified that any dissemination, distribution or
copying of this communication is strictly prohibited. If you have
received this communication in error, please notify First Data
immediately by replying to this message and deleting it from your
computer.


RE: connection pool - DBCP error

2007-02-27 Thread Propes, Barry L [GCG-NAOT]
ok, thanks, David!

-Original Message-
From: David Smith [mailto:[EMAIL PROTECTED]
Sent: Tuesday, February 27, 2007 1:06 PM
To: Tomcat Users List
Subject: Re: connection pool - DBCP error


The pooling in tomcat is a refactored copy of Commons-DBCP
(http://jakarta.apache.org/commons/dbcp).  See the javadocs for
org.apache.commons.dbcp.BasicDataSource for all the options settable. 
minEvictableIdleTimeMillis= translates to setMinEvictableIdleTimeMillis().

--David

Propes, Barry L [GCG-NAOT] wrote:

Daniel,

I scoured the APIs for that method and couldn't find anywhere, but I added to 
my server.xml file any way.

Without something like lamda probe, would I see any connections dropping, or 
would I need a third party tool like that to see it logged?

ORwould I just not get any errors like before and assume that that 
addition and revision has successfully addressed it?

Thanks!

Barry

-Original Message-
From: Stephens, Daniel [mailto:[EMAIL PROTECTED]
Sent: Monday, February 26, 2007 4:55 PM
To: Tomcat Users List
Subject: RE: connection pool - DBCP error


I had to add the following before I saw that behavior. You'll have to check
the API, to make sure the minEvictableIdleTimeMillis and
timeBetweenEvictionRunsMillis are set correctly for your pool. But once I
added these, I would see abandoned connections get dropped. 

I put these settings in, because I found that the DBCP pool only evalutes
connections on a check-in/out basis.

 
parameternameminEvictableIdleTimeMillis/namevalue5000/value/param
eter
 
parameternametimeBetweenEvictionRunsMillis/namevalue1/value/p
arameter
 parameternametestWhileIdle/namevaluetrue/value/parameter
 parameternamevalidationQuery/namevalueselect count(*) from
dual/value/parameter


-Original Message-
From: Propes, Barry L [GCG-NAOT] [mailto:[EMAIL PROTECTED] 
Sent: Monday, February 26, 2007 3:48 PM
To: Tomcat Users List
Subject: connection pool - DBCP error

I am getting a slight error with regards to my connection pool
configuration.
 
I may not have totally closed the connection properly, but shouldn't the
following account for it?
 
 

AbandonedObjectPool is used (
[EMAIL PROTECTED])
 
   LogAbandoned: true
   RemoveAbandoned: true
   RemoveAbandonedTimeout: 60

 
in other words, if I have the following configured like so, 
 
   parameter
 namemaxWait/name
 value7000/value
   /parameter
 parameter
 nameremoveAbandoned/name
 valuetrue/value
 /parameter
 parameter
 nameremoveAbandonedTimeout/name
 value60/value
 /parameter
 parameter
 namelogAbandoned/name
 valuetrue/value
 /parameter
 
shouldn't the RemoveAbandoned params account for an open or vagrant
connection and kill it off properly?
Am I wrong in the assumption this attribute should have?
 
Thanks,
 
Barry


-
The information in this message may be proprietary and/or
confidential, and protected from disclosure.  If the reader of this
message is not the intended recipient, or an employee or agent
responsible for delivering this message to the intended recipient,
you are hereby notified that any dissemination, distribution or
copying of this communication is strictly prohibited. If you have
received this communication in error, please notify First Data
immediately by replying to this message and deleting it from your
computer.
  



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: j_security_check

2007-02-27 Thread Propes, Barry L [GCG-NAOT]
I connect to Oracle, but mine's configured slightly different.

in the server.xml file,

connectionName=user_name
connectionPassword=password
userTable=users userNameCol=user_name userCredCol=user_pass
userRoleTable=user_roles roleNameCol=role_name/

I have an underscore between mine -- on the roleNameCol value. Does j_security 
check require that?


And are you also configuring this within the server.xml file as well as the 
web.xml file?

I'm running TC 4.1.3 and it requires it there, too...maybe not for your version.

Good luck!


-Original Message-
From: Wade Little [mailto:[EMAIL PROTECTED]
Sent: Tuesday, February 27, 2007 2:37 PM
To: users@tomcat.apache.org
Subject: j_security_check


I have tried all I can to setup Netbeans/Tomcat to use
postgre for my user auth via J_security_check by
talking with my Postgre DBcan anyone review the
following files and let me know if I have done
anything wrong.  I verified I can connect via a JSP
and return a result.  But I cant get the Auth to work.
 Here is what I used that works to talk to the DB:

%
Class.forName(org.postgresql.Driver);
String url = jdbc:postgresql://localhost:5432/landt;
Connection con = DriverManager.getConnection(url,
postgres, postgres);
Statement stmt =
con.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE,

ResultSet.CONCUR_READ_ONLY);
ResultSet srs = stmt.executeQuery(SELECT username
FROM users);
while (srs.next()) {
String name = srs.getString(username);
out.println(name);
}
%






Web.xml
---
?xml version=1.0 encoding=UTF-8?
web-app version=2.4
xmlns=http://java.sun.com/xml/ns/j2ee;
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
xsi:schemaLocation=http://java.sun.com/xml/ns/j2ee
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd;
session-config
session-timeout
30
/session-timeout
/session-config
welcome-file-list
welcome-file
index.jsp
/welcome-file
/welcome-file-list
security-constraint
display-nameTenantConstraint/display-name
web-resource-collection
   
web-resource-nametenant/web-resource-name
descriptionTenant/description
url-pattern/secureTenant/*/url-pattern
http-methodGET/http-method
http-methodPOST/http-method
http-methodHEAD/http-method
http-methodPUT/http-method
http-methodOPTIONS/http-method
http-methodTRACE/http-method
http-methodDELETE/http-method
/web-resource-collection
auth-constraint
description/
role-nametenant/role-name
/auth-constraint
/security-constraint
security-constraint
   
display-nameLandlordConstraint/display-name
web-resource-collection
   
web-resource-namelandlord/web-resource-name
descriptionLandlord/description
   
url-pattern/secureLandlord/*/url-pattern
http-methodGET/http-method
http-methodPOST/http-method
http-methodHEAD/http-method
http-methodPUT/http-method
http-methodOPTIONS/http-method
http-methodTRACE/http-method
http-methodDELETE/http-method
/web-resource-collection
auth-constraint
description/
role-namelandlord/role-name
/auth-constraint
/security-constraint
login-config
auth-methodFORM/auth-method
Realm
className=org.apache.catalina.realm.JDBCRealm
connectionName=postgres
connectionPassword=postgres
connectionURL=jdbc:postgresql://localhost:5432/landt
debug=99 driverName=org.postgresql.Driver
roleNameCol=rolename userCredCol=password
userNameCol=username userRoleTable=user_roles
userTable=users/
form-login-config
   
form-login-page/login.jsp/form-login-page
   
form-error-page/error.html/form-error-page
/form-login-config
/login-config
security-role
descriptionFor Tenants/description
role-nametenant/role-name
/security-role
security-role
descriptionFor Landlords/description
role-namelandlord/role-name
/security-role
/web-app

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: connection pool - DBCP error

2007-02-27 Thread Propes, Barry L [GCG-NAOT]
yes, I believe soI added some other param attributes that I think will 
properly kill off abandoned connections if they didn't before get killed off.



-Original Message-
From: Tim Lucia [mailto:[EMAIL PROTECTED]
Sent: Tuesday, February 27, 2007 4:22 PM
To: 'Tomcat Users List'
Subject: RE: connection pool - DBCP error


 -Original Message-
 From: Propes, Barry L [GCG-NAOT] [mailto:[EMAIL PROTECTED]
 Sent: Monday, February 26, 2007 4:48 PM
 To: Tomcat Users List
 Subject: connection pool - DBCP error

 AbandonedObjectPool is used
 ( [EMAIL PROTECTED])
 
LogAbandoned: true
RemoveAbandoned: true
RemoveAbandonedTimeout: 60

Isn't this just an informational message saying that abandoned objects will
be detected?  It appears on startup when I configure DBCP to evict abandoned
connections...

Tim




-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: increase the backend idle connection timeout or the connection_pool_minsize

2007-02-26 Thread Propes, Barry L [GCG-NAOT]
on that connection pool size, these two:

   parameter
namemaxActive/name
value20/value
  /parameter
  parameter
namemaxIdle/name
value2/value
  /parameter

You're also only allowing 1 sec to connect it appears. Might ratchet it up a 
little more.

-Original Message-
From: news [mailto:[EMAIL PROTECTED] Behalf Of Fletcher Cocquyt
Sent: Monday, February 26, 2007 12:32 PM
To: users@tomcat.apache.org
Subject: increase the backend idle connection timeout or the
connection_pool_minsize


Hi,
This is a followup to my Feb14 post: Re: socket is not connected any more 
(errno=11)

I've just upgraded from 1.2.19 to 1.2.20 and the new log messages are:

increase the backend idle connection timeout or the connection_pool_minsize

I could not find much on which parameters this is referring to?
On the mod_jk side I have:

worker.tomcat-publicweb-01.type=ajp13 
worker.tomcat-publicweb-01.host=app-01
worker.tomcat-publicweb-01.port=12345
worker.tomcat-publicweb-01.lbfactor=50 
worker.tomcat-publicweb-01.cachesize=10 
worker.tomcat-publicweb-01.cache_timeout=600 
worker.tomcat-publicweb-01.socket_keepalive=1 
worker.tomcat-publicweb-01.retries=2
worker.tomcat-publicweb-01.socket_timeout=30
worker.tomcat-publicweb-01.connect_timeout=2000
worker.tomcat-publicweb-01.prepost_timeout=5000
worker.tomcat-publicweb-01.reply_timeout=30

On the tomcat side I have:
  parameter
namemaxActive/name
value20/value
  /parameter
  parameter
namemaxIdle/name
value2/value
  /parameter
  parameter
namemaxWait/name
value1000/value
  /parameter
parameter
   
namelogAbandoned/name
valuetrue/value
  /parameter

parameter
nameremoveAbandoned/name
valuetrue/value
/parameter
parameter
nameremoveAbandonedTimeout/name
value1200/value
/parameter

Which parameters are these log messages referring to?

Many thanks,
Fletcher.


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



connection pool - DBCP error

2007-02-26 Thread Propes, Barry L [GCG-NAOT]
I am getting a slight error with regards to my connection pool configuration.
 
I may not have totally closed the connection properly, but shouldn't the 
following account for it?
 
 

AbandonedObjectPool is used ( [EMAIL PROTECTED])
 
   LogAbandoned: true
   RemoveAbandoned: true
   RemoveAbandonedTimeout: 60

 
in other words, if I have the following configured like so, 
 
   parameter
 namemaxWait/name
 value7000/value
   /parameter
 parameter
 nameremoveAbandoned/name
 valuetrue/value
 /parameter
 parameter
 nameremoveAbandonedTimeout/name
 value60/value
 /parameter
 parameter
 namelogAbandoned/name
 valuetrue/value
 /parameter
 
shouldn't the RemoveAbandoned params account for an open or vagrant connection 
and kill it off properly?
Am I wrong in the assumption this attribute should have?
 
Thanks,
 
Barry


RE: connection pool - DBCP error

2007-02-26 Thread Propes, Barry L [GCG-NAOT]
thanks, Daniel!! Ill try to plug that in and see if my version will accept 
those params!

-Original Message-
From: Stephens, Daniel [mailto:[EMAIL PROTECTED]
Sent: Monday, February 26, 2007 4:55 PM
To: Tomcat Users List
Subject: RE: connection pool - DBCP error


I had to add the following before I saw that behavior. You'll have to check
the API, to make sure the minEvictableIdleTimeMillis and
timeBetweenEvictionRunsMillis are set correctly for your pool. But once I
added these, I would see abandoned connections get dropped. 

I put these settings in, because I found that the DBCP pool only evalutes
connections on a check-in/out basis.

 
parameternameminEvictableIdleTimeMillis/namevalue5000/value/param
eter
 
parameternametimeBetweenEvictionRunsMillis/namevalue1/value/p
arameter
 parameternametestWhileIdle/namevaluetrue/value/parameter
 parameternamevalidationQuery/namevalueselect count(*) from
dual/value/parameter


-Original Message-
From: Propes, Barry L [GCG-NAOT] [mailto:[EMAIL PROTECTED] 
Sent: Monday, February 26, 2007 3:48 PM
To: Tomcat Users List
Subject: connection pool - DBCP error

I am getting a slight error with regards to my connection pool
configuration.
 
I may not have totally closed the connection properly, but shouldn't the
following account for it?
 
 

AbandonedObjectPool is used (
[EMAIL PROTECTED])
 
   LogAbandoned: true
   RemoveAbandoned: true
   RemoveAbandonedTimeout: 60

 
in other words, if I have the following configured like so, 
 
   parameter
 namemaxWait/name
 value7000/value
   /parameter
 parameter
 nameremoveAbandoned/name
 valuetrue/value
 /parameter
 parameter
 nameremoveAbandonedTimeout/name
 value60/value
 /parameter
 parameter
 namelogAbandoned/name
 valuetrue/value
 /parameter
 
shouldn't the RemoveAbandoned params account for an open or vagrant
connection and kill it off properly?
Am I wrong in the assumption this attribute should have?
 
Thanks,
 
Barry


-
The information in this message may be proprietary and/or
confidential, and protected from disclosure.  If the reader of this
message is not the intended recipient, or an employee or agent
responsible for delivering this message to the intended recipient,
you are hereby notified that any dissemination, distribution or
copying of this communication is strictly prohibited. If you have
received this communication in error, please notify First Data
immediately by replying to this message and deleting it from your
computer.


RE: Connection pool problem DBCP - 4.1.3

2007-02-23 Thread Propes, Barry L [GCG-NAOT]
I think I've largely got my previous connection pooling issues solved, but I 
did sort of get a strange error a bit ago.

it seems like one of my pool connections didn't get closed, though I'm looking 
at that to make sure they do.

But I want to make sure the messages I'm getting across the console at startup 
aren't cause for concern.

Basically, I shouldn't be alarmed about any of this should I?
-

AbandonedObjectPool is used ([EMAIL PROTECTED])

   LogAbandoned: true
   RemoveAbandoned: true
   RemoveAbandonedTimeout: 60



Thanks,

Barry



-Original Message-
From: Propes, Barry L [GCG-NAOT] 
Sent: Wednesday, February 21, 2007 10:18 AM
To: Tomcat Users List
Subject: RE: Connection pool problem DBCP - 4.1.3


I wonder...would I get mixed results trying to implement JNDI maing in my 
server.xml file, but only trying to (on a page by page basis, with an existing 
servlet and/or JSP) utilize the naming context method?

In other words, I test out DBCP with one dedicated servlet or JSP, and perhaps 
it works fine, but somehow that adversely affects another servlet or JSP where 
I've not really implemented the Naming Context portion, but since I've altered 
the server.xml file, that's affected it?

Please let me know if you have any insight into this.

Thanks!

-Original Message-
From: Mike Quilleash [mailto:[EMAIL PROTECTED]
Sent: Monday, February 19, 2007 1:08 PM
To: Tomcat Users List
Subject: RE: Connection pool problem DBCP - 4.1.3


Need a bit more info.  DB type and version, JDBC driver version,
ResultSet loop/access code.

Generally the pseudo code should be...


Open Connection
try
{
  Prepare Statement
  try
  {
Execute Query
try
{
  while ( resultSet.next() )
  {
// process row here
  }
}
finally
{
  Close ResultSet
}
  }
  finally
  {
Close PreparedStatement 
  }
}
finally
{
  Close Connection
}


All of the closing should be done in finally blocks so they happen even
if you get an exception.

-Original Message-
From: Propes, Barry L [GCG-NAOT] [mailto:[EMAIL PROTECTED] 
Sent: 19 February 2007 18:22
To: Tomcat Users List
Subject: Connection pool problem DBCP - 4.1.3


This is driving me crazy. I'm finally close, I think, on getting this
solved.

Problem is I seem to either get Connection is closed or Exhausted
resultset, depending where I put my close statement.


I've got the following up at the top, which replaces my driver reference
that was previously there.

Context initCtx = new InitialContext();
Context envCtx = (Context) initCtx.lookup(java:comp/env); // Look up
our data source DataSource ds = (DataSource)
  envCtx.lookup(jdbc/myoracle);
// Allocate and use a connection from the pool Connection connection =
ds.getConnection();

Statement selstmt = connection.createStatement();

String prepSQL = SELECT AID, ACTIVE, REQUESTOR_NAME..., +
 PHONE_NUM,DATE_REQ,...  +
   +
 FROM table a INNER JOIN table b  +
 ON a.CTRL_ID = b.CTRL_ID  +
 WHERE AID = ?;

PreparedStatement prepstmt = connection.prepareStatement(prepSQL);
prepstmt.setString(1, aidstrd);
ResultSet admsql = prepstmt.executeQuery(); admsql.next();

(etc., etc.)

admsql.close();
selstmt.close();
connection.close();

If I move up connection.close, I get the Connection is closed statement,
otherwise I get exhausted result set. 
Any idea what gives?


-
To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe,
e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



 This e-mail is bound by the terms and conditions described at 
http://www.subexazure.com/mail-disclaimer.html



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Pls help : How to make case insensitive URL(JSP) on Tomcat 5.5

2007-02-22 Thread Propes, Barry L [GCG-NAOT]
can't you force something like that in the welcome page attribute of the 
web.xml file in the conf folder?

i.e.

welcome-file-list
welcome-fileindex.html/welcome-file
welcome-fileindex.htm/welcome-file
welcome-fileindex.jsp/welcome-file
welcome-filechange_ctrl.htm/welcome-file
/welcome-file-list

how are they getting to the URL in the first place?

-Original Message-
From: Bhandari [mailto:[EMAIL PROTECTED]
Sent: Wednesday, February 21, 2007 11:26 PM
To: users@tomcat.apache.org
Subject: Pls help : How to make case insensitive URL(JSP) on Tomcat 5.5



Hi,

I have an intranet based JSP application on Tomcat 5.5. i have rolled it
out. but the problem my JSP application users are facing is ' URL of
application' is case sensetive.

CAN ANYBODY  TELL me a way to make my URL CASE INSENSITIVE?
I need a step by step guide.

Pls help.
Thanks and Regards,
Bhandari
-- 
View this message in context: 
http://www.nabble.com/Pls-help-%3A-How-to-make-case-insensitive-URL%28JSP%29-on-Tomcat-5.5-tf3271075.html#a9094670
Sent from the Tomcat - User mailing list archive at Nabble.com.


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: authentication security constraint error

2007-02-22 Thread Propes, Barry L [GCG-NAOT]
thanks, Chuck, I think that was itI had admin before service, and it 
didn't like that at all. I guess that violates the hierarchical structure.

Barry

-Original Message-
From: Caldarale, Charles R [mailto:[EMAIL PROTECTED]
Sent: Wednesday, February 21, 2007 5:35 PM
To: Tomcat Users List
Subject: RE: authentication security constraint error


 From: Propes, Barry L [GCG-NAOT] 
 [mailto:[EMAIL PROTECTED] 
 Subject: RE: authentication security constraint error
 
 Yeah, I had them in there.

Are they in the right order relative to the other elements?  The
web-app schema is rather picky about how things are arranged.  The
web.xml files for Tomcat's manager and admin apps server as good
examples.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: How can I realize server side GUI??

2007-02-22 Thread Propes, Barry L [GCG-NAOT]
sounds like a lot of Swing to me...is it not?

-Original Message-
From: wang suya [mailto:[EMAIL PROTECTED]
Sent: Thursday, February 22, 2007 5:48 PM
To: Tomcat Users List
Subject: Re: How can I realize server side GUI??



Hello Peter

   You are right. I want to make a graphical interface served form Web
server to a Web browser. It displays a sheet with serveral rectangle cells like
execl sheet and when I drag one cell the size of cell can change.
Thank you very much. Hope you can help me.

  Wang suya

Peter Crowther さんは書きました:
 From: wang suya [mailto:[EMAIL PROTECTED] 
 I want to make a server side GUI application that draw
 senveral Rectanges and when mouse drag the bottom of 
 Rectange, the rectange
 extends. Do anybody know how I can realize this appication.

I assume by server-side GUI you mean a graphical interface served
from a Web server to a Web browser?

Depending on what you then wish to do with the data from the rectangles,
you could do it entirely in Javascript or use one of the higher-level
frameworks like AJAX.  Without more details on your requirements, it's
difficult to tell.

   - Peter

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



wang suya

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Connection reset error

2007-02-22 Thread Propes, Barry L [GCG-NAOT]
another oddity about this (maybe not).

The error occurs/ed when I tried it thru the IP address of the box.

In trying it thru the domain name, I don't get that error.



-Original Message-
From: Propes, Barry L [GCG-NAOT] 
Sent: Thursday, February 22, 2007 5:49 PM
To: Tomcat Users List
Subject: Connection reset error


I am getting this error now after logging on to a certain portion of my site 
within the security constraint.
 
The connection was reset 
 
The connection to the server was reset while the page was loading.

*   The site could be temporarily unavailable or too busy. Try again in a 
few
  moments.
 
*   If you are unable to load any pages, check your computer's network
  connection.
 
 
Any idea what could be the cause? It had previously worked fine, but now after 
logging in at the FORM level, it kicks me out and closes the Tomcat connection? 
Actually the console is still running with no errors, but the browser 
connection seemingly gets closed.
 
 

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Connection pool problem DBCP - 4.1.3

2007-02-21 Thread Propes, Barry L [GCG-NAOT]
I wonder...would I get mixed results trying to implement JNDI maing in my 
server.xml file, but only trying to (on a page by page basis, with an existing 
servlet and/or JSP) utilize the naming context method?

In other words, I test out DBCP with one dedicated servlet or JSP, and perhaps 
it works fine, but somehow that adversely affects another servlet or JSP where 
I've not really implemented the Naming Context portion, but since I've altered 
the server.xml file, that's affected it?

Please let me know if you have any insight into this.

Thanks!

-Original Message-
From: Mike Quilleash [mailto:[EMAIL PROTECTED]
Sent: Monday, February 19, 2007 1:08 PM
To: Tomcat Users List
Subject: RE: Connection pool problem DBCP - 4.1.3


Need a bit more info.  DB type and version, JDBC driver version,
ResultSet loop/access code.

Generally the pseudo code should be...


Open Connection
try
{
  Prepare Statement
  try
  {
Execute Query
try
{
  while ( resultSet.next() )
  {
// process row here
  }
}
finally
{
  Close ResultSet
}
  }
  finally
  {
Close PreparedStatement 
  }
}
finally
{
  Close Connection
}


All of the closing should be done in finally blocks so they happen even
if you get an exception.

-Original Message-
From: Propes, Barry L [GCG-NAOT] [mailto:[EMAIL PROTECTED] 
Sent: 19 February 2007 18:22
To: Tomcat Users List
Subject: Connection pool problem DBCP - 4.1.3


This is driving me crazy. I'm finally close, I think, on getting this
solved.

Problem is I seem to either get Connection is closed or Exhausted
resultset, depending where I put my close statement.


I've got the following up at the top, which replaces my driver reference
that was previously there.

Context initCtx = new InitialContext();
Context envCtx = (Context) initCtx.lookup(java:comp/env); // Look up
our data source DataSource ds = (DataSource)
  envCtx.lookup(jdbc/myoracle);
// Allocate and use a connection from the pool Connection connection =
ds.getConnection();

Statement selstmt = connection.createStatement();

String prepSQL = SELECT AID, ACTIVE, REQUESTOR_NAME..., +
 PHONE_NUM,DATE_REQ,...  +
   +
 FROM table a INNER JOIN table b  +
 ON a.CTRL_ID = b.CTRL_ID  +
 WHERE AID = ?;

PreparedStatement prepstmt = connection.prepareStatement(prepSQL);
prepstmt.setString(1, aidstrd);
ResultSet admsql = prepstmt.executeQuery(); admsql.next();

(etc., etc.)

admsql.close();
selstmt.close();
connection.close();

If I move up connection.close, I get the Connection is closed statement,
otherwise I get exhausted result set. 
Any idea what gives?


-
To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe,
e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



 This e-mail is bound by the terms and conditions described at 
http://www.subexazure.com/mail-disclaimer.html



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



authentication security constraint error

2007-02-21 Thread Propes, Barry L [GCG-NAOT]
Hi,
 
I've been using versions 4.0 and 4.1.3 with a security constraint with no 
problems.
 
However, when I added info in my server.xml file to try and attempt DBCP, I get 
a warning in my logs about something being defined in in an auth-constraint 
without being in a security role. Maybe not too big a deal.
 
However, ever since I added the Resource Name and Params for the DBCP, I don't 
get challenged on the form to enter the password protected area, which in 
turn causes some other errors.
 
Does anyone know why adding that bit of configuration to the server.xml file 
would render the security constraint inoperable?
 
I'm open to feedback, let me know if more info's needed.
 
Thanks!

 
 
 
I've actually got the security constraint configured properly, as it's worked 
before with no issues.:
--
security-constraint
web-resource-collection
 web-resource-nameChange Control Protected 
Area/web-resource-name
 !-- Protect all files in the /murach/chngctrl/admin directory --
 url-pattern/chngctrl/admin/*/url-pattern
 url-pattern/chngctrl/change_ctrl_admin4.jsp/url-pattern
 url-pattern/chngctrl/chg_ctrl_adm_vote.jsp/url-pattern
 http-methodGET/http-method
 http-methodPOST/http-method
/web-resource-collection
auth-constraint
 !-- Users in the service and admin roles can access the admin dir 
 added several to match Change ctrl categs--
 role-nameservice/role-name
 role-nameadmin/role-name
 role-namecomply/role-name
 role-nameops/role-name
 role-namelegal/role-name
 role-namerisk/role-name
/auth-constraint
/security-constraint

 
Here's the log info:
 
2007-02-21 16:28:02 HostConfig[localhost]: Deploying web application directory 
murach
2007-02-21 16:28:02 StandardHost[localhost]: Installing web application at 
context path /murach from URL file:C:\jakarta-tomcat-4.1.31\webapps\murach
2007-02-21 16:28:02 WebappLoader[/murach]: Deploying class repositories to work 
directory C:\jakarta-tomcat-4.1.31\work\Standalone\localhost\murach
2007-02-21 16:28:02 WebappLoader[/murach]: Deploy class files /WEB-INF/classes 
to C:\jakarta-tomcat-4.1.31\webapps\murach\WEB-INF\classes
2007-02-21 16:28:02 WebappLoader[/murach]: Deploy JAR 
/WEB-INF/lib/mm.mysql-2.0.8-bin.jar to 
C:\jakarta-tomcat-4.1.31\webapps\murach\WEB-INF\lib\mm.mysql-2.0.8-bin.jar
2007-02-21 16:28:02 ContextConfig[/murach]: WARNING: Security role name service 
used in an auth-constraint without being defined in a security-role
2007-02-21 16:28:02 ContextConfig[/murach]: WARNING: Security role name admin 
used in an auth-constraint without being defined in a security-role
2007-02-21 16:28:02 ContextConfig[/murach]: WARNING: Security role name comply 
used in an auth-constraint without being defined in a security-role
2007-02-21 16:28:02 ContextConfig[/murach]: WARNING: Security role name ops 
used in an auth-constraint without being defined in a security-role
2007-02-21 16:28:02 ContextConfig[/murach]: WARNING: Security role name legal 
used in an auth-constraint without being defined in a security-role
2007-02-21 16:28:02 ContextConfig[/murach]: WARNING: Security role name risk 
used in an auth-constraint without being defined in a security-role
2007-02-21 16:28:02 ContextConfig[/murach]: Configured an authenticator for 
method FORM
2007-02-21 16:28:02 StandardManager[/murach]: Seeding random number generator 
class java.security.SecureRandom
2007-02-21 16:28:02 StandardManager[/murach]: Seeding of random number 
generator has been completed
2007-02-21 16:28:02 StandardWrapper[/murach:default]: Loading container servlet 
default
2007-02-21 16:28:02 default: init
2007-02-21 16:28:02 StandardWrapper[/murach:invoker]: Loading container servlet 
invoker
2007-02-21 16:28:02 invoker: init
2007-02-21 16:28:02 jsp: init
2007-02-21 16:28:02 HostConfig[localhost]: Deploying web application directory 
ROOT
 
-


RE: authentication security constraint error

2007-02-21 Thread Propes, Barry L [GCG-NAOT]
ok, thanks, Chuck.

-Original Message-
From: Caldarale, Charles R [mailto:[EMAIL PROTECTED]
Sent: Wednesday, February 21, 2007 5:02 PM
To: Tomcat Users List
Subject: RE: authentication security constraint error


 From: Propes, Barry L [GCG-NAOT] 
 [mailto:[EMAIL PROTECTED] 
 Subject: authentication security constraint error
  
 However, when I added info in my server.xml file to try and 
 attempt DBCP, I get a warning in my logs about something 
 being defined in in an auth-constraint without being in a 
 security role. Maybe not too big a deal.

Read the servlet spec. A list of security-role elements is required in
the app's web.xml for an auth-constraint to be effective.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: authentication security constraint error

2007-02-21 Thread Propes, Barry L [GCG-NAOT]
Yeah, I had them in there.


-Original Message-
From: Caldarale, Charles R [mailto:[EMAIL PROTECTED]
Sent: Wednesday, February 21, 2007 5:02 PM
To: Tomcat Users List
Subject: RE: authentication security constraint error


 From: Propes, Barry L [GCG-NAOT] 
 [mailto:[EMAIL PROTECTED] 
 Subject: authentication security constraint error
  
 However, when I added info in my server.xml file to try and 
 attempt DBCP, I get a warning in my logs about something 
 being defined in in an auth-constraint without being in a 
 security role. Maybe not too big a deal.

Read the servlet spec. A list of security-role elements is required in
the app's web.xml for an auth-constraint to be effective.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: authentication security constraint error

2007-02-21 Thread Propes, Barry L [GCG-NAOT]
now I'll double check that part. That could be an issue.

-Original Message-
From: Caldarale, Charles R [mailto:[EMAIL PROTECTED]
Sent: Wednesday, February 21, 2007 5:35 PM
To: Tomcat Users List
Subject: RE: authentication security constraint error


 From: Propes, Barry L [GCG-NAOT] 
 [mailto:[EMAIL PROTECTED] 
 Subject: RE: authentication security constraint error
 
 Yeah, I had them in there.

Are they in the right order relative to the other elements?  The
web-app schema is rather picky about how things are arranged.  The
web.xml files for Tomcat's manager and admin apps server as good
examples.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: overlapped parameters between sessions

2007-02-20 Thread Propes, Barry L [GCG-NAOT]
starting to wonder if that's maybe happening to me some, too, though I've not 
confirmed it any of the logs yet.

-Original Message-
From: WILLIAM PARRA [mailto:[EMAIL PROTECTED]
Sent: Tuesday, February 20, 2007 4:00 PM
To: Tomcat Users List
Subject: overlapped parameters between sessions


Hi,

I'm currently using a Tomcat 4 container for our web applications (jsp's, 
servlets).  
When  passing parameters with get metod, with many users (about 200); some 
parameters, 
are overlapped between sessions. There is a special configuration in Tomcat 
when i work with sessions??
The Tomcat version is old?
In new versions it would be fixed?

Thanks for your help. 
William Enrique Parra Alba
System Enginer 
Universidad Pedagógica y Tecnológica de Colombia



__
Correo Yahoo!
Espacio para todos tus mensajes, antivirus y antispam ¡gratis! 
Regístrate ya - http://correo.espanol.yahoo.com/ 

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Tomcat default context

2007-02-19 Thread Propes, Barry L [GCG-NAOT]
didn't know it was possibleto set up a default context outside of the 
server.xml file.
I thought Tomcat required that.

-Original Message-
From: Gardner, Brad [mailto:[EMAIL PROTECTED]
Sent: Monday, February 19, 2007 10:43 AM
To: users@tomcat.apache.org
Subject: Tomcat default context


 

I am using tomcat 5.5.20 and attempting to set up a default context
without placing the context tag inside of the server.xml file.  I
created the ROOT.xml file under Tomcat Home Dir/conf/engine/host/
and placed this tag into the file:

 

Context docBase=mywebapp/

 

This resulted in no change, and the default tomcat page still appears
when I view my webapp.  I have also tried adding path= with the same
result.  This tag works fine when placed inside server.xml, but I am
trying to avoid that now.  Any ideas on what I may be missing or
mis-understanding?


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Tomcat default context

2007-02-19 Thread Propes, Barry L [GCG-NAOT]
oh, ok. Hadn't gone down that road yet. Good to know.

Then would it be 
Context docBase=/mywebapp/  ?


-Original Message-
From: Gardner, Brad [mailto:[EMAIL PROTECTED]
Sent: Monday, February 19, 2007 10:52 AM
To: Tomcat Users List
Subject: RE: Tomcat default context


This is from the documentation that comes with tomcat 5

Please note that for tomcat 5, unlike tomcat 4.x, it is NOT recommended
to place Context elements directly in the server.xml file

Doing it outside the server.xml file allows you to make changes without
restarting tomcat.  Nice feature, but still working on the root context.

-Original Message-
From: Propes, Barry L [GCG-NAOT] [mailto:[EMAIL PROTECTED] 
Sent: Monday, February 19, 2007 11:48 AM
To: Tomcat Users List
Subject: RE: Tomcat default context

didn't know it was possibleto set up a default context outside of
the server.xml file.
I thought Tomcat required that.

-Original Message-
From: Gardner, Brad [mailto:[EMAIL PROTECTED]
Sent: Monday, February 19, 2007 10:43 AM
To: users@tomcat.apache.org
Subject: Tomcat default context


 

I am using tomcat 5.5.20 and attempting to set up a default context
without placing the context tag inside of the server.xml file.  I
created the ROOT.xml file under Tomcat Home Dir/conf/engine/host/
and placed this tag into the file:

 

Context docBase=mywebapp/

 

This resulted in no change, and the default tomcat page still appears
when I view my webapp.  I have also tried adding path= with the same
result.  This tag works fine when placed inside server.xml, but I am
trying to avoid that now.  Any ideas on what I may be missing or
mis-understanding?


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Connection pool problem DBCP - 4.1.3

2007-02-19 Thread Propes, Barry L [GCG-NAOT]

This is driving me crazy. I'm finally close, I think, on getting this solved.

Problem is I seem to either get Connection is closed or Exhausted resultset, 
depending where I put my close statement.


I've got the following up at the top, which replaces my driver reference that 
was previously there.

Context initCtx = new InitialContext();
Context envCtx = (Context) initCtx.lookup(java:comp/env);
// Look up our data source
DataSource ds = (DataSource)
  envCtx.lookup(jdbc/myoracle);
// Allocate and use a connection from the pool
Connection connection = ds.getConnection();

Statement selstmt = connection.createStatement();

String prepSQL = SELECT AID, ACTIVE, REQUESTOR_NAME..., +
 PHONE_NUM,DATE_REQ,...  +
   +
 FROM table a INNER JOIN table b  +
 ON a.CTRL_ID = b.CTRL_ID  +
 WHERE AID = ?;

PreparedStatement prepstmt = connection.prepareStatement(prepSQL);
prepstmt.setString(1, aidstrd);
ResultSet admsql = prepstmt.executeQuery();
admsql.next();

(etc., etc.)

admsql.close();
selstmt.close();
connection.close();

If I move up connection.close, I get the Connection is closed statement, 
otherwise I get exhausted result set. 
Any idea what gives?


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Connection pool problem DBCP - 4.1.3

2007-02-19 Thread Propes, Barry L [GCG-NAOT]
ok, I'll send that, too. Sorry about that.

-Original Message-
From: Mike Quilleash [mailto:[EMAIL PROTECTED]
Sent: Monday, February 19, 2007 1:08 PM
To: Tomcat Users List
Subject: RE: Connection pool problem DBCP - 4.1.3


Need a bit more info.  DB type and version, JDBC driver version,
ResultSet loop/access code.

Generally the pseudo code should be...


Open Connection
try
{
  Prepare Statement
  try
  {
Execute Query
try
{
  while ( resultSet.next() )
  {
// process row here
  }
}
finally
{
  Close ResultSet
}
  }
  finally
  {
Close PreparedStatement 
  }
}
finally
{
  Close Connection
}


All of the closing should be done in finally blocks so they happen even
if you get an exception.

-Original Message-
From: Propes, Barry L [GCG-NAOT] [mailto:[EMAIL PROTECTED] 
Sent: 19 February 2007 18:22
To: Tomcat Users List
Subject: Connection pool problem DBCP - 4.1.3


This is driving me crazy. I'm finally close, I think, on getting this
solved.

Problem is I seem to either get Connection is closed or Exhausted
resultset, depending where I put my close statement.


I've got the following up at the top, which replaces my driver reference
that was previously there.

Context initCtx = new InitialContext();
Context envCtx = (Context) initCtx.lookup(java:comp/env); // Look up
our data source DataSource ds = (DataSource)
  envCtx.lookup(jdbc/myoracle);
// Allocate and use a connection from the pool Connection connection =
ds.getConnection();

Statement selstmt = connection.createStatement();

String prepSQL = SELECT AID, ACTIVE, REQUESTOR_NAME..., +
 PHONE_NUM,DATE_REQ,...  +
   +
 FROM table a INNER JOIN table b  +
 ON a.CTRL_ID = b.CTRL_ID  +
 WHERE AID = ?;

PreparedStatement prepstmt = connection.prepareStatement(prepSQL);
prepstmt.setString(1, aidstrd);
ResultSet admsql = prepstmt.executeQuery(); admsql.next();

(etc., etc.)

admsql.close();
selstmt.close();
connection.close();

If I move up connection.close, I get the Connection is closed statement,
otherwise I get exhausted result set. 
Any idea what gives?


-
To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe,
e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



 This e-mail is bound by the terms and conditions described at 
http://www.subexazure.com/mail-disclaimer.html



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Connection pool problem DBCP - 4.1.3

2007-02-19 Thread Propes, Barry L [GCG-NAOT]
Johnny, you were correct.

that selstmt connection statement was not being utilized, but sure must have 
had an adverse impact, because I think I've got it working ok now!

Thanks a bunch, guys!

-Original Message-
From: -- [mailto:[EMAIL PROTECTED]
Sent: Monday, February 19, 2007 2:06 PM
To: Tomcat Users List
Subject: Re: Connection pool problem DBCP - 4.1.3


I think you should also call

prepstmt.close()

(before closing the connection).

Besides 

selstmt

seems not to be used at all.

Bye 

 This is driving me crazy. I'm finally close, I think, on getting this solved.

 Problem is I seem to either get Connection is closed or Exhausted resultset, 
 depending where I put my close statement.


 I've got the following up at the top, which replaces my driver reference that 
 was previously there.

 Context initCtx = new InitialContext();
 Context envCtx = (Context) initCtx.lookup(java:comp/env);
 // Look up our data source
 DataSource ds = (DataSource)
   envCtx.lookup(jdbc/myoracle);
 // Allocate and use a connection from the pool
 Connection connection = ds.getConnection();

 Statement selstmt = connection.createStatement();

 String prepSQL = SELECT AID, ACTIVE, REQUESTOR_NAME..., +
PHONE_NUM,DATE_REQ,...  +
    +
FROM table a INNER JOIN table b  +
ON a.CTRL_ID = b.CTRL_ID  +
WHERE AID = ?;

 PreparedStatement prepstmt = connection.prepareStatement(prepSQL);
 prepstmt.setString(1, aidstrd);
 ResultSet admsql = prepstmt.executeQuery();
 admsql.next();

 (etc., etc.)

 admsql.close();
 selstmt.close();
 connection.close();

 If I move up connection.close, I get the Connection is closed statement, 
 otherwise I get exhausted result set. 
 Any idea what gives?


 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]


   


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: multiple versions of TC

2007-02-15 Thread Propes, Barry L [GCG-NAOT]
I've noticed now that occasionally the users and I will get a page not found 
error.

It's almost as if one version of tomcat is trying to be accessed while another 
one's running, even though I'm not running both at the same time.

Maybe I need to go individually look for a process and kill it?

-Original Message-
From: Christopher Schultz [mailto:[EMAIL PROTECTED]
Sent: Wednesday, February 14, 2007 3:27 PM
To: Tomcat Users List
Subject: Re: multiple versions of TC


-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Barry,

Propes, Barry L [GCG-NAOT] wrote:
 what does that entail? Just going and switching it in a properties
 file somewhere? Or making an entirely new properties file?

Take a look at the Advanced section of RUNNING.TXT in your Tomcat
installation directory. You can run more than one copy of Tomcat with
different server.xml files (and deployed webapps, etc.) at the same time.

Then, if you want to put Apache httpd out front, only a single mod_jk
config and workers.properties file is needed. You just map each URL
space to a separate worker.

- -chris

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.6 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFF036b9CaO5/Lv0PARAq7JAJ0Rk7WE5StxPGH0jGcQEi38lIhd7gCgs6on
yJTOpZagnNimDh8+zDqkW1Q=
=DzlM
-END PGP SIGNATURE-

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Weird Exception thrown on startup (how to resolve?)

2007-02-15 Thread Propes, Barry L [GCG-NAOT]
looks like the Persistent Manager Sessions area got uncommented, and maybe 
shouldn't have been? Or has something wrong within the reference?

-Original Message-
From: Lisa [mailto:[EMAIL PROTECTED]
Sent: Thursday, February 15, 2007 11:19 AM
To: users@tomcat.apache.org
Subject: Weird Exception thrown on startup (how to resolve?)



What is throwing the following Exception?  How to fix?

---
INFO: Filter 'sessionFilter' configured successfully
Feb 15, 2007 10:15:18 AM org.apache.catalina.session.StandardManager doLoad
SEVERE: IOException while loading persisted sessions: java.io.EOFException
java.io.EOFException
at
java.io.ObjectInputStream$PeekInputStream.readFully(ObjectInputStrea
.java:2279)
at
java.io.ObjectInputStream$BlockDataInputStream.readShort(ObjectInput
tream.java:2748)
at
java.io.ObjectInputStream.readStreamHeader(ObjectInputStream.java:78
)
at java.io.ObjectInputStream.init(ObjectInputStream.java:280)
at
org.apache.catalina.util.CustomObjectInputStream.init(CustomObject
nputStream.java:57)
at
org.apache.catalina.session.StandardManager.doLoad(StandardManager.j
va:361)
at
org.apache.catalina.session.StandardManager.load(StandardManager.jav
:320)
at
org.apache.catalina.session.StandardManager.start(StandardManager.ja
a:636)
at
org.apache.catalina.core.ContainerBase.setManager(ContainerBase.java
431)
at
org.apache.catalina.core.StandardContext.start(StandardContext.java:
155)
at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBas
.java:759)
at
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:7
9)
at
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524

at
org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.ja
a:904)
at
org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.
ava:867)
at
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:47
)
at
org.apache.catalina.startup.HostConfig.start(HostConfig.java:1122)
at
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.jav
:310)
at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Lifecyc
eSupport.java:119)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1021

at
org.apache.catalina.core.StandardHost.start(StandardHost.java:718)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1013

at
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:44
)
at
org.apache.catalina.core.StandardService.start(StandardService.java:
50)
at
org.apache.catalina.core.StandardServer.start(StandardServer.java:70
)
at org.apache.catalina.startup.Catalina.start(Catalina.java:551)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl
java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcce
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:294)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:432)
Feb 15, 2007 10:15:18 AM org.apache.catalina.session.StandardManager start
SEVERE: Exception loading sessions from persistent storage
java.io.EOFException
at
java.io.ObjectInputStream$PeekInputStream.readFully(ObjectInputStrea
.java:2279)
at
java.io.ObjectInputStream$BlockDataInputStream.readShort(ObjectInput
tream.java:2748)
at
java.io.ObjectInputStream.readStreamHeader(ObjectInputStream.java:78
)
at java.io.ObjectInputStream.init(ObjectInputStream.java:280)
at
org.apache.catalina.util.CustomObjectInputStream.init(CustomObject
nputStream.java:57)
at
org.apache.catalina.session.StandardManager.doLoad(StandardManager.j
va:361)
at
org.apache.catalina.session.StandardManager.load(StandardManager.jav
:320)
at
org.apache.catalina.session.StandardManager.start(StandardManager.ja
a:636)
at
org.apache.catalina.core.ContainerBase.setManager(ContainerBase.java
431)
at
org.apache.catalina.core.StandardContext.start(StandardContext.java:
155)
at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBas
.java:759)
at
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:7
9)
at
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524

at
org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.ja
a:904)
at
org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.
ava:867)
at
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:47
)
at
org.apache.catalina.startup.HostConfig.start(HostConfig.java:1122)
at
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.jav

startup error

2007-02-15 Thread Propes, Barry L [GCG-NAOT]
Hi folks, I was trying to get DBCP working and tried adding the Resource param 
info per the TC 4.1 documentation:
 
Context path=/DBTest docBase=DBTest
debug=5 reloadable=true crossContext=true
Logger className=org.apache.catalina.logger.FileLogger
prefix=localhost_DBTest_log. suffix=.txt
timestamp=true/

Resource name=jdbc/myoracle auth=Container
type=javax.sql.DataSource/ 

ResourceParams name=jdbc/myoracle
parameter
namefactory/name
valueorg.apache.commons.dbcp.BasicDataSourceFactory/value
/parameter
parameter
namedriverClassName/name
valueoracle.jdbc.OracleDriver/value
/parameter
parameter
nameurl/name
valuejdbc:oracle:thin:@169.xxx.xx.xxx:1521:SID/value
/parameter
parameter
nameusername/name
valueusernameval/value
/parameter
parameter
namepassword/name
valuepasswordval/value
/parameter
parameter
namemaxActive/name
value20/value
/parameter
parameter
namemaxIdle/name
value10/value
/parameter
parameter
namemaxWait/name
value-1/value
/parameter
/ResourceParams
/Context

-

and I get the following message on my console, followed by an abrupt shutdown 
immediately.

C:\jakarta-tomcat-4.1.31\binrem @echo off

C:\jakarta-tomcat-4.1.31\binif Windows_NT == Windows_NT setlocal

C:\jakarta-tomcat-4.1.31\binrem ---


C:\jakarta-tomcat-4.1.31\binrem Start script for the CATALINA Server

C:\jakarta-tomcat-4.1.31\binrem

C:\jakarta-tomcat-4.1.31\binrem $Id: startup.bat,v 1.4 2002/01/15 02:55:38 patr
ickl Exp $

C:\jakarta-tomcat-4.1.31\binrem ---


C:\jakarta-tomcat-4.1.31\binrem Guess CATALINA_HOME if not defined

C:\jakarta-tomcat-4.1.31\binif not  ==  goto gotHome

C:\jakarta-tomcat-4.1.31\binset CATALINA_HOME=.

C:\jakarta-tomcat-4.1.31\binif exist .\bin\catalina.bat goto okHome

C:\jakarta-tomcat-4.1.31\binset CATALINA_HOME=..

C:\jakarta-tomcat-4.1.31\binif exist ..\bin\catalina.bat goto okHome

C:\jakarta-tomcat-4.1.31\binset EXECUTABLE=..\bin\catalina.bat

C:\jakarta-tomcat-4.1.31\binrem Check that target executable exists

C:\jakarta-tomcat-4.1.31\binif exist ..\bin\catalina.bat goto okExec

C:\jakarta-tomcat-4.1.31\binrem Get remaining unshifted command line arguments
and save them in the

C:\jakarta-tomcat-4.1.31\binset CMD_LINE_ARGS=

C:\jakarta-tomcat-4.1.31\binif  ==  goto doneSetArgs

C:\jakarta-tomcat-4.1.31\bincall ..\bin\catalina.bat start
Using CATALINA_BASE:   ..
Using CATALINA_HOME:   ..
Using CATALINA_TMPDIR: ..\temp
Using JAVA_HOME:   C:\j2sdk1.4.0
C:\jakarta-tomcat-4.1.31\bin

 

Any idea what could be out of place here? If I remove the above attributes for 
the resource params, the error doesn't occur.

Any feedback would be appreciated -- thanks.

 



RE: Tomcat 5.5.9 on Sun Solaris: JSP compilation error

2007-02-15 Thread Propes, Barry L [GCG-NAOT]
might require updated jar files for the servlets and jsps?

-Original Message-
From: Daniel Gresh [mailto:[EMAIL PROTECTED]
Sent: Thursday, February 15, 2007 1:34 PM
To: Tomcat Users List
Subject: Tomcat 5.5.9 on Sun Solaris: JSP compilation error


Hi list,

Recently I upgraded Tomcat from 4.0.5 to 5.5.9, due to some unusual 
problems I was experiencing with Tomcat 4.0.5. I was getting some Java 
compilation errors when I used JDK1.5 features, and neither I nor the 
two who replied to my message could figure out why. Upgrading was 
suggested, so we upgraded to Tomcat 5.5.9.

I'm running some simple tests using some basic code that involves JDK1.5 
to find out if everything can compile correctly. However, when I deploy 
my index.jsp to the server and try to launch it from 
http://localhost:port#, I get a compilation error that makes no sense to 
me (because I know the code I have compiles correctly with javac). This 
is the index.jsp file:

!doctype html public -//w3c//dtd html 4.0 transitional//en 
http://www.w3.org/TR/REC-html40/strict.dtd;
%@ page import=java.util.ArrayList %
%@ page contentType=text/html;charset=UTF-8 language=java %
html
headtitleTEXT/title/head
 
body
 
%
  String[] s = {1, 2};
for (String x : s) {
}
%
 
/body
/html

This is the error message:


  HTTP Status 500 -



*type* Exception report

*message*

*description* _The server encountered an internal error () that 
prevented it from fulfilling this request._

*exception*

org.apache.jasper.JasperException: Unable to compile class for JSP

An error occurred at line: 9 in the jsp file: /index.jsp
Generated servlet error:
Syntax error on token(s), misplaced construct(s)

An error occurred at line: 9 in the jsp file: /index.jsp
Generated servlet error:
Syntax error on token ), : expected



org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:84)

org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:328)

org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:397)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:288)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:267)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:255)

org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:556)

org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:293)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:291)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

I don't know what is wrong. I have JDK1.5.0_06 installed on the UNIX box 
Tomcat is installed on, so the code should certainly be compiling.

One thing that bothers me is this:

When I use shutdown.sh or startup.sh to shutdown and startup Tomcat, 
respectively, the terminal output tells me:

Using JRE_HOME: /usr/local/jdk1.5.0_06

Should this not be JAVA_HOME instead of JRE_HOME? I have a JAVA_HOME 
environment variable that is set to what JRE_HOME is currently set to. 
Also when I use printenv JRE_HOME, it returns nothing. Is this a problem?

Thanks for any help you can offer,
Dan

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: mod_jk - tomcat sending delay

2007-02-14 Thread Propes, Barry L [GCG-NAOT]
ok, thanks.

-Original Message-
From: Babu Satasiya [mailto:[EMAIL PROTECTED]
Sent: Tuesday, February 13, 2007 4:58 PM
To: users@tomcat.apache.org
Subject: RE: mod_jk - tomcat sending delay



Hi,

oh!! 

Its always - Apache+mod_jk  - connecting to multiple tomcates on different
systems.

With regards,

Babu Satasiya


Propes, Barry L [GCG-NAOT] wrote:
 
 New using Tomcat 5 series -- just where is mod_jk within Tomcat?
 
 Please let me know.
 
 Thanks,
 
 
 -Original Message-
 From: babu [mailto:[EMAIL PROTECTED]
 Sent: Friday, February 09, 2007 4:11 PM
 To: users@tomcat.apache.org
 Subject: Re: [OT] mod_jk - tomcat sending delay
 
 
 
 Hi,
 
 We are also facing same problem and we are using mod_jk 1.2.6 with apache
 2.0.53 and tomcat 5.0.27. Mod_jk is configured with loadbalancer. We have
 Apache+mod_jk with LB +  9 tomcats in backend. Mod_jk is set with sticky
 bit
 set.
 
 Partial workers.properites
 
 worker.list=loadbalancer
 worker.loadbalancer.type=lb
 worker.loadbalancer.balanced_workers=tc_1_1,tc_1_2,tc_1_3,tc_2_1,tc_2_2,tc_2_3,tc_3_1,tc_3_2,tc_3_3
 
 
 
 worker.tc_1_1.host=cna-prod-app-25
 worker.tc_1_1.port=8000
 worker.tc_1_1.type=ajp13
 worker.tc_1_1.lbfactor=1
 worker.tc_1_1.cachesize=50
 worker.tc_1_1.cache_timeout=180
 worker.tc_1_1.socket_timeout=300
 worker.tc_1_1.socket_keepalive=1
 worker.tc_1_1.recovery_options=0
 worker.tc_1_1.sticky_session=1
 
 server.xml
 
 Connector port=8000
   protocol=AJP/1.3
   address=cna-prod-app-25
   minProcessors=50
   maxProcessors=100
   enableLookups=false
   debug=0
   URIEncoding=UTF-8
   connectionTimeout=18
   /
 
 I found in one of discussion board, that connection timeout in sever.xml
 and
 timeout parameters in workers.properties should be matched properly and
 also
 found that in server.xml its in miliseconds and in workers.properites it
 is
 seconds.
 
 
 We do not find any issue at client side but erorr keeps going in mod_jk
 log.
 ( I am not sure of client side issues are there or not)
 
 
 mod_jk log
 
 [Fri Feb 09 22:00:55 2007]  [jk_ajp_common.c (1250)]: Tomcat is down or
 network problems. No response has been sent to the client (yet)
 [Fri Feb 09 22:00:55 2007]  [jk_ajp_common.c (1449)]: ERROR: Receiving
 from
 tomcat failed, recoverable operation. err=2
 [Fri Feb 09 22:00:55 2007]  [jk_ajp_common.c (1477)]: Error connecting to
 tomcat. Tomcat is probably not started or is listening on the wrong port.
 worker=tc_3_3 failed errno = 0
 [Fri Feb 09 22:01:21 2007]  [jk_ajp_common.c (783)]: ERROR: can't receive
 the response message from tomcat, network problems or tomcat is down
 (128.107.229.109:8002), err=-1
 [Fri Feb 09 22:01:21 2007]  [jk_ajp_common.c (1250)]: Tomcat is down or
 network problems. No response has been sent to the client (yet)
 [Fri Feb 09 22:01:21 2007]  [jk_ajp_common.c (1449)]: ERROR: Receiving
 from
 tomcat failed, recoverable operation. err=2
 [Fri Feb 09 22:01:21 2007]  [jk_ajp_common.c (1477)]: Error connecting to
 tomcat. Tomcat is probably not started or is listening on the wrong port.
 worker=tc_1_3 failed errno = 0
 [Fri Feb 09 22:01:41 2007]  [jk_ajp_common.c (783)]: ERROR: can't receive
 the response message from tomcat, network problems or tomcat is down
 (128.107.229.110:8001), err=-1
 [Fri Feb 09 22:01:41 2007]  [jk_ajp_common.c (1250)]: Tomcat is down or
 network problems. No response has been sent to the client (yet)
 [Fri Feb 09 22:01:41 2007]  [jk_ajp_common.c (1449)]: ERROR: Receiving
 from
 tomcat failed, recoverable operation. err=2
 [Fri Feb 09 22:01:41 2007]  [jk_ajp_common.c (1477)]: Error connecting to
 tomcat. Tomcat is probably not started or is listening on the wrong port.
 worker=tc_2_2 failed errno = 0
 [Fri Feb 09 22:01:44 2007]  [jk_ajp_common.c (783)]: ERROR: can't receive
 the response message from tomcat, network problems or tomcat is down
 (128.107.229.109:8000), err=-1
 [Fri Feb 09 22:01:44 2007]  [jk_ajp_common.c (1250)]: Tomcat is down or
 network problems. No response has been sent to the client (yet)
 [Fri Feb 09 22:01:44 2007]  [jk_ajp_common.c (1449)]: ERROR: Receiving
 from
 tomcat failed, recoverable operation. err=0
 [Fri Feb 09 22:02:03 2007]  [jk_ajp_common.c (783)]: ERROR: can't receive
 the response message from tomcat, network problems or tomcat is down
 (128.107.229.110:8002), err=-1
 [Fri Feb 09 22:02:03 2007]  [jk_ajp_common.c (1250)]: Tomcat is down or
 network problems. No response has been sent to the client (yet)
 [Fri Feb 09 22:02:03 2007]  [jk_ajp_common.c (1449)]: ERROR: Receiving
 from
 tomcat failed, recoverable operation. err=1
 [Fri Feb 09 22:02:49 2007]  [jk_ajp_common.c (783)]: ERROR: can't receive
 the response message from tomcat, network problems or tomcat is down
 (128.107.229.110:8002), err=-1
 [Fri Feb 09 22:02:49 2007]  [jk_ajp_common.c (1250)]: Tomcat is down or
 network problems. No response has been sent

RE: Connection Pool configuration

2007-02-14 Thread Propes, Barry L [GCG-NAOT]
also,

I'm looking for my DBCP configuration in the server.xml file and see the very 
generic:

  Resource name=jdbc/EmployeeAppDb auth=SERVLET
type=javax.sql.DataSource/
  ResourceParams name=jdbc/EmployeeAppDb
parameternameuser/namevaluesa/value/parameter
parameternamepassword/namevalue/value/parameter
parameternamedriverClassName/name
  valueorg.hsql.jdbcDriver/value/parameter
parameternamedriverName/name
  valuejdbc:HypersonicSQL:database/value/parameter
  /ResourceParams

Is this actually it?
Do I just need to recreate my own or do I add additional resource params to 
this?
Like for instance, that below.

 parameter
  nameremoveAbandoned/name
  valuetrue/value
/parameter


I didn't see a preconfigured DBCP setting that's commented out. Any feedback 
would be great!

Thanks,
.

-Original Message-
From: Propes, Barry L [GCG-NAOT] 
Sent: Wednesday, February 14, 2007 10:17 AM
To: Tomcat Users List
Subject: RE: Connection Pool configuration


are you talking under the META-INF folder of the app I suppose? Just so that 
I'm clear.

I was looking at the documentation of TC 5.5 and it mentioned a jar file titled 
naming-factory-dbcp.jar.
I don't seem to have that under either of my lib directories -- common or root.
I do have naming-factory.jar, but is that good enough for DB Connection Pooling?

Anyone that's dealt with 4.0 or 4.1 know?

-Original Message-
From: Foo Shyn [mailto:[EMAIL PROTECTED]
Sent: Thursday, February 08, 2007 7:36 PM
To: Tomcat Users List
Subject: Re: Connection Pool configuration


Hi,

I'm not sure bout Tomcat 4.0, but i think in 4.1 u could do it through the 
admin page.
Just create a Datasource under ur apps context should do the trick.

Thanx.
Regards,
FooShyn
- Original Message - 
From: Propes, Barry L [GCG-NAOT] [EMAIL PROTECTED]
To: Tomcat Users List users@tomcat.apache.org
Sent: Friday, February 09, 2007 12:01 AM
Subject: Connection Pool configuration


Hello, I'm dealing with Tomcat 4.0.1 and -4.1.3.

I badly need to get connection pooling configured, but am not quite sure how 
to do it.

Here's  a block from my server.xml file.


Realm  className=org.apache.catalina.realm.JDBCRealm debug=99
 driverName=oracle.jdbc.OracleDriver
 connectionURL=jdbc:oracle:thin:@169.xxx.xx.xxx:1521:SID
 connectionName=user_name
 connectionPassword=user_pwd
 userTable=users userNameCol=user_name userCredCol=user_pass
 userRoleTable=user_roles roleNameCol=role_name /


This goes to the users table created for password sessions.

Do I configure anything here for Connection Pooling? Do I add
maxActive 8
minIdle 0 , etc.?

How would I alter or configure this? Any advice is welcomed.

Thanks,

Barry






No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.5.432 / Virus Database: 268.17.30/674 - Release Date: 2/7/2007 
3:33 PM



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Connection Pool configuration

2007-02-14 Thread Propes, Barry L [GCG-NAOT]
are you talking under the META-INF folder of the app I suppose? Just so that 
I'm clear.

I was looking at the documentation of TC 5.5 and it mentioned a jar file titled 
naming-factory-dbcp.jar.
I don't seem to have that under either of my lib directories -- common or root.
I do have naming-factory.jar, but is that good enough for DB Connection Pooling?

Anyone that's dealt with 4.0 or 4.1 know?

-Original Message-
From: Foo Shyn [mailto:[EMAIL PROTECTED]
Sent: Thursday, February 08, 2007 7:36 PM
To: Tomcat Users List
Subject: Re: Connection Pool configuration


Hi,

I'm not sure bout Tomcat 4.0, but i think in 4.1 u could do it through the 
admin page.
Just create a Datasource under ur apps context should do the trick.

Thanx.
Regards,
FooShyn
- Original Message - 
From: Propes, Barry L [GCG-NAOT] [EMAIL PROTECTED]
To: Tomcat Users List users@tomcat.apache.org
Sent: Friday, February 09, 2007 12:01 AM
Subject: Connection Pool configuration


Hello, I'm dealing with Tomcat 4.0.1 and -4.1.3.

I badly need to get connection pooling configured, but am not quite sure how 
to do it.

Here's  a block from my server.xml file.


Realm  className=org.apache.catalina.realm.JDBCRealm debug=99
 driverName=oracle.jdbc.OracleDriver
 connectionURL=jdbc:oracle:thin:@169.xxx.xx.xxx:1521:SID
 connectionName=user_name
 connectionPassword=user_pwd
 userTable=users userNameCol=user_name userCredCol=user_pass
 userRoleTable=user_roles roleNameCol=role_name /


This goes to the users table created for password sessions.

Do I configure anything here for Connection Pooling? Do I add
maxActive 8
minIdle 0 , etc.?

How would I alter or configure this? Any advice is welcomed.

Thanks,

Barry






No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.5.432 / Virus Database: 268.17.30/674 - Release Date: 2/7/2007 
3:33 PM



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



multiple versions of TC

2007-02-14 Thread Propes, Barry L [GCG-NAOT]
Hi,
 
I'm running 4.0.1 currently on my local box, but our prod box has 4.1.3. I was 
wondering, if I copy down the newer version, can I run it also (not 
simultaneously) but without having to delete the older version?

Can I just set the jdk path appropriately and run it like I would my older 
version?

PLease advise.
 
Thanks.


RE: multiple versions of TC

2007-02-14 Thread Propes, Barry L [GCG-NAOT]
ok, thanks, David.

-Original Message-
From: David Kerber [mailto:[EMAIL PROTECTED]
Sent: Wednesday, February 14, 2007 12:21 PM
To: Tomcat Users List
Subject: Re: multiple versions of TC


Propes, Barry L [GCG-NAOT] wrote:

Hi,
 
I'm running 4.0.1 currently on my local box, but our prod box has 4.1.3. I was 
wondering, if I copy down the newer version, can I run it also (not 
simultaneously) but without having to delete the older version?
  

You could even run them simultaneously if you make sure you don't have 
any conflicts in the ports they are using.

D



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: multiple versions of TC

2007-02-14 Thread Propes, Barry L [GCG-NAOT]
gotcha! Thanks.
Both were running at port 8080, just not simultaneously. I should be ok in that 
regard, correct?

-Original Message-
From: Christopher Schultz [mailto:[EMAIL PROTECTED]
Sent: Wednesday, February 14, 2007 1:22 PM
To: Tomcat Users List
Subject: Re: multiple versions of TC


-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Barry,

David Kerber wrote:
 Propes, Barry L [GCG-NAOT] wrote:
 I'm running 4.0.1 currently on my local box, but our prod box has
 4.1.3. I was wondering, if I copy down the newer version, can I run it
 also (not simultaneously) but without having to delete the older version?
  
 You could even run them simultaneously if you make sure you don't have
 any conflicts in the ports they are using.

To echo David's comments, I have TC 4.1.34 running alongside 5.5 on my
development servers, all at the same time. I have 4 JVMs running... 3
with 4.1.34 and 1 with 5.5 with no problems at all.

Davis is absolutely correct in that you have to be careful not to
overlap port numbers or things won't work.

- -chris

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.6 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFF02FV9CaO5/Lv0PARAhzqAKCqwOq0/8c8oh033PwMEwWDH+W0AACfWsd8
0O9x8s4h0mkbOanFcKDH11U=
=rDKv
-END PGP SIGNATURE-

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: multiple versions of TC

2007-02-14 Thread Propes, Barry L [GCG-NAOT]
what does that entail? Just going and switching it in a properties file 
somewhere? Or making an entirely new properties file?

-Original Message-
From: Christopher Schultz [mailto:[EMAIL PROTECTED]
Sent: Wednesday, February 14, 2007 2:31 PM
To: Tomcat Users List
Subject: Re: multiple versions of TC


-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Barry,

Propes, Barry L [GCG-NAOT] wrote:
 gotcha! Thanks.
 Both were running at port 8080, just not simultaneously. I should be ok in 
 that regard, correct?

Yeah, you should be fine.

What I do on my machines is front everything with Apache httpd and then
use JkMounts to map different URL spaces to different workers/Tomcats.

This way, each Tomcat can run completely independently of the others.

- -chris

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.6 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFF03Fq9CaO5/Lv0PARAsj2AKCNE7q0Kq34/EcC0la7O292FO+MHwCgmrSJ
DIH5iKzkhk7rdR63Mt4zh88=
=9xec
-END PGP SIGNATURE-

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: multiple versions of TC

2007-02-14 Thread Propes, Barry L [GCG-NAOT]
perfect! Thanks, Chris!

-Original Message-
From: Christopher Schultz [mailto:[EMAIL PROTECTED]
Sent: Wednesday, February 14, 2007 3:27 PM
To: Tomcat Users List
Subject: Re: multiple versions of TC


-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Barry,

Propes, Barry L [GCG-NAOT] wrote:
 what does that entail? Just going and switching it in a properties
 file somewhere? Or making an entirely new properties file?

Take a look at the Advanced section of RUNNING.TXT in your Tomcat
installation directory. You can run more than one copy of Tomcat with
different server.xml files (and deployed webapps, etc.) at the same time.

Then, if you want to put Apache httpd out front, only a single mod_jk
config and workers.properties file is needed. You just map each URL
space to a separate worker.

- -chris

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.6 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFF036b9CaO5/Lv0PARAq7JAJ0Rk7WE5StxPGH0jGcQEi38lIhd7gCgs6on
yJTOpZagnNimDh8+zDqkW1Q=
=DzlM
-END PGP SIGNATURE-

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Tomcat load up error, w/ Oracle

2007-02-13 Thread Propes, Barry L [GCG-NAOT]
Hi folks, I've been having some issues anyway with Oracle in my Java app the 
last week or so.
Originally, I thought it was due to some references where I was using the old 
sun.jdbc.odbc.JdbcOdbcDriver rather than the thin Oracle driver.

So in any reference I had this, I've switched it to the Oracle thin like so:

Class.forName(oracle.jdbc.driver.OracleDriver);
   String dbURL = jdbc:oracle:thin:@192.xxx.xx.xxx:1521:SID;

My error is listed below. I guess my question is, do any of you think this is 
mainly with Oracle, or perhaps the driver in the Tomcat lib directory got 
corrupt? Or is this a Tomcat issue at all even? I'm inclined to think the 
driver (jar file) might have gotten corrupt possibly, but that would be 
unlikely and that it's more of an issue with Oracle.

I welcome any feedback.

Thanks,

Barry



Catalina.start: LifecycleException:  Exception opening database connection:  jav
a.sql.SQLException: Io exception: The Network Adapter could not establish the co
nnection
LifecycleException:  Exception opening database connection:  java.sql.SQLExcepti
on: Io exception: The Network Adapter could not establish the connection
at org.apache.catalina.realm.JDBCRealm.start(JDBCRealm.java:615)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1108)

at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:307
)
at org.apache.catalina.core.StandardService.start(StandardService.java:3
88)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:505
)
at org.apache.catalina.startup.Catalina.start(Catalina.java:776)
at org.apache.catalina.startup.Catalina.execute(Catalina.java:681)
at org.apache.catalina.startup.Catalina.process(Catalina.java:179)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243)
- Root Cause -
java.sql.SQLException: Io exception: The Network Adapter could not establish the
 connection
at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:134)
at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:179)
at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:334)
at oracle.jdbc.driver.OracleConnection.init(OracleConnection.java:418)

at oracle.jdbc.driver.OracleDriver.getConnectionInstance(OracleDriver.ja
va:521)
at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:325)

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Tomcat load up error, w/ Oracle

2007-02-13 Thread Propes, Barry L [GCG-NAOT]
only periodically.


-Original Message-
From: Jason Pyeron [mailto:[EMAIL PROTECTED]
Sent: Monday, February 12, 2007 1:35 PM
To: 'Tomcat Users List'
Subject: RE: Tomcat load up error, w/ Oracle


Are you able to connect to the Oracle box using sqlplus from the tomcat box?



-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
-   -
- Jason Pyeron  PD Inc. http://www.pdinc.us -
- Sr. Consultant10 West 24th Street #100-
- +1 (443) 269-1555 x333Baltimore, Maryland 21218   -
-   -
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

This message is for the designated recipient only and may contain
privileged, proprietary, or otherwise private information. If you
have received it in error, purge the message from your system and
notify the sender immediately.  Any other use of the email by you
is prohibited. 


-Original Message-
From: Propes, Barry L [GCG-NAOT] [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, February 13, 2007 11:43
To: Tomcat Users List
Subject: Tomcat load up error, w/ Oracle

Hi folks, I've been having some issues anyway with Oracle in my Java app the
last week or so.
Originally, I thought it was due to some references where I was using the
old sun.jdbc.odbc.JdbcOdbcDriver rather than the thin Oracle driver.

So in any reference I had this, I've switched it to the Oracle thin like so:

Class.forName(oracle.jdbc.driver.OracleDriver);
   String dbURL = jdbc:oracle:thin:@192.xxx.xx.xxx:1521:SID;

My error is listed below. I guess my question is, do any of you think this
is mainly with Oracle, or perhaps the driver in the Tomcat lib directory got
corrupt? Or is this a Tomcat issue at all even? I'm inclined to think the
driver (jar file) might have gotten corrupt possibly, but that would be
unlikely and that it's more of an issue with Oracle.

I welcome any feedback.

Thanks,

Barry



Catalina.start: LifecycleException:  Exception opening database connection:
jav
a.sql.SQLException: Io exception: The Network Adapter could not establish
the co
nnection
LifecycleException:  Exception opening database connection:
java.sql.SQLExcepti
on: Io exception: The Network Adapter could not establish the connection
at org.apache.catalina.realm.JDBCRealm.start(JDBCRealm.java:615)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1108)

at
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:307
)
at
org.apache.catalina.core.StandardService.start(StandardService.java:3
88)
at
org.apache.catalina.core.StandardServer.start(StandardServer.java:505
)
at org.apache.catalina.startup.Catalina.start(Catalina.java:776)
at org.apache.catalina.startup.Catalina.execute(Catalina.java:681)
at org.apache.catalina.startup.Catalina.process(Catalina.java:179)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243)
- Root Cause -
java.sql.SQLException: Io exception: The Network Adapter could not establish
the
 connection
at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:134)
at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:179)
at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:334)
at
oracle.jdbc.driver.OracleConnection.init(OracleConnection.java:418)

at
oracle.jdbc.driver.OracleDriver.getConnectionInstance(OracleDriver.ja
va:521)
at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:325)

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Tomcat load up error, w/ Oracle

2007-02-13 Thread Propes, Barry L [GCG-NAOT]
ok, thanks Jason. I'll take that into account. That very well may be.

As far as I can tell, even though I didn't yet implement connection pooling, 
which might help a little, I've properly closed all my connections within my 
various JSP and servlets.

-Original Message-
From: Jason Pyeron [mailto:[EMAIL PROTECTED]
Sent: Monday, February 12, 2007 2:55 PM
To: 'Tomcat Users List'
Subject: RE: Tomcat load up error, w/ Oracle


The I would suggest you contact you NOC/NOG to get your connectivity
resolved, as it did/does not look like a Java/Tomcat based issue. 

If I was abetting type, I would say that there is a faulty switch on the
net.

-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
-   -
- Jason Pyeron  PD Inc. http://www.pdinc.us -
- Sr. Consultant10 West 24th Street #100-
- +1 (443) 269-1555 x333Baltimore, Maryland 21218   -
-   -
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

This message is for the designated recipient only and may contain
privileged, proprietary, or otherwise private information. If you
have received it in error, purge the message from your system and
notify the sender immediately.  Any other use of the email by you
is prohibited. 


-Original Message-
From: Propes, Barry L [GCG-NAOT] [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, February 13, 2007 12:44
To: Tomcat Users List
Subject: RE: Tomcat load up error, w/ Oracle

only periodically.


-Original Message-
From: Jason Pyeron [mailto:[EMAIL PROTECTED]
Sent: Monday, February 12, 2007 1:35 PM
To: 'Tomcat Users List'
Subject: RE: Tomcat load up error, w/ Oracle


Are you able to connect to the Oracle box using sqlplus from the tomcat box?



-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
-   -
- Jason Pyeron  PD Inc. http://www.pdinc.us -
- Sr. Consultant10 West 24th Street #100-
- +1 (443) 269-1555 x333Baltimore, Maryland 21218   -
-   -
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

This message is for the designated recipient only and may contain
privileged, proprietary, or otherwise private information. If you
have received it in error, purge the message from your system and
notify the sender immediately.  Any other use of the email by you
is prohibited. 


-Original Message-
From: Propes, Barry L [GCG-NAOT] [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, February 13, 2007 11:43
To: Tomcat Users List
Subject: Tomcat load up error, w/ Oracle

Hi folks, I've been having some issues anyway with Oracle in my Java app the
last week or so.
Originally, I thought it was due to some references where I was using the
old sun.jdbc.odbc.JdbcOdbcDriver rather than the thin Oracle driver.

So in any reference I had this, I've switched it to the Oracle thin like so:

Class.forName(oracle.jdbc.driver.OracleDriver);
   String dbURL = jdbc:oracle:thin:@192.xxx.xx.xxx:1521:SID;

My error is listed below. I guess my question is, do any of you think this
is mainly with Oracle, or perhaps the driver in the Tomcat lib directory got
corrupt? Or is this a Tomcat issue at all even? I'm inclined to think the
driver (jar file) might have gotten corrupt possibly, but that would be
unlikely and that it's more of an issue with Oracle.

I welcome any feedback.

Thanks,

Barry



Catalina.start: LifecycleException:  Exception opening database connection:
jav
a.sql.SQLException: Io exception: The Network Adapter could not establish
the co
nnection
LifecycleException:  Exception opening database connection:
java.sql.SQLExcepti
on: Io exception: The Network Adapter could not establish the connection
at org.apache.catalina.realm.JDBCRealm.start(JDBCRealm.java:615)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1108)

at
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:307
)
at
org.apache.catalina.core.StandardService.start(StandardService.java:3
88)
at
org.apache.catalina.core.StandardServer.start(StandardServer.java:505
)
at org.apache.catalina.startup.Catalina.start(Catalina.java:776)
at org.apache.catalina.startup.Catalina.execute(Catalina.java:681)
at org.apache.catalina.startup.Catalina.process(Catalina.java:179)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243)
- Root Cause

RE: [OT] mod_jk - tomcat sending delay

2007-02-13 Thread Propes, Barry L [GCG-NAOT]
New using Tomcat 5 series -- just where is mod_jk within Tomcat?

Please let me know.

Thanks,


-Original Message-
From: babu [mailto:[EMAIL PROTECTED]
Sent: Friday, February 09, 2007 4:11 PM
To: users@tomcat.apache.org
Subject: Re: [OT] mod_jk - tomcat sending delay



Hi,

We are also facing same problem and we are using mod_jk 1.2.6 with apache
2.0.53 and tomcat 5.0.27. Mod_jk is configured with loadbalancer. We have
Apache+mod_jk with LB +  9 tomcats in backend. Mod_jk is set with sticky bit
set.

Partial workers.properites

worker.list=loadbalancer
worker.loadbalancer.type=lb
worker.loadbalancer.balanced_workers=tc_1_1,tc_1_2,tc_1_3,tc_2_1,tc_2_2,tc_2_3,tc_3_1,tc_3_2,tc_3_3



worker.tc_1_1.host=cna-prod-app-25
worker.tc_1_1.port=8000
worker.tc_1_1.type=ajp13
worker.tc_1_1.lbfactor=1
worker.tc_1_1.cachesize=50
worker.tc_1_1.cache_timeout=180
worker.tc_1_1.socket_timeout=300
worker.tc_1_1.socket_keepalive=1
worker.tc_1_1.recovery_options=0
worker.tc_1_1.sticky_session=1

server.xml

Connector port=8000
  protocol=AJP/1.3
  address=cna-prod-app-25
  minProcessors=50
  maxProcessors=100
  enableLookups=false
  debug=0
  URIEncoding=UTF-8
  connectionTimeout=18
  /

I found in one of discussion board, that connection timeout in sever.xml and
timeout parameters in workers.properties should be matched properly and also
found that in server.xml its in miliseconds and in workers.properites it is
seconds.


We do not find any issue at client side but erorr keeps going in mod_jk log.
( I am not sure of client side issues are there or not)


mod_jk log

[Fri Feb 09 22:00:55 2007]  [jk_ajp_common.c (1250)]: Tomcat is down or
network problems. No response has been sent to the client (yet)
[Fri Feb 09 22:00:55 2007]  [jk_ajp_common.c (1449)]: ERROR: Receiving from
tomcat failed, recoverable operation. err=2
[Fri Feb 09 22:00:55 2007]  [jk_ajp_common.c (1477)]: Error connecting to
tomcat. Tomcat is probably not started or is listening on the wrong port.
worker=tc_3_3 failed errno = 0
[Fri Feb 09 22:01:21 2007]  [jk_ajp_common.c (783)]: ERROR: can't receive
the response message from tomcat, network problems or tomcat is down
(128.107.229.109:8002), err=-1
[Fri Feb 09 22:01:21 2007]  [jk_ajp_common.c (1250)]: Tomcat is down or
network problems. No response has been sent to the client (yet)
[Fri Feb 09 22:01:21 2007]  [jk_ajp_common.c (1449)]: ERROR: Receiving from
tomcat failed, recoverable operation. err=2
[Fri Feb 09 22:01:21 2007]  [jk_ajp_common.c (1477)]: Error connecting to
tomcat. Tomcat is probably not started or is listening on the wrong port.
worker=tc_1_3 failed errno = 0
[Fri Feb 09 22:01:41 2007]  [jk_ajp_common.c (783)]: ERROR: can't receive
the response message from tomcat, network problems or tomcat is down
(128.107.229.110:8001), err=-1
[Fri Feb 09 22:01:41 2007]  [jk_ajp_common.c (1250)]: Tomcat is down or
network problems. No response has been sent to the client (yet)
[Fri Feb 09 22:01:41 2007]  [jk_ajp_common.c (1449)]: ERROR: Receiving from
tomcat failed, recoverable operation. err=2
[Fri Feb 09 22:01:41 2007]  [jk_ajp_common.c (1477)]: Error connecting to
tomcat. Tomcat is probably not started or is listening on the wrong port.
worker=tc_2_2 failed errno = 0
[Fri Feb 09 22:01:44 2007]  [jk_ajp_common.c (783)]: ERROR: can't receive
the response message from tomcat, network problems or tomcat is down
(128.107.229.109:8000), err=-1
[Fri Feb 09 22:01:44 2007]  [jk_ajp_common.c (1250)]: Tomcat is down or
network problems. No response has been sent to the client (yet)
[Fri Feb 09 22:01:44 2007]  [jk_ajp_common.c (1449)]: ERROR: Receiving from
tomcat failed, recoverable operation. err=0
[Fri Feb 09 22:02:03 2007]  [jk_ajp_common.c (783)]: ERROR: can't receive
the response message from tomcat, network problems or tomcat is down
(128.107.229.110:8002), err=-1
[Fri Feb 09 22:02:03 2007]  [jk_ajp_common.c (1250)]: Tomcat is down or
network problems. No response has been sent to the client (yet)
[Fri Feb 09 22:02:03 2007]  [jk_ajp_common.c (1449)]: ERROR: Receiving from
tomcat failed, recoverable operation. err=1
[Fri Feb 09 22:02:49 2007]  [jk_ajp_common.c (783)]: ERROR: can't receive
the response message from tomcat, network problems or tomcat is down
(128.107.229.110:8002), err=-1
[Fri Feb 09 22:02:49 2007]  [jk_ajp_common.c (1250)]: Tomcat is down or
network problems. No response has been sent to the client (yet)
[Fri Feb 09 22:02:49 2007]  [jk_ajp_common.c (1449)]: ERROR: Receiving from
tomcat failed, recoverable operation. err=0
[Fri Feb 09 22:02:59 2007]  [jk_ajp_common.c (783)]: ERROR: can't receive
the response message from tomcat, network problems or tomcat is down
(128.107.229.110:8001), err=-1
[Fri Feb 09 22:02:59 2007]  [jk_ajp_common.c (1250)]: Tomcat is down or
network problems. No response has been sent to the client (yet)
[Fri Feb 09 22:02:59 2007]  

RE: Connection Pool configuration

2007-02-09 Thread Propes, Barry L [GCG-NAOT]
ok, thanks FooShyn.

-Original Message-
From: Foo Shyn [mailto:[EMAIL PROTECTED]
Sent: Thursday, February 08, 2007 7:36 PM
To: Tomcat Users List
Subject: Re: Connection Pool configuration


Hi,

I'm not sure bout Tomcat 4.0, but i think in 4.1 u could do it through the 
admin page.
Just create a Datasource under ur apps context should do the trick.

Thanx.
Regards,
FooShyn
- Original Message - 
From: Propes, Barry L [GCG-NAOT] [EMAIL PROTECTED]
To: Tomcat Users List users@tomcat.apache.org
Sent: Friday, February 09, 2007 12:01 AM
Subject: Connection Pool configuration


Hello, I'm dealing with Tomcat 4.0.1 and -4.1.3.

I badly need to get connection pooling configured, but am not quite sure how 
to do it.

Here's  a block from my server.xml file.


Realm  className=org.apache.catalina.realm.JDBCRealm debug=99
 driverName=oracle.jdbc.OracleDriver
 connectionURL=jdbc:oracle:thin:@169.xxx.xx.xxx:1521:SID
 connectionName=user_name
 connectionPassword=user_pwd
 userTable=users userNameCol=user_name userCredCol=user_pass
 userRoleTable=user_roles roleNameCol=role_name /


This goes to the users table created for password sessions.

Do I configure anything here for Connection Pooling? Do I add
maxActive 8
minIdle 0 , etc.?

How would I alter or configure this? Any advice is welcomed.

Thanks,

Barry






No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.5.432 / Virus Database: 268.17.30/674 - Release Date: 2/7/2007 
3:33 PM



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Please help me about loading javascript...

2007-02-09 Thread Propes, Barry L [GCG-NAOT]
while that's difficult to read, let me see if I interpreted correctly.

While loading  a webpage from the localhost URL the javascript file included in 
that web page does not fully load, and in the middle of loading, hangs or 
crashes? And then you open the page in Internet Explorer it reads done? 
Not sure what you're trying to accomplish per se, but if in the BODY tag of the 
JSP/HTML page, whatever it is, if you'll put the onLoad() command there and 
call the function accordingly.

Example

body onLoad=gotoPage();

where gotoPage() is a function referencing a js script up in the head tags.

Is this what you're trying to do?

Let me know if that helps you.

-Original Message-
From: Le Phuoc Canh [mailto:[EMAIL PROTECTED]
Sent: Thursday, February 08, 2007 7:13 PM
To: Tomcat Users List
Subject: Please help me about loading javascript...


I don't know why loading a webpage from localhost, file javascript which
include in that webpage not loading full, it will stop at the middle, while
i open that webpage direct by internet explore, i will done.
Please help me about it.
Thanks a lot  Best Regard.

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Windows Authentication against multiple domains

2007-02-09 Thread Propes, Barry L [GCG-NAOT]
if you find out, please let me know...I'm barking up that tree, too.

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Friday, February 09, 2007 4:50 PM
To: users@tomcat.apache.org
Subject: Windows Authentication against multiple domains


Hi,
 
I am having a tomcat webapplication and logon needs to be done via
windows-authentication (ldap). I configured authentication against ldap,
that works fine for one domain. The problem is, that we are having users in
multiple domains. Is there a way to configure authentication against the
whole active directory forest?
 
Thanks for your help!
 
Uwe
 

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: URL Redirect Question

2007-02-08 Thread Propes, Barry L [GCG-NAOT]
you could do this...

set that one URL in your welcome page as the default -- say index or 
default.jsp, or index.html, or whatever.
That way, people can just click that simple link below.

Within one of those pages, you could add a small little javascript function 
that does the redirect.

If you need an example, I can send you one.

-Original Message-
From: Stanczak Group [mailto:[EMAIL PROTECTED]
Sent: Thursday, February 08, 2007 8:33 AM
To: Tomcat Users List
Subject: URL Redirect Question


I think this is a simple question, but I can't seem to find the answer. 
I want to setup redirects in Tomcat, so basically I want something like 
http://www.mysite.com/short would redirect to 
http://www.mysite.com/some/longer/url/site.html. I'm still using the 
default Tomcat setup, so I want to use whatever works best with it. I've 
used JSP to redirect before, but was wanting something easier to manage. 
Any suggestions?

-- 
Justin Stanczak
Stanczak Group
812-735-3600

All that is necessary for the triumph of evil is that good men do nothing.
Edmund Burke


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Connection Pool configuration

2007-02-08 Thread Propes, Barry L [GCG-NAOT]
Hello, I'm dealing with Tomcat 4.0.1 and -4.1.3.
 
I badly need to get connection pooling configured, but am not quite sure how to 
do it.
 
Here's  a block from my server.xml file.
 
 
Realm  className=org.apache.catalina.realm.JDBCRealm debug=99
 driverName=oracle.jdbc.OracleDriver
 connectionURL=jdbc:oracle:thin:@169.xxx.xx.xxx:1521:SID
 connectionName=user_name
 connectionPassword=user_pwd
 userTable=users userNameCol=user_name userCredCol=user_pass
 userRoleTable=user_roles roleNameCol=role_name /
 
 
This goes to the users table created for password sessions.
 
Do I configure anything here for Connection Pooling? Do I add 
maxActive8  
minIdle 0 , etc.?
 
How would I alter or configure this? Any advice is welcomed. 
 
Thanks,
 
Barry


RE: authentication using active directory

2007-01-26 Thread Propes, Barry L [GCG-NAOT]
you have to use the usernames and passwords as j_username and j_password. You 
didn't try to change that did you?

-Original Message-
From: Deepan [mailto:[EMAIL PROTECTED]
Sent: Friday, January 26, 2007 1:22 AM
To: Tomcat Users List
Subject: authentication using active directory


Hi,
 I am trying to authenticate using Active directory for one my
application in tomcat. ( I have only one application deployed in
tomcat). 

I had configured server.xml and web.xml to use /gridsphere/login.html to
get details from user and authenticate using AD. When i hit the url
localhost:8080, i get 404 error, saying The requested resource
(/gridsphere/login.html) is not available.  




---
server.xml 

Realm className=org.apache.catalina.realm.JNDIRealm debug=99

connectionURL=ldap://172.168.1.1:389;
connectionName=[EMAIL PROTECTED]
connectionPassword=
referrals=follow
userRoleName=member
roleSearch=(member={0})
roleSubtree=false
userSubtree=true
/

--

web.xml


security-constraint
web-resource-collection
web-resource-nameYourWebApp/web-resource-name
description accessible by authenticated users of the
tomcat role/description
url-pattern/*/url-pattern
http-methodGET/http-method
http-methodPOST/http-method
http-methodPUT/http-method
http-methodDELETE/http-method
/web-resource-collection
auth-constraint
descriptionThese roles are allowed
access/description
role-nametomcat/role-name
/auth-constraint
/security-constraint

login-config
auth-methodFORM/auth-method
realm-nameYourWebApp Protected Area/realm-name
form-login-config

form-login-page/gridsphere/index.html/form-login-page

form-error-page/gridsphere/autherr.html/form-error-page
/form-login-config
/login-config

security-role
descriptionOnly 'tomcat' role is allowed to access this web
application/description
role-nametomcat/role-name
/security-role



-





-- 
---
Regards
Deepan Chakravarthy N
http://www.codeshepherd.com/
http://sudoku-solver.net/

I am a programmer by day,
I dig grave for other programmers by night.


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: how to detect whether Tomcat has finished starting completely on Windows?

2007-01-25 Thread Propes, Barry L [GCG-NAOT]
I kind of have that deal here, but that's why we have to rely on the admin.

-Original Message-
From: Vlad [mailto:[EMAIL PROTECTED]
Sent: Thursday, January 25, 2007 1:43 AM
To: Tomcat Users List
Subject: RE: how to detect whether Tomcat has finished starting completely on 
Windows?


Hello,

We have very specific needs and can't run it as a service (user who runs 
it may not have enough permissions to start/stop service)..

--
Vlad .

* Propes, Barry L [GCG-NAOT] [EMAIL PROTECTED] [Wed, 24 
Jan 2007 15:01:14 -0500]:
 by the way...why not run it as a service? We do on our Win2K server
 here! We also daily stop it at 5:50 am, and restart it at 5:55 am, 
just
 to kill off any bad threads if there are any. It's rare that there are
 anyway.

 -Original Message-
 From: Vlad [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, January 24, 2007 1:42 PM
 To: users@tomcat.apache.org
 Subject: how to detect whether Tomcat has finished starting completely
 on Windows?


 Hello,

 We are planning to use latest Tomcat from 5.x branch on Windows. It's
 started using 'bin/catalina.run bat' (please don't offer to run it as 
a
 service!). Our application requires Tomcat to be often started (and
 stopped) and we wish to enable certain button in the GUI once it's
 started completely.

 We have a problem - we can't find a way to reliably determine  whether
 it has finished started or not.
 In the middle of startup, it even responds to http requests - but
 returns http error code 400 with error message like
No Host matches server name 127.0.0.1

 What is the recommended way to determine whether Tomcat has finished
 starting up?

 Thank you very much for your answers in advance!

 --
 Vlad .

 --
 Рамблер-Объявления - прямой доступ к базе газеты Из Рук в Руки!
 http://irr.rambler.ru/

 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]


 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: how to detect whether Tomcat has finished starting completely on Windows?

2007-01-24 Thread Propes, Barry L [GCG-NAOT]
usually just shows a message stating 

Starting service Tomcat-Standalone
Apache Tomcat/4.0.1
Starting service Tomcat-Apache
Apache Tomcat/4.0.1

for me. I would guess 5.5 does much the same.
-Original Message-
From: Vlad [mailto:[EMAIL PROTECTED]
Sent: Wednesday, January 24, 2007 1:42 PM
To: users@tomcat.apache.org
Subject: how to detect whether Tomcat has finished starting completely on 
Windows?


Hello,

We are planning to use latest Tomcat from 5.x branch on Windows. It's 
started using 'bin/catalina.run bat' (please don't offer to run it as a 
service!). Our application requires Tomcat to be often started (and 
stopped) and we wish to enable certain button in the GUI once it's 
started completely.

We have a problem - we can't find a way to reliably determine  whether 
it has finished started or not.
In the middle of startup, it even responds to http requests - but 
returns http error code 400 with error message like
   No Host matches server name 127.0.0.1

What is the recommended way to determine whether Tomcat has finished 
starting up?

Thank you very much for your answers in advance!

--
Vlad .

--
Рамблер-Объявления - прямой доступ к базе газеты Из Рук в Руки! 
http://irr.rambler.ru/

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: how to detect whether Tomcat has finished starting completely on Windows?

2007-01-24 Thread Propes, Barry L [GCG-NAOT]
by the way...why not run it as a service? We do on our Win2K server here! We 
also daily stop it at 5:50 am, and restart it at 5:55 am, just to kill off any 
bad threads if there are any. It's rare that there are anyway.

-Original Message-
From: Vlad [mailto:[EMAIL PROTECTED]
Sent: Wednesday, January 24, 2007 1:42 PM
To: users@tomcat.apache.org
Subject: how to detect whether Tomcat has finished starting completely on 
Windows?


Hello,

We are planning to use latest Tomcat from 5.x branch on Windows. It's 
started using 'bin/catalina.run bat' (please don't offer to run it as a 
service!). Our application requires Tomcat to be often started (and 
stopped) and we wish to enable certain button in the GUI once it's 
started completely.

We have a problem - we can't find a way to reliably determine  whether 
it has finished started or not.
In the middle of startup, it even responds to http requests - but 
returns http error code 400 with error message like
   No Host matches server name 127.0.0.1

What is the recommended way to determine whether Tomcat has finished 
starting up?

Thank you very much for your answers in advance!

--
Vlad .

--
Рамблер-Объявления - прямой доступ к базе газеты Из Рук в Руки! 
http://irr.rambler.ru/

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Tomcat unexpectedly shuts down

2007-01-11 Thread Propes, Barry L [GCG-NAOT]
I'd find out what other major processes are running on those two UNIX boxes, as 
it sounds like something there's clashing terribly, and killing off the Tomcat 
process.

-Original Message-
From: Brown, Carlton [mailto:[EMAIL PROTECTED]
Sent: Thursday, January 11, 2007 4:01 PM
To: users@tomcat.apache.org
Subject: Tomcat unexpectedly shuts down


Hello,

My Tomcat instance is unexpectedly shutting itself down every 8 to 72
hours.   Can someone give me some advice on this?   By all appearances
this is a graceful shutdown.  I do not see any interesting exceptions in
the logs (I have looked in catalina.out and the various localhost*
files).   Perhaps I am looking for the wrong thing.

This happens on Tomcat 4.1.31 and 5.028 on Redhat Linux and Solaris 10.
JSP apps running on the server are about 3 different instances of
Anthill 1.8.0.264.

Thanks in advance,
Carlton

*

The information transmitted is intended only for the person or entity to which 
it is addressed and may contain confidential, proprietary, and/or privileged 
material. Any review, retransmission, dissemination or other use of, or taking 
of any action in reliance upon this information by persons or entities other 
than the intended recipient is prohibited. If you received this in error, 
please contact the sender and delete the material from all computers. GA623



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Tomcat unexpectedly shuts down

2007-01-11 Thread Propes, Barry L [GCG-NAOT]
sounds like you've got some thread hanging in there somewhere, but the logs 
don't indicate which one might be hanging?

Also sounds like a memory issue; is it possible someone created some kind of 
servlet or app that manually controls Java's garbage collection?

-Original Message-
From: Steve Ingraham [mailto:[EMAIL PROTECTED]
Sent: Thursday, January 11, 2007 4:24 PM
To: Tomcat Users List
Subject: RE: Tomcat unexpectedly shuts down


I have a similar problem.  I would be interested to know what is said
about this.

In our case we have a web based application that calls up a MySQL
database. It is running in Tomcat 5.5.15 on a Red Hat AS 3 machine.
Every morning I have to manually stop and restart Tomcat.  If I do not
do so and let it run, over the course of a day or two, definitely no
more than the third day, Tomcat will lock up and the web application
will display access errors to the users.

I then have to run the shutdown.sh script on Tomcat.  Then because the
instance will not clear out I have to run ps aux, find the instance of
java that is running.  I then have to run the kill -9 pid # command
and then startup.sh to restart Tomcat.  If I do this first thing in the
morning Tomcat will function without locking up.  If I do not do it
first thing in the morning, sometime during that day, or if I am lucky
the next day, Tomcat will lockup.

If anyone has ideas on what can be done to correct this problem I will
be anxious to read any replies.

Thanks,
Steve

-Original Message-
From: Propes, Barry L [GCG-NAOT] [mailto:[EMAIL PROTECTED] 
Sent: Thursday, January 11, 2007 4:06 PM
To: Tomcat Users List
Subject: RE: Tomcat unexpectedly shuts down


I'd find out what other major processes are running on those two UNIX
boxes, as it sounds like something there's clashing terribly, and
killing off the Tomcat process.

-Original Message-
From: Brown, Carlton [mailto:[EMAIL PROTECTED]
Sent: Thursday, January 11, 2007 4:01 PM
To: users@tomcat.apache.org
Subject: Tomcat unexpectedly shuts down


Hello,

My Tomcat instance is unexpectedly shutting itself down every 8 to 72
hours.   Can someone give me some advice on this?   By all appearances
this is a graceful shutdown.  I do not see any interesting exceptions in
the logs (I have looked in catalina.out and the various localhost*
files).   Perhaps I am looking for the wrong thing.

This happens on Tomcat 4.1.31 and 5.028 on Redhat Linux and Solaris 10.
JSP apps running on the server are about 3 different instances of
Anthill 1.8.0.264.

Thanks in advance,
Carlton

*

The information transmitted is intended only for the person or entity to
which it is addressed and may contain confidential, proprietary, and/or
privileged material. Any review, retransmission, dissemination or other
use of, or taking of any action in reliance upon this information by
persons or entities other than the intended recipient is prohibited. If
you received this in error, please contact the sender and delete the
material from all computers. GA623



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Tomcat unexpectedly shuts down

2007-01-11 Thread Propes, Barry L [GCG-NAOT]
isn't Anthill just a third party app to do war and ant builds? Deploy .ear and 
.war files?

-Original Message-
From: Leon Rosenberg [mailto:[EMAIL PROTECTED]
Sent: Thursday, January 11, 2007 5:00 PM
To: Tomcat Users List
Subject: Re: Tomcat unexpectedly shuts down


On 1/11/07, Brown, Carlton [EMAIL PROTECTED] wrote:
 In catalina.out I see the Anthill application going through a shutdown
 sequence right before the time Tomcat dies.   So my assumption, maybe
 invalid, is that it's shutting down because Tomcat instructed it to do
 so.

Interesting. Most interesting part of it is what Thread-32 is. Are
your thread named?
Could it be that you are initiating the shutdown indirectly by somehow
trying to initialize already initialized framework or something?

You said you had three webapps. Have you actually tried to split they
onto three different tomcat installations, to see if they all have the
same problem or only one of them?

I'm ashamed, but I don't know what Anthill is, so I maybe missing some
internals or ask dumb questions, in this case i apologize.

regards
Leon

P.S. Do you have a contextlistener? If not you could configure one and
check whether the context is being deinitialized before or after
anthill shuts down.


  Here's a log fragment with the final interesting lines of shutdown, and
 then the first line of the later startup.

 00:26:30:456 [http-9090-Processor25] INFO  com.urbancode.anthill.Anthill
 - Starting Anthill daemons
 00:27:31:015 [Thread-32] INFO  com.urbancode.anthill.BuildDaemon  -
 BuildDaemon shutting down
 00:27:31:015 [Thread-32] INFO  com.urbancode.anthill.util.Queue  - Queue
 shutting down
 00:27:31:015 [Thread-32] INFO  com.urbancode.anthill.Anthill  -
 Anthill.doShutdown() called
 Anthill version: 1.8.0.264 loaded.
 log4j:WARN No appenders could be found for logger
 (com.urbancode.anthill.web.admin.AnthillAdminServlet).
 log4j:WARN Please initialize the log4j system properly.
 Anthill version: 1.8.0.264 loaded.
 log4j:WARN No appenders could be found for logger
 (com.urbancode.anthill.web.admin.AnthillAdminServlet).
 log4j:WARN Please initialize the log4j system properly.
 Anthill version: 1.8.0.264 loaded.
 log4j:WARN No appenders could be found for logger
 (com.urbancode.anthill.web.admin.AnthillAdminServlet).
 log4j:WARN Please initialize the log4j system properly.
 Anthill version: 1.8.0.264 loaded.
 log4j:WARN No appenders could be found for logger
 (com.urbancode.anthill.web.admin.AnthillAdminServlet).
 log4j:WARN Please initialize the log4j system properly.
 Jan 11, 2007 11:06:13 AM org.apache.coyote.http11.Http11Protocol init
 INFO: Initializing Coyote HTTP/1.1 on http-9090

 -Original Message-
 From: Leon Rosenberg [mailto:[EMAIL PROTECTED]
 Sent: Thursday, January 11, 2007 5:42 PM
 To: Tomcat Users List
 Subject: Re: Tomcat unexpectedly shuts down

 You've mentioned a graceful shutdown. However a crash doesn't
 necessary leave tracks in the logs.
 Do I understand you right, that the tomcat is down, out of nowhere, if
 it were just shut down by the shutdown.sh?

 regards
 Leon

 On 1/11/07, Brown, Carlton [EMAIL PROTECTED] wrote:
  This box has no other purpose than to run Anthill in Tomcat to build
  java apps.   There would be no other major processes.
 
  -Original Message-
  From: Propes, Barry L [GCG-NAOT] [mailto:[EMAIL PROTECTED]
  Sent: Thursday, January 11, 2007 5:06 PM
  To: Tomcat Users List
  Subject: RE: Tomcat unexpectedly shuts down
 
  I'd find out what other major processes are running on those two UNIX
  boxes, as it sounds like something there's clashing terribly, and
  killing off the Tomcat process.
 
  -Original Message-
  From: Brown, Carlton [mailto:[EMAIL PROTECTED]
  Sent: Thursday, January 11, 2007 4:01 PM
  To: users@tomcat.apache.org
  Subject: Tomcat unexpectedly shuts down
 
 
  Hello,
 
  My Tomcat instance is unexpectedly shutting itself down every 8 to 72
  hours.   Can someone give me some advice on this?   By all appearances
  this is a graceful shutdown.  I do not see any interesting exceptions
  in the logs (I have looked in catalina.out and the various localhost*
  files).   Perhaps I am looking for the wrong thing.
 
  This happens on Tomcat 4.1.31 and 5.028 on Redhat Linux and Solaris
 10.
  JSP apps running on the server are about 3 different instances of
  Anthill 1.8.0.264.
 
  Thanks in advance,
  Carlton
 
  *
 
  The information transmitted is intended only for the person or entity
  to which it is addressed and may contain confidential, proprietary,
  and/or privileged material. Any review, retransmission, dissemination
  or other use of, or taking of any action in reliance upon this
  information by persons or entities other than the intended recipient
  is prohibited. If you received this in error, please contact the
  sender and delete the material from all computers. GA623
 
 
 
  -
  To start a new topic, e

RE: downloading JSTL..

2007-01-09 Thread Propes, Barry L [GCG-NAOT]
so would I just dump all of the .tld files in my WEB-INF sub directory titled 
tlds?

For instance, I've got a directory in my webapps folder, then a WEB-INF 
directory for it, then inside it I've got a directory titled tlds.

Just throw them in there?

-Original Message-
From: Wendy Smoak [mailto:[EMAIL PROTECTED]
Sent: Monday, August 21, 2006 10:34 PM
To: Tomcat Users List
Subject: Re: downloading JSTL..


 Wendy, thank you very much for your help.. I'm using Tomcat 5, so I
 figured had to use JSTL 1.1..

No.  The version of JSTL to use depends on what version of the Servlet
spec your webapp is configured to use, not what version of Tomcat
they're running in.


 my Servlet API is 2.4.. so looking on pg you pointed out, put this on
 top of web.xml:

 web-app xmlns=http://java.sun.com/xml/ns/j2ee;
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
   xsi:schemaLocation=http://java.sun.com/xml/ns/j2ee
   http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd;
  version=2.4

 also changed URI for JSTL 1.1 like you said, so now in JSP have:

 %@ taglib uri=http://java.sun.com/jsp/jstl/core; prefix=c %
 c:out value=Congratulations, JSTL is working!/

 still, get exact same error..  oh brother, I don't get this..

The error you're getting has to do with parsing an XML file, probably
web.xml.  It's complaining that:

 SEVERE: Parse Fatal Error at line 3 column 6: The processing instruction
 target matching [xX][mM][lL] is not allowed.

Delete the two lines above, and any spaces before, the ?xml
version=1.0? (or similar) which is on line 3.  It has to be the
very first thing in the file.

 (actually the guy says in book he's using Tomcat 5.5 (which I know is
 for java sdk 1.5, I'm using tomcat 5.0.23 or something, and sdk 1.4, but
 since am on Tomcat 5 figured JSTL 1.1 would be ok..)

Yes, it should be fine.

 (this pg refers to Struts, though.. I'm not using Struts, have never
 used Struts..

... which is why I said, Ignore the Struts-related parts. :)

-- 
Wendy

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]