sandeep1984
asked on
Problem with Log4J & Tomcat
HI,
I have a web application which is using :
1. Apache Tomcat 6
2. Hibernate 3.2 with Annotations.
3. Struts 1.2
When I try to start my tomcat (with my web app deployed), The following error/warning messages is being displayed.
Also tomcat hangs for around 5 minutes then.
I have updated my log4j version to 1.2.15, still the problem is not rectified.
Waiting for your suggestions.
Thanks
Sandeep
I have a web application which is using :
1. Apache Tomcat 6
2. Hibernate 3.2 with Annotations.
3. Struts 1.2
When I try to start my tomcat (with my web app deployed), The following error/warning messages is being displayed.
Also tomcat hangs for around 5 minutes then.
I have updated my log4j version to 1.2.15, still the problem is not rectified.
Waiting for your suggestions.
Thanks
Sandeep
C:\Tomcat60\bin>tomcat6
Jul 15, 2009 9:53:45 AM org.apache.catalina.core.AprLifecycleListener init
INFO: Loaded APR based Apache Tomcat Native library 1.1.16.
Jul 15, 2009 9:53:45 AM org.apache.catalina.core.AprLifecycleListener init
INFO: APR capabilities: IPv6 [true], sendfile [true], accept filters [false], ra
ndom [true].
Jul 15, 2009 9:53:46 AM org.apache.coyote.http11.Http11AprProtocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
Jul 15, 2009 9:53:46 AM org.apache.coyote.ajp.AjpAprProtocol init
INFO: Initializing Coyote AJP/1.3 on ajp-8009
Jul 15, 2009 9:53:46 AM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 1224 ms
Jul 15, 2009 9:53:46 AM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Jul 15, 2009 9:53:46 AM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/6.0.20
Jul 15, 2009 9:53:47 AM org.apache.catalina.startup.HostConfig deployWAR
INFO: Deploying web application archive e2cwebr3.war
log4j:WARN No appenders could be found for logger (org.apache.struts.util.Proper
tyMessageResources).
log4j:WARN Please initialize the log4j system properly.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
It's not an error anyway, it's a warning. Log4J will still work, it just won't do any output redirection and layout you might have wanted.
ASKER
Then, what might be the reason?
Please suggest me the solution.
Please suggest me the solution.
you haven't provided sufficient details to determine cause
ASKER
Can you please specify What are the details required??
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
> Can you please specify What are the details required??
check your other tomcat logs (eg. localhost log)
check your other tomcat logs (eg. localhost log)
ASKER
In my struts-config.xml
I have given
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE struts-config PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 1.2//EN"
"http://struts.apache.org/dtds/struts-config_1_2.dtd">
Id I remove DOCTYPE, tomcat works fine.
Is DOCTYPE necessary? Why it is used?
I have given
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE struts-config PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 1.2//EN"
"http://struts.apache.org/dtds/struts-config_1_2.dtd">
Id I remove DOCTYPE, tomcat works fine.
Is DOCTYPE necessary? Why it is used?
I would imagine the cause is different. The DOCTYPE should be there. It's there in all mine and i have no problems
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
good work, it would have been timing out trying to resolve that