I must be doing something *really* dumb but I can't see it.

I can load property files OK whether they're in a package or not but not classes.
Weird.  All I'm trying to do is to load the base class.  Before, when I was trying,
I was getting the MissingResourceException but now... The error produced is this
(!):

{ (Running servlet) java.lang.NoClassDefFoundError:
com/instinet/ed/resources/LanguageResources (wrong name: LanguageResources)
 at java.lang.ClassLoader.defineClass0(Native Method)
 at java.lang.ClassLoader.defineClass(Compiled Code)
 at java.security.SecureClassLoader.defineClass(Compiled Code)
 at java.net.URLClassLoader.defineClass(Compiled Code)
 at java.net.URLClassLoader.access$1(Compiled Code)
 at java.net.URLClassLoader$1.run(Compiled Code)
 at java.security.AccessController.doPrivileged(Native Method)
 at java.net.URLClassLoader.findClass(Compiled Code)
 at java.lang.ClassLoader.loadClass(Compiled Code)
 at sun.misc.Launcher$AppClassLoader.loadClass(Compiled Code)
 at java.lang.ClassLoader.loadClass(Compiled Code)
 at java.util.ResourceBundle.findBundle(Compiled Code)
 at java.util.ResourceBundle.getBundle(Compiled Code)
 at java.util.ResourceBundle.getBundle(ResourceBundle.java:348)
 at com.instinet.ed.model.BundleManager.getBundle(BundleManager.java:48)
 at com.instinet.ed.model.BundleManager.getMessage(BundleManager.java:34)
 at jsp.Applications.ed._top._jspService(_top.java:50)
 at com.livesoftware.jsp.HttpJSPServlet.service(HttpJSPServlet.java:31)
 at com.livesoftware.jsp.JSPServlet.service(JSPServlet.java:108)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:840)
 at com.livesoftware.jrun.JRun.runServlet(Compiled Code)
 at com.livesoftware.jrun.JRunServletContext$JRunRequestDispatcher.include(Compiled
Code)
 at com.livesoftware.jsp.JRunPageContext.include(JRunPageContext.java:273)
 at jsp.Applications.ed.Ed._jspService(Compiled Code)
 at com.livesoftware.jsp.HttpJSPServlet.service(HttpJSPServlet.java:31)
 at com.livesoftware.jsp.JSPServlet.service(JSPServlet.java:108)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:840)
 at com.livesoftware.jrun.JRun.runServlet(Compiled Code)
 at
com.livesoftware.jrun.JRunServletContext$JRunRequestDispatcher.forward(JRunServletContext.java)

 at com.instinet.ed.controller.Search.handleRequest(Compiled Code)
 at com.instinet.ed.controller.EdMainServlet.doGet(EdMainServlet.java:158)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:715)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:840)
 at com.livesoftware.jrun.JRun.runServlet(Compiled Code)
 at com.livesoftware.jrun.JRunGeneric.handleConnection(JRunGeneric.java)
 at com.livesoftware.jrun.JRunGeneric.handleProxyConnection(JRunGeneric.java)
 at
com.livesoftware.jrun.service.proxy.JRunProxyServiceHandler.handleRequest(JRunProxyServiceHandler.java)

 at com.livesoftware.jrun.service.ThreadConfigHandler.run(Compiled Code)
 }

I'm completely puzzled by the 'wrong name:' message in parenthesis.  Any help is
greatly appreciated.

See below for more stuff.

dave.


"Craig R. McClanahan" wrote:

> David Mossakowski wrote:
>
>  >
> > Also I have additional questions:
> >
> > 1.  How to represent special characters?  Is it enough to
> > just put \u0105 instead of the character needed?  Is
> > anything else needed in order for the browser to decode
> > this?  Charset values?  It seems so because just saying
> > "Ksi\u0105z\u0307ka" does not work. It produces "Ksi??ka".
> >
> > 2.  Does the servlet engine have to do any charset
> > manipulation?  Does it have to be aware of what charset is
> > being used?
> >
>
> If you are using a non-default character set, it does.  For example, you can
> add a "; charset=xxxx" modifier to the content type when you call
> response.setContentType(), and the PrintWriter you utilize will be configured
> for this character set.
>

Does this mean that the servlet engine must do something in order for the browser
to display correctly?  Why this works: � and this does not: \u015b?  Right now I
only get '?' where special character should be even if I put different encoding in
content type (I'm using JRun).  Is there a required reading on character encodings?

>
> >
> > 2.  I'm assuming the the LocaleElements are used just like
> > any bundle and have to be explicitly loaded.  If there's
> > more to it please let me know.
> >
>
> LocaleElement?  I don't recognize the term.
>

I meant java.text.resources.LocaleElements

>

--
David Mossakowski              [EMAIL PROTECTED]
Programmer                           212.310.7275
Instinet Corporation

"I don't sit idly by, I'm planning a big surprise"

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to