[Security & JAAS/JBoss] - Re: ExtendedManagedObjectAdvisor returns null getMethodInfo
by ugge
login-config.xml
<application-policy name="Domain">
<login-module code="org.jboss.security.auth.spi.LdapExtLoginModule" flag="required">
<module-option name="java.naming.factory.initial">com.sun.jndi.ldap.LdapCtxFactory</module-option>
<module-option name="java.naming.provider.url">ldap://host:389/</module-option>
<module-option name="java.naming.security.authentication">simple</module-option>
<module-option name="principalDNPrefix">cn=</module-option>
<module-option name="principalDNSuffix">...</module-option>
<module-option name="uidAttributeID">roleOccupant</module-option>
<module-option name="matchOnUserDN">true</module-option>
<module-option name="rolesCtxDN">...</module-option>
<module-option name="roleAttributeID">cn</module-option>
</login-module>
</application-policy>
@Stateless
@SecurityDomain(value="Domain")
@RolesAllowed(value={"Role1", "Role2"})
@DeclareRoles(value={"Role1", "Role2"})
@PermitAll
public class MyEJB .... {
}
Subject.doAs(mySubject, new PrivilegedAction() {
@Override
public Object run() {
//do some calls to the MyEJB
}
});
java.lang.NullPointerException
at org.jboss.ejb3.stateless.StatelessContainer.dynamicInvoke(StatelessContainer.java:444)
at org.jboss.ejb3.session.InvokableContextClassProxyHack._dynamicInvoke(InvokableContextClassProxyHack.java:56)
at org.jboss.aop.Dispatcher.invoke(Dispatcher.java:91)
at org.jboss.aspects.remoting.AOPRemotingInvocationHandler.invoke(AOPRemotingInvocationHandler.java:82)
at org.jboss.remoting.ServerInvoker.invoke(ServerInvoker.java:908)
at org.jboss.remoting.transport.socket.ServerThread.completeInvocation(ServerThread.java:742)
at org.jboss.remoting.transport.socket.ServerThread.processInvocation(ServerThread.java:695)
at org.jboss.remoting.transport.socket.ServerThread.dorun(ServerThread.java:522)
at org.jboss.remoting.transport.socket.ServerThread.run(ServerThread.java:230)
at org.jboss.remoting.MicroRemoteClientInvoker.invoke(MicroRemoteClientInvoker.java:163)
at org.jboss.remoting.Client.invoke(Client.java:1634)
at org.jboss.remoting.Client.invoke(Client.java:548)
at org.jboss.aspects.remoting.InvokeRemoteInterceptor.invoke(InvokeRemoteInterceptor.java:62)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
at org.jboss.aspects.tx.ClientTxPropagationInterceptor.invoke(ClientTxPropagationInterceptor.java:67)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
at org.jboss.ejb3.security.client.SecurityClientInterceptor.invoke(SecurityClientInterceptor.java:65)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
at org.jboss.ejb3.remoting.IsLocalInterceptor.invoke(IsLocalInterceptor.java:74)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
at org.jboss.aspects.remoting.PojiProxy.invoke(PojiProxy.java:61)
...
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.Subject.doAs(Subject.java:337)
.....
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4207056#4207056
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4207056
17 years, 2 months
[JBossWS] - Propagate an attachment when using JBossWS as service proxy
by jorgemoralespou_2
Hi,
I know that probably the name of the topic is misleading, but my english is not as good as I would like.
I'm using JBossWS native 3.0.4 to make a service that acts as a proxy to access the same service in another server, but performing some policies.
I want to proxy a service that supports attachments, and I have made an northbound handler to get the attachment, and then setting the attachment in a southbound handler. The problem is how can I propagate this attachment from the northbound hadler to the southbound handler. I know probably this has nothing to do with JBossWS, but probably you people using JBossWS has had this same issue before.
I'm thinking of something like a Context that can be attached in the northbound, with the attachment, and freeing it in the southbound handler if message is propagated, or in the northbound handler if an error has ocurred before getting to this handler.
Thanks
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4207055#4207055
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4207055
17 years, 2 months
[JBoss Tools (users)] - Re: persistence.xml not deployed to ejb's META-INF directory
by elenctic87
Snjeza, thanks so much! I had indeed installed TPTP 4.5.1, so the Filtered Resources was the problem. It contained: *.launch,*.testsuite,*.deploy,*.location,*.execution,*.datapool,*.artifact,*.testlog,*.xml,*.html,*.svg
I changed it to only *.launch and it worked as before.
Max, I found no errors or messages in the Server or Error logs. TPTP is the problem. Should JBoss Tools emit a warning if it realizes that certain important files are not deployed? That makes sense to me, but I don't know where you draw the line between A) non-standard (but desired) settings and B) incorrect settings.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4207052#4207052
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4207052
17 years, 2 months