I've never quite got debugging working in Eclipse (still using
logError), so I'm trying again; When I try to debug it, I get the following: Set OFBIZ_HOME to - C:/opt/ofbiz-release9.04 Admin socket not configured; set to port 0 Exception in thread "main" java.lang.ExceptionInInitializerError at org.ofbiz.base.util.Debug.<clinit>(Debug.java:86) at org.ofbiz.base.container.ContainerLoader.load(ContainerLoader.java:51) at org.ofbiz.base.start.Start.initStartLoaders(Start.java:250) at org.ofbiz.base.start.Start.init(Start.java:89) at org.ofbiz.base.start.Start.main(Start.java:398) Caused by: java.util.MissingResourceException: Can't find bundle for base name cache, locale en I can run the program from the command line, but then I'm not debugging it. |
You can use remote debugging (this is what I use).
Just uncomment the debugging line in startofbiz.bat and comment the existing startup line. That should open up port 5005 for remote debugging. Start ofbiz and then go to eclipse -> debug configurations -> new remote java application Enter a name, select the correct project and change the port to 5005. Click apply and then debug and you should be good to go. Regards Scott HotWax Media http://www.hotwaxmedia.com On 23/07/2010, at 9:06 AM, Patrick wrote: > I've never quite got debugging working in Eclipse (still using > logError), so I'm trying again; When I try to debug it, I get the > following: > > Set OFBIZ_HOME to - C:/opt/ofbiz-release9.04 > Admin socket not configured; set to port 0 > Exception in thread "main" java.lang.ExceptionInInitializerError > at org.ofbiz.base.util.Debug.<clinit>(Debug.java:86) > at org.ofbiz.base.container.ContainerLoader.load(ContainerLoader.java:51) > at org.ofbiz.base.start.Start.initStartLoaders(Start.java:250) > at org.ofbiz.base.start.Start.init(Start.java:89) > at org.ofbiz.base.start.Start.main(Start.java:398) > Caused by: java.util.MissingResourceException: Can't find bundle for > base name cache, locale en > > I can run the program from the command line, but then I'm not debugging it. smime.p7s (3K) Download Attachment |
Thanks Scott,
That seems to work. Patrick On Thu, Jul 22, 2010 at 4:17 PM, Scott Gray <[hidden email]> wrote: > You can use remote debugging (this is what I use). > > Just uncomment the debugging line in startofbiz.bat and comment the existing startup line. That should open up port 5005 for remote debugging. > > Start ofbiz and then go to eclipse -> debug configurations -> new remote java application > Enter a name, select the correct project and change the port to 5005. Click apply and then debug and you should be good to go. > > Regards > Scott > > HotWax Media > http://www.hotwaxmedia.com > > On 23/07/2010, at 9:06 AM, Patrick wrote: > >> I've never quite got debugging working in Eclipse (still using >> logError), so I'm trying again; When I try to debug it, I get the >> following: >> >> Set OFBIZ_HOME to - C:/opt/ofbiz-release9.04 >> Admin socket not configured; set to port 0 >> Exception in thread "main" java.lang.ExceptionInInitializerError >> at org.ofbiz.base.util.Debug.<clinit>(Debug.java:86) >> at org.ofbiz.base.container.ContainerLoader.load(ContainerLoader.java:51) >> at org.ofbiz.base.start.Start.initStartLoaders(Start.java:250) >> at org.ofbiz.base.start.Start.init(Start.java:89) >> at org.ofbiz.base.start.Start.main(Start.java:398) >> Caused by: java.util.MissingResourceException: Can't find bundle for >> base name cache, locale en >> >> I can run the program from the command line, but then I'm not debugging it. > > |
Administrator
|
At large
https://cwiki.apache.org/confluence/display/OFBIZ/Running+and+Debugging+OFBiz+in+Eclipse Jacques From: "Patrick" <[hidden email]> > Thanks Scott, > That seems to work. > Patrick > > On Thu, Jul 22, 2010 at 4:17 PM, Scott Gray <[hidden email]> wrote: >> You can use remote debugging (this is what I use). >> >> Just uncomment the debugging line in startofbiz.bat and comment the existing startup line. That should open up port 5005 for >> remote debugging. >> >> Start ofbiz and then go to eclipse -> debug configurations -> new remote java application >> Enter a name, select the correct project and change the port to 5005. Click apply and then debug and you should be good to go. >> >> Regards >> Scott >> >> HotWax Media >> http://www.hotwaxmedia.com >> >> On 23/07/2010, at 9:06 AM, Patrick wrote: >> >>> I've never quite got debugging working in Eclipse (still using >>> logError), so I'm trying again; When I try to debug it, I get the >>> following: >>> >>> Set OFBIZ_HOME to - C:/opt/ofbiz-release9.04 >>> Admin socket not configured; set to port 0 >>> Exception in thread "main" java.lang.ExceptionInInitializerError >>> at org.ofbiz.base.util.Debug.<clinit>(Debug.java:86) >>> at org.ofbiz.base.container.ContainerLoader.load(ContainerLoader.java:51) >>> at org.ofbiz.base.start.Start.initStartLoaders(Start.java:250) >>> at org.ofbiz.base.start.Start.init(Start.java:89) >>> at org.ofbiz.base.start.Start.main(Start.java:398) >>> Caused by: java.util.MissingResourceException: Can't find bundle for >>> base name cache, locale en >>> >>> I can run the program from the command line, but then I'm not debugging it. >> >> > |
I use standard eclipse debugging. From memory I think this problem is not having base/config in the classpath. Also I believe I had to comment out the webslinger container. Other than standard memory allocation parms, that was it.
Bob On 2010-07-22, at 8:06 PM, "Jacques Le Roux" <[hidden email]> wrote: > At large > https://cwiki.apache.org/confluence/display/OFBIZ/Running+and+Debugging+OFBiz+in+Eclipse > > Jacques > > From: "Patrick" <[hidden email]> >> Thanks Scott, >> That seems to work. >> Patrick >> >> On Thu, Jul 22, 2010 at 4:17 PM, Scott Gray <[hidden email]> wrote: >>> You can use remote debugging (this is what I use). >>> >>> Just uncomment the debugging line in startofbiz.bat and comment the existing startup line. That should open up port 5005 for remote debugging. >>> >>> Start ofbiz and then go to eclipse -> debug configurations -> new remote java application >>> Enter a name, select the correct project and change the port to 5005. Click apply and then debug and you should be good to go. >>> >>> Regards >>> Scott >>> >>> HotWax Media >>> http://www.hotwaxmedia.com >>> >>> On 23/07/2010, at 9:06 AM, Patrick wrote: >>> >>>> I've never quite got debugging working in Eclipse (still using >>>> logError), so I'm trying again; When I try to debug it, I get the >>>> following: >>>> >>>> Set OFBIZ_HOME to - C:/opt/ofbiz-release9.04 >>>> Admin socket not configured; set to port 0 >>>> Exception in thread "main" java.lang.ExceptionInInitializerError >>>> at org.ofbiz.base.util.Debug.<clinit>(Debug.java:86) >>>> at org.ofbiz.base.container.ContainerLoader.load(ContainerLoader.java:51) >>>> at org.ofbiz.base.start.Start.initStartLoaders(Start.java:250) >>>> at org.ofbiz.base.start.Start.init(Start.java:89) >>>> at org.ofbiz.base.start.Start.main(Start.java:398) >>>> Caused by: java.util.MissingResourceException: Can't find bundle for >>>> base name cache, locale en >>>> >>>> I can run the program from the command line, but then I'm not debugging it. >>> >>> > > |
In reply to this post by Patrick-4
Did you setup the VM variable ofbiz.home? Try setting the variable
-Dofbiz.home=<Your ofbiz home older> Thanks, Raj On 23/07/10 02:36, Patrick wrote: > I've never quite got debugging working in Eclipse (still using > logError), so I'm trying again; When I try to debug it, I get the > following: > > Set OFBIZ_HOME to - C:/opt/ofbiz-release9.04 > Admin socket not configured; set to port 0 > Exception in thread "main" java.lang.ExceptionInInitializerError > at org.ofbiz.base.util.Debug.<clinit>(Debug.java:86) > at org.ofbiz.base.container.ContainerLoader.load(ContainerLoader.java:51) > at org.ofbiz.base.start.Start.initStartLoaders(Start.java:250) > at org.ofbiz.base.start.Start.init(Start.java:89) > at org.ofbiz.base.start.Start.main(Start.java:398) > Caused by: java.util.MissingResourceException: Can't find bundle for > base name cache, locale en > > I can run the program from the command line, but then I'm not debugging it. > > |
Free forum by Nabble | Edit this page |