[JBossWS] - How do I determine which version of JBossWS is being used?
by nogamejoe
Hi,
I am reviewing JBoss Portal and JBossWS support. I currently installed JBossWS 3.05 into JBoss Portal 2.6.7 which is using JBoss AS 4.2.3. I am testing portlets. So far my portlet examples work. However they had also worked prior to installing JBossWS 3.0.5.
How do I find out what version of the WS Stack my JBoss Portal environment is executing with, upon startup. I checked the boot.log, and found no mention of JBossWS 3.0.5. I tried following the install instructions (JBossWS 3.0.5 native GA) which instructed that I navigate to http://localhost:8080/jbossws. The page is displayed, however, if I do the same within the old environment, the same page is displayed - without any version specification made regarding JBossWS.
So after all the above, the basic question at hand is:
How do I determine which specific version my JBoss Portal environment is executing with?
If you need any more information to help with this request, please let me know.
Thank you
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4201552#4201552
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4201552
16 years
[JBossWS] - XML signatures as WS payload?
by sstaible
Hi,
we've implemented a web service that receives a xml structure as input, signs it (with XML-D-Sig) and returns it to the client.
We found out however that during transport of the xml structure from the client to server (and also back), the whitespaces in the XML data partially stripped from the XML data. This of course makes the XML signature completely unusable.
To embed the unsigned and signed XML structures into the SOAP-request/response we use the XmlAnyElement annotation (auto-generated JAX-WS2.0 class from the WSDL). So the XML structures are embedded directly as a sub node into the SOAP structure.
We use JBoss 4.2.3.GA on the server and the respective JBoss client libraries on the client-side.
Is this behaviour of JBoss normal? I'm quite new to web services, JAXB, JAX-WS and the like but I would expect embedded xml to be transported unmodified over the SOAP channel.
Any help or explanation of this behaviour is highly appreciated.
Regards,
Sven
www.keyon.ch
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4201493#4201493
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4201493
16 years
[JBossWS] - JBoss 5.0.0.GA: WebCtxLoader - RuntimeException: mapped-name
by rijkr
I am using jboss-5.0.0.GA to deploy a web service. This service uses a WebService Context. In jboss-web.xml the following tags are present:
<resource-ref>
<res-ref-name>MyWebService/wsc</res-ref-name>
<res-type>javax.xml.ws.WebServiceContext</res-type>
<res-auth>Container</res-auth>
<res-sharing-scope>Shareable</res-sharing-scope>
<injection-target>
<injection-target-class>MyWebService</injection-target-class>
<injection-target-name>wsc</injection-target-name>
</injection-target>
</resource-ref>
When starting jboss (run.sh) MyWebService fails to start, due to this error (server.log):
2009-01-13 11:39:37,772 DEBUG [org.jboss.web.tomcat.service.WebCtxLoader] (main) injectionContainer enabled and processing beginning with JBoss WebCtxLoader
2009-01-13 11:39:37,857 ERROR [org.apache.catalina.core.StandardContext] (main) Context [/MyWebApplication] startup failed due to previous errors
java.lang.RuntimeException: mapped-name is required for MyWebService/wsc of deployment MyWebApplication.war
I saw some posts regarding this issue but am not sure if this is a known issue for the 5.0.0.GA release, or that there is a solution available?
Can anyone help me with a solution?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4201381#4201381
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4201381
16 years
Report
by Mail Administrator
The message was undeliverable due to the following reason(s):
Your message was not delivered because the destination computer was
not reachable within the allowed queue period. The amount of time
a message is queued before it is returned depends on local configura-
tion parameters.
Most likely there is a network problem that prevented delivery, but
it is also possible that the computer is turned off, or does not
have a mail system running right now.
Your message was not delivered within 7 days:
Host 218.14.49.184 is not responding.
The following recipients could not receive this message:
<jbossws-users(a)lists.jboss.org>
Please reply to postmaster(a)lists.jboss.org
if you feel this message to be in error.
16 years
[JBossWS] - SLSB exposed as WS security issue
by okiSM
I have SLSB exposed as WS. I tried to add security. WS is deployed as jar. I've placed jboss-wsse-server and keystore files into META-INF (together with persistence.xml).
<?xml version="1.0" encoding="UTF-8"?>
| <jboss-ws-security xmlns="http://www.jboss.com/ws-security/config"
| xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
| xsi:schemaLocation="http://www.jboss.com/ws-security/config http://www.jboss.com/ws-security/schema/jboss-ws-security_1_0.xsd">
| <key-store-file>META-INF/wsse.keystore</key-store-file>
| <key-store-password>jbossws</key-store-password>
| <trust-store-file>META-INF/wsse.truststore</trust-store-file>
| <trust-store-password>jbossws</trust-store-password>
| <config>
| <sign type="x509v3" alias="wsse"></sign>
| <encrypt type="x509v3" alias="wsse"></encrypt>
| <requires>
| <signature />
| <encryption />
| </requires>
| </config>
| </jboss-ws-security>
|
This configuration is read during deployment (if I put wrong locations of keystores, jar deployment breaks). However, when I try to access this WS with an unsecured client (generated using wsconsume) it responds normally (as if there is no security).
Endpoint interface:
import javax.ejb.Remote;
| import javax.jws.WebMethod;
| import javax.jws.WebService;
| import javax.jws.soap.SOAPBinding;
|
| @WebService(name = "CityFacadeProxy", targetNamespace="http://gint_scm_ws")
| @SOAPBinding(style=SOAPBinding.Style.DOCUMENT, use=SOAPBinding.Use.LITERAL, parameterStyle=SOAPBinding.ParameterStyle.WRAPPED)
| @Remote
| public interface CityFacadeSEI {
| @WebMethod
| public City createCity(String cityName) throws RemoteException;
| }
|
Implemetation bean:
import gint.scm.ws.entity.City;
|
| import javax.ejb.Remote;
| import javax.ejb.Stateless;
| import javax.jws.WebService;
| import javax.persistence.EntityManager;
| import javax.persistence.PersistenceContext;
| import javax.xml.ws.BindingType;
|
| import org.jboss.ws.annotation.EndpointConfig;
| import org.jboss.wsf.spi.annotation.WebContext;
|
| @Stateless
| @WebService(endpointInterface = "gint.scm.ws.session.CityFacadeSEI",
| serviceName = "CityFacadeServis", targetNamespace="http://gint_scm_ws")
| @WebContext(contextRoot="/SCM", urlPattern="/*")
| @BindingType(value = "http://schemas.xmlsoap.org/wsdl/soap/http?mtom=true")
| @EndpointConfig(configName = "Standard WSSecurity Endpoint")
| @Remote(CityFacadeSEI.class)
| public class CityFacadeBean implements CityFacadeSEI {
|
| @PersistenceContext(name = "scm")
| EntityManager em;
|
| public City createCity(String cityName) {
| em.persist(new City(cityName.hashCode(), cityName));
| return new City(cityName.hashCode(), cityName);
| }
|
| }
What's wrong here? There are no examples for security for SLSB WS (or I couldn't find them in last 4 weeks).
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4201217#4201217
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4201217
16 years