[JBossWS] - jbossWS 2.0.1 and JDK 1.6
by gumnaam
The release notes of 2.0.1 say it was fixed to work with JDK 1.6.
How ever I can't get it to work with JDK 1.6 under jboss 4.0.5.
If I run against JDK 1.6, I get the error saying jaxb-api.jar ver. 2.0 is loaded from bootstrap classpath however the JAX RI requires ver 2.1. To override , use the endoresed mechanism.
This is a deployment error, i.e. the application is not deployed.
So I copied jaxb-api.jar and jaxws-api.jar to jboss/lib/endorsed directory, after this the application is deployed fine, but when I call the web service , I get
anonymous wrote :
| aused by: java.lang.UnsupportedOperationException: setProperty must be overridden by all subclasses of SOAPMessage
| at javax.xml.soap.SOAPMessage.setProperty(SOAPMessage.java:424)
| at org.jboss.ws.core.soap.SOAPMessageImpl.(SOAPMessageImpl.java:67)
| at org.jboss.ws.core.soap.MessageFactoryImpl.createMessage(MessageFactoryImpl.java:161)
| at org.jboss.ws.core.jaxws.SOAPFaultHelperJAXWS.toSOAPMessage(SOAPFaultHelperJAXWS.java:232)
| at org.jboss.ws.core.jaxws.SOAPFaultHelperJAXWS.exceptionToFaultMessage(SOAPFaultHelperJAXWS.java:161)
| at org.jboss.ws.core.jaxws.binding.SOAP11BindingJAXWS.createFaultMessageFromException(SOAP11BindingJAXWS.java:104)
|
What exactly needs to be done to make JDK 1.6 work with Jbossws 2.0.1 ?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4078886#4078886
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4078886
17 years, 3 months
[JBossWS] - Re: Secure Webservice
by sgarelle
Hi,
I am facing exactly the same problem... So, what's the solution?
I am using JBoss_4_2_1_GA.
On client side, I also use the request context to set the user name and password:
| CmiEndPoint proxy = (CmiEndPoint) service.getPort(CmiEndPoint.class);
| BindingProvider bp = (BindingProvider) proxy;
| Map<String, Object> reqCtxt = bp.getRequestContext();
| reqCtxt.put(BindingProvider.USERNAME_PROPERTY, user);
| reqCtxt.put(BindingProvider.PASSWORD_PROPERTY, password);
| proxy.execCmd("Do this command");
|
On server side, the WebService is simply declared with the "@WebService" annotation. A security-domain is defined in jboss.xml. Users are defined.
The command failed because of an authentification failure:
javax.xml.ws.soap.SOAPFaultException: Authentication failure
The same user/password used for a RMI client calling directly the underlying stateless session bean works.
The same WS client with security disabled on server works.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4078883#4078883
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4078883
17 years, 3 months
[JBossWS] - context-root in jboss.xml
by gumnaam
Hi,
I have a following EAR setup.
myApp.ear
|
`META-INF/application.xml
|
`myWeb.war (ctx root set to /myWeb in application.xml of ear)
|
`myEjb.jar
|
`SLSB EJB3s (also exposed as WS).
META-INF
|
`jboss.xml
I want to override the default context root for my Web Services.
So in my jboss.xml for (myEjb.jar) I have
[QUOTE]
<context-root>/webservices</context-root>
[/QUOTE]
inside the jboss->webservices node.
But this doesn't seem to be working, the WSDLs are published at
http://host/myApp-myEjb/
I don't want to use the @WebContext, I would rather specify the context-root in jboss.xml , but it is not working.
Any clues ? Also can the context-root be any thing arbitrary , or does it need to have some connection, with the deployed web application's (in my case myWeb.war) context root ?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4078878#4078878
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4078878
17 years, 4 months