You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ofbiz.apache.org by rajesh jain <yo...@gmail.com> on 2013/08/01 14:44:06 UTC

Facing problem while try to set OfBiz locally

Hi All,

Spare me for sending this mail on *dev@ofbiz.apache.org* as I am not
getting any response from *user@ofbiz.apache.org. *I am trying to set my
Ofbiz and my aim is to participate in development of ofBiz.
*
*
So thought of first setting the Ofbiz locally so that I could build it and
participate in it.
I am using *ofbiz-rel12.04-current. *I have imported it to my eclipse
successfully.

Now when I try to follow the

https://cwiki.apache.org/confluence/display/OFBIZ/Running+and+Debugging+OFBiz+in+Eclipse#RunningandDebuggingOFBizinEclipse-debuggingInEclipse


after step 1 that is

Step 1: Run OFBiz in debug mode

I am getting problems.

In the error.logs, "*ofbiz_12_04\runtime\logs" , *I could see this error.


2013-08-01 15:25:59,675 (catalina-startup-0) [
 UtilXml.java:1060:ERROR] XmlFileLoader: File
file:/C:/personal/softwares/ecommerce/usethis_release/ofbiz_12_04/specialpurpose/ecommerce/webapp/ecommerce/WEB-INF/web.xml
process error. Line: 165. Error message: The content of element type
"web-app" must match
"(icon?,display-name?,description?,distributable?,context-param*,filter*,filter-mapping*,listener*,servlet*,servlet-mapping*,session-config?,mime-mapping*,welcome-file-list?,error-page*,taglib*,resource-env-ref*,resource-ref*,security-constraint*,login-config?,security-role*,env-entry*,ejb-ref*,ejb-local-ref*)".



and when I try

Step 2: Connect to OFBiz with Eclipse as a Debugger


I am getting
*
*
*Failed to connect to remote VM. Connection refused.*
*Connection refused: connect*
*
*
*
*
*Please please Help me to sort out this problem...or guide me to some forum
where I can post my problem.*
*
*
*
*
*Regards,*
*Rajesh Jain*

Re: Facing problem while try to set OfBiz locally

Posted by rajesh jain <yo...@gmail.com>.
Hello Jacques,

Thanks for your reply.I will take care of it.

I have not modified anything yet in OFBIZ as I am not confident enough on
it and even for modifying i guess there shall be proper channel for
reviewing the code and then checking in the repository.

I will look in to it again which you have mentioned.

Regards,
Rajesh jain



On Sat, Aug 3, 2013 at 4:47 PM, Jacques Le Roux <
jacques.le.roux@les7arts.com> wrote:

> If you know the rule follow it, else you will only get irritated OFBiz
> developers against you, not a good idea when seeking for help...
> There are no OFBiz forums the medias are OFBiz MLs (Nabble is only a
> duplicate)
>
> You are not following sections and steps in the right order (you mixed the
> 2 sections)
> There are 2 kinds of use:
> 1) Remote Debugging OFBiz in Eclipse
> 2) Debugging (or running) OFBiz in Eclipse
>
> I have even explained in the lines following the TOC
> <<
> Remote Debugging OFBiz in Eclipse
> This is the official recommended way for debugging OFBiz. It's fine.
> Personnaly (Jacques Le Roux) I use also the second method below Debugging
> (or running) OFBiz in Eclipse because I find it convenient (but I'm
> certainly biased having used such tools for a pretty long time now). For
> instance, it's really helpful when it comes to debug the framework java
> code. When someone has screwed up the framework java code and you can't
> load OFBiz. Then it's an easy way to debug OFBiz using inside debugging.
> Though using the remote debugging technique, you may also suspend the JVM
> through the command line options at start up. Effectively the JVM boots,
> stops and waits for a debugger to connect and then it continues so you can
> still use remote debugging. Just put suspend=y in the start options
> alongside the socket and ports settings (thanks Ray)>>
>
> Anyway, I have edited the page to make it even more clear...
>
> Also, you did not change anything in OFBiz, right?
>
> Jacques
>
>
> ----- Original Message -----
> From: "rajesh jain" <yo...@gmail.com>
> To: <de...@ofbiz.apache.org>; <us...@ofbiz.apache.org>
> Sent: Thursday, August 01, 2013 2:44 PM
> Subject: Facing problem while try to set OfBiz locally
>
>
> Hi All,
>
> Spare me for sending this mail on *dev@ofbiz.apache.org* as I am not
> getting any response from *user@ofbiz.apache.org. *I am trying to set my
> Ofbiz and my aim is to participate in development of ofBiz.
> *
> *
> So thought of first setting the Ofbiz locally so that I could build it and
> participate in it.
> I am using *ofbiz-rel12.04-current. *I have imported it to my eclipse
> successfully.
>
> Now when I try to follow the
>
>
> https://cwiki.apache.org/confluence/display/OFBIZ/Running+and+Debugging+OFBiz+in+Eclipse#RunningandDebuggingOFBizinEclipse-debuggingInEclipse
>
>
> after step 1 that is
>
> Step 1: Run OFBiz in debug mode
>
> I am getting problems.
>
> In the error.logs, "*ofbiz_12_04\runtime\logs" , *I could see this error.
>
>
> 2013-08-01 15:25:59,675 (catalina-startup-0) [
>  UtilXml.java:1060:ERROR] XmlFileLoader: File
>
> file:/C:/personal/softwares/ecommerce/usethis_release/ofbiz_12_04/specialpurpose/ecommerce/webapp/ecommerce/WEB-INF/web.xml
> process error. Line: 165. Error message: The content of element type
> "web-app" must match
>
> "(icon?,display-name?,description?,distributable?,context-param*,filter*,filter-mapping*,listener*,servlet*,servlet-mapping*,session-config?,mime-mapping*,welcome-file-list?,error-page*,taglib*,resource-env-ref*,resource-ref*,security-constraint*,login-config?,security-role*,env-entry*,ejb-ref*,ejb-local-ref*)".
>
>
>
> and when I try
>
> Step 2: Connect to OFBiz with Eclipse as a Debugger
>
>
> I am getting
> *
> *
> *Failed to connect to remote VM. Connection refused.*
> *Connection refused: connect*
> *
> *
> *
> *
> *Please please Help me to sort out this problem...or guide me to some forum
> where I can post my problem.*
> *
> *
> *
> *
> *Regards,*
> *Rajesh Jain*
>

Re: Facing problem while try to set OfBiz locally

Posted by Jacques Le Roux <ja...@les7arts.com>.
If you know the rule follow it, else you will only get irritated OFBiz developers against you, not a good idea when seeking for help...
There are no OFBiz forums the medias are OFBiz MLs (Nabble is only a duplicate)

You are not following sections and steps in the right order (you mixed the 2 sections)
There are 2 kinds of use:
1) Remote Debugging OFBiz in Eclipse
2) Debugging (or running) OFBiz in Eclipse

I have even explained in the lines following the TOC 
<<
Remote Debugging OFBiz in Eclipse
This is the official recommended way for debugging OFBiz. It's fine. Personnaly (Jacques Le Roux) I use also the second method below Debugging (or running) OFBiz in Eclipse because I find it convenient (but I'm certainly biased having used such tools for a pretty long time now). For instance, it's really helpful when it comes to debug the framework java code. When someone has screwed up the framework java code and you can't load OFBiz. Then it's an easy way to debug OFBiz using inside debugging. Though using the remote debugging technique, you may also suspend the JVM through the command line options at start up. Effectively the JVM boots, stops and waits for a debugger to connect and then it continues so you can still use remote debugging. Just put suspend=y in the start options alongside the socket and ports settings (thanks Ray)>>

Anyway, I have edited the page to make it even more clear...

Also, you did not change anything in OFBiz, right?

Jacques


----- Original Message ----- 
From: "rajesh jain" <yo...@gmail.com>
To: <de...@ofbiz.apache.org>; <us...@ofbiz.apache.org>
Sent: Thursday, August 01, 2013 2:44 PM
Subject: Facing problem while try to set OfBiz locally


Hi All,

Spare me for sending this mail on *dev@ofbiz.apache.org* as I am not
getting any response from *user@ofbiz.apache.org. *I am trying to set my
Ofbiz and my aim is to participate in development of ofBiz.
*
*
So thought of first setting the Ofbiz locally so that I could build it and
participate in it.
I am using *ofbiz-rel12.04-current. *I have imported it to my eclipse
successfully.

Now when I try to follow the

https://cwiki.apache.org/confluence/display/OFBIZ/Running+and+Debugging+OFBiz+in+Eclipse#RunningandDebuggingOFBizinEclipse-debuggingInEclipse


after step 1 that is

Step 1: Run OFBiz in debug mode

I am getting problems.

In the error.logs, "*ofbiz_12_04\runtime\logs" , *I could see this error.


2013-08-01 15:25:59,675 (catalina-startup-0) [
 UtilXml.java:1060:ERROR] XmlFileLoader: File
file:/C:/personal/softwares/ecommerce/usethis_release/ofbiz_12_04/specialpurpose/ecommerce/webapp/ecommerce/WEB-INF/web.xml
process error. Line: 165. Error message: The content of element type
"web-app" must match
"(icon?,display-name?,description?,distributable?,context-param*,filter*,filter-mapping*,listener*,servlet*,servlet-mapping*,session-config?,mime-mapping*,welcome-file-list?,error-page*,taglib*,resource-env-ref*,resource-ref*,security-constraint*,login-config?,security-role*,env-entry*,ejb-ref*,ejb-local-ref*)".



and when I try

Step 2: Connect to OFBiz with Eclipse as a Debugger


I am getting
*
*
*Failed to connect to remote VM. Connection refused.*
*Connection refused: connect*
*
*
*
*
*Please please Help me to sort out this problem...or guide me to some forum
where I can post my problem.*
*
*
*
*
*Regards,*
*Rajesh Jain*