2 Replies Latest reply on Nov 15, 2002 9:20 PM by Elias Ross

    Resource Bundle and EJB

    Ganesh Babu Monda Newbie

      Has anybody successfully tried to load a resource bundle in EJB? If so please help. I always get MissingResourceException even though I have the appropriate properties file. The properties file and the bean have the same pkg name.
      Thanks
      Ganesh

      Here is the exception I get,
      java.rmi.ServerException: Can't find bundle for base name net.infosim.stablenet.svc.impl.core.key.Bundle, locale en_US; nested exception is:
      java.util.MissingResourceException: Can't find bundle for base name net.infosim.stablenet.svc.impl.core.key.Bundle, locale en_US
      java.util.MissingResourceException: Can't find bundle for base name net.infosim.stablenet.svc.impl.core.key.Bundle, locale en_US
      at java.util.ResourceBundle.throwMissingResourceException(ResourceBundle.java:712)
      at java.util.ResourceBundle.getBundleImpl(ResourceBundle.java:683)
      at java.util.ResourceBundle.getBundle(ResourceBundle.java:559)
      at net.infosim.stablenet.svc.impl.core.key.TestBean.setSessionContext(Unknown Source)
      at org.jboss.ejb.StatelessSessionEnterpriseContext.(StatelessSessionEnterpriseContext.java:48)
      at org.jboss.ejb.plugins.StatelessSessionInstancePool.create(StatelessSessionInstancePool.java:63)
      at org.jboss.ejb.plugins.AbstractInstancePool.get(AbstractInstancePool.java:153)
      at org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(StatelessSessionInstanceInterceptor.java:59)
      at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:98)
      at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:156)
      at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:65)
      at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:131)
      at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:166)
      at org.jboss.ejb.StatelessSessionContainer.invoke(StatelessSessionContainer.java:280)
      at org.jboss.ejb.Container.invoke(Container.java:528)
      at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1555)
      at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
      at org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoker.invoke(JRMPContainerInvoker.java:411)
      at java.lang.reflect.Method.invoke(Native Method)
      at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:241)
      at sun.rmi.transport.Transport$1.run(Transport.java:152)
      at java.security.AccessController.doPrivileged(Native Method)
      at sun.rmi.transport.Transport.serviceCall(Transport.java:148)
      at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:465)
      at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:706)
      at java.lang.Thread.run(Thread.java:484)
      [2002-03-14 13:09:43,973,EnterpriseContextCachePolicy,DEBUG] Resized cache for bean KeyEntityBean: old capacity = 1000, new capacity = 50