• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Bear Bibeault
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Jj Roberts
  • Carey Brown
Bartenders:
  • salvin francis
  • Frits Walraven
  • Piet Souris

cannot start tomcat 9 in eclipse but can start using apache-tomcat-9.0.41\bin\startup.bat

 
Ranch Hand
Posts: 257
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
the tomcat is freshly installed and no any web project on it, I can succesfully start up by using apache-tomcat-9.0.41\bin\startup.bat, but if I start up inside eclipse, many error show in console as follow: why?

 
Saloon Keeper
Posts: 23041
157
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
It appears that Tomcat started just fine. What failed was when Tomcat attempted to create a database connection pool and the database server could not be connected to - it timed out.

So I would check the pool definition and confirm that the JDBC URL was correct and that the target database server wasn't blocked by a firewall.
 
peter tong
Ranch Hand
Posts: 257
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
but I have no application deployed, it is a fresh tomcat..., so don't know why it try to connect oracle for what application?

eclipse_tomcat1.png
[Thumbnail for eclipse_tomcat1.png]
eclipse_tomcat2.jpg
[Thumbnail for eclipse_tomcat2.jpg]
eclipse_tomcat3.jpg
[Thumbnail for eclipse_tomcat3.jpg]
 
Tim Holloway
Saloon Keeper
Posts: 23041
157
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Database Connection Pools are not always defined as part of webapps. They can also be defined in the Tomcat conf/server.xml file.

I have never loved the Tomcat driver that comes with the JEE spin of Eclipse. It doesn't properly reflect how the stand-alone Tomcat is set up and last time I tried using it, it didn't keep the setup up to date. I preferred the Mongrel Tomcat plugin.
 
peter tong
Ranch Hand
Posts: 257
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Oh yes, in \.metadata\.plugins\org.eclipse.wst.server.core\tmp0\conf\server.xml, I found something



I have deleted and added the server in tomcat many times, but don't know why this settings is still in tmp0\conf\server.xml
 
Tim Holloway
Saloon Keeper
Posts: 23041
157
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Deleting and adding Tomcat won't help. You have to give Eclipse a kick in the fundament. As I said, the Eclipse WST plugin is not very good at detecting changes to your configuration and in some cases you have to do so manually and sometimes more than once.

That's why I preferred the Mongrel plugin. It runs straight from the Tomcat configuration files instead of trying to (incompletely) clone them.
 
reply
    Bookmark Topic Watch Topic
  • New Topic