Reputation: 227
Publishing to tomcat v6.0 server at localhost..'has encountered a problem.
Publishing the configuration..
tomcat give above error. How to resolve above error. I googled alot but have not found any solution. please help me.
Publishing the configuration...
Error copying file to C:/Program Files/Apache Software Foundation/Tomcat 6.0/backup\catalina.policy: C:\Program Files\Apache Software Foundation\Tomcat 6.0\backup\catalina.policy (The system cannot find the path specified)
C:\Program Files\Apache Software Foundation\Tomcat 6.0\backup\catalina.policy (The system cannot find the path specified)
Error copying file to C:/Program Files/Apache Software Foundation/Tomcat 6.0/backup\catalina.properties: C:\Program Files\Apache Software Foundation\Tomcat 6.0\backup\catalina.properties (The system cannot find the path specified)
C:\Program Files\Apache Software Foundation\Tomcat 6.0\backup\catalina.properties (The system cannot find the path specified)
Error copying file to C:/Program Files/Apache Software Foundation/Tomcat 6.0/backup\context.xml: C:\Program Files\Apache Software Foundation\Tomcat 6.0\backup\context.xml (The system cannot find the path specified)
C:\Program Files\Apache Software Foundation\Tomcat 6.0\backup\context.xml (The system cannot find the path specified)
Error copying file to C:/Program Files/Apache Software Foundation/Tomcat 6.0/backup\server.xml: C:\Program Files\Apache Software Foundation\Tomcat 6.0\backup\server.xml (The system cannot find the path specified)
C:\Program Files\Apache Software Foundation\Tomcat 6.0\backup\server.xml (The system cannot find the path specified)
Error copying file to C:/Program Files/Apache Software Foundation/Tomcat 6.0/backup\tomcat-users.xml: C:\Program Files\Apache Software Foundation\Tomcat 6.0\backup\tomcat-users.xml (The system cannot find the path specified)
C:\Program Files\Apache Software Foundation\Tomcat 6.0\backup\tomcat-users.xml (The system cannot find the path specified)
Error copying file to C:/Program Files/Apache Software Foundation/Tomcat 6.0/backup\web.xml: C:\Program Files\Apache Software Foundation\Tomcat 6.0\backup\web.xml (The system cannot find the path specified)
C:\Program Files\Apache Software Foundation\Tomcat 6.0\backup\web.xml (The system cannot find the path specified)
Upvotes: 14
Views: 65780
Reputation: 27
what I did was removed tomcat from servers tab and clean the project(project -> clean)
and again added tomcat server and it worked for me.
Upvotes: 0
Reputation: 1
Read description Actually this is because of predefined permissions of you tomcat folder. Eclipse wanted to write in your tomcat folder but predefined permissions don't let it to do that. So, only thing we have to do is to change permissions of tomcat folder and let it be writable, readable and executable. just follow the following steps to get rid off from this error:
Upvotes: 0
Reputation: 3746
Click on Server tab
and delete it
.
Again Add it
and add to your project
.
Clean
the tomcat
directory and restart it
.
This can help You.
Upvotes: 0
Reputation: 26
It seems you has any problem with your Tomcat configuration and it can't find these path.
C:/Program Files/Apache Software Foundation/Tomcat 6.0/.
If you are using any Eclipse plugin, try to modify the tomcat home path in
Window -> Preferences -> Tomcat.
Other possible solution could be to configure properly your CATALINA_HOME and JAVA_HOME system variables.
I hope this helps you.
Upvotes: 0
Reputation: 1519
Option 1:
And make sure the parent folder "C:\Program Files\Apache Software Foundation" has the full control rights for all users.
You can set the rights by right clicking on the folder and go under 'Security' tab.
Option 2:
Do a fresh Tomcat install to a separate directory or folder or simply just copy everything from the tomcat installation directory to a different directory.
Now modify the Runtime for Apache Tomcat to point to the new location.
I'm not sure about the root cause of this issue but the above approach seems to be a workaround.
Upvotes: 0
Reputation: 850
Your Eclipse is trying to write into the Program Files folder, which is protected by default by the Windows operating system.
The solution:
Navigate to the Program Files folder.
Right-click on the Apache Software Foundation folder.
Click on Edit .
Select Users in the Names of groups or users list-box.
In the other Permissions for users list-box, check Full Control.
Click Apply/OK.
Upvotes: 71
Reputation: 1
For my setup, eclipse oxygen, win 10:
Grant rights to tomcat install directory and "Window"/"Preferences"/"Server"/"Runtime Environment"/"Search" search from local disk where the server runtime environment is installed.
Upvotes: 0
Reputation: 227
I have found solution. Simply change the destination folder to be installed. if it give error in c then not dont install it in c .just change the directory
Upvotes: 0
Reputation: 1124
The situation described above may also happen if the eclipse installation (in eclipse speech: install location) directory is moved after the first startup. Eclipse Mars (4.5.1) comes up with irritating warnings/messages if its install location is changed.
For server runtimes consider inspecting the following metadata file for occurances of the "location" attribute:
<path-to-workspace-dir>\workspace\.metadata\.plugins\org.eclipse.core.runtime\.settings\org.eclipse.wst.server.core.prefs
Upvotes: 0