quartz.properties MySQL

2005-02-24 Thread Shakeel Ahmad
Hi, 

Can anyone send me a sample quartz.properties file for MySQL and Tomcat.

Shakeel Ahmad.

-Original Message-
From: Randall Svancara [mailto:[EMAIL PROTECTED]
Sent: 24 February, 2005 1:00 AM
To: Tomcat Users List
Subject: JDBCStore JTDS


Anyone have any luck using the JTDS driver for Micro(Caugh..Caugh) SQL
Server and persistent session management using JDCBStore.  I am
currently experiencing a problem connecting with jtds.  Here is my
configuration for my JDBCStore...


Manager

className=org.apache.catalina.session.PersistentManager
Store className=org.apache.catalina.session.JDBCStore

connectionURL=jdbc:jtds:sqlserver://10.113.2.60/propsys;user=webuser;pa
ssword=password
driverName=net.sourceforge.jtds.jdbc.Driver
sessionIdCol=session_id
sessionValidCol=valid_session
sessionMaxInactiveCol=max_inactive
sessionLastAccessedCol=last_access
sessionTable=tomcat_sessions
sessionAppCol=app_context
sessionDataCol=session_data /
/Manager



I recieve this error when trying to use the driver/ConnectionURL to
connect to the database.  

Feb 23, 2005 7:52:35 AM org.apache.catalina.session.JDBCStore
getConnection
SEVERE: A SQL exception occurred java.sql.SQLException: Single-Sign-On
is only supported on Windows. Please specify a user name.

Any help/advice/hints would be appreciated.  Of course, my platform is
Linux and single sign on is not what I want anyway.

Randall





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: How to send hidden variables to next page

2005-02-22 Thread Shakeel Ahmad
If you are developing a JSP/Servlet then you can do this by keeping those
variables in session.

Best Regards,
S H A K E E L   A H M A D
http://members.fortunecity.com/javaclub/shakeel.htm
Voice: 00923002723316
Senior Software Engineer.
NorthStar Technologies. www.globalnorthstar.com

EE(Computer Engineering), UET Lahore, Pakistan.
SCJP,SCWCD  SCBCD Sun Microsystems, Inc.
Brain Bench Certified Java Programmer.

-Original Message-
From: U K Laxmi [mailto:[EMAIL PROTECTED]
Sent: 23 February, 2005 10:31 AM
To: Tomcat Users List
Subject: How to send hidden variables to next page


Sorry if it's not the right place to post this
question. Excuse me.

I've some hidden variables in a web page. I want to
send them to next page without using submit button. I
don't know how to do it. More over i don't know how to
access those variables in the next page. Is there any
option available to do this html or tomcat or apache?

Thanks!!

--- Matt [EMAIL PROTECTED] wrote:

 Ah-ha, somehow I changed a line in the
 uriworkermap.properties file from
 this (some pointless experiment out of past
 frustrated delirium):
 /jsp-examples/*=ajp13w
 ...to this:
 /jsp-examples/*.jsp
 ...so changing it back (which is how it was
 out-of-the-box after
 jk_1.2.8.exe was run) to:
 /jsp-examples/*=ajp13w
 ...fixes it, and I can now access both directories
 fine (inside and
 outside of $CATALINA_HOME/webapps)!!!  YAY!!!

 I now get the expected results for:
 http://localhost/jsp-examples/ (the webapps/
 examples page)
 ...and for:
 http://localhost:8080/jsp-examples/ (the webapps/
 examples page)
 ...and for:
 http://localhost:8080 (Tomcat home page)
 ...and for:
 http://localhost (IIS home page)
 ...and for:
 http://localhost/JSP/MYwebapps/MYjsp-examples
 (the C:\Inetpub\wwwroot\JSP\MYwebapps\ examples
 page)
 ...and the .JSP pages work as expected in both
 places!
 Now I can add docabses to my heart's content -
 *relieved sigh*

 SO...the easy answer is a simple, single CONTEXT
 addition, but making sure
 to overlap the end of the docbase path with the
 path:
 Context path=/JSP
 docbase=C:/Inetpub/wwwroot/JSP debug=0
   reloadable=true crossContext=false /

 As an aside, I got rid of the ...path=
 docbase=... CONTEXT, so I
 have no idea why you're using that line in your
 server.xml file, Wendy?

 THANKS, Wendy!!!
 -Matt


 On Tue, 22 Feb 2005, Matt wrote:

  OK, we've at least gotten to the point where I can
 now run the examples
  from my own directory outside of
 $CATALINA_HOME/webapps, and by ONLY
  editing server.xml and uriworkermap.properties
 slightly, and NOTHING
  ELSE, which is not only nice, but also what I
 expected all along!
  (THANK YOU!THANK YOU!THANK YOU!)*
 
  *HOWEVER, now that I made the changes you
 recommended, the webapps area
  now is NOT FOUND when using plain URL's.  I get a
 (Tomcat-based) directory
  listing when using the following URL (instead of
 the Tomcat welcome page):
  http://localhost:8080
  ...which includes my outside folder and then all
 of the folders in
  $CATALINA_HOME/webapps, AND if I go deeper into
 any of these listed
  directories with the explicit port :8080 set it
 works, BUT if I try the
  following URL:
  http://localhost/jsp-examples
  ...then I get a 404 page not found error (not a
 Tomcat page - standard
  IE stuff).
  With or without the :8080 port in my URL, my
 outside directory can be
  found just fine:
 

http://localhost/JSP/MYwebapps/MYjsp-examples/index.html
 (and so on)
  ...so I have the inverse problem.
  Good grief!  Can't we have both?
 
  Here's the beginning of my HOST tag through the
 CONTEXT (everything else
  in server.xml is out-of-the-box, unless
 jk_1.2.8.exe does anything here as
  well):
Host name=localhost appBase=webapps
 unpackWARs=true autoDeploy=true
 xmlValidation=false
 xmlNamespaceAware=false
 
 Context path= docBase= debug=0
 reloadable=true
  crossContext=true /
 
 Context path=/JSP
 docbase=C:/Inetpub/wwwroot/JSP debug=0
  reloadable=true crossContext=false /
 
  ...the trick seems to be in the overlapping ending
 directory in path and
  docbase, which is kinda annoying since EVERY
 example I found showed path
  set to  or / - hence my frustration up to this
 point.  I have tried
  removing the first CONTEXT (seems weird with path
 and docbase both set to
  ).  When I remove that, I get the same results -
 so what is this CONTEXT
  for, if anything?
 
  My uriworkermap.properties file is as follows:
  # uriworker.properties -
  #
  # This file provides sample mappings for example
  # ajp13w worker defined in
 workermap.properties.minimal
 
  /servlets-examples/*=ajp13w
  /jsp-examples/*.jsp=ajp13w
  /*.jsp=ajp13w
  /JSP/*.jsp=ajp13w
 
  # Now filter out all .jpeg files inside that
 context
  # For no mapping the url has to start with
 exclamation (!)
 
  !/servlets-examples/*.jpeg=ajp13w
 
  So, I'm still trying to get BOTH to work right,
 but making some progress!
  -Matt
 
 
  On Tue, 22 Feb 2005 

RE: How to send hidden variables to next page

2005-02-22 Thread Shakeel Ahmad
Wel this might help...

// You write following two lines in first JSP page.
String name = Java;// This might be your hidden field.
session.setAttribute(HiddenName, name);


//Then you get the name on next page as follows.

String userName = (String)session.getAttribute(HiddenName);


The name attribute will be available throught the session life, unless we
remove it explicitly or restart Tomcat.
We can use it on any page once it is placed properly.

Best Regards,
S H A K E E L   A H M A D
http://members.fortunecity.com/javaclub/shakeel.htm
Voice: 00923002723316
Senior Software Engineer.
NorthStar Technologies. www.globalnorthstar.com

EE(Computer Engineering), UET Lahore, Pakistan.
SCJP,SCWCD  SCBCD Sun Microsystems, Inc.
Brain Bench Certified Java Programmer.

-Original Message-
From: U K Laxmi [mailto:[EMAIL PROTECTED]
Sent: 23 February, 2005 10:37 AM
To: Tomcat Users List
Subject: RE: How to send hidden variables to next page


Yes. I'm using JSP. Can you pls tell me the syntax or
guidelines as how to do it.

Thank you.

--- Shakeel Ahmad [EMAIL PROTECTED] wrote:

 If you are developing a JSP/Servlet then you can do
 this by keeping those
 variables in session.

 Best Regards,
 S H A K E E L   A H M A D
 http://members.fortunecity.com/javaclub/shakeel.htm
 Voice: 00923002723316
 Senior Software Engineer.
 NorthStar Technologies. www.globalnorthstar.com

 EE(Computer Engineering), UET Lahore, Pakistan.
 SCJP,SCWCD  SCBCD Sun Microsystems, Inc.
 Brain Bench Certified Java Programmer.

 -Original Message-
 From: U K Laxmi [mailto:[EMAIL PROTECTED]
 Sent: 23 February, 2005 10:31 AM
 To: Tomcat Users List
 Subject: How to send hidden variables to next page


 Sorry if it's not the right place to post this
 question. Excuse me.

 I've some hidden variables in a web page. I want to
 send them to next page without using submit button.
 I
 don't know how to do it. More over i don't know how
 to
 access those variables in the next page. Is there
 any
 option available to do this html or tomcat or
 apache?

 Thanks!!

 --- Matt [EMAIL PROTECTED] wrote:

  Ah-ha, somehow I changed a line in the
  uriworkermap.properties file from
  this (some pointless experiment out of past
  frustrated delirium):
  /jsp-examples/*=ajp13w
  ...to this:
  /jsp-examples/*.jsp
  ...so changing it back (which is how it was
  out-of-the-box after
  jk_1.2.8.exe was run) to:
  /jsp-examples/*=ajp13w
  ...fixes it, and I can now access both directories
  fine (inside and
  outside of $CATALINA_HOME/webapps)!!!  YAY!!!
 
  I now get the expected results for:
  http://localhost/jsp-examples/ (the webapps/
  examples page)
  ...and for:
  http://localhost:8080/jsp-examples/ (the webapps/
  examples page)
  ...and for:
  http://localhost:8080 (Tomcat home page)
  ...and for:
  http://localhost (IIS home page)
  ...and for:
  http://localhost/JSP/MYwebapps/MYjsp-examples
  (the C:\Inetpub\wwwroot\JSP\MYwebapps\ examples
  page)
  ...and the .JSP pages work as expected in both
  places!
  Now I can add docabses to my heart's content -
  *relieved sigh*
 
  SO...the easy answer is a simple, single CONTEXT
  addition, but making sure
  to overlap the end of the docbase path with the
  path:
  Context path=/JSP
  docbase=C:/Inetpub/wwwroot/JSP debug=0
  reloadable=true crossContext=false /
 
  As an aside, I got rid of the ...path=
  docbase=... CONTEXT, so I
  have no idea why you're using that line in your
  server.xml file, Wendy?
 
  THANKS, Wendy!!!
  -Matt
 
 
  On Tue, 22 Feb 2005, Matt wrote:
 
   OK, we've at least gotten to the point where I
 can
  now run the examples
   from my own directory outside of
  $CATALINA_HOME/webapps, and by ONLY
   editing server.xml and uriworkermap.properties
  slightly, and NOTHING
   ELSE, which is not only nice, but also what I
  expected all along!
   (THANK YOU!THANK YOU!THANK YOU!)*
  
   *HOWEVER, now that I made the changes you
  recommended, the webapps area
   now is NOT FOUND when using plain URL's.  I get
 a
  (Tomcat-based) directory
   listing when using the following URL (instead of
  the Tomcat welcome page):
   http://localhost:8080
   ...which includes my outside folder and then all
  of the folders in
   $CATALINA_HOME/webapps, AND if I go deeper into
  any of these listed
   directories with the explicit port :8080 set it
  works, BUT if I try the
   following URL:
   http://localhost/jsp-examples
   ...then I get a 404 page not found error (not a
  Tomcat page - standard
   IE stuff).
   With or without the :8080 port in my URL, my
  outside directory can be
   found just fine:
  
 

http://localhost/JSP/MYwebapps/MYjsp-examples/index.html
  (and so on)
   ...so I have the inverse problem.
   Good grief!  Can't we have both?
  
   Here's the beginning of my HOST tag through the
  CONTEXT (everything else
   in server.xml is out-of-the-box, unless
  jk_1.2.8.exe does anything here as
   well):
 Host name=localhost appBase=webapps
  unpackWARs=true

RE: How to send hidden variables to next page

2005-02-22 Thread Shakeel Ahmad
Then you must use the window.returnValue of Java Script.


Best Regards,
S H A K E E L   A H M A D
http://members.fortunecity.com/javaclub/shakeel.htm
Voice: 00923002723316
Senior Software Engineer.
NorthStar Technologies. www.globalnorthstar.com
 
EE(Computer Engineering), UET Lahore, Pakistan.
SCJP,SCWCD  SCBCD Sun Microsystems, Inc.
Brain Bench Certified Java Programmer.

-Original Message-
From: U K Laxmi [mailto:[EMAIL PROTECTED]
Sent: 23 February, 2005 12:30 PM
To: Tomcat Users List
Subject: RE: How to send hidden variables to next page 


Thanks for the answers Shakeel.

My problem is, i've a page that doesn't have submit
button. I need to send the hidden variables in that
HTML page to next HTML page. Here the hidden value is
set based on the type of option selected from 'select'
drpo down box in HTML. To put it in session, i need to
identify the selected option and assign it to java
varialbe. I don't think it's possible to assign a
javascript variable to java variable. Pls help to
solve this problem.


--- Shakeel Ahmad [EMAIL PROTECTED] wrote:

 Wel this might help...
 
 // You write following two lines in first JSP page.
 String name = Java;// This might be your hidden
 field.
 session.setAttribute(HiddenName, name);
 
 
 //Then you get the name on next page as follows.
 
 String userName =
 (String)session.getAttribute(HiddenName);
 
 
 The name attribute will be available throught the
 session life, unless we
 remove it explicitly or restart Tomcat.
 We can use it on any page once it is placed
 properly.
 
 Best Regards,
 S H A K E E L   A H M A D
 http://members.fortunecity.com/javaclub/shakeel.htm
 Voice: 00923002723316
 Senior Software Engineer.
 NorthStar Technologies. www.globalnorthstar.com
 
 EE(Computer Engineering), UET Lahore, Pakistan.
 SCJP,SCWCD  SCBCD Sun Microsystems, Inc.
 Brain Bench Certified Java Programmer.
 
 -Original Message-
 From: U K Laxmi [mailto:[EMAIL PROTECTED]
 Sent: 23 February, 2005 10:37 AM
 To: Tomcat Users List
 Subject: RE: How to send hidden variables to next
 page
 
 
 Yes. I'm using JSP. Can you pls tell me the syntax
 or
 guidelines as how to do it.
 
 Thank you.
 
 --- Shakeel Ahmad [EMAIL PROTECTED]
 wrote:
 
  If you are developing a JSP/Servlet then you can
 do
  this by keeping those
  variables in session.
 
  Best Regards,
  S H A K E E L   A H M A D
 
 http://members.fortunecity.com/javaclub/shakeel.htm
  Voice: 00923002723316
  Senior Software Engineer.
  NorthStar Technologies. www.globalnorthstar.com
 
  EE(Computer Engineering), UET Lahore, Pakistan.
  SCJP,SCWCD  SCBCD Sun Microsystems, Inc.
  Brain Bench Certified Java Programmer.
 
  -Original Message-
  From: U K Laxmi [mailto:[EMAIL PROTECTED]
  Sent: 23 February, 2005 10:31 AM
  To: Tomcat Users List
  Subject: How to send hidden variables to next page
 
 
  Sorry if it's not the right place to post this
  question. Excuse me.
 
  I've some hidden variables in a web page. I want
 to
  send them to next page without using submit
 button.
  I
  don't know how to do it. More over i don't know
 how
  to
  access those variables in the next page. Is there
  any
  option available to do this html or tomcat or
  apache?
 
  Thanks!!
 
  --- Matt [EMAIL PROTECTED] wrote:
 
   Ah-ha, somehow I changed a line in the
   uriworkermap.properties file from
   this (some pointless experiment out of past
   frustrated delirium):
   /jsp-examples/*=ajp13w
   ...to this:
   /jsp-examples/*.jsp
   ...so changing it back (which is how it was
   out-of-the-box after
   jk_1.2.8.exe was run) to:
   /jsp-examples/*=ajp13w
   ...fixes it, and I can now access both
 directories
   fine (inside and
   outside of $CATALINA_HOME/webapps)!!!  YAY!!!
  
   I now get the expected results for:
   http://localhost/jsp-examples/ (the webapps/
   examples page)
   ...and for:
   http://localhost:8080/jsp-examples/ (the
 webapps/
   examples page)
   ...and for:
   http://localhost:8080 (Tomcat home page)
   ...and for:
   http://localhost (IIS home page)
   ...and for:
   http://localhost/JSP/MYwebapps/MYjsp-examples
   (the C:\Inetpub\wwwroot\JSP\MYwebapps\ examples
   page)
   ...and the .JSP pages work as expected in both
   places!
   Now I can add docabses to my heart's content -
   *relieved sigh*
  
   SO...the easy answer is a simple, single CONTEXT
   addition, but making sure
   to overlap the end of the docbase path with
 the
   path:
   Context path=/JSP
   docbase=C:/Inetpub/wwwroot/JSP debug=0
 reloadable=true crossContext=false /
  
   As an aside, I got rid of the ...path=
   docbase=... CONTEXT, so I
   have no idea why you're using that line in your
   server.xml file, Wendy?
  
   THANKS, Wendy!!!
   -Matt
  
  
   On Tue, 22 Feb 2005, Matt wrote:
  
OK, we've at least gotten to the point where I
  can
   now run the examples
from my own directory outside of
   $CATALINA_HOME/webapps, and by ONLY
editing server.xml and uriworkermap.properties
   slightly

RE: Tomcat 5.5.7 cannot connect to mysql datasource - what changed?

2005-02-21 Thread Shakeel Ahmad
Try to hard code user name as the error shows '' as a user name. Also you
can write a simple stand alone java program other than your web application
to figure out exact problem. More things more problems. Less things quick
findings, might help. By the way is your new MySQL communicating to you via
any front end tool like SQL Yog or MySQL Front etc.

Best Regards,
S H A K E E L   A H M A D
http://members.fortunecity.com/javaclub/shakeel.htm
Voice: 00923002723316
Senior Software Engineer.
NorthStar Technologies. www.globalnorthstar.com

EE(Computer Engineering), UET Lahore, Pakistan.
SCJP,SCWCD  SCBCD Sun Microsystems, Inc.
Brain Bench Certified Java Programmer.


-Original Message-
From: Richard Mixon (qwest) [mailto:[EMAIL PROTECTED]
Sent: 21 February, 2005 6:16 PM
To: Tomcat Users List
Subject: RE: Tomcat 5.5.7 cannot connect to mysql datasource - what
changed?


Shakeel,
Thanks for the suggestion but we were already using DBCP 1.2.1. I
downloaded it and tried it again, but get the same error. Any other
ideas why the username would not be passed correctly when creating the
datasource/pool?

-Original Message-
From: Shakeel Ahmad [mailto:[EMAIL PROTECTED]
Sent: Sunday, February 20, 2005 10:43 PM
To: Tomcat Users List
Subject: RE: Tomcat 5.5.7 cannot connect to mysql datasource - what
changed?


Wel we did the same to upgrade our product all went wel except for the
connector. Then after some research I found that
mysql-connector-java-3.1.6-bin.jar was the missing part. But your
trace
also shows that the PoolableConnectionFactory is not being created may
be
try commons-dbcp-1.2.1.jar if not already upgraded.


Best Regards,
S H A K E E L   A H M A D
http://members.fortunecity.com/javaclub/shakeel.htm
Voice: 00923002723316
Senior Software Engineer.
NorthStar Technologies. www.globalnorthstar.com

EE(Computer Engineering), UET Lahore, Pakistan.
SCJP,SCWCD  SCBCD Sun Microsystems, Inc.
Brain Bench Certified Java Programmer.
-Original Message-
From: Richard Mixon (qwest) [mailto:[EMAIL PROTECTED]
Sent: 21 February, 2005 10:24 AM
To: Tomcat Users List
Subject: RE: Tomcat 5.5.7 cannot connect to mysql datasource - what
changed?


Actually I tried MySQL Connector/J 3.0.15, and then updated to the
latest 3.1.7. Each was placed in in $CATALINA_HOME/common/lib and
tried - same result/error message.

-Original Message-
From: Shakeel Ahmad [mailto:[EMAIL PROTECTED]
Sent: Sunday, February 20, 2005 10:22 PM
To: Tomcat Users List
Subject: RE: Tomcat 5.5.7 cannot connect to mysql datasource - what
changed?


Have you changed the corresponding mysql connector jar file ?

-Original Message-
From: Richard Mixon (qwest) [mailto:[EMAIL PROTECTED]
Sent: 21 February, 2005 7:53 AM
To: tomcat-user@jakarta.apache.org
Subject: Tomcat 5.5.7 cannot connect to mysql datasource - what changed?


We have been using Sun Java 1.4.2, Tomcat 5.0.19, MySQL 4.1.7, MySQL
Connector/J 3.0.15 with Hibernate 2.1.7c with no problems. This is on
both Windows XP Pro SP2 (development) and SuSE Linux SLES9 (test and
production).

In order to get failover to work the way we wanted we upgraded to Tomcat
5.5.7 and Sun Java 1.5. The main change in our application was the new
format for data soruces in the application context. No problem on
Windows XP. We've tried to install on one of our Linux servers and are
having no end of grief getting a DB connection to properly happen.

Any help or ideas would be much appreciated. I've included the
application context and the catalina log error messages below.

Thanks in advance - Richard


***- APPLICATION CONTEXT:
Context path=/stars docBase=stars debug=99 reloadable=true
privileged=true antiResourceLocking=false antiJARLocking=true

Logger className=org.apache.catalina.logger.FileLogger
prefix=stars. suffix=.log timestamp=true/
Realm className=org.apache.catalina.realm.JDBCRealm debug=99
  driverName=com.mysql.jdbc.Driver
   connectionURL=jdbc:mysql://192.168.11.3:3306/ltojsw?autoReconnec
t=trueamp;autoCommit=true
  connectionName=ltojsw connectionPassword=586579
   userTable=PoAssociate userNameCol=userid
userCredCol=password
   userRoleTable=PoUserRole roleNameCol=roleName /
Resourcename=jdbc/stars
 type=javax.sql.DataSource
 auth=Container
maxActive=100
  maxIdle=10
  maxWait=1
defaultAutoCommit=true
 userName=ltojsw
 password=586579
  driverClassName=com.mysql.jdbc.Driver
  url=jdbc:mysql://192.168.11.3:3306/ltojsw?aut
oReconnect=trueamp;autoCommit=true
  removeAbandoned=true
removeAbandonedTimeout=60
  logAbandoned=true
/
/Context


***- CATALINA ERROR MESSAGES:

SNIP
19:37:27,642  INFO [http-8080-Processor25]
DatasourceConnectionProvider:51 - Using datasource:
java:comp

RE: Tomcat 5.5.7 cannot connect to mysql datasource - what changed?

2005-02-20 Thread Shakeel Ahmad
Have you changed the corresponding mysql connector jar file ?


Best Regards, 
S H A K E E L   A H M A D 
http://members.fortunecity.com/javaclub/shakeel.htm 
Voice: 00923002723316
Senior Software Engineer.
NorthStar Technologies. www.globalnorthstar.com

EE(Computer Engineering), UET Lahore, Pakistan.
SCJP,SCWCD  SCBCD Sun Microsystems, Inc.
Brain Bench Certified Java Programmer.

-Original Message-
From: Richard Mixon (qwest) [mailto:[EMAIL PROTECTED]
Sent: 21 February, 2005 7:53 AM
To: tomcat-user@jakarta.apache.org
Subject: Tomcat 5.5.7 cannot connect to mysql datasource - what changed?


We have been using Sun Java 1.4.2, Tomcat 5.0.19, MySQL 4.1.7, MySQL
Connector/J 3.0.15 with Hibernate 2.1.7c with no problems. This is on
both Windows XP Pro SP2 (development) and SuSE Linux SLES9 (test and
production).

In order to get failover to work the way we wanted we upgraded to Tomcat
5.5.7 and Sun Java 1.5. The main change in our application was the new
format for data soruces in the application context. No problem on
Windows XP. We've tried to install on one of our Linux servers and are
having no end of grief getting a DB connection to properly happen.

Any help or ideas would be much appreciated. I've included the
application context and the catalina log error messages below.

Thanks in advance - Richard


***- APPLICATION CONTEXT:
Context path=/stars docBase=stars debug=99 reloadable=true
privileged=true antiResourceLocking=false antiJARLocking=true

Logger className=org.apache.catalina.logger.FileLogger
prefix=stars. suffix=.log timestamp=true/
Realm className=org.apache.catalina.realm.JDBCRealm debug=99
  driverName=com.mysql.jdbc.Driver
   connectionURL=jdbc:mysql://192.168.11.3:3306/ltojsw?autoReconnec
t=trueamp;autoCommit=true
  connectionName=ltojsw connectionPassword=586579
   userTable=PoAssociate userNameCol=userid
userCredCol=password
   userRoleTable=PoUserRole roleNameCol=roleName /
Resourcename=jdbc/stars
 type=javax.sql.DataSource
 auth=Container
maxActive=100
  maxIdle=10
  maxWait=1
defaultAutoCommit=true
 userName=ltojsw
 password=586579
  driverClassName=com.mysql.jdbc.Driver
  url=jdbc:mysql://192.168.11.3:3306/ltojsw?aut
oReconnect=trueamp;autoCommit=true
  removeAbandoned=true
removeAbandonedTimeout=60
  logAbandoned=true
/
/Context


***- CATALINA ERROR MESSAGES:

SNIP
19:37:27,642  INFO [http-8080-Processor25]
DatasourceConnectionProvider:51 - Using datasource:
java:comp/env/jdbc/stars
19:37:27,648  INFO [http-8080-Processor25]
TransactionManagerLookupFactory:33 - No TransactionManagerLookup
configured (in JTA environment, use of process level read-write cache is
not recommended)
AbandonedObjectPool is used
([EMAIL PROTECTED])
   LogAbandoned: true
   RemoveAbandoned: true
   RemoveAbandonedTimeout: 60
19:37:41,696  WARN [http-8080-Processor25] SettingsFactory:107 - Could
not obtain connection metadata
org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot create
PoolableConnectionFactory (Server connection failure during transaction.
Due to underlying exception: 'java.sql.SQLException: Access denied for
user ''@'kingfishS11' (using password: YES)'.

** BEGIN NESTED EXCEPTION **

java.sql.SQLException
MESSAGE: Access denied for user ''@'kingfishS11' (using password: YES)

STACKTRACE:

java.sql.SQLException: Access denied for user ''@'kingfishS11' (using
password: YES)
SNIP


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Tomcat 5.5.7 cannot connect to mysql datasource - what changed?

2005-02-20 Thread Shakeel Ahmad
Wel we did the same to upgrade our product all went wel except for the
connector. Then after some research I found that
mysql-connector-java-3.1.6-bin.jar was the missing part. But your trace
also shows that the PoolableConnectionFactory is not being created may be
try commons-dbcp-1.2.1.jar if not already upgraded.


Best Regards,
S H A K E E L   A H M A D
http://members.fortunecity.com/javaclub/shakeel.htm
Voice: 00923002723316
Senior Software Engineer.
NorthStar Technologies. www.globalnorthstar.com

EE(Computer Engineering), UET Lahore, Pakistan.
SCJP,SCWCD  SCBCD Sun Microsystems, Inc.
Brain Bench Certified Java Programmer.
-Original Message-
From: Richard Mixon (qwest) [mailto:[EMAIL PROTECTED]
Sent: 21 February, 2005 10:24 AM
To: Tomcat Users List
Subject: RE: Tomcat 5.5.7 cannot connect to mysql datasource - what
changed?


Actually I tried MySQL Connector/J 3.0.15, and then updated to the
latest 3.1.7. Each was placed in in $CATALINA_HOME/common/lib and
tried - same result/error message.

-Original Message-
From: Shakeel Ahmad [mailto:[EMAIL PROTECTED]
Sent: Sunday, February 20, 2005 10:22 PM
To: Tomcat Users List
Subject: RE: Tomcat 5.5.7 cannot connect to mysql datasource - what
changed?


Have you changed the corresponding mysql connector jar file ?

-Original Message-
From: Richard Mixon (qwest) [mailto:[EMAIL PROTECTED]
Sent: 21 February, 2005 7:53 AM
To: tomcat-user@jakarta.apache.org
Subject: Tomcat 5.5.7 cannot connect to mysql datasource - what changed?


We have been using Sun Java 1.4.2, Tomcat 5.0.19, MySQL 4.1.7, MySQL
Connector/J 3.0.15 with Hibernate 2.1.7c with no problems. This is on
both Windows XP Pro SP2 (development) and SuSE Linux SLES9 (test and
production).

In order to get failover to work the way we wanted we upgraded to Tomcat
5.5.7 and Sun Java 1.5. The main change in our application was the new
format for data soruces in the application context. No problem on
Windows XP. We've tried to install on one of our Linux servers and are
having no end of grief getting a DB connection to properly happen.

Any help or ideas would be much appreciated. I've included the
application context and the catalina log error messages below.

Thanks in advance - Richard


***- APPLICATION CONTEXT:
Context path=/stars docBase=stars debug=99 reloadable=true
privileged=true antiResourceLocking=false antiJARLocking=true

Logger className=org.apache.catalina.logger.FileLogger
prefix=stars. suffix=.log timestamp=true/
Realm className=org.apache.catalina.realm.JDBCRealm debug=99
  driverName=com.mysql.jdbc.Driver
   connectionURL=jdbc:mysql://192.168.11.3:3306/ltojsw?autoReconnec
t=trueamp;autoCommit=true
  connectionName=ltojsw connectionPassword=586579
   userTable=PoAssociate userNameCol=userid
userCredCol=password
   userRoleTable=PoUserRole roleNameCol=roleName /
Resourcename=jdbc/stars
 type=javax.sql.DataSource
 auth=Container
maxActive=100
  maxIdle=10
  maxWait=1
defaultAutoCommit=true
 userName=ltojsw
 password=586579
  driverClassName=com.mysql.jdbc.Driver
  url=jdbc:mysql://192.168.11.3:3306/ltojsw?aut
oReconnect=trueamp;autoCommit=true
  removeAbandoned=true
removeAbandonedTimeout=60
  logAbandoned=true
/
/Context


***- CATALINA ERROR MESSAGES:

SNIP
19:37:27,642  INFO [http-8080-Processor25]
DatasourceConnectionProvider:51 - Using datasource:
java:comp/env/jdbc/stars
19:37:27,648  INFO [http-8080-Processor25]
TransactionManagerLookupFactory:33 - No TransactionManagerLookup
configured (in JTA environment, use of process level read-write cache is
not recommended)
AbandonedObjectPool is used
([EMAIL PROTECTED])
   LogAbandoned: true
   RemoveAbandoned: true
   RemoveAbandonedTimeout: 60
19:37:41,696  WARN [http-8080-Processor25] SettingsFactory:107 - Could
not obtain connection metadata
org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot create
PoolableConnectionFactory (Server connection failure during transaction.
Due to underlying exception: 'java.sql.SQLException: Access denied for
user ''@'kingfishS11' (using password: YES)'.

** BEGIN NESTED EXCEPTION **

java.sql.SQLException
MESSAGE: Access denied for user ''@'kingfishS11' (using password: YES)

STACKTRACE:

java.sql.SQLException: Access denied for user ''@'kingfishS11' (using
password: YES)
SNIP


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED

RE: JDBC connection errors

2005-02-20 Thread Shakeel Ahmad
You are not giving the correct parameters for the connection, see '' and
null, correct them ...

Best Regards,
S H A K E E L   A H M A D
http://members.fortunecity.com/javaclub/shakeel.htm
Voice: 00923002723316
Senior Software Engineer.
NorthStar Technologies. www.globalnorthstar.com

EE(Computer Engineering), UET Lahore, Pakistan.
SCJP,SCWCD  SCBCD Sun Microsystems, Inc.
Brain Bench Certified Java Programmer.

-Original Message-
From: deepak suldhal [mailto:[EMAIL PROTECTED]
Sent: 21 February, 2005 11:13 AM
To: tomcat users
Subject: JDBC connection errors


Hi
I am getting the following errors while trying to make a JDBC connection.
Please help.



description The server encountered an internal error () that prevented it
from fulfilling this request.
exception
javax.servlet.ServletException: Unable to get connection, DataSource
invalid: org.apache.commons.dbcp.SQLNestedException: Cannot create JDBC
driver of class '' for connect URL 'null'

org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextI
mpl.java:825)

org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImp
l.java:758)
org.apache.jsp.test_jsp._jspService(test_jsp.java:82)

org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:3
24)

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

org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

root cause
javax.servlet.jsp.JspException: Unable to get connection, DataSource
invalid: org.apache.commons.dbcp.SQLNestedException: Cannot create JDBC
driver of class '' for connect URL 'null'

org.apache.taglibs.standard.tag.common.sql.QueryTagSupport.getConnection(Unk
nown Source)

org.apache.taglibs.standard.tag.common.sql.QueryTagSupport.doStartTag(Unknow
n Source)

org.apache.jsp.test_jsp._jspx_meth_sql_query_0(test_jsp.java:101)
org.apache.jsp.test_jsp._jspService(test_jsp.java:58)

org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:3
24)

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

org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802


__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around
http://mail.yahoo.com



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



JAVA_OPTS , C:\Tomcat 5.5 ?

2005-02-16 Thread Shakeel Ahmad
Hi,

JAVA_OPTS used to work in older Tomcat versions but the JVM Heap settings
are not picked by Tomcat 5.5 from JAVA_OPTS.
Please guide if anyone knows.

Thanks in advance.



Best Regards,
S H A K E E L   A H M A D
http://members.fortunecity.com/javaclub/shakeel.htm
Voice: 00923002723316
Senior Software Engineer.
NorthStar Technologies. www.globalnorthstar.com

EE(Computer Engineering), UET Lahore, Pakistan.
SCJP,SCWCD  SCBCD Sun Microsystems, Inc.
Brain Bench Certified Java Programmer.



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: JAVA_OPTS , C:\Tomcat 5.5 ?

2005-02-16 Thread Shakeel Ahmad
Here is the detail.
I was successfully running Tomcat 4.X using JAVA_OPTS=-Xmx512m -Xms512m and
my web application was running with this JVM Heap settings correctly,
without any OutOfMemoryError. I recently installed Tomcat 5.5 and expected
the same JVM Heap settings but they never happen. Now I want to set my own
values of JVM Heap in Tomcat 5.5.
Or simply my question is that how we can set JVM Heap settings in Tomcat
5.5.

Thanks.

Best Regards,
S H A K E E L   A H M A D
http://members.fortunecity.com/javaclub/shakeel.htm
Voice: 00923002723316
Senior Software Engineer.
NorthStar Technologies. www.globalnorthstar.com

EE(Computer Engineering), UET Lahore, Pakistan.
SCJP,SCWCD  SCBCD Sun Microsystems, Inc.
Brain Bench Certified Java Programmer.

-Original Message-
From: Edmon Begoli [mailto:[EMAIL PROTECTED]
Sent: 16 February, 2005 9:54 PM
To: Tomcat Users List
Subject: Re: JAVA_OPTS , C:\Tomcat 5.5 ?


Give few more details, so that I can try your test case.

Thank you,
Edmon

Shakeel Ahmad wrote:

Hi,

JAVA_OPTS used to work in older Tomcat versions but the JVM Heap settings
are not picked by Tomcat 5.5 from JAVA_OPTS.
Please guide if anyone knows.

Thanks in advance.



Best Regards,
S H A K E E L   A H M A D
http://members.fortunecity.com/javaclub/shakeel.htm
Voice: 00923002723316
Senior Software Engineer.
NorthStar Technologies. www.globalnorthstar.com

EE(Computer Engineering), UET Lahore, Pakistan.
SCJP,SCWCD  SCBCD Sun Microsystems, Inc.
Brain Bench Certified Java Programmer.



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



URL encoding in JSP?

2004-12-06 Thread Shakeel Ahmad
how to send  characters in the URLs in JSP code.
like

vendor.jsp?name=IntelMentorSamsung

now in the JSP when I call

String name = request.getParameter(name);

// The name must be IntelMentorSamsung
// instead of Intel only.

Best Regards.
Shakeel Ahmad.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-Xverify:none ?

2004-09-02 Thread Shakeel Ahmad

What are are the merits or demerits of using -Xverify:none with Tomcat.

-Original Message-
From: alan sparago [mailto:[EMAIL PROTECTED]
Sent: Wednesday, August 25, 2004 12:21 AM
To: 'Tomcat Users List'
Subject: SocketException: Connection reset - Tomcat 5.0.27


When using Tomcat 5.0.27 the following error shows up in the catalina.log
file;
SEVERE: Remote Host 12.159.66.150 SocketException: Connection reset
org.apache.tomcat.util.net.TcpWorkerThread runIt

The ip address 12.159.66.150 is a load balancer that front-ends Tomcat and
checks periodically to make sure tomcat is running. It logs this error every
time it checks. When I switch to Tomcat 5.0.16 under the same exact
conditions this error does not show up in the log file.

Questions;
Is there a way to prevent this from being logged?
Why does this occur under Tomcat 5.0.27 and not Tomcat 5.0.16?
If Tomcat cant be set up to not log this error, is there a way to log in as
INFO instead?

alan



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



How to Disable Tomcat Logs

2004-09-01 Thread Shakeel Ahmad
How to disable Tomcat's logs, including stderr and stdout ?

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Tomcat Server Status

2004-08-31 Thread Shakeel Ahmad
How to set CATALINA_PID for this purpose, I mean can you give some details
and correct settings.

-Original Message-
From: Tim Funk [mailto:[EMAIL PROTECTED]
Sent: Tuesday, August 31, 2004 4:23 PM
To: Tomcat Users List
Subject: Re: Tomcat Server Status


We actually wrote a JSP to do this. Since we utilize the CATALINA_PID
environment variable, on startup - a file with tomcat's pid is written.

Then we have a JSP which queries the last modify time of this file.

-Tim

Kashif Siddiqui wrote:

 Thank you very much for guidance,

 but this page don't show StartTime/UpTime of Tomcat
 Server...

 http://localhost:/manager/html

 Is there any way to get it.


 --- Ronald Klop [EMAIL PROTECTED] wrote:


Look at the http://your-hostname/manager/html
webapp.

See also:


 http://jakarta.apache.org/tomcat/tomcat-5.0-doc/manager-howto.html

Ronald.

On Tue Aug 31 12:54:51 CEST 2004 Kashif Siddiqui
[EMAIL PROTECTED] wrote:

Hi all,

I am sucessfully running Tomcat server, now I want

to

know that is there any way to get Tomcat server's

1. Server's Status
2. Start Time
3. Server uptime
4. Current requests on server

Thanks in advance...



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



java source code

2004-08-30 Thread Shakeel Ahmad
I find no implementation for jvm.dll in j2sdk1.4.2/src.zip provided as a
source code zip of java.

Where must I ask for exact source code. specially the .c files which operate
on AggressiveHeap or a function who displays following message.

You need at least 256mb of memory to use -XX:+AggressiveHeap

I dont need the explaination of this line only I need is the source code
which prints this message on console.

Regards.
Shakeel Ahmad


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Problem in Tomcat

2004-08-26 Thread Shakeel Ahmad
Actually this is not an error, when you press Ctrl+Break key on Tomcat
Console it dumps all the threads in this fashion. By the way this crashing
your web app

-Original Message-
From: Jitesh Sinha [mailto:[EMAIL PROTECTED]
Sent: Thursday, August 26, 2004 4:53 PM
To: Tomcat Users List
Subject: Problem in Tomcat


Hello All,

We get the following error every now and then.Any ideas why it will occur?


RequestHandler daemon prio=5 tid=0x000e5d18 nid=0xd9d runnable [0..0]

Thread-13 prio=5 tid=0x006cf248 nid=0xd9c waiting on condition
[0..e9afbba8]

SocketListener daemon prio=5 tid=0x00753a28 nid=0x29 runnable
[e9b7f000..e9b7fc30]
at java.net.PlainSocketImpl.socketAccept(Native Method)
at java.net.PlainSocketImpl.accept(PlainSocketImpl.java:353)
- locked 0xef10c308 (a java.net.PlainSocketImpl)
at java.net.ServerSocket.implAccept(ServerSocket.java:448)
at java.net.ServerSocket.accept(ServerSocket.java:419)
at com.inprise.vbroker.IIOP.Listener.accept(Listener.java:160)
at com.inprise.vbroker.orb.SocketSCM$ListenerThread.run(SocketSCM.java:69)
at java.lang.Thread.run(Thread.java:534)

VBJ ThreadPool Worker daemon prio=5 tid=0x00758228 nid=0x28 in
Object.wait() [e9c7f000..e9c7fc30]
at java.lang.Object.wait(Native Method)
- waiting on 0xef10c478 (a com.inprise.vbroker.orb.TPDispatcherImpl)
at java.lang.Object.wait(Object.java:429)
at com.inprise.vbroker.orb.ThreadPool$PoolWorker.run(ThreadPool.java:57)
- locked 0xef10c478 (a com.inprise.vbroker.orb.TPDispatcherImpl)

VBJ ThreadPool Worker daemon prio=5 tid=0x00757740 nid=0x27 in
Object.wait() [e9d7f000..e9d7fc30]
at java.lang.Object.wait(Native Method)
- waiting on 0xef10c478 (a com.inprise.vbroker.orb.TPDispatcherImpl)
at java.lang.Object.wait(Object.java:429)
at com.inprise.vbroker.orb.ThreadPool$PoolWorker.run(ThreadPool.java:57)
- locked 0xef10c478 (a com.inprise.vbroker.orb.TPDispatcherImpl)

VBJ ThreadPool Worker daemon prio=5 tid=0x00756da0 nid=0x26 in
Object.wait() [e9e7f000..e9e7fc30]
at java.lang.Object.wait(Native Method)
- waiting on 0xef10c478 (a com.inprise.vbroker.orb.TPDispatcherImpl)
at java.lang.Object.wait(Object.java:429)
at com.inprise.vbroker.orb.ThreadPool$PoolWorker.run(ThreadPool.java:57)
- locked 0xef10c478 (a com.inprise.vbroker.orb.TPDispatcherImpl)

VBJ ThreadPool Worker daemon prio=5 tid=0x007596a0 nid=0x25 in
Object.wait() [e9f7f000..e9f7fc30]
at java.lang.Object.wait(Native Method)
- waiting on 0xef10c478 (a com.inprise.vbroker.orb.TPDispatcherImpl)
at java.lang.Object.wait(Object.java:429)
at com.inprise.vbroker.orb.ThreadPool$PoolWorker.run(ThreadPool.java:57)
- locked 0xef10c478 (a com.inprise.vbroker.orb.TPDispatcherImpl)

VBJ ThreadPool Worker daemon prio=5 tid=0x00756400 nid=0x24 in
Object.wait() [ea77f000..ea77fc30]
at java.lang.Object.wait(Native Method)
- waiting on 0xef10c478 (a com.inprise.vbroker.orb.TPDispatcherImpl)
at java.lang.Object.wait(Object.java:429)
at com.inprise.vbroker.orb.ThreadPool$PoolWorker.run(ThreadPool.java:57)
- locked 0xef10c478 (a com.inprise.vbroker.orb.TPDispatcherImpl)

StandardManager[/cse/prdapp] daemon prio=5 tid=0x006d8c58 nid=0x23 waiting
on condition [eac7f000..eac7fc30]
at java.lang.Thread.sleep(Native Method)
at
org.apache.catalina.session.StandardManager.threadSleep(StandardManager.java
:793)
at
org.apache.catalina.session.StandardManager.run(StandardManager.java:852)
at java.lang.Thread.run(Thread.java:534)

visiconnect Manager prio=5 tid=0x005cf5c8 nid=0x21 in Object.wait()
[ead7f000..ead7fc30]
at java.lang.Object.wait(Native Method)
- waiting on 0xeef5cbd8 (a
com.borland.enterprise.server.services.visiconnect.VisiConnectService)
at java.lang.Object.wait(Object.java:429)
at com.sun.server.Service.run(Service.java:192)
- locked 0xeef5cbd8 (a
com.borland.enterprise.server.services.visiconnect.VisiConnectService)
at
com.borland.enterprise.server.services.visiconnect.VisiConnectService.run(Vi
siConnectService.java:207)
at java.lang.Thread.run(Thread.java:534)

CacheCleaner prio=2 tid=0x005cea00 nid=0x20 waiting on condition
[eae7f000..eae7fc30]
at java.lang.Thread.sleep(Native Method)
at com.cisco.ccotomcat.CacheCleaner.run(CacheCleaner.java:86)

tomcat4 Manager prio=5 tid=0x000f0878 nid=0x1f in Object.wait()
[eb07f000..eb07fc30]
at java.lang.Object.wait(Native Method)
- waiting on 0xeef58ef0 (a
com.borland.enterprise.server.services.tomcat4.TomcatService)
at java.lang.Object.wait(Object.java:429)
at com.sun.server.Service.run(Service.java:192)
- locked 0xeef58ef0 (a
com.borland.enterprise.server.services.tomcat4.TomcatService)
at 

RE: Problem in Tomcat

2004-08-26 Thread Shakeel Ahmad
So I need exact details of the problem.

-Original Message-
From: Jitesh Sinha [mailto:[EMAIL PROTECTED]
Sent: Friday, August 27, 2004 10:23 AM
To: Tomcat Users List
Subject: RE: Problem in Tomcat


Well,this is what we are seeing in our log files...and it can be seen only
when we see an error on our web page
And yes,our web app is crashing because of the error

-Original Message-
From: Shakeel Ahmad [mailto:[EMAIL PROTECTED]
Sent: Thursday, August 26, 2004 6:26 PM
To: Tomcat Users List
Subject: RE: Problem in Tomcat


Actually this is not an error, when you press Ctrl+Break key on Tomcat
Console it dumps all the threads in this fashion. By the way this crashing
your web app

-Original Message-
From: Jitesh Sinha [mailto:[EMAIL PROTECTED]
Sent: Thursday, August 26, 2004 4:53 PM
To: Tomcat Users List
Subject: Problem in Tomcat


Hello All,

We get the following error every now and then.Any ideas why it will occur?


RequestHandler daemon prio=5 tid=0x000e5d18 nid=0xd9d runnable [0..0]

Thread-13 prio=5 tid=0x006cf248 nid=0xd9c waiting on condition
[0..e9afbba8]

SocketListener daemon prio=5 tid=0x00753a28 nid=0x29 runnable
[e9b7f000..e9b7fc30]
at java.net.PlainSocketImpl.socketAccept(Native Method)
at java.net.PlainSocketImpl.accept(PlainSocketImpl.java:353)
- locked 0xef10c308 (a java.net.PlainSocketImpl)
at java.net.ServerSocket.implAccept(ServerSocket.java:448)
at java.net.ServerSocket.accept(ServerSocket.java:419)
at com.inprise.vbroker.IIOP.Listener.accept(Listener.java:160)
at com.inprise.vbroker.orb.SocketSCM$ListenerThread.run(SocketSCM.java:69)
at java.lang.Thread.run(Thread.java:534)

VBJ ThreadPool Worker daemon prio=5 tid=0x00758228 nid=0x28 in
Object.wait() [e9c7f000..e9c7fc30]
at java.lang.Object.wait(Native Method)
- waiting on 0xef10c478 (a com.inprise.vbroker.orb.TPDispatcherImpl)
at java.lang.Object.wait(Object.java:429)
at com.inprise.vbroker.orb.ThreadPool$PoolWorker.run(ThreadPool.java:57)
- locked 0xef10c478 (a com.inprise.vbroker.orb.TPDispatcherImpl)

VBJ ThreadPool Worker daemon prio=5 tid=0x00757740 nid=0x27 in
Object.wait() [e9d7f000..e9d7fc30]
at java.lang.Object.wait(Native Method)
- waiting on 0xef10c478 (a com.inprise.vbroker.orb.TPDispatcherImpl)
at java.lang.Object.wait(Object.java:429)
at com.inprise.vbroker.orb.ThreadPool$PoolWorker.run(ThreadPool.java:57)
- locked 0xef10c478 (a com.inprise.vbroker.orb.TPDispatcherImpl)

VBJ ThreadPool Worker daemon prio=5 tid=0x00756da0 nid=0x26 in
Object.wait() [e9e7f000..e9e7fc30]
at java.lang.Object.wait(Native Method)
- waiting on 0xef10c478 (a com.inprise.vbroker.orb.TPDispatcherImpl)
at java.lang.Object.wait(Object.java:429)
at com.inprise.vbroker.orb.ThreadPool$PoolWorker.run(ThreadPool.java:57)
- locked 0xef10c478 (a com.inprise.vbroker.orb.TPDispatcherImpl)

VBJ ThreadPool Worker daemon prio=5 tid=0x007596a0 nid=0x25 in
Object.wait() [e9f7f000..e9f7fc30]
at java.lang.Object.wait(Native Method)
- waiting on 0xef10c478 (a com.inprise.vbroker.orb.TPDispatcherImpl)
at java.lang.Object.wait(Object.java:429)
at com.inprise.vbroker.orb.ThreadPool$PoolWorker.run(ThreadPool.java:57)
- locked 0xef10c478 (a com.inprise.vbroker.orb.TPDispatcherImpl)

VBJ ThreadPool Worker daemon prio=5 tid=0x00756400 nid=0x24 in
Object.wait() [ea77f000..ea77fc30]
at java.lang.Object.wait(Native Method)
- waiting on 0xef10c478 (a com.inprise.vbroker.orb.TPDispatcherImpl)
at java.lang.Object.wait(Object.java:429)
at com.inprise.vbroker.orb.ThreadPool$PoolWorker.run(ThreadPool.java:57)
- locked 0xef10c478 (a com.inprise.vbroker.orb.TPDispatcherImpl)

StandardManager[/cse/prdapp] daemon prio=5 tid=0x006d8c58 nid=0x23 waiting
on condition [eac7f000..eac7fc30]
at java.lang.Thread.sleep(Native Method)
at
org.apache.catalina.session.StandardManager.threadSleep(StandardManager.java
:793)
at
org.apache.catalina.session.StandardManager.run(StandardManager.java:852)
at java.lang.Thread.run(Thread.java:534)

visiconnect Manager prio=5 tid=0x005cf5c8 nid=0x21 in Object.wait()
[ead7f000..ead7fc30]
at java.lang.Object.wait(Native Method)
- waiting on 0xeef5cbd8 (a
com.borland.enterprise.server.services.visiconnect.VisiConnectService)
at java.lang.Object.wait(Object.java:429)
at com.sun.server.Service.run(Service.java:192)
- locked 0xeef5cbd8 (a
com.borland.enterprise.server.services.visiconnect.VisiConnectService)
at
com.borland.enterprise.server.services.visiconnect.VisiConnectService.run(Vi
siConnectService.java:207)
at java.lang.Thread.run(Thread.java:534)

CacheCleaner prio=2 tid=0x005cea00 nid=0x20 waiting on condition
[eae7f000..eae7fc30]
at java.lang.Thread.sleep(Native Method

RE: Problem in Tomcat

2004-08-26 Thread Shakeel Ahmad
Is your code contains your own written threads, if yes then debug them. We
extensivly dump this output to monitor our threads for tuning performance
etc.

-Original Message-
From: Jitesh Sinha [mailto:[EMAIL PROTECTED]
Sent: Friday, August 27, 2004 10:45 AM
To: Tomcat Users List
Subject: RE: Problem in Tomcat


This error is not consistent...It works fine in 70% of the cases...In rest
of the cases the web page goes blankAnd the log files show what is
written in my first email

-Original Message-
From: Shakeel Ahmad [mailto:[EMAIL PROTECTED]
Sent: Friday, August 27, 2004 10:59 AM
To: Tomcat Users List
Subject: RE: Problem in Tomcat


So I need exact details of the problem.

-Original Message-
From: Jitesh Sinha [mailto:[EMAIL PROTECTED]
Sent: Friday, August 27, 2004 10:23 AM
To: Tomcat Users List
Subject: RE: Problem in Tomcat


Well,this is what we are seeing in our log files...and it can be seen only
when we see an error on our web page
And yes,our web app is crashing because of the error

-Original Message-
From: Shakeel Ahmad [mailto:[EMAIL PROTECTED]
Sent: Thursday, August 26, 2004 6:26 PM
To: Tomcat Users List
Subject: RE: Problem in Tomcat


Actually this is not an error, when you press Ctrl+Break key on Tomcat
Console it dumps all the threads in this fashion. By the way this crashing
your web app

-Original Message-
From: Jitesh Sinha [mailto:[EMAIL PROTECTED]
Sent: Thursday, August 26, 2004 4:53 PM
To: Tomcat Users List
Subject: Problem in Tomcat


Hello All,

We get the following error every now and then.Any ideas why it will occur?


RequestHandler daemon prio=5 tid=0x000e5d18 nid=0xd9d runnable [0..0]

Thread-13 prio=5 tid=0x006cf248 nid=0xd9c waiting on condition
[0..e9afbba8]

SocketListener daemon prio=5 tid=0x00753a28 nid=0x29 runnable
[e9b7f000..e9b7fc30]
at java.net.PlainSocketImpl.socketAccept(Native Method)
at java.net.PlainSocketImpl.accept(PlainSocketImpl.java:353)
- locked 0xef10c308 (a java.net.PlainSocketImpl)
at java.net.ServerSocket.implAccept(ServerSocket.java:448)
at java.net.ServerSocket.accept(ServerSocket.java:419)
at com.inprise.vbroker.IIOP.Listener.accept(Listener.java:160)
at com.inprise.vbroker.orb.SocketSCM$ListenerThread.run(SocketSCM.java:69)
at java.lang.Thread.run(Thread.java:534)

VBJ ThreadPool Worker daemon prio=5 tid=0x00758228 nid=0x28 in
Object.wait() [e9c7f000..e9c7fc30]
at java.lang.Object.wait(Native Method)
- waiting on 0xef10c478 (a com.inprise.vbroker.orb.TPDispatcherImpl)
at java.lang.Object.wait(Object.java:429)
at com.inprise.vbroker.orb.ThreadPool$PoolWorker.run(ThreadPool.java:57)
- locked 0xef10c478 (a com.inprise.vbroker.orb.TPDispatcherImpl)

VBJ ThreadPool Worker daemon prio=5 tid=0x00757740 nid=0x27 in
Object.wait() [e9d7f000..e9d7fc30]
at java.lang.Object.wait(Native Method)
- waiting on 0xef10c478 (a com.inprise.vbroker.orb.TPDispatcherImpl)
at java.lang.Object.wait(Object.java:429)
at com.inprise.vbroker.orb.ThreadPool$PoolWorker.run(ThreadPool.java:57)
- locked 0xef10c478 (a com.inprise.vbroker.orb.TPDispatcherImpl)

VBJ ThreadPool Worker daemon prio=5 tid=0x00756da0 nid=0x26 in
Object.wait() [e9e7f000..e9e7fc30]
at java.lang.Object.wait(Native Method)
- waiting on 0xef10c478 (a com.inprise.vbroker.orb.TPDispatcherImpl)
at java.lang.Object.wait(Object.java:429)
at com.inprise.vbroker.orb.ThreadPool$PoolWorker.run(ThreadPool.java:57)
- locked 0xef10c478 (a com.inprise.vbroker.orb.TPDispatcherImpl)

VBJ ThreadPool Worker daemon prio=5 tid=0x007596a0 nid=0x25 in
Object.wait() [e9f7f000..e9f7fc30]
at java.lang.Object.wait(Native Method)
- waiting on 0xef10c478 (a com.inprise.vbroker.orb.TPDispatcherImpl)
at java.lang.Object.wait(Object.java:429)
at com.inprise.vbroker.orb.ThreadPool$PoolWorker.run(ThreadPool.java:57)
- locked 0xef10c478 (a com.inprise.vbroker.orb.TPDispatcherImpl)

VBJ ThreadPool Worker daemon prio=5 tid=0x00756400 nid=0x24 in
Object.wait() [ea77f000..ea77fc30]
at java.lang.Object.wait(Native Method)
- waiting on 0xef10c478 (a com.inprise.vbroker.orb.TPDispatcherImpl)
at java.lang.Object.wait(Object.java:429)
at com.inprise.vbroker.orb.ThreadPool$PoolWorker.run(ThreadPool.java:57)
- locked 0xef10c478 (a com.inprise.vbroker.orb.TPDispatcherImpl)

StandardManager[/cse/prdapp] daemon prio=5 tid=0x006d8c58 nid=0x23 waiting
on condition [eac7f000..eac7fc30]
at java.lang.Thread.sleep(Native Method)
at
org.apache.catalina.session.StandardManager.threadSleep(StandardManager.java
:793)
at
org.apache.catalina.session.StandardManager.run(StandardManager.java:852)
at java.lang.Thread.run(Thread.java:534)

visiconnect Manager prio=5 tid=0x005cf5c8 nid=0x21 in Object.wait()
[ead7f000..ead7fc30

Tomcat JVM GC

2004-08-25 Thread Shakeel Ahmad
Hi, can I disable GC thread in Tomcat.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Tomcat JVM GC

2004-08-25 Thread Shakeel Ahmad
Its known that JVM schedular runs gc thread depending upon some concrete
values, now I want to set such parameters, or my heap sizes so that the JVM
schedular, ignores gc thread. We have 1.3G Ram on our server and our heap
never goes beyond 400-450M, now the gc thread is a hurdle in our system , we
want that it made the gc thread ignored, keep in mind we are running at
1024-1024M on JVM heap.

-Original Message-
From: Dale, Matt [mailto:[EMAIL PROTECTED]
Sent: Wednesday, August 25, 2004 4:15 PM
To: Tomcat Users List
Subject: RE: Tomcat JVM GC



You can't disable garbage collection or java won't run. Please rephrase your
question.

-Original Message-
From: Shakeel Ahmad [mailto:[EMAIL PROTECTED]
Sent: 25 August 2004 12:08
To: Tomcat Users List
Subject: Tomcat JVM GC


Hi, can I disable GC thread in Tomcat.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Tomcat JVM GC

2004-08-25 Thread Shakeel Ahmad
Actually we have our own gc mechanism which has a proven record of doing
things for our application, it never lets our application go out of memory,
but it works at high level, now with this robust design we have only issues
from JVM's original gc work. Our calculations have proven that if JVM's gc
does not work  automatically then our real time nodes can work more
effectively.

-Original Message-
From: Mats Henrikson [mailto:[EMAIL PROTECTED]
Sent: Wednesday, August 25, 2004 4:46 PM
To: Tomcat Users List
Subject: RE: Tomcat JVM GC


 Its known that JVM schedular runs gc thread depending upon some concrete
 values, now I want to set such parameters, or my heap sizes so that the
JVM
 schedular, ignores gc thread. We have 1.3G Ram on our server and our heap

You are mistaken, you do not want it to ignore the gc thread, as you
would then very fast run out of heap space, you just want to tune the
garbage collector a little.

To do this, read this page until you understand it:

http://java.sun.com/docs/hotspot/gc1.4.2/

Then you can use the GC Portal tool to help you define the optimal GC
configuration for your application:

http://java.sun.com/developer/technicalArticles/Programming/GCPortal/

Of course, it could turn out that in order to improve your performance
you might have to rewrite parts of your application to be less wasteful
with objects.

Regards,
--
Mats Henrikson
Unix Systems Programmer
Systems Development  Support
Oxford University Computing Services


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Tomcat JVM GC

2004-08-25 Thread Shakeel Ahmad
Ok, thanks let me work around on your ideas, and let you know in couple of
days, I really appreciate your prompt replies.

-Original Message-
From: Dale, Matt [mailto:[EMAIL PROTECTED]
Sent: Wednesday, August 25, 2004 6:31 PM
To: Tomcat Users List
Subject: RE: Tomcat JVM GC



You should still look at the articles that I posted my reply. If you really
want to use your own garbage collection then you will have to first fix the
size of the certain areas within the heap. There is no way to turn off the
jvm's own garbage collection, when it cannot allocate space for an object it
will do a garbage collection. If there is still not enough space then it
will expand the pool so that there is space, up until the maximum allowed
for that pool.

If you fix the size of the pools and always do a gc before the pool runs out
of memory then you will be fine. If you've fixed the pools and you run out
of memory then your own gc algorithm must be deficient and the JVM will do a
gc anyway.

I suspect that with the vast array of GC parameters available you should be
able to find some that will work as well as or better than your own but
thats just my opinion.

-Original Message-
From: Shakeel Ahmad [mailto:[EMAIL PROTECTED]
Sent: 25 August 2004 14:17
To: Tomcat Users List
Subject: RE: Tomcat JVM GC


Actually we have our own gc mechanism which has a proven record of doing
things for our application, it never lets our application go out of memory,
but it works at high level, now with this robust design we have only issues
from JVM's original gc work. Our calculations have proven that if JVM's gc
does not work  automatically then our real time nodes can work more
effectively.

-Original Message-
From: Mats Henrikson [mailto:[EMAIL PROTECTED]
Sent: Wednesday, August 25, 2004 4:46 PM
To: Tomcat Users List
Subject: RE: Tomcat JVM GC


 Its known that JVM schedular runs gc thread depending upon some concrete
 values, now I want to set such parameters, or my heap sizes so that the
JVM
 schedular, ignores gc thread. We have 1.3G Ram on our server and our heap

You are mistaken, you do not want it to ignore the gc thread, as you
would then very fast run out of heap space, you just want to tune the
garbage collector a little.

To do this, read this page until you understand it:

http://java.sun.com/docs/hotspot/gc1.4.2/

Then you can use the GC Portal tool to help you define the optimal GC
configuration for your application:

http://java.sun.com/developer/technicalArticles/Programming/GCPortal/

Of course, it could turn out that in order to improve your performance
you might have to rewrite parts of your application to be less wasteful
with objects.

Regards,
--
Mats Henrikson
Unix Systems Programmer
Systems Development  Support
Oxford University Computing Services


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]