unable to download glassfish 3 from netbeans - netbeans

I have centos installed on myserver and for development i have installed NetBeans IDE 6.9.1.
Now as glassfish 3 was not present on my server i tried to download it from netbeans itself using
add server panel but when i click on download i am getting I/O exception , following is the screen shot
can anyone tell me how to get rid off it ..

This is caused by some poor programming on my part and the CollabNet to Kenai migration of the java.net web sites.
The url for downloading became something like http://download.java.net/glassfish/... when the migration took place. 6.9.1 had shipped long before the migration took place and remapping this URL did not get put on 'the list' of URLs that had to be remapped.
Some of the coding problems have been addressed in 7.0 builds. Since 7.0 is nearly FCS, you may want to consider using those builds instead of 6.9.1...
Note: you download GlassFish Server Open Source Edition with the following link: http://dlc.sun.com.edgesuite.net/glassfish/3.0.1/release/glassfish-3.0.1-ml.zip

Related

Netbeans plugins site is down rendering netbeans useless

I'm using Netbeans 11.1 and need to a open a JS file in my project.
I need to install the Oracle JS Parser for Netbeans which I cannot do so because the site - plugins.netbeans.org is down. I'm getting this error -
Networking problem in
http://plugins.netbeans.org/nbpluginportal/files/nbms/1552395301_org-netbeans-libs-oracle-jsparser.nbm
Is there anyway I can install it manually otherwise I cannot resume work with netbeans rendering it useless.
The issue you are encountering was a bug in the released version of NetBeans 11.1. See Bug Report NETBEANS-2903 Warning - could not install some modules: Nashorn Integration - No module providing the capability com.oracle.js.parser.implementation could be found. 19 further modules could not be installed due to the above problems.
You have two options to fix this:
Upgrade to NetBeans 11.2 or later, where the problem does not exist.
Download and install the plugin yourself on NetBeans 11.1 by going to Tools > Plugins > then clicking the Settings tab, then the Add button. In the Update Center Customizer window enter any descriptive text in the Name field, in the URL field enter https://netbeans.apache.org/nb/plugins/11.1/catalog.xml.gz and then click OK. However, I just tried that, and got the error "Unable to connect ... because of Unexpected end of file from server". That connection may come good at any time, or it may be that you can no longer reliably access the plugin libraries for older versions of NetBeans.
So your only immediate solution is to upgrade to any newer version of NetBeans. That's desirable anyway, because you will get other bug fixes as well as this one. And if you move to NetBeans 12.x you will also get added functionality, and be able to use more recent versions of the JDK.
Also, as a separate but related matter, you were using an http URL rather than an https URL for your download. I'm not certain, but I doubt if that will work now; if you are not using a secure link you should expect failure, and in any case it looks like you were using a URL for NetBeans 8 rather than NetBeans 11.

Angular IDE not installing on Spring Tool Suite

For last two days, I am trying to install the Angular IDE for Angular 5 by simply following this tutorial, but after taking too long time for downloading it gives error on STS Version: 3.8.3.RELEASE, Build Id: 201612191351, Platform: Eclipse Neon.2 on Windows 7
After around 2 hours it says that Installation cannot be completed as requested
And then after clicking confirm it shows the below error.
Also, when I look into the progress bar it tries to reach some url continuously like
https://marketplace.eclipse.org/content/angular-ide/content.jar https://www.eclipse.org/downloads/eclipse-packages/content.xml.xz https://www.eclipse.org/downloads/eclipse-packages/content.xml https://www.eclipse.org/downloads/eclipse-packages/artifacts.xml
And when I manually tried to open the URLs then I got 404 URL not found error for all of them except the first one which is of angular-ide/content.jar.
I tried googling for the solution and the results having tutorials or steps to install the Angular IDE only.
Am i missing any configuration setting or something else? Any help or suggestion is highly appreciated.
The error that shows up in the popup indicates that a network issue happened while accessing the p2 repository of the Angular IDE marketplace entry. To resolve that, I would recommend to go to the Preferences -> Install/Update -> Available Update Sites, select the one for Angular, remove that, and restart STS. This wipes out stale cache data and might remain in your install and cause issues if there was a network glitch in the past. Then try again.
I also checked the install via the Eclipse Marketplace on STS 3.9.4 (on Eclipse 4.7.3a) as well as STS 3.8.4 (on Eclipse 4.7.0), and it both seemed to work just fine, so it looks like there isn't a fundamental compatibility problem (at least not with those two versions).
Hope this helps!
Of possible interest, please see: https://grokonez.com/tool/setup-angular-ide-spring-tool-suite
The version of STS I have is:
Spring Tool Suite
Version: 3.9.2.RELEASE
Build Id: 201712210947
Platform: Eclipse Oxygen.2 (4.7.2)
Copyright (c) 2007 - 2017 Pivotal Software, Inc.
All rights reserved. Visit http://spring.io/tools/sts

build.dir error in netBeans

I am working on my own, learning about Java servlets and JSPs. My machine configuration as follows is from NetBeans' About page.
Product Version: NetBeans IDE 8.0.1 (Build 201408251540)
Updates: NetBeans IDE is updated to version NetBeans 8.0.1 Patch 1.1
Java: 1.8.0_20; Java HotSpot(TM) 64-Bit Server VM 25.20-b23
Runtime: Java(TM) SE Runtime Environment 1.8.0_20-b26
System: Windows 7 version 6.1 running on amd64; Cp1252; en_US (nb)
Tomcat 8.0.14 for Windows x64 is also installed as the web server.
I created a tiny web app yesterday, which was working as expected. When I went to the next exercise in the book, it was necessary to install MySQL. That seemed pretty straightforward, but alas, the install ran into a couple of problems. Unfortunately, I had not created a restore point right before that attempt, so I went back to the restore point created before the Tomcat install.
I re-installed Tomcat, and as a sanity check, started it, started NetBeans, tried to the run the tiny web app and after removing the server and re-adding it (because I got an error about the server) in NetBeans, got a message that I needed to set the build.dir.
For a tiny app, this is just annoying, but when working on a large app, it would be nice to avoid this problem. Another book author supplied app was working before, and is still working so...
Here are my questions:
1) Why/how would simply re-installing Tomcat cause a break in something that was working?
2) It seems as if the build.dir is set in build-impl.dir (in the app that is working) with a statement like (the opening and closing tags are missing so the statements would appear):
property location="${build.dir}/empty" name="empty.dir"
One post I read somewhere said that the above statement should be before the:
fail unless="build.dir">Must set build.dir
3) How/where is this build.dir set during the creation of a NetBeans web app? Is there some dialog box that I'm not completing correctly? If I miss it, is there a way to get back to it after the app gets "confused"?
Thanks in advance for any help on this.

Error installing plugins: "Could not acquire framework manipulator service"

Using the RCP version of Eclipse Helios on my Windows XP machine, I am trying to install some fairly basic plug-ins like PyDev and EPIC from their standard update sites. Unfortunately, I keep receiving the following error message:
An error occurred while installing the items
session context was:(profile=epp.package.rcp,
phase=org.eclipse.equinox.internal.p2.engine.phases.Install, operand=null -->
{plugin name},
action=org.eclipse.equinox.internal.p2.touchpoint.eclipse.actions.InstallBundleAction).
Could not acquire the framework manipulator service.
Could not acquire the framework manipulator service.
It doesn't look like this error occurs very much as there are very few things online. Everything about my installation of Eclipse is pretty standard. Is there some workaround for fix for this issue?
Looks like this was an extraction issue. One of my plugins didn't get unzipped correctly the first time, causing this behavior. I unzipped it again in a new location and it works fine now.

How can I install the BlackBerry v5.0.0 component pack into Eclipse?

I'm trying to install the latest v5.0.0 "beta 2" BlackBerry OS Component Pack into Eclipse 3.4.2 with BlackBerry Eclipse plugin v1.0.0.67, but have hit a few problems. Has anybody found an easy way to do this?
I had no trouble installing the v4.5.0 and v4.7.0 Component Packs.
It's rather strange that BlackBerry are shipping new phones with the v5.0.0 OS installed (e.g. a Storm 2 9550 and Bold 9700 that I just bought), and pushing that update to phones whilst the BlackBerry website still considers the v5.0.0 SDK / Component Packs to be "beta 2"! If anybody knows when an official non-beta Component Pack is going to be released that might solve my problem...
In case it helps, the problems I've hit so far are:
-Contrary to the implication on the BlackBerry website, the Eclipse "Software Update..." option for the v5.0.0 Component Pack claims it only works on the v1.0.0 Eclipse BlackBerry plugin, not the new v1.1 one.
-I then tried to install the v5.0.0 Component Pack through the "Software Updates..." menu in Eclipse using the v1.0.0 Eclipse BlackBery plugin. Once I'd done the 200MB download the install failed with a "Invalid zip file format" error.
-I might just have been unlucky with a corrupted download but I did try it twice, once through "Software Updates..." and once by selecting "Archive" to install the downloaded Component Pack (which unlike v4.5.0 and v4.7.0 was a JAR, not a ZIP).
Using Eclipse 3.5.1 and the 1.1 component pack, I had no trouble installing the 5.0 JDE from the 1.1 component pack update site from within Eclipse - ie: using the update site http://www.blackberry.com/go/eclipseUpdate/3.5/java ...
It could be possible that Blackberry has fixed whatever problem you encountered in their latest beta, or the latest version of Eclipse just works better...but at any rate, I hope you've gotten your setup working, but if not, perhaps trying again with the latest versions will fix things!
They (rim support) did experience some issue with the zip they have on the site for you to install.
See this thread
If you see Unconnected sockets not implemented just before your Invalid zip file format, like:
osgi.bundle,net.rim.eide.doc,1.0.0.67.
Exception connecting to
https://www.blackberry.com/Downloads/auth/contactFormPreload.do?code=DC727151E5D55DDE1E950767CF861CA5&dl=A7B283681EA93067610F5EE0EEB46A29.
Unconnected sockets not implemented Exception connecting to
https://www.blackberry.com/Downloads/auth/contactFormPreload.do?code=DC727151E5D55DDE1E950767CF861CA5&dl=A7B283681EA93067610F5EE0EEB46A29.
Unconnected sockets not implemented
Error closing the output stream for
net.rim.eide.feature.componentpack4.3.0/org.eclipse.update.feature/4.3.0.16
on repository file:/C:/eclipse/. Error unzipping
C:\DOCUME~1\tysonl\LOCALS~1\Temp\net.rim.eide.feature.componentpack4.3.0_4.3.0.169073623197643742544.jar:
Invalid zip file format Error closing the output stream for
net.rim.eide.feature.componentpack4.5.0/org.eclipse.update.feature/4.5.0.16
, the support mentions:
The "Unconnected sockets not implemented" is caused by a bug in current versions of JDK 1.6.
You can work around this by downgrading to JDK 1.5 (modify your PATH and JAVA_HOME variables) to install the plug-ins. You may need to delete the files in your windows temp folder as well (Eclipse could have cached bad copies of the file).
This should be fixed in JDK 1.6 update 14.
(so what version of java are you using?)
As mentioned in the same thread:
The following is from the "blackberry plugin for eclipse" download page:
It is recommended that users outside of North American or users who have experienced problems with the BlackBerry update site use the links below to manually download and install the components.
Yep, I've read that bit. That's essentially what I tried to do. What that doesn't say is you need to remove the update site from your site list before trying to install the manual downloads via the archive function.
Helpful to me:
http://supportforums.blackberry.com/t5/Java-Development/Invalid-zip-file-format-trying-to-add-4-7-0-components-to/td-p/411105;jsessionid=32490C8741FEE961B9436E453DFF7430