KickJava   Java API By Example, From Geeks To Geeks.

Java > Java SE, EE, ME > java > util > MissingResourceException

java.util
Class MissingResourceException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by java.util.MissingResourceException
All Implemented Interfaces:
Serializable
See Also:
Top Examples, Source Code, ResourceBundle

public String getClassName()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public String getKey()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public MissingResourceException(String s,
                                String className,
                                String key)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


[1441]Problem with using ResourceBundle in JBoss4
By boseonline_now { at } yahoo { dot } co { dot } in on 2005/05/22 07:31:48  Rate
i was created the MessageBundle.properties file and saved in WEB-INF/classes/res and i have used ResourceBundle.getBundle ( String,Locale )  method for getting the values in properties file. 
   But it is giving an MissingResourceException in jboss4.0 
 and it is successfully working in Tomcat4.1 what is the problem 
  
  
 the following is the code 
  < %@ page import="java.util.*" % >  
  < % 
 String language=request.getParameter ( "language" ) ; 
 String country=request.getParameter ( "count" ) ; 
     Locale currentLocale; 
     ResourceBundle messages; 
     currentLocale=new Locale ( language,country ) ; 
     messages=ResourceBundle.getBundle ( "MessagesBundle",currentLocale ) ; 
     out.println ( messages.getString ( "1" )  ) ; 
 % > 

Popular Tags