Dev - Recent builds of OFBiz on Fedora Core 4 fail

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

Dev - Recent builds of OFBiz on Fedora Core 4 fail

Ruth Hoffman
With the following error:
...

4. ERROR in /6989ofbiz/base/src/base/org/ofbiz/base/util/KeyStoreUtil.java
(at line 228)
buf.append(new sun.misc.BASE64Encoder().encode(certBuf));
                           ^^^^^^^
sun.misc cannot be resolved to a type

.....

I did a little research and at
http://www.source-code.biz/snippets/java2.htm there is a comment that
there is no Base64 encoder/decoder in the standard Java SDK class library...
Any suggestions about how I should go about plugging this hole for
Fedora Core 4 (64bit  x86) system? Its a nice, fast Linux box and I'd
like to use it to run OFBiz.

TIA
Ruth
 
_______________________________________________
Dev mailing list
[hidden email]
http://lists.ofbiz.org/mailman/listinfo/dev
Reply | Threaded
Open this post in threaded view
|

Re: Dev - Recent builds of OFBiz on Fedora Core 4 fail

Vinay Agarwal
Being not very familiar with Java, I was surprised to know that Java did not
include a Base64 codec. I also read somewhere that sun.* libraries are not
intended for general use. If we ever wanted another Base64 codec, Apache has
one at http://jakarta.apache.org/commons/codec/.

Regards,
Vinay Agarwal

-----Original Message-----
From: [hidden email] [mailto:[hidden email]] On
Behalf Of Ruth Hoffman
Sent: Monday, March 13, 2006 10:46 AM
To: OFBiz Project Development Discussion
Subject: [OFBiz] Dev - Recent builds of OFBiz on Fedora Core 4 fail

With the following error:
..

4. ERROR in /6989ofbiz/base/src/base/org/ofbiz/base/util/KeyStoreUtil.java
(at line 228)
buf.append(new sun.misc.BASE64Encoder().encode(certBuf));
                           ^^^^^^^
sun.misc cannot be resolved to a type

....

I did a little research and at
http://www.source-code.biz/snippets/java2.htm there is a comment that
there is no Base64 encoder/decoder in the standard Java SDK class library...
Any suggestions about how I should go about plugging this hole for
Fedora Core 4 (64bit  x86) system? Its a nice, fast Linux box and I'd
like to use it to run OFBiz.

TIA
Ruth
 
_______________________________________________
Dev mailing list
[hidden email]
http://lists.ofbiz.org/mailman/listinfo/dev
 
_______________________________________________
Dev mailing list
[hidden email]
http://lists.ofbiz.org/mailman/listinfo/dev
Reply | Threaded
Open this post in threaded view
|

Re: Dev - Recent builds of OFBiz on Fedora Core 4 fail

davidnwelton
In reply to this post by Ruth Hoffman
On 3/13/06, Vinay Agarwal <[hidden email]> wrote:
> Being not very familiar with Java, I was surprised to know that Java did not
> include a Base64 codec. I also read somewhere that sun.* libraries are not
> intended for general use. If we ever wanted another Base64 codec, Apache has
> one at http://jakarta.apache.org/commons/codec/.

See also:

http://jira.undersunconsulting.com/browse/OFBIZ-620

There is a Base64 implementation squirreled away in OFBiz somewhere...
I don't recall just where, though.

Ciao,
--
David N. Welton
 - http://www.dedasys.com/davidw/

Linux, Open Source Consulting
 - http://www.dedasys.com/
 
_______________________________________________
Dev mailing list
[hidden email]
http://lists.ofbiz.org/mailman/listinfo/dev
Reply | Threaded
Open this post in threaded view
|

Re: Dev - Recent builds of OFBiz on Fedora Core 4 fail

Ruth Hoffman
David et al.:
Referring to your Jira comment - do you believe I should make these
changes on my system and be done with it, or do you think this is
something that should be changed within the OFBiz packaging?

TIA

David Welton wrote:

>On 3/13/06, Vinay Agarwal <[hidden email]> wrote:
>  
>
>>Being not very familiar with Java, I was surprised to know that Java did not
>>include a Base64 codec. I also read somewhere that sun.* libraries are not
>>intended for general use. If we ever wanted another Base64 codec, Apache has
>>one at http://jakarta.apache.org/commons/codec/.
>>    
>>
>
>See also:
>
>http://jira.undersunconsulting.com/browse/OFBIZ-620
>
>There is a Base64 implementation squirreled away in OFBiz somewhere...
>I don't recall just where, though.
>
>Ciao,
>--
>David N. Welton
> - http://www.dedasys.com/davidw/
>
>Linux, Open Source Consulting
> - http://www.dedasys.com/
>
>_______________________________________________
>Dev mailing list
>[hidden email]
>http://lists.ofbiz.org/mailman/listinfo/dev
>
>  
>
 
_______________________________________________
Dev mailing list
[hidden email]
http://lists.ofbiz.org/mailman/listinfo/dev
Reply | Threaded
Open this post in threaded view
|

Re: Dev - Recent builds of OFBiz on Fedora Core 4 fail

davidnwelton
> David et al.:
> Referring to your Jira comment - do you believe I should make these
> changes on my system and be done with it, or do you think this is
> something that should be changed within the OFBiz packaging?

I think that it should be corrected in OFBiz, as it's a very small fix.

--
David N. Welton
 - http://www.dedasys.com/davidw/

Linux, Open Source Consulting
 - http://www.dedasys.com/
 
_______________________________________________
Dev mailing list
[hidden email]
http://lists.ofbiz.org/mailman/listinfo/dev
Reply | Threaded
Open this post in threaded view
|

Re: Dev - Recent builds of OFBiz on Fedora Core 4 fail

Ruth Hoffman
How should the uninitiated go about requesting such a fix? Or is there
more to this then making requests?

Regards,
Ruth

David Welton wrote:

>>David et al.:
>>Referring to your Jira comment - do you believe I should make these
>>changes on my system and be done with it, or do you think this is
>>something that should be changed within the OFBiz packaging?
>>    
>>
>
>I think that it should be corrected in OFBiz, as it's a very small fix.
>
>--
>David N. Welton
> - http://www.dedasys.com/davidw/
>
>Linux, Open Source Consulting
> - http://www.dedasys.com/
>
>_______________________________________________
>Dev mailing list
>[hidden email]
>http://lists.ofbiz.org/mailman/listinfo/dev
>
>  
>
 
_______________________________________________
Dev mailing list
[hidden email]
http://lists.ofbiz.org/mailman/listinfo/dev
Reply | Threaded
Open this post in threaded view
|

Re: Dev - Recent builds of OFBiz on Fedora Core 4 fail

David E. Jones

It's actually already fixed. There is an issue in Jira for this. Just search for "sun.misc" or something.

-David


Ruth Hoffman wrote:

> How should the uninitiated go about requesting such a fix? Or is there
> more to this then making requests?
>
> Regards,
> Ruth
>
> David Welton wrote:
>
>>> David et al.:
>>> Referring to your Jira comment - do you believe I should make these
>>> changes on my system and be done with it, or do you think this is
>>> something that should be changed within the OFBiz packaging?
>>>    
>>>
>> I think that it should be corrected in OFBiz, as it's a very small fix.
>>
>> --
>> David N. Welton
>> - http://www.dedasys.com/davidw/
>>
>> Linux, Open Source Consulting
>> - http://www.dedasys.com/
>>
>> _______________________________________________
>> 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
Reply | Threaded
Open this post in threaded view
|

Re: Dev - Recent builds of OFBiz on Fedora Core 4 fail

Ruth Hoffman
Thanks David:
Sorry I didn't see your comments on the Jira page when I first was
directed there by David Welton. I'll try again tomorrow when I have
access to my Fedora system.
Thanks again.
Ruth

David E. Jones wrote:

>It's actually already fixed. There is an issue in Jira for this. Just search for "sun.misc" or something.
>
>-David
>
>
>Ruth Hoffman wrote:
>  
>
>>How should the uninitiated go about requesting such a fix? Or is there
>>more to this then making requests?
>>
>>Regards,
>>Ruth
>>
>>David Welton wrote:
>>
>>    
>>
>>>>David et al.:
>>>>Referring to your Jira comment - do you believe I should make these
>>>>changes on my system and be done with it, or do you think this is
>>>>something that should be changed within the OFBiz packaging?
>>>>  
>>>>
>>>>        
>>>>
>>>I think that it should be corrected in OFBiz, as it's a very small fix.
>>>
>>>--
>>>David N. Welton
>>>- http://www.dedasys.com/davidw/
>>>
>>>Linux, Open Source Consulting
>>>- http://www.dedasys.com/
>>>
>>>_______________________________________________
>>>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
>
>  
>
 
_______________________________________________
Dev mailing list
[hidden email]
http://lists.ofbiz.org/mailman/listinfo/dev
Reply | Threaded
Open this post in threaded view
|

Re: Dev - Recent builds of OFBiz on Fedora Core 4 fail

davidnwelton
> Thanks David:
> Sorry I didn't see your comments on the Jira page when I first was
> directed there by David Welton. I'll try again tomorrow when I have
> access to my Fedora system.

I originally noticed this problem because something was trying, I
think, to use gcj instead of the installed Sun Java on my system.
Perhaps Fedora is trying to do the same thing?  I know that they have
gcj...  Something to watch out for.

It would be nice if ofbiz worked with gcj someday, but... I guess
it'll happen when someone makes it happen.

--
David N. Welton
 - http://www.dedasys.com/davidw/

Linux, Open Source Consulting
 - http://www.dedasys.com/
 
_______________________________________________
Dev mailing list
[hidden email]
http://lists.ofbiz.org/mailman/listinfo/dev
Reply | Threaded
Open this post in threaded view
|

Re: Dev - Recent builds of OFBiz on Fedora Core 4 fail

Ruth Hoffman
Seems like the default is gcj on Fedora Core 4. I don't know about other
versions of Fedora. Its a bit troublesome to get the Sun JDK running on
the version of Fedora I'm using because of some missing C++ libraries
that the Java binary needs to link to? (I think thats the problem) I'm
kind-of new to the innards of Java compilers so, this is all a learning
experience for me.

Thanks for your help.
Ruth

David Welton wrote:

>>Thanks David:
>>Sorry I didn't see your comments on the Jira page when I first was
>>directed there by David Welton. I'll try again tomorrow when I have
>>access to my Fedora system.
>>    
>>
>
>I originally noticed this problem because something was trying, I
>think, to use gcj instead of the installed Sun Java on my system.
>Perhaps Fedora is trying to do the same thing?  I know that they have
>gcj...  Something to watch out for.
>
>It would be nice if ofbiz worked with gcj someday, but... I guess
>it'll happen when someone makes it happen.
>
>--
>David N. Welton
> - http://www.dedasys.com/davidw/
>
>Linux, Open Source Consulting
> - http://www.dedasys.com/
>
>_______________________________________________
>Dev mailing list
>[hidden email]
>http://lists.ofbiz.org/mailman/listinfo/dev
>
>  
>
 
_______________________________________________
Dev mailing list
[hidden email]
http://lists.ofbiz.org/mailman/listinfo/dev
Reply | Threaded
Open this post in threaded view
|

Re: Dev - Recent builds of OFBiz on Fedora Core 4 fail

Andrew Sykes
Ruth,

I've setup JDK on FC4 a few times now, I've never found any problems
with missing libraries.

Here's what I did...
rpm -e `rpm -qa | grep gcj`
I got a list of troublesome dependencies

so I simply removed these too...
rpm -e `rpm -qa | grep gcj` dependency_number_1 dependency_number_2
dependency_number_3

There was quite a lot of those pesky dependencies, but after these were
all stripped out I was able to install JDK according to Sun's
instructions.
--
Kind Regards
Andrew Sykes <[hidden email]>
Sykes Development Ltd
http://www.sykesdevelopment.com

 
_______________________________________________
Dev mailing list
[hidden email]
http://lists.ofbiz.org/mailman/listinfo/dev
Reply | Threaded
Open this post in threaded view
|

Re: Dev - Recent builds of OFBiz on Fedora Core 4 fail

Kenneth Porter
On Wednesday, March 15, 2006 2:06 PM +0000 Andrew Sykes
<[hidden email]> wrote:

> There was quite a lot of those pesky dependencies, but after these were
> all stripped out I was able to install JDK according to Sun's
> instructions.

If properly installed according to Linux FHS guidelines, Sun's packages
should coexist with gcj and each Java-based package can specify which VM or
JDK it will use. There should be no global JAVA_HOME or CLASSPATH.

<http://www.fedoraproject.org/wiki/JavaFAQ>

Details for Sun Java installation:

<http://fedoranews.org/mediawiki/index.php/JPackage_Java_for_FC4>

I have a wrapper script for OFBiz that issues this before launching
startofbiz.sh:

export JAVA_HOME=/usr/lib/jvm/jre-1.4.2-sun

This selects the older Sun JVM, while leaving gcj available for other
applications. One can even have multiple Sun JVM's so that apps that need
the newer ones can coexist with legacy apps on the same host.
 
_______________________________________________
Dev mailing list
[hidden email]
http://lists.ofbiz.org/mailman/listinfo/dev
Reply | Threaded
Open this post in threaded view
|

Re: Dev - Recent builds of OFBiz on Fedora Core 4 fail

Ruth Hoffman
In reply to this post by Andrew Sykes
Andrew:
Thanks. I'll give it a try.

Andrew Sykes wrote:

>Ruth,
>
>I've setup JDK on FC4 a few times now, I've never found any problems
>with missing libraries.
>
>Here's what I did...
>rpm -e `rpm -qa | grep gcj`
>I got a list of troublesome dependencies
>
>so I simply removed these too...
>rpm -e `rpm -qa | grep gcj` dependency_number_1 dependency_number_2
>dependency_number_3
>
>There was quite a lot of those pesky dependencies, but after these were
>all stripped out I was able to install JDK according to Sun's
>instructions.
>  
>
 
_______________________________________________
Dev mailing list
[hidden email]
http://lists.ofbiz.org/mailman/listinfo/dev
Reply | Threaded
Open this post in threaded view
|

Re: Dev - Recent builds of OFBiz on Fedora Core 4 fail

Andrew Sykes
In reply to this post by Kenneth Porter
Kenneth,

> If properly installed according to Linux FHS guidelines, Sun's packages
> should coexist with gcj and each Java-based package can specify which VM or
> JDK it will use. There should be no global JAVA_HOME or CLASSPATH.

That's true, but I've never found any useful purpose for GCJ, hence my
brutal approach!
--
Kind Regards
Andrew Sykes <[hidden email]>
Sykes Development Ltd
http://www.sykesdevelopment.com

 
_______________________________________________
Dev mailing list
[hidden email]
http://lists.ofbiz.org/mailman/listinfo/dev
Reply | Threaded
Open this post in threaded view
|

Re: Dev - Recent builds of OFBiz on Fedora Core 4 fail

Ruth Hoffman
Just to update those interested in this topic...I just installed v7003
on FC4, compiled and brought up OFBiz - with only some minor warning
messages. (OK, the ecommerce app doesn't play too nicely with the
installed Firefox browser -1.0.7 - and I got a Null Pointer error from
something to do with the store not being found - but I can deal with
that :-)

To get the Sun Java compiler to install on FC4 I had to:
1) unistall all the Java dependent applications that I had (mistakenly)
installed when I installed FC4 - like Eclipse (I used "yum remove xxx" )
2) unistall all the many versions of the many libraries that I installed
over the last few days that the Sun JDK thinks it needs (again, "yum
remove...")
based on error messages like "GLIBC...not found...by libxyz" when trying
to run the install binary
3) tried to reinstall again and when I got messages about libraries not
being found, I installed those using yum

Lots of fun, but I learned much about FC4.

Thanks for everyone's help.
Ruth


Andrew Sykes wrote:

>Kenneth,
>
>  
>
>>If properly installed according to Linux FHS guidelines, Sun's packages
>>should coexist with gcj and each Java-based package can specify which VM or
>>JDK it will use. There should be no global JAVA_HOME or CLASSPATH.
>>    
>>
>
>That's true, but I've never found any useful purpose for GCJ, hence my
>brutal approach!
>  
>
 
_______________________________________________
Dev mailing list
[hidden email]
http://lists.ofbiz.org/mailman/listinfo/dev