Unable to install training content for javaee7 tutorial using updatetool

I downloaded the latest javaee7 tutorial and tried downloading training files using the updatetool . I have taken the following steps:

  • downloaded the zip file glassfish4 and unpacked it
  • I set the $AS_JAVA variable to $JAVA_HOME . JAVA_HOME correctly pointed to a valid oracle-7-jdk from an earlier configuration.
  • Then I added the parent directory of glassfish and glassfish to PATH . When I do which updatetool , I get the following: /home/frrole/glassfish4/bin/updatetool . Therefore, I think everything is in order. I can also successfully start the GlassFish server using `asadmin start-domain

  • Now when I type updatetool , I get the following error:

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

The software required for this command (updatetool) is not installed.

If you decide to install the Update Tool, your system will be automatically configured to periodically check for software updates. If you want to customize the tool so as not to check for updates, you can override the default behavior using the Settings tool.

When this tool interacts with package repositories, some system information such as the IP address of your system and the type of operating system and version are sent to the repository server. For more information see below:

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

After installation is complete, you can re-run this command.

Do you want to install the Update Tool now (y / n): y

Proxy: use the proxy server settings. Install image: / home / frrole / glassfish 4 Install pkg packages. Download 2 packages. Download pkg (511 files, 6,237,937 bytes).

Fatal error detected in Java Runtime Environment:

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

JRE version: 7.0_21-b11 Java VM: Java HotSpot (TM) 64-bit server VM (mixed mode linux-amd64 23.21-b01) Problem frame: C [libdbus-1.so.3 + 0x26920] GConf error: with server configuration cannot be contacted: D-BUS error: the message has the same consistent response as the current outstanding existing method call [thread 140717512959744 also had an error] dbus_watch_handle + 0x1b20

Failed to write the main dump. Kernel reset is disabled. To enable kernel reset, try "ulimit -c unlimited" before restarting Java

An error report file with additional information is saved as: / home / frrole / glassfish 4 / hs_err_pid22316.log

If you want to send an error report, visit: http://bugreport.sun.com/bugreport/crash.jsp The accident occurred outside the Java virtual machine in native code. See the Problematic Framework for where to report the error. Canceled (kernel resets)

I have no idea what is going on. Any help is greatly appreciated.


UPDATE:

Now I get 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 
+4
source share
2 answers

Download and install the Java EE 7 SDK to get the tutorial. The SDK installer will install and configure Update Center and Tutorial. GlassFish 4.0 ZIP file is not supported (but you can add the Tutorial to GlassFish 4.0 offline using these instructions .

In your case with 32-bit compatibility libraries on a 64-bit version of Linux, an error appears when you start pkg .

+1
source

I just checked and http://pkg.oracle.com/javaeesdk/6/release/ as well as http://pkg.oracle.com/javaeesdk/7/release/ return HTTP 503 Service Unavailable. Thus, it is still impossible to make any updates. However, the glassfish / doc directory should already contain the source code for the tutorial, and you can skip the upgrade step.

0
source

Source: https://habr.com/ru/post/1498965/


All Articles