On Apr 22, 7:46 am, Donkey Hottie <s...@fred.pp.fi> wrote:
Bojan <srbi...@gmail.com> wrote innews:3cc892e3-7bb2-4577-8b71-388535ed25cf@u10g2000vbd.googlegroups.com:
Hi,
I am programing using RAD (Rational Application Developer) a version
of Eclipse which has built in WebSphere Server. When execute my
program it works properly. But when I export it as a war file and run
it with Apache Tomcat server I get the following error:
Apparently You have created a Web Service client using WebSphere specific
tools and libraries.
You need to create the client with some all around solution, like Apache
Axis in order to get it running in other containers than WebSphere.
Indeed...
Right off the bat, it looks like you're using the AdminClient classes
which if I recall correctly, are a part of the WebSphere runtime so
you'd have to have a jar with those classes accessible to your app
when it runs on a non-WebSphere environment... this is probably not a
great solution.
A more generic solution would probably replace AdminClient with
MBeanServerConnection and JMXConnector (which I think is in javax.* so
you shouldn't need any extra jars), for starters.
I have done what you have recommended but the problem is still there.
environment no errors occur. But if I run the same code with the JRE
1.6 environment it fails.