Pinned topic Class loader issues in RAD / WAS 8.5.1
So, my question is why is WAS using this older version of Jackson and how do I get it to use the version I have bundled in my EAR? I've tried changing the class loader policy to parent last, which yielded the same result.
ivyho 120000J46E67 Posts
Re: Class loader issues in RAD / WAS 8.5.12013-04-02T19:52:14ZThis is the accepted answer. This is the accepted answer.
- SystemAdmin 110000D4XK
Are you using the "Add and Remove" inside the RAD workbench to publish your EAR to the local test environment?
First try this:
As you mentioned, if you already change the class loading policy in WAS 851.
Try export the EAR outside of RAD , install the application via the WAS 851 admin console.
Try testing your application and see if the correct jar being loaded.
If it still loads the old jars, then open PMR to websphere support team to check out the class loading issue.
If this works, then try inside RAD.
If you are publishing the EAR via "Add and Remove" inside the RAD workbench.
double click on the server instance inside RAD to get to the server configurations.
Try to disable - minimize applications files copied to the server
Use Run server with resources on Server.
Save the settings,
restart WAS and republish and see if this make any differences.
Hope this helps
rubensa 270002XDYE1 Post
Re: Class loader issues in RAD / WAS 8.5.12013-05-27T11:26:44ZThis is the accepted answer. This is the accepted answer.
WAS 8.5 uses and old version of jackson (some one prior to 1.8, I think some kind of 1.7.5).
I had similar problem with a custom JSON parameter mapper and had to change my implementation form:
arg = mapper.convertValue(arg, mapper.constructType(parameter.getGenericParameterType()));
arg = mapper.convertValue(arg, TypeFactory.type(parameter.getGenericParameterType()));
Using a deprecated method that currently works on old and new jackson versions.
kyhlien 20000019WD1 Post
Re: Class loader issues in RAD / WAS 8.5.12014-06-16T16:14:07ZThis is the accepted answer. This is the accepted answer.
- SystemAdmin 110000D4XK
Did you ever get it to work? I am running into the same issue with an application I am migrating from JBoss to WebSphere.
gduser 270002Y2BW5 Posts
Re: Class loader issues in RAD / WAS 8.5.12015-01-17T08:11:04ZThis is the accepted answer. This is the accepted answer.
WAS v8.x and v8.5.x has alot of problems with libraries that are already included in WAS package.
Check out RFE