[ANN] Apache Tomcat 8.0.5 (beta) available

2014-03-28 Thread Mark Thomas
The Apache Tomcat team announces the immediate availability of Apache
Tomcat 8.0.5 (beta).

Apache Tomcat 8 is an open source software implementation of the Java
Servlet, JavaServer Pages, Java Unified Expression Language and Java
WebSocket technologies.

Apache Tomcat 8 is aligned with Java EE 7. In addition to supporting
updated versions of the Java EE specifications, Tomcat 8 includes a
number of improvements compared to Tomcat 7. The notable changes
include:

- Support for Java Servlet 3.1, JavaServer Pages 2.3, Java Unified
  Expression Language 3.0 and Java WebSocket 1.0.

- The default connector implementation is now the Java non-blocking
  implementation (NIO) for both HTTP and AJP.

- A new resources implementation that replaces Aliases, VirtualLoader,
  VirtualDirContext, JAR resources and external repositories with a
  single, consistent approach for configuring additional web
  application resources. The new resources implementation can also be
  used to implement overlays (using a master WAR as the basis for
  multiple web applications that each have their own
  customizations).


Apache Tomcat 8.0.5 includes numerous fixes for issues identified
in 8.0.3 as well as a number of other enhancements and changes. The
notable changes since 8.0.3 include:

- Update the Eclipse JDT compiler to enable full Java 8 support in JSPs.
- Update the default database connection pool implementation based on a
  repackaged Apache Commons DBCP to use the DBCP 2.0 release.
- Add new, experimental HTTP and AJP connectors based on NIO2.

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

The purpose of this beta release is to give users an opportunity to test
Tomcat 8 and to provide feedback to the Tomcat community. Although it is
a beta release, it is expected to run stably and is being used in
production at the ASF for the ASF's Jira instance. The beta status is
primarily because the Tomcat developers feel more feedback is required
before a stable release because there may be a small amount of further
refactoring.

Note: This version has 4 zip binaries: a generic one and three
  bundled with Tomcat native binaries for Windows operating systems
  running on different CPU architectures.

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

Migration guides from Apache Tomcat 5.5.x, 6.0.x and 7.0.x:
http://tomcat.apache.org/migration.html

Enjoy!

- The Apache Tomcat team

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Tomcat 7.0.52 strage startup

2014-03-28 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

Roberto,

On 3/17/14, 8:06 AM, Roberto Bottoni - AfterBit wrote:
 sometimes i get the following error at tomcat 7 startup..

What version do you have? How do you launch Tomcat?

 so i restart and restart again and finally tomcat starts without
 problem.

How do you restart? Just with a stop and start? Same procedure as above?

 The error below is raised even during tomcat execution..
 
 I need a little trace to start to investigate.. because now i
 cannot understand the origin of this error..

Are you sure that your hardware -- particularly the disk -- is okay?
Do you use remote-shares or anything like that for your deployment?

The stack trace you showed sounds like a complete disaster. I would
normally expect that to be the result of a corrupted Tomcat
installation, but you say it sometimes works, so it must be an
intermittent problem -- hence my questions about reliability of
hardware and maybe using a remote (unreliable) filesystem.

- -chris
-BEGIN PGP SIGNATURE-
Version: GnuPG v1
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQIcBAEBCAAGBQJTNZlfAAoJEBzwKT+lPKRY12wP/j533Q+IVcdMfSNKUlSoomVd
oHHsp1Srs+YGG5IFBGYDI2nafn+jv6+BR79bESMVRlHLNxZXpE2P+Z83a/Ffmz8N
CtJGTqxCEOl3jtx2bFHkxHQm8CFklHhGJgMttdJ3jNRFjj+bQVwE4rE6wxq5lcuc
gAjQxFcv2MXPDieJgdMIlbkuazfX4mCmqzvdRoJJxp3Q4KdYJTwq604hKHowTUbz
BNhfj/tQdkWGE40zZwzpaPBv13jVarEYNpPzaI303JIpcsCEbc4iOO/PD89ZeJE4
Tgy8vWxm0MIL2Jv15uhajuADn2c4GCxrGrGDcwzlR4JvCxKaCqS8vEEY3XjtxRve
weuNEhHI8mlHWWxcpKtNUaE6LCJoLzsZRUAn8WcwQf3ejPyIGgkMaI10bWPLBIT4
o4G0B91EaYtzE88ju/4v7yeYRbR3GminFN37+QLRpXqxByyN9FY+c3ox7PV9BupN
eTqL4PPs22UlpKCstUKkEhqa1CuoWeYR1nZjIAatEbGTW2it89G99z4ntF9+/fGl
uAhuuVlHIr4R0Wj6eMO5GCfUt9tFKAuSTYhW76q3mZ3oAglbrrUEOv6vdeEAyBBv
twlGzU6CTD162AkpKIOtDs7Y/lSCUnstq+1bpZVVu8ozWaSEWUmYaGqc/ZD/vxTl
DVCZATXSE6l+82r3eLqJ
=lGKT
-END PGP SIGNATURE-

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Connection pooling issue on Tomcat

2014-03-28 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

Barry,

On 3/28/14, 11:58 AM, Propes, Barry L wrote:
 Hi folks,
 
 I'm using Tomcat 6.0.29 for an app I've had in place for years. I
 run the Java app I have on a Windows 2003 server for my production
 region, but have local builds on both my desktop and laptop, both
 of which are Windows XP Pro. Yes, I do realize that the Tomcat
 version is old, but we'll be retiring the app in a few months so
 there's no need (at this time) to upgrade it.
 
 I use connection pooling, specifically Tomcat's DBCP class.
 
 This app has worked for years, but is suddenly encountering a
 strange connection error and issue to the PROD region only of
 Oracle 11. This just started in the last week. I'll include the
 contents of my context XML file and the errors that it's
 generating.
 
 Even stranger, my development build to the Oracle UAT region works
 just fine! These content.xml files are virtually the same, except
 one references the Oracle PROD region, and the other references the
 Oracle UAT region. The Resource name attributes vary really only
 slightly, one called myoracle, the other called myoracledev.
 
 Context Resource auth=Container description=changectrlapp 
 name=jdbc/myoracle type=javax.sql.DataSource 
 driverClassName=oracle.jdbc.driver.OracleDriver 
 username=username password=password 
 url=jdbc:oracle:thin:@servername.dom.net:1648:SVCNAME 
 maxIdle=30 maxWait=1 maxActive=20 testOnBorrow=true 
 timeBetweenEvictionRunsMillis=-1 
 minEvictableIdleTimeMillis=28800 poolPreparedStatements=true 
 removeAbandoned=true removeAbandonedTimeout=300 
 logAbandoned=false/
 
 The errors I am getting are:
 
 javax.servlet.ServletException:
 org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot create
 PoolableConnectionFactory (ORA-01033: ORACLE initialization or
 shutdown in progress
 
 
 
 org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot create
 PoolableConnectionFactory (ORA-01033: ORACLE initialization or
 shutdown in progress
 
 
 java.sql.SQLRecoverableException: ORA-01033: ORACLE initialization
 or shutdown in progress
 
 
 
 This may not be much to go on.
 
 But like I said, with attributes only slightly different, the
 connection to UAT works. By the way, I am connecting successfully
 to the Oracle PROD DB through other avenues: TOAD,SQL Plus, MS
 Access, etc.
 
 
 
 So the DB itself is working.
 
 
 Both my DEV/UAT and PROD regions use the same DBCP classes. Could
 something have gotten corrupted for one and not the other?
 
 Any feedback is welcomed. Let me know, please, if I neglected to
 add anything pertinent to this.

Have you been able to connect with any type of Java-based client?
Perhaps the driver is convinced something is wrong when everything is
fine?

I suspect that this is not Tomcat or DBCP-related.

- -chris
-BEGIN PGP SIGNATURE-
Version: GnuPG v1
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQIcBAEBCAAGBQJTNZ9vAAoJEBzwKT+lPKRYRkwP/0FAVLj0gNJf/BvJ2jv3lwwd
rdTssFpqIQWGTrvcZnHele+ALk+7UeUo4NwI79EWZOgJVbT7TlsfJMgOaQUQ4tzQ
WwMRvMP2H/zYx0U5PrcAD/eJF//gAw0oNtOYCQJ502spw0tC6rbLem8l91AaMwsF
gEtTyUfgdQvpITyhWfb3fh+Dt5M2FR8AijBkY5pwTao3IGBpjT/4cTjk6ZMj6kD3
TEOVa2TTOxt4EZ18lVGTSmJVBwBs6403swGSTPtZCpj5jUcweNxNQYQF6YwUj+Vf
BM7pXD11lgDh9wqMylt9/uwjq24CDSasPnnZOkxGhA1rDaUgSQXZF2aW5fX1czK2
DlzBQAdkz5PM2+Ft2yMSKGbZIXe+CCbI3x+lTOqy+7QtsPye+zMc+4CV67v+49PG
wMyCCng5fAtixhvb4kQvnGOfAZ+9IPWLiRH+V5HUc4FotfKT1kaR0m/y0VdfvpIK
TZJgzaAeuDvo6eM4I7AYctbXwfDL1Sdppq76WiJvof49awomEGcLPurCxGftbLPy
VwYTQcfLud659Tdf2sbvwrmYorVO/VarokzFutoW3UMPRY60b1dr0Tkc6+p4ysu/
cgWjduyZ5Ml63A+UCn8N4U7XUTzRUuaFeQF/E3wA+2E8FLFALe8Xk8jeAO845WWq
FZSmueBHQ/XPN8cU7J0G
=G31J
-END PGP SIGNATURE-

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Connection pooling issue on Tomcat

2014-03-28 Thread Propes, Barry L
Hi folks,

I'm using Tomcat 6.0.29 for an app I've had in place for years. I run the Java 
app I have on a Windows 2003 server for my production region, but have local 
builds on both my desktop and laptop, both of which are Windows XP Pro. Yes, I 
do realize that the Tomcat version is old, but we'll be retiring the app in a 
few months so there's no need (at this time) to upgrade it.

I use connection pooling, specifically Tomcat's DBCP class.

This app has worked for years, but is suddenly encountering a strange 
connection error and issue to the PROD region only of Oracle 11.
This just started in the last week. I'll include the contents of my context XML 
file and the errors that it's generating.

Even stranger, my development build to the Oracle UAT region works just fine! 
These content.xml files are virtually the same, except one references the 
Oracle PROD region, and the other references the Oracle UAT region. The 
Resource name attributes vary really only slightly, one called myoracle, the 
other called myoracledev.

Context
  Resource
auth=Container
description=changectrlapp
name=jdbc/myoracle
type=javax.sql.DataSource
driverClassName=oracle.jdbc.driver.OracleDriver
username=username
password=password
   url=jdbc:oracle:thin:@servername.dom.net:1648:SVCNAME
maxIdle=30
maxWait=1
maxActive=20
testOnBorrow=true
timeBetweenEvictionRunsMillis=-1
minEvictableIdleTimeMillis=28800
poolPreparedStatements=true
removeAbandoned=true
removeAbandonedTimeout=300
logAbandoned=false/

The errors I am getting are:

javax.servlet.ServletException: org.apache.tomcat.dbcp.dbcp.SQLNestedException: 
Cannot create PoolableConnectionFactory (ORA-01033: ORACLE initialization or 
shutdown in progress



org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot create 
PoolableConnectionFactory (ORA-01033: ORACLE initialization or shutdown in 
progress


java.sql.SQLRecoverableException: ORA-01033: ORACLE initialization or shutdown 
in progress



This may not be much to go on.

But like I said, with attributes only slightly different, the connection to UAT 
works. By the way, I am connecting successfully to the Oracle PROD DB through 
other avenues: TOAD,SQL Plus, MS Access, etc.



So the DB itself is working.


Both my DEV/UAT and PROD regions use the same DBCP classes. Could something 
have gotten corrupted for one and not the other?

Any feedback is welcomed. Let me know, please, if I neglected to add anything 
pertinent to this.



Re: Connection pooling issue on Tomcat

2014-03-28 Thread Mark Shifman


On 03/28/2014 11:58 AM, Propes, Barry L wrote:

Hi folks,

I'm using Tomcat 6.0.29 for an app I've had in place for years. I run the Java 
app I have on a Windows 2003 server for my production region, but have local 
builds on both my desktop and laptop, both of which are Windows XP Pro. Yes, I 
do realize that the Tomcat version is old, but we'll be retiring the app in a 
few months so there's no need (at this time) to upgrade it.

I use connection pooling, specifically Tomcat's DBCP class.

This app has worked for years, but is suddenly encountering a strange 
connection error and issue to the PROD region only of Oracle 11.
This just started in the last week. I'll include the contents of my context XML 
file and the errors that it's generating.

Even stranger, my development build to the Oracle UAT region works just fine! 
These content.xml files are virtually the same, except one references the 
Oracle PROD region, and the other references the Oracle UAT region. The 
Resource name attributes vary really only slightly, one called myoracle, the 
other called myoracledev.

Context
   Resource
 auth=Container
 description=changectrlapp
 name=jdbc/myoracle
 type=javax.sql.DataSource
 driverClassName=oracle.jdbc.driver.OracleDriver
 username=username
 password=password
url=jdbc:oracle:thin:@servername.dom.net:1648:SVCNAME
 maxIdle=30
 maxWait=1
 maxActive=20
 testOnBorrow=true
 timeBetweenEvictionRunsMillis=-1
 minEvictableIdleTimeMillis=28800
 poolPreparedStatements=true
 removeAbandoned=true
 removeAbandonedTimeout=300
 logAbandoned=false/

The errors I am getting are:

javax.servlet.ServletException: org.apache.tomcat.dbcp.dbcp.SQLNestedException: 
Cannot create PoolableConnectionFactory (ORA-01033: ORACLE initialization or 
shutdown in progress



org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot create 
PoolableConnectionFactory (ORA-01033: ORACLE initialization or shutdown in 
progress


java.sql.SQLRecoverableException: ORA-01033: ORACLE initialization or shutdown 
in progress

For   what its  worth,   I recently got this error which looks like it is an 
ORACLE issue rather than connection pool issue.
When I talked to our db administrator, they were doing some sort of maintenance 
on oracle at exactly the same time
I got the error.

mas




This may not be much to go on.

But like I said, with attributes only slightly different, the connection to UAT 
works. By the way, I am connecting successfully to the Oracle PROD DB through 
other avenues: TOAD,SQL Plus, MS Access, etc.



So the DB itself is working.


Both my DEV/UAT and PROD regions use the same DBCP classes. Could something 
have gotten corrupted for one and not the other?

Any feedback is welcomed. Let me know, please, if I neglected to add anything 
pertinent to this.




--
Mark Shifman MD. Ph.D.
Yale Center for Medical Informatics
Phone (203)737-5219
mark.shif...@yale.edu


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: Connection pooling issue on Tomcat

2014-03-28 Thread Propes, Barry L


-Original Message-
From: Christopher Schultz [mailto:ch...@christopherschultz.net] 
Sent: Friday, March 28, 2014 11:13 AM
To: Tomcat Users List
Subject: Re: Connection pooling issue on Tomcat

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

Barry,

On 3/28/14, 11:58 AM, Propes, Barry L wrote:
 Hi folks,
 
 I'm using Tomcat 6.0.29 for an app I've had in place for years. I run 
 the Java app I have on a Windows 2003 server for my production region, 
 but have local builds on both my desktop and laptop, both of which are 
 Windows XP Pro. Yes, I do realize that the Tomcat version is old, but 
 we'll be retiring the app in a few months so there's no need (at this 
 time) to upgrade it.
 
 
 The errors I am getting are:
 
 javax.servlet.ServletException:
 org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot create 
 PoolableConnectionFactory (ORA-01033: ORACLE initialization or 
 shutdown in progress
 
 
 
 org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot create 
 PoolableConnectionFactory (ORA-01033: ORACLE initialization or 
 shutdown in progress
 
 
 java.sql.SQLRecoverableException: ORA-01033: ORACLE initialization or 
 shutdown in progress
 
 
 
 This may not be much to go on.
 
 But like I said, with attributes only slightly different, the 
 connection to UAT works. By the way, I am connecting successfully to 
 the Oracle PROD DB through other avenues: TOAD,SQL Plus, MS Access, 
 etc.
 
 
 
 So the DB itself is working.
 
 
 Both my DEV/UAT and PROD regions use the same DBCP classes. Could 
 something have gotten corrupted for one and not the other?
 
 Any feedback is welcomed. Let me know, please, if I neglected to add 
 anything pertinent to this.

Have you been able to connect with any type of Java-based client?
Perhaps the driver is convinced something is wrong when everything is fine?

I suspect that this is not Tomcat or DBCP-related.

- -chris

---
Chris, I got it solved. It was Tomcat related, but my fault.

When stopping and starting the app through the manager console, the conf app 
xml file in question was not getting overwritten. I had to delete it and get 
the changes I made recreated.
It then worked. Oddly, I had made changes to both my dev environments - laptop 
and desktop -- but I discovered it right AFTER I posted this! Ugh!

Thanks!

Consider this closed. 


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



timeout

2014-03-28 Thread Vicky B
HI All,

i have configured apache and apache tomcat i.e apache is my http server and
tomcat is my webserver. i am having an isssue where some of request take
1-2 min to process but i get 500 internal serer message .

IS this something related to timeout value.

The value of timeout in my apache is set 300.

what could the route cause?


-- 



*Thanks  Regards Vickyb*


Re: timeout

2014-03-28 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

Vicky,

On 3/28/14, 2:18 PM, Vicky B wrote:
 HI All,
 
 i have configured apache and apache tomcat i.e apache is my http
 server and tomcat is my webserver. i am having an isssue where some
 of request take 1-2 min to process but i get 500 internal serer
 message .
 
 IS this something related to timeout value.
 
 The value of timeout in my apache is set 300.
 
 what could the route cause?

Is the client timing-out (disconnecting) or is the server timing out?
500 Internal Server Error is usually an indication that something went
wrong on the server site. Check your log files on the server for
anything reporting an error.

- -chris
-BEGIN PGP SIGNATURE-
Version: GnuPG v1
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQIcBAEBCAAGBQJTNcCVAAoJEBzwKT+lPKRYR9oP/jTLupu4DtIBHO00/lLW5zZQ
/JIc5+pbge6Z4sWzu8MSKoGQJmAMlmuuolArV7KYnSYa+VlWxLAgn75ZoPaXSRPn
j3Yfi3B4jWglkuh4RbL8vx66/8xy0jqlQMa9nuDiLsbX1+9xYaBd+8CgLx3y/CgE
6H3JfXdo72VVyzskPKDNbsYBkhzd5zhslxH8I7Szs211/LWCrKTFSvs7+Dzd8JSn
ueAreLnkxTVzio1+Tg2zYTBF44wDePpAwaDff6qsjpaRPNA2zLcB5ahHG2XI+DVA
6UVkVlpaIWrMzrfgylw2O7aDHp1GRMQIFD6bNgH84CMEAKnQYH7QKKk2EHTCEkdw
yfeVrqvzNK1bsKk5HbYfnjWiq0NUGItjf4cOUhGDLEt05iy2lkqAUOFjPYXmBW9r
2gPieoVeDtcvL+IH6upU01H2TCYcjse52h+9q/WNAlgiNkGqhEtjXyj8e6wQwVM0
3k1gMmFN1pgvmcAPyTZQVnlZUoc5oXKeg4/casUZVrqpueIA3DR/PBz4EEZARo2S
IAlNLol2KRdx7m+gRZmbNhd7NWsJ/Y1wa1le2nuE6Cw5Z2PUB+YWH5YuikAiIyQ1
8WYV0jwObt993iauYnFUTEVkstB44wSntIDcDsQ4Xv9aNjKh6TPko0wGP6qXTxNY
v1PI5DGWXr8ExzZAxo0w
=sj6N
-END PGP SIGNATURE-

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: timeout

2014-03-28 Thread Vicky B
I dont know if  it is client timeouting or server .

I dont see any issue on server side processing .this issue happens when my
code takes more then a minute to respond.


On Sat, Mar 29, 2014 at 12:03 AM, Christopher Schultz 
ch...@christopherschultz.net wrote:

 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA256

 Vicky,

 On 3/28/14, 2:18 PM, Vicky B wrote:
  HI All,
 
  i have configured apache and apache tomcat i.e apache is my http
  server and tomcat is my webserver. i am having an isssue where some
  of request take 1-2 min to process but i get 500 internal serer
  message .
 
  IS this something related to timeout value.
 
  The value of timeout in my apache is set 300.
 
  what could the route cause?

 Is the client timing-out (disconnecting) or is the server timing out?
 500 Internal Server Error is usually an indication that something went
 wrong on the server site. Check your log files on the server for
 anything reporting an error.

 - -chris
 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1
 Comment: GPGTools - http://gpgtools.org
 Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

 iQIcBAEBCAAGBQJTNcCVAAoJEBzwKT+lPKRYR9oP/jTLupu4DtIBHO00/lLW5zZQ
 /JIc5+pbge6Z4sWzu8MSKoGQJmAMlmuuolArV7KYnSYa+VlWxLAgn75ZoPaXSRPn
 j3Yfi3B4jWglkuh4RbL8vx66/8xy0jqlQMa9nuDiLsbX1+9xYaBd+8CgLx3y/CgE
 6H3JfXdo72VVyzskPKDNbsYBkhzd5zhslxH8I7Szs211/LWCrKTFSvs7+Dzd8JSn
 ueAreLnkxTVzio1+Tg2zYTBF44wDePpAwaDff6qsjpaRPNA2zLcB5ahHG2XI+DVA
 6UVkVlpaIWrMzrfgylw2O7aDHp1GRMQIFD6bNgH84CMEAKnQYH7QKKk2EHTCEkdw
 yfeVrqvzNK1bsKk5HbYfnjWiq0NUGItjf4cOUhGDLEt05iy2lkqAUOFjPYXmBW9r
 2gPieoVeDtcvL+IH6upU01H2TCYcjse52h+9q/WNAlgiNkGqhEtjXyj8e6wQwVM0
 3k1gMmFN1pgvmcAPyTZQVnlZUoc5oXKeg4/casUZVrqpueIA3DR/PBz4EEZARo2S
 IAlNLol2KRdx7m+gRZmbNhd7NWsJ/Y1wa1le2nuE6Cw5Z2PUB+YWH5YuikAiIyQ1
 8WYV0jwObt993iauYnFUTEVkstB44wSntIDcDsQ4Xv9aNjKh6TPko0wGP6qXTxNY
 v1PI5DGWXr8ExzZAxo0w
 =sj6N
 -END PGP SIGNATURE-

 -
 To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org




-- 



*Thanks  Regards Vickyb*


Re: timeout

2014-03-28 Thread Weiquan
Why your code take one min to response? Find out the reason

Sent from my iPhone

 On Mar 28, 2014, at 2:37 PM, Vicky B vickyb2...@gmail.com wrote:
 
 I dont know if  it is client timeouting or server .
 
 I dont see any issue on server side processing .this issue happens when my
 code takes more then a minute to respond.
 
 
 On Sat, Mar 29, 2014 at 12:03 AM, Christopher Schultz 
 ch...@christopherschultz.net wrote:
 
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA256
 
 Vicky,
 
 On 3/28/14, 2:18 PM, Vicky B wrote:
 HI All,
 
 i have configured apache and apache tomcat i.e apache is my http
 server and tomcat is my webserver. i am having an isssue where some
 of request take 1-2 min to process but i get 500 internal serer
 message .
 
 IS this something related to timeout value.
 
 The value of timeout in my apache is set 300.
 
 what could the route cause?
 
 Is the client timing-out (disconnecting) or is the server timing out?
 500 Internal Server Error is usually an indication that something went
 wrong on the server site. Check your log files on the server for
 anything reporting an error.
 
 - -chris
 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1
 Comment: GPGTools - http://gpgtools.org
 Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/
 
 iQIcBAEBCAAGBQJTNcCVAAoJEBzwKT+lPKRYR9oP/jTLupu4DtIBHO00/lLW5zZQ
 /JIc5+pbge6Z4sWzu8MSKoGQJmAMlmuuolArV7KYnSYa+VlWxLAgn75ZoPaXSRPn
 j3Yfi3B4jWglkuh4RbL8vx66/8xy0jqlQMa9nuDiLsbX1+9xYaBd+8CgLx3y/CgE
 6H3JfXdo72VVyzskPKDNbsYBkhzd5zhslxH8I7Szs211/LWCrKTFSvs7+Dzd8JSn
 ueAreLnkxTVzio1+Tg2zYTBF44wDePpAwaDff6qsjpaRPNA2zLcB5ahHG2XI+DVA
 6UVkVlpaIWrMzrfgylw2O7aDHp1GRMQIFD6bNgH84CMEAKnQYH7QKKk2EHTCEkdw
 yfeVrqvzNK1bsKk5HbYfnjWiq0NUGItjf4cOUhGDLEt05iy2lkqAUOFjPYXmBW9r
 2gPieoVeDtcvL+IH6upU01H2TCYcjse52h+9q/WNAlgiNkGqhEtjXyj8e6wQwVM0
 3k1gMmFN1pgvmcAPyTZQVnlZUoc5oXKeg4/casUZVrqpueIA3DR/PBz4EEZARo2S
 IAlNLol2KRdx7m+gRZmbNhd7NWsJ/Y1wa1le2nuE6Cw5Z2PUB+YWH5YuikAiIyQ1
 8WYV0jwObt993iauYnFUTEVkstB44wSntIDcDsQ4Xv9aNjKh6TPko0wGP6qXTxNY
 v1PI5DGWXr8ExzZAxo0w
 =sj6N
 -END PGP SIGNATURE-
 
 -
 To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org
 
 
 -- 
 
 
 
 *Thanks  Regards Vickyb*

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: timeout

2014-03-28 Thread Vicky B
I mean 1 min to process the request and thats due to the huge logic and
processing involved.


On Sat, Mar 29, 2014 at 12:11 AM, Weiquan weiquan.y...@gmail.com wrote:

 Why your code take one min to response? Find out the reason

 Sent from my iPhone

  On Mar 28, 2014, at 2:37 PM, Vicky B vickyb2...@gmail.com wrote:
 
  I dont know if  it is client timeouting or server .
 
  I dont see any issue on server side processing .this issue happens when
 my
  code takes more then a minute to respond.
 
 
  On Sat, Mar 29, 2014 at 12:03 AM, Christopher Schultz 
  ch...@christopherschultz.net wrote:
 
  -BEGIN PGP SIGNED MESSAGE-
  Hash: SHA256
 
  Vicky,
 
  On 3/28/14, 2:18 PM, Vicky B wrote:
  HI All,
 
  i have configured apache and apache tomcat i.e apache is my http
  server and tomcat is my webserver. i am having an isssue where some
  of request take 1-2 min to process but i get 500 internal serer
  message .
 
  IS this something related to timeout value.
 
  The value of timeout in my apache is set 300.
 
  what could the route cause?
 
  Is the client timing-out (disconnecting) or is the server timing out?
  500 Internal Server Error is usually an indication that something went
  wrong on the server site. Check your log files on the server for
  anything reporting an error.
 
  - -chris
  -BEGIN PGP SIGNATURE-
  Version: GnuPG v1
  Comment: GPGTools - http://gpgtools.org
  Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/
 
  iQIcBAEBCAAGBQJTNcCVAAoJEBzwKT+lPKRYR9oP/jTLupu4DtIBHO00/lLW5zZQ
  /JIc5+pbge6Z4sWzu8MSKoGQJmAMlmuuolArV7KYnSYa+VlWxLAgn75ZoPaXSRPn
  j3Yfi3B4jWglkuh4RbL8vx66/8xy0jqlQMa9nuDiLsbX1+9xYaBd+8CgLx3y/CgE
  6H3JfXdo72VVyzskPKDNbsYBkhzd5zhslxH8I7Szs211/LWCrKTFSvs7+Dzd8JSn
  ueAreLnkxTVzio1+Tg2zYTBF44wDePpAwaDff6qsjpaRPNA2zLcB5ahHG2XI+DVA
  6UVkVlpaIWrMzrfgylw2O7aDHp1GRMQIFD6bNgH84CMEAKnQYH7QKKk2EHTCEkdw
  yfeVrqvzNK1bsKk5HbYfnjWiq0NUGItjf4cOUhGDLEt05iy2lkqAUOFjPYXmBW9r
  2gPieoVeDtcvL+IH6upU01H2TCYcjse52h+9q/WNAlgiNkGqhEtjXyj8e6wQwVM0
  3k1gMmFN1pgvmcAPyTZQVnlZUoc5oXKeg4/casUZVrqpueIA3DR/PBz4EEZARo2S
  IAlNLol2KRdx7m+gRZmbNhd7NWsJ/Y1wa1le2nuE6Cw5Z2PUB+YWH5YuikAiIyQ1
  8WYV0jwObt993iauYnFUTEVkstB44wSntIDcDsQ4Xv9aNjKh6TPko0wGP6qXTxNY
  v1PI5DGWXr8ExzZAxo0w
  =sj6N
  -END PGP SIGNATURE-
 
  -
  To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
  For additional commands, e-mail: users-h...@tomcat.apache.org
 
 
  --
 
 
 
  *Thanks  Regards Vickyb*

 -
 To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org




-- 



*Thanks  Regards Vickyb*


RE: Connection pooling issue on Tomcat

2014-03-28 Thread Propes, Barry L


-Original Message-
From: Mark Shifman [mailto:mark.shif...@yale.edu] 
Sent: Friday, March 28, 2014 12:34 PM
To: Tomcat Users List
Subject: Re: Connection pooling issue on Tomcat


On 03/28/2014 11:58 AM, Propes, Barry L wrote:
 Hi folks,

 I'm using Tomcat 6.0.29 for an app I've had in place for years. I run the 
 Java app I have on a Windows 2003 server for my production region, but have 
 local builds on both my desktop and laptop, both of which are Windows XP Pro. 
 Yes, I do realize that the Tomcat version is old, but we'll be retiring the 
 app in a few months so there's no need (at this time) to upgrade it.

 I use connection pooling, specifically Tomcat's DBCP class.

 This app has worked for years, but is suddenly encountering a strange 
 connection error and issue to the PROD region only of Oracle 11.
 This just started in the last week. I'll include the contents of my context 
 XML file and the errors that it's generating.

 Even stranger, my development build to the Oracle UAT region works just fine! 
 These content.xml files are virtually the same, except one references the 
 Oracle PROD region, and the other references the Oracle UAT region. The 
 Resource name attributes vary really only slightly, one called myoracle, the 
 other called myoracledev.

 Context
Resource
  auth=Container
  description=changectrlapp
  name=jdbc/myoracle
  type=javax.sql.DataSource
  driverClassName=oracle.jdbc.driver.OracleDriver
  username=username
  password=password
 url=jdbc:oracle:thin:@servername.dom.net:1648:SVCNAME
  maxIdle=30
  maxWait=1
  maxActive=20
  testOnBorrow=true
  timeBetweenEvictionRunsMillis=-1
  minEvictableIdleTimeMillis=28800
  poolPreparedStatements=true
  removeAbandoned=true
  removeAbandonedTimeout=300
  logAbandoned=false/

 The errors I am getting are:

 javax.servlet.ServletException: 
 org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot create 
 PoolableConnectionFactory (ORA-01033: ORACLE initialization or 
 shutdown in progress



 org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot create 
 PoolableConnectionFactory (ORA-01033: ORACLE initialization or 
 shutdown in progress


 java.sql.SQLRecoverableException: ORA-01033: ORACLE initialization or 
 shutdown in progress
For   what its  worth,   I recently got this error which looks like it is an 
ORACLE issue rather than connection pool issue.
When I talked to our db administrator, they were doing some sort of maintenance 
on oracle at exactly the same time I got the error.

mas



 This may not be much to go on.

 But like I said, with attributes only slightly different, the connection to 
 UAT works. By the way, I am connecting successfully to the Oracle PROD DB 
 through other avenues: TOAD,SQL Plus, MS Access, etc.



 So the DB itself is working.


 Both my DEV/UAT and PROD regions use the same DBCP classes. Could something 
 have gotten corrupted for one and not the other?

 Any feedback is welcomed. Let me know, please, if I neglected to add anything 
 pertinent to this.



--
Mark Shifman MD. Ph.D.
Yale Center for Medical Informatics
Phone (203)737-5219
mark.shif...@yale.edu
=
Thanks, Mark, I got it figured out.

I had changed it a couple of weeks back to point to our COB region, which is up 
only during a specified time, and didn't realize I hadn't changed it back. But 
I also thought that stopping and starting the app in the manager console would 
overwrite the app xml file in the conf folder, and that didn't happen.
I checked it there and discovered the problem.

Thanks, though.

Barry


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: timeout

2014-03-28 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

Vicky,

On 3/28/14, 2:37 PM, Vicky B wrote:
 I dont know if  it is client timeouting or server .
 
 I dont see any issue on server side processing .this issue happens
 when my code takes more then a minute to respond.

What does the response body contain?

- -chris

 On Sat, Mar 29, 2014 at 12:03 AM, Christopher Schultz  
 ch...@christopherschultz.net wrote:
 
 Vicky,
 
 On 3/28/14, 2:18 PM, Vicky B wrote:
 HI All,
 
 i have configured apache and apache tomcat i.e apache is my
 http server and tomcat is my webserver. i am having an isssue
 where some of request take 1-2 min to process but i get 500
 internal serer message .
 
 IS this something related to timeout value.
 
 The value of timeout in my apache is set 300.
 
 what could the route cause?
 
 Is the client timing-out (disconnecting) or is the server timing
 out? 500 Internal Server Error is usually an indication that
 something went wrong on the server site. Check your log files on
 the server for anything reporting an error.
 
 -chris
 
 -

 
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org
 
 
 
 
-BEGIN PGP SIGNATURE-
Version: GnuPG v1
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQIcBAEBCAAGBQJTNdLBAAoJEBzwKT+lPKRY594QAL+Cj/DXU6umoZqbqcJMPhvi
0BhloV1IxDuoIunSaWPgSRHH89sgH8BIg97aW/Jc/p5u/TEE1r9L4NIXRwU7xP7L
V3SPdOqoRIPYUkUiD+KphV+2WYWl2AB83KJR7ign/NmTW3vL9twQu31N0bN0QgS+
z2GyhDvJw0Z6aaFq5f6Yjbw3MZwDZRh8LC6hYRwLZ1DSvagiihJ/+XUVUC/E7iIe
JRGqKWXsYV9QEbBUAgbjtN44END0m7QB8eYQMKEftMA0p7vzbFzcq/DzoYkBS84+
AuEiSGMOFdg9AQO9whfgZa2rWz72lz321E8J6TCg1oYy7j758wyJ71lwQ8Z3BoBM
8TIdpWJCf1RNQoqNR7BaK25Dp7e0IDMl9XZVoH6V2BOltBE0ByhzB5u86pzk+UwI
Sh7FBm9fl5CTNUWJtt3jqEL3giOG18WiiH6sK05jNxHSbrrsKE4FHeTGd8g/STcb
VRFz8/01ifGlDP9AsT7DFkTs9C8FwN3/8E37OY9QU64Y+WpXbmRt8rXE2CFNyAjR
979qBAH2pRu+0oG3ay7sml0c2JjFPehDRO/XK8yHeBSk87EYe805vygwYf7c4Co6
m4lYx9zsXlY+327yt8kHi2l8tBqXg1ZovU8Fz3LpDN9Y6SKrNazqc7W+cZwzd9Et
ptvpb/YYL4xTt4mzs96t
=0yR7
-END PGP SIGNATURE-

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Connection pooling issue on Tomcat

2014-03-28 Thread Leo Donahue
On Fri, Mar 28, 2014 at 12:31 PM, Propes, Barry L
barry.l.pro...@citi.comwrote:



 -Original Message-
 From: Mark Shifman [mailto:mark.shif...@yale.edu]
 Sent: Friday, March 28, 2014 12:34 PM
 To: Tomcat Users List
 Subject: Re: Connection pooling issue on Tomcat

 =
 Thanks, Mark, I got it figured out.

 I had changed it a couple of weeks back to point to our COB region, which
 is up only during a specified time, and didn't realize I hadn't changed it
 back. But I also thought that stopping and starting the app in the manager
 console would overwrite the app xml file in the conf folder, and that
 didn't happen.
 I checked it there and discovered the problem.


I know this thread is closed, but I just wanted to ask you a follow up
question Barry.

You said that the app xml in the conf folder wasn't being overwritten.

Are you placing that xml file there manually?

Or did you set copyXML in your Host element to true to make it copy that
file there?  Because by default, copyXML is set to false, that attribute is
not even named in the default Tomcat server.xml if you are using the zip
version.  And per the docs, that app xml file will be used in place of the
one in your web app, even if the web app one is newer.

[quote]
Set to true if you want a context XML descriptor embedded inside the
application (located at /META-INF/context.xml) to be copied to xmlBase when
the application is deployed. On subsequent starts, the copied context XML
descriptor will be used in preference to any context XML descriptor
embedded inside the application *** even if the descriptor embedded inside
the application is more recent ***. The flag's value defaults to false.
Note if *deployXML* is false, this attribute will have no effect.
[/quote]

If you place the contents of your app xml file in a file called context.xml
in /META-INF/, you won't have to worry about updating the one in the conf
folder.

I only place xml files in conf when I want something static, like mapping
an output directory for GIS applications to write images.


Re: timeout

2014-03-28 Thread André Warnier

Vicky B wrote:

HI All,

i have configured apache and apache tomcat i.e apache is my http server and
tomcat is my webserver.


The does not seem to make much sense.  Both are HTTP servers and thus 
webservers.
Do you mean that apache http is working as a front-end to Tomcat ?
If so, how does one connect to the other ?

 i am having an isssue where some of request take

1-2 min to process but i get 500 internal serer message .


The browser does not invent this error.
It comes to it from the server, as HTTP response with a status code 500.
There *must* be an error message somewhere in a log on the server side.

(You have 2 servers, so look in both logfiles).

It can also *not* be a timeout on the client (browser) side.  If there was a timeout on 
the client side, it would close the connection with the server, and you would never see 
this message (because the server could not send it to the client, if the connection was 
closed).


The error pages are quite different between Apache httpd and tomcat, easily distinguished 
visually.  How does the 500 error page that you get look like ?




IS this something related to timeout value.

The value of timeout in my apache is set 300.


what timeout ? what apache ?



what could the route cause?



Nobody can tell you that, before you tell us what is in the logfile(s).




-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Why Tomcat crashes

2014-03-28 Thread Daniel Mikusa
On Mar 27, 2014, at 2:20 PM, wangke keow...@hotmail.com wrote:

 
 
 Date: Thu, 27 Mar 2014 12:20:28 -0400
 From: ch...@christopherschultz.net
 To: users@tomcat.apache.org
 Subject: Re: Why Tomcat crashes
 
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA256
 
 Wangke,
 
 On 3/27/14, 2:18 AM, wangke wrote:
 Hi All: Recently I've encountered a very strange problem, I managed
 to crash tomcat entirely with my application for a few times.
 Personally,  I am quite suspicious about the the settings of a
 shared library libswipl. What I did according to 
 https://code.google.com/p/javanaproche/wiki/HowToJPL is I have
 Java.library.path point to libswipl for a jar file called JPL (a
 bidirectional interface between Java and Prolog since I need to run
 some simple Prolog rules) and then when I start calling JPL
 provided interface in my application code, the following exceptions
 are thrown:

Looking at the crash dump file, here’s the stack trace leading up to the crash.

Stack: [0x7fd8276f7000,0x7fd8277f8000],  sp=0x7fd8277f3548,  free 
space=1009k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
C  [libpthread.so.0+0xcf60]  pthread_kill+0x0

Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
J  jpl.fli.Prolog.next_solution(Ljpl/fli/qid_t;)Z
J  jpl.Query.hasMoreSolutions()Z
j  jpl.Query.oneSolution()Ljava/util/Hashtable;+18
j  jpl.Query.hasSolution()Z+1
j  jpl.Query.hasSolution(Ljava/lang/String;)Z+8
J  iGeotutor_engine.WorkFlow.consultProlog(Ljava/lang/String;Ljava/util/Map;)V
…

Which points towards the JPL library that you’re using.  Perhaps you could 
check with the maintainers of that project and see if they have seen similar 
errors or could assist in debugging the issue further.

Dan

 
 That sounds like a lot of fun!
 
 Can anybody help me to figure out what happened exactly, BTW,
 Tomcat is not crashing all the time but fairly frequent though. 
 Thanks very much.
 
 WARNING: Error while removing context [/XX] 
 java.lang.NoClassDefFoundError:
 org/apache/struts2/util/ObjectFactoryDestroyable at
 org.apache.struts2.dispatcher.Dispatcher.cleanup(Dispatcher.java:265)
 
 
 at
 org.apache.struts2.dispatcher.ng.PrepareOperations.cleanupDispatcher(PrepareOperations.java:188)
 at
 org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.destroy(StrutsPrepareAndExecuteFilter.java:100)
 
 
 at
 org.apache.catalina.core.ApplicationFilterConfig.release(ApplicationFilterConfig.java:358)
 at
 org.apache.catalina.core.StandardContext.filterStop(StandardContext.java:4107)
 
 
 at org.apache.catalina.core.StandardContext.stop(StandardContext.java:4876)
 at
 org.apache.catalina.core.ContainerBase.removeChild(ContainerBase.java:936)
 
 
 at
 org.apache.catalina.startup.HostConfig.checkResources(HostConfig.java:1212)
 at
 org.apache.catalina.startup.HostConfig.check(HostConfig.java:1382) 
 at
 org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:306)
 
 
 at
 org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:142)
 at
 org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.java:1389)
 
 
 at
 org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1653)
 at
 org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1662)
 
 
 at
 org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1642)
 at java.lang.Thread.run(Thread.java:662) Caused by:
 java.lang.ClassNotFoundException:
 org.apache.struts2.util.ObjectFactoryDestroyable at
 org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1680)
 
 
 at
 org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1526)
 ... 16 more Mar 26, 2014 6:18:51 PM
 org.apache.catalina.core.ContainerBase stop INFO: Container
 org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/XX].[jsp]
 has not been started Mar 26, 2014 6:18:51 PM
 org.apache.catalina.core.ContainerBase stop INFO: Container
 org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/XX].[default]
 has not been started Mar 26, 2014 6:18:51 PM
 org.apache.catalina.startup.HostConfig checkResources WARNING:
 Error during context [/XX] destroy 
 java.lang.NoClassDefFoundError:
 org/apache/struts2/util/ObjectFactoryDestroyable at
 org.apache.struts2.dispatcher.Dispatcher.cleanup(Dispatcher.java:265)
 
 
 at
 org.apache.struts2.dispatcher.ng.PrepareOperations.cleanupDispatcher(PrepareOperations.java:188)
 at
 org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.destroy(StrutsPrepareAndExecuteFilter.java:100)
 
 
 at
 org.apache.catalina.core.ApplicationFilterConfig.release(ApplicationFilterConfig.java:358)
 at
 org.apache.catalina.core.StandardContext.filterStop(StandardContext.java:4107)
 
 
 at org.apache.catalina.core.StandardContext.stop(StandardContext.java:4876)
 at
 

RE: Why Tomcat crashes

2014-03-28 Thread wangke
Thanks very much


 Subject: Re: Why Tomcat crashes
 From: dmik...@gopivotal.com
 Date: Fri, 28 Mar 2014 17:54:05 -0400
 To: users@tomcat.apache.org
 
 On Mar 27, 2014, at 2:20 PM, wangke keow...@hotmail.com wrote:
 
  
  
  Date: Thu, 27 Mar 2014 12:20:28 -0400
  From: ch...@christopherschultz.net
  To: users@tomcat.apache.org
  Subject: Re: Why Tomcat crashes
  
  -BEGIN PGP SIGNED MESSAGE-
  Hash: SHA256
  
  Wangke,
  
  On 3/27/14, 2:18 AM, wangke wrote:
  Hi All: Recently I've encountered a very strange problem, I managed
  to crash tomcat entirely with my application for a few times.
  Personally,  I am quite suspicious about the the settings of a
  shared library libswipl. What I did according to 
  https://code.google.com/p/javanaproche/wiki/HowToJPL is I have
  Java.library.path point to libswipl for a jar file called JPL (a
  bidirectional interface between Java and Prolog since I need to run
  some simple Prolog rules) and then when I start calling JPL
  provided interface in my application code, the following exceptions
  are thrown:
 
 Looking at the crash dump file, here’s the stack trace leading up to the 
 crash.
 
 Stack: [0x7fd8276f7000,0x7fd8277f8000],  sp=0x7fd8277f3548,  free 
 space=1009k
 Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native 
 code)
 C  [libpthread.so.0+0xcf60]  pthread_kill+0x0
 
 Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
 J  jpl.fli.Prolog.next_solution(Ljpl/fli/qid_t;)Z
 J  jpl.Query.hasMoreSolutions()Z
 j  jpl.Query.oneSolution()Ljava/util/Hashtable;+18
 j  jpl.Query.hasSolution()Z+1
 j  jpl.Query.hasSolution(Ljava/lang/String;)Z+8
 J  iGeotutor_engine.WorkFlow.consultProlog(Ljava/lang/String;Ljava/util/Map;)V
 …
 
 Which points towards the JPL library that you’re using.  Perhaps you could 
 check with the maintainers of that project and see if they have seen similar 
 errors or could assist in debugging the issue further.
 
 Dan
 
  
  That sounds like a lot of fun!
  
  Can anybody help me to figure out what happened exactly, BTW,
  Tomcat is not crashing all the time but fairly frequent though. 
  Thanks very much.
  
  WARNING: Error while removing context [/XX] 
  java.lang.NoClassDefFoundError:
  org/apache/struts2/util/ObjectFactoryDestroyable at
  org.apache.struts2.dispatcher.Dispatcher.cleanup(Dispatcher.java:265)
  
  
  at
  org.apache.struts2.dispatcher.ng.PrepareOperations.cleanupDispatcher(PrepareOperations.java:188)
  at
  org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.destroy(StrutsPrepareAndExecuteFilter.java:100)
  
  
  at
  org.apache.catalina.core.ApplicationFilterConfig.release(ApplicationFilterConfig.java:358)
  at
  org.apache.catalina.core.StandardContext.filterStop(StandardContext.java:4107)
  
  
  at org.apache.catalina.core.StandardContext.stop(StandardContext.java:4876)
  at
  org.apache.catalina.core.ContainerBase.removeChild(ContainerBase.java:936)
  
  
  at
  org.apache.catalina.startup.HostConfig.checkResources(HostConfig.java:1212)
  at
  org.apache.catalina.startup.HostConfig.check(HostConfig.java:1382) 
  at
  org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:306)
  
  
  at
  org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:142)
  at
  org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.java:1389)
  
  
  at
  org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1653)
  at
  org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1662)
  
  
  at
  org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1642)
  at java.lang.Thread.run(Thread.java:662) Caused by:
  java.lang.ClassNotFoundException:
  org.apache.struts2.util.ObjectFactoryDestroyable at
  org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1680)
  
  
  at
  org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1526)
  ... 16 more Mar 26, 2014 6:18:51 PM
  org.apache.catalina.core.ContainerBase stop INFO: Container
  org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/XX].[jsp]
  has not been started Mar 26, 2014 6:18:51 PM
  org.apache.catalina.core.ContainerBase stop INFO: Container
  org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/XX].[default]
  has not been started Mar 26, 2014 6:18:51 PM
  org.apache.catalina.startup.HostConfig checkResources WARNING:
  Error during context [/XX] destroy 
  java.lang.NoClassDefFoundError:
  org/apache/struts2/util/ObjectFactoryDestroyable at
  org.apache.struts2.dispatcher.Dispatcher.cleanup(Dispatcher.java:265)
  
  
  at
  org.apache.struts2.dispatcher.ng.PrepareOperations.cleanupDispatcher(PrepareOperations.java:188)
  at
  org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.destroy(StrutsPrepareAndExecuteFilter.java:100)
 

NoClassDefFoundError using catalina ant deploy task

2014-03-28 Thread Brendan Miller
I was going through the tomcat docs and trying to use the default build.xml
file provided by the appdev tutorial to deploy my war to tomcat.

Example build.xml:
http://tomcat.apache.org/tomcat-8.0-doc/appdev/build.xml.txt

However, when I use the deploy task I always get
a java.lang.NoClassDefFoundError:
org/apache/tomcat/util/codec/binary/Base64 error.

I've copied the relevant code here: https://gist.github.com/catphive/9845270

I've verified that tomcat-util.jar, which contains Base64.cass, is on the
path, compile.classpath, passed to taskdef.

I'm just trying to do a basic tomcat tutorial, and getting this deploy task
to run is hanging me up. Any ideas what could be doing wrong? Are these
deploy tasks broken somehow?

Brendan


Re: NoClassDefFoundError using catalina ant deploy task

2014-03-28 Thread Brendan Miller
I investigated more and found the solution... It seems like a doc bug in
that the tutorial doesn't tell you everything you need to do to get deploy
to work.

tomcat-util.jar needs to be placed in ~/.ant/lib. The tutorial says to
place catalina-ant.jar there, but doesn't mention tomcat-util.jar.

The user needs the manager-script role for deploy to succeed. The tutorial
doesn't mention this.

Overall the appdev tutorial is pretty problematic because it doesn't really
include a complete example and seems to have kind of random organization.


On Fri, Mar 28, 2014 at 4:41 PM, Brendan Miller catph...@catphive.netwrote:

 I was going through the tomcat docs and trying to use the default
 build.xml file provided by the appdev tutorial to deploy my war to tomcat.

 Example build.xml:
 http://tomcat.apache.org/tomcat-8.0-doc/appdev/build.xml.txt

 However, when I use the deploy task I always get
 a java.lang.NoClassDefFoundError:
 org/apache/tomcat/util/codec/binary/Base64 error.

 I've copied the relevant code here:
 https://gist.github.com/catphive/9845270

 I've verified that tomcat-util.jar, which contains Base64.cass, is on the
 path, compile.classpath, passed to taskdef.

 I'm just trying to do a basic tomcat tutorial, and getting this deploy
 task to run is hanging me up. Any ideas what could be doing wrong? Are
 these deploy tasks broken somehow?

 Brendan



catalina-ant reload task doesn't work

2014-03-28 Thread Brendan Miller
Using the tasks from the example ant script at:
http://tomcat.apache.org/tomcat-8.0-doc/appdev/build.xml.txt

I have can deploy and undeploy from ant. However, the reload task doesn't
seem to do anything.

I make changes to java and html files, run ant reload which triggers the
reload task. Ant reports success. I browse to the site and my changes
aren't reflected. undeploy followed by deploy works.

Am I not understanding what reload is supposed to do, or is there a
different task that makes more sense to use?


RE: catalina-ant reload task doesn't work

2014-03-28 Thread Martin Gainty
$/CATALINA_HOME/conf/server.xml
autoDeploy=true

https://tomcat.apache.org/tomcat-6.0-doc/config/host.html

 

?
Martin

_


  



 Date: Fri, 28 Mar 2014 18:21:42 -0700
 Subject: catalina-ant reload task doesn't work
 From: catph...@catphive.net
 To: users@tomcat.apache.org
 
 Using the tasks from the example ant script at:
 http://tomcat.apache.org/tomcat-8.0-doc/appdev/build.xml.txt
 
 I have can deploy and undeploy from ant. However, the reload task doesn't
 seem to do anything.
 
 I make changes to java and html files, run ant reload which triggers the
 reload task. Ant reports success. I browse to the site and my changes
 aren't reflected. undeploy followed by deploy works.
 
 Am I not understanding what reload is supposed to do, or is there a
 different task that makes more sense to use?
  

RE: NoClassDefFoundError using catalina ant deploy task

2014-03-28 Thread Martin Gainty
no bugs..just ...'undocumented features'


glad you found the solution!
Martin 
__

  



 Date: Fri, 28 Mar 2014 17:51:08 -0700
 Subject: Re: NoClassDefFoundError using catalina ant deploy task
 From: catph...@catphive.net
 To: users@tomcat.apache.org
 
 I investigated more and found the solution... It seems like a doc bug in
 that the tutorial doesn't tell you everything you need to do to get deploy
 to work.
 
 tomcat-util.jar needs to be placed in ~/.ant/lib. The tutorial says to
 place catalina-ant.jar there, but doesn't mention tomcat-util.jar.
 
 The user needs the manager-script role for deploy to succeed. The tutorial
 doesn't mention this.
 
 Overall the appdev tutorial is pretty problematic because it doesn't really
 include a complete example and seems to have kind of random organization.
 
 
 On Fri, Mar 28, 2014 at 4:41 PM, Brendan Miller catph...@catphive.netwrote:
 
  I was going through the tomcat docs and trying to use the default
  build.xml file provided by the appdev tutorial to deploy my war to tomcat.
 
  Example build.xml:
  http://tomcat.apache.org/tomcat-8.0-doc/appdev/build.xml.txt
 
  However, when I use the deploy task I always get
  a java.lang.NoClassDefFoundError:
  org/apache/tomcat/util/codec/binary/Base64 error.
 
  I've copied the relevant code here:
  https://gist.github.com/catphive/9845270
 
  I've verified that tomcat-util.jar, which contains Base64.cass, is on the
  path, compile.classpath, passed to taskdef.
 
  I'm just trying to do a basic tomcat tutorial, and getting this deploy
  task to run is hanging me up. Any ideas what could be doing wrong? Are
  these deploy tasks broken somehow?
 
  Brendan
 
  

Re: timeout

2014-03-28 Thread Vicky B
@christopher

in response body i see the usual 500 internal server message

@Andre

Yes apache is my front end to apache tomcat ,  i use mode_jk connector.

Regarding  error message in apache logs i see 500 as reponse code for the
reqeust and i also see below message

broken pipe : connection reset by peer : writing data to network.

timeout is the direcive in apache which is set to 300 .


On Sat, Mar 29, 2014 at 3:05 AM, André Warnier a...@ice-sa.com wrote:

 Vicky B wrote:

 HI All,

 i have configured apache and apache tomcat i.e apache is my http server
 and
 tomcat is my webserver.


 The does not seem to make much sense.  Both are HTTP servers and thus
 webservers.
 Do you mean that apache http is working as a front-end to Tomcat ?
 If so, how does one connect to the other ?


  i am having an isssue where some of request take

 1-2 min to process but i get 500 internal serer message .


 The browser does not invent this error.
 It comes to it from the server, as HTTP response with a status code 500.
 There *must* be an error message somewhere in a log on the server side.

 (You have 2 servers, so look in both logfiles).

 It can also *not* be a timeout on the client (browser) side.  If there was
 a timeout on the client side, it would close the connection with the
 server, and you would never see this message (because the server could not
 send it to the client, if the connection was closed).

 The error pages are quite different between Apache httpd and tomcat,
 easily distinguished visually.  How does the 500 error page that you get
 look like ?



 IS this something related to timeout value.

 The value of timeout in my apache is set 300.


 what timeout ? what apache ?



 what could the route cause?


 Nobody can tell you that, before you tell us what is in the logfile(s).





 -
 To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org




-- 



*Thanks  Regards Vickyb*