I downloaded the source for version 1.2.11, but there is a small change to the source that I needed to make (DailyRollingFileAppender's rollOver() method), and now I want to build a jar to link into my project.
-Lawrence On Thu, Sep 15, 2005 at 04:53:18PM -0500, Harp, George wrote: > it looks like you are running this from downloaded log4j source? IS it the > latest? > Have you tried using latest log4j jar instead of compiling against the > source? > (ie download latest jar and link it into your project). or is your goal to > compile > log4j latest and greatest? > > -----Original Message----- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > Sent: Thursday, September 15, 2005 4:49 PM > To: Log4J Users List > Subject: Re: jaxp.jar and parser.jar? > > > Ok, I changed target to 1.5, and all is well until it gets to: > > build.jmx: > [javac] Compiling 7 source files to > /home/lawrence/eclipse/workspace/log4j/dist/classes > [javac] > /home/lawrence/eclipse/workspace/log4j/src/java/org/apache/log4j/jmx/Agent.java:22: > package com.sun.jdmk.comm does not exist > [javac] import com.sun.jdmk.comm.HtmlAdaptorServer; > [javac] ^ > [javac] > /home/lawrence/eclipse/workspace/log4j/src/java/org/apache/log4j/jmx/Agent.java:39: > cannot find symbol > [javac] symbol : class HtmlAdaptorServer > [javac] location: class org.apache.log4j.jmx.Agent > [javac] HtmlAdaptorServer html = new HtmlAdaptorServer(); > [javac] ^ > [javac] > /home/lawrence/eclipse/workspace/log4j/src/java/org/apache/log4j/jmx/Agent.java:39: > cannot find symbol > [javac] symbol : class HtmlAdaptorServer > [javac] location: class org.apache.log4j.jmx.Agent > [javac] HtmlAdaptorServer html = new HtmlAdaptorServer(); > [javac] ^ > [javac] > /home/lawrence/eclipse/workspace/log4j/src/java/org/apache/log4j/jmx/AppenderDynamicMBean.java:242: > warning: non-varargs call of varargs method with inexact argument type for > last parameter; > [javac] cast to java.lang.Object for a varargs call > [javac] cast to java.lang.Object[] for a non-varargs call and to suppress > this warning > [javac] return mu.readMethod.invoke(appender, null); > [javac] ^ > [javac] > /home/lawrence/eclipse/workspace/log4j/src/java/org/apache/log4j/jmx/LayoutDynamicMBean.java:189: > warning: non-varargs call of varargs method with inexact argument type for > last parameter; > [javac] cast to java.lang.Object for a varargs call > [javac] cast to java.lang.Object[] for a non-varargs call and to suppress > this warning > [javac] return mu.readMethod.invoke(layout, null); > [javac] ^ > [javac] Note: Some input files use unchecked or unsafe operations. > [javac] Note: Recompile with -Xlint:unchecked for details. > [javac] 3 errors > [javac] 2 warnings > > Suggestions? > > -Lawrence > > On Thu, Sep 15, 2005 at 04:46:23PM -0500, Harp, George wrote: > > if you take out target="1.1 you should be ok. If you want top use target= > > try target="1.5" -- but better to read ant doc on > > javac -- ant has great reference material so it will be fast > > > > -----Original Message----- > > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > > Sent: Thursday, September 15, 2005 4:45 PM > > To: Log4J Users List > > Subject: Re: jaxp.jar and parser.jar? > > > > > > <target name="build.core" depends="init"> > > <mkdir dir="${javac.dest}" /> > > <javac srcdir="${java.source.dir}" > > destdir="${javac.dest}" > > includes="${stem}/**/*.java, > > ${stem}/xml/XMLLayout.java" > > excludes="misc/*, **/UnitTest*.java, > > **/StressCategory.java, > > **/doc-files/*, > > ${stem}/xml/**, > > ${stem}/test/serialization/**, > > ${stem}/net/SMTPAppender.java, > > ${stem}/net/JMS*.java, > > ${stem}/jmx/*.java, > > ${stem}/or/jms/*.java" > > target="1.1" > > deprecation="${deprecation}" > > debug="on"> > > <classpath refid="compile.classpath"/> > > </javac> > > > > <copy todir="${javac.dest}"> > > <fileset dir="${java.source.dir}" > > includes="${stem}/lf5/**/*.properties"/> > > <fileset dir="${java.source.dir}" > > includes="${stem}/lf5/viewer/images/*"/> > > </copy> > > > > </target> > > > > Should I change target="1.1" to target="1.5"? > > > > -Lawrence > > > > On Thu, Sep 15, 2005 at 04:41:58PM -0500, Harp, George wrote: > > > can you cut and paste the target in your ant file that compiles it? > > > > > > -----Original Message----- > > > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > > > Sent: Thursday, September 15, 2005 4:41 PM > > > To: Log4J Users List > > > Subject: Re: jaxp.jar and parser.jar? > > > > > > > > > I am attempting to make the jar file with ant. > > > > > > I only have jdk1.5 installed at this time. > > > > > > -Lawrence > > > > > > On Thu, Sep 15, 2005 at 04:38:58PM -0500, Harp, George wrote: > > > > you are getting conflicts. javax.jms refers to JMS java message service > > > > ie EJB. > > > > > > > > As far as target release ... How are you naking the jar file? ant file? > > > > IDE? Maven? > > > > > > > > -----Original Message----- > > > > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > > > > Sent: Thursday, September 15, 2005 4:35 PM > > > > To: Log4J Users List > > > > Subject: Re: jaxp.jar and parser.jar? > > > > > > > > > > > > I made some minor modifications to the source code and I'm trying to > > > > build a new jar file. I'm getting this error: > > > > > > > > javac: target release 1.1 conflicts with default source release 1.5 > > > > > > > > Which I assume means I need to install jdk1.1 (fun). > > > > > > > > However, I am also getting some other compile errors (in eclipse) like: > > > > > > > > The import javax.jms cannot be resolved MessageRenderer.java > > > > > > > > Which I assume is because of the missing jar files. > > > > > > > > -Lawrence > > > > > > > > On Thu, Sep 15, 2005 at 04:32:36PM -0500, Harp, George wrote: > > > > > did you check inside the jars see if there is an apache package? > > > > > > > > > > Do you just want the log4j jar file? > > > > > > > > > > -----Original Message----- > > > > > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > > > > > Sent: Thursday, September 15, 2005 4:31 PM > > > > > To: [email protected] > > > > > Subject: jaxp.jar and parser.jar? > > > > > > > > > > > > > > > According to the INSTALL notes: > > > > > > > > > > "Log4j is shipped with jaxp.jar and parser.jar files under the > > > > > build/lib/ directory." > > > > > > > > > > however build/lib/ is no where to be found, and I have no clue how to > > > > > get these jar files. > > > > > > > > > > Thanks! > > > > > > > > > > -Lawrence > > > > > > > > > > --------------------------------------------------------------------- > > > > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > > > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > > > --------------------------------------------------------------------- > > > > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > > > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > --------------------------------------------------------------------- > > > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > --------------------------------------------------------------------- > > > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > --------------------------------------------------------------------- > > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > --------------------------------------------------------------------- > > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
