Skip to main content

Class must be annotated with a interface javax.xml.ws.WebServiceClient annotation

6 replies [Last post]
Anonymous

Hi ,

I have a simple webservice and client program created through
Netbeans.When I try to run my client program, I see the below
exception.Please find the attached client program.

Is this a bug in Netbeans/Metro ?

Error Log:
==========

WSP5018: Loaded WSIT configuration from file:
jndi:/server/wsit-enabled-fromjava-js61/WEB-INF/wsit-simple.server.IPingService.xml.
Monitoring rootname successfully set to:
{http://server.simple/}IPingServiceService{http://server.simple/}IPingServicePort
classLoader = WebappClassLoader
delegate: true
repositories:
/WEB-INF/classes/
----------> Parent Classloader:
EJBClassLoader :
urlSet = []
doneCalled = false
Parent -> java.net.URLClassLoader@cbd8dc
SharedSecrets.getJavaNetAccess()=java.net.URLClassLoader$7@1d063b3
Class must be annotated with a interface javax.xml.ws.WebServiceClient
annotation
symbol : interface javax.xml.ws.WebServiceClient
location: class simple.server.IPingServiceService
Annotations processing failed for
/home/sreekanth/NetBeansProjects/wsit-enabled-fromjava-js61-client/build/web
deployed with moduleid = wsit-enabled-fromjava-js61-client
naming.bind
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
Method)
at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
at
com.sun.enterprise.naming.NamingManagerImpl.initiateInstance(NamingManagerImpl.java:1124)
at
com.sun.enterprise.naming.NamingManagerImpl.getClientServiceObject(NamingManagerImpl.java:1204)
at
com.sun.enterprise.naming.NamingManagerImpl.lookup(NamingManagerImpl.java:1029)
at
com.sun.enterprise.naming.java.javaURLContext.lookup(javaURLContext.java:173)
at
com.sun.enterprise.naming.SerialContext.lookup(SerialContext.java:407)
at javax.naming.InitialContext.lookup(InitialContext.java:392)
at
com.sun.enterprise.util.InjectionManagerImpl._inject(InjectionManagerImpl.java:287)
at
com.sun.enterprise.util.InjectionManagerImpl.inject(InjectionManagerImpl.java:206)
at
com.sun.enterprise.util.InjectionManagerImpl.injectInstance(InjectionManagerImpl.java:117)
at
com.sun.web.server.J2EEInstanceListener.handleBeforeEvent(J2EEInstanceListener.java:259)
at
com.sun.web.server.J2EEInstanceListener.instanceEvent(J2EEInstanceListener.java:119)
at
org.apache.catalina.util.InstanceSupport.fireInstanceEvent(InstanceSupport.java:347)
at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1085)
at
org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:848)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
at
org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:287)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:218)
at
org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:648)
at
org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:593)
at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:94)
at
com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke(PESessionLockingStandardPipeline.java:98)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:222)
at
org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:648)
at
org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:593)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:587)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1096)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:166)
at
org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:648)
at
org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:593)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:587)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1096)
at
org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:291)
at
com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.invokeAdapter(DefaultProcessorTask.java:666)
at
com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.doProcess(DefaultProcessorTask.java:597)
at
com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.process(DefaultProcessorTask.java:871)
at
com.sun.enterprise.web.connector.grizzly.DefaultReadTask.executeProcessorTask(DefaultReadTask.java:341)
at
com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:263)
at
com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:214)
at
com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:265)
at
com.sun.enterprise.web.connector.grizzly.ssl.SSLWorkerThread.run(SSLWorkerThread.java:106)
Caused by: javax.xml.ws.WebServiceException: null is not a valid service
at
com.sun.xml.ws.client.WSServiceDelegate.(WSServiceDelegate.java:190)
at
com.sun.xml.ws.client.WSServiceDelegate.(WSServiceDelegate.java:178)
at
com.sun.xml.ws.spi.ProviderImpl.createServiceDelegate(ProviderImpl.java:106)
at javax.xml.ws.Service.(Service.java:57)
at
simple.server.IPingServiceService.(IPingServiceService.java:58)
... 44 more
WebModule[/wsit-enabled-fromjava-js61-client]StandardWrapper.Throwable
java.lang.RuntimeException: WEB5002: Exception in handleBeforeEvent.
at
com.sun.web.server.J2EEInstanceListener.handleBeforeEvent(J2EEInstanceListener.java:263)
at
com.sun.web.server.J2EEInstanceListener.instanceEvent(J2EEInstanceListener.java:119)
at
org.apache.catalina.util.InstanceSupport.fireInstanceEvent(InstanceSupport.java:347)
at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1085)
at
org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:848)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
at
org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:287)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:218)
at
org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:648)
at
org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:593)
at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:94)
at
com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke(PESessionLockingStandardPipeline.java:98)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:222)
at
org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:648)
at
org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:593)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:587)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1096)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:166)
at
org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:648)
at
org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:593)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:587)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1096)
at
org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:291)
at
com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.invokeAdapter(DefaultProcessorTask.java:666)
at
com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.doProcess(DefaultProcessorTask.java:597)
at
com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.process(DefaultProcessorTask.java:871)
at
com.sun.enterprise.web.connector.grizzly.DefaultReadTask.executeProcessorTask(DefaultReadTask.java:341)
at
com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:263)
at
com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:214)
at
com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:265)
at
com.sun.enterprise.web.connector.grizzly.ssl.SSLWorkerThread.run(SSLWorkerThread.java:106)
Caused by: com.sun.enterprise.InjectionException: Exception attempting
to inject Env-Prop: simple.client.NewServlet/service@Field-Injectable
Resource. Class name = simple.client.NewServlet Field
name=service@javax.jws.WebServiceRef@@@ into class simple.client.NewServlet
at
com.sun.enterprise.util.InjectionManagerImpl._inject(InjectionManagerImpl.java:387)
at
com.sun.enterprise.util.InjectionManagerImpl.inject(InjectionManagerImpl.java:206)
at
com.sun.enterprise.util.InjectionManagerImpl.injectInstance(InjectionManagerImpl.java:117)
at
com.sun.web.server.J2EEInstanceListener.handleBeforeEvent(J2EEInstanceListener.java:259)
... 30 more
Caused by: javax.naming.NamingException [Root exception is
java.lang.reflect.InvocationTargetException]
at
com.sun.enterprise.naming.NamingManagerImpl.getClientServiceObject(NamingManagerImpl.java:1287)
at
com.sun.enterprise.naming.NamingManagerImpl.lookup(NamingManagerImpl.java:1029)
at
com.sun.enterprise.naming.java.javaURLContext.lookup(javaURLContext.java:173)
at
com.sun.enterprise.naming.SerialContext.lookup(SerialContext.java:407)
at javax.naming.InitialContext.lookup(InitialContext.java:392)
at
com.sun.enterprise.util.InjectionManagerImpl._inject(InjectionManagerImpl.java:287)
... 33 more
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
Method)
at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
at
com.sun.enterprise.naming.NamingManagerImpl.initiateInstance(NamingManagerImpl.java:1124)
at
com.sun.enterprise.naming.NamingManagerImpl.getClientServiceObject(NamingManagerImpl.java:1204)
... 38 more
Caused by: javax.xml.ws.WebServiceException: null is not a valid service
at
com.sun.xml.ws.client.WSServiceDelegate.(WSServiceDelegate.java:190)
at
com.sun.xml.ws.client.WSServiceDelegate.(WSServiceDelegate.java:178)
at
com.sun.xml.ws.spi.ProviderImpl.createServiceDelegate(ProviderImpl.java:106)
at javax.xml.ws.Service.(Service.java:57)
at
simple.server.IPingServiceService.(IPingServiceService.java:58)
... 44 more
StandardWrapperValve[NewServlet]: PWC1382: Allocate exception for
servlet NewServlet
java.lang.RuntimeException: WEB5002: Exception in handleBeforeEvent.
at
com.sun.web.server.J2EEInstanceListener.handleBeforeEvent(J2EEInstanceListener.java:263)
at
com.sun.web.server.J2EEInstanceListener.instanceEvent(J2EEInstanceListener.java:119)
at
org.apache.catalina.util.InstanceSupport.fireInstanceEvent(InstanceSupport.java:347)
at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1085)
at
org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:848)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
at
org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:287)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:218)
at
org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:648)
at
org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:593)
at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:94)
at
com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke(PESessionLockingStandardPipeline.java:98)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:222)
at
org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:648)
at
org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:593)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:587)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1096)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:166)
at
org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:648)
at
org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:593)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:587)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1096)
at
org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:291)
at
com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.invokeAdapter(DefaultProcessorTask.java:666)
at
com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.doProcess(DefaultProcessorTask.java:597)
at
com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.process(DefaultProcessorTask.java:871)
at
com.sun.enterprise.web.connector.grizzly.DefaultReadTask.executeProcessorTask(DefaultReadTask.java:341)
at
com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:263)
at
com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:214)
at
com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:265)
at
com.sun.enterprise.web.connector.grizzly.ssl.SSLWorkerThread.run(SSLWorkerThread.java:106)
Caused by: com.sun.enterprise.InjectionException: Exception attempting
to inject Env-Prop: simple.client.NewServlet/service@Field-Injectable
Resource. Class name = simple.client.NewServlet Field
name=service@javax.jws.WebServiceRef@@@ into class simple.client.NewServlet
at
com.sun.enterprise.util.InjectionManagerImpl._inject(InjectionManagerImpl.java:387)
at
com.sun.enterprise.util.InjectionManagerImpl.inject(InjectionManagerImpl.java:206)
at
com.sun.enterprise.util.InjectionManagerImpl.injectInstance(InjectionManagerImpl.java:117)
at
com.sun.web.server.J2EEInstanceListener.handleBeforeEvent(J2EEInstanceListener.java:259)
... 30 more
Caused by: javax.naming.NamingException [Root exception is
java.lang.reflect.InvocationTargetException]
at
com.sun.enterprise.naming.NamingManagerImpl.getClientServiceObject(NamingManagerImpl.java:1287)
at
com.sun.enterprise.naming.NamingManagerImpl.lookup(NamingManagerImpl.java:1029)
at
com.sun.enterprise.naming.java.javaURLContext.lookup(javaURLContext.java:173)
at
com.sun.enterprise.naming.SerialContext.lookup(SerialContext.java:407)
at javax.naming.InitialContext.lookup(InitialContext.java:392)
at
com.sun.enterprise.util.InjectionManagerImpl._inject(InjectionManagerImpl.java:287)
... 33 more
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
Method)
at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
at
com.sun.enterprise.naming.NamingManagerImpl.initiateInstance(NamingManagerImpl.java:1124)
at
com.sun.enterprise.naming.NamingManagerImpl.getClientServiceObject(NamingManagerImpl.java:1204)
... 38 more
Caused by: javax.xml.ws.WebServiceException: null is not a valid service
at
com.sun.xml.ws.client.WSServiceDelegate.(WSServiceDelegate.java:190)
at
com.sun.xml.ws.client.WSServiceDelegate.(WSServiceDelegate.java:178)
at
com.sun.xml.ws.spi.ProviderImpl.createServiceDelegate(ProviderImpl.java:106)
at javax.xml.ws.Service.(Service.java:57)
at
simple.server.IPingServiceService.(IPingServiceService.java:58)
... 44 more

[NewServlet.java]
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@metro.dev.java.net
For additional commands, e-mail: users-help@metro.dev.java.net

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Sreekanth

Hi ,

(Copying to Dev alias)

I just installed NB 6.8 ML1 and see the same here too.Did any one face this?

Here is what I have done:

* Installed NB 6.8 ML1
* Install GF v2.1.1
* Install Metro Latest bits
* Create a new Webservice sample to use Mutual Certificate Security.
* Deploy it.
* Create a client
* Deploy the Client and then Run it.

I see the below exception :

DPL5306:Servlet Web Service Endpoint [IPingService] listening at address
[http://sreekanth-laptop:8080/SimpleApp/IPingServiceService]
deployed with moduleid = SimpleApp
WSP5018: Loaded WSIT configuration from file:
jndi:/server/SimpleApp/WEB-INF/wsit-simple.server.IPingService.xml.
Monitoring rootname successfully set to:
{http://server.simple/}IPingServiceService{http://server.simple/}IPingServicePort
GMBAL901: JMX exception on registration of MBean
MBeanImpl[type=Service,name={http://server.simple/}IPingServiceService{http://server.simple/}IPingServicePort,oname=com.sun.metro:pp=/,type=Service,name="{http://server.simple/}IPingServiceService{http://server.simple/}IPingServicePort"]
Class must be annotated with a interface javax.xml.ws.WebServiceClient
annotation
symbol : interface javax.xml.ws.WebServiceClient
location: class simple.server.IPingServiceService
Annotations processing failed for
/home/sreekanth/NetBeansProjects/SimpleAppClient/build/web
deployed with moduleid = SimpleAppClient
naming.bind
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
Method)
at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
at
com.sun.enterprise.naming.NamingManagerImpl.initiateInstance(NamingManagerImpl.java:1128)
at
com.sun.enterprise.naming.NamingManagerImpl.getClientServiceObject(NamingManagerImpl.java:1208)
at
com.sun.enterprise.naming.NamingManagerImpl.lookup(NamingManagerImpl.java:1033)
at
com.sun.enterprise.naming.java.javaURLContext.lookup(javaURLContext.java:173)
at
com.sun.enterprise.naming.SerialContext.lookup(SerialContext.java:407)
at javax.naming.InitialContext.lookup(InitialContext.java:392)
at
com.sun.enterprise.util.InjectionManagerImpl._inject(InjectionManagerImpl.java:287)
at
com.sun.enterprise.util.InjectionManagerImpl.inject(InjectionManagerImpl.java:206)
at
com.sun.enterprise.util.InjectionManagerImpl.injectInstance(InjectionManagerImpl.java:117)
at
com.sun.web.server.J2EEInstanceListener.handleBeforeEvent(J2EEInstanceListener.java:259)
at
com.sun.web.server.J2EEInstanceListener.instanceEvent(J2EEInstanceListener.java:119)
at
org.apache.catalina.util.InstanceSupport.fireInstanceEvent(InstanceSupport.java:347)
at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1085)
at
org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:848)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
at
org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:287)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:218)
at
org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:648)
at
org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:593)
at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:94)
at
com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke(PESessionLockingStandardPipeline.java:98)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:222)
at
org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:648)
at
org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:593)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:587)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1093)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:166)
at
org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:648)
at
org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:593)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:587)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1093)
at
org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:291)
at
com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.invokeAdapter(DefaultProcessorTask.java:666)
at
com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.doProcess(DefaultProcessorTask.java:597)
at
com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.process(DefaultProcessorTask.java:872)
at
com.sun.enterprise.web.connector.grizzly.DefaultReadTask.executeProcessorTask(DefaultReadTask.java:341)
at
com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:263)
at
com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:214)
at
com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:264)
at
com.sun.enterprise.web.connector.grizzly.ssl.SSLWorkerThread.run(SSLWorkerThread.java:106)
Caused by: javax.xml.ws.WebServiceException: null is not a valid service
at
com.sun.xml.ws.client.WSServiceDelegate.(WSServiceDelegate.java:190)
at
com.sun.xml.ws.client.WSServiceDelegate.(WSServiceDelegate.java:178)
at
com.sun.xml.ws.spi.ProviderImpl.createServiceDelegate(ProviderImpl.java:106)
at javax.xml.ws.Service.(Service.java:57)
at
simple.server.IPingServiceService.(IPingServiceService.java:58)
... 44 more
WebModule[/SimpleAppClient]StandardWrapper.Throwable
java.lang.RuntimeException: WEB5002: Exception in handleBeforeEvent.
at
com.sun.web.server.J2EEInstanceListener.handleBeforeEvent(J2EEInstanceListener.java:263)
at
com.sun.web.server.J2EEInstanceListener.instanceEvent(J2EEInstanceListener.java:119)
at
org.apache.catalina.util.InstanceSupport.fireInstanceEvent(InstanceSupport.java:347)
at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1085)
at
org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:848)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
at
org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:287)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:218)
at
org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:648)
at
org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:593)
at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:94)
at
com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke(PESessionLockingStandardPipeline.java:98)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:222)
at
org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:648)
at
org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:593)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:587)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1093)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:166)
at
org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:648)
at
org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:593)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:587)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1093)
at
org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:291)
at
com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.invokeAdapter(DefaultProcessorTask.java:666)
at
com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.doProcess(DefaultProcessorTask.java:597)
at
com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.process(DefaultProcessorTask.java:872)
at
com.sun.enterprise.web.connector.grizzly.DefaultReadTask.executeProcessorTask(DefaultReadTask.java:341)
at
com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:263)
at
com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:214)
at
com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:264)
at
com.sun.enterprise.web.connector.grizzly.ssl.SSLWorkerThread.run(SSLWorkerThread.java:106)
Caused by: com.sun.enterprise.InjectionException: Exception attempting
to inject Env-Prop: simple.client.NewServlet/service@Field-Injectable
Resource. Class name = simple.client.NewServlet Field
name=service@javax.jws.WebServiceRef@@@ into class simple.client.NewServlet
at
com.sun.enterprise.util.InjectionManagerImpl._inject(InjectionManagerImpl.java:387)
at
com.sun.enterprise.util.InjectionManagerImpl.inject(InjectionManagerImpl.java:206)
at
com.sun.enterprise.util.InjectionManagerImpl.injectInstance(InjectionManagerImpl.java:117)
at
com.sun.web.server.J2EEInstanceListener.handleBeforeEvent(J2EEInstanceListener.java:259)
... 30 more
Caused by: javax.naming.NamingException [Root exception is
java.lang.reflect.InvocationTargetException]
at
com.sun.enterprise.naming.NamingManagerImpl.getClientServiceObject(NamingManagerImpl.java:1291)
at
com.sun.enterprise.naming.NamingManagerImpl.lookup(NamingManagerImpl.java:1033)
at
com.sun.enterprise.naming.java.javaURLContext.lookup(javaURLContext.java:173)
at
com.sun.enterprise.naming.SerialContext.lookup(SerialContext.java:407)
at javax.naming.InitialContext.lookup(InitialContext.java:392)
at
com.sun.enterprise.util.InjectionManagerImpl._inject(InjectionManagerImpl.java:287)
... 33 more
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
Method)
at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
at
com.sun.enterprise.naming.NamingManagerImpl.initiateInstance(NamingManagerImpl.java:1128)
at
com.sun.enterprise.naming.NamingManagerImpl.getClientServiceObject(NamingManagerImpl.java:1208)
... 38 more
Caused by: javax.xml.ws.WebServiceException: null is not a valid service
at
com.sun.xml.ws.client.WSServiceDelegate.(WSServiceDelegate.java:190)
at
com.sun.xml.ws.client.WSServiceDelegate.(WSServiceDelegate.java:178)
at
com.sun.xml.ws.spi.ProviderImpl.createServiceDelegate(ProviderImpl.java:106)
at javax.xml.ws.Service.(Service.java:57)
at
simple.server.IPingServiceService.(IPingServiceService.java:58)
... 44 more
StandardWrapperValve[NewServlet]: PWC1382: Allocate exception for
servlet NewServlet
java.lang.RuntimeException: WEB5002: Exception in handleBeforeEvent.
at
com.sun.web.server.J2EEInstanceListener.handleBeforeEvent(J2EEInstanceListener.java:263)
at
com.sun.web.server.J2EEInstanceListener.instanceEvent(J2EEInstanceListener.java:119)
at
org.apache.catalina.util.InstanceSupport.fireInstanceEvent(InstanceSupport.java:347)
at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1085)
at
org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:848)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
at
org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:287)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:218)
at
org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:648)
at
org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:593)
at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:94)
at
com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke(PESessionLockingStandardPipeline.java:98)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:222)
at
org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:648)
at
org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:593)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:587)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1093)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:166)
at
org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:648)
at
org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:593)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:587)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1093)
at
org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:291)
at
com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.invokeAdapter(DefaultProcessorTask.java:666)
at
com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.doProcess(DefaultProcessorTask.java:597)
at
com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.process(DefaultProcessorTask.java:872)
at
com.sun.enterprise.web.connector.grizzly.DefaultReadTask.executeProcessorTask(DefaultReadTask.java:341)
at
com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:263)
at
com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:214)
at
com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:264)
at
com.sun.enterprise.web.connector.grizzly.ssl.SSLWorkerThread.run(SSLWorkerThread.java:106)
Caused by: com.sun.enterprise.InjectionException: Exception attempting
to inject Env-Prop: simple.client.NewServlet/service@Field-Injectable
Resource. Class name = simple.client.NewServlet Field
name=service@javax.jws.WebServiceRef@@@ into class simple.client.NewServlet
at
com.sun.enterprise.util.InjectionManagerImpl._inject(InjectionManagerImpl.java:387)
at
com.sun.enterprise.util.InjectionManagerImpl.inject(InjectionManagerImpl.java:206)
at
com.sun.enterprise.util.InjectionManagerImpl.injectInstance(InjectionManagerImpl.java:117)
at
com.sun.web.server.J2EEInstanceListener.handleBeforeEvent(J2EEInstanceListener.java:259)
... 30 more
Caused by: javax.naming.NamingException [Root exception is
java.lang.reflect.InvocationTargetException]
at
com.sun.enterprise.naming.NamingManagerImpl.getClientServiceObject(NamingManagerImpl.java:1291)
at
com.sun.enterprise.naming.NamingManagerImpl.lookup(NamingManagerImpl.java:1033)
at
com.sun.enterprise.naming.java.javaURLContext.lookup(javaURLContext.java:173)
at
com.sun.enterprise.naming.SerialContext.lookup(SerialContext.java:407)
at javax.naming.InitialContext.lookup(InitialContext.java:392)
at
com.sun.enterprise.util.InjectionManagerImpl._inject(InjectionManagerImpl.java:287)
... 33 more
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
Method)
at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
at
com.sun.enterprise.naming.NamingManagerImpl.initiateInstance(NamingManagerImpl.java:1128)
at
com.sun.enterprise.naming.NamingManagerImpl.getClientServiceObject(NamingManagerImpl.java:1208)
... 38 more
Caused by: javax.xml.ws.WebServiceException: null is not a valid service
at
com.sun.xml.ws.client.WSServiceDelegate.(WSServiceDelegate.java:190)
at
com.sun.xml.ws.client.WSServiceDelegate.(WSServiceDelegate.java:178)
at
com.sun.xml.ws.spi.ProviderImpl.createServiceDelegate(ProviderImpl.java:106)
at javax.xml.ws.Service.(Service.java:57)
at
simple.server.IPingServiceService.(IPingServiceService.java:58)
... 44 more

Thanks,
Sreekanth

Sreekanth wrote:
> Hi ,
>
> I have a simple webservice and client program created through
> Netbeans.When I try to run my client program, I see the below
> exception.Please find the attached client program.
>
> Is this a bug in Netbeans/Metro ?
>
> Error Log:
> ==========
>
> WSP5018: Loaded WSIT configuration from file:
> jndi:/server/wsit-enabled-fromjava-js61/WEB-INF/wsit-simple.server.IPingService.xml.
>
> Monitoring rootname successfully set to:
> {http://server.simple/}IPingServiceService{http://server.simple/}IPingServicePort
>
> classLoader = WebappClassLoader
> delegate: true
> repositories:
> /WEB-INF/classes/
> ----------> Parent Classloader:
> EJBClassLoader :
> urlSet = []
> doneCalled = false
> Parent -> java.net.URLClassLoader@cbd8dc
> SharedSecrets.getJavaNetAccess()=java.net.URLClassLoader$7@1d063b3
> Class must be annotated with a interface javax.xml.ws.WebServiceClient
> annotation
> symbol : interface javax.xml.ws.WebServiceClient
> location: class simple.server.IPingServiceService
> Annotations processing failed for
> /home/sreekanth/NetBeansProjects/wsit-enabled-fromjava-js61-client/build/web
>
> deployed with moduleid = wsit-enabled-fromjava-js61-client
> naming.bind
> java.lang.reflect.InvocationTargetException
> at
> sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
> at
> sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
>
> at
> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
>
> at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
> at
> com.sun.enterprise.naming.NamingManagerImpl.initiateInstance(NamingManagerImpl.java:1124)
>
> at
> com.sun.enterprise.naming.NamingManagerImpl.getClientServiceObject(NamingManagerImpl.java:1204)
>
> at
> com.sun.enterprise.naming.NamingManagerImpl.lookup(NamingManagerImpl.java:1029)
>
> at
> com.sun.enterprise.naming.java.javaURLContext.lookup(javaURLContext.java:173)
>
> at
> com.sun.enterprise.naming.SerialContext.lookup(SerialContext.java:407)
> at javax.naming.InitialContext.lookup(InitialContext.java:392)
> at
> com.sun.enterprise.util.InjectionManagerImpl._inject(InjectionManagerImpl.java:287)
>
> at
> com.sun.enterprise.util.InjectionManagerImpl.inject(InjectionManagerImpl.java:206)
>
> at
> com.sun.enterprise.util.InjectionManagerImpl.injectInstance(InjectionManagerImpl.java:117)
>
> at
> com.sun.web.server.J2EEInstanceListener.handleBeforeEvent(J2EEInstanceListener.java:259)
>
> at
> com.sun.web.server.J2EEInstanceListener.instanceEvent(J2EEInstanceListener.java:119)
>
> at
> org.apache.catalina.util.InstanceSupport.fireInstanceEvent(InstanceSupport.java:347)
>
> at
> org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1085)
>
> at
> org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:848)
>
> at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
>
> at
> org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:287)
>
> at
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:218)
>
> at
> org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:648)
>
> at
> org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:593)
>
> at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:94)
> at
> com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke(PESessionLockingStandardPipeline.java:98)
>
> at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:222)
>
> at
> org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:648)
>
> at
> org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:593)
>
> at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:587)
>
> at
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1096)
> at
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:166)
>
> at
> org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:648)
>
> at
> org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:593)
>
> at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:587)
>
> at
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1096)
> at
> org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:291)
> at
> com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.invokeAdapter(DefaultProcessorTask.java:666)
>
> at
> com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.doProcess(DefaultProcessorTask.java:597)
>
> at
> com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.process(DefaultProcessorTask.java:871)
>
> at
> com.sun.enterprise.web.connector.grizzly.DefaultReadTask.executeProcessorTask(DefaultReadTask.java:341)
>
> at
> com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:263)
>
> at
> com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:214)
>
> at
> com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:265)
> at
> com.sun.enterprise.web.connector.grizzly.ssl.SSLWorkerThread.run(SSLWorkerThread.java:106)
>
> Caused by: javax.xml.ws.WebServiceException: null is not a valid service
> at
> com.sun.xml.ws.client.WSServiceDelegate.(WSServiceDelegate.java:190)
>
> at
> com.sun.xml.ws.client.WSServiceDelegate.(WSServiceDelegate.java:178)
>
> at
> com.sun.xml.ws.spi.ProviderImpl.createServiceDelegate(ProviderImpl.java:106)
>
> at javax.xml.ws.Service.(Service.java:57)
> at
> simple.server.IPingServiceService.(IPingServiceService.java:58)
> ... 44 more
> WebModule[/wsit-enabled-fromjava-js61-client]StandardWrapper.Throwable
> java.lang.RuntimeException: WEB5002: Exception in handleBeforeEvent.
> at
> com.sun.web.server.J2EEInstanceListener.handleBeforeEvent(J2EEInstanceListener.java:263)
>
> at
> com.sun.web.server.J2EEInstanceListener.instanceEvent(J2EEInstanceListener.java:119)
>
> at
> org.apache.catalina.util.InstanceSupport.fireInstanceEvent(InstanceSupport.java:347)
>
> at
> org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1085)
>
> at
> org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:848)
>
> at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
>
> at
> org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:287)
>
> at
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:218)
>
> at
> org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:648)
>
> at
> org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:593)
>
> at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:94)
> at
> com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke(PESessionLockingStandardPipeline.java:98)
>
> at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:222)
>
> at
> org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:648)
>
> at
> org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:593)
>
> at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:587)
>
> at
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1096)
> at
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:166)
>
> at
> org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:648)
>
> at
> org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:593)
>
> at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:587)
>
> at
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1096)
> at
> org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:291)
> at
> com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.invokeAdapter(DefaultProcessorTask.java:666)
>
> at
> com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.doProcess(DefaultProcessorTask.java:597)
>
> at
> com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.process(DefaultProcessorTask.java:871)
>
> at
> com.sun.enterprise.web.connector.grizzly.DefaultReadTask.executeProcessorTask(DefaultReadTask.java:341)
>
> at
> com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:263)
>
> at
> com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:214)
>
> at
> com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:265)
> at
> com.sun.enterprise.web.connector.grizzly.ssl.SSLWorkerThread.run(SSLWorkerThread.java:106)
>
> Caused by: com.sun.enterprise.InjectionException: Exception attempting
> to inject Env-Prop: simple.client.NewServlet/service@Field-Injectable
> Resource. Class name = simple.client.NewServlet Field
> name=service@javax.jws.WebServiceRef@@@ into class
> simple.client.NewServlet
> at
> com.sun.enterprise.util.InjectionManagerImpl._inject(InjectionManagerImpl.java:387)
>
> at
> com.sun.enterprise.util.InjectionManagerImpl.inject(InjectionManagerImpl.java:206)
>
> at
> com.sun.enterprise.util.InjectionManagerImpl.injectInstance(InjectionManagerImpl.java:117)
>
> at
> com.sun.web.server.J2EEInstanceListener.handleBeforeEvent(J2EEInstanceListener.java:259)
>
> ... 30 more
> Caused by: javax.naming.NamingException [Root exception is
> java.lang.reflect.InvocationTargetException]
> at
> com.sun.enterprise.naming.NamingManagerImpl.getClientServiceObject(NamingManagerImpl.java:1287)
>
> at
> com.sun.enterprise.naming.NamingManagerImpl.lookup(NamingManagerImpl.java:1029)
>
> at
> com.sun.enterprise.naming.java.javaURLContext.lookup(javaURLContext.java:173)
>
> at
> com.sun.enterprise.naming.SerialContext.lookup(SerialContext.java:407)
> at javax.naming.InitialContext.lookup(InitialContext.java:392)
> at
> com.sun.enterprise.util.InjectionManagerImpl._inject(InjectionManagerImpl.java:287)
>
> ... 33 more
> Caused by: java.lang.reflect.InvocationTargetException
> at
> sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
> at
> sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
>
> at
> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
>
> at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
> at
> com.sun.enterprise.naming.NamingManagerImpl.initiateInstance(NamingManagerImpl.java:1124)
>
> at
> com.sun.enterprise.naming.NamingManagerImpl.getClientServiceObject(NamingManagerImpl.java:1204)
>
> ... 38 more
> Caused by: javax.xml.ws.WebServiceException: null is not a valid service
> at
> com.sun.xml.ws.client.WSServiceDelegate.(WSServiceDelegate.java:190)
>
> at
> com.sun.xml.ws.client.WSServiceDelegate.(WSServiceDelegate.java:178)
>
> at
> com.sun.xml.ws.spi.ProviderImpl.createServiceDelegate(ProviderImpl.java:106)
>
> at javax.xml.ws.Service.(Service.java:57)
> at
> simple.server.IPingServiceService.(IPingServiceService.java:58)
> ... 44 more
> StandardWrapperValve[NewServlet]: PWC1382: Allocate exception for
> servlet NewServlet
> java.lang.RuntimeException: WEB5002: Exception in handleBeforeEvent.
> at
> com.sun.web.server.J2EEInstanceListener.handleBeforeEvent(J2EEInstanceListener.java:263)
>
> at
> com.sun.web.server.J2EEInstanceListener.instanceEvent(J2EEInstanceListener.java:119)
>
> at
> org.apache.catalina.util.InstanceSupport.fireInstanceEvent(InstanceSupport.java:347)
>
> at
> org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1085)
>
> at
> org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:848)
>
> at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
>
> at
> org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:287)
>
> at
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:218)
>
> at
> org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:648)
>
> at
> org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:593)
>
> at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:94)
> at
> com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke(PESessionLockingStandardPipeline.java:98)
>
> at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:222)
>
> at
> org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:648)
>
> at
> org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:593)
>
> at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:587)
>
> at
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1096)
> at
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:166)
>
> at
> org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:648)
>
> at
> org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:593)
>
> at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:587)
>
> at
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1096)
> at
> org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:291)
> at
> com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.invokeAdapter(DefaultProcessorTask.java:666)
>
> at
> com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.doProcess(DefaultProcessorTask.java:597)
>
> at
> com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.process(DefaultProcessorTask.java:871)
>
> at
> com.sun.enterprise.web.connector.grizzly.DefaultReadTask.executeProcessorTask(DefaultReadTask.java:341)
>
> at
> com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:263)
>
> at
> com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:214)
>
> at
> com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:265)
> at
> com.sun.enterprise.web.connector.grizzly.ssl.SSLWorkerThread.run(SSLWorkerThread.java:106)
>
> Caused by: com.sun.enterprise.InjectionException: Exception attempting
> to inject Env-Prop: simple.client.NewServlet/service@Field-Injectable
> Resource. Class name = simple.client.NewServlet Field
> name=service@javax.jws.WebServiceRef@@@ into class
> simple.client.NewServlet
> at
> com.sun.enterprise.util.InjectionManagerImpl._inject(InjectionManagerImpl.java:387)
>
> at
> com.sun.enterprise.util.InjectionManagerImpl.inject(InjectionManagerImpl.java:206)
>
> at
> com.sun.enterprise.util.InjectionManagerImpl.injectInstance(InjectionManagerImpl.java:117)
>
> at
> com.sun.web.server.J2EEInstanceListener.handleBeforeEvent(J2EEInstanceListener.java:259)
>
> ... 30 more
> Caused by: javax.naming.NamingException [Root exception is
> java.lang.reflect.InvocationTargetException]
> at
> com.sun.enterprise.naming.NamingManagerImpl.getClientServiceObject(NamingManagerImpl.java:1287)
>
> at
> com.sun.enterprise.naming.NamingManagerImpl.lookup(NamingManagerImpl.java:1029)
>
> at
> com.sun.enterprise.naming.java.javaURLContext.lookup(javaURLContext.java:173)
>
> at
> com.sun.enterprise.naming.SerialContext.lookup(SerialContext.java:407)
> at javax.naming.InitialContext.lookup(InitialContext.java:392)
> at
> com.sun.enterprise.util.InjectionManagerImpl._inject(InjectionManagerImpl.java:287)
>
> ... 33 more
> Caused by: java.lang.reflect.InvocationTargetException
> at
> sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
> at
> sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
>
> at
> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
>
> at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
> at
> com.sun.enterprise.naming.NamingManagerImpl.initiateInstance(NamingManagerImpl.java:1124)
>
> at
> com.sun.enterprise.naming.NamingManagerImpl.getClientServiceObject(NamingManagerImpl.java:1204)
>
> ... 38 more
> Caused by: javax.xml.ws.WebServiceException: null is not a valid service
> at
> com.sun.xml.ws.client.WSServiceDelegate.(WSServiceDelegate.java:190)
>
> at
> com.sun.xml.ws.client.WSServiceDelegate.(WSServiceDelegate.java:178)
>
> at
> com.sun.xml.ws.spi.ProviderImpl.createServiceDelegate(ProviderImpl.java:106)
>
> at javax.xml.ws.Service.(Service.java:57)
> at
> simple.server.IPingServiceService.(IPingServiceService.java:58)
> ... 44 more
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@metro.dev.java.net
For additional commands, e-mail: users-help@metro.dev.java.net

Sreekanth

Filed a P1: https://jax-ws.dev.java.net/issues/show_bug.cgi?id=798

This is working with WSIT promoted build 19 and before.But not with
promoted build 20 and latest nightly build.

Thanks,
Sreekanth

Sreekanth wrote:
> Hi ,
>
> (Copying to Dev alias)
>
> I just installed NB 6.8 ML1 and see the same here too.Did any one face
> this?
>
> Here is what I have done:
>
> * Installed NB 6.8 ML1
> * Install GF v2.1.1
> * Install Metro Latest bits
> * Create a new Webservice sample to use Mutual Certificate Security.
> * Deploy it.
> * Create a client
> * Deploy the Client and then Run it.
>
> I see the below exception :
>
> DPL5306:Servlet Web Service Endpoint [IPingService] listening at
> address [http://sreekanth-laptop:8080/SimpleApp/IPingServiceService]
> deployed with moduleid = SimpleApp
> WSP5018: Loaded WSIT configuration from file:
> jndi:/server/SimpleApp/WEB-INF/wsit-simple.server.IPingService.xml.
> Monitoring rootname successfully set to:
> {http://server.simple/}IPingServiceService{http://server.simple/}IPingServicePort
>
> GMBAL901: JMX exception on registration of MBean
> MBeanImpl[type=Service,name={http://server.simple/}IPingServiceService{http://server.simple/}IPingServicePort,oname=com.sun.metro:pp=/,type=Service,name="{http://server.simple/}IPingServiceService{http://server.simple/}IPingServicePort"]
>
> Class must be annotated with a interface javax.xml.ws.WebServiceClient
> annotation
> symbol : interface javax.xml.ws.WebServiceClient
> location: class simple.server.IPingServiceService
> Annotations processing failed for
> /home/sreekanth/NetBeansProjects/SimpleAppClient/build/web
> deployed with moduleid = SimpleAppClient
> naming.bind
> java.lang.reflect.InvocationTargetException
> at
> sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
> at
> sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
>
> at
> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
>
> at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
> at
> com.sun.enterprise.naming.NamingManagerImpl.initiateInstance(NamingManagerImpl.java:1128)
>
> at
> com.sun.enterprise.naming.NamingManagerImpl.getClientServiceObject(NamingManagerImpl.java:1208)
>
> at
> com.sun.enterprise.naming.NamingManagerImpl.lookup(NamingManagerImpl.java:1033)
>
> at
> com.sun.enterprise.naming.java.javaURLContext.lookup(javaURLContext.java:173)
>
> at
> com.sun.enterprise.naming.SerialContext.lookup(SerialContext.java:407)
> at javax.naming.InitialContext.lookup(InitialContext.java:392)
> at
> com.sun.enterprise.util.InjectionManagerImpl._inject(InjectionManagerImpl.java:287)
>
> at
> com.sun.enterprise.util.InjectionManagerImpl.inject(InjectionManagerImpl.java:206)
>
> at
> com.sun.enterprise.util.InjectionManagerImpl.injectInstance(InjectionManagerImpl.java:117)
>
> at
> com.sun.web.server.J2EEInstanceListener.handleBeforeEvent(J2EEInstanceListener.java:259)
>
> at
> com.sun.web.server.J2EEInstanceListener.instanceEvent(J2EEInstanceListener.java:119)
>
> at
> org.apache.catalina.util.InstanceSupport.fireInstanceEvent(InstanceSupport.java:347)
>
> at
> org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1085)
>
> at
> org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:848)
>
> at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
>
> at
> org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:287)
>
> at
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:218)
>
> at
> org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:648)
>
> at
> org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:593)
>
> at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:94)
> at
> com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke(PESessionLockingStandardPipeline.java:98)
>
> at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:222)
>
> at
> org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:648)
>
> at
> org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:593)
>
> at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:587)
>
> at
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1093)
> at
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:166)
>
> at
> org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:648)
>
> at
> org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:593)
>
> at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:587)
>
> at
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1093)
> at
> org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:291)
> at
> com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.invokeAdapter(DefaultProcessorTask.java:666)
>
> at
> com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.doProcess(DefaultProcessorTask.java:597)
>
> at
> com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.process(DefaultProcessorTask.java:872)
>
> at
> com.sun.enterprise.web.connector.grizzly.DefaultReadTask.executeProcessorTask(DefaultReadTask.java:341)
>
> at
> com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:263)
>
> at
> com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:214)
>
> at
> com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:264)
> at
> com.sun.enterprise.web.connector.grizzly.ssl.SSLWorkerThread.run(SSLWorkerThread.java:106)
>
> Caused by: javax.xml.ws.WebServiceException: null is not a valid service
> at
> com.sun.xml.ws.client.WSServiceDelegate.(WSServiceDelegate.java:190)
>
> at
> com.sun.xml.ws.client.WSServiceDelegate.(WSServiceDelegate.java:178)
>
> at
> com.sun.xml.ws.spi.ProviderImpl.createServiceDelegate(ProviderImpl.java:106)
>
> at javax.xml.ws.Service.(Service.java:57)
> at
> simple.server.IPingServiceService.(IPingServiceService.java:58)
> ... 44 more
> WebModule[/SimpleAppClient]StandardWrapper.Throwable
> java.lang.RuntimeException: WEB5002: Exception in handleBeforeEvent.
> at
> com.sun.web.server.J2EEInstanceListener.handleBeforeEvent(J2EEInstanceListener.java:263)
>
> at
> com.sun.web.server.J2EEInstanceListener.instanceEvent(J2EEInstanceListener.java:119)
>
> at
> org.apache.catalina.util.InstanceSupport.fireInstanceEvent(InstanceSupport.java:347)
>
> at
> org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1085)
>
> at
> org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:848)
>
> at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
>
> at
> org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:287)
>
> at
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:218)
>
> at
> org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:648)
>
> at
> org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:593)
>
> at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:94)
> at
> com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke(PESessionLockingStandardPipeline.java:98)
>
> at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:222)
>
> at
> org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:648)
>
> at
> org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:593)
>
> at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:587)
>
> at
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1093)
> at
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:166)
>
> at
> org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:648)
>
> at
> org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:593)
>
> at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:587)
>
> at
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1093)
> at
> org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:291)
> at
> com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.invokeAdapter(DefaultProcessorTask.java:666)
>
> at
> com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.doProcess(DefaultProcessorTask.java:597)
>
> at
> com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.process(DefaultProcessorTask.java:872)
>
> at
> com.sun.enterprise.web.connector.grizzly.DefaultReadTask.executeProcessorTask(DefaultReadTask.java:341)
>
> at
> com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:263)
>
> at
> com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:214)
>
> at
> com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:264)
> at
> com.sun.enterprise.web.connector.grizzly.ssl.SSLWorkerThread.run(SSLWorkerThread.java:106)
>
> Caused by: com.sun.enterprise.InjectionException: Exception attempting
> to inject Env-Prop: simple.client.NewServlet/service@Field-Injectable
> Resource. Class name = simple.client.NewServlet Field
> name=service@javax.jws.WebServiceRef@@@ into class
> simple.client.NewServlet
> at
> com.sun.enterprise.util.InjectionManagerImpl._inject(InjectionManagerImpl.java:387)
>
> at
> com.sun.enterprise.util.InjectionManagerImpl.inject(InjectionManagerImpl.java:206)
>
> at
> com.sun.enterprise.util.InjectionManagerImpl.injectInstance(InjectionManagerImpl.java:117)
>
> at
> com.sun.web.server.J2EEInstanceListener.handleBeforeEvent(J2EEInstanceListener.java:259)
>
> ... 30 more
> Caused by: javax.naming.NamingException [Root exception is
> java.lang.reflect.InvocationTargetException]
> at
> com.sun.enterprise.naming.NamingManagerImpl.getClientServiceObject(NamingManagerImpl.java:1291)
>
> at
> com.sun.enterprise.naming.NamingManagerImpl.lookup(NamingManagerImpl.java:1033)
>
> at
> com.sun.enterprise.naming.java.javaURLContext.lookup(javaURLContext.java:173)
>
> at
> com.sun.enterprise.naming.SerialContext.lookup(SerialContext.java:407)
> at javax.naming.InitialContext.lookup(InitialContext.java:392)
> at
> com.sun.enterprise.util.InjectionManagerImpl._inject(InjectionManagerImpl.java:287)
>
> ... 33 more
> Caused by: java.lang.reflect.InvocationTargetException
> at
> sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
> at
> sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
>
> at
> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
>
> at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
> at
> com.sun.enterprise.naming.NamingManagerImpl.initiateInstance(NamingManagerImpl.java:1128)
>
> at
> com.sun.enterprise.naming.NamingManagerImpl.getClientServiceObject(NamingManagerImpl.java:1208)
>
> ... 38 more
> Caused by: javax.xml.ws.WebServiceException: null is not a valid service
> at
> com.sun.xml.ws.client.WSServiceDelegate.(WSServiceDelegate.java:190)
>
> at
> com.sun.xml.ws.client.WSServiceDelegate.(WSServiceDelegate.java:178)
>
> at
> com.sun.xml.ws.spi.ProviderImpl.createServiceDelegate(ProviderImpl.java:106)
>
> at javax.xml.ws.Service.(Service.java:57)
> at
> simple.server.IPingServiceService.(IPingServiceService.java:58)
> ... 44 more
> StandardWrapperValve[NewServlet]: PWC1382: Allocate exception for
> servlet NewServlet
> java.lang.RuntimeException: WEB5002: Exception in handleBeforeEvent.
> at
> com.sun.web.server.J2EEInstanceListener.handleBeforeEvent(J2EEInstanceListener.java:263)
>
> at
> com.sun.web.server.J2EEInstanceListener.instanceEvent(J2EEInstanceListener.java:119)
>
> at
> org.apache.catalina.util.InstanceSupport.fireInstanceEvent(InstanceSupport.java:347)
>
> at
> org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1085)
>
> at
> org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:848)
>
> at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
>
> at
> org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:287)
>
> at
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:218)
>
> at
> org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:648)
>
> at
> org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:593)
>
> at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:94)
> at
> com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke(PESessionLockingStandardPipeline.java:98)
>
> at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:222)
>
> at
> org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:648)
>
> at
> org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:593)
>
> at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:587)
>
> at
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1093)
> at
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:166)
>
> at
> org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:648)
>
> at
> org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:593)
>
> at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:587)
>
> at
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1093)
> at
> org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:291)
> at
> com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.invokeAdapter(DefaultProcessorTask.java:666)
>
> at
> com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.doProcess(DefaultProcessorTask.java:597)
>
> at
> com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.process(DefaultProcessorTask.java:872)
>
> at
> com.sun.enterprise.web.connector.grizzly.DefaultReadTask.executeProcessorTask(DefaultReadTask.java:341)
>
> at
> com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:263)
>
> at
> com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:214)
>
> at
> com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:264)
> at
> com.sun.enterprise.web.connector.grizzly.ssl.SSLWorkerThread.run(SSLWorkerThread.java:106)
>
> Caused by: com.sun.enterprise.InjectionException: Exception attempting
> to inject Env-Prop: simple.client.NewServlet/service@Field-Injectable
> Resource. Class name = simple.client.NewServlet Field
> name=service@javax.jws.WebServiceRef@@@ into class
> simple.client.NewServlet
> at
> com.sun.enterprise.util.InjectionManagerImpl._inject(InjectionManagerImpl.java:387)
>
> at
> com.sun.enterprise.util.InjectionManagerImpl.inject(InjectionManagerImpl.java:206)
>
> at
> com.sun.enterprise.util.InjectionManagerImpl.injectInstance(InjectionManagerImpl.java:117)
>
> at
> com.sun.web.server.J2EEInstanceListener.handleBeforeEvent(J2EEInstanceListener.java:259)
>
> ... 30 more
> Caused by: javax.naming.NamingException [Root exception is
> java.lang.reflect.InvocationTargetException]
> at
> com.sun.enterprise.naming.NamingManagerImpl.getClientServiceObject(NamingManagerImpl.java:1291)
>
> at
> com.sun.enterprise.naming.NamingManagerImpl.lookup(NamingManagerImpl.java:1033)
>
> at
> com.sun.enterprise.naming.java.javaURLContext.lookup(javaURLContext.java:173)
>
> at
> com.sun.enterprise.naming.SerialContext.lookup(SerialContext.java:407)
> at javax.naming.InitialContext.lookup(InitialContext.java:392)
> at
> com.sun.enterprise.util.InjectionManagerImpl._inject(InjectionManagerImpl.java:287)
>
> ... 33 more
> Caused by: java.lang.reflect.InvocationTargetException
> at
> sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
> at
> sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
>
> at
> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
>
> at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
> at
> com.sun.enterprise.naming.NamingManagerImpl.initiateInstance(NamingManagerImpl.java:1128)
>
> at
> com.sun.enterprise.naming.NamingManagerImpl.getClientServiceObject(NamingManagerImpl.java:1208)
>
> ... 38 more
> Caused by: javax.xml.ws.WebServiceException: null is not a valid service
> at
> com.sun.xml.ws.client.WSServiceDelegate.(WSServiceDelegate.java:190)
>
> at
> com.sun.xml.ws.client.WSServiceDelegate.(WSServiceDelegate.java:178)
>
> at
> com.sun.xml.ws.spi.ProviderImpl.createServiceDelegate(ProviderImpl.java:106)
>
> at javax.xml.ws.Service.(Service.java:57)
> at
> simple.server.IPingServiceService.(IPingServiceService.java:58)
> ... 44 more
>
>
>
> Thanks,
> Sreekanth
>
> Sreekanth wrote:
>> Hi ,
>>
>> I have a simple webservice and client program created through
>> Netbeans.When I try to run my client program, I see the below
>> exception.Please find the attached client program.
>>
>> Is this a bug in Netbeans/Metro ?
>>
>> Error Log:
>> ==========
>>
>> WSP5018: Loaded WSIT configuration from file:
>> jndi:/server/wsit-enabled-fromjava-js61/WEB-INF/wsit-simple.server.IPingService.xml.
>>
>> Monitoring rootname successfully set to:
>> {http://server.simple/}IPingServiceService{http://server.simple/}IPingServicePort
>>
>> classLoader = WebappClassLoader
>> delegate: true
>> repositories:
>> /WEB-INF/classes/
>> ----------> Parent Classloader:
>> EJBClassLoader :
>> urlSet = []
>> doneCalled = false
>> Parent -> java.net.URLClassLoader@cbd8dc
>> SharedSecrets.getJavaNetAccess()=java.net.URLClassLoader$7@1d063b3
>> Class must be annotated with a interface
>> javax.xml.ws.WebServiceClient annotation
>> symbol : interface javax.xml.ws.WebServiceClient
>> location: class simple.server.IPingServiceService
>> Annotations processing failed for
>> /home/sreekanth/NetBeansProjects/wsit-enabled-fromjava-js61-client/build/web
>>
>> deployed with moduleid = wsit-enabled-fromjava-js61-client
>> naming.bind
>> java.lang.reflect.InvocationTargetException
>> at
>> sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
>> at
>> sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
>>
>> at
>> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
>>
>> at
>> java.lang.reflect.Constructor.newInstance(Constructor.java:513)
>> at
>> com.sun.enterprise.naming.NamingManagerImpl.initiateInstance(NamingManagerImpl.java:1124)
>>
>> at
>> com.sun.enterprise.naming.NamingManagerImpl.getClientServiceObject(NamingManagerImpl.java:1204)
>>
>> at
>> com.sun.enterprise.naming.NamingManagerImpl.lookup(NamingManagerImpl.java:1029)
>>
>> at
>> com.sun.enterprise.naming.java.javaURLContext.lookup(javaURLContext.java:173)
>>
>> at
>> com.sun.enterprise.naming.SerialContext.lookup(SerialContext.java:407)
>> at javax.naming.InitialContext.lookup(InitialContext.java:392)
>> at
>> com.sun.enterprise.util.InjectionManagerImpl._inject(InjectionManagerImpl.java:287)
>>
>> at
>> com.sun.enterprise.util.InjectionManagerImpl.inject(InjectionManagerImpl.java:206)
>>
>> at
>> com.sun.enterprise.util.InjectionManagerImpl.injectInstance(InjectionManagerImpl.java:117)
>>
>> at
>> com.sun.web.server.J2EEInstanceListener.handleBeforeEvent(J2EEInstanceListener.java:259)
>>
>> at
>> com.sun.web.server.J2EEInstanceListener.instanceEvent(J2EEInstanceListener.java:119)
>>
>> at
>> org.apache.catalina.util.InstanceSupport.fireInstanceEvent(InstanceSupport.java:347)
>>
>> at
>> org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1085)
>>
>> at
>> org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:848)
>>
>> at
>> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
>>
>> at
>> org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:287)
>>
>> at
>> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:218)
>>
>> at
>> org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:648)
>>
>> at
>> org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:593)
>>
>> at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:94)
>> at
>> com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke(PESessionLockingStandardPipeline.java:98)
>>
>> at
>> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:222)
>>
>> at
>> org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:648)
>>
>> at
>> org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:593)
>>
>> at
>> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:587)
>>
>> at
>> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1096)
>> at
>> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:166)
>>
>> at
>> org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:648)
>>
>> at
>> org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:593)
>>
>> at
>> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:587)
>>
>> at
>> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1096)
>> at
>> org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:291)
>> at
>> com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.invokeAdapter(DefaultProcessorTask.java:666)
>>
>> at
>> com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.doProcess(DefaultProcessorTask.java:597)
>>
>> at
>> com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.process(DefaultProcessorTask.java:871)
>>
>> at
>> com.sun.enterprise.web.connector.grizzly.DefaultReadTask.executeProcessorTask(DefaultReadTask.java:341)
>>
>> at
>> com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:263)
>>
>> at
>> com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:214)
>>
>> at
>> com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:265)
>> at
>> com.sun.enterprise.web.connector.grizzly.ssl.SSLWorkerThread.run(SSLWorkerThread.java:106)
>>
>> Caused by: javax.xml.ws.WebServiceException: null is not a valid service
>> at
>> com.sun.xml.ws.client.WSServiceDelegate.(WSServiceDelegate.java:190)
>>
>> at
>> com.sun.xml.ws.client.WSServiceDelegate.(WSServiceDelegate.java:178)
>>
>> at
>> com.sun.xml.ws.spi.ProviderImpl.createServiceDelegate(ProviderImpl.java:106)
>>
>> at javax.xml.ws.Service.(Service.java:57)
>> at
>> simple.server.IPingServiceService.(IPingServiceService.java:58)
>> ... 44 more
>> WebModule[/wsit-enabled-fromjava-js61-client]StandardWrapper.Throwable
>> java.lang.RuntimeException: WEB5002: Exception in handleBeforeEvent.
>> at
>> com.sun.web.server.J2EEInstanceListener.handleBeforeEvent(J2EEInstanceListener.java:263)
>>
>> at
>> com.sun.web.server.J2EEInstanceListener.instanceEvent(J2EEInstanceListener.java:119)
>>
>> at
>> org.apache.catalina.util.InstanceSupport.fireInstanceEvent(InstanceSupport.java:347)
>>
>> at
>> org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1085)
>>
>> at
>> org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:848)
>>
>> at
>> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
>>
>> at
>> org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:287)
>>
>> at
>> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:218)
>>
>> at
>> org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:648)
>>
>> at
>> org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:593)
>>
>> at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:94)
>> at
>> com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke(PESessionLockingStandardPipeline.java:98)
>>
>> at
>> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:222)
>>
>> at
>> org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:648)
>>
>> at
>> org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:593)
>>
>> at
>> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:587)
>>
>> at
>> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1096)
>> at
>> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:166)
>>
>> at
>> org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:648)
>>
>> at
>> org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:593)
>>
>> at
>> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:587)
>>
>> at
>> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1096)
>> at
>> org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:291)
>> at
>> com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.invokeAdapter(DefaultProcessorTask.java:666)
>>
>> at
>> com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.doProcess(DefaultProcessorTask.java:597)
>>
>> at
>> com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.process(DefaultProcessorTask.java:871)
>>
>> at
>> com.sun.enterprise.web.connector.grizzly.DefaultReadTask.executeProcessorTask(DefaultReadTask.java:341)
>>
>> at
>> com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:263)
>>
>> at
>> com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:214)
>>
>> at
>> com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:265)
>> at
>> com.sun.enterprise.web.connector.grizzly.ssl.SSLWorkerThread.run(SSLWorkerThread.java:106)
>>
>> Caused by: com.sun.enterprise.InjectionException: Exception
>> attempting to inject Env-Prop:
>> simple.client.NewServlet/service@Field-Injectable Resource. Class
>> name = simple.client.NewServlet Field
>> name=service@javax.jws.WebServiceRef@@@ into class
>> simple.client.NewServlet
>> at
>> com.sun.enterprise.util.InjectionManagerImpl._inject(InjectionManagerImpl.java:387)
>>
>> at
>> com.sun.enterprise.util.InjectionManagerImpl.inject(InjectionManagerImpl.java:206)
>>
>> at
>> com.sun.enterprise.util.InjectionManagerImpl.injectInstance(InjectionManagerImpl.java:117)
>>
>> at
>> com.sun.web.server.J2EEInstanceListener.handleBeforeEvent(J2EEInstanceListener.java:259)
>>
>> ... 30 more
>> Caused by: javax.naming.NamingException [Root exception is
>> java.lang.reflect.InvocationTargetException]
>> at
>> com.sun.enterprise.naming.NamingManagerImpl.getClientServiceObject(NamingManagerImpl.java:1287)
>>
>> at
>> com.sun.enterprise.naming.NamingManagerImpl.lookup(NamingManagerImpl.java:1029)
>>
>> at
>> com.sun.enterprise.naming.java.javaURLContext.lookup(javaURLContext.java:173)
>>
>> at
>> com.sun.enterprise.naming.SerialContext.lookup(SerialContext.java:407)
>> at javax.naming.InitialContext.lookup(InitialContext.java:392)
>> at
>> com.sun.enterprise.util.InjectionManagerImpl._inject(InjectionManagerImpl.java:287)
>>
>> ... 33 more
>> Caused by: java.lang.reflect.InvocationTargetException
>> at
>> sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
>> at
>> sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
>>
>> at
>> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
>>
>> at
>> java.lang.reflect.Constructor.newInstance(Constructor.java:513)
>> at
>> com.sun.enterprise.naming.NamingManagerImpl.initiateInstance(NamingManagerImpl.java:1124)
>>
>> at
>> com.sun.enterprise.naming.NamingManagerImpl.getClientServiceObject(NamingManagerImpl.java:1204)
>>
>> ... 38 more
>> Caused by: javax.xml.ws.WebServiceException: null is not a valid service
>> at
>> com.sun.xml.ws.client.WSServiceDelegate.(WSServiceDelegate.java:190)
>>
>> at
>> com.sun.xml.ws.client.WSServiceDelegate.(WSServiceDelegate.java:178)
>>
>> at
>> com.sun.xml.ws.spi.ProviderImpl.createServiceDelegate(ProviderImpl.java:106)
>>
>> at javax.xml.ws.Service.(Service.java:57)
>> at
>> simple.server.IPingServiceService.(IPingServiceService.java:58)
>> ... 44 more
>> StandardWrapperValve[NewServlet]: PWC1382: Allocate exception for
>> servlet NewServlet
>> java.lang.RuntimeException: WEB5002: Exception in handleBeforeEvent.
>> at
>> com.sun.web.server.J2EEInstanceListener.handleBeforeEvent(J2EEInstanceListener.java:263)
>>
>> at
>> com.sun.web.server.J2EEInstanceListener.instanceEvent(J2EEInstanceListener.java:119)
>>
>> at
>> org.apache.catalina.util.InstanceSupport.fireInstanceEvent(InstanceSupport.java:347)
>>
>> at
>> org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1085)
>>
>> at
>> org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:848)
>>
>> at
>> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
>>
>> at
>> org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:287)
>>
>> at
>> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:218)
>>
>> at
>> org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:648)
>>
>> at
>> org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:593)
>>
>> at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:94)
>> at
>> com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke(PESessionLockingStandardPipeline.java:98)
>>
>> at
>> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:222)
>>
>> at
>> org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:648)
>>
>> at
>> org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:593)
>>
>> at
>> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:587)
>>
>> at
>> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1096)
>> at
>> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:166)
>>
>> at
>> org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:648)
>>
>> at
>> org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:593)
>>
>> at
>> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:587)
>>
>> at
>> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1096)
>> at
>> org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:291)
>> at
>> com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.invokeAdapter(DefaultProcessorTask.java:666)
>>
>> at
>> com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.doProcess(DefaultProcessorTask.java:597)
>>
>> at
>> com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.process(DefaultProcessorTask.java:871)
>>
>> at
>> com.sun.enterprise.web.connector.grizzly.DefaultReadTask.executeProcessorTask(DefaultReadTask.java:341)
>>
>> at
>> com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:263)
>>
>> at
>> com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:214)
>>
>> at
>> com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:265)
>> at
>> com.sun.enterprise.web.connector.grizzly.ssl.SSLWorkerThread.run(SSLWorkerThread.java:106)
>>
>> Caused by: com.sun.enterprise.InjectionException: Exception
>> attempting to inject Env-Prop:
>> simple.client.NewServlet/service@Field-Injectable Resource. Class
>> name = simple.client.NewServlet Field
>> name=service@javax.jws.WebServiceRef@@@ into class
>> simple.client.NewServlet
>> at
>> com.sun.enterprise.util.InjectionManagerImpl._inject(InjectionManagerImpl.java:387)
>>
>> at
>> com.sun.enterprise.util.InjectionManagerImpl.inject(InjectionManagerImpl.java:206)
>>
>> at
>> com.sun.enterprise.util.InjectionManagerImpl.injectInstance(InjectionManagerImpl.java:117)
>>
>> at
>> com.sun.web.server.J2EEInstanceListener.handleBeforeEvent(J2EEInstanceListener.java:259)
>>
>> ... 30 more
>> Caused by: javax.naming.NamingException [Root exception is
>> java.lang.reflect.InvocationTargetException]
>> at
>> com.sun.enterprise.naming.NamingManagerImpl.getClientServiceObject(NamingManagerImpl.java:1287)
>>
>> at
>> com.sun.enterprise.naming.NamingManagerImpl.lookup(NamingManagerImpl.java:1029)
>>
>> at
>> com.sun.enterprise.naming.java.javaURLContext.lookup(javaURLContext.java:173)
>>
>> at
>> com.sun.enterprise.naming.SerialContext.lookup(SerialContext.java:407)
>> at javax.naming.InitialContext.lookup(InitialContext.java:392)
>> at
>> com.sun.enterprise.util.InjectionManagerImpl._inject(InjectionManagerImpl.java:287)
>>
>> ... 33 more
>> Caused by: java.lang.reflect.InvocationTargetException
>> at
>> sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
>> at
>> sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
>>
>> at
>> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
>>
>> at
>> java.lang.reflect.Constructor.newInstance(Constructor.java:513)
>> at
>> com.sun.enterprise.naming.NamingManagerImpl.initiateInstance(NamingManagerImpl.java:1124)
>>
>> at
>> com.sun.enterprise.naming.NamingManagerImpl.getClientServiceObject(NamingManagerImpl.java:1204)
>>
>> ... 38 more
>> Caused by: javax.xml.ws.WebServiceException: null is not a valid service
>> at
>> com.sun.xml.ws.client.WSServiceDelegate.(WSServiceDelegate.java:190)
>>
>> at
>> com.sun.xml.ws.client.WSServiceDelegate.(WSServiceDelegate.java:178)
>>
>> at
>> com.sun.xml.ws.spi.ProviderImpl.createServiceDelegate(ProviderImpl.java:106)
>>
>> at javax.xml.ws.Service.(Service.java:57)
>> at
>> simple.server.IPingServiceService.(IPingServiceService.java:58)
>> ... 44 more
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@metro.dev.java.net
> For additional commands, e-mail: dev-help@metro.dev.java.net
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@metro.dev.java.net
For additional commands, e-mail: users-help@metro.dev.java.net

Potociar Marek

Similarly, the same behavior can be observed with the @WebServiceRef
annotation.
Marek

On 23.9.2009, at 11:03, Sreekanth wrote:

> Filed a P1: https://jax-ws.dev.java.net/issues/show_bug.cgi?id=798
>
> This is working with WSIT promoted build 19 and before.But not with
> promoted build 20 and latest nightly build.
>
> Thanks,
> Sreekanth
>
> Sreekanth wrote:
>> Hi ,
>>
>> (Copying to Dev alias)
>>
>> I just installed NB 6.8 ML1 and see the same here too.Did any one
>> face this?
>>
>> Here is what I have done:
>>
>> * Installed NB 6.8 ML1
>> * Install GF v2.1.1
>> * Install Metro Latest bits
>> * Create a new Webservice sample to use Mutual Certificate
>> Security.
>> * Deploy it.
>> * Create a client
>> * Deploy the Client and then Run it.
>>
>> I see the below exception :
>>
>> DPL5306:Servlet Web Service Endpoint [IPingService] listening at
>> address [http://sreekanth-laptop:8080/SimpleApp/IPingServiceService]
>> deployed with moduleid = SimpleApp
>> WSP5018: Loaded WSIT configuration from file: jndi:/server/
>> SimpleApp/WEB-INF/wsit-simple.server.IPingService.xml.
>> Monitoring rootname successfully set to: {http://
>> server.simple/}IPingServiceService{http://
>> server.simple/}IPingServicePort
>> GMBAL901: JMX exception on registration of MBean
>> MBeanImpl[type=Service,name={http://
>> server.simple/}IPingServiceService{http://
>> server
>> .simple
>> /}IPingServicePort,oname=com.sun.metro:pp=/,type=Service,name="{http://server.simple/
>> }IPingServiceService{http://server.simple/}IPingServicePort"]
>> Class must be annotated with a interface
>> javax.xml.ws.WebServiceClient annotation
>> symbol : interface javax.xml.ws.WebServiceClient
>> location: class simple.server.IPingServiceService
>> Annotations processing failed for /home/sreekanth/NetBeansProjects/
>> SimpleAppClient/build/web
>> deployed with moduleid = SimpleAppClient
>> naming.bind
>> java.lang.reflect.InvocationTargetException
>> at
>> sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
>> at
>> sun
>> .reflect
>> .NativeConstructorAccessorImpl
>> .newInstance(NativeConstructorAccessorImpl.java:39)
>> at
>> sun
>> .reflect
>> .DelegatingConstructorAccessorImpl
>> .newInstance(DelegatingConstructorAccessorImpl.java:27)
>> at java.lang.reflect.Constructor.newInstance(Constructor.java:
>> 513)
>> at
>> com
>> .sun
>> .enterprise
>> .naming.NamingManagerImpl.initiateInstance(NamingManagerImpl.java:
>> 1128)
>> at
>> com
>> .sun
>> .enterprise
>> .naming
>> .NamingManagerImpl.getClientServiceObject(NamingManagerImpl.java:
>> 1208)
>> at
>> com
>> .sun
>> .enterprise.naming.NamingManagerImpl.lookup(NamingManagerImpl.java:
>> 1033)
>> at
>> com
>> .sun
>> .enterprise.naming.java.javaURLContext.lookup(javaURLContext.java:
>> 173)
>> at
>> com.sun.enterprise.naming.SerialContext.lookup(SerialContext.java:
>> 407)
>> at javax.naming.InitialContext.lookup(InitialContext.java:392)
>> at
>> com
>> .sun
>> .enterprise
>> .util.InjectionManagerImpl._inject(InjectionManagerImpl.java:287)
>> at
>> com
>> .sun
>> .enterprise
>> .util.InjectionManagerImpl.inject(InjectionManagerImpl.java:206)
>> at
>> com
>> .sun
>> .enterprise
>> .util.InjectionManagerImpl.injectInstance(InjectionManagerImpl.java:
>> 117)
>> at
>> com
>> .sun
>> .web
>> .server
>> .J2EEInstanceListener.handleBeforeEvent(J2EEInstanceListener.java:
>> 259)
>> at
>> com
>> .sun
>> .web
>> .server
>> .J2EEInstanceListener.instanceEvent(J2EEInstanceListener.java:119)
>> at
>> org
>> .apache
>> .catalina
>> .util.InstanceSupport.fireInstanceEvent(InstanceSupport.java:347)
>> at
>> org
>> .apache
>> .catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1085)
>> at
>> org
>> .apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:
>> 848)
>> at
>> org
>> .apache
>> .catalina
>> .core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
>> at
>> org
>> .apache
>> .catalina
>> .core.StandardContextValve.invokeInternal(StandardContextValve.java:
>> 287)
>> at
>> org
>> .apache
>> .catalina
>> .core.StandardContextValve.invoke(StandardContextValve.java:218)
>> at
>> org
>> .apache
>> .catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:648)
>> at
>> org
>> .apache
>> .catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:593)
>> at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:
>> 94)
>> at com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke
>> (PESessionLockingStandardPipeline.java:98)
>> at
>> org
>> .apache
>> .catalina.core.StandardHostValve.invoke(StandardHostValve.java:222)
>> at
>> org
>> .apache
>> .catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:648)
>> at
>> org
>> .apache
>> .catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:593)
>> at
>> org
>> .apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:
>> 587)
>> at
>> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:
>> 1093)
>> at
>> org
>> .apache
>> .catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:
>> 166)
>> at
>> org
>> .apache
>> .catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:648)
>> at
>> org
>> .apache
>> .catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:593)
>> at
>> org
>> .apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:
>> 587)
>> at
>> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:
>> 1093)
>> at
>> org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:
>> 291)
>> at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.invokeAdapter
>> (DefaultProcessorTask.java:666)
>> at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.doProcess
>> (DefaultProcessorTask.java:597)
>> at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.process
>> (DefaultProcessorTask.java:872)
>> at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.executeProcessorTask
>> (DefaultReadTask.java:341)
>> at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask
>> (DefaultReadTask.java:263)
>> at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask
>> (DefaultReadTask.java:214)
>> at
>> com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:
>> 264)
>> at com.sun.enterprise.web.connector.grizzly.ssl.SSLWorkerThread.run
>> (SSLWorkerThread.java:106)
>> Caused by: javax.xml.ws.WebServiceException: null is not a valid
>> service
>> at
>> com
>> .sun.xml.ws.client.WSServiceDelegate.(WSServiceDelegate.java:
>> 190)
>> at
>> com
>> .sun.xml.ws.client.WSServiceDelegate.(WSServiceDelegate.java:
>> 178)
>> at
>> com
>> .sun
>> .xml.ws.spi.ProviderImpl.createServiceDelegate(ProviderImpl.java:106)
>> at javax.xml.ws.Service.(Service.java:57)
>> at
>> simple.server.IPingServiceService.(IPingServiceService.java:58)
>> ... 44 more
>> WebModule[/SimpleAppClient]StandardWrapper.Throwable
>> java.lang.RuntimeException: WEB5002: Exception in handleBeforeEvent.
>> at
>> com
>> .sun
>> .web
>> .server
>> .J2EEInstanceListener.handleBeforeEvent(J2EEInstanceListener.java:
>> 263)
>> at
>> com
>> .sun
>> .web
>> .server
>> .J2EEInstanceListener.instanceEvent(J2EEInstanceListener.java:119)
>> at
>> org
>> .apache
>> .catalina
>> .util.InstanceSupport.fireInstanceEvent(InstanceSupport.java:347)
>> at
>> org
>> .apache
>> .catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1085)
>> at
>> org
>> .apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:
>> 848)
>> at
>> org
>> .apache
>> .catalina
>> .core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
>> at
>> org
>> .apache
>> .catalina
>> .core.StandardContextValve.invokeInternal(StandardContextValve.java:
>> 287)
>> at
>> org
>> .apache
>> .catalina
>> .core.StandardContextValve.invoke(StandardContextValve.java:218)
>> at
>> org
>> .apache
>> .catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:648)
>> at
>> org
>> .apache
>> .catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:593)
>> at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:
>> 94)
>> at com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke
>> (PESessionLockingStandardPipeline.java:98)
>> at
>> org
>> .apache
>> .catalina.core.StandardHostValve.invoke(StandardHostValve.java:222)
>> at
>> org
>> .apache
>> .catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:648)
>> at
>> org
>> .apache
>> .catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:593)
>> at
>> org
>> .apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:
>> 587)
>> at
>> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:
>> 1093)
>> at
>> org
>> .apache
>> .catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:
>> 166)
>> at
>> org
>> .apache
>> .catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:648)
>> at
>> org
>> .apache
>> .catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:593)
>> at
>> org
>> .apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:
>> 587)
>> at
>> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:
>> 1093)
>> at
>> org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:
>> 291)
>> at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.invokeAdapter
>> (DefaultProcessorTask.java:666)
>> at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.doProcess
>> (DefaultProcessorTask.java:597)
>> at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.process
>> (DefaultProcessorTask.java:872)
>> at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.executeProcessorTask
>> (DefaultReadTask.java:341)
>> at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask
>> (DefaultReadTask.java:263)
>> at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask
>> (DefaultReadTask.java:214)
>> at
>> com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:
>> 264)
>> at com.sun.enterprise.web.connector.grizzly.ssl.SSLWorkerThread.run
>> (SSLWorkerThread.java:106)
>> Caused by: com.sun.enterprise.InjectionException: Exception
>> attempting to inject Env-Prop: simple.client.NewServlet/
>> service@Field-Injectable Resource. Class name =
>> simple.client.NewServlet Field
>> name=service@javax.jws.WebServiceRef@@@ into class
>> simple.client.NewServlet
>> at
>> com
>> .sun
>> .enterprise
>> .util.InjectionManagerImpl._inject(InjectionManagerImpl.java:387)
>> at
>> com
>> .sun
>> .enterprise
>> .util.InjectionManagerImpl.inject(InjectionManagerImpl.java:206)
>> at
>> com
>> .sun
>> .enterprise
>> .util.InjectionManagerImpl.injectInstance(InjectionManagerImpl.java:
>> 117)
>> at
>> com
>> .sun
>> .web
>> .server
>> .J2EEInstanceListener.handleBeforeEvent(J2EEInstanceListener.java:
>> 259)
>> ... 30 more
>> Caused by: javax.naming.NamingException [Root exception is
>> java.lang.reflect.InvocationTargetException]
>> at
>> com
>> .sun
>> .enterprise
>> .naming
>> .NamingManagerImpl.getClientServiceObject(NamingManagerImpl.java:
>> 1291)
>> at
>> com
>> .sun
>> .enterprise.naming.NamingManagerImpl.lookup(NamingManagerImpl.java:
>> 1033)
>> at
>> com
>> .sun
>> .enterprise.naming.java.javaURLContext.lookup(javaURLContext.java:
>> 173)
>> at
>> com.sun.enterprise.naming.SerialContext.lookup(SerialContext.java:
>> 407)
>> at javax.naming.InitialContext.lookup(InitialContext.java:392)
>> at
>> com
>> .sun
>> .enterprise
>> .util.InjectionManagerImpl._inject(InjectionManagerImpl.java:287)
>> ... 33 more
>> Caused by: java.lang.reflect.InvocationTargetException
>> at
>> sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
>> at
>> sun
>> .reflect
>> .NativeConstructorAccessorImpl
>> .newInstance(NativeConstructorAccessorImpl.java:39)
>> at
>> sun
>> .reflect
>> .DelegatingConstructorAccessorImpl
>> .newInstance(DelegatingConstructorAccessorImpl.java:27)
>> at java.lang.reflect.Constructor.newInstance(Constructor.java:
>> 513)
>> at
>> com
>> .sun
>> .enterprise
>> .naming.NamingManagerImpl.initiateInstance(NamingManagerImpl.java:
>> 1128)
>> at
>> com
>> .sun
>> .enterprise
>> .naming
>> .NamingManagerImpl.getClientServiceObject(NamingManagerImpl.java:
>> 1208)
>> ... 38 more
>> Caused by: javax.xml.ws.WebServiceException: null is not a valid
>> service
>> at
>> com
>> .sun.xml.ws.client.WSServiceDelegate.(WSServiceDelegate.java:
>> 190)
>> at
>> com
>> .sun.xml.ws.client.WSServiceDelegate.(WSServiceDelegate.java:
>> 178)
>> at
>> com
>> .sun
>> .xml.ws.spi.ProviderImpl.createServiceDelegate(ProviderImpl.java:106)
>> at javax.xml.ws.Service.(Service.java:57)
>> at
>> simple.server.IPingServiceService.(IPingServiceService.java:58)
>> ... 44 more
>> StandardWrapperValve[NewServlet]: PWC1382: Allocate exception for
>> servlet NewServlet
>> java.lang.RuntimeException: WEB5002: Exception in handleBeforeEvent.
>> at
>> com
>> .sun
>> .web
>> .server
>> .J2EEInstanceListener.handleBeforeEvent(J2EEInstanceListener.java:
>> 263)
>> at
>> com
>> .sun
>> .web
>> .server
>> .J2EEInstanceListener.instanceEvent(J2EEInstanceListener.java:119)
>> at
>> org
>> .apache
>> .catalina
>> .util.InstanceSupport.fireInstanceEvent(InstanceSupport.java:347)
>> at
>> org
>> .apache
>> .catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1085)
>> at
>> org
>> .apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:
>> 848)
>> at
>> org
>> .apache
>> .catalina
>> .core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
>> at
>> org
>> .apache
>> .catalina
>> .core.StandardContextValve.invokeInternal(StandardContextValve.java:
>> 287)
>> at
>> org
>> .apache
>> .catalina
>> .core.StandardContextValve.invoke(StandardContextValve.java:218)
>> at
>> org
>> .apache
>> .catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:648)
>> at
>> org
>> .apache
>> .catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:593)
>> at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:
>> 94)
>> at com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke
>> (PESessionLockingStandardPipeline.java:98)
>> at
>> org
>> .apache
>> .catalina.core.StandardHostValve.invoke(StandardHostValve.java:222)
>> at
>> org
>> .apache
>> .catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:648)
>> at
>> org
>> .apache
>> .catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:593)
>> at
>> org
>> .apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:
>> 587)
>> at
>> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:
>> 1093)
>> at
>> org
>> .apache
>> .catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:
>> 166)
>> at
>> org
>> .apache
>> .catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:648)
>> at
>> org
>> .apache
>> .catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:593)
>> at
>> org
>> .apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:
>> 587)
>> at
>> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:
>> 1093)
>> at
>> org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:
>> 291)
>> at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.invokeAdapter
>> (DefaultProcessorTask.java:666)
>> at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.doProcess
>> (DefaultProcessorTask.java:597)
>> at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.process
>> (DefaultProcessorTask.java:872)
>> at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.executeProcessorTask
>> (DefaultReadTask.java:341)
>> at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask
>> (DefaultReadTask.java:263)
>> at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask
>> (DefaultReadTask.java:214)
>> at
>> com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:
>> 264)
>> at com.sun.enterprise.web.connector.grizzly.ssl.SSLWorkerThread.run
>> (SSLWorkerThread.java:106)
>> Caused by: com.sun.enterprise.InjectionException: Exception
>> attempting to inject Env-Prop: simple.client.NewServlet/
>> service@Field-Injectable Resource. Class name =
>> simple.client.NewServlet Field
>> name=service@javax.jws.WebServiceRef@@@ into class
>> simple.client.NewServlet
>> at
>> com
>> .sun
>> .enterprise
>> .util.InjectionManagerImpl._inject(InjectionManagerImpl.java:387)
>> at
>> com
>> .sun
>> .enterprise
>> .util.InjectionManagerImpl.inject(InjectionManagerImpl.java:206)
>> at
>> com
>> .sun
>> .enterprise
>> .util.InjectionManagerImpl.injectInstance(InjectionManagerImpl.java:
>> 117)
>> at
>> com
>> .sun
>> .web
>> .server
>> .J2EEInstanceListener.handleBeforeEvent(J2EEInstanceListener.java:
>> 259)
>> ... 30 more
>> Caused by: javax.naming.NamingException [Root exception is
>> java.lang.reflect.InvocationTargetException]
>> at
>> com
>> .sun
>> .enterprise
>> .naming
>> .NamingManagerImpl.getClientServiceObject(NamingManagerImpl.java:
>> 1291)
>> at
>> com
>> .sun
>> .enterprise.naming.NamingManagerImpl.lookup(NamingManagerImpl.java:
>> 1033)
>> at
>> com
>> .sun
>> .enterprise.naming.java.javaURLContext.lookup(javaURLContext.java:
>> 173)
>> at
>> com.sun.enterprise.naming.SerialContext.lookup(SerialContext.java:
>> 407)
>> at javax.naming.InitialContext.lookup(InitialContext.java:392)
>> at
>> com
>> .sun
>> .enterprise
>> .util.InjectionManagerImpl._inject(InjectionManagerImpl.java:287)
>> ... 33 more
>> Caused by: java.lang.reflect.InvocationTargetException
>> at
>> sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
>> at
>> sun
>> .reflect
>> .NativeConstructorAccessorImpl
>> .newInstance(NativeConstructorAccessorImpl.java:39)
>> at
>> sun
>> .reflect
>> .DelegatingConstructorAccessorImpl
>> .newInstance(DelegatingConstructorAccessorImpl.java:27)
>> at java.lang.reflect.Constructor.newInstance(Constructor.java:
>> 513)
>> at
>> com
>> .sun
>> .enterprise
>> .naming.NamingManagerImpl.initiateInstance(NamingManagerImpl.java:
>> 1128)
>> at
>> com
>> .sun
>> .enterprise
>> .naming
>> .NamingManagerImpl.getClientServiceObject(NamingManagerImpl.java:
>> 1208)
>> ... 38 more
>> Caused by: javax.xml.ws.WebServiceException: null is not a valid
>> service
>> at
>> com
>> .sun.xml.ws.client.WSServiceDelegate.(WSServiceDelegate.java:
>> 190)
>> at
>> com
>> .sun.xml.ws.client.WSServiceDelegate.(WSServiceDelegate.java:
>> 178)
>> at
>> com
>> .sun
>> .xml.ws.spi.ProviderImpl.createServiceDelegate(ProviderImpl.java:106)
>> at javax.xml.ws.Service.(Service.java:57)
>> at
>> simple.server.IPingServiceService.(IPingServiceService.java:58)
>> ... 44 more
>>
>>
>>
>> Thanks,
>> Sreekanth
>>
>> Sreekanth wrote:
>>> Hi ,
>>>
>>> I have a simple webservice and client program created through
>>> Netbeans.When I try to run my client program, I see the below
>>> exception.Please find the attached client program.
>>>
>>> Is this a bug in Netbeans/Metro ?
>>>
>>> Error Log:
>>> ==========
>>>
>>> WSP5018: Loaded WSIT configuration from file: jndi:/server/wsit-
>>> enabled-fromjava-js61/WEB-INF/wsit-simple.server.IPingService.xml.
>>> Monitoring rootname successfully set to: {http://
>>> server.simple/}IPingServiceService{http://
>>> server.simple/}IPingServicePort
>>> classLoader = WebappClassLoader
>>> delegate: true
>>> repositories:
>>> /WEB-INF/classes/
>>> ----------> Parent Classloader:
>>> EJBClassLoader :
>>> urlSet = []
>>> doneCalled = false
>>> Parent -> java.net.URLClassLoader@cbd8dc
>>> SharedSecrets.getJavaNetAccess()=java.net.URLClassLoader$7@1d063b3
>>> Class must be annotated with a interface
>>> javax.xml.ws.WebServiceClient annotation
>>> symbol : interface javax.xml.ws.WebServiceClient
>>> location: class simple.server.IPingServiceService
>>> Annotations processing failed for /home/sreekanth/NetBeansProjects/
>>> wsit-enabled-fromjava-js61-client/build/web
>>> deployed with moduleid = wsit-enabled-fromjava-js61-client
>>> naming.bind
>>> java.lang.reflect.InvocationTargetException
>>> at
>>> sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
>>> Method)
>>> at
>>> sun
>>> .reflect
>>> .NativeConstructorAccessorImpl
>>> .newInstance(NativeConstructorAccessorImpl.java:39)
>>> at
>>> sun
>>> .reflect
>>> .DelegatingConstructorAccessorImpl
>>> .newInstance(DelegatingConstructorAccessorImpl.java:27)
>>> at
>>> java.lang.reflect.Constructor.newInstance(Constructor.java:513)
>>> at
>>> com
>>> .sun
>>> .enterprise
>>> .naming.NamingManagerImpl.initiateInstance(NamingManagerImpl.java:
>>> 1124)
>>> at
>>> com
>>> .sun
>>> .enterprise
>>> .naming
>>> .NamingManagerImpl.getClientServiceObject(NamingManagerImpl.java:
>>> 1204)
>>> at
>>> com
>>> .sun
>>> .enterprise.naming.NamingManagerImpl.lookup(NamingManagerImpl.java:
>>> 1029)
>>> at
>>> com
>>> .sun
>>> .enterprise.naming.java.javaURLContext.lookup(javaURLContext.java:
>>> 173)
>>> at
>>> com.sun.enterprise.naming.SerialContext.lookup(SerialContext.java:
>>> 407)
>>> at javax.naming.InitialContext.lookup(InitialContext.java:392)
>>> at
>>> com
>>> .sun
>>> .enterprise
>>> .util.InjectionManagerImpl._inject(InjectionManagerImpl.java:287)
>>> at
>>> com
>>> .sun
>>> .enterprise
>>> .util.InjectionManagerImpl.inject(InjectionManagerImpl.java:206)
>>> at
>>> com
>>> .sun
>>> .enterprise
>>> .util
>>> .InjectionManagerImpl.injectInstance(InjectionManagerImpl.java:117)
>>> at
>>> com
>>> .sun
>>> .web
>>> .server
>>> .J2EEInstanceListener.handleBeforeEvent(J2EEInstanceListener.java:
>>> 259)
>>> at
>>> com
>>> .sun
>>> .web
>>> .server
>>> .J2EEInstanceListener.instanceEvent(J2EEInstanceListener.java:119)
>>> at
>>> org
>>> .apache
>>> .catalina
>>> .util.InstanceSupport.fireInstanceEvent(InstanceSupport.java:347)
>>> at
>>> org
>>> .apache
>>> .catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:
>>> 1085)
>>> at
>>> org
>>> .apache
>>> .catalina.core.StandardWrapper.allocate(StandardWrapper.java:848)
>>> at
>>> org
>>> .apache
>>> .catalina
>>> .core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
>>> at
>>> org
>>> .apache
>>> .catalina
>>> .core
>>> .StandardContextValve.invokeInternal(StandardContextValve.java:287)
>>> at
>>> org
>>> .apache
>>> .catalina
>>> .core.StandardContextValve.invoke(StandardContextValve.java:218)
>>> at
>>> org
>>> .apache
>>> .catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:648)
>>> at
>>> org
>>> .apache
>>> .catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:593)
>>> at
>>> com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:94)
>>> at com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke
>>> (PESessionLockingStandardPipeline.java:98)
>>> at
>>> org
>>> .apache
>>> .catalina.core.StandardHostValve.invoke(StandardHostValve.java:222)
>>> at
>>> org
>>> .apache
>>> .catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:648)
>>> at
>>> org
>>> .apache
>>> .catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:593)
>>> at
>>> org
>>> .apache
>>> .catalina.core.StandardPipeline.invoke(StandardPipeline.java:587)
>>> at
>>> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:
>>> 1096)
>>> at
>>> org
>>> .apache
>>> .catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:
>>> 166)
>>> at
>>> org
>>> .apache
>>> .catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:648)
>>> at
>>> org
>>> .apache
>>> .catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:593)
>>> at
>>> org
>>> .apache
>>> .catalina.core.StandardPipeline.invoke(StandardPipeline.java:587)
>>> at
>>> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:
>>> 1096)
>>> at
>>> org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:
>>> 291)
>>> at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.invokeAdapter
>>> (DefaultProcessorTask.java:666)
>>> at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.doProcess
>>> (DefaultProcessorTask.java:597)
>>> at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.process
>>> (DefaultProcessorTask.java:871)
>>> at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.executeProcessorTask
>>> (DefaultReadTask.java:341)
>>> at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask
>>> (DefaultReadTask.java:263)
>>> at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask
>>> (DefaultReadTask.java:214)
>>> at
>>> com
>>> .sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:
>>> 265)
>>> at com.sun.enterprise.web.connector.grizzly.ssl.SSLWorkerThread.run
>>> (SSLWorkerThread.java:106)
>>> Caused by: javax.xml.ws.WebServiceException: null is not a valid
>>> service
>>> at
>>> com
>>> .sun.xml.ws.client.WSServiceDelegate.(WSServiceDelegate.java:
>>> 190)
>>> at
>>> com
>>> .sun.xml.ws.client.WSServiceDelegate.(WSServiceDelegate.java:
>>> 178)
>>> at
>>> com
>>> .sun
>>> .xml.ws.spi.ProviderImpl.createServiceDelegate(ProviderImpl.java:
>>> 106)
>>> at javax.xml.ws.Service.(Service.java:57)
>>> at
>>> simple.server.IPingServiceService.(IPingServiceService.java:
>>> 58)
>>> ... 44 more
>>> WebModule[/wsit-enabled-fromjava-js61-
>>> client]StandardWrapper.Throwable
>>> java.lang.RuntimeException: WEB5002: Exception in handleBeforeEvent.
>>> at
>>> com
>>> .sun
>>> .web
>>> .server
>>> .J2EEInstanceListener.handleBeforeEvent(J2EEInstanceListener.java:
>>> 263)
>>> at
>>> com
>>> .sun
>>> .web
>>> .server
>>> .J2EEInstanceListener.instanceEvent(J2EEInstanceListener.java:119)
>>> at
>>> org
>>> .apache
>>> .catalina
>>> .util.InstanceSupport.fireInstanceEvent(InstanceSupport.java:347)
>>> at
>>> org
>>> .apache
>>> .catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:
>>> 1085)
>>> at
>>> org
>>> .apache
>>> .catalina.core.StandardWrapper.allocate(StandardWrapper.java:848)
>>> at
>>> org
>>> .apache
>>> .catalina
>>> .core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
>>> at
>>> org
>>> .apache
>>> .catalina
>>> .core
>>> .StandardContextValve.invokeInternal(StandardContextValve.java:287)
>>> at
>>> org
>>> .apache
>>> .catalina
>>> .core.StandardContextValve.invoke(StandardContextValve.java:218)
>>> at
>>> org
>>> .apache
>>> .catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:648)
>>> at
>>> org
>>> .apache
>>> .catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:593)
>>> at
>>> com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:94)
>>> at com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke
>>> (PESessionLockingStandardPipeline.java:98)
>>> at
>>> org
>>> .apache
>>> .catalina.core.StandardHostValve.invoke(StandardHostValve.java:222)
>>> at
>>> org
>>> .apache
>>> .catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:648)
>>> at
>>> org
>>> .apache
>>> .catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:593)
>>> at
>>> org
>>> .apache
>>> .catalina.core.StandardPipeline.invoke(StandardPipeline.java:587)
>>> at
>>> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:
>>> 1096)
>>> at
>>> org
>>> .apache
>>> .catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:
>>> 166)
>>> at
>>> org
>>> .apache
>>> .catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:648)
>>> at
>>> org
>>> .apache
>>> .catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:593)
>>> at
>>> org
>>> .apache
>>> .catalina.core.StandardPipeline.invoke(StandardPipeline.java:587)
>>> at
>>> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:
>>> 1096)
>>> at
>>> org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:
>>> 291)
>>> at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.invokeAdapter
>>> (DefaultProcessorTask.java:666)
>>> at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.doProcess
>>> (DefaultProcessorTask.java:597)
>>> at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.process
>>> (DefaultProcessorTask.java:871)
>>> at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.executeProcessorTask
>>> (DefaultReadTask.java:341)
>>> at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask
>>> (DefaultReadTask.java:263)
>>> at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask
>>> (DefaultReadTask.java:214)
>>> at
>>> com
>>> .sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:
>>> 265)
>>> at com.sun.enterprise.web.connector.grizzly.ssl.SSLWorkerThread.run
>>> (SSLWorkerThread.java:106)
>>> Caused by: com.sun.enterprise.InjectionException: Exception
>>> attempting to inject Env-Prop: simple.client.NewServlet/
>>> service@Field-Injectable Resource. Class name =
>>> simple.client.NewServlet Field
>>> name=service@javax.jws.WebServiceRef@@@ into class
>>> simple.client.NewServlet
>>> at
>>> com
>>> .sun
>>> .enterprise
>>> .util.InjectionManagerImpl._inject(InjectionManagerImpl.java:387)
>>> at
>>> com
>>> .sun
>>> .enterprise
>>> .util.InjectionManagerImpl.inject(InjectionManagerImpl.java:206)
>>> at
>>> com
>>> .sun
>>> .enterprise
>>> .util
>>> .InjectionManagerImpl.injectInstance(InjectionManagerImpl.java:117)
>>> at
>>> com
>>> .sun
>>> .web
>>> .server
>>> .J2EEInstanceListener.handleBeforeEvent(J2EEInstanceListener.java:
>>> 259)
>>> ... 30 more
>>> Caused by: javax.naming.NamingException [Root exception is
>>> java.lang.reflect.InvocationTargetException]
>>> at
>>> com
>>> .sun
>>> .enterprise
>>> .naming
>>> .NamingManagerImpl.getClientServiceObject(NamingManagerImpl.java:
>>> 1287)
>>> at
>>> com
>>> .sun
>>> .enterprise.naming.NamingManagerImpl.lookup(NamingManagerImpl.java:
>>> 1029)
>>> at
>>> com
>>> .sun
>>> .enterprise.naming.java.javaURLContext.lookup(javaURLContext.java:
>>> 173)
>>> at
>>> com.sun.enterprise.naming.SerialContext.lookup(SerialContext.java:
>>> 407)
>>> at javax.naming.InitialContext.lookup(InitialContext.java:392)
>>> at
>>> com
>>> .sun
>>> .enterprise
>>> .util.InjectionManagerImpl._inject(InjectionManagerImpl.java:287)
>>> ... 33 more
>>> Caused by: java.lang.reflect.InvocationTargetException
>>> at
>>> sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
>>> Method)
>>> at
>>> sun
>>> .reflect
>>> .NativeConstructorAccessorImpl
>>> .newInstance(NativeConstructorAccessorImpl.java:39)
>>> at
>>> sun
>>> .reflect
>>> .DelegatingConstructorAccessorImpl
>>> .newInstance(DelegatingConstructorAccessorImpl.java:27)
>>> at
>>> java.lang.reflect.Constructor.newInstance(Constructor.java:513)
>>> at
>>> com
>>> .sun
>>> .enterprise
>>> .naming.NamingManagerImpl.initiateInstance(NamingManagerImpl.java:
>>> 1124)
>>> at
>>> com
>>> .sun
>>> .enterprise
>>> .naming
>>> .NamingManagerImpl.getClientServiceObject(NamingManagerImpl.java:
>>> 1204)
>>> ... 38 more
>>> Caused by: javax.xml.ws.WebServiceException: null is not a valid
>>> service
>>> at
>>> com
>>> .sun.xml.ws.client.WSServiceDelegate.(WSServiceDelegate.java:
>>> 190)
>>> at
>>> com
>>> .sun.xml.ws.client.WSServiceDelegate.(WSServiceDelegate.java:
>>> 178)
>>> at
>>> com
>>> .sun
>>> .xml.ws.spi.ProviderImpl.createServiceDelegate(ProviderImpl.java:
>>> 106)
>>> at javax.xml.ws.Service.(Service.java:57)
>>> at
>>> simple.server.IPingServiceService.(IPingServiceService.java:
>>> 58)
>>> ... 44 more
>>> StandardWrapperValve[NewServlet]: PWC1382: Allocate exception for
>>> servlet NewServlet
>>> java.lang.RuntimeException: WEB5002: Exception in handleBeforeEvent.
>>> at
>>> com
>>> .sun
>>> .web
>>> .server
>>> .J2EEInstanceListener.handleBeforeEvent(J2EEInstanceListener.java:
>>> 263)
>>> at
>>> com
>>> .sun
>>> .web
>>> .server
>>> .J2EEInstanceListener.instanceEvent(J2EEInstanceListener.java:119)
>>> at
>>> org
>>> .apache
>>> .catalina
>>> .util.InstanceSupport.fireInstanceEvent(InstanceSupport.java:347)
>>> at
>>> org
>>> .apache
>>> .catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:
>>> 1085)
>>> at
>>> org
>>> .apache
>>> .catalina.core.StandardWrapper.allocate(StandardWrapper.java:848)
>>> at
>>> org
>>> .apache
>>> .catalina
>>> .core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
>>> at
>>> org
>>> .apache
>>> .catalina
>>> .core
>>> .StandardContextValve.invokeInternal(StandardContextValve.java:287)
>>> at
>>> org
>>> .apache
>>> .catalina
>>> .core.StandardContextValve.invoke(StandardContextValve.java:218)
>>> at
>>> org
>>> .apache
>>> .catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:648)
>>> at
>>> org
>>> .apache
>>> .catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:593)
>>> at
>>> com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:94)
>>> at com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke
>>> (PESessionLockingStandardPipeline.java:98)
>>> at
>>> org
>>> .apache
>>> .catalina.core.StandardHostValve.invoke(StandardHostValve.java:222)
>>> at
>>> org
>>> .apache
>>> .catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:648)
>>> at
>>> org
>>> .apache
>>> .catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:593)
>>> at
>>> org
>>> .apache
>>> .catalina.core.StandardPipeline.invoke(StandardPipeline.java:587)
>>> at
>>> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:
>>> 1096)
>>> at
>>> org
>>> .apache
>>> .catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:
>>> 166)
>>> at
>>> org
>>> .apache
>>> .catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:648)
>>> at
>>> org
>>> .apache
>>> .catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:593)
>>> at
>>> org
>>> .apache
>>> .catalina.core.StandardPipeline.invoke(StandardPipeline.java:587)
>>> at
>>> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:
>>> 1096)
>>> at
>>> org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:
>>> 291)
>>> at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.invokeAdapter
>>> (DefaultProcessorTask.java:666)
>>> at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.doProcess
>>> (DefaultProcessorTask.java:597)
>>> at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.process
>>> (DefaultProcessorTask.java:871)
>>> at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.executeProcessorTask
>>> (DefaultReadTask.java:341)
>>> at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask
>>> (DefaultReadTask.java:263)
>>> at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask
>>> (DefaultReadTask.java:214)
>>> at
>>> com
>>> .sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:
>>> 265)
>>> at com.sun.enterprise.web.connector.grizzly.ssl.SSLWorkerThread.run
>>> (SSLWorkerThread.java:106)
>>> Caused by: com.sun.enterprise.InjectionException: Exception
>>> attempting to inject Env-Prop: simple.client.NewServlet/
>>> service@Field-Injectable Resource. Class name =
>>> simple.client.NewServlet Field
>>> name=service@javax.jws.WebServiceRef@@@ into class
>>> simple.client.NewServlet
>>> at
>>> com
>>> .sun
>>> .enterprise
>>> .util.InjectionManagerImpl._inject(InjectionManagerImpl.java:387)
>>> at
>>> com
>>> .sun
>>> .enterprise
>>> .util.InjectionManagerImpl.inject(InjectionManagerImpl.java:206)
>>> at
>>> com
>>> .sun
>>> .enterprise
>>> .util
>>> .InjectionManagerImpl.injectInstance(InjectionManagerImpl.java:117)
>>> at
>>> com
>>> .sun
>>> .web
>>> .server
>>> .J2EEInstanceListener.handleBeforeEvent(J2EEInstanceListener.java:
>>> 259)
>>> ... 30 more
>>> Caused by: javax.naming.NamingException [Root exception is
>>> java.lang.reflect.InvocationTargetException]
>>> at
>>> com
>>> .sun
>>> .enterprise
>>> .naming
>>> .NamingManagerImpl.getClientServiceObject(NamingManagerImpl.java:
>>> 1287)
>>> at
>>> com
>>> .sun
>>> .enterprise.naming.NamingManagerImpl.lookup(NamingManagerImpl.java:
>>> 1029)
>>> at
>>> com
>>> .sun
>>> .enterprise.naming.java.javaURLContext.lookup(javaURLContext.java:
>>> 173)
>>> at
>>> com.sun.enterprise.naming.SerialContext.lookup(SerialContext.java:
>>> 407)
>>> at javax.naming.InitialContext.lookup(InitialContext.java:392)
>>> at
>>> com
>>> .sun
>>> .enterprise
>>> .util.InjectionManagerImpl._inject(InjectionManagerImpl.java:287)
>>> ... 33 more
>>> Caused by: java.lang.reflect.InvocationTargetException
>>> at
>>> sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
>>> Method)
>>> at
>>> sun
>>> .reflect
>>> .NativeConstructorAccessorImpl
>>> .newInstance(NativeConstructorAccessorImpl.java:39)
>>> at
>>> sun
>>> .reflect
>>> .DelegatingConstructorAccessorImpl
>>> .newInstance(DelegatingConstructorAccessorImpl.java:27)
>>> at
>>> java.lang.reflect.Constructor.newInstance(Constructor.java:513)
>>> at
>>> com
>>> .sun
>>> .enterprise
>>> .naming.NamingManagerImpl.initiateInstance(NamingManagerImpl.java:
>>> 1124)
>>> at
>>> com
>>> .sun
>>> .enterprise
>>> .naming
>>> .NamingManagerImpl.getClientServiceObject(NamingManagerImpl.java:
>>> 1204)
>>> ... 38 more
>>> Caused by: javax.xml.ws.WebServiceException: null is not a valid
>>> service
>>> at
>>> com
>>> .sun.xml.ws.client.WSServiceDelegate.(WSServiceDelegate.java:
>>> 190)
>>> at
>>> com
>>> .sun.xml.ws.client.WSServiceDelegate.(WSServiceDelegate.java:
>>> 178)
>>> at
>>> com
>>> .sun
>>> .xml.ws.spi.ProviderImpl.createServiceDelegate(ProviderImpl.java:
>>> 106)
>>> at javax.xml.ws.Service.(Service.java:57)
>>> at
>>> simple.server.IPingServiceService.(IPingServiceService.java:
>>> 58)
>>> ... 44 more
>>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: dev-unsubscribe@metro.dev.java.net
>> For additional commands, e-mail: dev-help@metro.dev.java.net
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@metro.dev.java.net
> For additional commands, e-mail: dev-help@metro.dev.java.net
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@metro.dev.java.net
For additional commands, e-mail: users-help@metro.dev.java.net

Sreekanth

I believe we are on the same page.In my case also, the problem comes
from the same annotation.

My Client program has this annotation:

@WebServiceRef(wsdlLocation =
"WEB-INF/wsdl/localhost_8080/SimpleApp/IPingServiceService.wsdl")

Thanks,
Sreekanth

Potociar Marek wrote:
> Similarly, the same behavior can be observed with the @WebServiceRef
> annotation.
> Marek
>
> On 23.9.2009, at 11:03, Sreekanth wrote:
>
>> Filed a P1: https://jax-ws.dev.java.net/issues/show_bug.cgi?id=798
>>
>> This is working with WSIT promoted build 19 and before.But not with
>> promoted build 20 and latest nightly build.
>>
>> Thanks,
>> Sreekanth
>>
>> Sreekanth wrote:
>>> Hi ,
>>>
>>> (Copying to Dev alias)
>>>
>>> I just installed NB 6.8 ML1 and see the same here too.Did any one
>>> face this?
>>>
>>> Here is what I have done:
>>>
>>> * Installed NB 6.8 ML1
>>> * Install GF v2.1.1
>>> * Install Metro Latest bits
>>> * Create a new Webservice sample to use Mutual Certificate Security.
>>> * Deploy it.
>>> * Create a client
>>> * Deploy the Client and then Run it.
>>>
>>> I see the below exception :
>>>
>>> DPL5306:Servlet Web Service Endpoint [IPingService] listening at
>>> address [http://sreekanth-laptop:8080/SimpleApp/IPingServiceService]
>>> deployed with moduleid = SimpleApp
>>> WSP5018: Loaded WSIT configuration from file:
>>> jndi:/server/SimpleApp/WEB-INF/wsit-simple.server.IPingService.xml.
>>> Monitoring rootname successfully set to:
>>> {http://server.simple/}IPingServiceService{http://server.simple/}IPingServicePort
>>>
>>> GMBAL901: JMX exception on registration of MBean
>>> MBeanImpl[type=Service,name={http://server.simple/}IPingServiceService{http://server.simple/}IPingServicePort,oname=com.sun.metro:pp=/,type=Service,name="{http://server.simple/}IPingServiceService{http://server.simple/}IPingServicePort"]
>>>
>>> Class must be annotated with a interface
>>> javax.xml.ws.WebServiceClient annotation
>>> symbol : interface javax.xml.ws.WebServiceClient
>>> location: class simple.server.IPingServiceService
>>> Annotations processing failed for
>>> /home/sreekanth/NetBeansProjects/SimpleAppClient/build/web
>>> deployed with moduleid = SimpleAppClient
>>> naming.bind
>>> java.lang.reflect.InvocationTargetException
>>> at
>>> sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
>>> at
>>> sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
>>>
>>> at
>>> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
>>>
>>> at
>>> java.lang.reflect.Constructor.newInstance(Constructor.java:513)
>>> at
>>> com.sun.enterprise.naming.NamingManagerImpl.initiateInstance(NamingManagerImpl.java:1128)
>>>
>>> at
>>> com.sun.enterprise.naming.NamingManagerImpl.getClientServiceObject(NamingManagerImpl.java:1208)
>>>
>>> at
>>> com.sun.enterprise.naming.NamingManagerImpl.lookup(NamingManagerImpl.java:1033)
>>>
>>> at
>>> com.sun.enterprise.naming.java.javaURLContext.lookup(javaURLContext.java:173)
>>>
>>> at
>>> com.sun.enterprise.naming.SerialContext.lookup(SerialContext.java:407)
>>> at javax.naming.InitialContext.lookup(InitialContext.java:392)
>>> at
>>> com.sun.enterprise.util.InjectionManagerImpl._inject(InjectionManagerImpl.java:287)
>>>
>>> at
>>> com.sun.enterprise.util.InjectionManagerImpl.inject(InjectionManagerImpl.java:206)
>>>
>>> at
>>> com.sun.enterprise.util.InjectionManagerImpl.injectInstance(InjectionManagerImpl.java:117)
>>>
>>> at
>>> com.sun.web.server.J2EEInstanceListener.handleBeforeEvent(J2EEInstanceListener.java:259)
>>>
>>> at
>>> com.sun.web.server.J2EEInstanceListener.instanceEvent(J2EEInstanceListener.java:119)
>>>
>>> at
>>> org.apache.catalina.util.InstanceSupport.fireInstanceEvent(InstanceSupport.java:347)
>>>
>>> at
>>> org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1085)
>>>
>>> at
>>> org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:848)
>>>
>>> at
>>> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
>>>
>>> at
>>> org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:287)
>>>
>>> at
>>> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:218)
>>>
>>> at
>>> org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:648)
>>>
>>> at
>>> org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:593)
>>>
>>> at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:94)
>>> at
>>> com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke(PESessionLockingStandardPipeline.java:98)
>>>
>>> at
>>> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:222)
>>>
>>> at
>>> org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:648)
>>>
>>> at
>>> org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:593)
>>>
>>> at
>>> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:587)
>>>
>>> at
>>> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1093)
>>> at
>>> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:166)
>>>
>>> at
>>> org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:648)
>>>
>>> at
>>> org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:593)
>>>
>>> at
>>> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:587)
>>>
>>> at
>>> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1093)
>>> at
>>> org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:291)
>>> at
>>> com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.invokeAdapter(DefaultProcessorTask.java:666)
>>>
>>> at
>>> com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.doProcess(DefaultProcessorTask.java:597)
>>>
>>> at
>>> com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.process(DefaultProcessorTask.java:872)
>>>
>>> at
>>> com.sun.enterprise.web.connector.grizzly.DefaultReadTask.executeProcessorTask(DefaultReadTask.java:341)
>>>
>>> at
>>> com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:263)
>>>
>>> at
>>> com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:214)
>>>
>>> at
>>> com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:264)
>>>
>>> at
>>> com.sun.enterprise.web.connector.grizzly.ssl.SSLWorkerThread.run(SSLWorkerThread.java:106)
>>>
>>> Caused by: javax.xml.ws.WebServiceException: null is not a valid
>>> service
>>> at
>>> com.sun.xml.ws.client.WSServiceDelegate.(WSServiceDelegate.java:190)
>>>
>>> at
>>> com.sun.xml.ws.client.WSServiceDelegate.(WSServiceDelegate.java:178)
>>>
>>> at
>>> com.sun.xml.ws.spi.ProviderImpl.createServiceDelegate(ProviderImpl.java:106)
>>>
>>> at javax.xml.ws.Service.(Service.java:57)
>>> at
>>> simple.server.IPingServiceService.(IPingServiceService.java:58)
>>> ... 44 more
>>> WebModule[/SimpleAppClient]StandardWrapper.Throwable
>>> java.lang.RuntimeException: WEB5002: Exception in handleBeforeEvent.
>>> at
>>> com.sun.web.server.J2EEInstanceListener.handleBeforeEvent(J2EEInstanceListener.java:263)
>>>
>>> at
>>> com.sun.web.server.J2EEInstanceListener.instanceEvent(J2EEInstanceListener.java:119)
>>>
>>> at
>>> org.apache.catalina.util.InstanceSupport.fireInstanceEvent(InstanceSupport.java:347)
>>>
>>> at
>>> org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1085)
>>>
>>> at
>>> org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:848)
>>>
>>> at
>>> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
>>>
>>> at
>>> org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:287)
>>>
>>> at
>>> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:218)
>>>
>>> at
>>> org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:648)
>>>
>>> at
>>> org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:593)
>>>
>>> at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:94)
>>> at
>>> com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke(PESessionLockingStandardPipeline.java:98)
>>>
>>> at
>>> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:222)
>>>
>>> at
>>> org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:648)
>>>
>>> at
>>> org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:593)
>>>
>>> at
>>> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:587)
>>>
>>> at
>>> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1093)
>>> at
>>> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:166)
>>>
>>> at
>>> org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:648)
>>>
>>> at
>>> org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:593)
>>>
>>> at
>>> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:587)
>>>
>>> at
>>> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1093)
>>> at
>>> org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:291)
>>> at
>>> com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.invokeAdapter(DefaultProcessorTask.java:666)
>>>
>>> at
>>> com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.doProcess(DefaultProcessorTask.java:597)
>>>
>>> at
>>> com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.process(DefaultProcessorTask.java:872)
>>>
>>> at
>>> com.sun.enterprise.web.connector.grizzly.DefaultReadTask.executeProcessorTask(DefaultReadTask.java:341)
>>>
>>> at
>>> com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:263)
>>>
>>> at
>>> com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:214)
>>>
>>> at
>>> com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:264)
>>>
>>> at
>>> com.sun.enterprise.web.connector.grizzly.ssl.SSLWorkerThread.run(SSLWorkerThread.java:106)
>>>
>>> Caused by: com.sun.enterprise.InjectionException: Exception
>>> attempting to inject Env-Prop:
>>> simple.client.NewServlet/service@Field-Injectable Resource. Class
>>> name = simple.client.NewServlet Field
>>> name=service@javax.jws.WebServiceRef@@@ into class
>>> simple.client.NewServlet
>>> at
>>> com.sun.enterprise.util.InjectionManagerImpl._inject(InjectionManagerImpl.java:387)
>>>
>>> at
>>> com.sun.enterprise.util.InjectionManagerImpl.inject(InjectionManagerImpl.java:206)
>>>
>>> at
>>> com.sun.enterprise.util.InjectionManagerImpl.injectInstance(InjectionManagerImpl.java:117)
>>>
>>> at
>>> com.sun.web.server.J2EEInstanceListener.handleBeforeEvent(J2EEInstanceListener.java:259)
>>>
>>> ... 30 more
>>> Caused by: javax.naming.NamingException [Root exception is
>>> java.lang.reflect.InvocationTargetException]
>>> at
>>> com.sun.enterprise.naming.NamingManagerImpl.getClientServiceObject(NamingManagerImpl.java:1291)
>>>
>>> at
>>> com.sun.enterprise.naming.NamingManagerImpl.lookup(NamingManagerImpl.java:1033)
>>>
>>> at
>>> com.sun.enterprise.naming.java.javaURLContext.lookup(javaURLContext.java:173)
>>>
>>> at
>>> com.sun.enterprise.naming.SerialContext.lookup(SerialContext.java:407)
>>> at javax.naming.InitialContext.lookup(InitialContext.java:392)
>>> at
>>> com.sun.enterprise.util.InjectionManagerImpl._inject(InjectionManagerImpl.java:287)
>>>
>>> ... 33 more
>>> Caused by: java.lang.reflect.InvocationTargetException
>>> at
>>> sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
>>> at
>>> sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
>>>
>>> at
>>> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
>>>
>>> at
>>> java.lang.reflect.Constructor.newInstance(Constructor.java:513)
>>> at
>>> com.sun.enterprise.naming.NamingManagerImpl.initiateInstance(NamingManagerImpl.java:1128)
>>>
>>> at
>>> com.sun.enterprise.naming.NamingManagerImpl.getClientServiceObject(NamingManagerImpl.java:1208)
>>>
>>> ... 38 more
>>> Caused by: javax.xml.ws.WebServiceException: null is not a valid
>>> service
>>> at
>>> com.sun.xml.ws.client.WSServiceDelegate.(WSServiceDelegate.java:190)
>>>
>>> at
>>> com.sun.xml.ws.client.WSServiceDelegate.(WSServiceDelegate.java:178)
>>>
>>> at
>>> com.sun.xml.ws.spi.ProviderImpl.createServiceDelegate(ProviderImpl.java:106)
>>>
>>> at javax.xml.ws.Service.(Service.java:57)
>>> at
>>> simple.server.IPingServiceService.(IPingServiceService.java:58)
>>> ... 44 more
>>> StandardWrapperValve[NewServlet]: PWC1382: Allocate exception for
>>> servlet NewServlet
>>> java.lang.RuntimeException: WEB5002: Exception in handleBeforeEvent.
>>> at
>>> com.sun.web.server.J2EEInstanceListener.handleBeforeEvent(J2EEInstanceListener.java:263)
>>>
>>> at
>>> com.sun.web.server.J2EEInstanceListener.instanceEvent(J2EEInstanceListener.java:119)
>>>
>>> at
>>> org.apache.catalina.util.InstanceSupport.fireInstanceEvent(InstanceSupport.java:347)
>>>
>>> at
>>> org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1085)
>>>
>>> at
>>> org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:848)
>>>
>>> at
>>> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
>>>
>>> at
>>> org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:287)
>>>
>>> at
>>> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:218)
>>>
>>> at
>>> org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:648)
>>>
>>> at
>>> org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:593)
>>>
>>> at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:94)
>>> at
>>> com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke(PESessionLockingStandardPipeline.java:98)
>>>
>>> at
>>> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:222)
>>>
>>> at
>>> org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:648)
>>>
>>> at
>>> org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:593)
>>>
>>> at
>>> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:587)
>>>
>>> at
>>> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1093)
>>> at
>>> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:166)
>>>
>>> at
>>> org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:648)
>>>
>>> at
>>> org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:593)
>>>
>>> at
>>> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:587)
>>>
>>> at
>>> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1093)
>>> at
>>> org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:291)
>>> at
>>> com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.invokeAdapter(DefaultProcessorTask.java:666)
>>>
>>> at
>>> com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.doProcess(DefaultProcessorTask.java:597)
>>>
>>> at
>>> com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.process(DefaultProcessorTask.java:872)
>>>
>>> at
>>> com.sun.enterprise.web.connector.grizzly.DefaultReadTask.executeProcessorTask(DefaultReadTask.java:341)
>>>
>>> at
>>> com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:263)
>>>
>>> at
>>> com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:214)
>>>
>>> at
>>> com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:264)
>>>
>>> at
>>> com.sun.enterprise.web.connector.grizzly.ssl.SSLWorkerThread.run(SSLWorkerThread.java:106)
>>>
>>> Caused by: com.sun.enterprise.InjectionException: Exception
>>> attempting to inject Env-Prop:
>>> simple.client.NewServlet/service@Field-Injectable Resource. Class
>>> name = simple.client.NewServlet Field
>>> name=service@javax.jws.WebServiceRef@@@ into class
>>> simple.client.NewServlet
>>> at
>>> com.sun.enterprise.util.InjectionManagerImpl._inject(InjectionManagerImpl.java:387)
>>>
>>> at
>>> com.sun.enterprise.util.InjectionManagerImpl.inject(InjectionManagerImpl.java:206)
>>>
>>> at
>>> com.sun.enterprise.util.InjectionManagerImpl.injectInstance(InjectionManagerImpl.java:117)
>>>
>>> at
>>> com.sun.web.server.J2EEInstanceListener.handleBeforeEvent(J2EEInstanceListener.java:259)
>>>
>>> ... 30 more
>>> Caused by: javax.naming.NamingException [Root exception is
>>> java.lang.reflect.InvocationTargetException]
>>> at
>>> com.sun.enterprise.naming.NamingManagerImpl.getClientServiceObject(NamingManagerImpl.java:1291)
>>>
>>> at
>>> com.sun.enterprise.naming.NamingManagerImpl.lookup(NamingManagerImpl.java:1033)
>>>
>>> at
>>> com.sun.enterprise.naming.java.javaURLContext.lookup(javaURLContext.java:173)
>>>
>>> at
>>> com.sun.enterprise.naming.SerialContext.lookup(SerialContext.java:407)
>>> at javax.naming.InitialContext.lookup(InitialContext.java:392)
>>> at
>>> com.sun.enterprise.util.InjectionManagerImpl._inject(InjectionManagerImpl.java:287)
>>>
>>> ... 33 more
>>> Caused by: java.lang.reflect.InvocationTargetException
>>> at
>>> sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
>>> at
>>> sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
>>>
>>> at
>>> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
>>>
>>> at
>>> java.lang.reflect.Constructor.newInstance(Constructor.java:513)
>>> at
>>> com.sun.enterprise.naming.NamingManagerImpl.initiateInstance(NamingManagerImpl.java:1128)
>>>
>>> at
>>> com.sun.enterprise.naming.NamingManagerImpl.getClientServiceObject(NamingManagerImpl.java:1208)
>>>
>>> ... 38 more
>>> Caused by: javax.xml.ws.WebServiceException: null is not a valid
>>> service
>>> at
>>> com.sun.xml.ws.client.WSServiceDelegate.(WSServiceDelegate.java:190)
>>>
>>> at
>>> com.sun.xml.ws.client.WSServiceDelegate.(WSServiceDelegate.java:178)
>>>
>>> at
>>> com.sun.xml.ws.spi.ProviderImpl.createServiceDelegate(ProviderImpl.java:106)
>>>
>>> at javax.xml.ws.Service.(Service.java:57)
>>> at
>>> simple.server.IPingServiceService.(IPingServiceService.java:58)
>>> ... 44 more
>>>
>>>
>>>
>>> Thanks,
>>> Sreekanth
>>>
>>> Sreekanth wrote:
>>>> Hi ,
>>>>
>>>> I have a simple webservice and client program created through
>>>> Netbeans.When I try to run my client program, I see the below
>>>> exception.Please find the attached client program.
>>>>
>>>> Is this a bug in Netbeans/Metro ?
>>>>
>>>> Error Log:
>>>> ==========
>>>>
>>>> WSP5018: Loaded WSIT configuration from file:
>>>> jndi:/server/wsit-enabled-fromjava-js61/WEB-INF/wsit-simple.server.IPingService.xml.
>>>>
>>>> Monitoring rootname successfully set to:
>>>> {http://server.simple/}IPingServiceService{http://server.simple/}IPingServicePort
>>>>
>>>> classLoader = WebappClassLoader
>>>> delegate: true
>>>> repositories:
>>>> /WEB-INF/classes/
>>>> ----------> Parent Classloader:
>>>> EJBClassLoader :
>>>> urlSet = []
>>>> doneCalled = false
>>>> Parent -> java.net.URLClassLoader@cbd8dc
>>>> SharedSecrets.getJavaNetAccess()=java.net.URLClassLoader$7@1d063b3
>>>> Class must be annotated with a interface
>>>> javax.xml.ws.WebServiceClient annotation
>>>> symbol : interface javax.xml.ws.WebServiceClient
>>>> location: class simple.server.IPingServiceService
>>>> Annotations processing failed for
>>>> /home/sreekanth/NetBeansProjects/wsit-enabled-fromjava-js61-client/build/web
>>>>
>>>> deployed with moduleid = wsit-enabled-fromjava-js61-client
>>>> naming.bind
>>>> java.lang.reflect.InvocationTargetException
>>>> at
>>>> sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
>>>> at
>>>> sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
>>>>
>>>> at
>>>> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
>>>>
>>>> at
>>>> java.lang.reflect.Constructor.newInstance(Constructor.java:513)
>>>> at
>>>> com.sun.enterprise.naming.NamingManagerImpl.initiateInstance(NamingManagerImpl.java:1124)
>>>>
>>>> at
>>>> com.sun.enterprise.naming.NamingManagerImpl.getClientServiceObject(NamingManagerImpl.java:1204)
>>>>
>>>> at
>>>> com.sun.enterprise.naming.NamingManagerImpl.lookup(NamingManagerImpl.java:1029)
>>>>
>>>> at
>>>> com.sun.enterprise.naming.java.javaURLContext.lookup(javaURLContext.java:173)
>>>>
>>>> at
>>>> com.sun.enterprise.naming.SerialContext.lookup(SerialContext.java:407)
>>>> at javax.naming.InitialContext.lookup(InitialContext.java:392)
>>>> at
>>>> com.sun.enterprise.util.InjectionManagerImpl._inject(InjectionManagerImpl.java:287)
>>>>
>>>> at
>>>> com.sun.enterprise.util.InjectionManagerImpl.inject(InjectionManagerImpl.java:206)
>>>>
>>>> at
>>>> com.sun.enterprise.util.InjectionManagerImpl.injectInstance(InjectionManagerImpl.java:117)
>>>>
>>>> at
>>>> com.sun.web.server.J2EEInstanceListener.handleBeforeEvent(J2EEInstanceListener.java:259)
>>>>
>>>> at
>>>> com.sun.web.server.J2EEInstanceListener.instanceEvent(J2EEInstanceListener.java:119)
>>>>
>>>> at
>>>> org.apache.catalina.util.InstanceSupport.fireInstanceEvent(InstanceSupport.java:347)
>>>>
>>>> at
>>>> org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1085)
>>>>
>>>> at
>>>> org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:848)
>>>>
>>>> at
>>>> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
>>>>
>>>> at
>>>> org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:287)
>>>>
>>>> at
>>>> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:218)
>>>>
>>>> at
>>>> org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:648)
>>>>
>>>> at
>>>> org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:593)
>>>>
>>>> at
>>>> com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:94)
>>>> at
>>>> com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke(PESessionLockingStandardPipeline.java:98)
>>>>
>>>> at
>>>> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:222)
>>>>
>>>> at
>>>> org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:648)
>>>>
>>>> at
>>>> org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:593)
>>>>
>>>> at
>>>> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:587)
>>>>
>>>> at
>>>> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1096)
>>>> at
>>>> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:166)
>>>>
>>>> at
>>>> org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:648)
>>>>
>>>> at
>>>> org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:593)
>>>>
>>>> at
>>>> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:587)
>>>>
>>>> at
>>>> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1096)
>>>> at
>>>> org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:291)
>>>>
>>>> at
>>>> com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.invokeAdapter(DefaultProcessorTask.java:666)
>>>>
>>>> at
>>>> com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.doProcess(DefaultProcessorTask.java:597)
>>>>
>>>> at
>>>> com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.process(DefaultProcessorTask.java:871)
>>>>
>>>> at
>>>> com.sun.enterprise.web.connector.grizzly.DefaultReadTask.executeProcessorTask(DefaultReadTask.java:341)
>>>>
>>>> at
>>>> com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:263)
>>>>
>>>> at
>>>> com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:214)
>>>>
>>>> at
>>>> com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:265)
>>>>
>>>> at
>>>> com.sun.enterprise.web.connector.grizzly.ssl.SSLWorkerThread.run(SSLWorkerThread.java:106)
>>>>
>>>> Caused by: javax.xml.ws.WebServiceException: null is not a valid
>>>> service
>>>> at
>>>> com.sun.xml.ws.client.WSServiceDelegate.(WSServiceDelegate.java:190)
>>>>
>>>> at
>>>> com.sun.xml.ws.client.WSServiceDelegate.(WSServiceDelegate.java:178)
>>>>
>>>> at
>>>> com.sun.xml.ws.spi.ProviderImpl.createServiceDelegate(ProviderImpl.java:106)
>>>>
>>>> at javax.xml.ws.Service.(Service.java:57)
>>>> at
>>>> simple.server.IPingServiceService.(IPingServiceService.java:58)
>>>> ... 44 more
>>>> WebModule[/wsit-enabled-fromjava-js61-client]StandardWrapper.Throwable
>>>> java.lang.RuntimeException: WEB5002: Exception in handleBeforeEvent.
>>>> at
>>>> com.sun.web.server.J2EEInstanceListener.handleBeforeEvent(J2EEInstanceListener.java:263)
>>>>
>>>> at
>>>> com.sun.web.server.J2EEInstanceListener.instanceEvent(J2EEInstanceListener.java:119)
>>>>
>>>> at
>>>> org.apache.catalina.util.InstanceSupport.fireInstanceEvent(InstanceSupport.java:347)
>>>>
>>>> at
>>>> org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1085)
>>>>
>>>> at
>>>> org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:848)
>>>>
>>>> at
>>>> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
>>>>
>>>> at
>>>> org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:287)
>>>>
>>>> at
>>>> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:218)
>>>>
>>>> at
>>>> org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:648)
>>>>
>>>> at
>>>> org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:593)
>>>>
>>>> at
>>>> com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:94)
>>>> at
>>>> com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke(PESessionLockingStandardPipeline.java:98)
>>>>
>>>> at
>>>> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:222)
>>>>
>>>> at
>>>> org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:648)
>>>>
>>>> at
>>>> org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:593)
>>>>
>>>> at
>>>> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:587)
>>>>
>>>> at
>>>> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1096)
>>>> at
>>>> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:166)
>>>>
>>>> at
>>>> org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:648)
>>>>
>>>> at
>>>> org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:593)
>>>>
>>>> at
>>>> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:587)
>>>>
>>>> at
>>>> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1096)
>>>> at
>>>> org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:291)
>>>>
>>>> at
>>>> com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.invokeAdapter(DefaultProcessorTask.java:666)
>>>>
>>>> at
>>>> com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.doProcess(DefaultProcessorTask.java:597)
>>>>
>>>> at
>>>> com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.process(DefaultProcessorTask.java:871)
>>>>
>>>> at
>>>> com.sun.enterprise.web.connector.grizzly.DefaultReadTask.executeProcessorTask(DefaultReadTask.java:341)
>>>>
>>>> at
>>>> com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:263)
>>>>
>>>> at
>>>> com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:214)
>>>>
>>>> at
>>>> com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:265)
>>>>
>>>> at
>>>> com.sun.enterprise.web.connector.grizzly.ssl.SSLWorkerThread.run(SSLWorkerThread.java:106)
>>>>
>>>> Caused by: com.sun.enterprise.InjectionException: Exception
>>>> attempting to inject Env-Prop:
>>>> simple.client.NewServlet/service@Field-Injectable Resource. Class
>>>> name = simple.client.NewServlet Field
>>>> name=service@javax.jws.WebServiceRef@@@ into class
>>>> simple.client.NewServlet
>>>> at
>>>> com.sun.enterprise.util.InjectionManagerImpl._inject(InjectionManagerImpl.java:387)
>>>>
>>>> at
>>>> com.sun.enterprise.util.InjectionManagerImpl.inject(InjectionManagerImpl.java:206)
>>>>
>>>> at
>>>> com.sun.enterprise.util.InjectionManagerImpl.injectInstance(InjectionManagerImpl.java:117)
>>>>
>>>> at
>>>> com.sun.web.server.J2EEInstanceListener.handleBeforeEvent(J2EEInstanceListener.java:259)
>>>>
>>>> ... 30 more
>>>> Caused by: javax.naming.NamingException [Root exception is
>>>> java.lang.reflect.InvocationTargetException]
>>>> at
>>>> com.sun.enterprise.naming.NamingManagerImpl.getClientServiceObject(NamingManagerImpl.java:1287)
>>>>
>>>> at
>>>> com.sun.enterprise.naming.NamingManagerImpl.lookup(NamingManagerImpl.java:1029)
>>>>
>>>> at
>>>> com.sun.enterprise.naming.java.javaURLContext.lookup(javaURLContext.java:173)
>>>>
>>>> at
>>>> com.sun.enterprise.naming.SerialContext.lookup(SerialContext.java:407)
>>>> at javax.naming.InitialContext.lookup(InitialContext.java:392)
>>>> at
>>>> com.sun.enterprise.util.InjectionManagerImpl._inject(InjectionManagerImpl.java:287)
>>>>
>>>> ... 33 more
>>>> Caused by: java.lang.reflect.InvocationTargetException
>>>> at
>>>> sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
>>>> at
>>>> sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
>>>>
>>>> at
>>>> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
>>>>
>>>> at
>>>> java.lang.reflect.Constructor.newInstance(Constructor.java:513)
>>>> at
>>>> com.sun.enterprise.naming.NamingManagerImpl.initiateInstance(NamingManagerImpl.java:1124)
>>>>
>>>> at
>>>> com.sun.enterprise.naming.NamingManagerImpl.getClientServiceObject(NamingManagerImpl.java:1204)
>>>>
>>>> ... 38 more
>>>> Caused by: javax.xml.ws.WebServiceException: null is not a valid
>>>> service
>>>> at
>>>> com.sun.xml.ws.client.WSServiceDelegate.(WSServiceDelegate.java:190)
>>>>
>>>> at
>>>> com.sun.xml.ws.client.WSServiceDelegate.(WSServiceDelegate.java:178)
>>>>
>>>> at
>>>> com.sun.xml.ws.spi.ProviderImpl.createServiceDelegate(ProviderImpl.java:106)
>>>>
>>>> at javax.xml.ws.Service.(Service.java:57)
>>>> at
>>>> simple.server.IPingServiceService.(IPingServiceService.java:58)
>>>> ... 44 more
>>>> StandardWrapperValve[NewServlet]: PWC1382: Allocate exception for
>>>> servlet NewServlet
>>>> java.lang.RuntimeException: WEB5002: Exception in handleBeforeEvent.
>>>> at
>>>> com.sun.web.server.J2EEInstanceListener.handleBeforeEvent(J2EEInstanceListener.java:263)
>>>>
>>>> at
>>>> com.sun.web.server.J2EEInstanceListener.instanceEvent(J2EEInstanceListener.java:119)
>>>>
>>>> at
>>>> org.apache.catalina.util.InstanceSupport.fireInstanceEvent(InstanceSupport.java:347)
>>>>
>>>> at
>>>> org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1085)
>>>>
>>>> at
>>>> org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:848)
>>>>
>>>> at
>>>> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
>>>>
>>>> at
>>>> org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:287)
>>>>
>>>> at
>>>> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:218)
>>>>
>>>> at
>>>> org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:648)
>>>>
>>>> at
>>>> org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:593)
>>>>
>>>> at
>>>> com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:94)
>>>> at
>>>> com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke(PESessionLockingStandardPipeline.java:98)
>>>>
>>>> at
>>>> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:222)
>>>>
>>>> at
>>>> org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:648)
>>>>
>>>> at
>>>> org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:593)
>>>>
>>>> at
>>>> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:587)
>>>>
>>>> at
>>>> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1096)
>>>> at
>>>> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:166)
>>>>
>>>> at
>>>> org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:648)
>>>>
>>>> at
>>>> org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:593)
>>>>
>>>> at
>>>> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:587)
>>>>
>>>> at
>>>> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1096)
>>>> at
>>>> org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:291)
>>>>
>>>> at
>>>> com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.invokeAdapter(DefaultProcessorTask.java:666)
>>>>
>>>> at
>>>> com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.doProcess(DefaultProcessorTask.java:597)
>>>>
>>>> at
>>>> com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.process(DefaultProcessorTask.java:871)
>>>>
>>>> at
>>>> com.sun.enterprise.web.connector.grizzly.DefaultReadTask.executeProcessorTask(DefaultReadTask.java:341)
>>>>
>>>> at
>>>> com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:263)
>>>>
>>>> at
>>>> com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:214)
>>>>
>>>> at
>>>> com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:265)
>>>>
>>>> at
>>>> com.sun.enterprise.web.connector.grizzly.ssl.SSLWorkerThread.run(SSLWorkerThread.java:106)
>>>>
>>>> Caused by: com.sun.enterprise.InjectionException: Exception
>>>> attempting to inject Env-Prop:
>>>> simple.client.NewServlet/service@Field-Injectable Resource. Class
>>>> name = simple.client.NewServlet Field
>>>> name=service@javax.jws.WebServiceRef@@@ into class
>>>> simple.client.NewServlet
>>>> at
>>>> com.sun.enterprise.util.InjectionManagerImpl._inject(InjectionManagerImpl.java:387)
>>>>
>>>> at
>>>> com.sun.enterprise.util.InjectionManagerImpl.inject(InjectionManagerImpl.java:206)
>>>>
>>>> at
>>>> com.sun.enterprise.util.InjectionManagerImpl.injectInstance(InjectionManagerImpl.java:117)
>>>>
>>>> at
>>>> com.sun.web.server.J2EEInstanceListener.handleBeforeEvent(J2EEInstanceListener.java:259)
>>>>
>>>> ... 30 more
>>>> Caused by: javax.naming.NamingException [Root exception is
>>>> java.lang.reflect.InvocationTargetException]
>>>> at
>>>> com.sun.enterprise.naming.NamingManagerImpl.getClientServiceObject(NamingManagerImpl.java:1287)
>>>>
>>>> at
>>>> com.sun.enterprise.naming.NamingManagerImpl.lookup(NamingManagerImpl.java:1029)
>>>>
>>>> at
>>>> com.sun.enterprise.naming.java.javaURLContext.lookup(javaURLContext.java:173)
>>>>
>>>> at
>>>> com.sun.enterprise.naming.SerialContext.lookup(SerialContext.java:407)
>>>> at javax.naming.InitialContext.lookup(InitialContext.java:392)
>>>> at
>>>> com.sun.enterprise.util.InjectionManagerImpl._inject(InjectionManagerImpl.java:287)
>>>>
>>>> ... 33 more
>>>> Caused by: java.lang.reflect.InvocationTargetException
>>>> at
>>>> sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
>>>> at
>>>> sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
>>>>
>>>> at
>>>> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
>>>>
>>>> at
>>>> java.lang.reflect.Constructor.newInstance(Constructor.java:513)
>>>> at
>>>> com.sun.enterprise.naming.NamingManagerImpl.initiateInstance(NamingManagerImpl.java:1124)
>>>>
>>>> at
>>>> com.sun.enterprise.naming.NamingManagerImpl.getClientServiceObject(NamingManagerImpl.java:1204)
>>>>
>>>> ... 38 more
>>>> Caused by: javax.xml.ws.WebServiceException: null is not a valid
>>>> service
>>>> at
>>>> com.sun.xml.ws.client.WSServiceDelegate.(WSServiceDelegate.java:190)
>>>>
>>>> at
>>>> com.sun.xml.ws.client.WSServiceDelegate.(WSServiceDelegate.java:178)
>>>>
>>>> at
>>>> com.sun.xml.ws.spi.ProviderImpl.createServiceDelegate(ProviderImpl.java:106)
>>>>
>>>> at javax.xml.ws.Service.(Service.java:57)
>>>> at
>>>> simple.server.IPingServiceService.(IPingServiceService.java:58)
>>>> ... 44 more
>>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: dev-unsubscribe@metro.dev.java.net
>>> For additional commands, e-mail: dev-help@metro.dev.java.net
>>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: dev-unsubscribe@metro.dev.java.net
>> For additional commands, e-mail: dev-help@metro.dev.java.net
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@metro.dev.java.net
> For additional commands, e-mail: dev-help@metro.dev.java.net
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@metro.dev.java.net
For additional commands, e-mail: users-help@metro.dev.java.net

suresh

I too face the same problem
*Class must be annotated with a interface javax.xml.ws.WebServiceClient
annotation
*even though the class was already annotated with @WebServiceClient
annotation..
can anybody help?
Thanks
Suresh
Sreekanth wrote:
> I believe we are on the same page.In my case also, the problem comes
> from the same annotation.
>
> My Client program has this annotation:
>
> @WebServiceRef(wsdlLocation =
> "WEB-INF/wsdl/localhost_8080/SimpleApp/IPingServiceService.wsdl")
>
> Thanks,
> Sreekanth
>
>
> Potociar Marek wrote:
>> Similarly, the same behavior can be observed with the @WebServiceRef
>> annotation.
>> Marek
>>
>> On 23.9.2009, at 11:03, Sreekanth wrote:
>>
>>> Filed a P1: https://jax-ws.dev.java.net/issues/show_bug.cgi?id=798
>>>
>>> This is working with WSIT promoted build 19 and before.But not with
>>> promoted build 20 and latest nightly build.
>>>
>>> Thanks,
>>> Sreekanth
>>>
>>> Sreekanth wrote:
>>>> Hi ,
>>>>
>>>> (Copying to Dev alias)
>>>>
>>>> I just installed NB 6.8 ML1 and see the same here too.Did any one
>>>> face this?
>>>>
>>>> Here is what I have done:
>>>>
>>>> * Installed NB 6.8 ML1
>>>> * Install GF v2.1.1
>>>> * Install Metro Latest bits
>>>> * Create a new Webservice sample to use Mutual Certificate Security.
>>>> * Deploy it.
>>>> * Create a client
>>>> * Deploy the Client and then Run it.
>>>>
>>>> I see the below exception :
>>>>
>>>> DPL5306:Servlet Web Service Endpoint [IPingService] listening at
>>>> address [http://sreekanth-laptop:8080/SimpleApp/IPingServiceService]
>>>> deployed with moduleid = SimpleApp
>>>> WSP5018: Loaded WSIT configuration from file:
>>>> jndi:/server/SimpleApp/WEB-INF/wsit-simple.server.IPingService.xml.
>>>> Monitoring rootname successfully set to:
>>>> {http://server.simple/}IPingServiceService{http://server.simple/}IPingServicePort
>>>>
>>>> GMBAL901: JMX exception on registration of MBean
>>>> MBeanImpl[type=Service,name={http://server.simple/}IPingServiceService{http://server.simple/}IPingServicePort,oname=com.sun.metro:pp=/,type=Service,name="{http://server.simple/}IPingServiceService{http://server.simple/}IPingServicePort"]
>>>>
>>>> Class must be annotated with a interface
>>>> javax.xml.ws.WebServiceClient annotation
>>>> symbol : interface javax.xml.ws.WebServiceClient
>>>> location: class simple.server.IPingServiceService
>>>> Annotations processing failed for
>>>> /home/sreekanth/NetBeansProjects/SimpleAppClient/build/web
>>>> deployed with moduleid = SimpleAppClient
>>>> naming.bind
>>>> java.lang.reflect.InvocationTargetException
>>>> at
>>>> sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
>>>> at
>>>> sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
>>>>
>>>> at
>>>> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
>>>>
>>>> at
>>>> java.lang.reflect.Constructor.newInstance(Constructor.java:513)
>>>> at
>>>> com.sun.enterprise.naming.NamingManagerImpl.initiateInstance(NamingManagerImpl.java:1128)
>>>>
>>>> at
>>>> com.sun.enterprise.naming.NamingManagerImpl.getClientServiceObject(NamingManagerImpl.java:1208)
>>>>
>>>> at
>>>> com.sun.enterprise.naming.NamingManagerImpl.lookup(NamingManagerImpl.java:1033)
>>>>
>>>> at
>>>> com.sun.enterprise.naming.java.javaURLContext.lookup(javaURLContext.java:173)
>>>>
>>>> at
>>>> com.sun.enterprise.naming.SerialContext.lookup(SerialContext.java:407)
>>>> at javax.naming.InitialContext.lookup(InitialContext.java:392)
>>>> at
>>>> com.sun.enterprise.util.InjectionManagerImpl._inject(InjectionManagerImpl.java:287)
>>>>
>>>> at
>>>> com.sun.enterprise.util.InjectionManagerImpl.inject(InjectionManagerImpl.java:206)
>>>>
>>>> at
>>>> com.sun.enterprise.util.InjectionManagerImpl.injectInstance(InjectionManagerImpl.java:117)
>>>>
>>>> at
>>>> com.sun.web.server.J2EEInstanceListener.handleBeforeEvent(J2EEInstanceListener.java:259)
>>>>
>>>> at
>>>> com.sun.web.server.J2EEInstanceListener.instanceEvent(J2EEInstanceListener.java:119)
>>>>
>>>> at
>>>> org.apache.catalina.util.InstanceSupport.fireInstanceEvent(InstanceSupport.java:347)
>>>>
>>>> at
>>>> org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1085)
>>>>
>>>> at
>>>> org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:848)
>>>>
>>>> at
>>>> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
>>>>
>>>> at
>>>> org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:287)
>>>>
>>>> at
>>>> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:218)
>>>>
>>>> at
>>>> org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:648)
>>>>
>>>> at
>>>> org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:593)
>>>>
>>>> at
>>>> com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:94)
>>>> at
>>>> com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke(PESessionLockingStandardPipeline.java:98)
>>>>
>>>> at
>>>> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:222)
>>>>
>>>> at
>>>> org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:648)
>>>>
>>>> at
>>>> org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:593)
>>>>
>>>> at
>>>> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:587)
>>>>
>>>> at
>>>> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1093)
>>>> at
>>>> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:166)
>>>>
>>>> at
>>>> org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:648)
>>>>
>>>> at
>>>> org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:593)
>>>>
>>>> at
>>>> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:587)
>>>>
>>>> at
>>>> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1093)
>>>> at
>>>> org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:291)
>>>>
>>>> at
>>>> com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.invokeAdapter(DefaultProcessorTask.java:666)
>>>>
>>>> at
>>>> com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.doProcess(DefaultProcessorTask.java:597)
>>>>
>>>> at
>>>> com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.process(DefaultProcessorTask.java:872)
>>>>
>>>> at
>>>> com.sun.enterprise.web.connector.grizzly.DefaultReadTask.executeProcessorTask(DefaultReadTask.java:341)
>>>>
>>>> at
>>>> com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:263)
>>>>
>>>> at
>>>> com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:214)
>>>>
>>>> at
>>>> com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:264)
>>>>
>>>> at
>>>> com.sun.enterprise.web.connector.grizzly.ssl.SSLWorkerThread.run(SSLWorkerThread.java:106)
>>>>
>>>> Caused by: javax.xml.ws.WebServiceException: null is not a valid
>>>> service
>>>> at
>>>> com.sun.xml.ws.client.WSServiceDelegate.(WSServiceDelegate.java:190)
>>>>
>>>> at
>>>> com.sun.xml.ws.client.WSServiceDelegate.(WSServiceDelegate.java:178)
>>>>
>>>> at
>>>> com.sun.xml.ws.spi.ProviderImpl.createServiceDelegate(ProviderImpl.java:106)
>>>>
>>>> at javax.xml.ws.Service.(Service.java:57)
>>>> at
>>>> simple.server.IPingServiceService.(IPingServiceService.java:58)
>>>> ... 44 more
>>>> WebModule[/SimpleAppClient]StandardWrapper.Throwable
>>>> java.lang.RuntimeException: WEB5002: Exception in handleBeforeEvent.
>>>> at
>>>> com.sun.web.server.J2EEInstanceListener.handleBeforeEvent(J2EEInstanceListener.java:263)
>>>>
>>>> at
>>>> com.sun.web.server.J2EEInstanceListener.instanceEvent(J2EEInstanceListener.java:119)
>>>>
>>>> at
>>>> org.apache.catalina.util.InstanceSupport.fireInstanceEvent(InstanceSupport.java:347)
>>>>
>>>> at
>>>> org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1085)
>>>>
>>>> at
>>>> org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:848)
>>>>
>>>> at
>>>> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
>>>>
>>>> at
>>>> org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:287)
>>>>
>>>> at
>>>> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:218)
>>>>
>>>> at
>>>> org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:648)
>>>>
>>>> at
>>>> org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:593)
>>>>
>>>> at
>>>> com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:94)
>>>> at
>>>> com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke(PESessionLockingStandardPipeline.java:98)
>>>>
>>>> at
>>>> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:222)
>>>>
>>>> at
>>>> org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:648)
>>>>
>>>> at
>>>> org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:593)
>>>>
>>>> at
>>>> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:587)
>>>>
>>>> at
>>>> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1093)
>>>> at
>>>> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:166)
>>>>
>>>> at
>>>> org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:648)
>>>>
>>>> at
>>>> org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:593)
>>>>
>>>> at
>>>> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:587)
>>>>
>>>> at
>>>> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1093)
>>>> at
>>>> org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:291)
>>>>
>>>> at
>>>> com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.invokeAdapter(DefaultProcessorTask.java:666)
>>>>
>>>> at
>>>> com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.doProcess(DefaultProcessorTask.java:597)
>>>>
>>>> at
>>>> com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.process(DefaultProcessorTask.java:872)
>>>>
>>>> at
>>>> com.sun.enterprise.web.connector.grizzly.DefaultReadTask.executeProcessorTask(DefaultReadTask.java:341)
>>>>
>>>> at
>>>> com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:263)
>>>>
>>>> at
>>>> com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:214)
>>>>
>>>> at
>>>> com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:264)
>>>>
>>>> at
>>>> com.sun.enterprise.web.connector.grizzly.ssl.SSLWorkerThread.run(SSLWorkerThread.java:106)
>>>>
>>>> Caused by: com.sun.enterprise.InjectionException: Exception
>>>> attempting to inject Env-Prop:
>>>> simple.client.NewServlet/service@Field-Injectable Resource. Class
>>>> name = simple.client.NewServlet Field
>>>> name=service@javax.jws.WebServiceRef@@@ into class
>>>> simple.client.NewServlet
>>>> at
>>>> com.sun.enterprise.util.InjectionManagerImpl._inject(InjectionManagerImpl.java:387)
>>>>
>>>> at
>>>> com.sun.enterprise.util.InjectionManagerImpl.inject(InjectionManagerImpl.java:206)
>>>>
>>>> at
>>>> com.sun.enterprise.util.InjectionManagerImpl.injectInstance(InjectionManagerImpl.java:117)
>>>>
>>>> at
>>>> com.sun.web.server.J2EEInstanceListener.handleBeforeEvent(J2EEInstanceListener.java:259)
>>>>
>>>> ... 30 more
>>>> Caused by: javax.naming.NamingException [Root exception is
>>>> java.lang.reflect.InvocationTargetException]
>>>> at
>>>> com.sun.enterprise.naming.NamingManagerImpl.getClientServiceObject(NamingManagerImpl.java:1291)
>>>>
>>>> at
>>>> com.sun.enterprise.naming.NamingManagerImpl.lookup(NamingManagerImpl.java:1033)
>>>>
>>>> at
>>>> com.sun.enterprise.naming.java.javaURLContext.lookup(javaURLContext.java:173)
>>>>
>>>> at
>>>> com.sun.enterprise.naming.SerialContext.lookup(SerialContext.java:407)
>>>> at javax.naming.InitialContext.lookup(InitialContext.java:392)
>>>> at
>>>> com.sun.enterprise.util.InjectionManagerImpl._inject(InjectionManagerImpl.java:287)
>>>>
>>>> ... 33 more
>>>> Caused by: java.lang.reflect.InvocationTargetException
>>>> at
>>>> sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
>>>> at
>>>> sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
>>>>
>>>> at
>>>> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
>>>>
>>>> at
>>>> java.lang.reflect.Constructor.newInstance(Constructor.java:513)
>>>> at
>>>> com.sun.enterprise.naming.NamingManagerImpl.initiateInstance(NamingManagerImpl.java:1128)
>>>>
>>>> at
>>>> com.sun.enterprise.naming.NamingManagerImpl.getClientServiceObject(NamingManagerImpl.java:1208)
>>>>
>>>> ... 38 more
>>>> Caused by: javax.xml.ws.WebServiceException: null is not a valid
>>>> service
>>>> at
>>>> com.sun.xml.ws.client.WSServiceDelegate.(WSServiceDelegate.java:190)
>>>>
>>>> at
>>>> com.sun.xml.ws.client.WSServiceDelegate.(WSServiceDelegate.java:178)
>>>>
>>>> at
>>>> com.sun.xml.ws.spi.ProviderImpl.createServiceDelegate(ProviderImpl.java:106)
>>>>
>>>> at javax.xml.ws.Service.(Service.java:57)
>>>> at
>>>> simple.server.IPingServiceService.(IPingServiceService.java:58)
>>>> ... 44 more
>>>> StandardWrapperValve[NewServlet]: PWC1382: Allocate exception for
>>>> servlet NewServlet
>>>> java.lang.RuntimeException: WEB5002: Exception in handleBeforeEvent.
>>>> at
>>>> com.sun.web.server.J2EEInstanceListener.handleBeforeEvent(J2EEInstanceListener.java:263)
>>>>
>>>> at
>>>> com.sun.web.server.J2EEInstanceListener.instanceEvent(J2EEInstanceListener.java:119)
>>>>
>>>> at
>>>> org.apache.catalina.util.InstanceSupport.fireInstanceEvent(InstanceSupport.java:347)
>>>>
>>>> at
>>>> org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1085)
>>>>
>>>> at
>>>> org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:848)
>>>>
>>>> at
>>>> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
>>>>
>>>> at
>>>> org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:287)
>>>>
>>>> at
>>>> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:218)
>>>>
>>>> at
>>>> org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:648)
>>>>
>>>> at
>>>> org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:593)
>>>>
>>>> at
>>>> com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:94)
>>>> at
>>>> com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke(PESessionLockingStandardPipeline.java:98)
>>>>
>>>> at
>>>> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:222)
>>>>
>>>> at
>>>> org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:648)
>>>>
>>>> at
>>>> org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:593)
>>>>
>>>> at
>>>> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:587)
>>>>
>>>> at
>>>> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1093)
>>>> at
>>>> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:166)
>>>>
>>>> at
>>>> org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:648)
>>>>
>>>> at
>>>> org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:593)
>>>>
>>>> at
>>>> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:587)
>>>>
>>>> at
>>>> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1093)
>>>> at
>>>> org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:291)
>>>>
>>>> at
>>>> com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.invokeAdapter(DefaultProcessorTask.java:666)
>>>>
>>>> at
>>>> com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.doProcess(DefaultProcessorTask.java:597)
>>>>
>>>> at
>>>> com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.process(DefaultProcessorTask.java:872)
>>>>
>>>> at
>>>> com.sun.enterprise.web.connector.grizzly.DefaultReadTask.executeProcessorTask(DefaultReadTask.java:341)
>>>>
>>>> at
>>>> com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:263)
>>>>
>>>> at
>>>> com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:214)
>>>>
>>>> at
>>>> com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:264)
>>>>
>>>> at
>>>> com.sun.enterprise.web.connector.grizzly.ssl.SSLWorkerThread.run(SSLWorkerThread.java:106)
>>>>
>>>> Caused by: com.sun.enterprise.InjectionException: Exception
>>>> attempting to inject Env-Prop:
>>>> simple.client.NewServlet/service@Field-Injectable Resource. Class
>>>> name = simple.client.NewServlet Field
>>>> name=service@javax.jws.WebServiceRef@@@ into class
>>>> simple.client.NewServlet
>>>> at
>>>> com.sun.enterprise.util.InjectionManagerImpl._inject(InjectionManagerImpl.java:387)
>>>>
>>>> at
>>>> com.sun.enterprise.util.InjectionManagerImpl.inject(InjectionManagerImpl.java:206)
>>>>
>>>> at
>>>> com.sun.enterprise.util.InjectionManagerImpl.injectInstance(InjectionManagerImpl.java:117)
>>>>
>>>> at
>>>> com.sun.web.server.J2EEInstanceListener.handleBeforeEvent(J2EEInstanceListener.java:259)
>>>>
>>>> ... 30 more
>>>> Caused by: javax.naming.NamingException [Root exception is
>>>> java.lang.reflect.InvocationTargetException]
>>>> at
>>>> com.sun.enterprise.naming.NamingManagerImpl.getClientServiceObject(NamingManagerImpl.java:1291)
>>>>
>>>> at
>>>> com.sun.enterprise.naming.NamingManagerImpl.lookup(NamingManagerImpl.java:1033)
>>>>
>>>> at
>>>> com.sun.enterprise.naming.java.javaURLContext.lookup(javaURLContext.java:173)
>>>>
>>>> at
>>>> com.sun.enterprise.naming.SerialContext.lookup(SerialContext.java:407)
>>>> at javax.naming.InitialContext.lookup(InitialContext.java:392)
>>>> at
>>>> com.sun.enterprise.util.InjectionManagerImpl._inject(InjectionManagerImpl.java:287)
>>>>
>>>> ... 33 more
>>>> Caused by: java.lang.reflect.InvocationTargetException
>>>> at
>>>> sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
>>>> at
>>>> sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
>>>>
>>>> at
>>>> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
>>>>
>>>> at
>>>> java.lang.reflect.Constructor.newInstance(Constructor.java:513)
>>>> at
>>>> com.sun.enterprise.naming.NamingManagerImpl.initiateInstance(NamingManagerImpl.java:1128)
>>>>
>>>> at
>>>> com.sun.enterprise.naming.NamingManagerImpl.getClientServiceObject(NamingManagerImpl.java:1208)
>>>>
>>>> ... 38 more
>>>> Caused by: javax.xml.ws.WebServiceException: null is not a valid
>>>> service
>>>> at
>>>> com.sun.xml.ws.client.WSServiceDelegate.(WSServiceDelegate.java:190)
>>>>
>>>> at
>>>> com.sun.xml.ws.client.WSServiceDelegate.(WSServiceDelegate.java:178)
>>>>
>>>> at
>>>> com.sun.xml.ws.spi.ProviderImpl.createServiceDelegate(ProviderImpl.java:106)
>>>>
>>>> at javax.xml.ws.Service.(Service.java:57)
>>>> at
>>>> simple.server.IPingServiceService.(IPingServiceService.java:58)
>>>> ... 44 more
>>>>
>>>>
>>>>
>>>> Thanks,
>>>> Sreekanth
>>>>
>>>> Sreekanth wrote:
>>>>> Hi ,
>>>>>
>>>>> I have a simple webservice and client program created through
>>>>> Netbeans.When I try to run my client program, I see the below
>>>>> exception.Please find the attached client program.
>>>>>
>>>>> Is this a bug in Netbeans/Metro ?
>>>>>
>>>>> Error Log:
>>>>> ==========
>>>>>
>>>>> WSP5018: Loaded WSIT configuration from file:
>>>>> jndi:/server/wsit-enabled-fromjava-js61/WEB-INF/wsit-simple.server.IPingService.xml.
>>>>>
>>>>> Monitoring rootname successfully set to:
>>>>> {http://server.simple/}IPingServiceService{http://server.simple/}IPingServicePort
>>>>>
>>>>> classLoader = WebappClassLoader
>>>>> delegate: true
>>>>> repositories:
>>>>> /WEB-INF/classes/
>>>>> ----------> Parent Classloader:
>>>>> EJBClassLoader :
>>>>> urlSet = []
>>>>> doneCalled = false
>>>>> Parent -> java.net.URLClassLoader@cbd8dc
>>>>> SharedSecrets.getJavaNetAccess()=java.net.URLClassLoader$7@1d063b3
>>>>> Class must be annotated with a interface
>>>>> javax.xml.ws.WebServiceClient annotation
>>>>> symbol : interface javax.xml.ws.WebServiceClient
>>>>> location: class simple.server.IPingServiceService
>>>>> Annotations processing failed for
>>>>> /home/sreekanth/NetBeansProjects/wsit-enabled-fromjava-js61-client/build/web
>>>>>
>>>>> deployed with moduleid = wsit-enabled-fromjava-js61-client
>>>>> naming.bind
>>>>> java.lang.reflect.InvocationTargetException
>>>>> at
>>>>> sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
>>>>> at
>>>>> sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
>>>>>
>>>>> at
>>>>> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
>>>>>
>>>>> at
>>>>> java.lang.reflect.Constructor.newInstance(Constructor.java:513)
>>>>> at
>>>>> com.sun.enterprise.naming.NamingManagerImpl.initiateInstance(NamingManagerImpl.java:1124)
>>>>>
>>>>> at
>>>>> com.sun.enterprise.naming.NamingManagerImpl.getClientServiceObject(NamingManagerImpl.java:1204)
>>>>>
>>>>> at
>>>>> com.sun.enterprise.naming.NamingManagerImpl.lookup(NamingManagerImpl.java:1029)
>>>>>
>>>>> at
>>>>> com.sun.enterprise.naming.java.javaURLContext.lookup(javaURLContext.java:173)
>>>>>
>>>>> at
>>>>> com.sun.enterprise.naming.SerialContext.lookup(SerialContext.java:407)
>>>>>
>>>>> at javax.naming.InitialContext.lookup(InitialContext.java:392)
>>>>> at
>>>>> com.sun.enterprise.util.InjectionManagerImpl._inject(InjectionManagerImpl.java:287)
>>>>>
>>>>> at
>>>>> com.sun.enterprise.util.InjectionManagerImpl.inject(InjectionManagerImpl.java:206)
>>>>>
>>>>> at
>>>>> com.sun.enterprise.util.InjectionManagerImpl.injectInstance(InjectionManagerImpl.java:117)
>>>>>
>>>>> at
>>>>> com.sun.web.server.J2EEInstanceListener.handleBeforeEvent(J2EEInstanceListener.java:259)
>>>>>
>>>>> at
>>>>> com.sun.web.server.J2EEInstanceListener.instanceEvent(J2EEInstanceListener.java:119)
>>>>>
>>>>> at
>>>>> org.apache.catalina.util.InstanceSupport.fireInstanceEvent(InstanceSupport.java:347)
>>>>>
>>>>> at
>>>>> org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1085)
>>>>>
>>>>> at
>>>>> org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:848)
>>>>>
>>>>> at
>>>>> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
>>>>>
>>>>> at
>>>>> org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:287)
>>>>>
>>>>> at
>>>>> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:218)
>>>>>
>>>>> at
>>>>> org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:648)
>>>>>
>>>>> at
>>>>> org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:593)
>>>>>
>>>>> at
>>>>> com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:94)
>>>>> at
>>>>> com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke(PESessionLockingStandardPipeline.java:98)
>>>>>
>>>>> at
>>>>> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:222)
>>>>>
>>>>> at
>>>>> org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:648)
>>>>>
>>>>> at
>>>>> org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:593)
>>>>>
>>>>> at
>>>>> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:587)
>>>>>
>>>>> at
>>>>> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1096)
>>>>>
>>>>> at
>>>>> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:166)
>>>>>
>>>>> at
>>>>> org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:648)
>>>>>
>>>>> at
>>>>> org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:593)
>>>>>
>>>>> at
>>>>> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:587)
>>>>>
>>>>> at
>>>>> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1096)
>>>>>
>>>>> at
>>>>> org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:291)
>>>>>
>>>>> at
>>>>> com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.invokeAdapter(DefaultProcessorTask.java:666)
>>>>>
>>>>> at
>>>>> com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.doProcess(DefaultProcessorTask.java:597)
>>>>>
>>>>> at
>>>>> com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.process(DefaultProcessorTask.java:871)
>>>>>
>>>>> at
>>>>> com.sun.enterprise.web.connector.grizzly.DefaultReadTask.executeProcessorTask(DefaultReadTask.java:341)
>>>>>
>>>>> at
>>>>> com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:263)
>>>>>
>>>>> at
>>>>> com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:214)
>>>>>
>>>>> at
>>>>> com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:265)
>>>>>
>>>>> at
>>>>> com.sun.enterprise.web.connector.grizzly.ssl.SSLWorkerThread.run(SSLWorkerThread.java:106)
>>>>>
>>>>> Caused by: javax.xml.ws.WebServiceException: null is not a valid
>>>>> service
>>>>> at
>>>>> com.sun.xml.ws.client.WSServiceDelegate.(WSServiceDelegate.java:190)
>>>>>
>>>>> at
>>>>> com.sun.xml.ws.client.WSServiceDelegate.(WSServiceDelegate.java:178)
>>>>>
>>>>> at
>>>>> com.sun.xml.ws.spi.ProviderImpl.createServiceDelegate(ProviderImpl.java:106)
>>>>>
>>>>> at javax.xml.ws.Service.(Service.java:57)
>>>>> at
>>>>> simple.server.IPingServiceService.(IPingServiceService.java:58)
>>>>> ... 44 more
>>>>> WebModule[/wsit-enabled-fromjava-js61-client]StandardWrapper.Throwable
>>>>>
>>>>> java.lang.RuntimeException: WEB5002: Exception in handleBeforeEvent.
>>>>> at
>>>>> com.sun.web.server.J2EEInstanceListener.handleBeforeEvent(J2EEInstanceListener.java:263)
>>>>>
>>>>> at
>>>>> com.sun.web.server.J2EEInstanceListener.instanceEvent(J2EEInstanceListener.java:119)
>>>>>
>>>>> at
>>>>> org.apache.catalina.util.InstanceSupport.fireInstanceEvent(InstanceSupport.java:347)
>>>>>
>>>>> at
>>>>> org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1085)
>>>>>
>>>>> at
>>>>> org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:848)
>>>>>
>>>>> at
>>>>> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
>>>>>
>>>>> at
>>>>> org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:287)
>>>>>
>>>>> at
>>>>> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:218)
>>>>>
>>>>> at
>>>>> org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:648)
>>>>>
>>>>> at
>>>>> org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:593)
>>>>>
>>>>> at
>>>>> com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:94)
>>>>> at
>>>>> com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke(PESessionLockingStandardPipeline.java:98)
>>>>>
>>>>> at
>>>>> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:222)
>>>>>
>>>>> at
>>>>> org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:648)
>>>>>
>>>>> at
>>>>> org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:593)
>>>>>
>>>>> at
>>>>> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:587)
>>>>>
>>>>> at
>>>>> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1096)
>>>>>
>>>>> at
>>>>> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:166)
>>>>>
>>>>> at
>>>>> org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:648)
>>>>>
>>>>> at
>>>>> org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:593)
>>>>>
>>>>> at
>>>>> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:587)
>>>>>
>>>>> at
>>>>> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1096)
>>>>>
>>>>> at
>>>>> org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:291)
>>>>>
>>>>> at
>>>>> com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.invokeAdapter(DefaultProcessorTask.java:666)
>>>>>
>>>>> at
>>>>> com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.doProcess(DefaultProcessorTask.java:597)
>>>>>
>>>>> at
>>>>> com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.process(DefaultProcessorTask.java:871)
>>>>>
>>>>> at
>>>>> com.sun.enterprise.web.connector.grizzly.DefaultReadTask.executeProcessorTask(DefaultReadTask.java:341)
>>>>>
>>>>> at
>>>>> com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:263)
>>>>>
>>>>> at
>>>>> com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:214)
>>>>>
>>>>> at
>>>>> com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:265)
>>>>>
>>>>> at
>>>>> com.sun.enterprise.web.connector.grizzly.ssl.SSLWorkerThread.run(SSLWorkerThread.java:106)
>>>>>
>>>>> Caused by: com.sun.enterprise.InjectionException: Exception
>>>>> attempting to inject Env-Prop:
>>>>> simple.client.NewServlet/service@Field-Injectable Resource. Class
>>>>> name = simple.client.NewServlet Field
>>>>> name=service@javax.jws.WebServiceRef@@@ into class
>>>>> simple.client.NewServlet
>>>>> at
>>>>> com.sun.enterprise.util.InjectionManagerImpl._inject(InjectionManagerImpl.java:387)
>>>>>
>>>>> at
>>>>> com.sun.enterprise.util.InjectionManagerImpl.inject(InjectionManagerImpl.java:206)
>>>>>
>>>>> at
>>>>> com.sun.enterprise.util.InjectionManagerImpl.injectInstance(InjectionManagerImpl.java:117)
>>>>>
>>>>> at
>>>>> com.sun.web.server.J2EEInstanceListener.handleBeforeEvent(J2EEInstanceListener.java:259)
>>>>>
>>>>> ... 30 more
>>>>> Caused by: javax.naming.NamingException [Root exception is
>>>>> java.lang.reflect.InvocationTargetException]
>>>>> at
>>>>> com.sun.enterprise.naming.NamingManagerImpl.getClientServiceObject(NamingManagerImpl.java:1287)
>>>>>
>>>>> at
>>>>> com.sun.enterprise.naming.NamingManagerImpl.lookup(NamingManagerImpl.java:1029)
>>>>>
>>>>> at
>>>>> com.sun.enterprise.naming.java.javaURLContext.lookup(javaURLContext.java:173)
>>>>>
>>>>> at
>>>>> com.sun.enterprise.naming.SerialContext.lookup(SerialContext.java:407)
>>>>>
>>>>> at javax.naming.InitialContext.lookup(InitialContext.java:392)
>>>>> at
>>>>> com.sun.enterprise.util.InjectionManagerImpl._inject(InjectionManagerImpl.java:287)
>>>>>
>>>>> ... 33 more
>>>>> Caused by: java.lang.reflect.InvocationTargetException
>>>>> at
>>>>> sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
>>>>> at
>>>>> sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
>>>>>
>>>>> at
>>>>> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
>>>>>
>>>>> at
>>>>> java.lang.reflect.Constructor.newInstance(Constructor.java:513)
>>>>> at
>>>>> com.sun.enterprise.naming.NamingManagerImpl.initiateInstance(NamingManagerImpl.java:1124)
>>>>>
>>>>> at
>>>>> com.sun.enterprise.naming.NamingManagerImpl.getClientServiceObject(NamingManagerImpl.java:1204)
>>>>>
>>>>> ... 38 more
>>>>> Caused by: javax.xml.ws.WebServiceException: null is not a valid
>>>>> service
>>>>> at
>>>>> com.sun.xml.ws.client.WSServiceDelegate.(WSServiceDelegate.java:190)
>>>>>
>>>>> at
>>>>> com.sun.xml.ws.client.WSServiceDelegate.(WSServiceDelegate.java:178)
>>>>>
>>>>> at
>>>>> com.sun.xml.ws.spi.ProviderImpl.createServiceDelegate(ProviderImpl.java:106)
>>>>>
>>>>> at javax.xml.ws.Service.(Service.java:57)
>>>>> at
>>>>> simple.server.IPingServiceService.(IPingServiceService.java:58)
>>>>> ... 44 more
>>>>> StandardWrapperValve[NewServlet]: PWC1382: Allocate exception for
>>>>> servlet NewServlet
>>>>> java.lang.RuntimeException: WEB5002: Exception in handleBeforeEvent.
>>>>> at
>>>>> com.sun.web.server.J2EEInstanceListener.handleBeforeEvent(J2EEInstanceListener.java:263)
>>>>>
>>>>> at
>>>>> com.sun.web.server.J2EEInstanceListener.instanceEvent(J2EEInstanceListener.java:119)
>>>>>
>>>>> at
>>>>> org.apache.catalina.util.InstanceSupport.fireInstanceEvent(InstanceSupport.java:347)
>>>>>
>>>>> at
>>>>> org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1085)
>>>>>
>>>>> at
>>>>> org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:848)
>>>>>
>>>>> at
>>>>> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
>>>>>
>>>>> at
>>>>> org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:287)
>>>>>
>>>>> at
>>>>> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:218)
>>>>>
>>>>> at
>>>>> org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:648)
>>>>>
>>>>> at
>>>>> org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:593)
>>>>>
>>>>> at
>>>>> com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:94)
>>>>> at
>>>>> com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke(PESessionLockingStandardPipeline.java:98)
>>>>>
>>>>> at
>>>>> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:222)
>>>>>
>>>>> at
>>>>> org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:648)
>>>>>
>>>>> at
>>>>> org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:593)
>>>>>
>>>>> at
>>>>> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:587)
>>>>>
>>>>> at
>>>>> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1096)
>>>>>
>>>>> at
>>>>> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:166)
>>>>>
>>>>> at
>>>>> org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:648)
>>>>>
>>>>> at
>>>>> org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:593)
>>>>>
>>>>> at
>>>>> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:587)
>>>>>
>>>>> at
>>>>> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1096)
>>>>>
>>>>> at
>>>>> org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:291)
>>>>>
>>>>> at
>>>>> com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.invokeAdapter(DefaultProcessorTask.java:666)
>>>>>
>>>>> at
>>>>> com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.doProcess(DefaultProcessorTask.java:597)
>>>>>
>>>>> at
>>>>> com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.process(DefaultProcessorTask.java:871)
>>>>>
>>>>> at
>>>>> com.sun.enterprise.web.connector.grizzly.DefaultReadTask.executeProcessorTask(DefaultReadTask.java:341)
>>>>>
>>>>> at
>>>>> com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:263)
>>>>>
>>>>> at
>>>>> com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:214)
>>>>>
>>>>> at
>>>>> com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:265)
>>>>>
>>>>> at
>>>>> com.sun.enterprise.web.connector.grizzly.ssl.SSLWorkerThread.run(SSLWorkerThread.java:106)
>>>>>
>>>>> Caused by: com.sun.enterprise.InjectionException: Exception
>>>>> attempting to inject Env-Prop:
>>>>> simple.client.NewServlet/service@Field-Injectable Resource. Class
>>>>> name = simple.client.NewServlet Field
>>>>> name=service@javax.jws.WebServiceRef@@@ into class
>>>>> simple.client.NewServlet
>>>>> at
>>>>> com.sun.enterprise.util.InjectionManagerImpl._inject(InjectionManagerImpl.java:387)
>>>>>
>>>>> at
>>>>> com.sun.enterprise.util.InjectionManagerImpl.inject(InjectionManagerImpl.java:206)
>>>>>
>>>>> at
>>>>> com.sun.enterprise.util.InjectionManagerImpl.injectInstance(InjectionManagerImpl.java:117)
>>>>>
>>>>> at
>>>>> com.sun.web.server.J2EEInstanceListener.handleBeforeEvent(J2EEInstanceListener.java:259)
>>>>>
>>>>> ... 30 more
>>>>> Caused by: javax.naming.NamingException [Root exception is
>>>>> java.lang.reflect.InvocationTargetException]
>>>>> at
>>>>> com.sun.enterprise.naming.NamingManagerImpl.getClientServiceObject(NamingManagerImpl.java:1287)
>>>>>
>>>>> at
>>>>> com.sun.enterprise.naming.NamingManagerImpl.lookup(NamingManagerImpl.java:1029)
>>>>>
>>>>> at
>>>>> com.sun.enterprise.naming.java.javaURLContext.lookup(javaURLContext.java:173)
>>>>>
>>>>> at
>>>>> com.sun.enterprise.naming.SerialContext.lookup(SerialContext.java:407)
>>>>>
>>>>> at javax.naming.InitialContext.lookup(InitialContext.java:392)
>>>>> at
>>>>> com.sun.enterprise.util.InjectionManagerImpl._inject(InjectionManagerImpl.java:287)
>>>>>
>>>>> ... 33 more
>>>>> Caused by: java.lang.reflect.InvocationTargetException
>>>>> at
>>>>> sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
>>>>> at
>>>>> sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
>>>>>
>>>>> at
>>>>> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
>>>>>
>>>>> at
>>>>> java.lang.reflect.Constructor.newInstance(Constructor.java:513)
>>>>> at
>>>>> com.sun.enterprise.naming.NamingManagerImpl.initiateInstance(NamingManagerImpl.java:1124)
>>>>>
>>>>> at
>>>>> com.sun.enterprise.naming.NamingManagerImpl.getClientServiceObject(NamingManagerImpl.java:1204)
>>>>>
>>>>> ... 38 more
>>>>> Caused by: javax.xml.ws.WebServiceException: null is not a valid
>>>>> service
>>>>> at
>>>>> com.sun.xml.ws.client.WSServiceDelegate.(WSServiceDelegate.java:190)
>>>>>
>>>>> at
>>>>> com.sun.xml.ws.client.WSServiceDelegate.(WSServiceDelegate.java:178)
>>>>>
>>>>> at
>>>>> com.sun.xml.ws.spi.ProviderImpl.createServiceDelegate(ProviderImpl.java:106)
>>>>>
>>>>> at javax.xml.ws.Service.(Service.java:57)
>>>>> at
>>>>> simple.server.IPingServiceService.(IPingServiceService.java:58)
>>>>> ... 44 more
>>>>>
>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: dev-unsubscribe@metro.dev.java.net
>>>> For additional commands, e-mail: dev-help@metro.dev.java.net
>>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: dev-unsubscribe@metro.dev.java.net
>>> For additional commands, e-mail: dev-help@metro.dev.java.net
>>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: dev-unsubscribe@metro.dev.java.net
>> For additional commands, e-mail: dev-help@metro.dev.java.net
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@metro.dev.java.net
> For additional commands, e-mail: dev-help@metro.dev.java.net
>

[att1.html]

arsaral
Offline
Joined: 2012-03-17
Points: 0

Hi,

I am using GlassFish3.1 and Eclipse.
I created a helloservice and I can test it and check its WSDL.
It gives SEVERE: Class must be annotated with a interface javax.xml.ws.WebServiceClient annotation
when I try to use the webclient.There are 5 messages related to
SEVERE: Class must be annotated with a interface javax.xml.ws.WebServiceClient annotation
but none of them has been closed or gives information about how they are fixed.

Eclipse Java EE IDE for Web Developers.

Version: Indigo Service Release 1

Build id: 20110916-0149

Kind regards.

Ali R+

package helloservice.endpoint;

import javax.jws.WebService;
import javax.jws.WebMethod;

@WebService
public class Hello {
private String message = new String("Hello, ");

public void Hello() {
}

@WebMethod
public String sayHello(String name) {
return message + name + ".";
}
}

I created a client with the NetBeans utility while creating the
webservice. But when I tried to use the below webclient:

/*
* Copyright 2011 Oracle and/or its affiliates.
* All rights reserved. You may not modify, use,
* reproduce, or distribute this software except in
* compliance with the terms of the License at:
* http://developers.sun.com/license/berkeley_license.html
*/

package helloservice.endpoint;

//import helloservice.endpoint.HelloService;
import java.io.IOException;
import java.io.PrintWriter;
import java.rmi.RemoteException;

import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.xml.rpc.ServiceException;
import javax.xml.ws.WebServiceRef;

@WebServlet(name = "HelloServlet", urlPatterns = {
"/HelloServlet"}
)
public class HelloServlet extends HttpServlet {
@WebServiceRef(wsdlLocation = "http://localhost:8080/helloservice/HelloService?wsdl")
public HelloService service;

/**
* Processes requests for both HTTP <code>GET</code>
* and <code>POST</code> methods.
* @param request servlet request
* @param response servlet response
* @throws ServletException if a servlet-specific error occurs
* @throws IOException if an I/O error occurs
*/
protected void processRequest(
HttpServletRequest request,
HttpServletResponse response) throws ServletException, IOException {
response.setContentType("text/html;charset=UTF-8");

PrintWriter out = response.getWriter();

try {
out.println("<html lang=\"en\">");
out.println("<head>");
out.println("<title>Servlet HelloServlet</title>");
out.println("</head>");
out.println("<body>");
out.println(
"<h1>Servlet HelloServlet at " + request.getContextPath()
+ "</h1>");
out.println("<p>" + sayHello("world") + "</p>");
out.println("</body>");
out.println("</html>");
} finally {
out.close();
}
}

// <editor-fold defaultstate="collapsed" desc="HttpServlet methods. Click on the + sign on the left to edit the code.">
/**
* Handles the HTTP <code>GET</code> method.
* @param request servlet request
* @param response servlet response
* @throws ServletException if a servlet-specific error occurs
* @throws IOException if an I/O error occurs
*/
@Override
protected void doGet(
HttpServletRequest request,
HttpServletResponse response) throws ServletException, IOException {
processRequest(request, response);
}

/**
* Handles the HTTP <code>POST</code> method.
* @param request servlet request
* @param response servlet response
* @throws ServletException if a servlet-specific error occurs
* @throws IOException if an I/O error occurs
*/
@Override
protected void doPost(
HttpServletRequest request,
HttpServletResponse response) throws ServletException, IOException {
processRequest(request, response);
}

/**
* Returns a short description of the servlet.
* @return a String containing servlet description
*/
@Override
public String getServletInfo() {
return "Short description";
} // </editor-fold>

private String sayHello(java.lang.String arg0) {
try{
helloservice.endpoint.Hello port = service.getHello();
//webclient.Hello port = service.getHelloPort();
return port.sayHello(arg0);
}catch(ServiceException se){}
catch(RemoteException re){}
return("error");

}
}

It gives the below error:

SEVERE: Class must be annotated with a interface javax.xml.ws.WebServiceClient annotation
symbol : interface javax.xml.ws.WebServiceClient
location: interface helloservice.endpoint.HelloService
SEVERE: Annotations processing failed for file:/C:/Program%20Files/glassfish-3.1/glassfish/domains/domain1/eclipseApps/helloserviceClient/
SEVERE: Exception while invoking class com.sun.enterprise.web.WebDeployer prepare method
SEVERE: Exception while preparing the app
SEVERE: The log message is null.
java.lang.RuntimeException
at org.glassfish.javaee.core.deployment.JavaEEDeployer.prepare(JavaEEDeployer.java:219)
at com.sun.enterprise.v3.server.ApplicationLifecycle.prepareModule(ApplicationLifecycle.java:870)
at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:410)
at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:240)
at org.glassfish.deployment.admin.DeployCommand.execute(DeployCommand.java:370)
at com.sun.enterprise.v3.admin.CommandRunnerImpl$1.execute(CommandRunnerImpl.java:355)
at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:370)
at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:1067)
at com.sun.enterprise.v3.admin.CommandRunnerImpl.access$1200(CommandRunnerImpl.java:96)
at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1247)
at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1235)
at com.sun.enterprise.v3.admin.AdminAdapter.doCommand(AdminAdapter.java:465)
at com.sun.enterprise.v3.admin.AdminAdapter.service(AdminAdapter.java:222)
at com.sun.grizzly.tcp.http11.GrizzlyAdapter.service(GrizzlyAdapter.java:168)
at com.sun.enterprise.v3.server.HK2Dispatcher.dispath(HK2Dispatcher.java:117)
at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:234)
at com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:822)
at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:719)
at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:1013)
at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:225)
at com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:137)
at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:104)
at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:90)
at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:79)
at com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:54)
at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:59)
at com.sun.grizzly.ContextTask.run(ContextTask.java:71)
at com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:532)
at com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:513)
at java.lang.Thread.run(Thread.java:662)
Caused by: java.lang.RuntimeException
at org.glassfish.webservices.codegen.JaxRpcRICodegen.accept(JaxRpcRICodegen.java:283)
at com.sun.enterprise.deployment.WebBundleDescriptor.visit(WebBundleDescriptor.java:2032)
at com.sun.enterprise.deployment.Application.visit(Application.java:1780)
at org.glassfish.webservices.codegen.JaxRpcRICodegen.run(JaxRpcRICodegen.java:156)
at org.glassfish.webservices.JAXRPCCodeGenFacadeImpl.run(JAXRPCCodeGenFacadeImpl.java:60)
at org.glassfish.javaee.core.deployment.JavaEEDeployer.prepare(JavaEEDeployer.java:211)
... 29 more
Caused by: java.lang.NullPointerException
at java.util.concurrent.ConcurrentHashMap.get(ConcurrentHashMap.java:768)
at org.glassfish.web.loader.WebappClassLoader.findLoadedClass0(WebappClassLoader.java:2419)
at org.glassfish.web.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1415)
at org.glassfish.web.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1368)
at org.glassfish.webservices.codegen.JaxRpcRICodegen.accept(JaxRpcRICodegen.java:177)
... 34 more

SEVERE: Exception while preparing the app
java.lang.RuntimeException
at org.glassfish.webservices.codegen.JaxRpcRICodegen.accept(JaxRpcRICodegen.java:283)
at com.sun.enterprise.deployment.WebBundleDescriptor.visit(WebBundleDescriptor.java:2032)
at com.sun.enterprise.deployment.Application.visit(Application.java:1780)
at org.glassfish.webservices.codegen.JaxRpcRICodegen.run(JaxRpcRICodegen.java:156)
at org.glassfish.webservices.JAXRPCCodeGenFacadeImpl.run(JAXRPCCodeGenFacadeImpl.java:60)
at org.glassfish.javaee.core.deployment.JavaEEDeployer.prepare(JavaEEDeployer.java:211)
at com.sun.enterprise.v3.server.ApplicationLifecycle.prepareModule(ApplicationLifecycle.java:870)
at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:410)
at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:240)
at org.glassfish.deployment.admin.DeployCommand.execute(DeployCommand.java:370)
at com.sun.enterprise.v3.admin.CommandRunnerImpl$1.execute(CommandRunnerImpl.java:355)
at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:370)
at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:1067)
at com.sun.enterprise.v3.admin.CommandRunnerImpl.access$1200(CommandRunnerImpl.java:96)
at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1247)
at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1235)
at com.sun.enterprise.v3.admin.AdminAdapter.doCommand(AdminAdapter.java:465)
at com.sun.enterprise.v3.admin.AdminAdapter.service(AdminAdapter.java:222)
at com.sun.grizzly.tcp.http11.GrizzlyAdapter.service(GrizzlyAdapter.java:168)
at com.sun.enterprise.v3.server.HK2Dispatcher.dispath(HK2Dispatcher.java:117)
at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:234)
at com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:822)
at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:719)
at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:1013)
at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:225)
at com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:137)
at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:104)
at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:90)
at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:79)
at com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:54)
at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:59)
at com.sun.grizzly.ContextTask.run(ContextTask.java:71)
at com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:532)
at com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:513)
at java.lang.Thread.run(Thread.java:662)
Caused by: java.lang.NullPointerException
at java.util.concurrent.ConcurrentHashMap.get(ConcurrentHashMap.java:768)
at org.glassfish.web.loader.WebappClassLoader.findLoadedClass0(WebappClassLoader.java:2419)
at org.glassfish.web.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1415)
at org.glassfish.web.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1368)
at org.glassfish.webservices.codegen.JaxRpcRICodegen.accept(JaxRpcRICodegen.java:177)
... 34 more