[nbj2ee] Re: Glassfish 3 and JDK 7

  • From: John Yeary < >
  • To:
  • Subject: [nbj2ee] Re: Glassfish 3 and JDK 7
  • Date: Fri, 11 Jan 2013 16:07:06 -0500

The JSP files are compiled server side. Please check and make sure that GlassFish is running on Java 7.

____________________________

John Yeary
____________________________ 
NetBeans Dream Team
President Greenville Java Users Group
Java Users Groups Community Leader
Java Enterprise Community Leader


____________________________ 

       

"Far better it is to dare mighty things, to win glorious triumphs, even though checkered by failure, than to take rank with those poor spirits who neither enjoy much nor suffer much, because they live in the gray twilight that knows not victory nor defeat."
-- Theodore Roosevelt


On Fri, Jan 11, 2013 at 11:53 AM, Andreas Ernst < " target="_blank"> > wrote:
Hi,

i try to deploy a JDK 7 Maven based app. I get this error:

org.apache.jasper.JasperException: PWC6033: Error in Javac compilation for JSP

PWC6197: An error occurred at line: 4 in the jsp file: /index.jsp
PWC6199: Generated servlet error:
strings in switch are not supported in -source 1.5
  (use -source 7 or higher to enable strings in switch)

The project properties are source 1.7, Glassfish is 3.1.2.2 (build 5).

mail:~ # java -version
java version "1.7.0_10"
Java(TM) SE Runtime Environment (build 1.7.0_10-b18)
Java HotSpot(TM) 64-Bit Server VM (build 23.6-b04, mixed mode)

Any hints?

Thanks
Andreas
--
ae | Andreas Ernst | IT Spektrum
Postfach 5, 65612 Beselich
Schupbacher Str. 32, 65614 Beselich, Germany
Tel: +49-6484-91002 Fax: +49-6484-91003
" target="_blank"> | www.ae-online.de
www.parcelchecker.de | www.tachyon-online.de



[nbj2ee] Glassfish 3 and JDK 7

Andreas Ernst 01/11/2013

[nbj2ee] Re: Glassfish 3 and JDK 7

John Yeary 01/11/2013

[nbj2ee] Re: Glassfish 3 and JDK 7

Andreas Ernst 01/12/2013

[nbj2ee] Re: Glassfish 3 and JDK 7

Andreas Ernst 01/12/2013

[nbj2ee] Re: Glassfish 3 and JDK 7

John Yeary 01/14/2013

[nbj2ee] Re: Glassfish 3 and JDK 7

Andreas Ernst 01/14/2013

[nbj2ee] Re: Glassfish 3 and JDK 7

John Yeary 01/14/2013

Project Features

About this Project

www was started in November 2009, is owned by jpirek, and has 21 members.
By use of this website, you agree to the NetBeans Policies and Terms of Use (revision 20140418.2d69abc). © 2013, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo
 
 
Close
loading
Please Confirm
Close