[Installation, Configuration & DEPLOYMENT] - Re: Deploying Hudson on JBoss5 beta4
by gt4431b
"jaikiran" wrote : I tried the hudson build on my local 5.0 Beta4 setup on Windows. I see the same exceptions. A similar sample war file of my own (irrespective of whether its deployed as a archive or exploded folder works fine). I wasnt able to spend too much time on this today. I just used JBoss-4.2.2 (the latest stable JBoss version) and deployed the hudson build there. It got deployed successfully. Any specific reason, why you are trying this on the Beta version of the server?
This isn't a professional deployment -- yet -- so my one and only machine for these purposes right now is a slightly underpowered laptop. I don't want to have multiple jboss versions running in parallel; it will slow down the rest of the machine, which I am using for various other things.
On the other hand, I also need JB5 for a number of different things, for a couple of different business ideas as well as just for gratuitous, let's-learn-something-new-and-useful edutainment.
Sure, since it's me myself and I, I could do builds without an integration server. But this was an opportunity to do a test deployment of a random warfile that I did not create, so it was a good check to see if I had understood everything and configured it correctly.
I'm glad to see that you got these errors too. It means I'm not going crazy, and that my configuration is not definitely broken.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4138627#4138627
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4138627
18 years, 1 month
[JBossWS] - WS-Security and Handlers
by pramod_bs
I have a simple web service which I have implemented username token authentication. Also I have my own Policy handler which I have configured using @handlerChain. I would like to invoke this handler between the JBossWS authenticates the usernametoken and actual execution of the method.
package test;
import javax.ejb.Stateless;
import javax.jws.HandlerChain;
import javax.jws.WebService;
import javax.jws.WebMethod;
import javax.jws.soap.SOAPBinding;
import org.jboss.annotation.security.SecurityDomain;
import org.jboss.ws.annotation.EndpointConfig;
import com.sun.xacml.Indenter;
import com.sun.xacml.ctx.ResponseCtx;
@Stateless
@WebService
(name="TestWSEJB",
targetNamespace = "http://test",
serviceName = "TestWSEJBService")
@SOAPBinding(style = SOAPBinding.Style.DOCUMENT)
@EndpointConfig(configName = "Standard WSSecurity Endpoint")
@SecurityDomain("JBossWS")
@HandlerChain(file = "jaxws-handlers-server.xml")
public class TestWSEJB {
@WebMethod
public String ping (String name) throws Exception
{
return "Hello : " + name;
}
}
<?xml version="1.0" encoding="UTF-8"?>
<handler-chains xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee javaee_web_services_1_2.xsd">
<handler-chain>
<protocol-bindings>##SOAP11_HTTP</protocol-bindings>
<handler-name> PolicyHandler </handler-name>
<handler-class> test.WSXACMLPolicyHandler </handler-class>
<soap-role>SecurityProvider</soap-role>
</handler-chain>
</handler-chains>
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4138622#4138622
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4138622
18 years, 1 month