running ofbiz in Eclipse

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

running ofbiz in Eclipse

Khalid Sultan
Hi,
 
I have tried to run Ofbiz in eclipse but I couldn't. I imported the ofbiz project to eclipse. It doesn't give any errors. Running (build.xml) as ant works well and builds successful. However, when  I type (http://localhost:8080/ecommerce) into the URL, it doesn't give me any thing. So, I am wondering if can help me in this.
 
Thanks in advance.
 
Regads,
 
Khalid Sultan 
 


Reply | Threaded
Open this post in threaded view
|

Re: running ofbiz in Eclipse

Bob Morley
Hi Khalid,

I seem to recall that if you do a build and then start Ofbiz (without loading seed data) it simply gives you no page and no error message.  Usually I run the "run-install" ant target before starting things up.

As for executing in Eclipse, I have to do the following things (from memory) --

- add config folder to the classpath (\framework\base\config) this is required by Start to find all of the components in the classpath
- edit ofbiz-containers.xml and comment out the "commons-vfs-container" and "webslinger-container" both of these cause me problems due to classpath issues; and I do not make use of either of them

After that you can run/debug the Start application (giving it reasonable memory -Xmx512M should do it).  Having said all of this; I believe a lot of people simply run the ant target and then attach the eclipse debugger to that running process.

Good luck!

----- Original Message -----
From: "Khalid Sultan" <[hidden email]>
To: [hidden email]
Sent: Monday, April 12, 2010 4:39:44 PM
Subject: running ofbiz in Eclipse

Hi,
 
I have tried to run Ofbiz in eclipse but I couldn't. I imported the ofbiz project to eclipse. It doesn't give any errors. Running (build.xml) as ant works well and builds successful. However, when  I type (http://localhost:8080/ecommerce) into the URL, it doesn't give me any thing. So, I am wondering if can help me in this.
 
Thanks in advance.
 
Regads,
 
Khalid Sultan