Hello,
ich have installed Glassfish 2.2.
Then I have created a Webservice and deployed on Glassfish. After that, I
have created an own Standard MBean. For the MBean I have created a new Java
Projekt with a Webservice Client of my Webservice. Into the MBean I want to
call my Webservice. The wrapper class of my webservice has been generated
automatically by Netbeans when I have created the WS client.
The Jar of the project which includes the MBean also includes the Wrapper
class.
When I call the method of the MBean I get this Exception.
com.sun.xml.ws.model.RuntimeModelerException: runtime modeler error: Wrapper
class ws.CreateContextTask is not found. Have you run APT to generate them?
at
com.sun.xml.ws.model.RuntimeModeler.getClass(RuntimeModeler.java:287)
at
com.sun.xml.ws.model.RuntimeModeler.processDocWrappedMethod(RuntimeModeler.java:596)
at
com.sun.xml.ws.model.RuntimeModeler.processMethod(RuntimeModeler.java:543)
at
com.sun.xml.ws.model.RuntimeModeler.processClass(RuntimeModeler.java:371)
at
com.sun.xml.ws.model.RuntimeModeler.buildRuntimeModel(RuntimeModeler.java:258)
at
com.sun.xml.ws.client.WSServiceDelegate.addSEI(WSServiceDelegate.java:633)
at
com.sun.xml.ws.client.WSServiceDelegate.getPort(WSServiceDelegate.java:328)
at
com.sun.xml.ws.client.WSServiceDelegate.getPort(WSServiceDelegate.java:311)
at
com.sun.xml.ws.client.WSServiceDelegate.getPort(WSServiceDelegate.java:304)
at javax.xml.ws.Service.getPort(Service.java:92)
at
ws.CreateCtxTaskServiceService.getCreateCtxTaskServicePort(CreateCtxTaskServiceService.java:56)
at
contextmanager.ContextManagerMBeanImpl.setContext(ContextManagerMBeanImpl.java:36)
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:597)
at
com.sun.jmx.mbeanserver.StandardMBeanIntrospector.invokeM2(StandardMBeanIntrospector.java:93)
at
com.sun.jmx.mbeanserver.StandardMBeanIntrospector.invokeM2(StandardMBeanIntrospector.java:27)
at
com.sun.jmx.mbeanserver.MBeanIntrospector.invokeM(MBeanIntrospector.java:208)
at
com.sun.jmx.mbeanserver.PerInterface.invoke(PerInterface.java:120)
at
com.sun.jmx.mbeanserver.MBeanSupport.invoke(MBeanSupport.java:262)
at
com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:836)
at
com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:761)
at
com.sun.enterprise.interceptor.DynamicInterceptor.invoke(DynamicInterceptor.java:174)
at
javax.management.remote.rmi.RMIConnectionImpl.doOperation(RMIConnectionImpl.java:1427)
at
javax.management.remote.rmi.RMIConnectionImpl.access$200(RMIConnectionImpl.java:72)
at
javax.management.remote.rmi.RMIConnectionImpl$PrivilegedOperation.run(RMIConnectionImpl.java:1265)
at
javax.management.remote.rmi.RMIConnectionImpl.doPrivilegedOperation(RMIConnectionImpl.java:1360)
at
javax.management.remote.rmi.RMIConnectionImpl.invoke(RMIConnectionImpl.java:788)
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:597)
at
sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:305)
at sun.rmi.transport.Transport$1.run(Transport.java:159)
at java.security.AccessController.doPrivileged(Native Method)
at sun.rmi.transport.Transport.serviceCall(Transport.java:155)
at
sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:535)
at
sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:790)
at
sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:649)
at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:619)
Has anyone an idea how to fix the problem?
Best regards
--
[Message sent by forum member 'Diak']
View Post: http://forums.java.net/node/809561