Bonjour tout le monde,

j'ai suivit cet excelent tuto

http://theopentutorials.com/examples...-using-jax-ws/ pour créer un web et le

consommer avec un client.Le service marche très bien dans une classe

main.Cependant quand je fais appel a lui dans un managed bean ça marche pas.

voici mon managed bean

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
import javax.faces.event.ActionEvent;
 
import client.Calculator;
import client.CalculatorService;
 
 
 
 
 
/**
 * 
 */
 
/**
 * @author soufiane
 *
 */
public class addBean {
	private int n1;
	private int n2;
	private int somme;
 
	public addBean() {
	}
 
	public int getN1() {
		return n1;
	}
 
	public void setN1(int n1) {
		this.n1 = n1;
	}
 
	public int getN2() {
		return n2;
	}
 
	public void setN2(int n2) {
		this.n2 = n2;
	}
 
	public int getSomme() {
		return somme;
	}
 
	public void setSomme(int somme) {
		this.somme = somme;
	}
	public void countListener (ActionEvent event){
		CalculatorService calcService = new CalculatorService();
        Calculator calc = calcService.getCalculatorPort();
 
		somme = (int)calc.add(n1, n2);  
 
 
		}
}

voici ma page jsf

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:a4j="http://richfaces.org/a4j"
      xmlns:rich="http://richfaces.org/rich"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:ui="http://java.sun.com/jsf/facelets">
 
  <head></head>
 
  <body>
  <h:form>
<rich:panel style="width:50%">
<h:panelGrid columns="2">
<h:outputText value="a:"/>
 
<h:panelGroup>
<h:inputText id="name" value="#{addmanagedBean.n1}">
 
 
 
</h:inputText>
 
</h:panelGroup>
<h:outputText value="b:"/>
 
<h:panelGroup>
<h:inputText id="name2" value="#{addmanagedBean.n2}">
 
 
 
</h:inputText>
 
</h:panelGroup>
 
<h:outputText value="Count:"/>
<h:outputText id="count" value="#{addmanagedBean.somme}"/>
</h:panelGrid>
<a4j:commandButton value="Submit"
actionListener="#{addmanagedBean.countListener}"
reRender="count"/>
</rich:panel>
</h:form>
  </body>
</html>
voici l erreur

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
 
10 oct. 2012 23:56:51 org.apache.catalina.core.AprLifecycleListener init
INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\tibco\tibcojre\1.6.0\bin;C:\windows\Sun\Java\bin;C:\windows\system32;C:\windows;C:\Program Files (x86)\Java\jdk1.7.0\bin\..\jre\bin\client;C:\Program Files (x86)\Java\jdk1.7.0\bin\..\jre\bin;C:\Program Files (x86)\Java\jdk1.7.0\bin;C:\tibco\tibcojre\1.6.0\bin;C:\tibco\tibrv\8.3\bin;C:\oraclexe\app\oracle\product\11.2.0\server\bin;;C:\Program Files\Common Files\Microsoft Shared\Windows Live;C:\Program Files (x86)\Common Files\Microsoft Shared\Windows Live;C:\windows\system32;C:\windows;C:\windows\System32\Wbem;C:\windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Windows Live\Shared;C:\Program Files\TortoiseSVN\bin;.
10 oct. 2012 23:56:51 org.apache.tomcat.util.digester.SetPropertiesRule begin
ATTENTION: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.j2ee.server:RIchfaces' did not find a matching property.
10 oct. 2012 23:56:51 org.apache.coyote.http11.Http11Protocol init
INFO: Initialisation de Coyote HTTP/1.1 sur http-8181
10 oct. 2012 23:56:51 org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 354 ms
10 oct. 2012 23:56:51 org.apache.catalina.core.StandardService start
INFO: Démarrage du service Catalina
10 oct. 2012 23:56:51 org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/6.0.35
10 oct. 2012 23:56:51 com.sun.faces.config.ConfigureListener contextInitialized
INFO: Initializing Mojarra (1.2_08-b06-FCS) for context '/RIchfaces'
10 oct. 2012 23:56:52 org.ajax4jsf.cache.CacheManager getCacheFactory
INFO: Selected [org.ajax4jsf.cache.LRUMapCacheFactory] cache factory
10 oct. 2012 23:56:52 org.ajax4jsf.cache.LRUMapCacheFactory createCache
INFO: Creating LRUMap cache instance using parameters: {facelets.DEVELOPMENT=true, org.richfaces.SKIN=blueSky, facelets.REFRESH_PERIOD=2, javax.faces.STATE_SAVING_METHOD=server, javax.faces.DEFAULT_SUFFIX=.xhtml}
10 oct. 2012 23:56:52 org.ajax4jsf.cache.LRUMapCacheFactory createCache
INFO: Creating LRUMap cache instance of default capacity
10 oct. 2012 23:56:52 org.ajax4jsf.cache.CacheManager getCacheFactory
INFO: Selected [org.ajax4jsf.cache.LRUMapCacheFactory] cache factory
10 oct. 2012 23:56:52 org.ajax4jsf.cache.LRUMapCacheFactory createCache
INFO: Creating LRUMap cache instance using parameters: {facelets.DEVELOPMENT=true, org.richfaces.SKIN=blueSky, facelets.REFRESH_PERIOD=2, javax.faces.STATE_SAVING_METHOD=server, javax.faces.DEFAULT_SUFFIX=.xhtml}
10 oct. 2012 23:56:52 org.ajax4jsf.cache.LRUMapCacheFactory createCache
INFO: Creating LRUMap cache instance of default capacity
10 oct. 2012 23:56:52 org.apache.axis.utils.JavaUtils isAttachmentSupported
ATTENTION: Unable to find required classes (javax.activation.DataHandler and javax.mail.internet.MimeMultipart). Attachment support is disabled.
10 oct. 2012 23:56:52 org.apache.coyote.http11.Http11Protocol start
INFO: Démarrage de Coyote HTTP/1.1 sur http-8181
10 oct. 2012 23:56:52 org.apache.jk.common.ChannelSocket init
INFO: JK: ajp13 listening on /0.0.0.0:8009
10 oct. 2012 23:56:52 org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/12  config=null
10 oct. 2012 23:56:52 org.apache.catalina.startup.Catalina start
INFO: Server startup in 1422 ms
10 oct. 2012 23:56:53 com.sun.facelets.compiler.TagLibraryConfig loadImplicit
INFO: Added Library from: jar:file:/D:/richfaces/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/RIchfaces/WEB-INF/lib/jsf-facelets.jar!/META-INF/jstl-core.taglib.xml
10 oct. 2012 23:56:53 com.sun.facelets.compiler.TagLibraryConfig loadImplicit
INFO: Added Library from: jar:file:/D:/richfaces/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/RIchfaces/WEB-INF/lib/jsf-facelets.jar!/META-INF/jsf-html.taglib.xml
10 oct. 2012 23:56:53 com.sun.facelets.compiler.TagLibraryConfig loadImplicit
INFO: Added Library from: jar:file:/D:/richfaces/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/RIchfaces/WEB-INF/lib/richfaces-ui-3.2.0.GA.jar!/META-INF/a4j.taglib.xml
10 oct. 2012 23:56:53 com.sun.facelets.compiler.TagLibraryConfig loadImplicit
INFO: Added Library from: jar:file:/D:/richfaces/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/RIchfaces/WEB-INF/lib/richfaces-ui-3.2.0.GA.jar!/META-INF/rich.taglib.xml
10 oct. 2012 23:56:53 com.sun.facelets.compiler.TagLibraryConfig loadImplicit
INFO: Added Library from: jar:file:/D:/richfaces/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/RIchfaces/WEB-INF/lib/richfaces-ui-3.2.0.GA.jar!/META-INF/richfaces.taglib.xml
10 oct. 2012 23:56:53 com.sun.facelets.compiler.TagLibraryConfig loadImplicit
INFO: Added Library from: jar:file:/D:/richfaces/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/RIchfaces/WEB-INF/lib/jsf-facelets.jar!/META-INF/jsf-ui.taglib.xml
10 oct. 2012 23:56:53 com.sun.facelets.compiler.TagLibraryConfig loadImplicit
INFO: Added Library from: jar:file:/D:/richfaces/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/RIchfaces/WEB-INF/lib/jsf-facelets.jar!/META-INF/jsf-core.taglib.xml
10 oct. 2012 23:56:53 com.sun.facelets.compiler.TagLibraryConfig loadImplicit
INFO: Added Library from: jar:file:/D:/richfaces/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/RIchfaces/WEB-INF/lib/richfaces-ui-3.2.0.GA.jar!/META-INF/ajax4jsf.taglib.xml
10 oct. 2012 23:56:53 com.sun.facelets.compiler.TagLibraryConfig loadImplicit
INFO: Added Library from: jar:file:/D:/richfaces/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/RIchfaces/WEB-INF/lib/jsf-facelets.jar!/META-INF/jstl-fn.taglib.xml
10 oct. 2012 23:57:01 com.sun.xml.internal.ws.model.RuntimeModeler getRequestWrapperClass
INFO: Dynamically creating request wrapper Class com.theopentutorials.ws.calc.Add
10 oct. 2012 23:57:01 com.sun.xml.internal.ws.model.RuntimeModeler getResponseWrapperClass
INFO: Dynamically creating response wrapper bean Class com.theopentutorials.ws.calc.AddResponse
10 oct. 2012 23:57:01 com.sun.xml.internal.ws.model.RuntimeModeler getRequestWrapperClass
INFO: Dynamically creating request wrapper Class com.theopentutorials.ws.calc.Sub
10 oct. 2012 23:57:01 com.sun.xml.internal.ws.model.RuntimeModeler getResponseWrapperClass
INFO: Dynamically creating response wrapper bean Class com.theopentutorials.ws.calc.SubResponse
10 oct. 2012 23:57:01 com.sun.faces.lifecycle.InvokeApplicationPhase execute
ATTENTION: /add.xhtml @41,19 actionListener="#{addmanagedBean.countListener}": javax.xml.ws.WebServiceException: Unable to create JAXBContext
javax.faces.el.EvaluationException: /add.xhtml @41,19 actionListener="#{addmanagedBean.countListener}": javax.xml.ws.WebServiceException: Unable to create JAXBContext
	at com.sun.facelets.el.LegacyMethodBinding.invoke(LegacyMethodBinding.java:73)
	at javax.faces.component.UICommand.broadcast(UICommand.java:380)
	at org.ajax4jsf.component.AjaxActionComponent.broadcast(AjaxActionComponent.java:55)
	at org.ajax4jsf.component.AjaxViewRoot.processEvents(AjaxViewRoot.java:316)
	at org.ajax4jsf.component.AjaxViewRoot.broadcastEvents(AjaxViewRoot.java:291)
	at org.ajax4jsf.component.AjaxViewRoot.processPhase(AjaxViewRoot.java:248)
	at org.ajax4jsf.component.AjaxViewRoot.processApplication(AjaxViewRoot.java:461)
	at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:82)
	at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100)
	at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118)
	at javax.faces.webapp.FacesServlet.service(FacesServlet.java:265)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
	at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:147)
	at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:276)
	at org.ajax4jsf.Filter.doFilter(Filter.java:175)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
	at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859)
	at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:602)
	at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
	at java.lang.Thread.run(Thread.java:662)
Caused by: javax.xml.ws.WebServiceException: Unable to create JAXBContext
	at com.sun.xml.internal.ws.model.AbstractSEIModelImpl.createJAXBContext(AbstractSEIModelImpl.java:153)
	at com.sun.xml.internal.ws.model.AbstractSEIModelImpl.postProcess(AbstractSEIModelImpl.java:83)
	at com.sun.xml.internal.ws.model.RuntimeModeler.buildRuntimeModel(RuntimeModeler.java:244)
	at com.sun.xml.internal.ws.client.WSServiceDelegate.createSEIPortInfo(WSServiceDelegate.java:687)
	at com.sun.xml.internal.ws.client.WSServiceDelegate.addSEI(WSServiceDelegate.java:675)
	at com.sun.xml.internal.ws.client.WSServiceDelegate.getPort(WSServiceDelegate.java:330)
	at com.sun.xml.internal.ws.client.WSServiceDelegate.getPort(WSServiceDelegate.java:313)
	at com.sun.xml.internal.ws.client.WSServiceDelegate.getPort(WSServiceDelegate.java:295)
	at javax.xml.ws.Service.getPort(Service.java:92)
	at client.CalculatorService.getCalculatorPort(CalculatorService.java:72)
	at addBean.countListener(addBean.java:48)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:597)
	at org.apache.el.parser.AstValue.invoke(AstValue.java:191)
	at org.apache.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:276)
	at com.sun.facelets.el.TagMethodExpression.invoke(TagMethodExpression.java:68)
	at com.sun.facelets.el.LegacyMethodBinding.invoke(LegacyMethodBinding.java:69)
	... 27 more
Caused by: java.security.PrivilegedActionException: com.sun.xml.internal.bind.v2.runtime.IllegalAnnotationsException: 4 counts of IllegalAnnotationExceptions
Two classes have the same XML type name "{http://calc.ws.theopentutorials.com/}sub". Use @XmlType.name and @XmlType.namespace to assign different names to them.
	this problem is related to the following location:
		at client.Sub
		at public javax.xml.bind.JAXBElement client.ObjectFactory.createSub(client.Sub)
		at client.ObjectFactory
	this problem is related to the following location:
		at com.theopentutorials.ws.calc.Sub
Two classes have the same XML type name "{http://calc.ws.theopentutorials.com/}subResponse". Use @XmlType.name and @XmlType.namespace to assign different names to them.
	this problem is related to the following location:
		at client.SubResponse
		at public client.SubResponse client.ObjectFactory.createSubResponse()
		at client.ObjectFactory
	this problem is related to the following location:
		at com.theopentutorials.ws.calc.SubResponse
Two classes have the same XML type name "{http://calc.ws.theopentutorials.com/}add". Use @XmlType.name and @XmlType.namespace to assign different names to them.
	this problem is related to the following location:
		at client.Add
		at public client.Add client.ObjectFactory.createAdd()
		at client.ObjectFactory
	this problem is related to the following location:
		at com.theopentutorials.ws.calc.Add
Two classes have the same XML type name "{http://calc.ws.theopentutorials.com/}addResponse". Use @XmlType.name and @XmlType.namespace to assign different names to them.
	this problem is related to the following location:
		at client.AddResponse
		at public javax.xml.bind.JAXBElement client.ObjectFactory.createAddResponse(client.AddResponse)
		at client.ObjectFactory
	this problem is related to the following location:
		at com.theopentutorials.ws.calc.AddResponse
 
	at java.security.AccessController.doPrivileged(Native Method)
	at com.sun.xml.internal.ws.model.AbstractSEIModelImpl.createJAXBContext(AbstractSEIModelImpl.java:140)
	... 45 more
Caused by: com.sun.xml.internal.bind.v2.runtime.IllegalAnnotationsException: 4 counts of IllegalAnnotationExceptions
Two classes have the same XML type name "{http://calc.ws.theopentutorials.com/}sub". Use @XmlType.name and @XmlType.namespace to assign different names to them.
	this problem is related to the following location:
		at client.Sub
		at public javax.xml.bind.JAXBElement client.ObjectFactory.createSub(client.Sub)
		at client.ObjectFactory
	this problem is related to the following location:
		at com.theopentutorials.ws.calc.Sub
Two classes have the same XML type name "{http://calc.ws.theopentutorials.com/}subResponse". Use @XmlType.name and @XmlType.namespace to assign different names to them.
	this problem is related to the following location:
		at client.SubResponse
		at public client.SubResponse client.ObjectFactory.createSubResponse()
		at client.ObjectFactory
	this problem is related to the following location:
		at com.theopentutorials.ws.calc.SubResponse
Two classes have the same XML type name "{http://calc.ws.theopentutorials.com/}add". Use @XmlType.name and @XmlType.namespace to assign different names to them.
	this problem is related to the following location:
		at client.Add
		at public client.Add client.ObjectFactory.createAdd()
		at client.ObjectFactory
	this problem is related to the following location:
		at com.theopentutorials.ws.calc.Add
Two classes have the same XML type name "{http://calc.ws.theopentutorials.com/}addResponse". Use @XmlType.name and @XmlType.namespace to assign different names to them.
	this problem is related to the following location:
		at client.AddResponse
		at public javax.xml.bind.JAXBElement client.ObjectFactory.createAddResponse(client.AddResponse)
		at client.ObjectFactory
	this problem is related to the following location:
		at com.theopentutorials.ws.calc.AddResponse
 
	at com.sun.xml.internal.bind.v2.runtime.IllegalAnnotationsException$Builder.check(IllegalAnnotationsException.java:91)
	at com.sun.xml.internal.bind.v2.runtime.JAXBContextImpl.getTypeInfoSet(JAXBContextImpl.java:436)
	at com.sun.xml.internal.bind.v2.runtime.JAXBContextImpl.<init>(JAXBContextImpl.java:277)
	at com.sun.xml.internal.bind.v2.runtime.JAXBContextImpl$JAXBContextBuilder.build(JAXBContextImpl.java:1100)
	at com.sun.xml.internal.bind.v2.ContextFactory.createContext(ContextFactory.java:143)
	at com.sun.xml.internal.bind.api.JAXBRIContext.newInstance(JAXBRIContext.java:95)
	at com.sun.xml.internal.ws.developer.JAXBContextFactory$1.createJAXBContext(JAXBContextFactory.java:97)
	at com.sun.xml.internal.ws.model.AbstractSEIModelImpl$1.run(AbstractSEIModelImpl.java:148)
	at com.sun.xml.internal.ws.model.AbstractSEIModelImpl$1.run(AbstractSEIModelImpl.java:140)
	... 47 more
10 oct. 2012 23:57:01 com.sun.faces.lifecycle.Phase doPhase
GRAVE: JSF1054: (Phase ID: INVOKE_APPLICATION 5, View ID: /add.xhtml) Exception thrown during phase execution: javax.faces.event.PhaseEvent[source=com.sun.faces.lifecycle.LifecycleImpl@17c4779]
10 oct. 2012 23:57:01 org.apache.catalina.core.StandardWrapperValve invoke
GRAVE: "Servlet.service()" pour la servlet Faces Servlet a généré une exception
com.sun.xml.internal.bind.v2.runtime.IllegalAnnotationsException: 4 counts of IllegalAnnotationExceptions
Two classes have the same XML type name "{http://calc.ws.theopentutorials.com/}sub". Use @XmlType.name and @XmlType.namespace to assign different names to them.
	this problem is related to the following location:
		at client.Sub
		at public javax.xml.bind.JAXBElement client.ObjectFactory.createSub(client.Sub)
		at client.ObjectFactory
	this problem is related to the following location:
		at com.theopentutorials.ws.calc.Sub
Two classes have the same XML type name "{http://calc.ws.theopentutorials.com/}subResponse". Use @XmlType.name and @XmlType.namespace to assign different names to them.
	this problem is related to the following location:
		at client.SubResponse
		at public client.SubResponse client.ObjectFactory.createSubResponse()
		at client.ObjectFactory
	this problem is related to the following location:
		at com.theopentutorials.ws.calc.SubResponse
Two classes have the same XML type name "{http://calc.ws.theopentutorials.com/}add". Use @XmlType.name and @XmlType.namespace to assign different names to them.
	this problem is related to the following location:
		at client.Add
		at public client.Add client.ObjectFactory.createAdd()
		at client.ObjectFactory
	this problem is related to the following location:
		at com.theopentutorials.ws.calc.Add
Two classes have the same XML type name "{http://calc.ws.theopentutorials.com/}addResponse". Use @XmlType.name and @XmlType.namespace to assign different names to them.
	this problem is related to the following location:
		at client.AddResponse
		at public javax.xml.bind.JAXBElement client.ObjectFactory.createAddResponse(client.AddResponse)
		at client.ObjectFactory
	this problem is related to the following location:
		at com.theopentutorials.ws.calc.AddResponse
 
	at com.sun.xml.internal.bind.v2.runtime.IllegalAnnotationsException$Builder.check(IllegalAnnotationsException.java:91)
	at com.sun.xml.internal.bind.v2.runtime.JAXBContextImpl.getTypeInfoSet(JAXBContextImpl.java:436)
	at com.sun.xml.internal.bind.v2.runtime.JAXBContextImpl.<init>(JAXBContextImpl.java:277)
	at com.sun.xml.internal.bind.v2.runtime.JAXBContextImpl$JAXBContextBuilder.build(JAXBContextImpl.java:1100)
	at com.sun.xml.internal.bind.v2.ContextFactory.createContext(ContextFactory.java:143)
	at com.sun.xml.internal.bind.api.JAXBRIContext.newInstance(JAXBRIContext.java:95)
	at com.sun.xml.internal.ws.developer.JAXBContextFactory$1.createJAXBContext(JAXBContextFactory.java:97)
	at com.sun.xml.internal.ws.model.AbstractSEIModelImpl$1.run(AbstractSEIModelImpl.java:148)
	at com.sun.xml.internal.ws.model.AbstractSEIModelImpl$1.run(AbstractSEIModelImpl.java:140)
	at java.security.AccessController.doPrivileged(Native Method)
	at com.sun.xml.internal.ws.model.AbstractSEIModelImpl.createJAXBContext(AbstractSEIModelImpl.java:140)
	at com.sun.xml.internal.ws.model.AbstractSEIModelImpl.postProcess(AbstractSEIModelImpl.java:83)
	at com.sun.xml.internal.ws.model.RuntimeModeler.buildRuntimeModel(RuntimeModeler.java:244)
	at com.sun.xml.internal.ws.client.WSServiceDelegate.createSEIPortInfo(WSServiceDelegate.java:687)
	at com.sun.xml.internal.ws.client.WSServiceDelegate.addSEI(WSServiceDelegate.java:675)
	at com.sun.xml.internal.ws.client.WSServiceDelegate.getPort(WSServiceDelegate.java:330)
	at com.sun.xml.internal.ws.client.WSServiceDelegate.getPort(WSServiceDelegate.java:313)
	at com.sun.xml.internal.ws.client.WSServiceDelegate.getPort(WSServiceDelegate.java:295)
	at javax.xml.ws.Service.getPort(Service.java:92)
	at client.CalculatorService.getCalculatorPort(CalculatorService.java:72)
	at addBean.countListener(addBean.java:48)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:597)
	at org.apache.el.parser.AstValue.invoke(AstValue.java:191)
	at org.apache.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:276)
	at com.sun.facelets.el.TagMethodExpression.invoke(TagMethodExpression.java:68)
	at com.sun.facelets.el.LegacyMethodBinding.invoke(LegacyMethodBinding.java:69)
	at javax.faces.component.UICommand.broadcast(UICommand.java:380)
	at org.ajax4jsf.component.AjaxActionComponent.broadcast(AjaxActionComponent.java:55)
	at org.ajax4jsf.component.AjaxViewRoot.processEvents(AjaxViewRoot.java:316)
	at org.ajax4jsf.component.AjaxViewRoot.broadcastEvents(AjaxViewRoot.java:291)
	at org.ajax4jsf.component.AjaxViewRoot.processPhase(AjaxViewRoot.java:248)
	at org.ajax4jsf.component.AjaxViewRoot.processApplication(AjaxViewRoot.java:461)
	at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:82)
	at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100)
	at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118)
	at javax.faces.webapp.FacesServlet.service(FacesServlet.java:265)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
	at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:147)
	at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:276)
	at org.ajax4jsf.Filter.doFilter(Filter.java:175)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
	at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859)
	at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:602)
	at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
	at java.lang.Thread.run(Thread.java:662)