• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

Exceptions in Tomcat startup

 
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi i am recieving so many exceptions in startup of tomcat 5. after approx. 1 minutes the server starts up.

I have set the JAVA_HOME as well as CATALINA_HOME variable properly. can anybody tell how to remove these exceptions and thus have a speedy TOMCAT startup.

ager
[INFO] CompositeCacheConfigurator - setting defaults to
[INFO] CompositeCacheConfigurator - setting defaultCompositeCacheAttributes to [ useLateral = true, useRemote
= true, useDisk = true, maxObjs = 1000 ]
[WARN] OptionConverter - Could not find value for key jcs.default.elementattributes
[WARN] CompositeCacheConfigurator - Could not instantiate eAttr named 'jcs.default.elementattributes', using d
efaults.
[INFO] CompositeCacheConfigurator - setting defaultElementAttributes to [ IS_LATERAL = false, IS_SPOOL = false
, IS_REMOTE = false, IS_ETERNAL = true, MaxLifeSeconds = -1, IdleTime = -1, CreateTime = 1108049364437, LastAc
cessTime = 1108049364437, getTimeToLiveSeconds() = -1000, createTime = 1108049364437 ]
[WARN] OptionConverter - Could not find value for key jcs.system.groupIdCache.elementattributes
[WARN] CompositeCacheConfigurator - Could not instantiate eAttr named 'jcs.system.groupIdCache.elementattribut
es', using defaults.
[INFO] LRUMemoryCache - initialized LRUMemoryCache for groupIdCache
[INFO] CompositeCache - Constructed cache with name: groupIdCache
[WARN] OptionConverter - Could not find value for key jcs.region.org_tigris_scarab_om_Module.elementattributes

[WARN] CompositeCacheConfigurator - Could not instantiate eAttr named 'jcs.region.org_tigris_scarab_om_Module.
elementattributes', using defaults.
[INFO] LRUMemoryCache - initialized LRUMemoryCache for org_tigris_scarab_om_Module
[INFO] CompositeCache - Constructed cache with name: org_tigris_scarab_om_Module
[WARN] OptionConverter - Could not find value for key jcs.region.org_tigris_scarab_om_AttributeClass.elementat
tributes
[WARN] CompositeCacheConfigurator - Could not instantiate eAttr named 'jcs.region.org_tigris_scarab_om_Attribu
teClass.elementattributes', using defaults.
[INFO] LRUMemoryCache - initialized LRUMemoryCache for org_tigris_scarab_om_AttributeClass
[INFO] CompositeCache - Constructed cache with name: org_tigris_scarab_om_AttributeClass
[WARN] OptionConverter - Could not find value for key jcs.region.org_tigris_scarab_om_AttributeOption.elementa
ttributes
[WARN] CompositeCacheConfigurator - Could not instantiate eAttr named 'jcs.region.org_tigris_scarab_om_Attribu
teOption.elementattributes', using defaults.
[INFO] LRUMemoryCache - initialized LRUMemoryCache for org_tigris_scarab_om_AttributeOption
[INFO] CompositeCache - Constructed cache with name: org_tigris_scarab_om_AttributeOption
[WARN] OptionConverter - Could not find value for key jcs.region.org_tigris_scarab_om_AttributeGroup.elementat
tributes
[WARN] CompositeCacheConfigurator - Could not instantiate eAttr named 'jcs.region.org_tigris_scarab_om_Attribu
teGroup.elementattributes', using defaults.
[INFO] LRUMemoryCache - initialized LRUMemoryCache for org_tigris_scarab_om_AttributeGroup
[INFO] CompositeCache - Constructed cache with name: org_tigris_scarab_om_AttributeGroup
[WARN] OptionConverter - Could not find value for key jcs.region.org_tigris_scarab_om_Issue.elementattributes
[WARN] CompositeCacheConfigurator - Could not instantiate eAttr named 'jcs.region.org_tigris_scarab_om_Issue.e
lementattributes', using defaults.
[INFO] LRUMemoryCache - initialized LRUMemoryCache for org_tigris_scarab_om_Issue
[INFO] CompositeCache - Constructed cache with name: org_tigris_scarab_om_Issue
[WARN] OptionConverter - Could not find value for key jcs.region.org_tigris_scarab_om_Query.elementattributes
[WARN] CompositeCacheConfigurator - Could not instantiate eAttr named 'jcs.region.org_tigris_scarab_om_Query.e
lementattributes', using defaults.
[INFO] LRUMemoryCache - initialized LRUMemoryCache for org_tigris_scarab_om_Query
[INFO] CompositeCache - Constructed cache with name: org_tigris_scarab_om_Query
[WARN] OptionConverter - Could not find value for key jcs.region.org_tigris_scarab_om_UserPreference.elementat
tributes
[WARN] CompositeCacheConfigurator - Could not instantiate eAttr named 'jcs.region.org_tigris_scarab_om_UserPre
ference.elementattributes', using defaults.
[INFO] LRUMemoryCache - initialized LRUMemoryCache for org_tigris_scarab_om_UserPreference
[INFO] CompositeCache - Constructed cache with name: org_tigris_scarab_om_UserPreference
[WARN] OptionConverter - Could not find value for key jcs.region.org_tigris_scarab_om_ScarabUser.elementattrib
utes
[WARN] CompositeCacheConfigurator - Could not instantiate eAttr named 'jcs.region.org_tigris_scarab_om_ScarabU
ser.elementattributes', using defaults.
[INFO] LRUMemoryCache - initialized LRUMemoryCache for org_tigris_scarab_om_ScarabUser
[INFO] CompositeCache - Constructed cache with name: org_tigris_scarab_om_ScarabUser
[WARN] OptionConverter - Could not find value for key jcs.region.org_tigris_scarab_om_RModuleIssueType.element
attributes
[WARN] CompositeCacheConfigurator - Could not instantiate eAttr named 'jcs.region.org_tigris_scarab_om_RModule
IssueType.elementattributes', using defaults.
[INFO] LRUMemoryCache - initialized LRUMemoryCache for org_tigris_scarab_om_RModuleIssueType
[INFO] CompositeCache - Constructed cache with name: org_tigris_scarab_om_RModuleIssueType
[WARN] OptionConverter - Could not find value for key jcs.region.org_tigris_scarab_om_AttributeType.elementatt
ributes
[WARN] CompositeCacheConfigurator - Could not instantiate eAttr named 'jcs.region.org_tigris_scarab_om_Attribu
teType.elementattributes', using defaults.
[INFO] LRUMemoryCache - initialized LRUMemoryCache for org_tigris_scarab_om_AttributeType
[INFO] CompositeCache - Constructed cache with name: org_tigris_scarab_om_AttributeType
[WARN] OptionConverter - Could not find value for key jcs.region.org_tigris_scarab_om_AttributeValue.elementat
tributes
[WARN] CompositeCacheConfigurator - Could not instantiate eAttr named 'jcs.region.org_tigris_scarab_om_Attribu
teValue.elementattributes', using defaults.
[INFO] LRUMemoryCache - initialized LRUMemoryCache for org_tigris_scarab_om_AttributeValue
[INFO] CompositeCache - Constructed cache with name: org_tigris_scarab_om_AttributeValue
[WARN] OptionConverter - Could not find value for key jcs.region.org_tigris_scarab_om_Attribute.elementattribu
tes
[WARN] CompositeCacheConfigurator - Could not instantiate eAttr named 'jcs.region.org_tigris_scarab_om_Attribu
te.elementattributes', using defaults.
[INFO] LRUMemoryCache - initialized LRUMemoryCache for org_tigris_scarab_om_Attribute
[INFO] CompositeCache - Constructed cache with name: org_tigris_scarab_om_Attribute
[WARN] OptionConverter - Could not find value for key jcs.region.org_tigris_scarab_om_IssueType.elementattribu
tes
[WARN] CompositeCacheConfigurator - Could not instantiate eAttr named 'jcs.region.org_tigris_scarab_om_IssueTy
pe.elementattributes', using defaults.
[INFO] LRUMemoryCache - initialized LRUMemoryCache for org_tigris_scarab_om_IssueType
[INFO] CompositeCache - Constructed cache with name: org_tigris_scarab_om_IssueType
[INFO] TorqueInstance - Added Manager for Class: org.tigris.scarab.om.ScarabUser -> org.tigris.scarab.om.Scara
bUserManager
[WARN] IDBroker - IDBroker is being used with db 'scarab', which does not support transactions. IDBroker attem
pts to use transactions to limit the possibility of duplicate key generation. Without transactions, duplicate
key generation is possible if multiple JVMs are used or other means are used to write to the database.
[WARN] OptionConverter - Could not find value for key jcs.region.org_tigris_scarab_om_DependType.elementattrib
utes
[WARN] CompositeCacheConfigurator - Could not instantiate eAttr named 'jcs.region.org_tigris_scarab_om_DependT
ype.elementattributes', using defaults.
[INFO] LRUMemoryCache - initialized LRUMemoryCache for org_tigris_scarab_om_DependType
[INFO] CompositeCache - Constructed cache with name: org_tigris_scarab_om_DependType
[WARN] OptionConverter - Could not find value for key jcs.region.org_tigris_scarab_om_GlobalParameter.elementa
ttributes
[WARN] CompositeCacheConfigurator - Could not instantiate eAttr named 'jcs.region.org_tigris_scarab_om_GlobalP
arameter.elementattributes', using defaults.
[INFO] LRUMemoryCache - initialized LRUMemoryCache for org_tigris_scarab_om_GlobalParameter
[INFO] CompositeCache - Constructed cache with name: org_tigris_scarab_om_GlobalParameter
org.apache.torque.TorqueException: java.sql.SQLException: Cannot connect to MySQL server on localhost:3306. Is
there a MySQL server running on the machine/port you are trying to connect to? (java.net.ConnectException)
at org.apache.torque.TorqueInstance.getConnection(TorqueInstance.java:755)
at org.apache.torque.Torque.getConnection(Torque.java:306)
at org.apache.torque.util.Transaction.beginOptional(Transaction.java:118)
at org.apache.torque.util.BasePeer.doSelect(BasePeer.java:1365)
at org.tigris.scarab.om.BaseGlobalParameterPeer.doSelectVillageRecords(BaseGlobalParameterPeer.java:36
8)
at org.tigris.scarab.om.BaseGlobalParameterPeer.doSelectVillageRecords(BaseGlobalParameterPeer.java:33
6)
at org.tigris.scarab.om.BaseGlobalParameterPeer.doSelect(BaseGlobalParameterPeer.java:305)
at org.tigris.scarab.om.GlobalParameterManager.getInstance(GlobalParameterManager.java:151)
at org.tigris.scarab.om.GlobalParameterManager.getInstance(GlobalParameterManager.java:127)
at org.tigris.scarab.om.GlobalParameterManager.getString(GlobalParameterManager.java:171)
at org.tigris.scarab.services.DatabaseInitializer.init(DatabaseInitializer.java:116)
at org.apache.fulcrum.BaseServiceBroker.initService(BaseServiceBroker.java:398)
at org.apache.fulcrum.BaseServiceBroker.doInitService(BaseServiceBroker.java:477)
at org.apache.fulcrum.BaseServiceBroker.initServices(BaseServiceBroker.java:449)
at org.apache.fulcrum.BaseServiceBroker.init(BaseServiceBroker.java:262)
at org.apache.turbine.Turbine.configure(Turbine.java:700)
at org.apache.turbine.Turbine.init(Turbine.java:186)
at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1029)
at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:862)
at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4013)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4357)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:823)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:807)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:595)
at org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeployer.java:277)
at org.apache.catalina.core.StandardHost.install(StandardHost.java:832)
at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:701)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:432)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:983)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:349)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1091)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:789)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1083)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:478)
at org.apache.catalina.core.StandardService.start(StandardService.java:480)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:2313)
at org.apache.catalina.startup.Catalina.start(Catalina.java:556)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:287)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:425)
Caused by: java.sql.SQLException: Cannot connect to MySQL server on localhost:3306. Is there a MySQL server ru
nning on the machine/port you are trying to connect to? (java.net.ConnectException)
at org.gjt.mm.mysql.Connection.connectionInit(Unknown Source)
at org.gjt.mm.mysql.jdbc2.Connection.connectionInit(Unknown Source)
at org.gjt.mm.mysql.Driver.connect(Unknown Source)
at java.sql.DriverManager.getConnection(DriverManager.java:512)
at java.sql.DriverManager.getConnection(DriverManager.java:171)
at org.apache.commons.dbcp.cpdsadapter.DriverAdapterCPDS.getPooledConnection(DriverAdapterCPDS.java:20
5)
at org.apache.commons.dbcp.cpdsadapter.DriverAdapterCPDS.getPooledConnection(DriverAdapterCPDS.java:17
5)
at org.apache.commons.dbcp.datasources.InstanceKeyDataSource.testCPDS(InstanceKeyDataSource.java:748)
at org.apache.commons.dbcp.datasources.SharedPoolDataSource.registerPool(SharedPoolDataSource.java:236
)
at org.apache.commons.dbcp.datasources.SharedPoolDataSource.getPooledConnectionAndInfo(SharedPoolDataS
ource.java:205)
at org.apache.commons.dbcp.datasources.InstanceKeyDataSource.getConnection(InstanceKeyDataSource.java:
676)
at org.apache.commons.dbcp.datasources.InstanceKeyDataSource.getConnection(InstanceKeyDataSource.java:
660)
at org.apache.torque.TorqueInstance.getConnection(TorqueInstance.java:743)
... 43 more
[INFO] Turbine - init complete, Ready to Rumble!
Feb 10, 2005 5:29:46 PM org.apache.catalina.core.StandardHostDeployer install
INFO: Installing web application at context path /yazd from URL file:C:\tomcat5\webapps\yazd
Feb 10, 2005 5:29:48 PM org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on http-80
Feb 10, 2005 5:29:49 PM org.apache.jk.common.ChannelSocket init
INFO: JK2: ajp13 listening on /0.0.0.0:8009
Feb 10, 2005 5:29:49 PM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=31/406 config=c:\tomcat5\conf\jk2.properties
Feb 10, 2005 5:29:49 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 40344 ms
 
Sheriff
Posts: 13411
Firefox Browser VI Editor Redhat
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I would start here:



Is there something keeping you from connecting to MySql, such as a firewall?
Is MySql running?
 
yoman sharma
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I don't have any idea regarding MySql but yes i am behind a firewall.
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser VI Editor Redhat
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Something, running under Tocmat, is trying to make a connection to a MySql database when Tomcat starts up.

If you're not the only developer working with installation, I would try to find out who has configured something to work with Mysql and Torque.
 
yoman sharma
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
How to rectify this problem. In fact my whole team is using one userid .
Tell me how to remove these exceptions
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser VI Editor Redhat
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by yoman sharma:
How to rectify this problem. In fact my whole team is using one userid .
Tell me how to remove these exceptions



Start with a team meeting.
In it, do what I said earlier and find out why there is an application trying to connect to MySql when Tomcat Starts up. Then, you either remove the said application or configure it properly.
 
yoman sharma
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Tell me how to remove that application. Is there some file to make configuration changes. If yes then tell me what are the things which are causing exceptions?
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser VI Editor Redhat
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Don't you think it would be better to find out who put it there and why?

What's causing the exceptions is an app that needs to connect to a database at startup is unable to do so.
[ February 10, 2005: Message edited by: Ben Souther ]
 
yoman sharma
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Actually i have been alloted this PC . Before this someone else was using. so i have no idea who put it there and why? Can you plz tell me the procedure to remove all those unnecessary exceptions?
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser VI Editor Redhat
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You don't remove exceptions.
You fix whatever code is throwing them.

You have an app that needs to connect to a database in order to initialize itself but can't connect. Fix that and see if it stops throwing exceptions.

If it's just a PC that you're working on, back up everything and re-install Tomcat. If it's a server that other people are relying on then you need to find out why the app is there and what went wrong with it.
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser VI Editor Redhat
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by yoman sharma:
How to rectify this problem. In fact my whole team is using one userid .
Tell me how to remove these exceptions



When you say "my whole team is using one userid", do you mean one userId for Javaranch?
I've answered several questions asked by this username. Were they all asked by you or are different team members posting to this forum with the same name?
 
ranger
Posts: 17347
11
Mac IntelliJ IDE Spring
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Moving this to the more appropriate Apache/Tomcat Forum.

This forum is for Servlets questions.

Mark
 
keep an eye out for scorpions and black widows. But the tiny ads are safe.
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic