GlassFish Server update center installation times out - java

I've installed a GlassFish Server instance into Netbeans, and I'm trying to install its update center. I have run Netbeans as an Administrator under Windows 7.
I'm on a fast internet connection, pkg.oracle.com seems to load rather fast from the browser. Still, I am keeping on getting this error:
C:\Program Files\glassfish-4.0>"C:\Program Files\Java\jdk1.6.0_45\bin\java" -Dimage.path="C:\Program Files\glassfish-4.0\bin\\.." -jar "C:\Program Files\glassfish-4.0\bin\\..\pkg/lib/pkg-bootstrap.jar" "C:\Users\velosyp\AppData\Local\Temp\pkg-bootstrap1368.props"
Proxy: Using system proxy settings.
Install image: C:\Program Files\glassfish-4.0
Installing pkg packages.
Downloading 2 packages.
Downloading pkg (514 files, 6 463 109 bytes).
Downloading python2.4-minimal (278 files, 3 828 949 bytes).
Executing 906 install actions.
Installing updatetool packages.
Downloading 2 packages.
Downloading updatetool (564 files, 4 632 599 bytes).
Input/output error: Read timed out
Could not download application packages. This could be because:
- a proxy server is needed to access the internet. Please ensure that
the system proxy server settings in your Internet Options control panel
(under Connections:LAN Settings) are correct, or set the HTTP_PROXY
environment variable to the full URL of the proxy server.
- the package server or network connection is slow.
If you are getting time out errors you can try setting the
PKG_CLIENT_CONNECT_TIMEOUT and PKG_CLIENT_READ_TIMEOUT
environment variables and try again. For example to increase
the timeouts to 300 seconds set them to 300
- the package server is down or otherwise inaccessible or it is
generating invalid data. Please contact the provider of the package
server.
What could be wrong?

This may be a problem with the slow GlassFish update server. Here are some steps you can try:
You should retry first to see if the error occurs again. You can start a cmd, navigate to the \glassfish\bin directory and run updatetool.bat so you can see the output which is printed after the one you posted.
If you are behind a proxy you should make sure it is setup correctly in the system settings.
You can also try to install the updates through the GlassFish admin console. Start your GlassFish instance and navigate to http:\localhost:4848. On the bottom of the left menu click on Updatetool. There you can choose and install the desired updates.
Another option is to change the timeouts of the pkg tool. To set the timeout to 300 seconds do the following in a cmd (on Windows):
set PKG_CLIENT_CONNECT_TIMEOUT=300
set PKG_CLIENT_READ_TIMEOUT=300
You last (ok, there may be other ones) option is to just skip the update process and do the tutorial with the current version. It should work anyway and I can see in my GlassFish update center that there is only an update for the tutorial documentation at the moment.
and
check this

Try pkg first, then pkg install updatetool.
Another option is to bootstrap the (smaller) pkg command first, and then use the pkg command to install updatetool (instead of bootstrapping updatetool). For example:
pkg list
Answer 'y' to bootstrap the pkg command. Then:
pkg install updatetool
to install updatetool using the pkg command.

Related

Apache Open meetings run locally for development

I am aiming to use Open meetings in my project. Before doing that, I was starting with some UI colour changes and check the system on my local machine. For doing this, I cloned the Git repository https://github.com/apache/openmeetings .
After this, executed the command: mvn clean install -PallModules
*Working with Java version 11 and mvn version 3.6.3
After the execution, build generates successfully:
After this, as mentioned in git, I followed following steps:
go to openmeetings-server/target directory
extract apache-openmeetings-x.x.x.tar.gz (or apache-openmeetings-x.x.x.zip for windows) to new directory
enter to this new directory and execute ./bin/startup.sh (./bin/startup.bat for Windows)
Results says, Tomcat started. Also with command netstat -lntp, I can see port 5080 is occupied by a java jar.
But, the problem is when i open http://localhost:5080, it successfully redirects me to http://localhost:5080/openmeetings/ but shows site can't be reached.
This is very weird, please help!
Build instructions and helpful commands are here
https://openmeetings.apache.org/BuildInstructions.html
I would recommend to use unpacked build
OM at http://localhost:5080/openmeetings works for me as expected
(I would recommend to use it at https://localhost:5443/openmeetings overwise Camera&Microphone will be blocked by browser)
Is it possible your request is being blocked by FW?
P.S. I'm one of OpenMeetings devs

install Weblogic 12.2.1.3 on Windows 10 without Admin rights

I need to install Weblogic 12.2.1.3 server on Windows without Administrator rights.
I followed the official guide and used java -jar fmw_12.2.1.3.0_wls.jar but it failed with the following error:
2019-07-23 17:02:05,062 SEVERE [1] com.oracle.cie.nextgen.launcher.Utils - Invalid Central Inventory location "C:\PROGRA~1\Oracle\product\12.2.0.1\oraInventory" (path contains invalid character(s)).
I think it failed because I do not have write permission for the mentioned directory. So I did some research on the internet for the solution.
What I have tried:
use -invPtrLoc option: Ignoring option "-invPtrLoc" (not applicable on Windows).
set INST_LOC=c:\Users\abc\dev\applications\oracle: no result
set inventory_loc=c:\Users\abc\dev\applications\oracle: no result
Do you have any idea what is the proper way to configure the installer to use different path for Oracle Inventory location?
ps: I am not allowed to execute random exe files on my computer so exe install packages are not options for me.
First, use a path without special characters like space. Even if you succeed in installing weblogic you will experience some difficulties when running servers without admin rights. Server start can be longer, patch list will not be available in the console and patching the product can be impossible. Maybe you can use a Windows VM with which you can have admin rights.

JDK 7 Update 80 installation issue "A semi-colon found in selected path"

I'm trying to install JDK 7 on a Windows 7 machine and constantly getting the error "A semi-colon found in selected path" no matter what path I select for the installation.
Tried with different updates of JDK and it didn't help either.
EDIT: Installation log shows the following error:
Thu May 05 06:34:19 2016
:: JDK installation failed. Return Code: 1603, ErrorCode: 0
This error message is displayed by the Microsoft Windows Installer engine and is a general error code that indicates a problem occurred during the installation.
Read on to learn how to sidestep this speed bump.
The following is a non-exhaustive list of known causes for this error:
Short file name creation is disabled on the target machine.
An Install Script custom action is prototyped incorrectly.
A file is locked and cannot be overwritten.
The Microsoft Windows Installer Service is not installed correctly.
The Windows Temp folders are full.
The setup was corrupted after installation and, therefore, fails with this error during un-installation.
An older version of Install Shield Developer is being used.
A general error occurred during the installation.
Print and File sharing is not installed or enabled when installing MSDE 2000.
How to Avoid this Error
The following solutions have resolved this error in the majority of cases:
Make sure short file name creation is enabled on the target machine. You can check to ensure that the target machine does not have short file name creation disabled by navigating to the following registry entry:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\FileSystem
Make sure the value "NtfsDisable8dot3NameCreation" is equal to 0. This indicates that short file name creation is enabled. A value of 1 indicates that this functionality is disabled. You should change the value to 0.
After modifying this value, the target machine should be rebooted before attempting to launch the setup again.
Note: If the target machine should normally have short file name creation disabled, it can be disabled after the install completes by resetting "NtfsDisable8dot3NameCreation" to 1 and rebooting.
To ensure that the Windows Installer Service is properly installed and configured, it is recommended that users install the file InstmsiA.exe on Windows 95/98/Me or InstmsiW.exe on Win NT systems. These files are shipped with your InstallShield product and are located in the following location:
<Product Path>\Redist\Language Independent\i386
Empty all temporary folders. The specific temporary folders for a machine can be determined by accessing the DOS prompt and typing set. Note the values listed for TEMP and TMP, and delete all files in those locations.
Make sure no other applications, including utilities such as virus scanners, are running in the background. Close all running applications and utilities, and launch the installation again.
If this error occurs during un-installation, use the Microsoft Windows Installer CleanUp utility to uninstall the installation.
Once the installation has been successfully un-installed, you can then debug the project to determine what caused the original error.
Put your installer executable to C:\ and run it from there.
More info here: http://wills-tech-notes.blogspot.com/2015/12/cannot-install-java-semicolon-found-in.html
The Error which you are getting is normally it throws during java update installation, Not, the first time installation.
Please kindly follow the below steps to resolve your issues. Let's give a try.
Step 1:
Just want to ensure if you have already java installed on your machine partially.
Follow the below entries in command prompt:
java -version - If it throws error we are good.
echo %JAVA_HOME% and echo %JRE_HOME%
echo %PATH% - If you see the Java entries you may need to clear all this.
echo %CLASSPATH% - Here as well as said in above.
If no results from the Step 1, Please follow Step 2.
Step 2:
Check your C: drive for to verify there should not any Java installation folders. If yes, Please delete those.
Clear all your logs from your machine(If it contains any existing java related logs)
https://www.java.com/en/download/help/plugin_cache.xml
Step 3:
Actually, we do not require to install the Java, instead we can download the Zipped java file and locate into dedicated drive.
And then, make all your environment variables entries into this location. In, this case you are good i believe.
If you still face issues, do let me know?
Try this and maybe you'll get your job done
1 Close the installer when you see Java error 1603. (It has installed a
bunch of files, but exits prematurely.)
2 Open javacpl.exe from C:\Program Files (x86)\Java\jre1.8.0_XX\bin (or
for x64, C:\Program Files\Java\jre1.8.0_XX\bin) where XX is the update
number.
3 Uncheck "Enable Java content in the browser" on security tab and click
OK to close Java control panel
4 Retry installing Java. It usually succeeds for this time.
5 Open javacpl.exe again (see step #2)
6 Check Enable Java content in browser on security tab and click OK to
close Java control panel
7 If it still fails, try uninstalling windows update KB2918614, then
reboot and try these steps again.
Try following steps:
Run installer from c:/
Run jdk*...*.exe /log msi.log to see installation logs, please attach
them if it won't help you understand a cause of the problem
In the related JDK bug an issue with an environment was a cause of the problem.
uninstall KB3139923 helped in my case
I had the same problem with version 8 and the solution was to run the installer as Administrator (right click, then "Run as Administrator").

How to run PostgreSQL as a service in windows?

I installed postgreSQL binaries in windows 7 32bit operating system; I can start the server from cmd but I cant run it as a windows service.
This is the error that I'm getting when I try to start the service manually:
"The postgreSQL service on local computer started and then stopped. some services stop automatically if they are not in use by other servces or programs"
All I need to do is; after booting to windows when I double clicked my java application I need to run my app smoothly without any database errors. I cannot do this because postgreSQL is not running as a windows service.
I found this in windows event viewer:
The description for Event ID 0 from source PostgreSQL cannot be found.
Either the component that raises this event is not installed on your local computer or the installation is corrupted.
You can install or repair the component on the local computer.
If the event originated on another computer, the display information had to be saved with the event.
The following information was included with the event:
postgres cannot access the server configuration file
"C:/Windows/system32/pgsql/data/postgresql.conf": No such file or directory
I googled about it but I was not able to find an answer.
Problem was solved
path to the data directory was wrong in windows service file.
So I delete the service file from this method:
1)Run Regedit or Regedt32.
2)Go to the registry entry "HKEY_LOCAL_MACHINE/SYSTEM/CurrentControlSet/Services"
3)Look for the postgreSQL service that you want delete and delete it.
4)reboot the computer.
After that open the cmd (Run as administrator) Go to the postgreSQL bin directory and run this command to create a new windows service:
pg_ctl.exe register -N "PostgreSQL" -U "NT AUTHORITY\NetworkService" -D "C:/Program Files/postgresql/pgsql/bin/pgsql/data" -w
This worked for me. Hope this will help.
This is a note for a normal user. If using an official installer it should has a build-in service,
Win+R and type services.msc
Search Postgres service based on the version installed,
e.g., "postgresql-x64-13 - PostgreSQL Server 13"
Click stop, start, or restart the service option
postgres cannot access the server configuration file
"C:/Windows/system32/pgsql/data/postgresql.conf": No such file or
directory
This looks like your working directory is C:\Windows\system32 and you are running postgres there and it looks for data/postgresql.conf.
Try changing the working directory or specifying -D C:\path\to\my\data.

"No files available for download"

There is a strange problem with Netbeans. I'm trying to create new project with remote resources but when I enter all FTP and project information, Netbeans says
No files available for download. Try to check Passive mode in the
remote configuration
Although I tried the passive mode, it isn't the problem. There are many folders and files and I can see them via FTP client or I can create the project with same method on another Netbeans which is running another computer.
Both of them has Netbeans 7.0, both of them running Windows 7 and both of them using same internet connection!
There are no firewall or similar protection by the way.
For Netbeans 7.3, with Windows 7, using JDK 7
Open CMD as Administrator and run the following:
netsh advfirewall set global StatefulFTP disable
To open CMD as Administrator in Windows 7:
Select Start
In the "Search programs and files" box
Enter "CMD"
Find the result above and right click on it
Select "Run as Administrator" from the context menu
I found this after some digging via Mansiemans shared link. Some of the commands on that thread, did not work, so I am sharing the one that did work.
Initial Directory: "/"
Port: "21"
Set Passive mode on
You don't need to uninstall Java or re-install NetBeans. Just change the Java version used by Netbeans.
Edit file: <netbeans dir>\etc\netbeans.conf
Change this line: netbeans_jdkhome="C:\Program Files\Java\jre6"
I did not uninstall any thing.
I got jdk 1.6 folder from another computer and copied it to my computer in java installation directory.
Then I edited the \etc\netbeans.conf.
Changed this line: netbeans_jdkhome="C:\Program Files\Java\jdk1.6.0"
jre6 was not working.
I did this in passive mode.
Uninstall java 7 and java se 7 development and install the last java 6 version http://www.java.com/en/download/inc/windows_new_xpi.jsp
upload directory in connector was automatically named as the project, making the dir on server that the connector will test: ftp://mysite.foo/mysite/mysite instead of ftp://mysite.foo/mysite/
clearing "upload directory" field worked for me
This page has a suggestion that worked for me. Apparently, Windows 7 / Vista firewall blocks certain FTP operations. When I turn off my Vista firewall, Netbeans does its thing.
If passive mode fails to get files then connect by Turning off your Firewall. In my case it worked. Then you can create a Rule in Firewall to allow netbeans.
This could be because your user account on the FTP server is configured to change to an initial directory upon connection.
Example: The Netbeans path is showing ftp://example.com/www/example.com (combining your provided host, initial directory and upload directory settings). However, your FTP user account is configured to initially connect to /www as the FTP root. Despite what Netbeans is telling you, you are actually connecting to ftp://example.com/www/www/example.com because, upon connection, the FTP server has changed the directory to www for your user account.
In which case, even though Netbeans is showing the correct path in the project wizard and in the console, you may not actually be connecting to the path in your Netbeans settings.
You can usually check if this is the case easily if you have a hosting account control panel with an FTP settings page. Your host may, however, not allow you to change the FTP root for security reasons (or perhaps you just shouldn't).
If you cannot change the FTP user root, or would prefer not to, then (in the e.g. above) you will have to make sure the Netbeans FTP path is ftp://example.com/example.com missing out the "www" directory (even though that is actually part of the correct path) because the FTP server will automatically change to this as the FTP root.
The above approach fixed this problem for me.
Set the initial directory chmod to 777.

Categories