[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
18Â years, 8Â months
[JBoss Seam] - s:decorate with s:message not displaying
by pietermartin
Hi,
I am trying to display validation messages as per the documentation and the booking example.
The ajax\hibernate validation works fine but when I check for duplicate manufacturer name on a form submit and add an error message to the injected facesMessages nothing gets displayed.
if I add a <h:messages /> tag the message does however get displayed.
I think that for some reason the <s:message /> tag in edit.html is not outing the message.
Code follows...
The session bean is a conversation scoped bean. The form submits calls the persist method.
Any pointers as to what may be wrong?
BTW it works fine in the booking example on the same instance of jboss.
Thanks
Pieter
| <navigation from-action="#{manufacturerManager.persist}">
| <rule if="#{manufacturerManager.manufacturerValid}">
| <end-conversation/>
| <redirect view-id="/chemical/manufacturers.xhtml" />
| </rule>
| </navigation>
|
| <s:decorate id="manufacturerNameDecorate" template="../layout/edit.xhtml">
| <ui:define name="label">Name:</ui:define>
| <h:inputText id="manufacturerNameId" value="#{editManufacturer.name}" required="true">
| <a:support event="onblur" reRender="manufacturerNameDecorate"/>
| </h:inputText>
| </s:decorate>
|
| // @End in pages with rule
| public void persist() {
| List<Manufacturer> existing = em
| .createQuery(
| "select m.name from Manufacturer m where m.name=#{editManufacturer.name}")
| .getResultList();
| if (existing.size() == 0) {
| em.persist(editManufacturer);
| manufacturerNameSearchString = editManufacturer.getName();
| events.raiseTransactionSuccessEvent("persistManufacturerSuccess");
| manufacturerValid = true;
| } else {
| facesMessages.addToControl("manufacturerNameId",
| "Manufacturer #{editManufacturer.name} already exists");
| manufacturerValid = false;
| }
| }
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4078885#4078885
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4078885
18Â years, 8Â 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
18Â years, 8Â 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
18Â years, 8Â months