Skip to main content

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

8 replies [Last post]
Anonymous

[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;

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.
[att1.html]

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Ryan Lubke

Jan Luehe wrote:
>
>
> 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.
The Class loading issue in 1.6 was worked around in JSF 1.2_01 and
later. So if you wish to remain on 9.0, you can download the 1.2_03
GlassFish Updater [1] which will
upgrade your existing GlassFish installation.

[1]
https://javaserverfaces.dev.java.net/servlets/ProjectDocumentList?folder...
>>
>> --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.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net
> For additional commands, e-mail: users-help@glassfish.dev.java.net
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net
For additional commands, e-mail: users-help@glassfish.dev.java.net

rlubke
Offline
Joined: 2003-08-21

>
> 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?
>

The Class loading issue in 1.6 was worked around in JSF 1.2_01 and later. So if you wish to remain on 9.0, you can download the 1.2_03 GlassFish Updater [1] which will upgrade your existing GlassFish installation.

[1] https://javaserverfaces.dev.java.net/servlets/ProjectDocumentList?folder...

Todd Patrick

Thank you!

I am greatly appreciative towards everyone's comments and help.

--Todd

-----Original Message-----
From: glassfish@javadesktop.org [mailto:glassfish@javadesktop.org]
Sent: Wednesday, February 21, 2007 11:29 AM
To: users@glassfish.dev.java.net
Subject: Re: Glassfish throws a Faces exception:
java.lang.ClassNotFoundException: [

>
> 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?
>

The Class loading issue in 1.6 was worked around in JSF 1.2_01 and
later. So if you wish to remain on 9.0, you can download the 1.2_03
GlassFish Updater [1] which will upgrade your existing GlassFish
installation.

[1]
https://javaserverfaces.dev.java.net/servlets/ProjectDocumentList?folder
ID=6481&expandFolder=6481&folderID=1504
[Message sent by forum member 'rlubke' (rlubke)]

http://forums.java.net/jive/thread.jspa?messageID=204662

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net
For additional commands, e-mail: users-help@glassfish.dev.java.net

-----------------------------------------
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.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net
For additional commands, e-mail: users-help@glassfish.dev.java.net

peiworld
Offline
Joined: 2007-02-27

I am getting the same error on
Sun Java System Application Server 9.1 Beta
- Based on GlassFish V2 Beta

Error:
java.lang.NoSuchMethodError:
>> javax.tools.ToolProvider.getSystemJavaCompiler()Ljavax/tools/JavaCompiler;

My system Mac OSx 10.4.9. and I checked the jsf is 1.2-03-b09-FCS.

I don't think this update will help me to get rid off the problem

Jan Luehe

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.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net
For additional commands, e-mail: users-help@glassfish.dev.java.net

Todd Patrick

Jan:

Your right, I have looked at this bug at java.net already.

I am posting this to the mailing list again, because:

1. This is a development issue for a critical application.

2. It is unclear if there is a fix or I have to wait for a release of
Glassfish v2.

Sounds like it's being worked on, but I just want to know what I could
do in the meantime, if anything.

Thanks for the following.

--Todd

-----Original Message-----
From: Jan.Luehe@Sun.COM [mailto:Jan.Luehe@Sun.COM]
Sent: Wednesday, February 21, 2007 11:20 AM
To: users@glassfish.dev.java.net
Subject: Re: Glassfish throws a Faces exception:
java.lang.ClassNotFoundException: [Ljava.lang.String;

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/JavaCompi
> ler;
>
> 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.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net
For additional commands, e-mail: users-help@glassfish.dev.java.net

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net
For additional commands, e-mail: users-help@glassfish.dev.java.net

vince kraemer

Are you seeing the same errors if you use the latest released version of
Apple's JVM?

I think that it is based off 1.5.0_07?

vbk

Todd Patrick wrote:
>
> [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;
>
> 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.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net
For additional commands, e-mail: users-help@glassfish.dev.java.net

Todd Patrick

Vince:

I am unable to use 1.5.0_07 due to I've compiled my JavaEE project under
1.6.0-dp.

Thanks,

--Todd

-----Original Message-----
From: Vince.Kraemer@Sun.COM [mailto:Vince.Kraemer@Sun.COM]
Sent: Wednesday, February 21, 2007 12:32 AM
To: users@glassfish.dev.java.net
Subject: Re: Glassfish throws a Faces exception:
java.lang.ClassNotFoundException: [Ljava.lang.String;

Are you seeing the same errors if you use the latest released version of
Apple's JVM?

I think that it is based off 1.5.0_07?

vbk

Todd Patrick wrote:
>
> [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;
>
> 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/JavaCompi
> ler;
>
> 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.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net
For additional commands, e-mail: users-help@glassfish.dev.java.net

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net
For additional commands, e-mail: users-help@glassfish.dev.java.net