users@glassfish.java.net

Re: Glassfish throws a Faces exception: java.lang.ClassNotFoundException: [Ljava.lang.String;

From: Jan Luehe <Jan.Luehe_at_Sun.COM>
Date: Wed, 21 Feb 2007 09:19:47 -0800

Todd Patrick wrote On 02/20/07 10:17 PM,:

> [Set-up]
>
> Mac OS X 10.4.8
>
> java version "1.6.0-dp"
> Java(TM) SE Runtime Environment (build 1.6.0-dp-b88-34)
> Java HotSpot(TM) Client VM (build 1.6.0-b88-17-release, mixed mode,
> sharing)
>
> JavaServer Faces implementation (1.2-b20-FCS)
>
> Sun Java System Application Server Platform Edition 9.0 (build b48)
>
>
> [Issue]
>
> This is just incredibly painful. I am getting the exception:
>
> javax.faces.FacesException: java.lang.ClassNotFoundException:
> [Ljava.lang.String;
>

Hmm, I had run into a similar issue (independently of JSF) on JDK 1.6,
and submitted this bug (along with a very simple test case) against the
platform:

  http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6434149
  ("ClassLoader.loadClass() throws java.lang.ClassNotFoundException:
[Ljava.lang.String; in JDK 6.0")

The issue is currently being worked on.

Judging from your exception message, and since you are running on JDK 1.6,
you may have hit the same issue. (JDK 1.5.x is not suffering from this.)


Jan



>
> Therefore, I downloaded the glassfish-installer-v2-b33-darwin.jar
> because I understood that this issue was solved in v2. However,
> glassfish-installer-v2-b33-darwin.jar is unstable and I am getting
> this exception:
>
> java.lang.NoSuchMethodError:
> javax.tools.ToolProvider.getSystemJavaCompiler()Ljavax/tools/JavaCompiler;
>
> My goodness, is there any possible way to run what I've listed above,
> Mac OS X 10.4.8, java version "1.6.0-dp", JavaServer Faces
> implementation (1.2-b20-FCS) and Sun Java System Application Server
> Platform Edition 9.0 (build b48) and not get the first exception listed?
>
> This is just counter-productive and very frustrating.
>
> --Todd
>
> NOTICE: This email message is for the sole use of the intended
> recipient(s) and may contain confidential and privileged information.
> Any unauthorized use, disclosure or distribution is prohibited. If you
> are not the intended recipient, please contact the sender by reply
> email and destroy all copies of the original message.