{"id":508,"date":"2012-09-01T08:46:32","date_gmt":"2012-09-01T14:46:32","guid":{"rendered":"http:\/\/wmbuck.net\/blog\/?p=508"},"modified":"2012-09-01T09:23:01","modified_gmt":"2012-09-01T15:23:01","slug":"getting-tomcat-running-again","status":"publish","type":"post","link":"https:\/\/wmbuck.net\/blog\/?p=508","title":{"rendered":"Getting tomcat running again"},"content":{"rendered":"<p>It has been a hell of a struggle to upgrade the server (which hosts this site) from Fedora 13 to Fedora 17. The last step was to get my flying apps running in Tomcat again. I confess I don&#8217;t track what happens in the java world very closely. And it is a very active world &#8211; lots of stuff happening. So it is no surprise I suppose that when you jump four releases there are some adjustments to be made.<\/p>\n<p>To get tomcat running I had to make the following adjustments, in addition to the obvious stuff of adding the FlightPlan war file to \/usr\/share\/tomcat\/webapps, installing the mysql jdbc connector, and updating \/etc\/tomcat\/tomcat-users.xml.<\/p>\n<p>Tomcat was unable to find\u00a0org.apache.tomcat.dbcp.dbcp.BasicDataSourceFactory. I had to add: \u00a0JAVA_OPTS=&#8221;$JAVA_OPTS -Djavax.sql.DataSource.Factory=org.apache.commons.dbcp.BasicDataSourceFactory&#8221; in \/etc\/sysconfig\/tomcat. It may be that this is a problem of my own making somehow. In an earlier <a title=\"Standalone java apps vs JNDI datasources\" href=\"http:\/\/wmbuck.net\/blog\/?p=377\">post<\/a> I commented about the ongoing evolution in the methods available to connect java apps\/servlets with databases. My servlets now use java Datasources, which I think are the &#8220;latest thing&#8221;, and I&#8217;m a little surprised that I have to make special provision for finding the classes. This makes me think it probable that if I understood this better, and did things according to &#8220;best practice&#8221; in the java world, I wouldn&#8217;t have this problem. But as I said before, catching up with all the advancements in java over 7 years is a tall order.<\/p>\n<p>Then Tomcat was unable to find apache-commons-pool.jar, so I had to add a symlink: commons-pool.jar -&gt; \/usr\/share\/java\/apache-commons-pool.jar in \/usr\/share\/tomcat\/lib. This is less surprising I think. The reference to this part of apache commons is coming from the previous (BasicDataSourceFactory) classes. If the former aren&#8217;t there, we don&#8217;t need this.<\/p>\n<p>The flying apps seem to be running properly now.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>It has been a hell of a struggle to upgrade the server (which hosts this site) from Fedora 13 to Fedora 17. The last step was to get my flying apps running in Tomcat again. I confess I don&#8217;t track what happens in the java world very closely. And it is a very active world &hellip; <a href=\"https:\/\/wmbuck.net\/blog\/?p=508\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Getting tomcat running again<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[10,5,13,4,14,15],"tags":[],"class_list":["post-508","post","type-post","status-publish","format-standard","hentry","category-fedora","category-flying","category-java","category-linux","category-tomcat","category-website-building"],"_links":{"self":[{"href":"https:\/\/wmbuck.net\/blog\/index.php?rest_route=\/wp\/v2\/posts\/508"}],"collection":[{"href":"https:\/\/wmbuck.net\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wmbuck.net\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wmbuck.net\/blog\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/wmbuck.net\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=508"}],"version-history":[{"count":7,"href":"https:\/\/wmbuck.net\/blog\/index.php?rest_route=\/wp\/v2\/posts\/508\/revisions"}],"predecessor-version":[{"id":515,"href":"https:\/\/wmbuck.net\/blog\/index.php?rest_route=\/wp\/v2\/posts\/508\/revisions\/515"}],"wp:attachment":[{"href":"https:\/\/wmbuck.net\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=508"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wmbuck.net\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=508"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wmbuck.net\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=508"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}