{"id":6120,"date":"2014-04-13T03:01:05","date_gmt":"2014-04-13T03:01:05","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/04\/13\/apachetomcatrelated-issues-collection-of-common-programming-errors\/"},"modified":"2014-04-13T03:01:05","modified_gmt":"2014-04-13T03:01:05","slug":"apachetomcatrelated-issues-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2014\/04\/13\/apachetomcatrelated-issues-collection-of-common-programming-errors\/","title":{"rendered":"apache,tomcatRelated issues-Collection of common programming errors"},"content":{"rendered":"<ul>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/8fcf279def5c1abd4cdf30b974dd8787?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nDavid<br \/>\nphp apache .htaccess error-handling<br \/>\nI current have this set in my htaccess:php_value error_reporting -1I want the log to only log fatal errors. What do I replace -1 with to do this?<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/i.stack.imgur.com\/nZEUQ.png?s=32&amp;g=1\" \/><br \/>\nPeeHaa<br \/>\nphp apache shutdown error-log<br \/>\nWe are using LAMP Architecture. PHP Shutdown function is capturing some fatal errors. But these fatal errors are not logged in apache error_log files. We have used two versions of PHP. Both the versions are functioning similarly. Versions: php-5.2.17 and php-5.3.14<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/7f9c20b7926acd6e6a98e2973ff3a32d?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nracky<br \/>\nphp mysql linux apache<br \/>\nI have PHP 5.2.3, apache2.x, mysql 5.x on a Linux machine. EVerything was working fine untill yesterday. This morning all of a sudden one of the php files started to throw &#8220;Fatal error: Call to a member function execute() on a non-object in&#8221;. I use PDO (prepare, execute, close cursor etc). Have you ever come across this problem? does someone know a fix for this please.Many thanks, R<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/6e597bd2dc3e18ff2f8f7253988666e3?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nAdam Lynch<br \/>\nphp apache mongodb installation wamp<br \/>\nI&#8217;m trying to execute this:&lt;?php\/\/ connect $m = new Mongo();?&gt;But I get the following error:Fatal error: Class &#8216;Mongo&#8217; not found in C:\\wamp\\www&#8230;..Info:PHP: 5.38 MongoDB: mongodb-win32-i386-2.0.2 MongoDB PHP Driver: mongo-1.1.4-php5.3vc6ts WampServer: 2.2 OS: Windows 7 Enterprise SP1I&#8217;ve followed the MongoDB installation fine (incl. adding the DLL to ext &amp; php.ini), I&#8217;ve started mongod.exe and WAMP is running.What does this imply is missing\/incorrect?Edit:I have got it running<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/i.stack.imgur.com\/ZZorL.jpg?s=32&amp;g=1\" \/><br \/>\nGhada Salem<br \/>\nphp apache imagemagick<br \/>\nI am trying to install imagemagic php extension under WampServer 2.I&#8217;ve downloaded and installed ImageMagick . I&#8217;ve chosen ImageMagick-6.8.8-10-Q16-x86-dll.exe I&#8217;ve downloaded the php extension. I&#8217;ve moved the dll extension I just downloaded to C:\\wamp\\bin\\php\\php5.4.16\\ext\\ I&#8217;ve altered php.ini (accessed it through wamp tray icon &gt; right-click &gt; PHP &gt; php.ini) and added &#8220;extension=php_imagick.dll&#8221;, without the quotes, to the extensions lists. I restarted Apache. Not noticing the extension disp<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/i.stack.imgur.com\/5yFmW.png?s=32&amp;g=1\" \/><br \/>\nbillybobisking<br \/>\nphp apache geolocation geoip<br \/>\nI have installed net_geoip on my web host and am encountering the error Fatal error: Class &#8216;Net_GeoIP&#8217; not found in \/home\/heyitspr\/public_html\/beta_simplecraft.biz\/index.php on line 3 when I run the script that is posted below:$geoip = Net_GeoIP::getInstance(&#8216;GeoIP.dat&#8217;, Net_GeoIP::SHARED_MEMORY); $country_name = $geoip-&gt;lookupCountryName($_SERVER[&#8216;REMOTE_ADDR&#8217;]);print_r ($country_name);I am new to installing plugins with apache so please explain it in simpler terms. Thanks<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/cf1f0f71e61080fe4b03cf6c0ada9087?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nMirroredFate<br \/>\nphp json apache ubuntu<br \/>\nApache is logging PHP Fatal error: Call to undefined function json_decode(). After some googling, it seems this problem is a result of not having the latest version of php. Oddly, running php &#8211;version ouputs PHP 5.5.1-2+debphp.org~precise+2 (cli) (built: Aug 6 2013 10:49:43) Copyright (c) 1997-2013 The PHP Group Zend Engine v2.5.0, Copyright (c) 1998-2013 Zend Technologieswith Zend OPcache v7.0.2-dev, Copyright (c) 1999-2013, by Zend Technologieswith Xdebug v2.2.3, Copyright (c) 2002-2013, b<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/2926ac36fb4dd74b95c57019c2d26f08?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nuser1622874<br \/>\nspring apache tomcat spring-mvc<br \/>\nI&#8217;m a designer trying to work in an Apache\/Tomcat Environment. It is all set up with Spring Source, but seems to be very fragile and breaks frequently. Here is the latest error. I have tried to clean, but I may have done them in wrong order?Aug 25, 2013 9:08:13 AM org.apache.catalina.core.AprLifecycleListener init INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\\Program Files\\Java\\jdk1.7.0_25\\b<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/f38a77142bda47fc2a0c914fc3dd0d4c?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nInator<br \/>\nphp javascript apache nosql couchdb<br \/>\nI&#8217;ve recently successfully installed CouchDB version 1.2.1 and as a test I can access it using the following Apache rewrite in CentOS 6:RewriteRule couchdb\/(.*)$ http:\/\/127.0.0.1:5984\/$1 [QSA,P]I have a PHP authentication class that I use across a home grown API to support my mobile apps. My API accepts and authenticates each request using an HMAC signature that is included in the URL like so:https:\/\/api.domain.com\/endpoint\/?timestamp=[timestamp]&amp;signature=[signature]&amp;id=[id]&#8230;etcEach<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/06288dded18d1b525738107e8d1347a6?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nuser1158351<br \/>\njava apache hadoop mapreduce hdfs<br \/>\nMy Map Reduce works fine for small input file (approx 5MB). But it got hang when i have input file of aroung 35MB.In map reduce, there are 300 to 400 Mapper and 30 Reducer. When i use input file of 35MB, first Mapper shows its 100% complete but when i click to see status it shows as RUNNING.And in NameNode Log following errors :WARN org.apache.hadoop.hdfs.server.datanode.DataNode: DatanodeRegistration(127.0.0.1:50010, storageID=DS-365009190-ipAddress-50010-1328014561026, infoPort=50075, ipcPor<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/f824f512c43c20eb81b28c47d1924b68?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nSven<br \/>\njava tomcat fonts debian<br \/>\nI want to run Tomcat on Debian 5 Minimal. So I don&#8217;t need a gui for my OS, it&#8217;s just a pure Tomcat-Server.Which packages do I need for my JVM to use Fonts in my applications? Im drawing texts in Graphics2D and am creating PDF-Files in my Java-Project.<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/e22f9cc8787217b01665748f0c7723a4?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nuser1184777<br \/>\nlinux tomcat struts2<br \/>\nhi i developed an struts2 web application on my local machine and its working fine using http:\/\/localhost:6060 . but after that i created war file and give that to my admin for deploying [he is using tomcat 5, linux platform], when he tries to deploy war file it is showing false in the tomcat task manager even if you click start it wont start and display message in the message box.FAIL &#8211; Application at context path \/Sign_Up could not be started all other deploy war file[struts1.3, .net etc] wo<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/27402914cde9c23dcc6ed575b1a3d655?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nBert Speckels<br \/>\ntomcat java-ee cdi jboss-weld<br \/>\nAfter 2 days of debugging and trying I have no other idea than asking you for a solution.I want to use CDI (on JEE6) in a Tomcat WebApp with only simple plain old java objects (yet). As far as I know it is simply possible to inject POJO java classes into other POJO Java classes?!Here are my example classesclass ToBeInjected (Application-scoped \/ singleton) class InjectingExample ServletListener &#8220;ApplicationContextListener&#8221;The application-scoped (singleton) class &#8220;ToBeInjected&#8221;:import javax.enter<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/87d075d01b892703c75d3597c269e6e6?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nSoumya Simanta<br \/>\nspring tomcat maven apache-camel drools<br \/>\nI&#8217;ve a project that uses Apache Camel (2.10-SNAPSHOT) and Spring (3.0.7.RELEASE) with Tomcat (7.0.26). &lt;properties&gt;&lt;spring.version&gt;3.0.7.RELEASE&lt;\/spring.version&gt;&lt;camel.version&gt;2.10-SNAPSHOT&lt;\/camel.version&gt; &lt;\/properties&gt;Now I want to use the drools-camel component. So added the following in my pom.xml&lt;dependency&gt;&lt;groupId&gt;org.drools&lt;\/groupId&gt;&lt;artifactId&gt;drools-camel&lt;\/artifactId&gt;&lt;version&gt;5.3.0.Final&lt;\/version&gt; &lt;\/depende<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/21d35356b4f79af9d9cc01f042d61ae8?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nskiabox<br \/>\njava spring tomcat tomcat7 jndi<br \/>\nI am getting a BeanCreationException when I am trying to use Spring and jndi in my application. I am using these files :For Tomcat 7 :server.xml&lt;?xml version=&#8217;1.0&#8242; encoding=&#8217;utf-8&#8242;?&gt; &lt;!&#8211;Licensed to the Apache Software Foundation (ASF) under one or morecontributor license agreements. See the NOTICE file distributed withthis work for additional information regarding copyright ownership.The ASF licenses this file to You under the Apache License, Version 2.0(the &#8220;License&#8221;); you may not us<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/69ef5d19ed581a0fcc98857d0e89527d?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nCatfish<br \/>\njava jsf tomcat<br \/>\nWhen I start tomcat in my IDE with this specific project in there (adminapp), it just keeps restarting and restarting. here is my stack trace. if I walk away from my computer, I would see this hundreds of times.What would cause an app to keep doing this?Nov 11, 2011 3:25:36 PM org.apache.catalina.core.AprLifecycleListener init INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\\Program Files\\Java\\<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/eee8cb7f7c81fca931c599266aa3536a?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nP Hemans<br \/>\njava spring tomcat<br \/>\nweb.xml:&lt;?xml version=&#8221;1.0&#8243; encoding=&#8221;UTF-8&#8243;?&gt; &lt;web-app xmlns:xsi=&#8221;http:\/\/www.w3.org\/2001\/XMLSchema-instance&#8221; xmlns=&#8221;http:\/\/java.sun.com\/xml\/ns\/javaee&#8221; xmlns:web=&#8221;http:\/\/java.sun.com\/xml\/ns\/javaee\/web-app_2_5.xsd&#8221; xsi:schemaLocation=&#8221;http:\/\/java.sun.com\/xml\/ns\/javaee http:\/\/java.sun.com\/xml\/ns\/javaee\/web-app_3_0.xsd&#8221; id=&#8221;WebApp_ID&#8221; version=&#8221;3.0&#8243;&gt;&lt;display-name&gt;audiClave&lt;\/display-name&gt;&lt;context-param&gt;&lt;param-name&gt;webAppRootKey&lt;\/param-name&gt;&lt;param<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/49c72c5112682ba23a9564d7160c551c?s=32&amp;d=identicon&amp;r=PG&amp;f=1\" \/><br \/>\nuser2967758<br \/>\njsf tomcat cdi omnifaces weld<br \/>\nrunning on: Apache Tomcat 7.0.47 OmniFaces 1.6.3 JSF Mojarra 2.1.26 CDI Weld 2.1.0.FinalThrere is an RuntimeException on Apache Tomcat 7.0.47 by accessing JNDI &#8220;java:comp\/BeanManager&#8221;. The CDI BenManager is bound to &#8220;java:comp\/env\/BeanManager&#8221; vut not reached in your BeanManager Class.\/*** Perform automatic initialization whereby the bean manager is looked up from the JNDI. If the bean manager is* found, then invoke {@link #init(Object)} with the found bean manager.*\/private void init() {if (!in<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/419f8630287eea0be8bd1d526b47bdc8?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nThe Sea<br \/>\njava tomcat jacoco<br \/>\nWhen I start tomcat with jacoco agent, I get EXCEPTION_ACCESS_VIOLATION, and tomcat crashed. I noticed that this happen when I include persistent classes which are using by Hibernate. Any one have idea?EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x05b0eb48, pid=4376, tid=6544Here is the start up infoVM Arguments: jvm_args: -Djava.util.logging.config.file=C:\\apps\\tomcats\\apache-tomcat-7.0.29\/conf\/logging.properties -ea -Xms128M -Xmx768M -XX:MaxPermSize=256M -Dfile.encoding=utf-8 -Xverify:none &#8211;<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/2926ac36fb4dd74b95c57019c2d26f08?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nuser1622874<br \/>\nspring apache tomcat spring-mvc<br \/>\nI&#8217;m a designer trying to work in an Apache\/Tomcat Environment. It is all set up with Spring Source, but seems to be very fragile and breaks frequently. Here is the latest error. I have tried to clean, but I may have done them in wrong order?Aug 25, 2013 9:08:13 AM org.apache.catalina.core.AprLifecycleListener init INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\\Program Files\\Java\\jdk1.7.0_25\\b<\/li>\n<\/ul>\n<p>Web site is in building<\/p>\n","protected":false},"excerpt":{"rendered":"<p>David php apache .htaccess error-handling I current have this set in my htaccess:php_value error_reporting -1I want the log to only log fatal errors. What do I replace -1 with to do this? PeeHaa php apache shutdown error-log We are using LAMP Architecture. PHP Shutdown function is capturing some fatal errors. But these fatal errors are [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-6120","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/6120","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=6120"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/6120\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=6120"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=6120"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=6120"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}