Java 6 Question

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

Java 6 Question

samhamilton
Hi Guys,

I see that there is a vote going on at the moment about java 6 - I am
wondering if this would also mean that it would be possible to run OFBiz
using openJDK once this migration has been done?


Cheers
Sam
Reply | Threaded
Open this post in threaded view
|

Re: Java 6 Question

Shi Jinghai
We have used OpenJDK (on Fedora) for a while. There is no problem at
all.

Regards,

Shi Jinghai/Beijing Langhua Ltd.


在 2009-12-01二的 15:32 +0800,Sam Hamilton写道:
> Hi Guys,
>
> I see that there is a vote going on at the moment about java 6 - I am
> wondering if this would also mean that it would be possible to run OFBiz
> using openJDK once this migration has been done?
>
>
> Cheers
> Sam

Reply | Threaded
Open this post in threaded view
|

Re: Java 6 Question

Jacques Le Roux
Administrator
This is very intereting because it allows to create packages for Linux systems. And this would increase much OFBiz visibility...

Jacques

From: "Shi Jinghai" <[hidden email]>

> We have used OpenJDK (on Fedora) for a while. There is no problem at
> all.
>
> Regards,
>
> Shi Jinghai/Beijing Langhua Ltd.
>
>
> 在 2009-12-01二的 15:32 +0800,Sam Hamilton写道:
>> Hi Guys,
>>
>> I see that there is a vote going on at the moment about java 6 - I am
>> wondering if this would also mean that it would be possible to run OFBiz
>> using openJDK once this migration has been done?
>>
>>
>> Cheers
>> Sam
>


Reply | Threaded
Open this post in threaded view
|

Re: Java 6 Question

Shi Jinghai
Yes, I see. That's a great idea. Not sure how Apache(httpd) and Tomcat
became a part of Linux releases, create a self maintained repository at
the 1st step and then try to merge it into Linux releases step by step?

Shi Jinghai

在 2009-12-01二的 10:53 +0100,Jacques Le Roux写道:

> This is very intereting because it allows to create packages for Linux systems. And this would increase much OFBiz visibility...
>
> Jacques
>
> From: "Shi Jinghai" <[hidden email]>
> > We have used OpenJDK (on Fedora) for a while. There is no problem at
> > all.
> >
> > Regards,
> >
> > Shi Jinghai/Beijing Langhua Ltd.
> >
> >
> > 在 2009-12-01二的 15:32 +0800,Sam Hamilton写道:
> >> Hi Guys,
> >>
> >> I see that there is a vote going on at the moment about java 6 - I am
> >> wondering if this would also mean that it would be possible to run OFBiz
> >> using openJDK once this migration has been done?
> >>
> >>
> >> Cheers
> >> Sam
> >
>
>

Reply | Threaded
Open this post in threaded view
|

Re: Java 6 Question

samhamilton
I dug this out from the fedora wiki -
http://fedoraproject.org/wiki/PackageMaintainers which explains how to
get a package submitted but at the moment the trunk r885762 fails to
build so I am guessing Shi that you have fixed a few things to get it
working.

Sam


Shi Jinghai wrote:

> Yes, I see. That's a great idea. Not sure how Apache(httpd) and Tomcat
> became a part of Linux releases, create a self maintained repository at
> the 1st step and then try to merge it into Linux releases step by step?
>
> Shi Jinghai
>
> 在 2009-12-01二的 10:53 +0100,Jacques Le Roux写道:
>  
>> This is very intereting because it allows to create packages for Linux systems. And this would increase much OFBiz visibility...
>>
>> Jacques
>>
>> From: "Shi Jinghai" <[hidden email]>
>>    
>>> We have used OpenJDK (on Fedora) for a while. There is no problem at
>>> all.
>>>
>>> Regards,
>>>
>>> Shi Jinghai/Beijing Langhua Ltd.
>>>
>>>
>>> 在 2009-12-01二的 15:32 +0800,Sam Hamilton写道:
>>>      
>>>> Hi Guys,
>>>>
>>>> I see that there is a vote going on at the moment about java 6 - I am
>>>> wondering if this would also mean that it would be possible to run OFBiz
>>>> using openJDK once this migration has been done?
>>>>
>>>>
>>>> Cheers
>>>> Sam
>>>>        
>>    
>
>  

Reply | Threaded
Open this post in threaded view
|

Re: Java 6 Question

Shi Jinghai
Thank you for the link, Sam! I have used Red Hat over 10 years, but
shame, never contribute any code back.

BTW, we use 09.04 release branch.


在 2009-12-01二的 21:49 +0800,Sam Hamilton写道:

> I dug this out from the fedora wiki -
> http://fedoraproject.org/wiki/PackageMaintainers which explains how to
> get a package submitted but at the moment the trunk r885762 fails to
> build so I am guessing Shi that you have fixed a few things to get it
> working.
>
> Sam
>
>
> Shi Jinghai wrote:
> > Yes, I see. That's a great idea. Not sure how Apache(httpd) and Tomcat
> > became a part of Linux releases, create a self maintained repository at
> > the 1st step and then try to merge it into Linux releases step by step?
> >
> > Shi Jinghai
> >
> > 在 2009-12-01二的 10:53 +0100,Jacques Le Roux写道:
> >  
> >> This is very intereting because it allows to create packages for Linux systems. And this would increase much OFBiz visibility...
> >>
> >> Jacques
> >>
> >> From: "Shi Jinghai" <[hidden email]>
> >>    
> >>> We have used OpenJDK (on Fedora) for a while. There is no problem at
> >>> all.
> >>>
> >>> Regards,
> >>>
> >>> Shi Jinghai/Beijing Langhua Ltd.
> >>>
> >>>
> >>> 在 2009-12-01二的 15:32 +0800,Sam Hamilton写道:
> >>>      
> >>>> Hi Guys,
> >>>>
> >>>> I see that there is a vote going on at the moment about java 6 - I am
> >>>> wondering if this would also mean that it would be possible to run OFBiz
> >>>> using openJDK once this migration has been done?
> >>>>
> >>>>
> >>>> Cheers
> >>>> Sam
> >>>>        
> >>    
> >
> >  
>

Reply | Threaded
Open this post in threaded view
|

Re: Java 6 Question

BJ Freeman
In reply to this post by Shi Jinghai
comes with centos 5 and works out of the box
java version "1.6.0"
OpenJDK  Runtime Environment (build 1.6.0-b09)
OpenJDK Client VM (build 1.6.0-b09, mixed mode)


Sam Hamilton sent the following on 12/1/2009 5:49 AM:

> I dug this out from the fedora wiki -
> http://fedoraproject.org/wiki/PackageMaintainers which explains how to
> get a package submitted but at the moment the trunk r885762 fails to
> build so I am guessing Shi that you have fixed a few things to get it
> working.
>
> Sam
>
>
> Shi Jinghai wrote:
>> Yes, I see. That's a great idea. Not sure how Apache(httpd) and Tomcat
>> became a part of Linux releases, create a self maintained repository at
>> the 1st step and then try to merge it into Linux releases step by step?
>>
>> Shi Jinghai
>>
>> 在 2009-12-01二的 10:53 +0100,Jacques Le Roux写道:
>>  
>>> This is very intereting because it allows to create packages for
>>> Linux systems. And this would increase much OFBiz visibility...
>>>
>>> Jacques
>>>
>>> From: "Shi Jinghai" <[hidden email]>
>>>    
>>>> We have used OpenJDK (on Fedora) for a while. There is no problem at
>>>> all.
>>>>
>>>> Regards,
>>>>
>>>> Shi Jinghai/Beijing Langhua Ltd.
>>>>
>>>>
>>>> 在 2009-12-01二的 15:32 +0800,Sam Hamilton写道:
>>>>      
>>>>> Hi Guys,
>>>>>
>>>>> I see that there is a vote going on at the moment about java 6 - I am
>>>>> wondering if this would also mean that it would be possible to run
>>>>> OFBiz
>>>>> using openJDK once this migration has been done?
>>>>>
>>>>>
>>>>> Cheers
>>>>> Sam
>>>>>        
>>>    
>>
>>  
>
>

Reply | Threaded
Open this post in threaded view
|

Re: Java 6 Question

samhamilton
Shi - yep the branch builds fine but the trunk errors out with the
following error:

classes:
  [javac15] Compiling 54 source files to
/opt/ofbiz/applications/product/build/classes
  [javac15]
/opt/ofbiz/applications/product/src/org/ofbiz/product/config/ProductConfigWorker.java:139:
warning: [deprecation]
getProductvirtualVariantMethod(org.ofbiz.entity.Delegator,java.lang.String)
in org.ofbiz.product.product.ProductWorker has been deprecated
  [javac15]                                         if
("VV_FEATURETREE".equals(ProductWorker.getProductvirtualVariantMethod((Delegator)request.getAttribute("delegator"),
selectedProdcutId))) {
 
[javac15]                                                                                  
^
  [javac15]
/opt/ofbiz/applications/product/src/org/ofbiz/product/product/ProductSearchSession.java:1220:
cannot find symbol
  [javac15] symbol  : method
add(java.util.Map<java.lang.String,java.lang.Object>)
  [javac15] location: interface
java.util.List<java.util.Map<java.lang.String,java.lang.String>>
  [javac15]            
featureCountList.add(UtilMisc.toMap("productFeatureId", (String)
searchResult.get("pfacProductFeatureId"), "productFeatureTypeId",
(String) searchResult.get("pfcProductFeatureTypeId"), "description",
(String) searchResult.get("pfcDescription"), "featureCount",
Long.toString((Long) searchResult.get("featureCount"))));
  [javac15]                             ^
  [javac15] Note:
/opt/ofbiz/applications/product/src/org/ofbiz/product/product/ProductSearch.java
uses unchecked or unsafe operations.
  [javac15] Note: Recompile with -Xlint:unchecked for details.
  [javac15] 1 error
  [javac15] 1 warning

BUILD FAILED
/opt/ofbiz/build.xml:192: The following error occurred while executing
this line:
/opt/ofbiz/applications/build.xml:67: The following error occurred while
executing this line:
/opt/ofbiz/macros.xml:27: The following error occurred while executing
this line:
/opt/ofbiz/applications/product/build.xml:67: Compile failed; see the
compiler error output for details.




BJ Freeman wrote:

> comes with centos 5 and works out of the box
> java version "1.6.0"
> OpenJDK  Runtime Environment (build 1.6.0-b09)
> OpenJDK Client VM (build 1.6.0-b09, mixed mode)
>
>
> Sam Hamilton sent the following on 12/1/2009 5:49 AM:
>  
>> I dug this out from the fedora wiki -
>> http://fedoraproject.org/wiki/PackageMaintainers which explains how to
>> get a package submitted but at the moment the trunk r885762 fails to
>> build so I am guessing Shi that you have fixed a few things to get it
>> working.
>>
>> Sam
>>
>>
>> Shi Jinghai wrote:
>>    
>>> Yes, I see. That's a great idea. Not sure how Apache(httpd) and Tomcat
>>> became a part of Linux releases, create a self maintained repository at
>>> the 1st step and then try to merge it into Linux releases step by step?
>>>
>>> Shi Jinghai
>>>
>>> 在 2009-12-01二的 10:53 +0100,Jacques Le Roux写道:
>>>  
>>>      
>>>> This is very intereting because it allows to create packages for
>>>> Linux systems. And this would increase much OFBiz visibility...
>>>>
>>>> Jacques
>>>>
>>>> From: "Shi Jinghai" <[hidden email]>
>>>>    
>>>>        
>>>>> We have used OpenJDK (on Fedora) for a while. There is no problem at
>>>>> all.
>>>>>
>>>>> Regards,
>>>>>
>>>>> Shi Jinghai/Beijing Langhua Ltd.
>>>>>
>>>>>
>>>>> 在 2009-12-01二的 15:32 +0800,Sam Hamilton写道:
>>>>>      
>>>>>          
>>>>>> Hi Guys,
>>>>>>
>>>>>> I see that there is a vote going on at the moment about java 6 - I am
>>>>>> wondering if this would also mean that it would be possible to run
>>>>>> OFBiz
>>>>>> using openJDK once this migration has been done?
>>>>>>
>>>>>>
>>>>>> Cheers
>>>>>> Sam
>>>>>>        
>>>>>>            
>>>>    
>>>>        
>>>  
>>>      
>>    
>
>  

Reply | Threaded
Open this post in threaded view
|

Re: Java 6 Question

Shi Jinghai
That's the pain to follow trunk.

Not sure whether OFBiz has used the Hudson. If yes, I think Hudson report
will help you to know which the latest version has passed build and test
without any errors.

Good luck,

Shi Jinghai/Beijing Langhua Ltd.


在 2009-12-03四的 11:42 +0800,Sam Hamilton写道:

> Shi - yep the branch builds fine but the trunk errors out with the
> following error:
>
> classes:
>   [javac15] Compiling 54 source files to
> /opt/ofbiz/applications/product/build/classes
>   [javac15]
> /opt/ofbiz/applications/product/src/org/ofbiz/product/config/ProductConfigWorker.java:139:
> warning: [deprecation]
> getProductvirtualVariantMethod(org.ofbiz.entity.Delegator,java.lang.String)
> in org.ofbiz.product.product.ProductWorker has been deprecated
>   [javac15]                                         if
> ("VV_FEATURETREE".equals(ProductWorker.getProductvirtualVariantMethod((Delegator)request.getAttribute("delegator"),
> selectedProdcutId))) {
>  
> [javac15]                                                                                  
> ^
>   [javac15]
> /opt/ofbiz/applications/product/src/org/ofbiz/product/product/ProductSearchSession.java:1220:
> cannot find symbol
>   [javac15] symbol  : method
> add(java.util.Map<java.lang.String,java.lang.Object>)
>   [javac15] location: interface
> java.util.List<java.util.Map<java.lang.String,java.lang.String>>
>   [javac15]            
> featureCountList.add(UtilMisc.toMap("productFeatureId", (String)
> searchResult.get("pfacProductFeatureId"), "productFeatureTypeId",
> (String) searchResult.get("pfcProductFeatureTypeId"), "description",
> (String) searchResult.get("pfcDescription"), "featureCount",
> Long.toString((Long) searchResult.get("featureCount"))));
>   [javac15]                             ^
>   [javac15] Note:
> /opt/ofbiz/applications/product/src/org/ofbiz/product/product/ProductSearch.java
> uses unchecked or unsafe operations.
>   [javac15] Note: Recompile with -Xlint:unchecked for details.
>   [javac15] 1 error
>   [javac15] 1 warning
>
> BUILD FAILED
> /opt/ofbiz/build.xml:192: The following error occurred while executing
> this line:
> /opt/ofbiz/applications/build.xml:67: The following error occurred while
> executing this line:
> /opt/ofbiz/macros.xml:27: The following error occurred while executing
> this line:
> /opt/ofbiz/applications/product/build.xml:67: Compile failed; see the
> compiler error output for details.
>
>
>
>
> BJ Freeman wrote:
> > comes with centos 5 and works out of the box
> > java version "1.6.0"
> > OpenJDK  Runtime Environment (build 1.6.0-b09)
> > OpenJDK Client VM (build 1.6.0-b09, mixed mode)
> >
> >
> > Sam Hamilton sent the following on 12/1/2009 5:49 AM:
> >  
> >> I dug this out from the fedora wiki -
> >> http://fedoraproject.org/wiki/PackageMaintainers which explains how to
> >> get a package submitted but at the moment the trunk r885762 fails to
> >> build so I am guessing Shi that you have fixed a few things to get it
> >> working.
> >>
> >> Sam
> >>
> >>
> >> Shi Jinghai wrote:
> >>    
> >>> Yes, I see. That's a great idea. Not sure how Apache(httpd) and Tomcat
> >>> became a part of Linux releases, create a self maintained repository at
> >>> the 1st step and then try to merge it into Linux releases step by step?
> >>>
> >>> Shi Jinghai
> >>>
> >>> 在 2009-12-01二的 10:53 +0100,Jacques Le Roux写道:
> >>>  
> >>>      
> >>>> This is very intereting because it allows to create packages for
> >>>> Linux systems. And this would increase much OFBiz visibility...
> >>>>
> >>>> Jacques
> >>>>
> >>>> From: "Shi Jinghai" <[hidden email]>
> >>>>    
> >>>>        
> >>>>> We have used OpenJDK (on Fedora) for a while. There is no problem at
> >>>>> all.
> >>>>>
> >>>>> Regards,
> >>>>>
> >>>>> Shi Jinghai/Beijing Langhua Ltd.
> >>>>>
> >>>>>
> >>>>> 在 2009-12-01二的 15:32 +0800,Sam Hamilton写道:
> >>>>>      
> >>>>>          
> >>>>>> Hi Guys,
> >>>>>>
> >>>>>> I see that there is a vote going on at the moment about java 6 - I am
> >>>>>> wondering if this would also mean that it would be possible to run
> >>>>>> OFBiz
> >>>>>> using openJDK once this migration has been done?
> >>>>>>
> >>>>>>
> >>>>>> Cheers
> >>>>>> Sam
> >>>>>>        
> >>>>>>            
> >>>>    
> >>>>        
> >>>  
> >>>      
> >>    
> >
> >  
>

Reply | Threaded
Open this post in threaded view
|

Re: Java 6 Question

samhamilton
Thanks Shi.

I found that OFBiz trunk is in Hudson and from what I can tell is only
building against sun-java6-jdk-1.6.0.10
(http://ci.apache.org/builders/ofbiz-trunk) but I totally could be
reading this wrong.

Does it make sense to add openJDK to the build list to make sure that
ofbiz is compatible - I ask this as a total layman and only for the POV
that being able to one day "yum install ofbiz-trunk" / "apt-get install
ofbiz-trunk" would be a great way to get the project into many more less
technical hands.

Sam


Shi Jinghai wrote:

> That's the pain to follow trunk.
>
> Not sure whether OFBiz has used the Hudson. If yes, I think Hudson report
> will help you to know which the latest version has passed build and test
> without any errors.
>
> Good luck,
>
> Shi Jinghai/Beijing Langhua Ltd.
>
>
> 在 2009-12-03四的 11:42 +0800,Sam Hamilton写道:
>  
>> Shi - yep the branch builds fine but the trunk errors out with the
>> following error:
>>
>> classes:
>>   [javac15] Compiling 54 source files to
>> /opt/ofbiz/applications/product/build/classes
>>   [javac15]
>> /opt/ofbiz/applications/product/src/org/ofbiz/product/config/ProductConfigWorker.java:139:
>> warning: [deprecation]
>> getProductvirtualVariantMethod(org.ofbiz.entity.Delegator,java.lang.String)
>> in org.ofbiz.product.product.ProductWorker has been deprecated
>>   [javac15]                                         if
>> ("VV_FEATURETREE".equals(ProductWorker.getProductvirtualVariantMethod((Delegator)request.getAttribute("delegator"),
>> selectedProdcutId))) {
>>  
>> [javac15]                                                                                  
>> ^
>>   [javac15]
>> /opt/ofbiz/applications/product/src/org/ofbiz/product/product/ProductSearchSession.java:1220:
>> cannot find symbol
>>   [javac15] symbol  : method
>> add(java.util.Map<java.lang.String,java.lang.Object>)
>>   [javac15] location: interface
>> java.util.List<java.util.Map<java.lang.String,java.lang.String>>
>>   [javac15]            
>> featureCountList.add(UtilMisc.toMap("productFeatureId", (String)
>> searchResult.get("pfacProductFeatureId"), "productFeatureTypeId",
>> (String) searchResult.get("pfcProductFeatureTypeId"), "description",
>> (String) searchResult.get("pfcDescription"), "featureCount",
>> Long.toString((Long) searchResult.get("featureCount"))));
>>   [javac15]                             ^
>>   [javac15] Note:
>> /opt/ofbiz/applications/product/src/org/ofbiz/product/product/ProductSearch.java
>> uses unchecked or unsafe operations.
>>   [javac15] Note: Recompile with -Xlint:unchecked for details.
>>   [javac15] 1 error
>>   [javac15] 1 warning
>>
>> BUILD FAILED
>> /opt/ofbiz/build.xml:192: The following error occurred while executing
>> this line:
>> /opt/ofbiz/applications/build.xml:67: The following error occurred while
>> executing this line:
>> /opt/ofbiz/macros.xml:27: The following error occurred while executing
>> this line:
>> /opt/ofbiz/applications/product/build.xml:67: Compile failed; see the
>> compiler error output for details.
>>
>>
>>
>>
>> BJ Freeman wrote:
>>    
>>> comes with centos 5 and works out of the box
>>> java version "1.6.0"
>>> OpenJDK  Runtime Environment (build 1.6.0-b09)
>>> OpenJDK Client VM (build 1.6.0-b09, mixed mode)
>>>
>>>
>>> Sam Hamilton sent the following on 12/1/2009 5:49 AM:
>>>  
>>>      
>>>> I dug this out from the fedora wiki -
>>>> http://fedoraproject.org/wiki/PackageMaintainers which explains how to
>>>> get a package submitted but at the moment the trunk r885762 fails to
>>>> build so I am guessing Shi that you have fixed a few things to get it
>>>> working.
>>>>
>>>> Sam
>>>>
>>>>
>>>> Shi Jinghai wrote:
>>>>    
>>>>        
>>>>> Yes, I see. That's a great idea. Not sure how Apache(httpd) and Tomcat
>>>>> became a part of Linux releases, create a self maintained repository at
>>>>> the 1st step and then try to merge it into Linux releases step by step?
>>>>>
>>>>> Shi Jinghai
>>>>>
>>>>> 在 2009-12-01二的 10:53 +0100,Jacques Le Roux写道:
>>>>>  
>>>>>      
>>>>>          
>>>>>> This is very intereting because it allows to create packages for
>>>>>> Linux systems. And this would increase much OFBiz visibility...
>>>>>>
>>>>>> Jacques
>>>>>>
>>>>>> From: "Shi Jinghai" <[hidden email]>
>>>>>>    
>>>>>>        
>>>>>>            
>>>>>>> We have used OpenJDK (on Fedora) for a while. There is no problem at
>>>>>>> all.
>>>>>>>
>>>>>>> Regards,
>>>>>>>
>>>>>>> Shi Jinghai/Beijing Langhua Ltd.
>>>>>>>
>>>>>>>
>>>>>>> 在 2009-12-01二的 15:32 +0800,Sam Hamilton写道:
>>>>>>>      
>>>>>>>          
>>>>>>>              
>>>>>>>> Hi Guys,
>>>>>>>>
>>>>>>>> I see that there is a vote going on at the moment about java 6 - I am
>>>>>>>> wondering if this would also mean that it would be possible to run
>>>>>>>> OFBiz
>>>>>>>> using openJDK once this migration has been done?
>>>>>>>>
>>>>>>>>
>>>>>>>> Cheers
>>>>>>>> Sam
>>>>>>>>        
>>>>>>>>            
>>>>>>>>                
>>>>>>    
>>>>>>        
>>>>>>            
>>>>>  
>>>>>      
>>>>>          
>>>>    
>>>>        
>>>  
>>>      
>
>  

Reply | Threaded
Open this post in threaded view
|

Re: Java 6 Question

Shi Jinghai
Exciting...

As Jacques mentioned 'packages', the packages may look like

yum install ofbiz-framework-9.04
yum install ofbiz-applications-9.04
yum install ofbiz-specailpurpose-pos-9.04
...

We'll make such a try (setup a repository). I'll let you know if we make
any progress.



在 2009-12-04五的 11:10 +0800,Sam Hamilton写道:

> Thanks Shi.
>
> I found that OFBiz trunk is in Hudson and from what I can tell is only
> building against sun-java6-jdk-1.6.0.10
> (http://ci.apache.org/builders/ofbiz-trunk) but I totally could be
> reading this wrong.
>
> Does it make sense to add openJDK to the build list to make sure that
> ofbiz is compatible - I ask this as a total layman and only for the POV
> that being able to one day "yum install ofbiz-trunk" / "apt-get install
> ofbiz-trunk" would be a great way to get the project into many more less
> technical hands.
>
> Sam
>
>
> Shi Jinghai wrote:
> > That's the pain to follow trunk.
> >
> > Not sure whether OFBiz has used the Hudson. If yes, I think Hudson report
> > will help you to know which the latest version has passed build and test
> > without any errors.
> >
> > Good luck,
> >
> > Shi Jinghai/Beijing Langhua Ltd.
> >
> >
> > 在 2009-12-03四的 11:42 +0800,Sam Hamilton写道:
> >  
> >> Shi - yep the branch builds fine but the trunk errors out with the
> >> following error:
> >>
> >> classes:
> >>   [javac15] Compiling 54 source files to
> >> /opt/ofbiz/applications/product/build/classes
> >>   [javac15]
> >> /opt/ofbiz/applications/product/src/org/ofbiz/product/config/ProductConfigWorker.java:139:
> >> warning: [deprecation]
> >> getProductvirtualVariantMethod(org.ofbiz.entity.Delegator,java.lang.String)
> >> in org.ofbiz.product.product.ProductWorker has been deprecated
> >>   [javac15]                                         if
> >> ("VV_FEATURETREE".equals(ProductWorker.getProductvirtualVariantMethod((Delegator)request.getAttribute("delegator"),
> >> selectedProdcutId))) {
> >>  
> >> [javac15]                                                                                  
> >> ^
> >>   [javac15]
> >> /opt/ofbiz/applications/product/src/org/ofbiz/product/product/ProductSearchSession.java:1220:
> >> cannot find symbol
> >>   [javac15] symbol  : method
> >> add(java.util.Map<java.lang.String,java.lang.Object>)
> >>   [javac15] location: interface
> >> java.util.List<java.util.Map<java.lang.String,java.lang.String>>
> >>   [javac15]            
> >> featureCountList.add(UtilMisc.toMap("productFeatureId", (String)
> >> searchResult.get("pfacProductFeatureId"), "productFeatureTypeId",
> >> (String) searchResult.get("pfcProductFeatureTypeId"), "description",
> >> (String) searchResult.get("pfcDescription"), "featureCount",
> >> Long.toString((Long) searchResult.get("featureCount"))));
> >>   [javac15]                             ^
> >>   [javac15] Note:
> >> /opt/ofbiz/applications/product/src/org/ofbiz/product/product/ProductSearch.java
> >> uses unchecked or unsafe operations.
> >>   [javac15] Note: Recompile with -Xlint:unchecked for details.
> >>   [javac15] 1 error
> >>   [javac15] 1 warning
> >>
> >> BUILD FAILED
> >> /opt/ofbiz/build.xml:192: The following error occurred while executing
> >> this line:
> >> /opt/ofbiz/applications/build.xml:67: The following error occurred while
> >> executing this line:
> >> /opt/ofbiz/macros.xml:27: The following error occurred while executing
> >> this line:
> >> /opt/ofbiz/applications/product/build.xml:67: Compile failed; see the
> >> compiler error output for details.
> >>
> >>
> >>
> >>
> >> BJ Freeman wrote:
> >>    
> >>> comes with centos 5 and works out of the box
> >>> java version "1.6.0"
> >>> OpenJDK  Runtime Environment (build 1.6.0-b09)
> >>> OpenJDK Client VM (build 1.6.0-b09, mixed mode)
> >>>
> >>>
> >>> Sam Hamilton sent the following on 12/1/2009 5:49 AM:
> >>>  
> >>>      
> >>>> I dug this out from the fedora wiki -
> >>>> http://fedoraproject.org/wiki/PackageMaintainers which explains how to
> >>>> get a package submitted but at the moment the trunk r885762 fails to
> >>>> build so I am guessing Shi that you have fixed a few things to get it
> >>>> working.
> >>>>
> >>>> Sam
> >>>>
> >>>>
> >>>> Shi Jinghai wrote:
> >>>>    
> >>>>        
> >>>>> Yes, I see. That's a great idea. Not sure how Apache(httpd) and Tomcat
> >>>>> became a part of Linux releases, create a self maintained repository at
> >>>>> the 1st step and then try to merge it into Linux releases step by step?
> >>>>>
> >>>>> Shi Jinghai
> >>>>>
> >>>>> 在 2009-12-01二的 10:53 +0100,Jacques Le Roux写道:
> >>>>>  
> >>>>>      
> >>>>>          
> >>>>>> This is very intereting because it allows to create packages for
> >>>>>> Linux systems. And this would increase much OFBiz visibility...
> >>>>>>
> >>>>>> Jacques
> >>>>>>
> >>>>>> From: "Shi Jinghai" <[hidden email]>
> >>>>>>    
> >>>>>>        
> >>>>>>            
> >>>>>>> We have used OpenJDK (on Fedora) for a while. There is no problem at
> >>>>>>> all.
> >>>>>>>
> >>>>>>> Regards,
> >>>>>>>
> >>>>>>> Shi Jinghai/Beijing Langhua Ltd.
> >>>>>>>
> >>>>>>>
> >>>>>>> 在 2009-12-01二的 15:32 +0800,Sam Hamilton写道:
> >>>>>>>      
> >>>>>>>          
> >>>>>>>              
> >>>>>>>> Hi Guys,
> >>>>>>>>
> >>>>>>>> I see that there is a vote going on at the moment about java 6 - I am
> >>>>>>>> wondering if this would also mean that it would be possible to run
> >>>>>>>> OFBiz
> >>>>>>>> using openJDK once this migration has been done?
> >>>>>>>>
> >>>>>>>>
> >>>>>>>> Cheers
> >>>>>>>> Sam
> >>>>>>>>        
> >>>>>>>>            
> >>>>>>>>                
> >>>>>>    
> >>>>>>        
> >>>>>>            
> >>>>>  
> >>>>>      
> >>>>>          
> >>>>    
> >>>>        
> >>>  
> >>>      
> >
> >  
>

Reply | Threaded
Open this post in threaded view
|

Re: Java 6 Question

Jacques Le Roux
Administrator
I was more thinking about Debian/Ubuntu packages, but anyway Linux package at large, yes!

Jacques

From: "Shi Jinghai" <[hidden email]>

> Exciting...
>
> As Jacques mentioned 'packages', the packages may look like
>
> yum install ofbiz-framework-9.04
> yum install ofbiz-applications-9.04
> yum install ofbiz-specailpurpose-pos-9.04
> ...
>
> We'll make such a try (setup a repository). I'll let you know if we make
> any progress.
>
>
>
> 在 2009-12-04五的 11:10 +0800,Sam Hamilton写道:
>> Thanks Shi.
>>
>> I found that OFBiz trunk is in Hudson and from what I can tell is only
>> building against sun-java6-jdk-1.6.0.10
>> (http://ci.apache.org/builders/ofbiz-trunk) but I totally could be
>> reading this wrong.
>>
>> Does it make sense to add openJDK to the build list to make sure that
>> ofbiz is compatible - I ask this as a total layman and only for the POV
>> that being able to one day "yum install ofbiz-trunk" / "apt-get install
>> ofbiz-trunk" would be a great way to get the project into many more less
>> technical hands.
>>
>> Sam
>>
>>
>> Shi Jinghai wrote:
>> > That's the pain to follow trunk.
>> >
>> > Not sure whether OFBiz has used the Hudson. If yes, I think Hudson report
>> > will help you to know which the latest version has passed build and test
>> > without any errors.
>> >
>> > Good luck,
>> >
>> > Shi Jinghai/Beijing Langhua Ltd.
>> >
>> >
>> > 在 2009-12-03四的 11:42 +0800,Sam Hamilton写道:
>> >
>> >> Shi - yep the branch builds fine but the trunk errors out with the
>> >> following error:
>> >>
>> >> classes:
>> >>   [javac15] Compiling 54 source files to
>> >> /opt/ofbiz/applications/product/build/classes
>> >>   [javac15]
>> >> /opt/ofbiz/applications/product/src/org/ofbiz/product/config/ProductConfigWorker.java:139:
>> >> warning: [deprecation]
>> >> getProductvirtualVariantMethod(org.ofbiz.entity.Delegator,java.lang.String)
>> >> in org.ofbiz.product.product.ProductWorker has been deprecated
>> >>   [javac15]                                         if
>> >> ("VV_FEATURETREE".equals(ProductWorker.getProductvirtualVariantMethod((Delegator)request.getAttribute("delegator"),
>> >> selectedProdcutId))) {
>> >>
>> >> [javac15]
>> >> ^
>> >>   [javac15]
>> >> /opt/ofbiz/applications/product/src/org/ofbiz/product/product/ProductSearchSession.java:1220:
>> >> cannot find symbol
>> >>   [javac15] symbol  : method
>> >> add(java.util.Map<java.lang.String,java.lang.Object>)
>> >>   [javac15] location: interface
>> >> java.util.List<java.util.Map<java.lang.String,java.lang.String>>
>> >>   [javac15]
>> >> featureCountList.add(UtilMisc.toMap("productFeatureId", (String)
>> >> searchResult.get("pfacProductFeatureId"), "productFeatureTypeId",
>> >> (String) searchResult.get("pfcProductFeatureTypeId"), "description",
>> >> (String) searchResult.get("pfcDescription"), "featureCount",
>> >> Long.toString((Long) searchResult.get("featureCount"))));
>> >>   [javac15]                             ^
>> >>   [javac15] Note:
>> >> /opt/ofbiz/applications/product/src/org/ofbiz/product/product/ProductSearch.java
>> >> uses unchecked or unsafe operations.
>> >>   [javac15] Note: Recompile with -Xlint:unchecked for details.
>> >>   [javac15] 1 error
>> >>   [javac15] 1 warning
>> >>
>> >> BUILD FAILED
>> >> /opt/ofbiz/build.xml:192: The following error occurred while executing
>> >> this line:
>> >> /opt/ofbiz/applications/build.xml:67: The following error occurred while
>> >> executing this line:
>> >> /opt/ofbiz/macros.xml:27: The following error occurred while executing
>> >> this line:
>> >> /opt/ofbiz/applications/product/build.xml:67: Compile failed; see the
>> >> compiler error output for details.
>> >>
>> >>
>> >>
>> >>
>> >> BJ Freeman wrote:
>> >>
>> >>> comes with centos 5 and works out of the box
>> >>> java version "1.6.0"
>> >>> OpenJDK  Runtime Environment (build 1.6.0-b09)
>> >>> OpenJDK Client VM (build 1.6.0-b09, mixed mode)
>> >>>
>> >>>
>> >>> Sam Hamilton sent the following on 12/1/2009 5:49 AM:
>> >>>
>> >>>
>> >>>> I dug this out from the fedora wiki -
>> >>>> http://fedoraproject.org/wiki/PackageMaintainers which explains how to
>> >>>> get a package submitted but at the moment the trunk r885762 fails to
>> >>>> build so I am guessing Shi that you have fixed a few things to get it
>> >>>> working.
>> >>>>
>> >>>> Sam
>> >>>>
>> >>>>
>> >>>> Shi Jinghai wrote:
>> >>>>
>> >>>>
>> >>>>> Yes, I see. That's a great idea. Not sure how Apache(httpd) and Tomcat
>> >>>>> became a part of Linux releases, create a self maintained repository at
>> >>>>> the 1st step and then try to merge it into Linux releases step by step?
>> >>>>>
>> >>>>> Shi Jinghai
>> >>>>>
>> >>>>> 在 2009-12-01二的 10:53 +0100,Jacques Le Roux写道:
>> >>>>>
>> >>>>>
>> >>>>>
>> >>>>>> This is very intereting because it allows to create packages for
>> >>>>>> Linux systems. And this would increase much OFBiz visibility...
>> >>>>>>
>> >>>>>> Jacques
>> >>>>>>
>> >>>>>> From: "Shi Jinghai" <[hidden email]>
>> >>>>>>
>> >>>>>>
>> >>>>>>
>> >>>>>>> We have used OpenJDK (on Fedora) for a while. There is no problem at
>> >>>>>>> all.
>> >>>>>>>
>> >>>>>>> Regards,
>> >>>>>>>
>> >>>>>>> Shi Jinghai/Beijing Langhua Ltd.
>> >>>>>>>
>> >>>>>>>
>> >>>>>>> 在 2009-12-01二的 15:32 +0800,Sam Hamilton写道:
>> >>>>>>>
>> >>>>>>>
>> >>>>>>>
>> >>>>>>>> Hi Guys,
>> >>>>>>>>
>> >>>>>>>> I see that there is a vote going on at the moment about java 6 - I am
>> >>>>>>>> wondering if this would also mean that it would be possible to run
>> >>>>>>>> OFBiz
>> >>>>>>>> using openJDK once this migration has been done?
>> >>>>>>>>
>> >>>>>>>>
>> >>>>>>>> Cheers
>> >>>>>>>> Sam
>> >>>>>>>>
>> >>>>>>>>
>> >>>>>>>>
>> >>>>>>
>> >>>>>>
>> >>>>>>
>> >>>>>
>> >>>>>
>> >>>>>
>> >>>>
>> >>>>
>> >>>
>> >>>
>> >
>> >
>>
>


Reply | Threaded
Open this post in threaded view
|

Re: Java 6 Question

Jacques Le Roux
Administrator
In reply to this post by samhamilton
Hi Sam,

Inline...

From: "Sam Hamilton" <[hidden email]>
> Thanks Shi.
>
> I found that OFBiz trunk is in Hudson and from what I can tell is only building against sun-java6-jdk-1.6.0.10
> (http://ci.apache.org/builders/ofbiz-trunk) but I totally could be reading this wrong.

Builbot is not Hudson http://ci.apache.org/

> Does it make sense to add openJDK to the build list to make sure that ofbiz is compatible - I ask this as a total layman and only
> for the POV that being able to one day "yum install ofbiz-trunk" / "apt-get install ofbiz-trunk" would be a great way to get the
> project into many more less technical hands.

Not sure how to "add openJDK to the build list" but sure a good idea

Regards
Jacques

> Sam
>
>
> Shi Jinghai wrote:
>> That's the pain to follow trunk.
>>
>> Not sure whether OFBiz has used the Hudson. If yes, I think Hudson report
>> will help you to know which the latest version has passed build and test
>> without any errors.
>>
>> Good luck,
>>
>> Shi Jinghai/Beijing Langhua Ltd.
>>
>>
>> 在 2009-12-03四的 11:42 +0800,Sam Hamilton写道:
>>
>>> Shi - yep the branch builds fine but the trunk errors out with the following error:
>>>
>>> classes:
>>>   [javac15] Compiling 54 source files to /opt/ofbiz/applications/product/build/classes
>>>   [javac15] /opt/ofbiz/applications/product/src/org/ofbiz/product/config/ProductConfigWorker.java:139: warning: [deprecation]
>>> getProductvirtualVariantMethod(org.ofbiz.entity.Delegator,java.lang.String) in org.ofbiz.product.product.ProductWorker has been
>>> deprecated
>>>   [javac15]                                         if
>>> ("VV_FEATURETREE".equals(ProductWorker.getProductvirtualVariantMethod((Delegator)request.getAttribute("delegator"),
>>> selectedProdcutId))) {
>>>   [javac15]                                                                                  ^
>>>   [javac15] /opt/ofbiz/applications/product/src/org/ofbiz/product/product/ProductSearchSession.java:1220: cannot find symbol
>>>   [javac15] symbol  : method add(java.util.Map<java.lang.String,java.lang.Object>)
>>>   [javac15] location: interface java.util.List<java.util.Map<java.lang.String,java.lang.String>>
>>>   [javac15]             featureCountList.add(UtilMisc.toMap("productFeatureId", (String)
>>> searchResult.get("pfacProductFeatureId"), "productFeatureTypeId", (String) searchResult.get("pfcProductFeatureTypeId"),
>>> "description", (String) searchResult.get("pfcDescription"), "featureCount", Long.toString((Long)
>>> searchResult.get("featureCount"))));
>>>   [javac15]                             ^
>>>   [javac15] Note: /opt/ofbiz/applications/product/src/org/ofbiz/product/product/ProductSearch.java uses unchecked or unsafe
>>> operations.
>>>   [javac15] Note: Recompile with -Xlint:unchecked for details.
>>>   [javac15] 1 error
>>>   [javac15] 1 warning
>>>
>>> BUILD FAILED
>>> /opt/ofbiz/build.xml:192: The following error occurred while executing this line:
>>> /opt/ofbiz/applications/build.xml:67: The following error occurred while executing this line:
>>> /opt/ofbiz/macros.xml:27: The following error occurred while executing this line:
>>> /opt/ofbiz/applications/product/build.xml:67: Compile failed; see the compiler error output for details.
>>>
>>>
>>>
>>>
>>> BJ Freeman wrote:
>>>
>>>> comes with centos 5 and works out of the box
>>>> java version "1.6.0"
>>>> OpenJDK  Runtime Environment (build 1.6.0-b09)
>>>> OpenJDK Client VM (build 1.6.0-b09, mixed mode)
>>>>
>>>>
>>>> Sam Hamilton sent the following on 12/1/2009 5:49 AM:
>>>>
>>>>> I dug this out from the fedora wiki -
>>>>> http://fedoraproject.org/wiki/PackageMaintainers which explains how to
>>>>> get a package submitted but at the moment the trunk r885762 fails to
>>>>> build so I am guessing Shi that you have fixed a few things to get it
>>>>> working.
>>>>>
>>>>> Sam
>>>>>
>>>>>
>>>>> Shi Jinghai wrote:
>>>>>
>>>>>> Yes, I see. That's a great idea. Not sure how Apache(httpd) and Tomcat
>>>>>> became a part of Linux releases, create a self maintained repository at
>>>>>> the 1st step and then try to merge it into Linux releases step by step?
>>>>>>
>>>>>> Shi Jinghai
>>>>>>
>>>>>> 在 2009-12-01二的 10:53 +0100,Jacques Le Roux写道:
>>>>>>
>>>>>>> This is very intereting because it allows to create packages for
>>>>>>> Linux systems. And this would increase much OFBiz visibility...
>>>>>>>
>>>>>>> Jacques
>>>>>>>
>>>>>>> From: "Shi Jinghai" <[hidden email]>
>>>>>>>
>>>>>>>> We have used OpenJDK (on Fedora) for a while. There is no problem at
>>>>>>>> all.
>>>>>>>>
>>>>>>>> Regards,
>>>>>>>>
>>>>>>>> Shi Jinghai/Beijing Langhua Ltd.
>>>>>>>>
>>>>>>>>
>>>>>>>> 在 2009-12-01二的 15:32 +0800,Sam Hamilton写道:
>>>>>>>>
>>>>>>>>> Hi Guys,
>>>>>>>>>
>>>>>>>>> I see that there is a vote going on at the moment about java 6 - I am
>>>>>>>>> wondering if this would also mean that it would be possible to run
>>>>>>>>> OFBiz
>>>>>>>>> using openJDK once this migration has been done?
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> Cheers
>>>>>>>>> Sam
>>>>>>>>>
>>>>>>>
>>>>>>
>>>>>
>>>>
>>
>>
>


Reply | Threaded
Open this post in threaded view
|

Re: Java 6 Question

Scott Gray-2
I'm guessing no committers are using OpenJDK since it's not compiling  
on it at the moment, which would make it pretty difficult to fix any  
problems that arise.  IMO anyone who is using OpenJDK should just  
submit fixes for any issues that they find while using it, I'd rather  
not have buildbot failing all the time for problems that I can't  
reproduce.

Regards
Scott

On 5/12/2009, at 1:30 AM, Jacques Le Roux wrote:

> Hi Sam,
>
> Inline...
>
> From: "Sam Hamilton" <[hidden email]>
>> Thanks Shi.
>>
>> I found that OFBiz trunk is in Hudson and from what I can tell is  
>> only building against sun-java6-jdk-1.6.0.10 (http://ci.apache.org/builders/ofbiz-trunk 
>> ) but I totally could be reading this wrong.
>
> Builbot is not Hudson http://ci.apache.org/
>
>> Does it make sense to add openJDK to the build list to make sure  
>> that ofbiz is compatible - I ask this as a total layman and only  
>> for the POV that being able to one day "yum install ofbiz-trunk" /  
>> "apt-get install ofbiz-trunk" would be a great way to get the  
>> project into many more less technical hands.
>
> Not sure how to "add openJDK to the build list" but sure a good idea
>
> Regards
> Jacques
>
>> Sam
>>
>>
>> Shi Jinghai wrote:
>>> That's the pain to follow trunk.
>>>
>>> Not sure whether OFBiz has used the Hudson. If yes, I think Hudson  
>>> report
>>> will help you to know which the latest version has passed build  
>>> and test
>>> without any errors.
>>>
>>> Good luck,
>>>
>>> Shi Jinghai/Beijing Langhua Ltd.
>>>
>>>
>>> 在 2009-12-03四的 11:42 +0800,Sam Hamilton写道:
>>>
>>>> Shi - yep the branch builds fine but the trunk errors out with  
>>>> the following error:
>>>>
>>>> classes:
>>>>  [javac15] Compiling 54 source files to /opt/ofbiz/applications/
>>>> product/build/classes
>>>>  [javac15] /opt/ofbiz/applications/product/src/org/ofbiz/product/
>>>> config/ProductConfigWorker.java:139: warning: [deprecation]  
>>>> getProductvirtualVariantMethod
>>>> (org.ofbiz.entity.Delegator,java.lang.String) in  
>>>> org.ofbiz.product.product.ProductWorker has been deprecated
>>>>  [javac15]                                         if  
>>>> ("VV_FEATURETREE
>>>> ".equals
>>>> (ProductWorker
>>>> .getProductvirtualVariantMethod
>>>> ((Delegator)request.getAttribute("delegator"),  
>>>> selectedProdcutId))) {
>>>>  
>>>> [javac15
>>>> ]                                                                                  ^
>>>>  [javac15] /opt/ofbiz/applications/product/src/org/ofbiz/product/
>>>> product/ProductSearchSession.java:1220: cannot find symbol
>>>>  [javac15] symbol  : method  
>>>> add(java.util.Map<java.lang.String,java.lang.Object>)
>>>>  [javac15] location: interface  
>>>> java.util.List<java.util.Map<java.lang.String,java.lang.String>>
>>>>  [javac15]              
>>>> featureCountList.add(UtilMisc.toMap("productFeatureId", (String)  
>>>> searchResult.get("pfacProductFeatureId"), "productFeatureTypeId",  
>>>> (String) searchResult.get("pfcProductFeatureTypeId"),  
>>>> "description", (String) searchResult.get("pfcDescription"),  
>>>> "featureCount", Long.toString((Long)  
>>>> searchResult.get("featureCount"))));
>>>>  [javac15]                             ^
>>>>  [javac15] Note: /opt/ofbiz/applications/product/src/org/ofbiz/
>>>> product/product/ProductSearch.java uses unchecked or unsafe  
>>>> operations.
>>>>  [javac15] Note: Recompile with -Xlint:unchecked for details.
>>>>  [javac15] 1 error
>>>>  [javac15] 1 warning
>>>>
>>>> BUILD FAILED
>>>> /opt/ofbiz/build.xml:192: The following error occurred while  
>>>> executing this line:
>>>> /opt/ofbiz/applications/build.xml:67: The following error  
>>>> occurred while executing this line:
>>>> /opt/ofbiz/macros.xml:27: The following error occurred while  
>>>> executing this line:
>>>> /opt/ofbiz/applications/product/build.xml:67: Compile failed; see  
>>>> the compiler error output for details.
>>>>
>>>>
>>>>
>>>>
>>>> BJ Freeman wrote:
>>>>
>>>>> comes with centos 5 and works out of the box
>>>>> java version "1.6.0"
>>>>> OpenJDK  Runtime Environment (build 1.6.0-b09)
>>>>> OpenJDK Client VM (build 1.6.0-b09, mixed mode)
>>>>>
>>>>>
>>>>> Sam Hamilton sent the following on 12/1/2009 5:49 AM:
>>>>>
>>>>>> I dug this out from the fedora wiki -
>>>>>> http://fedoraproject.org/wiki/PackageMaintainers which explains  
>>>>>> how to
>>>>>> get a package submitted but at the moment the trunk r885762  
>>>>>> fails to
>>>>>> build so I am guessing Shi that you have fixed a few things to  
>>>>>> get it
>>>>>> working.
>>>>>>
>>>>>> Sam
>>>>>>
>>>>>>
>>>>>> Shi Jinghai wrote:
>>>>>>
>>>>>>> Yes, I see. That's a great idea. Not sure how Apache(httpd)  
>>>>>>> and Tomcat
>>>>>>> became a part of Linux releases, create a self maintained  
>>>>>>> repository at
>>>>>>> the 1st step and then try to merge it into Linux releases step  
>>>>>>> by step?
>>>>>>>
>>>>>>> Shi Jinghai
>>>>>>>
>>>>>>> 在 2009-12-01二的 10:53 +0100,Jacques Le Roux写道:
>>>>>>>
>>>>>>>> This is very intereting because it allows to create packages  
>>>>>>>> for
>>>>>>>> Linux systems. And this would increase much OFBiz visibility...
>>>>>>>>
>>>>>>>> Jacques
>>>>>>>>
>>>>>>>> From: "Shi Jinghai" <[hidden email]>
>>>>>>>>
>>>>>>>>> We have used OpenJDK (on Fedora) for a while. There is no  
>>>>>>>>> problem at
>>>>>>>>> all.
>>>>>>>>>
>>>>>>>>> Regards,
>>>>>>>>>
>>>>>>>>> Shi Jinghai/Beijing Langhua Ltd.
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> 在 2009-12-01二的 15:32 +0800,Sam Hamilton写道:
>>>>>>>>>
>>>>>>>>>> Hi Guys,
>>>>>>>>>>
>>>>>>>>>> I see that there is a vote going on at the moment about  
>>>>>>>>>> java 6 - I am
>>>>>>>>>> wondering if this would also mean that it would be possible  
>>>>>>>>>> to run
>>>>>>>>>> OFBiz
>>>>>>>>>> using openJDK once this migration has been done?
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> Cheers
>>>>>>>>>> Sam
>>>>>>>>>>
>>>>>>>>
>>>>>>>
>>>>>>
>>>>>
>>>
>>>
>
>


smime.p7s (4K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Java 6 Question

Shi Jinghai
In reply to this post by Jacques Le Roux
It's unnecessary to "add OpenJDK to the build list". Don't use packages
of sun.*, then it should be OK.


在 2009-12-04五的 13:30 +0100,Jacques Le Roux写道:

> Hi Sam,
>
> Inline...
>
> From: "Sam Hamilton" <[hidden email]>
> > Thanks Shi.
> >
> > I found that OFBiz trunk is in Hudson and from what I can tell is only building against sun-java6-jdk-1.6.0.10
> > (http://ci.apache.org/builders/ofbiz-trunk) but I totally could be reading this wrong.
>
> Builbot is not Hudson http://ci.apache.org/
>
> > Does it make sense to add openJDK to the build list to make sure that ofbiz is compatible - I ask this as a total layman and only
> > for the POV that being able to one day "yum install ofbiz-trunk" / "apt-get install ofbiz-trunk" would be a great way to get the
> > project into many more less technical hands.
>
> Not sure how to "add openJDK to the build list" but sure a good idea
>
> Regards
> Jacques
>
> > Sam
> >
> >
> > Shi Jinghai wrote:
> >> That's the pain to follow trunk.
> >>
> >> Not sure whether OFBiz has used the Hudson. If yes, I think Hudson report
> >> will help you to know which the latest version has passed build and test
> >> without any errors.
> >>
> >> Good luck,
> >>
> >> Shi Jinghai/Beijing Langhua Ltd.
> >>
> >>
> >> 在 2009-12-03四的 11:42 +0800,Sam Hamilton写道:
> >>
> >>> Shi - yep the branch builds fine but the trunk errors out with the following error:
> >>>
> >>> classes:
> >>>   [javac15] Compiling 54 source files to /opt/ofbiz/applications/product/build/classes
> >>>   [javac15] /opt/ofbiz/applications/product/src/org/ofbiz/product/config/ProductConfigWorker.java:139: warning: [deprecation]
> >>> getProductvirtualVariantMethod(org.ofbiz.entity.Delegator,java.lang.String) in org.ofbiz.product.product.ProductWorker has been
> >>> deprecated
> >>>   [javac15]                                         if
> >>> ("VV_FEATURETREE".equals(ProductWorker.getProductvirtualVariantMethod((Delegator)request.getAttribute("delegator"),
> >>> selectedProdcutId))) {
> >>>   [javac15]                                                                                  ^
> >>>   [javac15] /opt/ofbiz/applications/product/src/org/ofbiz/product/product/ProductSearchSession.java:1220: cannot find symbol
> >>>   [javac15] symbol  : method add(java.util.Map<java.lang.String,java.lang.Object>)
> >>>   [javac15] location: interface java.util.List<java.util.Map<java.lang.String,java.lang.String>>
> >>>   [javac15]             featureCountList.add(UtilMisc.toMap("productFeatureId", (String)
> >>> searchResult.get("pfacProductFeatureId"), "productFeatureTypeId", (String) searchResult.get("pfcProductFeatureTypeId"),
> >>> "description", (String) searchResult.get("pfcDescription"), "featureCount", Long.toString((Long)
> >>> searchResult.get("featureCount"))));
> >>>   [javac15]                             ^
> >>>   [javac15] Note: /opt/ofbiz/applications/product/src/org/ofbiz/product/product/ProductSearch.java uses unchecked or unsafe
> >>> operations.
> >>>   [javac15] Note: Recompile with -Xlint:unchecked for details.
> >>>   [javac15] 1 error
> >>>   [javac15] 1 warning
> >>>
> >>> BUILD FAILED
> >>> /opt/ofbiz/build.xml:192: The following error occurred while executing this line:
> >>> /opt/ofbiz/applications/build.xml:67: The following error occurred while executing this line:
> >>> /opt/ofbiz/macros.xml:27: The following error occurred while executing this line:
> >>> /opt/ofbiz/applications/product/build.xml:67: Compile failed; see the compiler error output for details.
> >>>
> >>>
> >>>
> >>>
> >>> BJ Freeman wrote:
> >>>
> >>>> comes with centos 5 and works out of the box
> >>>> java version "1.6.0"
> >>>> OpenJDK  Runtime Environment (build 1.6.0-b09)
> >>>> OpenJDK Client VM (build 1.6.0-b09, mixed mode)
> >>>>
> >>>>
> >>>> Sam Hamilton sent the following on 12/1/2009 5:49 AM:
> >>>>
> >>>>> I dug this out from the fedora wiki -
> >>>>> http://fedoraproject.org/wiki/PackageMaintainers which explains how to
> >>>>> get a package submitted but at the moment the trunk r885762 fails to
> >>>>> build so I am guessing Shi that you have fixed a few things to get it
> >>>>> working.
> >>>>>
> >>>>> Sam
> >>>>>
> >>>>>
> >>>>> Shi Jinghai wrote:
> >>>>>
> >>>>>> Yes, I see. That's a great idea. Not sure how Apache(httpd) and Tomcat
> >>>>>> became a part of Linux releases, create a self maintained repository at
> >>>>>> the 1st step and then try to merge it into Linux releases step by step?
> >>>>>>
> >>>>>> Shi Jinghai
> >>>>>>
> >>>>>> 在 2009-12-01二的 10:53 +0100,Jacques Le Roux写道:
> >>>>>>
> >>>>>>> This is very intereting because it allows to create packages for
> >>>>>>> Linux systems. And this would increase much OFBiz visibility...
> >>>>>>>
> >>>>>>> Jacques
> >>>>>>>
> >>>>>>> From: "Shi Jinghai" <[hidden email]>
> >>>>>>>
> >>>>>>>> We have used OpenJDK (on Fedora) for a while. There is no problem at
> >>>>>>>> all.
> >>>>>>>>
> >>>>>>>> Regards,
> >>>>>>>>
> >>>>>>>> Shi Jinghai/Beijing Langhua Ltd.
> >>>>>>>>
> >>>>>>>>
> >>>>>>>> 在 2009-12-01二的 15:32 +0800,Sam Hamilton写道:
> >>>>>>>>
> >>>>>>>>> Hi Guys,
> >>>>>>>>>
> >>>>>>>>> I see that there is a vote going on at the moment about java 6 - I am
> >>>>>>>>> wondering if this would also mean that it would be possible to run
> >>>>>>>>> OFBiz
> >>>>>>>>> using openJDK once this migration has been done?
> >>>>>>>>>
> >>>>>>>>>
> >>>>>>>>> Cheers
> >>>>>>>>> Sam
> >>>>>>>>>
> >>>>>>>
> >>>>>>
> >>>>>
> >>>>
> >>
> >>
> >
>
>