Hi,
I just checked out latest version from trunk, ran ant (default target build) and then startofbiz.bat, I get ClassNotFound exception on log4j which is in the framework\base\lib directory and has the class Priority. And there is no other older log4j anywhere under ofbiz. Strangely, my older version of Ofbiz works fine the only thing different I did this time ofcourse is I didnt run ant run-install-seed (like I mentioned I ran ant build instead) for obvious reasons. I put debug statements in Start.java and it shows log4j jar in classpath. Will appreciate any help. Admin socket not configured; set to port 0 Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/log4j/Prio rity at org.ofbiz.base.container.ContainerLoader.load(ContainerLoader.java:51 ) at org.ofbiz.base.start.Start.initStartLoaders(Start.java:252) at org.ofbiz.base.start.Start.init(Start.java:89) at org.ofbiz.base.start.Start.main(Start.java:400) C:\Opensource\ofbiz>REM This one is for more of a debugging mode C:\Opensource\ofbiz>REM "C:\Programs\Java\jdk1.5.0_13\bin\java" -Xms128M -Xmx512 M -Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y, suspend=n,address=5005 -jar ofbiz.jar > runtime\logs\console.log |
Please update again. This was fixed yesterday in the evening (well, evening in the USA anyway). -David On Jun 30, 2008, at 2:33 PM, Ritz123 wrote: > > Hi, > > I just checked out latest version from trunk, ran ant (default > target build) > and then startofbiz.bat, I get ClassNotFound exception on log4j > which is in > the framework\base\lib directory and has the class Priority. And > there is no > other older log4j anywhere under ofbiz. > > Strangely, my older version of Ofbiz works fine the only thing > different I > did this time ofcourse is I didnt run ant run-install-seed (like I > mentioned > I ran ant build instead) for obvious reasons. > > I put debug statements in Start.java and it shows log4j jar in > classpath. > Will appreciate any help. > > Admin socket not configured; set to port 0 > Exception in thread "main" java.lang.NoClassDefFoundError: > org/apache/log4j/Prio > rity > at > org.ofbiz.base.container.ContainerLoader.load(ContainerLoader.java:51 > ) > at org.ofbiz.base.start.Start.initStartLoaders(Start.java:252) > at org.ofbiz.base.start.Start.init(Start.java:89) > at org.ofbiz.base.start.Start.main(Start.java:400) > > C:\Opensource\ofbiz>REM This one is for more of a debugging mode > > C:\Opensource\ofbiz>REM "C:\Programs\Java\jdk1.5.0_13\bin\java" - > Xms128M > -Xmx512 > M -Xdebug -Xnoagent -Djava.compiler=NONE > -Xrunjdwp:transport=dt_socket,server=y, > suspend=n,address=5005 -jar ofbiz.jar > runtime\logs\console.log > > -- > View this message in context: http://www.nabble.com/Checked-out-latest-from-trunk---Getting-ClassNotFoundException-tp18203773p18203773.html > Sent from the OFBiz - User mailing list archive at Nabble.com. > |
David,
I am in US and I did update again 1 min ago. I have C:\Opensource\ofbiz>svn update At revision 672909. I still get that exception. I have DEBUG=true set which shows classpath and classloader if you are interested.
|
Forgot to ask, which file has a fix? I didnt see any update on Start.java, Classpath.java or ContainerClassloader.java etc files. Just to make sure I have the fix.
THanks
|
Administrator
|
Did you try to run "ant clean" ?
Jacques From: "Ritz123" <[hidden email]> > > Forgot to ask, which file has a fix? I didnt see any update on Start.java, > Classpath.java or ContainerClassloader.java etc files. Just to make sure I > have the fix. > > THanks > > > > Ritz123 wrote: >> >> David, >> >> I am in US and I did update again 1 min ago. I have >> >> C:\Opensource\ofbiz>svn update >> At revision 672909. >> >> I still get that exception. I have DEBUG=true set which shows classpath >> and classloader if you are interested. >> >> >> >> >> David E Jones wrote: >>> >>> >>> Please update again. This was fixed yesterday in the evening (well, >>> evening in the USA anyway). >>> >>> -David >>> >>> >>> On Jun 30, 2008, at 2:33 PM, Ritz123 wrote: >>> >>>> >>>> Hi, >>>> >>>> I just checked out latest version from trunk, ran ant (default >>>> target build) >>>> and then startofbiz.bat, I get ClassNotFound exception on log4j >>>> which is in >>>> the framework\base\lib directory and has the class Priority. And >>>> there is no >>>> other older log4j anywhere under ofbiz. >>>> >>>> Strangely, my older version of Ofbiz works fine the only thing >>>> different I >>>> did this time ofcourse is I didnt run ant run-install-seed (like I >>>> mentioned >>>> I ran ant build instead) for obvious reasons. >>>> >>>> I put debug statements in Start.java and it shows log4j jar in >>>> classpath. >>>> Will appreciate any help. >>>> >>>> Admin socket not configured; set to port 0 >>>> Exception in thread "main" java.lang.NoClassDefFoundError: >>>> org/apache/log4j/Prio >>>> rity >>>> at >>>> org.ofbiz.base.container.ContainerLoader.load(ContainerLoader.java:51 >>>> ) >>>> at org.ofbiz.base.start.Start.initStartLoaders(Start.java:252) >>>> at org.ofbiz.base.start.Start.init(Start.java:89) >>>> at org.ofbiz.base.start.Start.main(Start.java:400) >>>> >>>> C:\Opensource\ofbiz>REM This one is for more of a debugging mode >>>> >>>> C:\Opensource\ofbiz>REM "C:\Programs\Java\jdk1.5.0_13\bin\java" - >>>> Xms128M >>>> -Xmx512 >>>> M -Xdebug -Xnoagent -Djava.compiler=NONE >>>> -Xrunjdwp:transport=dt_socket,server=y, >>>> suspend=n,address=5005 -jar ofbiz.jar > runtime\logs\console.log >>>> >>>> -- >>>> View this message in context: >>>> http://www.nabble.com/Checked-out-latest-from-trunk---Getting-ClassNotFoundException-tp18203773p18203773.html >>>> Sent from the OFBiz - User mailing list archive at Nabble.com. >>>> >>> >>> >>> >> >> > > -- > View this message in context: > http://www.nabble.com/Checked-out-latest-from-trunk---Getting-ClassNotFoundException-tp18203773p18204167.html > Sent from the OFBiz - User mailing list archive at Nabble.com. > |
Yap - ant clean did it.
Thanks guys.
|
Free forum by Nabble | Edit this page |