No it doesn't work. :(

1 - Can you put an example that works?

2 - Should i start a service before doing findUserByUserName?


  | UserModule mod = new UserModuleImpl();      
  | User user = mod.findUserByUserName(username);
  | 

I'm asking this question because this snippet gives me the following error:


  | java.lang.NullPointerException
  |     at 
org.jboss.portal.core.impl.user.UserModuleImpl.getCurrentSession(UserModuleImpl.java:372)
  |     at 
org.jboss.portal.core.impl.user.UserModuleImpl.findUserByUserName(UserModuleImpl.java:116)
  |     at 
com.link.portal.dao.PortalDAOBean.getUserByUserName(PortalDAOBean.java:220)
  |     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  |     at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  |     at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  |     at java.lang.reflect.Method.invoke(Method.java:585)
  |     at org.jboss.invocation.Invocation.performCall(Invocation.java:345)
  |     at 
org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invoke(StatelessSessionContainer.java:214)
  |     at 
org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(StatelessSessionInstanceInterceptor.java:154)
  |     at 
org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:106)
  | 

And i saw that UserImpl as a protected method startservice.

The mssql-ds.xml are well configurated.

Thanks,
Pedro



View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3938673#3938673

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3938673


-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to