apache,tomcatRelated issues-Collection of common programming errors


  • 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 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

  • racky
    php mysql linux apache
    I 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 “Fatal error: Call to a member function execute() on a non-object in”. 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

  • Adam Lynch
    php apache mongodb installation wamp
    I’m trying to execute this:<?php// connect $m = new Mongo();?>But I get the following error:Fatal error: Class ‘Mongo’ not found in C:\wamp\www…..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’ve followed the MongoDB installation fine (incl. adding the DLL to ext & php.ini), I’ve started mongod.exe and WAMP is running.What does this imply is missing/incorrect?Edit:I have got it running

  • Ghada Salem
    php apache imagemagick
    I am trying to install imagemagic php extension under WampServer 2.I’ve downloaded and installed ImageMagick . I’ve chosen ImageMagick-6.8.8-10-Q16-x86-dll.exe I’ve downloaded the php extension. I’ve moved the dll extension I just downloaded to C:\wamp\bin\php\php5.4.16\ext\ I’ve altered php.ini (accessed it through wamp tray icon > right-click > PHP > php.ini) and added “extension=php_imagick.dll”, without the quotes, to the extensions lists. I restarted Apache. Not noticing the extension disp

  • billybobisking
    php apache geolocation geoip
    I have installed net_geoip on my web host and am encountering the error Fatal error: Class ‘Net_GeoIP’ 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(‘GeoIP.dat’, Net_GeoIP::SHARED_MEMORY); $country_name = $geoip->lookupCountryName($_SERVER[‘REMOTE_ADDR’]);print_r ($country_name);I am new to installing plugins with apache so please explain it in simpler terms. Thanks

  • MirroredFate
    php json apache ubuntu
    Apache 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 –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

  • user1622874
    spring apache tomcat spring-mvc
    I’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

  • Inator
    php javascript apache nosql couchdb
    I’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]&signature=[signature]&id=[id]…etcEach

  • user1158351
    java apache hadoop mapreduce hdfs
    My 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

  • Sven
    java tomcat fonts debian
    I want to run Tomcat on Debian 5 Minimal. So I don’t need a gui for my OS, it’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.

  • user1184777
    linux tomcat struts2
    hi 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 – Application at context path /Sign_Up could not be started all other deploy war file[struts1.3, .net etc] wo

  • Bert Speckels
    tomcat java-ee cdi jboss-weld
    After 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 “ApplicationContextListener”The application-scoped (singleton) class “ToBeInjected”:import javax.enter

  • Soumya Simanta
    spring tomcat maven apache-camel drools
    I’ve a project that uses Apache Camel (2.10-SNAPSHOT) and Spring (3.0.7.RELEASE) with Tomcat (7.0.26). <properties><spring.version>3.0.7.RELEASE</spring.version><camel.version>2.10-SNAPSHOT</camel.version> </properties>Now I want to use the drools-camel component. So added the following in my pom.xml<dependency><groupId>org.drools</groupId><artifactId>drools-camel</artifactId><version>5.3.0.Final</version> </depende

  • skiabox
    java spring tomcat tomcat7 jndi
    I 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<?xml version=’1.0′ encoding=’utf-8′?> <!–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 “License”); you may not us

  • Catfish
    java jsf tomcat
    When 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\

  • P Hemans
    java spring tomcat
    web.xml:<?xml version=”1.0″ encoding=”UTF-8″?> <web-app xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance” xmlns=”http://java.sun.com/xml/ns/javaee” xmlns:web=”http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd” xsi:schemaLocation=”http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd” id=”WebApp_ID” version=”3.0″><display-name>audiClave</display-name><context-param><param-name>webAppRootKey</param-name><param

  • user2967758
    jsf tomcat cdi omnifaces weld
    running 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 “java:comp/BeanManager”. The CDI BenManager is bound to “java:comp/env/BeanManager” 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

  • The Sea
    java tomcat jacoco
    When 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 –

  • user1622874
    spring apache tomcat spring-mvc
    I’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

Web site is in building