1845832 Members
2729 Online
110250 Solutions
New Discussion

Re: WEblogic and java

 
Daniel LaBonte
Occasional Contributor

WEblogic and java

Hi,

Maybe someone will be able to help. Environment: HP-UX11 64bit, JAVA 1.2.2_06, BEA's Weblogic5.1.
Problem: I've installed JAVA1.2 and Weblogic without any problems into the opt dirs. But I seem to be having problems when executing Java commands for such things as weblogic's console. (I.e. $>java weblogic. Console) I'll receive the following error:
Exception in thread "main" java.lang.NoClassDefFoundError: weblogic/Console

So I will run BEA's script for Unix startConsole and thus receive:

can't load javax.swing.plaf.metal.MetalLookAndFeel
java.lang.Error: can't load javax.swing.plaf.metal.MetalLookAndFeel
at javax.swing.UIManager.initializeDefaultLAF(UIManager.java:856)
at javax.swing.UIManager.initialize(UIManager.java:926)
at javax.swing.UIManager.maybeInitialize(UIManager.java:948)
at javax.swing.UIManager.getUI(UIManager.java:559)
at javax.swing.JPanel.updateUI(JPanel.java:110)
at javax.swing.JPanel.(JPanel.java:70)
at javax.swing.JPanel.(JPanel.java:100)
at javax.swing.JRootPane.createGlassPane(JRootPane.java:224)
at javax.swing.JRootPane.(JRootPane.java:181)
at javax.swing.JApplet.createRootPane(JApplet.java:132)
at javax.swing.JApplet.(JApplet.java:125)
at weblogic.admin.T3Cnsl.(T3Cnsl.java:359)
at weblogic.admin.T3Cnsl.doMain(T3Cnsl.java:189)
at weblogic.admin.T3Cnsl.main(T3Cnsl.java:140)
at weblogic.admin.ConsoleStarter.startup(ConsoleStarter.java:16)
at weblogic.Console.main(Console.java:41)
I've been using the following attachment from BEA to set my environment, but when I run an echo on any of the variables I receive nothing back.
BEA has not been able to solve this, they are pointing to the Env. Any help would be appreciated.
Dan
2 REPLIES 2
Maureen Gunkel
Trusted Contributor

Re: WEblogic and java

Daniel,

Are you running the environment setting file from BEA and then trying to run your command? If so, you need to run that file like this:

. ./filename

Otherwise it just sets the environment variables for a moment, and then 'forgets' them.

HTH
No matter where you go, there you are.
Daniel LaBonte
Occasional Contributor

Re: WEblogic and java

Hi Maureen,

Thanks for the reply but you know been there done that. I'm able to run the script with some editing of BEA's template but I still receive the following when running console

$>java weblogic.Console
can't load javax.swing.plaf.metal.MetalLookAndFeel
java.lang.Error: can't load javax.swing.plaf.metal.MetalLookAndFeel
at javax.swing.UIManager.initializeDefaultLAF(UIManager.java:856)
at javax.swing.UIManager.initialize(UIManager.java:926)
at javax.swing.UIManager.maybeInitialize(UIManager.java:948)
at javax.swing.UIManager.getUI(UIManager.java:559).......
On Sun's site they suggested to add the swingall.jar to classpath this was done and still receive errors.
Dan