From wsong18 at learn.senecac.on.ca Fri Jun 1 08:13:27 2012 From: wsong18 at learn.senecac.on.ca (Wei Song) Date: Fri, 01 Jun 2012 11:13:27 -0400 Subject: Issues about Deploying Jersey RESTful Web Service On OpenJDK-based Tomcat Server Message-ID: Hello, I've developed a RESTful web service and a JSP/Servlet web modules at Windows, Eclipse, Java EE environment. When I tried to Deploy them on a OpenJDK-based Tomcat 6 server on Ubuntu, I always got the exception: javax.servlet.ServletException: java.lang.UnsupportedClassVersionError: cs/turtlesback/bean/UserBean : Unsupported major.minor version 51.0 (unable to load class cs.turtlesback.bean.UserBean) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:268) javax.servlet.http.HttpServlet.service(HttpServlet.java:717) The details of my development environment: Windows 7 (Oracle ) JDK 1.6.0.32 Eclipse Java EE Indigo Apache Tomcat 6.0.35 Jersey 1.0.3 (asm-3.1.jar, jackson-lgpl-0.9.4.jar, jersey-client-1.0.3.jar, jersey-core-1.0.3.jar, jersey-json-1.0.3.jar, jersey-server-1.0.3.jar, jettison-1.0.1.jar, jsr311-api-1.0.jar) MySQL 5.0 The target deployment environment: Linux Ubuntu 10.04.2 LTS Java version "1.6.0_20" OpenJDK Runtime Environment (IcedTea6 1.9.13) (6b20-1.9.13-0ubuntu1~10.04.1) OpenJDK Client VM (build 19.0-b09, mixed mode, sharing) Apache Tomcat 6.0.24 MySQL 5.0 Could you give me any suggestion for solving the problem? Thank you. Wei Song -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.openjdk.java.net/pipermail/web-discuss/attachments/20120601/92f9d808/attachment.html From iris.clark at oracle.com Fri Jun 1 10:59:38 2012 From: iris.clark at oracle.com (Iris Clark) Date: Fri, 1 Jun 2012 10:59:38 -0700 (PDT) Subject: Issues about Deploying Jersey RESTful Web Service On OpenJDK-based Tomcat Server In-Reply-To: References: Message-ID: <2012b761-4eef-4d2f-8711-21aadb97a58e@default> Hi, Wei. Looks like cs.turtlesback.bean.UserBean was compiled using JDK 7 (since the exception reports that java.class.version=51.0), but you're trying to run it using an older version of the JDK. iris From: Wei Song [mailto:wsong18 at learn.senecac.on.ca] Sent: Friday, June 01, 2012 8:13 AM To: web-discuss at openjdk.java.net Subject: Issues about Deploying Jersey RESTful Web Service On OpenJDK-based Tomcat Server Hello, I've developed a RESTful web service and a JSP/Servlet web modules at Windows, Eclipse, Java EE environment. When I tried to Deploy them on a OpenJDK-based Tomcat 6 server on Ubuntu, I always got the exception: javax.servlet.ServletException: java.lang.UnsupportedClassVersionError: cs/turtlesback/bean/UserBean : Unsupported major.minor version 51.0 (unable to load class cs.turtlesback.bean.UserBean) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:268) javax.servlet.http.HttpServlet.service(HttpServlet.java:717) The details of my development environment: Windows 7 (Oracle ) JDK 1.6.0.32 Eclipse Java EE Indigo Apache Tomcat 6.0.35 Jersey 1.0.3 (asm-3.1.jar, jackson-lgpl-0.9.4.jar, jersey-client-1.0.3.jar, jersey-core-1.0.3.jar, jersey-json-1.0.3.jar, jersey-server-1.0.3.jar, jettison-1.0.1.jar, jsr311-api-1.0.jar) MySQL 5.0 The target deployment environment: Linux Ubuntu 10.04.2 LTS Java version "1.6.0_20" OpenJDK Runtime Environment (IcedTea6 1.9.13) (6b20-1.9.13-0ubuntu1~10.04.1) OpenJDK Client VM (build 19.0-b09, mixed mode, sharing) Apache Tomcat 6.0.24 MySQL 5.0 Could you give me any suggestion for solving the problem? Thank you. Wei Song -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.openjdk.java.net/pipermail/web-discuss/attachments/20120601/3c932b44/attachment.html From david.holmes at oracle.com Fri Jun 1 22:47:14 2012 From: david.holmes at oracle.com (David Holmes) Date: Sat, 02 Jun 2012 15:47:14 +1000 Subject: Issues about Deploying Jersey RESTful Web Service On OpenJDK-based Tomcat Server In-Reply-To: <2012b761-4eef-4d2f-8711-21aadb97a58e@default> References: <2012b761-4eef-4d2f-8711-21aadb97a58e@default> Message-ID: <4FC9A8E2.8010506@oracle.com> But please note that web-discuss at openjdk.java.net is not for discussing web-based programming technologies, but for "Discussions about the openjdk.java.net site infrastructure. David On 2/06/2012 3:59 AM, Iris Clark wrote: > Hi, Wei. > > Looks like cs.turtlesback.bean.UserBean was compiled using JDK 7 (since > the exception reports that java.class.version=51.0), but you?re trying > to run it using an older version of the JDK. > > iris > > *From:*Wei Song [mailto:wsong18 at learn.senecac.on.ca] > *Sent:* Friday, June 01, 2012 8:13 AM > *To:* web-discuss at openjdk.java.net > *Subject:* Issues about Deploying Jersey RESTful Web Service On > OpenJDK-based Tomcat Server > > Hello, > > I've developed a RESTful web service and a JSP/Servlet web modules at > Windows, Eclipse, Java EE environment. When I tried to Deploy them on a > OpenJDK-based Tomcat 6 server on Ubuntu, I always got the exception: > > javax.servlet.ServletException: java.lang.UnsupportedClassVersionError: cs/turtlesback/bean/UserBean : Unsupported major.minor version 51.0 (unable to load class cs.turtlesback.bean.UserBean) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:268) javax.servlet.http.HttpServlet.service(HttpServlet.java:717) > > > > The details of my development environment: > > Windows 7 > (Oracle ) JDK 1.6.0.32 > Eclipse Java EE Indigo > Apache Tomcat 6.0.35 > Jersey 1.0.3 (asm-3.1.jar, jackson-lgpl-0.9.4.jar, > jersey-client-1.0.3.jar, jersey-core-1.0.3.jar, jersey-json-1.0.3.jar, > jersey-server-1.0.3.jar, jettison-1.0.1.jar, jsr311-api-1.0.jar) > MySQL 5.0 > > > The target deployment environment: > > Linux Ubuntu 10.04.2 LTS > Java version "1.6.0_20" > OpenJDK Runtime Environment (IcedTea6 1.9.13) > (6b20-1.9.13-0ubuntu1~10.04.1) > OpenJDK Client VM (build 19.0-b09, mixed mode, sharing) > Apache Tomcat 6.0.24 > MySQL 5.0 > > Could you give me any suggestion for solving the problem? > > > Thank you. > Wei Song > From david.holmes at oracle.com Thu Jun 7 17:58:45 2012 From: david.holmes at oracle.com (David Holmes) Date: Fri, 08 Jun 2012 10:58:45 +1000 Subject: Can't move files to .trash Message-ID: <4FD14E45.3040604@oracle.com> sftp> rename index.html .trash/index.html Couldn't rename file "/oj/home/dholmes/index.html" to "/oj/home/dholmes/.trash/index.html": Permission denied sftp> I've tried this every which way but can't move anything to trash. I really wish we had a better interface for doing the file management here. :( Thanks, David From david.holmes at oracle.com Thu Jun 7 18:25:29 2012 From: david.holmes at oracle.com (David Holmes) Date: Fri, 08 Jun 2012 11:25:29 +1000 Subject: Can't move files to .trash In-Reply-To: <4FD14E45.3040604@oracle.com> References: <4FD14E45.3040604@oracle.com> Message-ID: <4FD15489.2060507@oracle.com> On 8/06/2012 10:58 AM, David Holmes wrote: > sftp> rename index.html .trash/index.html > Couldn't rename file "/oj/home/dholmes/index.html" to > "/oj/home/dholmes/.trash/index.html": Permission denied > sftp> > > I've tried this every which way but can't move anything to trash. By coincidence (?) I just saw an update to an internal wiki page that says to do: chmod 77 .trash and that fixed it. > I really wish we had a better interface for doing the file management > here. :( Still very tedious deleting things this way - particular when a messed up rsync/scp dumps a ton of files in your top-level directory. :( David > Thanks, > David From tim.bell at oracle.com Thu Jun 7 18:51:22 2012 From: tim.bell at oracle.com (Tim Bell) Date: Thu, 07 Jun 2012 18:51:22 -0700 Subject: Can't move files to .trash In-Reply-To: <4FD14E45.3040604@oracle.com> References: <4FD14E45.3040604@oracle.com> Message-ID: <4FD15A9A.2050303@oracle.com> On 06/07/12 17:58, David Holmes wrote: > sftp> rename index.html .trash/index.html > Couldn't rename file "/oj/home/dholmes/index.html" to > "/oj/home/dholmes/.trash/index.html": Permission denied > sftp> You already have an index.html file in .trash, so I'm guessing sftp won't clobber files: % ls -l ~dholmes/.trash/ind* -rw-r--r-- 1 dholmes hg 3560 May 29 23:17 /oj/home/dholmes/.trash/index.html I emptied everyone's .trash directories, so you should be good to go. Creating a new directory under .trash and renaming things there should work as well. A better code review server is out there on the horizon... not quite in focus yet, but it is out there. Tim From david.holmes at oracle.com Thu Jun 7 18:53:29 2012 From: david.holmes at oracle.com (David Holmes) Date: Fri, 08 Jun 2012 11:53:29 +1000 Subject: Can't move files to .trash In-Reply-To: <4FD15489.2060507@oracle.com> References: <4FD14E45.3040604@oracle.com> <4FD15489.2060507@oracle.com> Message-ID: <4FD15B19.6030005@oracle.com> On 8/06/2012 11:25 AM, David Holmes wrote: > On 8/06/2012 10:58 AM, David Holmes wrote: >> sftp> rename index.html .trash/index.html >> Couldn't rename file "/oj/home/dholmes/index.html" to >> "/oj/home/dholmes/.trash/index.html": Permission denied >> sftp> >> >> I've tried this every which way but can't move anything to trash. > > By coincidence (?) I just saw an update to an internal wiki page that > says to do: > > chmod 77 .trash chmod 700 .trash David ----- > and that fixed it. > >> I really wish we had a better interface for doing the file management >> here. :( > > Still very tedious deleting things this way - particular when a messed > up rsync/scp dumps a ton of files in your top-level directory. :( > > David > >> Thanks, >> David From david.holmes at oracle.com Mon Jun 11 23:05:42 2012 From: david.holmes at oracle.com (David Holmes) Date: Tue, 12 Jun 2012 16:05:42 +1000 Subject: Fwd: hg: jdk8/tl/jdk: 2 new changesets In-Reply-To: <20120419150806.05A9C47179@hg.openjdk.java.net> References: <20120419150806.05A9C47179@hg.openjdk.java.net> Message-ID: <4FD6DC36.9060709@oracle.com> This email (and a few others) just turned up today. Has there been some kind of blockage in the email system? Thanks, David -------- Original Message -------- Subject: hg: jdk8/tl/jdk: 2 new changesets Date: Thu, 19 Apr 2012 15:07:38 +0000 From: coleen.phillimore at oracle.com To: jdk8-changes at openjdk.java.net, compiler-dev at openjdk.java.net, core-libs-dev at openjdk.java.net, serviceability-dev at openjdk.java.net, security-dev at openjdk.java.net, net-dev at openjdk.java.net Changeset: 77b35c5c4b95 Author: jmelvin Date: 2012-04-16 18:09 -0400 URL: http://hg.openjdk.java.net/jdk8/tl/jdk/rev/77b35c5c4b95 7130404: [macosx] "os.arch" value should be "x86_64" for compatibility with Apple JDK6 Summary: On Mac OS X, align system property "os.arch" with Apple legacy JDKs. Also, improve os.name string matching by using .contains() method instead of .startsWith(). This fix spans multiple repositories. Reviewed-by: dcubed, phh, ohair, katleman ! make/common/Defs-macosx.gmk ! make/common/shared/Platform.gmk ! src/share/classes/java/net/AbstractPlainDatagramSocketImpl.java ! src/share/classes/java/nio/Bits.java ! src/share/classes/java/util/prefs/Preferences.java ! src/share/classes/sun/awt/OSInfo.java ! src/share/classes/sun/font/FontUtilities.java ! src/share/classes/sun/launcher/LauncherHelper.java ! src/share/classes/sun/nio/cs/ext/ExtendedCharsets.java ! src/share/classes/sun/print/PSPrinterJob.java ! src/share/classes/sun/security/jgss/wrapper/SunNativeProvider.java ! src/share/classes/sun/security/krb5/Config.java ! src/share/classes/sun/security/krb5/Credentials.java ! src/share/classes/sun/security/provider/ByteArrayAccess.java ! src/solaris/classes/sun/nio/ch/DefaultAsynchronousChannelProvider.java ! src/solaris/classes/sun/nio/fs/DefaultFileSystemProvider.java ! src/solaris/classes/sun/print/UnixPrintServiceLookup.java ! test/demo/jvmti/DemoRun.java ! test/java/io/File/GetXSpace.java ! test/java/lang/ProcessBuilder/Basic.java ! test/java/lang/ProcessBuilder/Zombies.java ! test/java/lang/invoke/InvokeGenericTest.java ! test/java/lang/management/OperatingSystemMXBean/GetSystemLoadAverage.java ! test/java/nio/channels/FileChannel/Size.java ! test/java/nio/channels/FileChannel/Transfer.java ! test/java/nio/file/FileSystem/Basic.java ! test/sun/nio/ch/SelProvider.java ! test/tools/launcher/TestHelper.java Changeset: 079bb040b2ee Author: coleenp Date: 2012-04-19 10:53 -0400 URL: http://hg.openjdk.java.net/jdk8/tl/jdk/rev/079bb040b2ee Merge -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: Attached Message Part Url: http://mail.openjdk.java.net/pipermail/web-discuss/attachments/20120612/02080650/AttachedMessagePart.ksh