I'm running Intellij IDEA 10.5 and I've set up my default ftp server (File|Settings|Deployment),
but when I'm right-clicking on my project I still see Deployment option inactive (see below):
I'm new to IDEA, so I'm sure that it is not a bug, but my misunderstanding of
how one should enable ftp deployment in IDEA.
What should I do to enable it?
Please, give me a clue to solve this problem!
This is the only remaining thing that keeps me from
using IDEA instead of Eclipse in my development.
I think you need to make sure that the path mappings are correctly entered in the "Mappings" tab of your deployment configuration.
If the mappings tab is not correctly filled out, a warning will be shown in that tab (e.g. "Deployment path is not specified").
The upload/compare/download menu entries for the deployment configuration will be greyed out as long as the mappings are not defined.
I had the same problem and it was resolved by entering the correct path mappings.
Deployment is only available in the paid ultimate edition:
http://www.jetbrains.com/idea/webhelp/deployment.html
I'll bet you're using the free community edition.
Related
Good night, I'm having a problem that I don't know if is the Linux, the tomcat, maven or netbeans. I'm trying to debug a project but it return that error:
Implantação em andamento... (Implementation ocorring...)
deploy?config=file%3A%2Ftmp%2Fcontext5869996979793086537.xml&path=/Teste
FAIL - Application already exists at path /Teste
Someone had that problem or know how to resolve that? I passed all day trying to resolve but nothing
I'm using Linux Mint Cinnamon, IDE NetBeans 8.2, TomCat 8.5.23.
When I encountered an error like "Application already exists at path /Teste",
I did the following:
1. "Debug / Finish Debugger Session" (red square toolbar button),
2. Navigate to the "Undeploy" command as follows:
Window (menu) / Services
Services (pane)
Servers
Tomcat 8.5
Web Applications
/Teste
3. Right click "/Teste" and click "Undeploy" in the popup context menu.
4. "Debug / Debug Project" now worked.
"This can be fixed by adding to tomcat context. The antiResourceLocking is by default set to false. More details can be read at http://tomcat.apache.org/tomcat-5.5-doc/config/context.html."
SOURCE: https://confluence.atlassian.com/bamkb/deploying-artifacts-to-tomcat-will-sometimes-fail-on-due-to-file-locking-397083103.html
-> antiResourceLocking: "If true, Tomcat will prevent any file locking. This will significantly impact startup time of applications, but allows full webapp hot deploy and undeploy on platforms or configurations where file locking can occur. If not specified, the default value is false.
antiJARLocking is a subset of antiResourceLocking and therefore, to prevent duplicate work and possible issues, only one of these attributes should be set to true at any one time.
Please note that setting this to true has some side effects, including the disabling of JSP reloading in a running server: see Bugzilla 37668.
Please note that setting this flag to true in applications that are outside the appBase for the Host (the webapps directory by default) will cause the application to be deleted on Tomcat shutdown. You probably don't want to do this, so think twice before setting antiResourceLocking=true on a webapp that's outside the appBase for its Host."
SOURCE: http://tomcat.apache.org/tomcat-5.5-doc/config/context.html#Introduction
Some more elaborate answers here: AntiResourceLocking on Tomcat 8
LE: as a quick fix I manually deleted the file "yourapppathname.xml" at C:\Program Files\Apache Software Foundation\Tomcat 8.5\conf\Catalina\localhost...
Method 1:
Create a new project then copy all the files: source and web.
Remember: It is important to copy web.xml
Method 2:
project => meta-inf => context.xml then change the path.
There are 2 ways I use, wish you good learning
My issue isn't a new one, and I found several threads about it, yet no one was helpful for me.
I hope this one will.
I can't debug with eclipse. It recognizes breakpoints, switches to debug view, but somehow it gets out of sync and I can't debug my code. Sometimes It works, but after a while It happens again.
I work with JDK 1.6.0_24, Glassfish 3.1, eclipse INDIGO (but it also happens on HELIOS).
I tried (as I found in this site) to set eclipse to use Parallel GC. I tried put it in the eclipse.ini file, I tried to put in the glassfish VM arguments itself, and I tried to put it at eclipse JDK additional VM arguments (preference -> installed JRE-> JDK -> etc). Nothing seem to work for me. I also tried them all together.
Help me please..
Thank you all from advance,
Ido
EDIT:
OK, I noticed few more things:
On the Debug view, in my stck trace, I found the exact class with the breakpoint is paused and it had this comment: "(Suspended breakpoint at line XX)". When I clicked the line, suddenly the green line appeared. Yet, as soon as I clicked F6 to continue, It went out of sync again, just the next line became suspended. Weird.
I checked the processes running on my computer and found that there are several "java.exe" processes running at the same time. (eclipse runs on javaw.exe). Maybe this is why glassfish and eclipse refuse to work together.
I checked the build path and found that this is my output folder: project-name/target/classes. Is this good?
Any thoughts?
Ido
So, I couldn't fix this but I found a workaround that completely solves this - FINALLY!.
I just stopped using glassfish WTP for debugging and set a remote debug to my local glassfish. it works perfectly with few minor annoying things - but breakpoints finally noticed.
Set remote debug
Go to your glassfish admin console and set your glassfish to work on debug mode.
Click on configuration --> server-config --> JVM settings, and check debug enabled check box.
Restart server
In eclipse - start server on normal mode (not debug - it is useless).
Go to Debug configurations and locate "Remote Java Application"
Create a new Remote java app debug config
Enter name (lets say Glassfish-Debug)
Choose project to debug
Enter your own IP address in the host section and set the port to 9009
This is optional but it is more comfortable to work with:
Go to "Common" tab, and check the Debug check box. This will make this Glassfish remote debugging configuration constant on your debug menu.
That's it. Now all you have to do is always start your Glassfish in normal mode and then go to Debug configurations and run This Glassfish remote debugging you just set.
And now I'm getting to the annoying part: After rebuild your project, sometimes you might get again out of sync. You just need to disconnect the remote debugging session and run it again. Small price to pay.
I hope it helps..
I had faced similar issues, But it turned out to be a simpler problem of multiple versions of JREs/JDKs installed.
Try Debug -> Run Configuration -> JRE -> Alternate JRE -> select JDK 1.6.0_24.
Also check for project build paths if correct Jars are been used.
Hope this helps.
I've been up for hours now, searching online for a solution. I can happily say, this has really pissed me off.
Upon opening 'Install New Software' I get "'Contacting Software Sites' has encountered a problem.
Some sites could now be found. See the error log for more detail."
Here's the error log:
Some sites could not be found. See the error log for more detail.
Unable to read repository at
http://download.eclipse.org/webtools/repository/indigo/content.xml.
Cannot assign requested address: JVM_Bind Unable to read repository at
http://download.eclipse.org/eclipse/updates/3.7/content.xml. Cannot
assign requested address: JVM_Bind Unable to read repository at
http://download.eclipse.org/mylyn/releases/indigo/content.xml. Cannot
assign requested address: JVM_Bind Unable to read repository at
http://download.eclipse.org/releases/indigo/content.xml. Cannot assign
requested address: JVM_Bind
Any ideas?
I want to install MercurialEclipse but it cannot find the repository, same for the defaults.
I had the same problem. And found solution on russia site.
In file eclipse.ini under line -vmargs add this line:
-Djava.net.preferIPv4Stack=true
This will resolve problem.
Site with explanation
I have encountered the same problem. I have resolved disabling the site using:
Window → Preferences → Install/Update → Available software Site
Here the site that can be used have a tick (enabled). You must find the site that caused the problems and disabled them.
I hope this could be useful.
I encountered the same problem and solved it by disabling the McAffee Host Intrusion Detection program during the installation.
I noticed an additional symptom that I wasn't able to browse the Internet using the Eclipse Internal Web Browser feature using below Eclipse Menu navigational steps:
Window → Show View → Other → General → Internal Web Browser.
I have had the same problem in the past when installing new software in Eclipse.
In my case it has always been a problem with my Eclipse Proxy settings.
Eclipse > Preferences > General > Network Connections
Make sure you have your proxy settings configured correctly. If you are on a college or office network you can get the Proxy details of the administrator. In my case I had to configure the HTTP, HTTPS and the SOCKS.
The SOCKS requires that you input your username and password.
NOTE: If your network username or password changes you will have to update this.
In my case I had to change the "Active Provider" drop down from 'Direct' to 'Manual'
This solved all my problems
More info at http://help.eclipse.org/helios/index.jsp?topic=%2Forg.eclipse.platform.doc.user%2Freference%2Fref-net-preferences.htm
I had the same issue, to resolve it, I preformed the following steps:
Made sure the internal browser was able to connect to the internet.
Window/preferences
install/update
available Software sites
click on each row that is checked, one at a time and at the bottom right side of the window it will tell you if the resource is available or not. If that resource is not available then uncheck it. I then added the following resource site and this was able to fix the error.
Name:Composite Marketplace Repository
Location:http://marketplace.eclipse.org/repo
HOPE THIS HELPS...
This is a shot in the dark and might not help but, have you tried the following:
Can you connect to internet at all through Eclipse?
Open the internal webbrowser. In Eclipse: Window -> show view -> Other -> General: Internal web browser.
Look up any normal adress, is it working?
Can you connect to another update site? Try for example Eclipse Emma:
http://update.eclemma.org/ Do you see anything there?
What are your proxy preferences? Go to Window -> preferences ->
General: Network connections.
The active provider:
Specifies the settings profile to be used when opening connections. Choosing the Direct provider causes all the connections to be opened
without the use of a proxy server. Selecting Manual causes settings
defined in Eclipse to be used. On some platforms there is also a
Native provider available, selecting this one causes settings that
were discovered in the OS to be used.
If internet is working fine outside of Eclipse, try changing to
Native. After that, try Direct.
I have encountered problems where an update site would not load, then
I had to remove it and add it again. This forces Eclipse to reread the
contents of the site even if it has a cached copy. So, if you still
get no connection to the indigo update site, but everything else is
working, try that. Go to Window -> Preferences -> Install/update:
Available Software sites. Then remove and add the indigo site. Just
remember to copy the adress so you can add it again.
This is a copy and paste from this post.
If the embedded browser works but updates will not work you might just be using a 32 bit Java on a 64 bit eclipse. Download the 32-bit version and see if that helps. Worked for me.
I also encountered the same problem and nothing here worked. What I found the problem to be was an issue with the versions of openjdk and oracle-java...as a result I installed all versions from 6-8...I'm not sure which one fixed the issue but after installing all of them the problem was resolved. Hope this helps
I was having the same problem and I checked my proxy setting for all the browsers which was installed ......... One of the browser(IE 8 for my case ) was using the proxy setting to execute the testing sites of the company ...........
I unchecked that one ......... restarted my eclipse and now its working fine ..........
My solution was:
Window → Preferences → Install/Update → Available software Site
edit the problematic sites-> remove the 's' from 'https' on the site lines!
using Luna.
this is reference of
Unable to read repository at http://download.eclipse.org/releases/indigo
Can you connect to internet at all through Eclipse?
Open the internal webbrowser. In Eclipse: Window -> show view -> Other -> General: Internal web browser.
Look up any normal adress, is it working?
Can you connect to another update site? Try for example Eclipse Emma: http://update.eclemma.org/ Do you see anything there?
What are your proxy preferences? Go to Window -> preferences -> General: Network connections.
The active provider:
Specifies the settings profile to be used when opening connections. Choosing the Direct provider causes all the connections to be opened without the use of a proxy server. Selecting Manual causes settings defined in Eclipse to be used. On some platforms there is also a Native provider available, selecting this one causes settings that were discovered in the OS to be used.
If internet is working fine outside of Eclipse, try changing to Native. After that, try Direct.
I have encountered problems where an update site would not load, then I had to remove it and add it again. This forces Eclipse to reread the contents of the site even if it has a cached copy. So, if you still get no connection to the indigo update site, but everything else is working, try that. Go to Window -> Preferences -> Install/update: Available Software sites. Then remove and add the indigo site. Just remember to copy the adress so you can add it again.
As suggested in a comment below by #lostiniceland, this is a simpler way to achieve the above:
Goto Preferences -> Install Update -> Available Software Sites => select the entry and click the "Reload" button to the right. This is sometimes also helpful when you have a local updatesite for testing custom plugins
My Eclipse Installation:
SuSE Linux Enterprise Server 11.
Eclipse Neon 64-bit
Oracle JDK jdk1.8.0_51 64-bit
I worked out and followed many of the suggestions in the web and nothing helped.
Except that one:
In eclipse Go to "Window -> preferences -> General: Network connections" and set the "Aktiv Source" to "Native"
Exit eclipse
In the shell prompt, type
"export http_proxy=http://proxy-rzf:8080" (your own proxy server and port)
invoke eclipse
DONE!!!
If you then go to the eclipse "Network connections" settings you will see something like the image:
I hope i could help somebody with that. It cost me a lot of hours searching and trying.
I just got the Eclipse Java EE version and tried to configure Tomcat by going to the Window-->preferences-->Server
But when I went to "runtime environment" and gave it the location of the current tomcat directory, it didn't seem to recognize it and didn't let me go to next screen.
Did I do something wrong? The problem is that there are still the red squigly lines in the import statements of servlet libraries. Is there some correct way to refresh the page so I can ensure that Eclipse indeed does not recognize those libraries still?
I have been experiencing similar problems recently, sometimes even Eclipse not listing Apache Tomcat 6.0 among available servers. The solution was go to eclipse's metadata directory:
your_workspace/.metadata/.plugins/org.eclipse.core.runtime/.settings/
And delete following files:
org.eclipse.wst.server.core.prefs
org.eclipse.jst.server.tomcat.core.prefs
Then restart Eclipse and try again, everything should work.
Hope this helps!
Ensure that you're pointing to the real Tomcat root directory which contains the /bin, /conf, /lib, etc folders, not to a directory which contains just apache-tomcat-7.0.11 or something.
Also pay attention to the error/warning message in top of the wizard, if any, right below the title.
OMG - what is going on with Eclipse (3.3 Europa) - has anyone come accross this problem (bearing in mind I have been messing about with uninstalling different Tomat containers and installing others - but anyway thats another story)
When I change a line of code or remove a class within my project - when I come to debug - it actually goes to a line that is commented out and runs that line regardless!!!! e.g.
//System.out.println("you should not be able to read this!");
UPDATE: This can be solved by setting Project -> Build Automatically (see answer below).
REMAINING PROBLEM:
Eclipse is not keeping my hot deploy folder current with the latest changes to my project:
I found out to my horror that some old remenants of my project are 'hanging around' in the folder that I think Eclipse uses for hot deploys or something
C:\myJavaCode.metadata.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\myWebApp
basically it is not actually copying accross any changes made in the classes of my working dir!?!??
...anyway - in order to keep my project up to date - I have to modify this folder too - TOTALLY UNACCEPTABLE - as you can't develop in this way - it would take you eons! Anyway, if anyone can help explain to me what stupid thing I have done to get me in this mess and how I can get out of this mess - I would really appreciate it.
Have a look at:
Windows>Preferences>Server>Launching...
and:
Project>Build Automatically
maybe you accidentally disabled the auto-deploy features.
I had a similar problem, only without the added complexities of a web app. I'm just running a JUnit test and it's running the old code. I went into Configure Build Path, on the bottom of the Source tab, and looked at Default Output Folder, which said myproject/bin. The Package Explorer doesn't even show a bin folder, but when looking at the file system there's a bin folder there. I deleted the bin folder, refreshed the package explorer tree, and it worked. This behavior was in Helios and occurred with AND without Build Automatically selected...looks like a bug to me.
Dave
A super-silly question: Does all your webproject and related projects compile correctly?
Also check your output folder for classes (Project Properties -> Java Build Path -> Source Tab) then go to your filesystem and check permissions and modification dates.
Hope this will help you.
Probably the easiest way to get past this is to define a new server.
Right-click in the Servers window and select New, or when you do 'Run On Server' select Manually define a new server. You can have multiple servers defined using the same Tomcat runtime (they'll all have separate configs and deployment directories defined by -Dcatalina.base=...), but don't run them at the same time unless you change the ports they're listening on.
The new server will use a path like
<<yourEclipseWorkspace>>\.metadata\.plugins\org.eclipse.wst.server.core\tmp1
for the Tomcat conf and webapps directory.
Try running on this server. If it works, you can compare settings with the old one,
maybe try deleting the app from it and re-deploying, and figure out what you might have done to cause the problem. Or just delete the original server config.
As far as your second problem, I'm not sure. I'd try a new server config first, get it working, stop the server, do a 'Clean' on your project, delete anything in the tmp1\work\Catalina directory, and restart the server (you could remove and add your project to the server again too to be really clean).
Check the console messages too to make sure there were no errors related to this.