You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ofbiz.apache.org by Patrick <pa...@gmail.com> on 2010/07/22 23:06:35 UTC
Debugging in Eclipse
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.
Re: Debugging in Eclipse
Posted by Raj Saini <ra...@gmail.com>.
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.
>
>
Re: Debugging in Eclipse
Posted by Robert Morley <rm...@emforium.com>.
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" <ja...@les7arts.com> wrote:
> At large
> https://cwiki.apache.org/confluence/display/OFBIZ/Running+and+Debugging+OFBiz+in+Eclipse
>
> Jacques
>
> From: "Patrick" <pa...@gmail.com>
>> Thanks Scott,
>> That seems to work.
>> Patrick
>>
>> On Thu, Jul 22, 2010 at 4:17 PM, Scott Gray <sc...@hotwaxmedia.com> 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.
>>>
>>>
>
>
Re: Debugging in Eclipse
Posted by Jacques Le Roux <ja...@les7arts.com>.
At large
https://cwiki.apache.org/confluence/display/OFBIZ/Running+and+Debugging+OFBiz+in+Eclipse
Jacques
From: "Patrick" <pa...@gmail.com>
> Thanks Scott,
> That seems to work.
> Patrick
>
> On Thu, Jul 22, 2010 at 4:17 PM, Scott Gray <sc...@hotwaxmedia.com> 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.
>>
>>
>
Re: Debugging in Eclipse
Posted by Patrick <pa...@gmail.com>.
Thanks Scott,
That seems to work.
Patrick
On Thu, Jul 22, 2010 at 4:17 PM, Scott Gray <sc...@hotwaxmedia.com> 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.
>
>
Re: Debugging in Eclipse
Posted by Scott Gray <sc...@hotwaxmedia.com>.
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.