Hi
I got ofbiz source using : svn co http://svn.ofbiz.org/svn/ofbiz/trunk ofbiz
Which version of ofbiz is it by downloading source through SVN this way? Current stable release or most recent development build? There is no README file or other description file about the source which I would normally expect.
2nd quesiton: When I import ofbiz into Eclipse and build it, I got the following build error:
Project ofbiz is missing required library: 'base/lib/j2eespecs/geronimo-javamail_1.3.1_spec-1.0.jar'
I can not found the asked jar file from the source of the project. What am I missing?
-CB
_______________________________________________ Dev mailing list [hidden email] http://lists.ofbiz.org/mailman/listinfo/dev |
Administrator
|
Hi Chris,
This would normally go to Users ML as it's not really about dev but use of OFBiz. So I create a new thread in User ML, thanks. Please see my comments inline. >Which version of ofbiz is it by downloading source through SVN this way? Current stable release or most recent development build? There is no README file or other description file about the source which I would normally expect. It's most recent development build. You are expected to know that prior to downloading (see http://www.ofbiz.org/docs/setup.html#Building and http://www.ofbiz.org/docs/GettingAndUsingOFBiz.pdf) even if I must admit that it's not pretty clear (perhaps a word about that and opentaps will be good in http://svn.ofbiz.org/) . If you prefer to use stable releases use opentaps preferably (was Sequoia ERP some times ago). But in last case you'll not be able to propose patches. >2nd quesiton: When I import ofbiz into Eclipse and build it, I got the following build error: Project ofbiz is missing required library: 'base/lib/j2eespecs/geronimo-javamail_1.3.1_spec-1.0.jar'. I can not found the asked jar file from the source of the project. What am I missing? Which revision are you using ? This file was removed in rev. 7745. BTW I got no problem in Eclipse compiling last rev. (7795) with standard build.xml file. Perhaps try "ant clean" then rebuild (ant or ant run-install). Jacques >-CB _______________________________________________ Dev mailing list [hidden email] http://lists.ofbiz.org/mailman/listinfo/dev _______________________________________________ Dev mailing list [hidden email] http://lists.ofbiz.org/mailman/listinfo/dev |
Thank you Jacques,
1. How do I find out which revision of my source I just checked out thru SVN guest access?
2. The build error occurs when I build it by selecting Eclipse menu Project > Build Project (or Porject > Clean). It ask me for the mentioned jar file.
But interestingly, when I right click build.xml and select Run As > Ant Build within Eclipse, the build is successful. Even though the build is successful, I still can not launch the debugger and Eclipse complains about the above build error.
Can you explain a little more about how you compile ofbiz with Eclipse? Using Ant build or IDE build? Thanks.
-CB
On 6/15/06, Jacques Le Roux <[hidden email]> wrote:
Hi Chris, _______________________________________________ Dev mailing list [hidden email] http://lists.ofbiz.org/mailman/listinfo/dev |
Administrator
|
As
I mentionned before, please user the Users ML for this kind of
topic
On command line "svn info". In general, on
Windows Toirtoise SVN is a good tool. On Eclipse Subclipse is the
plugin.
I always build with ant even in Eclipse.
But if you want to use the debugger you must also let Eclipse builds. I use
Eclipse build always in backgroud feature (Menu
Windows/Preferences/General)
Don't forget to read these pages, helpful
too :
I can't understand why with the last rev
from svn you have a reference to this file, are you sure you are using last rev
in Eclipse ?
Jacques
_______________________________________________ Dev mailing list [hidden email] http://lists.ofbiz.org/mailman/listinfo/dev |
I tried "svn info" but it gives me results like this: svn: ?\226?\128?\156.?\....ect. which is meaningless to me. Are you suggesting there is no indication of ofbiz version or revision # from the source that I can look it up? How do you know last rev. is 7795? Anyway I can tell from the source I downloaded.
Don't forget to read these pages, helpful too :
<a onclick="return top.js.OpenExtLink(window,event,this)" href="http://ofbizwiki.go-integral.com/Wiki.jsp?page=DebuggingOFBizInEclipse" target="_blank">http://ofbizwiki.go-integral.com/Wiki.jsp?page=DebuggingOFBizInEclipse
<a onclick="return top.js.OpenExtLink(window,event,this)" href="http://ofbizwiki.go-integral.com/Wiki.jsp?page=OfbizInEclipse" target="_blank">http://ofbizwiki.go-integral.com/Wiki.jsp?page=OfbizInEclipse
I can't understand why with the last rev from svn you have a reference to this file, are you sure you are using last rev in Eclipse ? Jacques I don't know my source revision #. I downloaded it thru SVN yesterday. Supposely it is the last rev.. I assume Eclipse build dispatch the job to Ant build behind the scene, I don't know why Eclipse Ant build succeed while Eclipse IDE build failed. I do need debugger and hope to make IDE build working.
-CB _______________________________________________ Dev mailing list [hidden email] http://lists.ofbiz.org/mailman/listinfo/dev |
Administrator
|
You may also know your revision # using "svn
up" (will upgrade to the last rev btw).
It seems that you have some things to learn before
being confortable with OFBiz... You may at least take a look at http://www.ofbiz.org/documents.html
If you really need a debugger, one sure way is to
look at NetBeans 5.0 thru this link : http://ofbizwiki.go-integral.com/Wiki.jsp?page=OFBizInNetBeans5.0
I had to use it 3 weeks agoto be able to debug
the POS application (which is another problem...). Very easy to learn and use,
thanks to Vinay.
Jacques
----- Original Message -----
_______________________________________________ Dev mailing list [hidden email] http://lists.ofbiz.org/mailman/listinfo/dev |
In reply to this post by Chuck22
Hi Chris,
The eclipse's classpath is not up to date. The attached patch fix this issue. (geronimo-javamail_1.3.1_spec-1.0.jar has been replaced by mail.jar) Can someone commit it ? Peter Le mercredi 14 juin 2006 à 22:19 -0400, Chris Bai a écrit : > 2nd quesiton: When I import ofbiz into Eclipse and build it, I got the > following build error: > > Project ofbiz is missing required library: > 'base/lib/j2eespecs/geronimo-javamail_1.3.1_spec-1.0.jar' > > I can not found the asked jar file from the source of the project. > What am I missing? > > -CB > > > _______________________________________________ > Dev mailing list > [hidden email] > http://lists.ofbiz.org/mailman/listinfo/dev _______________________________________________ Dev mailing list [hidden email] http://lists.ofbiz.org/mailman/listinfo/dev eclipse-classpath.patch (945 bytes) Download Attachment |
Administrator
|
Thanks Peter for pointing that.
After that Chris you'll have to add some other lines in the .classpath file to be able to debug. Look at "Troubleshooting" from steve_mew in this page http://ofbizwiki.go-integral.com/Wiki.jsp?page=OfbizInEclipse and so on... Jacques ----- Original Message ----- From: "Peter Goron" <[hidden email]> To: "OFBiz Project Development Discussion" <[hidden email]> Sent: Friday, June 16, 2006 10:07 AM Subject: Re: [OFBiz] Dev - version on svn downloads & Eclipse build error. > Hi Chris, > > The eclipse's classpath is not up to date. The attached patch fix this > issue. (geronimo-javamail_1.3.1_spec-1.0.jar has been replaced by > mail.jar) > > Can someone commit it ? > > Peter > > > Le mercredi 14 juin 2006 à 22:19 -0400, Chris Bai a écrit : > > 2nd quesiton: When I import ofbiz into Eclipse and build it, I got the > > following build error: > > > > Project ofbiz is missing required library: > > 'base/lib/j2eespecs/geronimo-javamail_1.3.1_spec-1.0.jar' > > > > I can not found the asked jar file from the source of the project. > > What am I missing? > > > > -CB > > > > > > _______________________________________________ > > Dev mailing list > > [hidden email] > > http://lists.ofbiz.org/mailman/listinfo/dev > -------------------------------------------------------------------------------- > > _______________________________________________ > Dev mailing list > [hidden email] > http://lists.ofbiz.org/mailman/listinfo/dev _______________________________________________ Dev mailing list [hidden email] http://lists.ofbiz.org/mailman/listinfo/dev |
Administrator
|
In reply to this post by Peter Goron
Thanks Peter for pointing that.
Chris, anyway even before that you will need to add some lines in your classpath. I was able to run OFBiz in debug mode today with the attached .classpath files but you may have to adapt it to your specifical needs. The 3 blocks at end were added by me at hand or using Eclipse debug option (better to use Eclipse but I had a .classpath file wich was working before and pasted from it) BTW I will create a new Jira issue to put a patch for people wanting to run debug in Eclipse (including Peter's patch) Jacques ----- Original Message ----- From: "Peter Goron" <[hidden email]> To: "OFBiz Project Development Discussion" <[hidden email]> Sent: Friday, June 16, 2006 10:07 AM Subject: Re: [OFBiz] Dev - version on svn downloads & Eclipse build error. > Hi Chris, > > The eclipse's classpath is not up to date. The attached patch fix this > issue. (geronimo-javamail_1.3.1_spec-1.0.jar has been replaced by > mail.jar) > > Can someone commit it ? > > Peter > > > Le mercredi 14 juin 2006 à 22:19 -0400, Chris Bai a écrit : > > 2nd quesiton: When I import ofbiz into Eclipse and build it, I got the > > following build error: > > > > Project ofbiz is missing required library: > > 'base/lib/j2eespecs/geronimo-javamail_1.3.1_spec-1.0.jar' > > > > I can not found the asked jar file from the source of the project. > > What am I missing? > > > > -CB > > > > > > _______________________________________________ > > Dev mailing list > > [hidden email] > > http://lists.ofbiz.org/mailman/listinfo/dev > -------------------------------------------------------------------------------- > > _______________________________________________ > Dev mailing list > [hidden email] > http://lists.ofbiz.org/mailman/listinfo/dev _______________________________________________ Dev mailing list [hidden email] http://lists.ofbiz.org/mailman/listinfo/dev .classpath (11K) Download Attachment |
Jacques & Peter
The attached .classpath works for me. Now, I can compile ofbiz without any error in Eclipse. Thank you.
-C.B.
On 6/16/06, Jacques Le Roux <[hidden email]> wrote:
Thanks Peter for pointing that. _______________________________________________ Dev mailing list [hidden email] http://lists.ofbiz.org/mailman/listinfo/dev |
Administrator
|
Chris,
There is a better way to debug in Eclipse, try this
: http://docs.ofbiz.org/display/OFBIZ/Debugging+OFBiz+in+Eclipse
Jacques
_______________________________________________ Dev mailing list [hidden email] http://lists.ofbiz.org/mailman/listinfo/dev |
Administrator
|
If you have no access (maintenance), try this
instead http://ofbizwiki.go-integral.com/Wiki.jsp?page=DebuggingOFBizInEclipse
Jacques
_______________________________________________ Dev mailing list [hidden email] http://lists.ofbiz.org/mailman/listinfo/dev |
In reply to this post by Jacques Le Roux
Jacques,
I followed the instruction "Running (or debugging) OFBiz in Eclipse", but I got the following error when start debugging OFBIZ in Eclipse:
43643 (main) [ GenericDispatcher.java:85 :INFO ] [LocalDispatcher] : Created Dispatcher for: RMIDispatcher 43743 (OFBiz_Shutdown_Hook) [ JavaMailContainer.java:153:INFO ] stop JavaMail poller
java.lang.NullPointerException at org.ofbiz.service.rmi.RmiServiceContainer.stop(RmiServiceContainer.java:171) at org.ofbiz.base.container.ContainerLoader.unload (ContainerLoader.java:108) at org.ofbiz.base.start.Start.shutdownServer(Start.java:309) at org.ofbiz.base.start.Start.access$0(Start.java:303) at org.ofbiz.base.start.Start$1.run(Start.java:286) I did not mofidy any source code and I did not get any compile error. Anything am I missing?
-CB
On 6/19/06, Jacques Le Roux <[hidden email]> wrote:
_______________________________________________ Dev mailing list [hidden email] http://lists.ofbiz.org/mailman/listinfo/dev |
Administrator
|
Is your SDK path without blanks ? ("Program files"
typically no good for RMI)
Jacques
_______________________________________________ Dev mailing list [hidden email] http://lists.ofbiz.org/mailman/listinfo/dev |
My SDK path is C:\j2sdk1.4.2_12. But Eclipse was installed under Program Files. Is this an issue?
Windows > Preferences > Java > Installed JRE
j2sdk1.4.2_12 Location:C:\j2sdk1.4.2_12 Type: Standard VM
-CB
On 6/19/06, Jacques Le Roux <[hidden email]> wrote:
_______________________________________________ Dev mailing list [hidden email] http://lists.ofbiz.org/mailman/listinfo/dev |
Administrator
|
_______________________________________________ Dev mailing list [hidden email] http://lists.ofbiz.org/mailman/listinfo/dev |
You have to comment on the RMI stuff in base/config/ofbiz-containers.xml to run in Eclipse. I don't think RMI works in either Eclipse or NetBeans.
On Jun 19, 2006, at 10:08 AM, Jacques Le Roux wrote:
_______________________________________________ Dev mailing list [hidden email] http://lists.ofbiz.org/mailman/listinfo/dev |
Administrator
|
Following <A
onclick="return top.js.OpenExtLink(window,event,this)"
href="http://docs.ofbiz.org/display/OFBIZ/Debugging+OFBiz+in+Eclipse"
target=_blank>http://docs.ofbiz.org/display/OFBIZ/Debugging+OFBiz+in+Eclipse
I have no problem with RMI running (or debugging) in Eclipse nor in
NetBeans. I must also say that in fact I don't tried to use RMI in these
environments. But I think that this is not Chris's problem.
Jacques
_______________________________________________ Dev mailing list [hidden email] http://lists.ofbiz.org/mailman/listinfo/dev |
Huh...well I stand corrected then. I've never been able to get those things to work, but obviously you're better at this than I am! ;)
Si On Jun 19, 2006, at 11:38 AM, Jacques Le Roux wrote:
_______________________________________________ Dev mailing list [hidden email] http://lists.ofbiz.org/mailman/listinfo/dev |
Administrator
|
Si,
I struggled a lot ;o) And without the help
of Vinay for Netbeans and Peter for Eclipse would have never achieved these
docs.
If interested try these pages below, it's
very esay now with these recipes.
Jacques
_______________________________________________ Dev mailing list [hidden email] http://lists.ofbiz.org/mailman/listinfo/dev |
Free forum by Nabble | Edit this page |