And I just did some more checking. I rebuilt the .jar file by extracting the log4j*.jar files into my .jar. Now it works. Apparently the jarinjarloader is causing problems for log4j
On Sat Jan 02 15:58:07 PST 2016 [email protected] said: >I knew I forgot to include something with that msg. Here is my log4j.xml - >which already has the packages entry. > ><?xml version="1.0" encoding="UTF-8"?> ><Configuration status="info" packages="com.casadelgato.zilladash"> ><Appenders> ><RollingRandomAccessFile name="Log" >fileName="${sys:user.home}/ZillaDash/logs/ZillaDash.log" >filePattern="${sys:user.home}/ZillaDash/logs/ZillaDash-%d{yyyyMMdd-HHmmss}.log"> ><PatternLayout pattern="%d{yy/MM/dd HH:mm:ss.SSS} [%20.20t] %-5level >%30.30logger - %msg%n" /> ><Policies> ><OnStartupTriggeringPolicy /> ><ManualTriggeringPolicy /> ></Policies> ></RollingRandomAccessFile> > ></Appenders> ><Loggers> ><Root level="info"> ><AppenderRef ref="Log" /> ></Root> ></Loggers> ></Configuration> > >I've checked, and if the packages entry is wrong, Eclipse also complains about >the Policy. >This makes me wonder if somehow the Eclipse "jarinjarloader" is causing the >clas lookup to fail? > >On Sat Jan 02 15:52:59 PST 2016 [email protected] said: >>You can try specifying the package of your custom plugin in the >><Configuration packages="com.yourdomain.yourpluginpackage" ...> attribute of >>your configuration. >> >>Sent from my iPhone >> >>> On 2016/01/03, at 8:22, John Lussmyer <[email protected]> wrote: >>> >>> On Mon Dec 21 15:16:14 PST 2015 [email protected] said: >>>> On Mon Dec 21 14:11:31 PST 2015 [email protected] said: >>>>> You would define it as a plugin. Look at how the CronTriggeringPolicy >>>>> does it. >>>> >>>> Okay, after re-reading the code, and doing some experiments - I have it >>>> working. >>>> Thanks! >>> >>> Well, I THOUGHT I had it working. >>> It works fine when I run the app from within Eclipse. >>> I use eclipse to generate a .jar file, then >>> If I run the jar via "java -jar <jarname>" I get: >>> >>> 2016-01-02 15:12:22,205 main ERROR Policies contains an invalid element or >>> attribute "ManualTriggeringPolicy" >>> >>> I'm using "log4j-core-2.5.jar" and "log4j-api-2.5.jar" >>> Both places are using Java 1.8. >>> >>> any ideas on where to look? >>> >>> >>> -- >>> >>> Worlds only All Electric F-250 truck! >>> http://john.casadelgato.com/Electric-Vehicles/1995-Ford-F-250 >>> >>> >>> >>> --------------------------------------------------------------------- >>> 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] > >-- > >Try my Sensible Email package! https://sourceforge.net/projects/sensibleemail/ >--------------------------------------------------------------------- >To unsubscribe, e-mail: [email protected] >For additional commands, e-mail: [email protected] -- Try my Sensible Email package! https://sourceforge.net/projects/sensibleemail/
--------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
