Have a Question?
Print

01120: Two potential problems using a 1.4.2 jre under Fedora Core 3 or higher

Title:

Two potential problems using a 1.4.2 jre under Fedora Core 3 or higher

Description:

1) Running BBjServices using a 1.4.X JVM under Fedore Core 3, NoClassDefFoundError is encountered. 

Fedora Core 3 (and later releases) switched code base for X Windows. They now use the X.org X11 implementation instead of of the XFree86.org X11 implementation. The 1.5 JVMs are built with the X.org implementation and work just fine on Fedora Core 3. The 1.4 JVMs are built with the XFree.org X11 implementation and require depreciated shared libraries, (specifically libXp.so.6). 

A stack trace similar to the following is found in BBjServices.out.* file: 

        java.lang.NoClassDefFoundError 
                 at com.basis.bbj.processor.by.<init>(by.java:8) 
                  at com.basis.bbj.comm.p.<clinit>(p.java:3) 
                 at com.basis.bbj.comm.AppServer.main(AppServer.java:803) 
                  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 
                 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) 
                 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) 
                 at java.lang.reflect.Method.invoke(Method.java:324) 
                 at com.basis.server.BBjServices$2.run(BBjServices.java) 
                 at com.basis.util.common.error.ErrorMgrThread.run(ErrorMgrThread.java:23) 


2) In addition, the 1.4.x JVMs may encounter a problem with security. The following error messages is an indication of this problem: 

        libawt.so: cannot restore segment prot after reloc: Permission denied

Resolution:

Update to the 1.5 JVM or apply OS level system updates required to use the 1.4.X JVMs on Fedora Core 3 (or later). 

1) Installing the “xorg-X11-deprecated-libs” installs the shared libraries used by the 
1.4.x JVMs. This corrects the “NoClassDefFoundError” described above. 

2) The security problem may be resolved by either of the following methods.. 

        A) The SE Linux security can be disabled. 

        B) Install the “selinux-policy-targeted-1.25.2-4.noarch” package. 

Note: 
——- 

In BBj 6.0 a utility was added to verify that a 1.4.X JVM could be run 
under Fedore Core 3. To test, run the following command: 

> java com.basis.bbj.client.util.Globals 

If the output from the command is “Hello World!!”, BBjServices should run. 
Otherwise, the user should see either a shared library error 

“Exception java.lang.UnsatisfiedLinkError: <JavaHome>/jre/1.4.2/lib/i386/libawt.so: 
libXp.so.6: cannot open shared object file: No such file or directory occurred.” 

or a security error 

“<JavaHome>/jre/1.4.2/lib/i386/libawt.so: 
cannot restore segment prot after reloc: Permission denied” 

Depending on which error occurs, one of the above solutions should be applied.



Last Modified: 10/18/2006 Product: BBj Operating System: Linux

BASIS structures five components of their technology into the BBx Generations.

Table of Contents
Scroll to Top