[jboss-jira] [JBoss JIRA] Assigned: (JBAS-4644) fix org.jboss.test.webservice.jbws309.JBWS309TestCase(JACC)

Anil Saldhana (JIRA) jira-events at lists.jboss.org
Thu Sep 4 13:55:38 EDT 2008


     [ https://jira.jboss.org/jira/browse/JBAS-4644?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Anil Saldhana reassigned JBAS-4644:
-----------------------------------

    Assignee: Stefan Guilhen  (was: Anil Saldhana)


Stefan,  I am wondering if you can do the following.

1) Create a jacc instance by running the "ant tests-jacc-security" target once.
2) Then start the jacc instance.
3) Now try running this JBWS test  as"  ant -Dtest=org.jboss.test...            one-test"
4) Place break points in the AbstractSecurityDeployer (and sub security deployers), tomcat deployer etc.  What I want to know is when does the WS layer attach the web metadata as an attachment into the deployment unit (so you may have to trace log the mc layer etc).


The way to fix this is that after the ws layer creates a JBossWebMetaData and attaches it to the deployment unit, we need to send the meta data via the security deployers such that the jacc permissions can be created.

> fix org.jboss.test.webservice.jbws309.JBWS309TestCase(JACC)
> -----------------------------------------------------------
>
>                 Key: JBAS-4644
>                 URL: https://jira.jboss.org/jira/browse/JBAS-4644
>             Project: JBoss Application Server
>          Issue Type: Sub-task
>      Security Level: Public(Everyone can see) 
>          Components: Test Suite
>            Reporter: Dimitris Andreadis
>            Assignee: Stefan Guilhen
>            Priority: Critical
>             Fix For: JBossAS-5.0.0.CR2
>
>
> Problem appears either as:
> testRoleSecuredServiceAccess Error Call invocation failed; nested exception is: java.io.IOException: Could not transmit message
> java.rmi.RemoteException: Call invocation failed; nested exception is: 
> 	java.io.IOException: Could not transmit message
> 	at org.jboss.ws.core.jaxrpc.client.CallImpl.invokeInternal(CallImpl.java:536)
> 	at org.jboss.ws.core.jaxrpc.client.CallImpl.invoke(CallImpl.java:277)
> 	at org.jboss.ws.core.jaxrpc.client.PortProxy.invoke(PortProxy.java:151)
> 	at $Proxy4.getContactInfo(Unknown Source)
> 	at org.jboss.test.webservice.jbws309.JBWS309TestCase.testRoleSecuredServiceAccess(JBWS309TestCase.java:190)
> 	at junit.extensions.TestDecorator.basicRun(TestDecorator.java:24)
> 	at junit.extensions.TestSetup$1.protect(TestSetup.java:21)
> 	at junit.extensions.TestSetup.run(TestSetup.java:25)
> Caused by: java.io.IOException: Could not transmit message
> 	at org.jboss.ws.core.client.RemotingConnectionImpl.invoke(RemotingConnectionImpl.java:204)
> 	at org.jboss.ws.core.client.SOAPRemotingConnection.invoke(SOAPRemotingConnection.java:77)
> 	at org.jboss.ws.core.CommonClient.invoke(CommonClient.java:337)
> 	at org.jboss.ws.core.jaxrpc.client.CallImpl.invokeInternal(CallImpl.java:517)
> 	... 25 more
> Caused by: org.jboss.remoting.CannotConnectException: Can not connect http client invoker.
> 	at org.jboss.remoting.transport.http.HTTPClientInvoker.useHttpURLConnection(HTTPClientInvoker.java:332)
> 	at org.jboss.remoting.transport.http.HTTPClientInvoker.transport(HTTPClientInvoker.java:135)
> 	at org.jboss.remoting.MicroRemoteClientInvoker.invoke(MicroRemoteClientInvoker.java:122)
> 	at org.jboss.remoting.Client.invoke(Client.java:1550)
> 	at org.jboss.remoting.Client.invoke(Client.java:530)
> 	at org.jboss.ws.core.client.RemotingConnectionImpl.invoke(RemotingConnectionImpl.java:183)
> 	... 28 more
> Caused by: org.jboss.ws.WSException: Invalid HTTP server response [401] - Unauthorized
> 	at org.jboss.ws.core.soap.SOAPMessageUnMarshaller.read(SOAPMessageUnMarshaller.java:77)
> 	at org.jboss.remoting.transport.http.HTTPClientInvoker.readResponse(HTTPClientInvoker.java:472)
> 	at org.jboss.remoting.transport.http.HTTPClientInvoker.useHttpURLConnection(HTTPClientInvoker.java:304)
> 	... 33 more
> Or
> testRoleSecuredSLSB Error SecurityException; nested exception is: javax.security.auth.login.FailedLoginException: Password Incorrect/Password Required
> java.rmi.AccessException: SecurityException; nested exception is: 
> 	javax.security.auth.login.FailedLoginException: Password Incorrect/Password Required
> 	at org.jboss.ejb.plugins.LogInterceptor.handleException(LogInterceptor.java:388)
> 	at org.jboss.ejb.plugins.LogInterceptor.invokeHome(LogInterceptor.java:136)
> 	at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invokeHome(ProxyFactoryFinderInterceptor.java:107)
> 	at org.jboss.ejb.SessionContainer.internalInvokeHome(SessionContainer.java:640)
> 	at org.jboss.ejb.Container.invoke(Container.java:1006)
> 	at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:157)
> 	at org.jboss.mx.server.Invocation.dispatch(Invocation.java:96)
> 	at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
> 	at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
> 	at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:668)
> 	at org.jboss.invocation.unified.server.UnifiedInvoker.invoke(UnifiedInvoker.java:230)
> 	at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:157)
> 	at org.jboss.mx.server.Invocation.dispatch(Invocation.java:96)
> 	at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
> 	at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
> 	at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:668)
> 	at javax.management.MBeanServerInvocationHandler.invoke(MBeanServerInvocationHandler.java:201)
> 	at $Proxy14.invoke(Unknown Source)
> 	at org.jboss.remoting.ServerInvoker.invoke(ServerInvoker.java:734)
> 	at org.jboss.remoting.transport.socket.ServerThread.processInvocation(ServerThread.java:560)
> 	at org.jboss.remoting.transport.socket.ServerThread.dorun(ServerThread.java:383)
> 	at org.jboss.remoting.transport.socket.ServerThread.run(ServerThread.java:165)
> Caused by: javax.security.auth.login.FailedLoginException: Password Incorrect/Password Required
> 	at org.jboss.security.auth.spi.UsernamePasswordLoginModule.login(UsernamePasswordLoginModule.java:212)
> 	at org.jboss.security.auth.spi.UsersRolesLoginModule.login(UsersRolesLoginModule.java:152)
> 	at javax.security.auth.login.LoginContext.invoke(LoginContext.java:769)
> 	at javax.security.auth.login.LoginContext.access$000(LoginContext.java:186)
> 	at javax.security.auth.login.LoginContext$4.run(LoginContext.java:683)
> 	at java.security.AccessController.doPrivileged(Native Method)
> 	at javax.security.auth.login.LoginContext.invokePriv(LoginContext.java:680)
> 	at javax.security.auth.login.LoginContext.login(LoginContext.java:579)
> 	at org.jboss.security.plugins.JaasSecurityManager.defaultLogin(JaasSecurityManager.java:524)
> 	at org.jboss.security.plugins.JaasSecurityManager.authenticate(JaasSecurityManager.java:458)
> 	at org.jboss.security.plugins.JaasSecurityManager.isValid(JaasSecurityManager.java:353)
> 	at org.jboss.ejb.plugins.SecurityInterceptor.checkSecurityAssociation(SecurityInterceptor.java:317)
> 	at org.jboss.ejb.plugins.SecurityInterceptor.invokeHome(SecurityInterceptor.java:185)
> 	at org.jboss.ejb.plugins.security.PreSecurityInterceptor.invokeHome(PreSecurityInterceptor.java:140)
> 	at org.jboss.ejb.plugins.LogInterceptor.invokeHome(LogInterceptor.java:132)
> 	at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invokeHome(ProxyFactoryFinderInterceptor.java:107)
> 	at org.jboss.ejb.SessionContainer.internalInvokeHome(SessionContainer.java:640)
> 	at org.jboss.ejb.Container.invoke(Container.java:1006)
> 	at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:157)
> 	at org.jboss.mx.server.Invocation.dispatch(Invocation.java:96)
> 	at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
> 	at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
> 	at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:668)
> 	at org.jboss.invocation.unified.server.UnifiedInvoker.invoke(UnifiedInvoker.java:230)
> 	at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:157)
> 	at org.jboss.mx.server.Invocation.dispatch(Invocation.java:96)
> 	at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
> 	at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
> 	at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:668)
> 	at javax.management.MBeanServerInvocationHandler.invoke(MBeanServerInvocationHandler.java:201)
> 	at $Proxy14.invoke(Unknown Source)
> 	at org.jboss.remoting.ServerInvoker.invoke(ServerInvoker.java:734)
> 	at org.jboss.remoting.transport.socket.ServerThread.processInvocation(ServerThread.java:560)
> 	at org.jboss.remoting.transport.socket.ServerThread.dorun(ServerThread.java:383)
> 	at org.jboss.remoting.transport.socket.ServerThread.run(ServerThread.java:165)
> 	at org.jboss.remoting.MicroRemoteClientInvoker.invoke(MicroRemoteClientInvoker.java:163)
> 	at org.jboss.remoting.Client.invoke(Client.java:1550)
> 	at org.jboss.remoting.Client.invoke(Client.java:530)
> 	at org.jboss.invocation.unified.interfaces.UnifiedInvokerProxy.invoke(UnifiedInvokerProxy.java:161)
> 	at org.jboss.invocation.InvokerInterceptor.invokeInvoker(InvokerInterceptor.java:244)
> 	at org.jboss.invocation.InvokerInterceptor.invoke(InvokerInterceptor.java:181)
> 	at org.jboss.proxy.TransactionInterceptor.invoke(TransactionInterceptor.java:61)
> 	at org.jboss.proxy.SecurityInterceptor.invoke(SecurityInterceptor.java:86)
> 	at org.jboss.proxy.ejb.HomeInterceptor.invoke(HomeInterceptor.java:184)
> 	at org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:101)
> 	at $Proxy1.create(Unknown Source)
> 	at org.jboss.test.webservice.jbws309.JBWS309TestCase.testRoleSecuredSLSB(JBWS309TestCase.java:93)
> 	at junit.extensions.TestDecorator.basicRun(TestDecorator.java:24)
> 	at junit.extensions.TestSetup$1.protect(TestSetup.java:21)
> 	at junit.extensions.TestSetup.run(TestSetup.java:25)
>  

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the jboss-jira mailing list