简体   繁体   English

无法使用updatetool安装javaee7教程的教程内容

[英]Can't install tutorial content for javaee7 tutorial with updatetool

I downloaded the latest javaee7 tutorial and tried downloading the tutorial files with command updatetool . 我下载了最新的javaee7教程,并尝试使用命令updatetool下载教程文件。 I did following steps: 我做了以下步骤:

  • downloaded glassfish4 zip file and unzipped it 下载了glassfish4 zip文件并解压缩
  • I set the $AS_JAVA variable equal to $JAVA_HOME . 我将$AS_JAVA变量设置为$JAVA_HOME JAVA_HOME was correctly pointing to a valid oracle-7-jdk from earlier configuration. JAVA_HOME正确指向早期配置中的有效oracle-7-jdk。
  • I then added parent glassfish and glassfish directory to PATH . 然后我将父glassfishglassfish目录添加到PATH When I do which updatetool , I get following: /home/frrole/glassfish4/bin/updatetool . 当我做which updatetool ,我得到以下内容: /home/frrole/glassfish4/bin/updatetool So I guess all is fine. 所以我猜一切都很好。 I'm also able to successfully fire glassfish server with `asadmin start-domain 我也能用`asadmin start-domain成功激活glassfish服务器

  • Now when I type updatetool , I receive following error: 现在当我输入updatetool ,我收到以下错误:

frrole@Frrole-NER1:/usr/lib/jvm/java-7-oracle$ updatetool frrole @ Frrole-NER1:/ usr / lib / jvm / java-7-oracle $ updatetool

The software needed for this command (updatetool) is not installed. 未安装此命令(updatetool)所需的软件。

If you choose to install Update Tool, your system will be automatically configured to periodically check for software updates. 如果选择安装更新工具,系统将自动配置为定期检查软件更新。 If you would like to configure the tool to not check for updates, you can override the default behavior via the tool's Preferences facility. 如果要将工具配置为不检查更新,可以通过工具的“首选项”工具覆盖默认行为。

When this tool interacts with package repositories, some system information such as your system's IP address and operating system type and version is sent to the repository server. 当此工具与软件包存储库交互时,某些系统信息(如系统的IP地址和操作系统类型和版本)将发送到存储库服务器。 For more information please see: 有关更多信息,请参阅:

http://wikis.oracle.com/display/updatecenter/UsageMetricsUC2 http://wikis.oracle.com/display/updatecenter/UsageMetricsUC2

Once installation is complete you may re-run this command. 安装完成后,您可以重新运行此命令。

Would you like to install Update Tool now (y/n): y 是否要立即安装更新工具(y / n):y

Proxy: Using system proxy settings. 代理:使用系统代理设置。 Install image: /home/frrole/glassfish4 Installing pkg packages. 安装映像:/ home / frrole / glassfish4安装pkg软件包。 Downloading 2 packages. 下载2个包。 Downloading pkg (511 files, 6,237,937 bytes). 下载pkg(511个文件,6,237,937字节)。

A fatal error has been detected by the Java Runtime Environment: Java运行时环境检测到致命错误:

SIGSEGV (0xb) at pc=0x00007ffb5b574920, pid=22316, tid=140717514012416 SIGSEGV(0xb)at pc = 0x00007ffb5b574920,pid = 22316,tid = 140717514012416

JRE version: 7.0_21-b11 Java VM: Java HotSpot(TM) 64-Bit Server VM (23.21-b01 mixed mode linux-amd64 compressed oops) Problematic frame: C [libdbus-1.so.3+0x26920]GConf Error: Configuration server couldn't be contacted: D-BUS error: Message has the same reply serial as a currently-outstanding existing method call [thread 140717512959744 also had an error] dbus_watch_handle+0x1b20 JRE版本:7.0_21-b11 Java VM:Java HotSpot(TM)64位服务器VM(23.21-b01混合模式linux-amd64压缩oops)有问题的框架:C [libdbus-1.so.3 + 0x26920] GConf错误:无法联系配置服务器:D-BUS错误:消息具有与当前未完成的现有方法调用相同的回复序列[线程140717512959744也有错误] dbus_watch_handle + 0x1b20

Failed to write core dump. 无法编写核心转储。 Core dumps have been disabled. 核心转储已被禁用。 To enable core dumping, try "ulimit -c unlimited" before starting Java again 要启用核心转储,请在再次启动Java之前尝试“ulimit -c unlimited”

An error report file with more information is saved as: /home/frrole/glassfish4/hs_err_pid22316.log 包含更多信息的错误报告文件保存为:/home/frrole/glassfish4/hs_err_pid22316.log

If you would like to submit a bug report, please visit: http://bugreport.sun.com/bugreport/crash.jsp The crash happened outside the Java Virtual Machine in native code. 如果您想提交错误报告,请访问: http//bugreport.sun.com/bugreport/crash.jsp崩溃发生在Java虚拟机之外的本机代码中。 See problematic frame for where to report the bug. 查看有问题的框架,了解在哪里报告错误。 Aborted (core dumped) 中止(核心倾倒)

I have no idea what is happening. 我不知道发生了什么。 Any help is much appreciated. 任何帮助深表感谢。


UPDATE: 更新:

Now, I'm getting the following error: 现在,我收到以下错误:

Would you like to install Update Tool now (y/n): y

Exception in thread "main" java.io.IOException: Connection failed for URL http://pkg.oracle.com/javaeesdk/7/native/release/catalog/0: 500: Internal Server Error
    at com.sun.pkg.client.Image.checkRepositoryConnection(Image.java:1232)
    at com.sun.pkg.client.Catalog.refresh(Catalog.java:132)
    at com.sun.pkg.client.Image.refreshCatalogs(Image.java:1627)
    at com.sun.pkg.client.Client.main(Client.java:109)
Proxy: Using system proxy settings.
Input/output error: Connection failed for URL http://pkg.oracle.com/javaeesdk/7/release/catalog/0: 502: Proxy Error

Download and install the Java EE 7 SDK to get the Tutorial. 下载并安装Java EE 7 SDK以获取教程。 The SDK installer will install and configure the Update Center and the Tutorial. SDK安装程序将安装和配置更新中心和教程。 The GlassFish 4.0 ZIP file isn't a supported configuration (but you can add the Tutorial to GlassFish 4.0 standalone using these instructions . GlassFish 4.0 ZIP文件不是受支持的配置(但您可以使用这些说明将教程添加到GlassFish 4.0独立版。

In your case, it appears there's something wrong with the 32-bit compatibility libraries on 64-bit Linux when you run pkg . 在您的情况下,当您运行pkg时,64位Linux上的32位兼容性库似乎出现了问题。

I've just checked and both http://pkg.oracle.com/javaeesdk/6/release/ as well as http://pkg.oracle.com/javaeesdk/7/release/ return HTTP 503 Service Unavailable. 我刚检查了http://pkg.oracle.com/javaeesdk/6/release/以及http://pkg.oracle.com/javaeesdk/7/release/返回HTTP 503服务不可用。 So, it isn't possible to perform any updates anyway. 因此,无论如何都无法执行任何更新。 However, the glassfish/doc directory should contain tutorial source code already, and one may skip update step. 但是,glassfish / doc目录应该包含教程源代码,并且可以跳过更新步骤。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM