I'm getting a NoClassDefFoundError for WebSphere v6,
on Windows, which I'm less familiar with (I set up
MC4J fine for WebLogic on Windows, which I'm more
familiar with.)
I tried adding
\AppServer\java\jre\lib\ibmcertpathprovider.jar to the
mc4j classPathEntries for this server, but it doesn't
help (that jar contains the
com.ibm.security.cert.IBMCertPath class).
Not sure if this something related more to my
WebSphere setup than to my mc4j setup.
java.lang.reflect.InvocationTargetException
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:585)
at
org.mc4j.console.connection.WebsphereConnectionNode.con
nect(WebsphereConnectionNode.java:152)
at
org.mc4j.console.connection.ReconnectAction.performActi
on(ReconnectAction.java:47)
at org.openide.util.actions.NodeAction$3.run
(NodeAction.java:440)
at
org.openide.util.actions.CallableSystemAction$ActionRun
nable.actionPerformed(CallableSystemAction.java:247)
at org.netbeans.core.ModuleActions.invokeAction
(ModuleActions.java:74)
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:585)
at
org.openide.util.actions.CallableSystemAction.invokeAct
ion(CallableSystemAction.java:179)
at
org.openide.util.actions.CallableSystemAction.access$00
0(CallableSystemAction.java:31)
at
org.openide.util.actions.CallableSystemAction$ActionRun
nable.doRun(CallableSystemAction.java:241)
at
org.openide.util.actions.CallableSystemAction$2.run
(CallableSystemAction.java:111)
at org.openide.util.Task.run(Task.java:136)
at org.openide.util.RequestProcessor$Task.run
(RequestProcessor.java:330)
at
org.openide.util.RequestProcessor$Processor.run
(RequestProcessor.java:686)
Caused by: java.lang.NoClassDefFoundError:
com/ibm/security/cert/IBMCertPath
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:164)
at
com.ibm.websphere.management.AdminClientFactory.createA
dminClient(AdminClientFactory.java:258)
[catch] ... 20 more
==>
java.lang.NoClassDefFoundError:
com/ibm/security/cert/IBMCertPath
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:164)
at
com.ibm.websphere.management.AdminClientFactory.createA
dminClient(AdminClientFactory.java:258)
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:585)
at
org.mc4j.console.connection.WebsphereConnectionNode.con
nect(WebsphereConnectionNode.java:152)
at
org.mc4j.console.connection.ReconnectAction.performActi
on(ReconnectAction.java:47)
at org.openide.util.actions.NodeAction$3.run
(NodeAction.java:440)
at
org.openide.util.actions.CallableSystemAction$ActionRun
nable.actionPerformed(CallableSystemAction.java:247)
at org.netbeans.core.ModuleActions.invokeAction
(ModuleActions.java:74)
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:585)
at
org.openide.util.actions.CallableSystemAction.invokeAct
ion(CallableSystemAction.java:179)
at
org.openide.util.actions.CallableSystemAction.access$00
0(CallableSystemAction.java:31)
at
org.openide.util.actions.CallableSystemAction$ActionRun
nable.doRun(CallableSystemAction.java:241)
at
org.openide.util.actions.CallableSystemAction$2.run
(CallableSystemAction.java:111)
at org.openide.util.Task.run(Task.java:136)
at org.openide.util.RequestProcessor$Task.run
(RequestProcessor.java:330)
[catch] at
org.openide.util.RequestProcessor$Processor.run
(RequestProcessor.java:686)
Logged In: YES
user_id=1387227
I was eventually able to get the connection to work to
WebSphere by adding two jars to the classpath entries -- a
WebSphere JCE jar and a certpath jar. What gave me a lot of
problems, however, was that that the classpath list was not
updating. I'd add an entry to the list, and it wouldn't
help. I would exit mc4j and then restart, and the classpath
entry would be gone.
I eventually persisted the two new classpath entries for the
two jars by deleting the websphere configuration, creating a
new configuration, and adding the two classpath entries in
the wizard that creates the new server configuration.
So I trace my setup problems to the difficulty in persisting
new classpath entries, added after the initial setup of the
server configuration.