[Security & JAAS/JBoss] - Re: Jboss SSO Web Application
by nipunbatra
Hi Sohil
So finally I have some good news and bad news.
I developed 2 application A and B and I am now using JbossWS policy whcih is a standard JAAS Login module used in Jboss. Both the applictions are running on same server.
Now in application A I login and after sucessfull login I even see a cookie, domain cookie whose name is token and value is some thing like <response:xmlns
On application A, on the web page I print request.getUserPrincipal() and I get proper value i.e. Roles and Principal.
Now from same browser when I go to application B whcih is on same server (and application B is almost the replica of Application A (only contxt.xml is different) ). ,when I do request.getuserPrincipal() I get null value.
I think I shd get the same pricipal in application B also
Thanks
Nick
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3982810#3982810
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3982810
19Â years, 6Â months
[JNDI/Naming/Network] - invoking remote session bean NotContextException
by srki
Hi,
I am having trouble when looking up for a remote session bean from my ejb application. I am running jboss 4.0.4 with ejb3.0. I am trying to access a remote computer running jboss 4.0.4 but with 2.1 option. Instead of deploying remotely on a different machine I tried deploying the third party application in my instance of jboss and everything works fine.
| Properties props = new Properties(); props.setProperty(Context.INITIAL_CONTEXT_FACTORY,"org.jboss.security.jndi.JndiLoginInitialContextFactory");
| props.setProperty(Context.SECURITY_PRINCIPAL, "admin");
| props.setProperty(Context.SECURITY_CREDENTIALS, "admin");
| props.setProperty(Context.PROVIDER_URL, "jnp://192.168.10.130:1099/");
|
| Context ctx = new InitialContext(props);
| Object object = ctx.lookup( "ejb/com/blah/Manager/remote" );
| ManagerRemoteHome home = (ManagerRemoteHome)PortableRemoteObject.narrow ( object, ManagerRemoteHome.class);
|
| ManagerRemote manager = home.create();
|
| I get an exception when executing this line
| ManagerRemoteHome home = (ManagerRemoteHome)PortableRemoteObject.narrow ( object, ManagerRemoteHome.class);
|
| 2006-11-02 15:02:49,194 ERROR [STDERR] javax.naming.NotContextException
| 2006-11-02 15:02:49,194 ERROR [STDERR] at org.jnp.server.NamingServer.lookup(NamingServer.java:285)
| 2006-11-02 15:02:49,194 ERROR [STDERR] at org.jnp.server.NamingServer.lookup(NamingServer.java:270)
| 2006-11-02 15:02:49,194 ERROR [STDERR] at org.jnp.server.NamingServer.lookup(NamingServer.java:270)
| 2006-11-02 15:02:49,194 ERROR [STDERR] at org.jnp.server.NamingServer.lookup(NamingServer.java:270)
| 2006-11-02 15:02:49,194 ERROR [STDERR] at org.jnp.server.NamingServer.lookup(NamingServer.java:270)
| 2006-11-02 15:02:49,194 ERROR [STDERR] at org.jnp.server.NamingServer.lookup(NamingServer.java:270)
| 2006-11-02 15:02:49,194 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
|
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3982805#3982805
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3982805
19Â years, 6Â months
[EJB/JBoss] - EJB packaging question
by kentlam
I am trying to find out what the best practices of packaging ejbs for a J2EE application. Basically I am trying to group different components into related projects, I am using Maven as my build tool by the way. Each project would consists of a ejb3 component for domain model and a web component(.war). My question is should I create a .ear file and package the ejb.jar and .war file in it and deploy to JBoss or should I deploy the ejb.jar and .war separately in JBoss? Keep in mind that the ejb.jar can be a dependency for other projects, so Project B can be depended on Project A's ejb.jar. So if such dependency exists, is it better to not package them in .ear files because then I would need to package Project A's ejb.jar in Project B's ear file also.
Any help would be appreciated, thank you.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3982802#3982802
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3982802
19Â years, 6Â months