Leo Ayala

+ Follow
since Sep 16, 2015
Cows and Likes
Total received
In last 30 days
Total given
Total received
Received in last 30 days
Total given
Given in last 30 days
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Leo Ayala

Thanks for your help and patience. I'll continue looking.

5 years ago
The website folder is located in:


I checked the security settings for the folder and the Windows user group Everyone has Full control (all permissions). The log4j.properties file was from C:\apache-tomcat-8.0.24\webapps\[websitefolder]\WEB-INF\log4j.properties

I checked and there is a Logs directory C:\apache-tomcat-8.0.24\logs and there are several log files there. I stopped the tomcat service and deleted the logs. I restarted the tomcat service and it recreated several logs. I checked all of them and none have any errors. However, if I try to open the website, the logfile localhost.2015-09016.log shows an exception pointing to one of the classes.

5 years ago
Here's the content of log4j.properties file. This file is located in the website's WEF-INF folder (I'm not sure if it matters).

# Set root category priority to DEBUG and its only appender to A1.
log4j.rootCategory=DEBUG, A1, R

# A1 is set to be a ConsoleAppender.
log4j.rootLogger=debug, stdout
log4j.appender.A1.layout.ConversionPattern=%-4r [%t] %-5p %c %x - %m%n

; log4j.appender.R=org.apache.log4j.DailyRollingFileAppender
log4j.appender.R.layout.ConversionPattern=%-4r [%t] %-5p %c %x - %m%n

# Print only messages of priority ERROR or above in the package

5 years ago
Any ideas as to how I can configure the logging?

5 years ago
You may be correct. The website logs data to an ODBC database. I dint write the website and all of its db access classes. I don't know if the JDBC connections are hardcoded or if they must be configured via the Windows ODBC Manager. I guess I have to search the classes and find out.

5 years ago

I need help with an error that I'm seeing when trying to launch a web site.

I had a PC that was running Apache Tomcat v5.x. The web site that was hosted there was working fine but unfortunately, the PC had to be replaced. The new PC is running Windows Server 2012, whereas the old was running Windows Server 2003. I installed apache tomcat 8.0.24 (server). I also installed the latest Java JRE and JDK (1.8.0_60). The old PC was running JDK 1.4.2_04. I should tell you that I don't know much about tomcat nor Java. As far as the website, I just copied the folder from the old webapps directory into the same folder in the new tomcat installation. I don't know if this was the right way to do it.

I start tomcat (C:\apache...\bin\startup.bat) and all appears to start ok. I open a browser window and try to access the website. I get the error in the browser window: HTTP 500 Internal Server Error. In the command prompt where tomcat is running I see the error:

log4j:ERROR No appenders could be found for category (...[classname???]...)
log4j:ERROR Please initialize the log4j system properly.

I'm not sure what the errors mean. This was a website that was working ok on a different PC. It could be that running the new versions of tocat and java is causing them or maybe I didn't copy the website to the new PC correctly.

Does anyone have an idea?

Thanks in advance for you help.

5 years ago