build.dir error in netBeans - 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.

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.

Unable to add a Server to Eclipse Photon

I've recently installed Eclipse Photon. I have an earlier version (Mars) that still works fine.
In installing it I just downloaded the zip file oepe-12.2.1.9-photon-distro-win32-x86_64.zip from https://www.oracle.com/tools/downloads/oepe-v12219-downloads.html - and then launched it after the download.
It starts up okay - but obviously something isn't quite right.
For one thing I can't add a WL server. The Define a New Server dialog looks like this - which won't allow me to actually add any of my WL server installations...
When it should look like this (from my old Mars installation)...
Any suggestions?
Thanks much

GlassFish Server works on Netbeans 7.2 but not on 7.3

I have just installed Netbeans 7.3. Prepared a sample web application.
But Glassfish does not start.
Error message is "....\nbproject\build-impl.xml:1036: Deployment error: GlassFish Server 3+ Server start failed. Cant create start proccess.
See the server log for details."
Unfortunately nothing in the server log.
I deleted domains folder and server then recreated. Nothing changed. :(
Is it a bug related to http://netbeans.org/bugzilla/show_bug.cgi?id=217228 ?
Any solution?
My system is 64 Bit Windows 7 with Turkish locale.
Web application is Primefaces based, JSF 2.1
I think this is about language settings.
You can change localization settings in the netBeans configuration file($NETBEANSHOME/etc/netbeans.conf).
Just add "--locale en" to end of the "netbeans_default_options" line.
Also you can start glassfish with asaadmin tool with following these steps.
1- execute C:\Program Files\glassfish-3.1.2.2\bin\asaadmin.bat
2- start-domain

unable to download glassfish 3 from 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

jetty and eclipse

I'm trying to run a jetty server from a main. It always starts from http://0.0.0.0:8888;
I have changed jetty.xml and added set host to 127.0.0.0
when i run a command on the downloaded jetty files, it starts correctly at 127.0.0.0.
But eclipse keeps on starting at 0.0.0.0. It is running jetty 6.1, not the 8.0 version I have downloaded.
I've changed JETTY_HOME to point to the correct files. It does not work. :(
Need Help
Jetty 8 is in "experimental state" (see Versions) and I would recommend you do not use that version if you have a choice. I would go with version 6 as there was a change in version 7 with name spaces which may result in the behaviour you see.
Question is where that version 6.1 is coming from that you are seeing. Investigate and report back.
Try using run-jetty-run eclipse plugin. I have written a blog post about how to use it with DCEVM for hotdeploy. It really improves development time:
Spring-mvc + Velocity + DCEVM