*
The moose likes JForum and the fly likes log4j Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » JForum
Bookmark "log4j" Watch "log4j" New topic
Author

log4j

Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
log4j did't work before I move log4j.xml file from /WEB-INF/ to /WEB-INF/classes/ and fix this path in sources.

stdout_20060818.log before moving:
log4j:WARN No appenders could be found for logger (org.apache.catalina.startup.TldConfig).
log4j:WARN Please initialize the log4j system properly.

After moving all work properly:
17:34:59 INFO TilesPlugin Tiles definition factory loaded for module ''.
17:36:21 INFO TilesRequestProcessor Tiles definition factory found for request processor ''.


Win2k AS SP4, Tomcat 5.5.17, MySQL 5.0.22.
[originally posted on jforum.net by VVD]
Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
confirmed.

I added the following in the build.xml file.

original:
<target name="compile" description="Compiles the source code">
<mkdir dir="${classes}"/>

<!-- Compile the java code from ${src} into ${classes} -->
<javac srcdir="${src}" destdir="${classes}" <br /> debug="${compile.debug}" deprecation="${compile.deprecation}" <br /> source="${compile.source}" target="${compile.target}" optimize="${compile.optimize}">
<classpath>
<path refid="base.path"/>
</classpath>
</javac>

</target>


Changed to:
<target name="compile" description="Compiles the source code">
<mkdir dir="${classes}"/>

<!-- Compile the java code from ${src} into ${classes} -->
<javac srcdir="${src}" destdir="${classes}" <br /> debug="${compile.debug}" deprecation="${compile.deprecation}" <br /> source="${compile.source}" target="${compile.target}" optimize="${compile.optimize}">
<classpath>
<path refid="base.path"/>
</classpath>
</javac>

<!-- copy log4j.xml into ${classes} -->
<copy file="WEB-INF/log4j.xml" todir="${classes}"/>


</target>


[originally posted on jforum.net by roach]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: log4j
 
Similar Threads
Tomcat 6.0.35 hangs during startup
Help! I am getting strange and unusual Eclipse Warnings
See Servlet Spec 2.3, section 9.7.2.
Configuring Log4j in my Web App
problem connection hibernate eclipse oracle10g