[JBoss Seam] - Re: Component Not getting Initialized by Seam
by petemuir
I think something is wrong with it, if it was being read it say that it's reading seam.properties:
09:28:59,415 INFO [TomcatDeployer] deploy, ctxPath=/seam-selectitems, warUrl=.../tmp/deploy/tmp43353jboss-seam-selectitems.ear-contents/jboss-seam-selectitems-exp.war/
| 09:28:59,521 INFO [ServletContextListener] Welcome to Seam 1.0.1.GA
| 09:28:59,521 INFO [Initialization] reading components.xml
| 09:28:59,545 INFO [Initialization] reading properties from: /seam.properties
| 09:28:59,545 INFO [Initialization] reading properties from: /jndi.properties
| 09:28:59,546 INFO [Initialization] initializing Seam
| ...
| 09:29:00,496 INFO [Scanner] scanning: /home/pmuir/jboss-4.0.4.GA/server/default/tmp/deploy/tmp43353jboss-seam-selectitems.ear-contents/jboss-seam-selectitems.jar
| 09:29:00,506 INFO [Component] Component: clientType, scope: CONVERSATION, type: ENTITY_BEAN, class: org.jboss.seam.example.selectitems.ClientType
| 09:29:00,507 INFO [Component] Component: branch, scope: CONVERSATION, type: ENTITY_BEAN, class: org.jboss.seam.example.selectitems.Branch
| 09:29:00,508 INFO [Component] Component: mailerExample, scope: EVENT, type: JAVA_BEAN, class: org.jboss.seam.example.mailer.MailerExample
| 09:29:00,518 INFO [Component] Component: client, scope: CONVERSATION, type: ENTITY_BEAN, class: org.jboss.seam.example.selectitems.Client
| 09:29:00,523 INFO [Component] Component: clientAction, scope: CONVERSATION, type: STATEFUL_SESSION_BEAN, class: org.jboss.seam.example.selectitems.ClientActionBean, JNDI: jboss-seam-selectitems/ClientActionBean/local
| 09:29:00,541 INFO [Initialization] done initializing Seam
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3963981#3963981
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3963981
19 years, 9 months
[Security & JAAS/JBoss] - Re: DatabaseServerLoginModule configuration problem
by basy
Hi all,
When I try to use ClientLoginModule (new LoginContext("client-login", handler); ):
public static void main(String[] args) {
| AppCallbackHandler handler = new AppCallbackHandler("username","password".toCharArray());
| System.setProperty("java.security.auth.login.config", PATH+"/auth.conf");
| LoginContext lc;
|
| try {
|
| lc = new LoginContext("client-login", handler);
|
| lc.login();
| Properties jndiProperties = new Properties();
| jndiProperties.setProperty(Context.INITIAL_CONTEXT_FACTORY, "org.jnp.interfaces.NamingContextFactory");
| jndiProperties.setProperty(Context.URL_PKG_PREFIXES, "org.jboss.naming:org.jnp.interface");
| jndiProperties.setProperty(Context.PROVIDER_URL, "jnp://localhost:1099");
|
| Context context = new InitialContext(jndiProperties);
| MyEJBHome home = (MyEJBHome)context.lookup(MyEJBHome.JNDI_NAME);
| home.create();
| ...
I recive exception:
java.rmi.AccessException: SecurityException; nested exception is:
| java.lang.SecurityException: Insufficient method permissions, principal=username, ejbName=MyEJB, method=create, interface=HOME, requiredRoles=[], principalRoles=null
| at org.jboss.ejb.plugins.LogInterceptor.handleException(LogInterceptor.java:370)
| at org.jboss.ejb.plugins.LogInterceptor.invokeHome(LogInterceptor.java:125)
| at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invokeHome(ProxyFactoryFinderInterceptor.java:93)
| at org.jboss.ejb.SessionContainer.internalInvokeHome(SessionContainer.java:613)
| at org.jboss.ejb.Container.invoke(Container.java:894)
|
DatabaseServerLoginModule don't assign principalRoles to principal=username. The user has principalRoles=null.
Can anybody help me pls.
Thanks.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3963979#3963979
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3963979
19 years, 9 months