Re: Tomcat setup / config (System.exit if exception thrown)

2007-02-08 Thread reno
Le mercredi 07 février 2007 à 23:17 -0800, Lisa a écrit :

 When starting up Tomcat, I would like to do a System.exit() if an exception
 of any kind is thrown.  Is there a way to configure this?   We are using a
 large number of frameworks (Spring, Hibernate, log4j) and I want the
 developers to pay attention right away if there is something wrong and to
 get it fixed rather than ignoring them (or missing them).

System.exit() is a bit radical...
Why don't you send a mail to everyone when an exception is thrown with
the exception?

 
 I want to shut things down hard and fast if something is wrong during
 development and force everyone to throw their hands up and be stuck (and
 make noise) until it is fixed.
 
 Any ideas would be appreciated.
 
 
 L


Help localizing IIS crach running isapi_redirect.dll

2007-02-08 Thread Per Johnsson
We are suddenly experience major problems on all of our four
productionservers.
 
We are running four IIS 6 servers on Win 2003 Server which are connected
with isapi_redirect (ajp13) to four tomcat 5.5.12 which is mapped 1 to
1.
 
They have been runnning fine in at least some month and suddenly the IIS
application pools is crashing for us and we have no idea why, tomcat is
running fine and we cant se any problems.
 
The is a typical event from one of the iis server event log:
8
Event Type: Error
Event Source: Application Error
Event Category: (100)
Event ID: 1000
Date:  2007-02-07
Time:  19:48:02
User:  N/A
Computer: SE05WWW02
Description:
Faulting application w3wp.exe, version 6.0.3790.1830, faulting module
ntdll.dll, version 5.2.3790.1830, fault address 0x0002f583.
8
 
We have run DebugDiag and this is a snippet from that, below, and the
only clue we can find is that the following:
isapi_redirect!TerminateFilter+89af  01027884
6a6b8266
isapi_redirect+8406  0048010278a0000a

 
To me it looks like the method TerminateFilter in isapi_redirect is in
someway crashing... And we have looked in the tomcatlogs, iis logs,
event logs and can't se why this is happening.
 
---8---
Type of Analysis Performed Crash Analysis   
Machine Name   SE05WWW02
Operating System   Windows Server 2003 Service Pack 1   
Number Of Processors   4
Process ID 9152 
Process Image  c:\WINDOWS\system32\inetsrv\w3wp.exe 
System Up-Time 04:07:33 
Process Up-Time02:23:09 


Thread 5 - System ID 9188

Entry pointw3tp!THREAD_MANAGER::ThreadManagerThread 
Create time2007-02-04 19:11:05  
Time spent in user mode0 Days 0:0:0.468 
Time spent in kernel mode  0 Days 0:0:0.421 



Function Arg 1   Arg 2   Arg 3
Source  
ntdll!RtlpCoalesceFreeBlocks+36e 0109101801741028
00d8ec68
ntdll!RtlFreeHeap+38e00260108f010

msvcrt!free+c3   0108f01001027780   
isapi_redirect!TerminateFilter+89af  01027884
6a6b8266
isapi_redirect+8406  0048010278a0000a

---8---
 
 
Any input is most welcome, we have no idea where to look or where to
search for an error. So any suggestions is of great help...
 
I attach the full debugdiag result.
 
Regards Per Jonsson


This e-mail and the information it contains may be privileged and/or
confidential.  It is for the intended addressee(s) only.
The unauthorised use, disclosure or copying of this e-mail, or any information 
it contains, is prohibited. 
If you are not an intended recipient, please contact the sender and delete the 
material 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]

Tomcat bug when using Java Blueprints JSF components

2007-02-08 Thread Gerald Holl

Hello,

I get the following exception when I view a JSP/JSF site with the Java
Blueprints ui:Autocomplete component:
java.lang.IllegalArgumentException: Do, 08 Feb 2007 09:48:43 GMT
at 
org.apache.catalina.connector.Request.getDateHeader(Request.java:1791)
at 
org.apache.catalina.connector.RequestFacade.getDateHeader(RequestFacade.java:630)
at 
javax.servlet.http.HttpServletRequestWrapper.getDateHeader(HttpServletRequestWrapper.java:71)
at 
org.apache.shale.remoting.impl.AbstractResourceProcessor.ifModifiedSince(AbstractResourceProcessor.java:347)
at 
org.apache.shale.remoting.impl.AbstractResourceProcessor.process(AbstractResourceProcessor.java:101)
at 
org.apache.shale.remoting.faces.RemotingPhaseListener.afterPhase(RemotingPhaseListener.java:102)
at 
com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:211)
at 
com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:90)

at javax.faces.webapp.FacesServlet.service(FacesServlet.java:197)
at widok.web.WidokFacesServlet.service(WidokFacesServlet.java:61)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at 
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at 
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
at 
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
at 
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
at 
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)

at java.lang.Thread.run(Thread.java:595)


It seems that the date/time is wrong, any ideas?

cheers,
Gerald

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



[ANN] Apache Tomcat v6.0.9-beta

2007-02-08 Thread Remy Maucherat

The Apache Tomcat team announces the immediate availability of Apache
Tomcat 6.0.9 beta. This release is the third beta release of the
6.0.x branch.

Apache Tomcat 6.0 includes new features over Apache Tomcat 5.5,
including support for the new Servlet 2.5 and JSP 2.1 specifications, a
refactored clustering implementation, advanced IO features, and
improvements in memory usage.

Please refer to the change log for the list of changes:
http://tomcat.apache.org/tomcat-6.0-doc/changelog.html

Downloads:
http://tomcat.apache.org/download-60.cgi

Thank you,

-- The Apache Tomcat Team


-
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 bug when using Java Blueprints JSF components

2007-02-08 Thread Mark Thomas
Gerald Holl wrote:
 Hello,
 
 I get the following exception when I view a JSP/JSF site with the Java
 Blueprints ui:Autocomplete component:
 java.lang.IllegalArgumentException: Do, 08 Feb 2007 09:48:43 GMT
 at
 org.apache.catalina.connector.Request.getDateHeader(Request.java:1791)
 
 It seems that the date/time is wrong, any ideas?
 

It looks like a client issue. The valid formats for the date header
are specified on page 20 of
http://www.ietf.org/rfc/rfc2616.txt?number=2616

It looks like the client in sending Do, ... rather than Thu, ...


HTH,

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]



Re: Tomcat bug when using Java Blueprints JSF components

2007-02-08 Thread Gerald Holl

Mark Thomas wrote:

It looks like a client issue. The valid formats for the date header
are specified on page 20 of
http://www.ietf.org/rfc/rfc2616.txt?number=2616

It looks like the client in sending Do, ... rather than Thu, ...


Sometimes I get german error messages instead of english ones, maybe 
it's a problem with wrong locales, but I have absolutely no idea why 
this happens. I use Firefox 2.0.0.1.


Gerald

-
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: [OT]Re: Large number of active sessions

2007-02-08 Thread Pid

Rashmi Rubdi wrote:

I agree that many have experienced the jsessionid on URLs accessed by bots, 
perhaps it happens in a Struts environment or some other environment.

In certain set-ups (only JSPs, no servlets, no MVC - session is removed and 
created freshly on each JSP page) the jsessionid doesn't appear on URLs 
accessed by bots like Googlebot even when the JSP page uses sessions, and that 
confuses me. I've verified the absense of jsession id in the URLs accessed by 
Googlebot in the server logs.

This inconsistent appearance of jsessionid for certain set-ups doesn't bother 
me, it's just a matter of curiosity.


hi rashmi,

i'm not sure what you're saying; are you asking a question?


-Rashmi

- Original Message 
From: Pid [EMAIL PROTECTED]


Some bots also use sessions.


I disagree, the bot has no capability to decide to use a session.

A bot would only appear to use a session if it was HTTP/1.1 capable, and 
was handling cookies or encoded URLs properly.


Most bots get pages asynchronously, I've observed Googlebot hitting url 
encoded pages with jsessionids generated days beforehand, during a 
previous index run.  This will trigger a new session as a result, but 
may account for apparently older creation dates appearing the list of 
active/recent session.


(A guess: I don't know enough about the internals of Tomcat to be sure 
of that.)


p


 

Finding fabulous fares is fun.  
Let Yahoo! FareChase search your favorite travel sites to find flight and hotel bargains.

http://farechase.yahoo.com/promo-generic-14795097

-
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]



Contexts in Tomcat 6, why does not work

2007-02-08 Thread Artur Rataj

Hello. I upgrade some webapp to Tomcat 6. The app has three contexts,
one for dynamic pages, one for some disk directory.

I put them into the server.xml file on the new Tomcat, into the Host
part. Here are the first two contexts, that is, one for the servlets
and one for some disk directory.

   Context path= docBase=library debug=0
reloadable=true
 Logger className=org.apache.catalina.logger.FileLogger
prefix=localhost_examples_log. suffix=.txt
 timestamp=true/
 Ejb   name=ejb/EmplRecord type=Entity
home=com.wombat.empl.EmployeeRecordHome
  remote=com.wombat.empl.EmployeeRecord/
 Environment name=maxExemptions type=java.lang.Integer
 value=15/
 Parameter name=context.param.name value=context.param.value
override=false/
 Resource name=jdbc/EmployeeAppDb auth=SERVLET
   type=javax.sql.DataSource/
   /Context

   Context path=/informacja_ekspresowa
docBase=/home/library/islib/Informacja_Ekspresowa/
reloadable=true
 Logger className=org.apache.catalina.logger.FileLogger
prefix=localhost_examples_log. suffix=.txt
 timestamp=true/
 Ejb   name=ejb/EmplRecord type=Entity
home=com.wombat.empl.EmployeeRecordHome
  remote=com.wombat.empl.EmployeeRecord/
 Environment name=maxExemptions type=java.lang.Integer
 value=15/
 Parameter name=context.param.name value=context.param.value
override=false/
 Resource name=jdbc/EmployeeAppDb auth=SERVLET
   type=javax.sql.DataSource/
   /Context

The first context seems to be working fine, the second one does not
work even that the given directory exists.

The error message is:

HTTP Status 404 - /informacja_ekspresowa/

type Status report

message /informacja_ekspresowa/

description The requested resource (/informacja_ekspresowa/) is not available.
Apache Tomcat/6.0.9


Why the second context does not work? The respective directory
/home/library/islib/Informacja_Ekspresowa exists, and the user that
runs tomcat can read from it.


Thanks,
Artur

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



URL Redirect Question

2007-02-08 Thread Stanczak Group
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]



Re: Tomcat bug when using Java Blueprints JSF components

2007-02-08 Thread Gerald Holl

Mark Thomas wrote:

Gerald Holl wrote:

Hello,

I get the following exception when I view a JSP/JSF site with the Java
Blueprints ui:Autocomplete component:
java.lang.IllegalArgumentException: Do, 08 Feb 2007 09:48:43 GMT
at
org.apache.catalina.connector.Request.getDateHeader(Request.java:1791)

It seems that the date/time is wrong, any ideas?



It looks like a client issue. The valid formats for the date header
are specified on page 20 of
http://www.ietf.org/rfc/rfc2616.txt?number=2616

It looks like the client in sending Do, ... rather than Thu, ...


After same research I found out that these JSF Blueprint components only 
work if the client uses the en_GB locale ... pretty uncool.


cheers,
Gerald

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



context path in tomcat 5.x

2007-02-08 Thread Build Admin

How to set context path in tomcat 5.x server?
I had used tomcat 4.x server and successfully set the context path. But in
tomcat 5.x I couldn't.
Can anyone help me in this?


IllegalStateException in Tomcat 5.5.X

2007-02-08 Thread Tom Davis

Hi All.

I'm getting some intermittent exceptions from Tomcat with which I would 
appreciate some assistance.  I get an IllegalStateException from 
Tomcat.  This is not a unique error, though it looks like the 
circumstances causing it are.  We have a complex application, with 
multiple servlets and many JSPs.  The specific type of 
IllegalStateException is a TODO, and it usually occurs when we call 
sendError() on the HttpServletResponse object.  I know this sounds like 
the typical coding error, but we have checked very carefully and haven't 
found it.  We have looked through many of the posts on other occurrences 
of this exception, including the Tomcat documentation that describes its 
common causes. We've checked those method calls (e.g., getWriter() or 
getOutputStream() followed by a sendError() or similar call), and can't 
see any logical errors in the flow of code.


The exception only occurs when one specific servlet is active.  This 
servlet is a custom proxy, and behaves as an Http client to other 
servers.  Interestingly, the exception doesn't get thrown from the proxy 
servlet, it actually pops up in several of the other servlets.  We put 
in lots of debug statements and found that sometimes (approximately 20% 
of the time) the 'isCommitted()' method on the HttpServletResponse 
object indicates that the response is already committed *upon entry* to 
the proxy servlet!  But even when isCommitted() indicates true, it only 
occasionally leads to the exception occurring in the other servlets. 

It seems that Tomcat is getting confused at the core by the proxy 
servlet - why else would the response appear to already be committed 
upon entry to our servlet.  Possibly this is due to the web client 
nature of the proxy servlet?  Or maybe a subtle bug somewhere in the 
proxy code that overwrites something internally in Tomcat?


We can avoid the IllegalStateException by not calling sendError if the 
response is committed, but either way the application doesn't behave 
properly. 

Environment:  We get the same problem on in different environments, 
which strongly indicates it is specific to the Tomcat 5.5.X line:

OS:  Windows 2000, Windows XP, AIX
JVM:  1.4.2_12-b03 on Win32, J2RE 1.4.2 IBM AIX build ca142-20060824 (SR6)
Tomcat:  5.5.7 and 5.5.20

The Tomcat FAQ lists *the most common* reasons for getting an 
IllegalStateException.  I think we need to go to the next level.  Does 
anyone know the more subtle reasons for getting this?


Thanks,
Tom Davis


-
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]



RE: URL Redirect Question

2007-02-08 Thread Caldarale, Charles R
 From: Propes, Barry L [GCG-NAOT] 
 [mailto:[EMAIL PROTECTED] 
 Subject: RE: URL Redirect Question
 
 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.

You can also use a filter or valve within Tomcat to forward the request
to the desired context, and avoid any client interaction.

 - 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]



Re: IllegalStateException in Tomcat 5.5.X

2007-02-08 Thread David Kerber

Tom Davis wrote:


Hi All.

I'm getting some intermittent exceptions from Tomcat with which I 
would appreciate some assistance.  I get an IllegalStateException from 
Tomcat.  This is not a unique error, though it looks like the 
circumstances causing it are.  We have a complex application, with 
multiple servlets and many JSPs.  The specific type of 
IllegalStateException is a TODO, and it usually occurs when we call 
sendError() on the HttpServletResponse object.  I know this sounds 
like the typical coding error, but we have checked very carefully and 
haven't found it.  We have looked through many of the posts on other 
occurrences of this exception, including the Tomcat documentation that 
describes its common causes. We've checked those method calls (e.g., 
getWriter() or getOutputStream() followed by a sendError() or similar 
call), and can't see any logical errors in the flow of code.


The exception only occurs when one specific servlet is active.  This 
servlet is a custom proxy, and behaves as an Http client to other 
servers.  Interestingly, the exception doesn't get thrown from the 
proxy servlet, it actually pops up in several of the other servlets.  
We put in lots of debug statements and found that sometimes 
(approximately 20% of the time) the 'isCommitted()' method on the 
HttpServletResponse object indicates that the response is already 
committed *upon entry* to the proxy servlet!  But even when 
isCommitted() indicates true, it only occasionally leads to the 
exception occurring in the other servlets.


Sounds like a synchronization/multi-threading issue to me.  Did you 
check for that stuff in your code review?



It seems that Tomcat is getting confused at the core by the proxy 
servlet - why else would the response appear to already be committed 
upon entry to our servlet.  Possibly this is due to the web client 
nature of the proxy servlet?  Or maybe a subtle bug somewhere in the 
proxy code that overwrites something internally in Tomcat?


We can avoid the IllegalStateException by not calling sendError if the 
response is committed, but either way the application doesn't behave 
properly.
Environment:  We get the same problem on in different environments, 
which strongly indicates it is specific to the Tomcat 5.5.X line:

OS:  Windows 2000, Windows XP, AIX
JVM:  1.4.2_12-b03 on Win32, J2RE 1.4.2 IBM AIX build ca142-20060824 
(SR6)

Tomcat:  5.5.7 and 5.5.20

The Tomcat FAQ lists *the most common* reasons for getting an 
IllegalStateException.  I think we need to go to the next level.  Does 
anyone know the more subtle reasons for getting this?


Thanks,
Tom Davis


-
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: IllegalStateException in Tomcat 5.5.X

2007-02-08 Thread Tim Funk
This smells of a static-like object which has a race condition in 
handling of requests and responses.


For example - if sessions are used and there is a filter which puts the 
current request into the session  - that will be a problem.


Another example:
A filter which does user logging/tracking and tracks current requests 
per user - but doesn't handle concurrent requests from the same user in 
a reliable manner.



-Tim

Tom Davis wrote:

Hi All.

I'm getting some intermittent exceptions from Tomcat with which I would 
appreciate some assistance.  I get an IllegalStateException from 
Tomcat.  This is not a unique error, though it looks like the 
circumstances causing it are.  We have a complex application, with 
multiple servlets and many JSPs.  The specific type of 
IllegalStateException is a TODO, and it usually occurs when we call 
sendError() on the HttpServletResponse object.  I know this sounds like 
the typical coding error, but we have checked very carefully and haven't 
found it.  We have looked through many of the posts on other occurrences 
of this exception, including the Tomcat documentation that describes its 
common causes. We've checked those method calls (e.g., getWriter() or 
getOutputStream() followed by a sendError() or similar call), and can't 
see any logical errors in the flow of code.


The exception only occurs when one specific servlet is active.  This 
servlet is a custom proxy, and behaves as an Http client to other 
servers.  Interestingly, the exception doesn't get thrown from the proxy 
servlet, it actually pops up in several of the other servlets.  We put 
in lots of debug statements and found that sometimes (approximately 20% 
of the time) the 'isCommitted()' method on the HttpServletResponse 
object indicates that the response is already committed *upon entry* to 
the proxy servlet!  But even when isCommitted() indicates true, it only 
occasionally leads to the exception occurring in the other servlets.
It seems that Tomcat is getting confused at the core by the proxy 
servlet - why else would the response appear to already be committed 
upon entry to our servlet.  Possibly this is due to the web client 
nature of the proxy servlet?  Or maybe a subtle bug somewhere in the 
proxy code that overwrites something internally in Tomcat?


We can avoid the IllegalStateException by not calling sendError if the 
response is committed, but either way the application doesn't behave 
properly.
Environment:  We get the same problem on in different environments, 
which strongly indicates it is specific to the Tomcat 5.5.X line:

OS:  Windows 2000, Windows XP, AIX
JVM:  1.4.2_12-b03 on Win32, J2RE 1.4.2 IBM AIX build ca142-20060824 (SR6)
Tomcat:  5.5.7 and 5.5.20

The Tomcat FAQ lists *the most common* reasons for getting an 
IllegalStateException.  I think we need to go to the next level.  Does 
anyone know the more subtle reasons for getting this?




-
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: IllegalStateException in Tomcat 5.5.X

2007-02-08 Thread Martin Gainty

Tim-

Jumping into the middle of a thread is always dangerous but that said..
How about placing these session specific entites in Servlet so all have 
access?


Martin

__
Disclaimer and confidentiality note
Everything in this e-mail and any attachments relates to the official 
business of Sender. This transmission is of a confidential nature and Sender 
does not endorse distribution to any party other than intended recipient. 
Sender does not necessarily endorse content contained within this 
transmission.

(mobile) 001-603-438-5053






This smells of a static-like object which has a race condition in handling 
of requests and responses.


For example - if sessions are used and there is a filter which puts the 
current request into the session  - that will be a problem.


Another example:
A filter which does user logging/tracking and tracks current requests per 
user - but doesn't handle concurrent requests from the same user in a 
reliable manner.



-Tim

Tom Davis wrote:

Hi All.

I'm getting some intermittent exceptions from Tomcat with which I would 
appreciate some assistance.  I get an IllegalStateException from Tomcat.  
This is not a unique error, though it looks like the circumstances causing 
it are.  We have a complex application, with multiple servlets and many 
JSPs.  The specific type of IllegalStateException is a TODO, and it 
usually occurs when we call sendError() on the HttpServletResponse object. 
 I know this sounds like the typical coding error, but we have checked 
very carefully and haven't found it.  We have looked through many of the 
posts on other occurrences of this exception, including the Tomcat 
documentation that describes its common causes. We've checked those method 
calls (e.g., getWriter() or getOutputStream() followed by a sendError() or 
similar call), and can't see any logical errors in the flow of code.


The exception only occurs when one specific servlet is active.  This 
servlet is a custom proxy, and behaves as an Http client to other servers. 
 Interestingly, the exception doesn't get thrown from the proxy servlet, 
it actually pops up in several of the other servlets.  We put in lots of 
debug statements and found that sometimes (approximately 20% of the time) 
the 'isCommitted()' method on the HttpServletResponse object indicates 
that the response is already committed *upon entry* to the proxy servlet!  
But even when isCommitted() indicates true, it only occasionally leads to 
the exception occurring in the other servlets.
It seems that Tomcat is getting confused at the core by the proxy servlet 
- why else would the response appear to already be committed upon entry to 
our servlet.  Possibly this is due to the web client nature of the proxy 
servlet?  Or maybe a subtle bug somewhere in the proxy code that 
overwrites something internally in Tomcat?


We can avoid the IllegalStateException by not calling sendError if the 
response is committed, but either way the application doesn't behave 
properly.
Environment:  We get the same problem on in different environments, which 
strongly indicates it is specific to the Tomcat 5.5.X line:

OS:  Windows 2000, Windows XP, AIX
JVM:  1.4.2_12-b03 on Win32, J2RE 1.4.2 IBM AIX build ca142-20060824 (SR6)
Tomcat:  5.5.7 and 5.5.20

The Tomcat FAQ lists *the most common* reasons for getting an 
IllegalStateException.  I think we need to go to the next level.  Does 
anyone know the more subtle reasons for getting this?




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



_
Turn searches into helpful donations. Make your search count. 
http://click4thecause.live.com/search/charity/default.aspx?source=hmemtagline_donationFORM=WLMTAG



-
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: context path in tomcat 5.x

2007-02-08 Thread Caldarale, Charles R
 From: Build Admin [mailto:[EMAIL PROTECTED] 
 Subject: context path in tomcat 5.x
 
 How to set context path in tomcat 5.x server?

Reading the doc won't hurt:
http://tomcat.apache.org/tomcat-5.5-doc/config/context.html

Searching the archives is also useful:
http://marc.theaimsgroup.com/?l=tomcat-userr=1w=2

 - 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]



Re: IllegalStateException in Tomcat 5.5.X

2007-02-08 Thread Tom Davis
I'm not sure that this is a session-specific issue.  We do use sessions, 
but do not use filters.  The data we put in the session object is not 
(explicitly) affected by the proxy servlet.


However, the issues of threading/concurrency and static object access 
are good ideas to investigate next. Up until now we had been focused 
primarily on the 'straightforward' issue of whether or not we had a 
logic error in the committing of a response.  The threading issue makes 
a lot of sense, as the problem is intermittent.  We'll dig a bit there.


Thanks,
Tom


Tim-

Jumping into the middle of a thread is always dangerous but that said..
How about placing these session specific entites in Servlet so all 
have access?


Martin

__
Disclaimer and confidentiality note
Everything in this e-mail and any attachments relates to the official 
business of Sender. This transmission is of a confidential nature and 
Sender does not endorse distribution to any party other than intended 
recipient. Sender does not necessarily endorse content contained 
within this transmission.

(mobile) 001-603-438-5053






This smells of a static-like object which has a race condition in 
handling of requests and responses.


For example - if sessions are used and there is a filter which puts 
the current request into the session  - that will be a problem.


Another example:
A filter which does user logging/tracking and tracks current requests 
per user - but doesn't handle concurrent requests from the same user 
in a reliable manner.



-Tim

Tom Davis wrote:

Hi All.

I'm getting some intermittent exceptions from Tomcat with which I 
would appreciate some assistance.  I get an IllegalStateException 
from Tomcat.  This is not a unique error, though it looks like the 
circumstances causing it are.  We have a complex application, with 
multiple servlets and many JSPs.  The specific type of 
IllegalStateException is a TODO, and it usually occurs when we call 
sendError() on the HttpServletResponse object.  I know this sounds 
like the typical coding error, but we have checked very carefully 
and haven't found it.  We have looked through many of the posts on 
other occurrences of this exception, including the Tomcat 
documentation that describes its common causes. We've checked those 
method calls (e.g., getWriter() or getOutputStream() followed by a 
sendError() or similar call), and can't see any logical errors in 
the flow of code.


The exception only occurs when one specific servlet is active.  This 
servlet is a custom proxy, and behaves as an Http client to other 
servers.  Interestingly, the exception doesn't get thrown from the 
proxy servlet, it actually pops up in several of the other 
servlets.  We put in lots of debug statements and found that 
sometimes (approximately 20% of the time) the 'isCommitted()' method 
on the HttpServletResponse object indicates that the response is 
already committed *upon entry* to the proxy servlet!  But even when 
isCommitted() indicates true, it only occasionally leads to the 
exception occurring in the other servlets.
It seems that Tomcat is getting confused at the core by the proxy 
servlet - why else would the response appear to already be committed 
upon entry to our servlet.  Possibly this is due to the web client 
nature of the proxy servlet?  Or maybe a subtle bug somewhere in the 
proxy code that overwrites something internally in Tomcat?


We can avoid the IllegalStateException by not calling sendError if 
the response is committed, but either way the application doesn't 
behave properly.
Environment:  We get the same problem on in different environments, 
which strongly indicates it is specific to the Tomcat 5.5.X line:

OS:  Windows 2000, Windows XP, AIX
JVM:  1.4.2_12-b03 on Win32, J2RE 1.4.2 IBM AIX build ca142-20060824 
(SR6)

Tomcat:  5.5.7 and 5.5.20

The Tomcat FAQ lists *the most common* reasons for getting an 
IllegalStateException.  I think we need to go to the next level.  
Does anyone know the more subtle reasons for getting this?




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



_
Turn searches into helpful donations. Make your search count. 
http://click4thecause.live.com/search/charity/default.aspx?source=hmemtagline_donationFORM=WLMTAG 




-
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]



Tomcat 4.0 compatibility with jdk1.6

2007-02-08 Thread Daniel Gresh

Hi,

I've searched through the Tomcat site a bunch and the Java site (and 
Google), but I can't find anything that tells me Tomcat 4.0 will work 
with j2se6. I know Tomcat 4 won't work with the JSP 2 specs, but I'm 
unsure of the j2se specs. If anyone could give me a simple answer (yes 
Tomcat 4.0 supports j2se6 will suffice), I'd appreciate it.


Thanks,
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]



Daylight Saving Time Impact

2007-02-08 Thread Leung Joe-W30220
Hi all,
 
Is there going to be an impact on Tomcat due to Daylight Saving Time
Change in US?  Currently, I am using Tomcat 5.5.17.   I am wondering if
I need to upgrade to the Tomcat 6.
 
Thank you in advance.
 
Joe


RE: IllegalStateException in Tomcat 5.5.X

2007-02-08 Thread Tim Lucia


 -Original Message-
 From: Tom Davis [mailto:[EMAIL PROTECTED]
 Sent: Thursday, February 08, 2007 10:35 AM
 To: users@tomcat.apache.org
 Subject: IllegalStateException in Tomcat 5.5.X
 
 Hi All.
 
 I'm getting some intermittent exceptions from Tomcat with which I would
 appreciate some assistance.  I get an IllegalStateException from
 Tomcat.  This is not a unique error, though it looks like the
 circumstances causing it are.  We have a complex application, with
 multiple servlets and many JSPs.  The specific type of
 IllegalStateException is a TODO, and it usually occurs when we call
 sendError() on the HttpServletResponse object.  I know this sounds like
 the typical coding error, but we have checked very carefully and haven't
 found it.  We have looked through many of the posts on other occurrences
 of this exception, including the Tomcat documentation that describes its
 common causes. We've checked those method calls (e.g., getWriter() or
 getOutputStream() followed by a sendError() or similar call), and can't
 see any logical errors in the flow of code.
 
 The exception only occurs when one specific servlet is active.  This
 servlet is a custom proxy, and behaves as an Http client to other
 servers.  Interestingly, the exception doesn't get thrown from the proxy
 servlet, it actually pops up in several of the other servlets.  We put
 in lots of debug statements and found that sometimes (approximately 20%
 of the time) the 'isCommitted()' method on the HttpServletResponse
 object indicates that the response is already committed *upon entry* to
 the proxy servlet!  But even when isCommitted() indicates true, it only
 occasionally leads to the exception occurring in the other servlets.
 
 It seems that Tomcat is getting confused at the core by the proxy
 servlet - why else would the response appear to already be committed
 upon entry to our servlet.  Possibly this is due to the web client
 nature of the proxy servlet?  Or maybe a subtle bug somewhere in the
 proxy code that overwrites something internally in Tomcat?
 
 We can avoid the IllegalStateException by not calling sendError if the
 response is committed, but either way the application doesn't behave
 properly.
 
 Environment:  We get the same problem on in different environments,
 which strongly indicates it is specific to the Tomcat 5.5.X line:
 OS:  Windows 2000, Windows XP, AIX
 JVM:  1.4.2_12-b03 on Win32, J2RE 1.4.2 IBM AIX build ca142-20060824 (SR6)
 Tomcat:  5.5.7 and 5.5.20
 
 The Tomcat FAQ lists *the most common* reasons for getting an
 IllegalStateException.  I think we need to go to the next level.  Does
 anyone know the more subtle reasons for getting this?

It's been said already, but I'll repeat it because I have been in exactly
this boat before.  One slip up in a refactoring exercise left one and only
one class member as static, which is fine until you put it under load, and
then everything gets confused quite quickly.  It is very likely to be a
concurrency problem lke non-Thread-Local request or session data stored in
the servlet class, or some static member(s) that shouldn't be static.

Tim

 
 Thanks,
 Tom Davis
 
 
 -
 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: Daylight Saving Time Impact

2007-02-08 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Joe,

Leung Joe-W30220 wrote:
 Is there going to be an impact on Tomcat due to Daylight Saving Time
 Change in US?  Currently, I am using Tomcat 5.5.17.   I am wondering if
 I need to upgrade to the Tomcat 6.

This is not something that affects Tomcat. Your Java version and
operating system version will need to support the daylight savings time
changes (which were not only in the US, by the way).

Does anyone know which versions of Java have been appropriately patched?

- -chris

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

iD8DBQFFy4jt9CaO5/Lv0PARAhXPAJ0VSM63bmecO0Qjz9f7AZf2PbOFmwCgr0R1
JJxAfZMaI5YA/8lbACFTAJw=
=kdjM
-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: Tomcat 4.0 compatibility with jdk1.6 -- SOLVED

2007-02-08 Thread Daniel Gresh

Daniel Gresh wrote:

Hi,

I've searched through the Tomcat site a bunch and the Java site (and 
Google), but I can't find anything that tells me Tomcat 4.0 will work 
with j2se6. I know Tomcat 4 won't work with the JSP 2 specs, but I'm 
unsure of the j2se specs. If anyone could give me a simple answer 
(yes Tomcat 4.0 supports j2se6 will suffice), I'd appreciate it.


Thanks,
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]


Sry, I just found in the Tomcat manual that Tomcat 4 will work with any 
JDK with JDK1.2 compatibility.


-
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: Daylight Saving Time Impact

2007-02-08 Thread Mr. Steve Burrus
well I know that no one/nobody asked me what my opinion is as to whether 
or not  you should try to obtain tomcat 6 but I would say to you yes 
regardless of whether or not there is any looming big time change or not!



Christopher Schultz wrote:


-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Joe,

Leung Joe-W30220 wrote:
 


Is there going to be an impact on Tomcat due to Daylight Saving Time
Change in US?  Currently, I am using Tomcat 5.5.17.   I am wondering if
I need to upgrade to the Tomcat 6.
   



This is not something that affects Tomcat. Your Java version and
operating system version will need to support the daylight savings time
changes (which were not only in the US, by the way).

Does anyone know which versions of Java have been appropriately patched?

- -chris

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

iD8DBQFFy4jt9CaO5/Lv0PARAhXPAJ0VSM63bmecO0Qjz9f7AZf2PbOFmwCgr0R1
JJxAfZMaI5YA/8lbACFTAJw=
=kdjM
-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: Daylight Saving Time Impact

2007-02-08 Thread Caldarale, Charles R
 From: Mr. Steve Burrus [mailto:[EMAIL PROTECTED] 
 Subject: Re: Daylight Saving Time Impact
 
 well I know that no one/nobody asked me what my opinion is
 as to whether or not  you should try to obtain tomcat 6 but
 I would say to you yes regardless of whether or not there
 is any looming big time change or not!

For production use, you might want to wait for it to be judged stable -
so far all the TC6 builds have only made it to beta.

 - 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]



Re: Daylight Saving Time Impact

2007-02-08 Thread David Smith
This might be of interest in figuring out what jre/jdk you need to
handle the Daylight Savings Time change:

http://java.sun.com/developer/technicalArticles/Intl/tzupdatertool.html

Tomcat itself relies on the OS and JRE/JDK for time zone handling and as
such doesn't have to be updated.

--David

Leung Joe-W30220 wrote:

Hi all,
 
Is there going to be an impact on Tomcat due to Daylight Saving Time
Change in US?  Currently, I am using Tomcat 5.5.17.   I am wondering if
I need to upgrade to the Tomcat 6.
 
Thank you in advance.
 
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]



Matthew Lee from QAD Australia is out of the office

2007-02-08 Thread Matthew Lee

I will be out of the office starting  02/09/2007 and will not return until
02/12/2007.

If you wish to report a new QAD Product support issue, you can log a call
via our QAD ServicelinQ online service center at http://support.qad.com, so
that our global support team can track this issue and provide you with the
timely assistance that you need.

QAD ServicelinQ also enable you to check the latest status of an existing
support call, and attach additional information to it.

Thank you for your attention to this. I will respond to your email as soon
as I can when I return to the office.

Best Regards,

Matthew Lee

QAD Australia Pty Ltd - Sydney



-
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: OutOfMemoryError (but not really out of memory?) cause tomcat processes to hang

2007-02-08 Thread Nikola Milutinovic
 You have quite a bit of memory in your 'Old Generation'.  You need to
 determine what you're allocating that isn't being released.

Not true, see below.

  Heap Usage:
  PS Young Generation
  Eden Space:
 capacity = 10223616 (9.75MB)
 used = 4748760 (4.528770446777344MB)
 free = 5474856 (5.221229553222656MB)
 46.44892765925481% used

This is OK.

  From Space:
 capacity = 524288 (0.5MB)
 used = 483360 (0.460968017578125MB)
 free = 40928 (0.039031982421875MB)
 92.193603515625% used

Also normal.

  To Space:
 capacity = 9109504 (8.6875MB)
 used = 0 (0.0MB)
 free = 9109504 (8.6875MB)
 0.0% used

This is always 0, AFAIK.

  PS Old Generation
 capacity = 238616576 (227.5625MB)
 used = 162772160 (155.23162841796875MB)
 free = 75844416 (72.33087158203125MB)
 68.21494245227959% used

This is also NOT the cause of problems.

  PS Perm Generation
 capacity = 22675456 (21.625MB)
 used = 22515408 (21.472366333007812MB)
 free = 160048 (0.1526336669921875MB)
 99.2941795746026% used

Here is the failure. PermGen is getting exhausted.

Nix.




 

Do you Yahoo!?
Everyone is raving about the all-new Yahoo! Mail beta.
http://new.mail.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: URL Redirect Question

2007-02-08 Thread Nikola Milutinovic
Actually, there is already a project URL Filter for Java Web applications, 
basically does what mod_rewrite and mod_proxy give you. Maybe not in so many 
details, but it is going to save our hide on our next project. :-)

Nix.

- Original Message 
From: Caldarale, Charles R [EMAIL PROTECTED]
To: Tomcat Users List users@tomcat.apache.org
Sent: Thursday, February 8, 2007 4:45:39 PM
Subject: RE: URL Redirect Question

 From: Propes, Barry L [GCG-NAOT] 
 [mailto:[EMAIL PROTECTED] 
 Subject: RE: URL Redirect Question
 
 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.

You can also use a filter or valve within Tomcat to forward the request
to the desired context, and avoid any client interaction.

 - 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]






 

Sucker-punch spam with award-winning protection. 
Try the free Yahoo! Mail Beta.
http://advision.webevents.yahoo.com/mailbeta/features_spam.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]



RE: OutOfMemoryError (but not really out of memory?) cause tomcat processes to hang

2007-02-08 Thread Sharon French


Given this information at the top of the jmap -heap output:

Heap Configuration:
...
   PermSize = 16777216 (16.0MB)
   MaxPermSize  = 67108864 (64.0MB)

Doesn't this mean that I can grow to 64M of PermGen space?

I do see the capacity of PermGen increase over time (with analogous
increases in the used field).

I'm wondering if I may be running into an OutOfMemoryError because I've run
out of available PermGen space, requiring changes to the heap generation
partitions and this re-partitioning requires so much time/effort that the
ergonomics factor is kicking in (as explained in section 5.2.2 of
http://java.sun.com/docs/hotspot/gc5.0/gc_tuning_5.html#0.0.0.0.Ergonomics%2
0in%20the%20throughput%20collector%7Coutline)?


However, the error message I am getting is: java.lang.OutOfMemoryError:
Java heap space rather than a perm space message.

Can this message be trusted? Or could this be a PermGen issue?

Thank you for your help,

Sharon French






-Original Message-
From: Nikola Milutinovic [mailto:[EMAIL PROTECTED] 
Sent: Thursday, February 08, 2007 5:05 PM
To: Tomcat Users List
Subject: Re: OutOfMemoryError (but not really out of memory?) cause tomcat
processes to hang


  PS Perm Generation
 capacity = 22675456 (21.625MB)
 used = 22515408 (21.472366333007812MB)
 free = 160048 (0.1526336669921875MB)
 99.2941795746026% used

Here is the failure. PermGen is getting exhausted.

Nix.




 


Do you Yahoo!?
Everyone is raving about the all-new Yahoo! Mail beta.
http://new.mail.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]

-
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: OutOfMemoryError (but not really out of memory?) cause tomcat processes to hang

2007-02-08 Thread Caldarale, Charles R
 From: Sharon French [mailto:[EMAIL PROTECTED] 
 Subject: RE: OutOfMemoryError (but not really out of memory?) 
 cause tomcat processes to hang
 
 Given this information at the top of the jmap -heap output:
   Heap Configuration:
   ...
  PermSize = 16777216 (16.0MB)
  MaxPermSize  = 67108864 (64.0MB)
 Doesn't this mean that I can grow to 64M of PermGen space?

In theory, yes.  In practice, the GC may not be able to move the
boundary between the OldGen and the PermGen.  It tries to balance usage
of each of the generations, and doesn't always get it right.

 I do see the capacity of PermGen increase over time (with analogous
 increases in the used field).

More classes are being loaded the longer you run.

 I'm wondering if I may be running into an OutOfMemoryError 
 because I've run out of available PermGen space,

That's what we've been trying to tell you...

 this re-partitioning requires so much time/effort that the
 ergonomics factor is kicking in (as explained in section 5.2.2 of
 http://java.sun.com/docs/hotspot/gc5.0/gc_tuning_5.html#0.0.0.
 0.Ergonomics%20in%20the%20throughput%20collector%7Coutline)?

Unless you've forced -server mode, I would be a bit surprised if the JVM
chose to run that way with such a small heap.  It's unlikely you're
using the throughput collector.

 However, the error message I am getting is: 
 java.lang.OutOfMemoryError:
 Java heap space rather than a perm space message.

The PermGen is part of the Java heap.  As suggested yesterday, use
-XX:PermSize as well as -XX:MaxPermSize to insure that the PermGen has
adequate reserve.

 - 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]



RE: Daylight Saving Time Impact

2007-02-08 Thread Caldarale, Charles R
 From: Christopher Schultz [mailto:[EMAIL PROTECTED] 
 Subject: Re: Daylight Saving Time Impact
 
 Does anyone know which versions of Java have been 
 appropriately patched?

* Java SE 6 or later
* J2SE 5.0 Update 6 or later
* J2SE 1.4.2_11 or later
* J2SE 1.3.1_18 or later

Taken from:
http://java.sun.com/developer/technicalArticles/Intl/USDST/index.html

 - 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]



Re: Questions about Tomcat installation on Solaris Platform

2007-02-08 Thread tarakarajendra prasad
hello ravi,
in server.xml , in your context give
 Context  path=/...  docBase=...  ..
 Resource name=jdbc/myOracle auth=Container type=javax.sql.DataSource
   maxActive=100 maxIdle=30 maxWait=1
   username=scott password=tiger 
driverClassName=oracle.jdbc.driver.OracleDriver
   url=jdbc:oracle:thin:@localhost:1521:ora10  /
Context
 drop ojdbc14.jar in CATALINA_HOME's common\lib directory
you can access through JAVA ENC easily
 wishes,
 Prasad DTR 
  

- Original Message 
From: Chittajalu, Ravi S. [EMAIL PROTECTED]
To: users@tomcat.apache.org
Sent: Tuesday, 6 February, 2007 10:20:51 PM
Subject: Questions about Tomcat installation on Solaris Platform


Hello Users Group, 

Request your help on following questions

1. This one is more a clarification question. 
I used a Unix account 'devuser', which is not
associated to any Unix group. I installed Tomcat
using this user account. I was able to
successfully install and Tomcat runs fine. With
the same user I am not able to execute any Java
program. I get an
Exception in thread main
java.lang.NoClassDefFoundError: TestDB . The program
compiles well, but cannot execute. My question is how is
Tomcat able to Run under the same User account 'devuser'??

2. I configured a Database resource name with JNDI name
jdbc/oracle10g, but I do not have a way to test and it
does not look like the connection is happening.
I gave the 
 URL :jdbc:oracle:oci:@host:port:SID
Driver as: oracle.jdbc.driver.OracleDriver
Then userid / password.

I tested the SID from unix command line using
SQLPLUS and it works.
Can some suggest a way to test this and If there
is any problem with the configuration.

Regards
Ravi Chittajalu


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



___ 
What kind of emailer are you? Find out today - get a free analysis of your 
email personality. Take the quiz at the Yahoo! Mail Championship. 
http://uk.rd.yahoo.com/evt=44106/*http://mail.yahoo.net/uk

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



Please help me about loading javascript...

2007-02-08 Thread Le Phuoc Canh
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.


Re: Connection Pool configuration

2007-02-08 Thread Foo Shyn

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]



CGI environment variables

2007-02-08 Thread Patrick Lee

Hi,

I have an issue with CGI scripts (Perl based) running under Tomcat on
Windows 2000 getting URL's wrong by using backslashes instead of forward
slashes.

Notes:

1. I've setup CGI support as detailed in the how-to for Tomcat 5.5
2. I either have to set passShellEnvironment to true or set the systemroot
env var at the top of any Perl scripts in order to be able to open a
TCP/IPsocket. Otherwise I get a Can't create TCP/IP socket (10106) error.
3. As such, I have passShellEnvironment to true.
4. If I list the environment variables in Perl - for SCRIPT_NAME I get a
leading forward slash whilst the remaining are backslashes. for example:
SCRIPT_NAME = /cgi\path\to\script.cgi
5. Running Perl scripts on the server inserts backslashes for url's after
/cgi which results in many problems.

Maybe I'm missing something obvious but I've looked everywhere for some
info on this and come up empty handed.

Does anyone know how to fix this?