Wednesday, 27 April 2016

Publishing to tomcat server at localhost... has encountered a problem

Publishing to tomcat server at localhost... has encountered a problem
Publishing faiiled with multiple errors.

File not found: C:\AGCO\SVN_Pur\trunk\Releases\SourceCode\Source\Procurement\target\m2e-wtp\web-resources\META-INF\MANIFEST.MF.
File not found: C:\AGCO\SVN_Pur\trunk\Releases\SourceCode\Source\Procurement\target\m2e-wtp\web-resources\META-INF\maven\Procurement\Procurement\pom.properties.
File not found: C:\AGCO\SVN_Pur\trunk\Releases\SourceCode\Source\Procurement\target\m2e-wtp\web-resources\META-INF\maven\Procurement\Procurement\pom.xml.
Resource is out of sync with the file system: '/Procurement/target/classes/com/agco/procurement/beans/ActualsHeader.class'.
Resource is out of sync with the file system: '/Procurement/target/classes/com/agco/procurement/beans/ActualsModel.class'.
Resource is out of sync with the file system: '/Procurement/target/classes/com/agco/procurement/beans/ActualsUploadTemplate.class'.
Resource is out of sync with the file system: '/Procurement/target/classes/com/agco/procurement/beans/CLOutLookParameters.class'.

Resource is out of sync with the file system: '/Procurement/target/classes/actualsbeanio.xml'.
Resource is out of sync with the file system: '/Procurement/target/classes/actualsbeanion.xml'.
Resource is out of sync with the file system: '/Procurement/target/classes/agco-procurement.properties'.
Resource is out of sync with the file system: '/Procurement/target/classes/application.properties'.
Resource is out of sync with the file system: '/Procurement/target/classes/apps-api-log4j.properties'.
Resource is out of sync with the file system: '/Procurement/target/classes/apps-api.properties'.
Resource is out of sync with the file system: '/Procurement/target/classes/forecastbeanio.xml'.
Resource is out of sync with the file system: '/Procurement/target/classes/importSupplierBeanIo.xml'.
Resource is out of sync with the file system: '/Procurement/target/classes/kPIVariances.xml'.
Resource is out of sync with the file system: '/Procurement/target/classes/krb5.conf'.
Resource is out of sync with the file system: '/Procurement/target/classes/login.conf'.
Resource is out of sync with the file system: '/Procurement/target/classes/newsupplierbeanio.xml'.
Resource is out of sync with the file system: '/Procurement/target/classes/nwstdmtrial.xml'.
Resource is out of sync with the file system: '/Procurement/target/classes/projVolCost.xml'.
Resource is out of sync with the file system: '/Procurement/target/classes/quoteFileBeanIo.xml'.
Resource is out of sync with the file system: '/Procurement/target/classes/standardyearbeanio.xml'.






Solution is very simple: Delete tomcat and configure new Tomcat. Now it should work follow below to configure new tomcat.

Clean the project.
Build the war (clean install for maven)
Configure new tomcat server and deploy the war in tomcat

2 ways deploying war in tomcat in Eclipse.

  •  While configuring new server 

  1. New->Server
  2.  Define new server(tomcat location and all)->Next
  3. In Add and Remove  panel select war and click on Add and click on Finish.


  •  After New Server(tomcat) added(configured) 

  1. Right click on Tomcat server
  2. click on Add and Remove...
  3. Add required war and finish


After Deploying the war Right click on tomcat and click on Start(Debug).


1 comment:

  1. Publishing failed with multiple errors
    Error copying file assets\js\bootstrap: Access is denied
    Error copying file assets\js\custom.js: Access is denied
    Error copying file assets\js\j query-1.11.1.min.js: Access is denied
    Error copying file assets\js\jquery.flexslider.js: Access is denied
    Error copying file assets\js\jquery.mixitup.min.js: Access is denied
    Error copying file assets\js\jquery.prettyPhoto.js: Access is denied
    Error copying file assets\js\wow.js: Access is denied

    ReplyDelete