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
Related
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.
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.
I'm using Netbeans and xdebug with php 5.3 to debug my application and I can't inspect objects properties in the variables panel
only CLASSNAME appears
is there a special setting in netbeans or xdebug ?
any one encountered thi situation?
I'm pretty sure I coudld debug my objects before but I upgraded to php 5.3 and so the php.ini changed, but I copied my xdebug settings over from my old php.ini
any help appreciated
thanks
You have an old Xdebug. CLASSNAME has been removed since version Xdebug 2.1.1 (release March 28th, 2011). Please upgrade to the latest version and the problem should be gone.
I have tried PhP versions 5.3.8 and 5.3.10 and Xdebug versions 2.1.1, 2.1.2 and 2.1.4 as well as running under window XAMP and WAMP servers and remote XDEBUG under Linux (Ubuntu) server and still experience the same problem, values for object variables are generally not shown though some very rare times they do show after flashing many times "Evaluating" under value in the Variables window.
I am configuring the env on Vista. I have jdk-6u30 and eclipse-jee-indigo-SR1-win32 installed on the system. Please suggest what tomcat version would be compatible? I tried installing apache-tomcat-7.0.25 but it gave me "requested resource not available error" hen I tested it for the first time. What is the reason of this error on first test? Is it something to do with the compatibility issue or choosing wrong way of installation? Please help.
The very newest versions of both Eclipse and Tomcat will work perfectly with that version of Java; you must have made some mistake in installing or testing.
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