When I use NetBeans xdebug with my MAMP stack the url is messed up.
My MAMP PRO site is testate.local:8888/path-to-code.php. However when I debug with NetBeans the path is: testate.local/path-to-code.php so it breaks and won't debug.
I have been searching for a day and tested so many different things, php.ini, NetBeans preferences, MAMP PHP settings and I cannot find how to make it work.
Can anyone shed light on my issue?
The short of it was Select the Project in Netbeans and right-click on it. Go to properties. Under Run configuration - update the Project URL. This adds the server port to the url.
Related
I open Servers view, right click and go to new->server menu.
When I select Tomcat 6 or Tomcat 7 the next button works well however when I select Tomcat 8 the next button is greyed out.
How can I add a tomcat 8 in this case?
I'm using Ubuntu 14.04 and Eclipse mars2 and the accepted answer for this question didn't work for me. I tried everthing from installing new software (extensions, unnecessary because mars already have native support for tomcat8), and adding/removing runtime environments without success.
It is a bug into Eclipse.
Here is the workaround that worked for me:
Close Eclipse
In {workspace-directory}/.metadata/.plugins/org.eclipse.core.runtime/.settings delete the following two files:
org.eclipse.wst.server.core.prefs
org.eclipse.jst.server.tomcat.core.prefs
Restart Eclipse
Source: Eclipse add Tomcat 7 blank server name
Eventhough it says tomcat 7, it worked for the same problem with tomcat 8 too.
There are a few resource on the web about this problem but no answer on SO.
If you were never add a tomcat8 to eclipse there would be no problem just like tomcat7 or tomcat6. But there is a setting about tomcat8 and that is wrong. In that menu there is no option to reconfigure settings.
Just go to Window->Preferences->Server->Runtime Environments and Remove or Edit the old, wrong settings. Then you will be able to add tomcat8 too!
Ref: http://www.codejava.net/servers/tomcat/how-to-add-tomcat-server-in-eclipse-ide
It is a bug in Eclipse.
You can follow following steps for overcome this problem.
Close Eclipse
Go {workspace-directory}/.metadata/.plugins/org.eclipse.core.runtime/.settings
delete the following two files:
org.eclipse.wst.server.core.prefs
org.eclipse.jst.server.tomcat.core.prefs
Restart Eclipse
First try removing/editing respective server at
Window->Preferences->Server->Runtime Environments
then go ahead adding new server, Even after deleting old setup on Window->Preferences->Server->Runtime Environments - If you still have this issue while on Define a New Server from servers tab of eclipse, now try adding tomcat at Window->Preferences->Server->Runtime Environments as we've deleted earlier & then go to Define a New Server from servers tab to create new server, this should work.
I had this issue too, and it was caused by unsufficient file-access rights to the Tomcat server installation directory.
Make sure you have read-access to all files within the Tomcat installation directory you configured in Eclipse (this can be an issue for example if you use the standard tomcat installed in Ubuntu, if you do not belong to the tomcat8 group).
Just go to Window->Preferences->Server->Runtime Environments and Remove the server.
Try to add the server from there only. You will see another folder has been created with the same name.
Provide valid path. Restart eclipse and add server from server console.
Hope it will help..
Go to
Window->Preferences->Server->Runtime Environments
remove tomcat configuration and save.
Go to server view( Window -> show view ->server)
configure the tomcat server again.
My right click is not working in eclipse.I tried to work on servlet so i downloaded javaEE to work and used yesterday (Aug 13 2014) after i didn't used my eclipse which I am using regularly today i started working on the android in my regular eclipse.When i started working on the project my right click not working in package explorer. Also in Window --> show view showing blank.
These are the different trials i have done.
restarting the eclipse.
Change the work space.
restarted the computer.
But the problem is not solved.
Restart Eclipse with a "-clean"
Open a command prompt (click Start, Run... enter "cmd"), then go to the directory where you have Eclipse installed with "cd ", and then run "eclipse -clean".
I had similar symptoms recently. Turned out it was caused by the Subversion server being unavailable - once that was restarted I was able to right-click. My environment was Eclipse Luna with Subclipse.
So worth checking that any connected source control systems are operational. Hope that helps.
You may try clearing SOCKS proxy if your company using a proxy server.
Window → Preferences → Network Connections → Select SOCKS → Click on
Clear (Make sure you have proxy server listed in it).
Turn on error view in Eclipse: Window -> Show View -> Other. Search for Error
There you'll most likely find errors in the log, which will tell you which plugin prevents the menu from opening.
For example, I found:
java.lang.NullPointerException at
de.anbos.eclipse.easyshell.plugin.commands.DefineCommands.createContributionItems(DefineCommands.java:49)
at
org.eclipse.ui.internal.menus.ContributionFactoryGenerator.compute(ContributionFactoryGenerator.java:72)
at
org.eclipse.e4.ui.workbench.renderers.swt.ContributionRecord.mergeFactoryIntoModel(ContributionRecord.java:271)
Fixing EasyShell plugin config solved the problem for me
This happened to me, but only in the "SVN Repositories" window (so I couldn't check out anything). Using the right-click button on the keyboard worked (had to connect an external keyboard with such a button to my laptop).
I had this problem with STS and I went to the STS folder where I started STS and opened eclipse.exe instead of STS and this fixed the problem. I was able to use the Right click for my project.
This fixed my problem "temporarily ONLY"
I was facing the same issue and went to Preferences-> Network Connections and changed the Active Provider from Direct to Manual. This resolved my issue.
I had the similar problem.
Later I found that I have installed one plugin name "ContextQuickies" from market place which is causing this problem.
I have uninstalled it and restarted eclipse which solved my problem.
My environment was Eclipse Kepler.
Steps to uninstall:
Help->Install Software->Already Installed -> This will open new window from there you can Uninstall the plugin and restart.
Hope this helps
I just ran into this issue. I simply restarted eclipse since I had it open for days.
I downloaded and installed tomcat 6.0. I am using rational application developer. I am not able to see my tomcat server in my IDE at all. I tried server->new-> and windows->preferences->server->server runtime environment but I don't find it here either. Any idea where I am going wrong or which step i missed? I know i installed my tomcat properly because http:localhost:8080 works properly.
thanks in advance!!
UPDATE
Will a trial license affect my servers in any way? Like only a specific server you can use with the IDE while u have a trial license or something like that?
UPDATE
when I click Add, Tomcat isn't there in the list of options for me to select and that is where my problem arises. I tried clicking on search and the selecting the tomcat folder but i get an error that states - No new server runtime found
I had the same issue and I followed these steps to solve it in Eclipse Helios:
Help -> Install New Software
Choose "Helios - http://download.eclipse.org/releases/helios" site
Expand "Web, XML, and Java EE Development"
Check JST Server Adapters (version 3.2.2)
Please change the download URL in step 2 according to the Eclipse version which you are using.
Hope this helps.
i'm running into following errors everytime i start eclipse. If i move my project to a new workspace, everything works fine for the duration of one session - as soon as i open eclipse for the next time, the same thing is popping up again.
I tried various suggestions i found in other posts (closing/reopening project, validation, cleaning,etc.) without success. Here is my stacktrace from the last session (its too long to post it directly in here:))
The main symptom is that Tomcat doesnt start - it is stuck at 7%.
Thank you guys in advance, your help is highly appreciated!! If you need anything else, just leave me a comment and i i'll post it!
Your Eclipse environment is seriously messed up. Perhaps you installed plugins the wrong way or you used the wrong Eclipse or plugin version.
Trash everything. Delete the Eclipse program folder altogether. You can keep your workspace folder, but you should delete its .metadata folder. Now download a fresh copy of Eclipse for Java EE (note, with the EE!), extract it and then integrate Tomcat again the usual way by the Servers view. Note that you don't need any additional plugins for this step.
JBoss Tools should be installed via Help > Install New Software. You should specify the JBoss Tools update site matching the exact Eclipse version. Currently it's Indigo SR2, so you should specify http://download.jboss.org/jbosstools/updates/indigo/SR2/ as URL.
I created my Java EE Project with GlassFish server and Java EE 6. It was working good when i was created the project, but i closed my netbeans(there wasn't any fault just closed the NetBeans) and started my NetBeans.
Then problem on the title has faced. And i re-installed my NetBeans
many times. So i can't solve it. PLEASE HELP ME! NETBEANS GEEKS!
I'm not sure if you solved this already but I had this same problem just now. All I did to fix it was select a new server from the list provided when you click on the 'resolve this issue' after right-clicking on your web project. I selected apache tomcat, not the bundled version but the one I installed onto my computer and setup myself. The project then accepted that as the proper server to use and ran just fine.
Right click on the project and it gives at the bottom an option to resolve Server references, so once you click there, it gives the option to add the server (tomcat or glassfish), that worked for me.
Go to the following place in your project's directory:
/home/<path-to-your-project>/nbproject/private
or
c:\<path-to-your-project>\nbproject\private
and check if the paths to GlassFish are correct in the private.properties file for the following properties:
j2ee.server.domain=
j2ee.server.home=
j2ee.server.instance=
j2ee.server.middleware=