"No files available for download" - java

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.

Related

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.

Apache Tomcat will not start on Mac

I cannot get Apache Tomcat to start. I followed the instructions for installing Tomcat on the Mac found at https://www.dev2qa.com/how-to-install-tomcat-in-macos/.
After I type the command to start Tomcat, the response from the command line is that Tomcat has started.
However, when I go to the browser, the default page is not showing up. I further checked to see if the port was being used by using the command
lsof -nP -i4TCP:8080 | grep LISTEN
which showed that no program is using the port. I also read the 'RUNNING.txt' that instructed me on setting the environmental variables, which I did. Any suggestions on why Tomcat is not starting up.
I'm using jdk 1.8.0_202 and Apache Tomcat 9.0.14 that is running of Mac OS High Sierra.
BatChmod
After downloading a fresh version of Tomcat, I use the BatChmod app to alter the file permissions. Tomcat will not launch properly without altering the permissions.
I do not know the command-line equivalent, but here is a screenshot of the settings I have used for years successfully.
Plea for help
If anyone can write the equivalent as a shell script for macOS, please post!
Even better, explain how to wrap such a script as an AppleScript for drag-and-drop execution in Finder.
The problem turned out to be a permissions problem. When I installed Tomcat, I put the folder in the '/Library/Tomcat' directory. Even though the Tomcat files were changed to be executable, the user and group ownership remained the same. To get Tomcat to run, I moved the directory to 'Users/MyUserName/Tomcat'. Once I did that, the default Tomcat page ran.

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").

GlassFish Server update center installation times out

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.

How do you know if Tomcat Server is installed on your PC

I am using Windows 7 OS.
I just installed jaspersoft server which installed Apache Tomcat and mysql as a bundle along with it.
I go to http://localhost:8080 and theres a message that says webpage is not available.
I am a beginner, and I would like to know if Tomcat is first installed on my computer. Can you tell
me how I can do that ? ( I would also like to know if it has to be started and on what
port it was installed.)
UPDATE
Heres something I did . i am really confused now . I found the location of the tomcat server. I found the server.xml file. The port in the server.xml file was listed as 8005. I also found start.bat which I ran. I now see that http://localhost:8080 works but http://localhost:8005 doesnt . Would you know why ?? The port 8005 should work because thats what was listed in the server.xml
The port 8005 is used as service port. You can send a shutdown command (a configurable password) to that port. It will not "speak" HTTP, so you cannot use your browser to connect.
The default port for delivering web-content is 8080.
But there may be other applications listen to that port. So your tomcat may not start, if the port is not available.
You asked "How do you know, if tomcat server is installed on your PC?". The answer to that question is: You can't
You can't determine, if it is installed, because it may be only extracted from a ZIP archive or packaged within another application (Like JBoss AS (I think)).
You can check in windows services if tomcat is installed it will be listed in windows services.
To check the windows service list of services installed on windows machine use
WINDOWS KEY + R and type services.msc
There you can find all the services related with Jasperreport server like Tomcat and MySQL with name starting Jasperreport server Tomcat and MySQL only if these services are installed and its need to be started by selecting the option.Then you can access it through browser using this link :-
http://localhost:8080
default port for tomcat is 8080.
In order to make
http://localhost:8080
work, tomcat has to be started first. You can check server.xml file in conf folder for the port information. You can search if tomcat is installed on your machine. Just go to start and then type tomcat. If it is installed it will give you the directory where it is installed. Then you can select that path and run it from command prompt. Example if tomcat is installed in C:\Programfile\tomcat. You need to set this path in command prompt,go to bin folder and startup. Example: C:\Programfile\tomcat\bin\startup. Else you can also run it by directly going to the path and run startup batch file.
In case of Windows(in my case XP):-
Check the directory where tomcat is installed.
Open the directory called \conf in it.
Then search file server.xml
Open that file and check what is the connector port for HTTP,whre you will found something like 8009,8080 etc.
Suppose it found 8009,use that port as "/localhost:8009/" in your web-browser with HTTP protocol.
Hope this will work !
For linux ubuntu 18.04:
Go to terminal and command:$ sudo systemctl status tomcat
Open your windows search bar, and search for the keyword Tomcat. If a shortcut file is found instead, you can open the source file location of the shortcut by right-clicking the shortcut file and selecting the Properties.

Categories