Pramod Chandra created NETBEANS-3173:
----------------------------------------

             Summary: Netbeans Error
                 Key: NETBEANS-3173
                 URL: https://issues.apache.org/jira/browse/NETBEANS-3173
             Project: NetBeans
          Issue Type: Bug
          Components: javaee - Maven
    Affects Versions: 11.1
         Environment: Windows 10, 64 bit, Apache Netbeans 11.1, JDK 11, JRE 
8u221
            Reporter: Pramod Chandra
            Assignee: Thurman Turner
             Fix For: 11.1


Steps to reproduce:

 

Create a new web application using maven on Apache Netbeans 11.1

Choose the Server as Tomcat 9.0

Right Click on the project and select Clean and Build

After the message "Build Successful" run the project

Error in Netbeans:

In-place deployment at C:\Users\Pramod 
Chandra\Documents\NetBeansProjects\mavenTest\target\mavenTest-1
Deployment is in progress...
deploy?config=file%3A%2FC%3A%2FUsers%2FPramod%2520Chandra%2FAppData%2FLocal%2FTemp%2Fcontext11250002610202739917.xml&path=/mavenTest
FAIL - Failed to deploy application at context path [/mavenTest]

 

Error in server.log

 

06-Sep-2019 09:41:51.080 SEVERE [http-nio-8080-exec-158] 
org.apache.catalina.startup.ExpandWar.copy Error copying 
[C:\Users\Pramod%20Chandra\AppData\Local\Temp\context11250002610202739917.xml] 
to [C:\Program Files\Apache Software Foundation\Tomcat 
9.0\conf\Catalina\localhost\mavenTest.xml]06-Sep-2019 09:41:51.080 SEVERE 
[http-nio-8080-exec-158] org.apache.catalina.startup.ExpandWar.copy Error 
copying 
[C:\Users\Pramod%20Chandra\AppData\Local\Temp\context11250002610202739917.xml] 
to [C:\Program Files\Apache Software Foundation\Tomcat 
9.0\conf\Catalina\localhost\mavenTest.xml] java.io.FileNotFoundException: 
C:\Users\Pramod%20Chandra\AppData\Local\Temp\context11250002610202739917.xml 
(The system cannot find the path specified) at 
java.base/java.io.FileInputStream.open0(Native Method) at 
java.base/java.io.FileInputStream.open(FileInputStream.java:219) at 
java.base/java.io.FileInputStream.<init>(FileInputStream.java:157) at 
org.apache.catalina.startup.ExpandWar.copy(ExpandWar.java:276) at 
org.apache.catalina.manager.ManagerServlet.deploy(ManagerServlet.java:1002) at 
org.apache.catalina.manager.ManagerServlet.doGet(ManagerServlet.java:355) at 
javax.servlet.http.HttpServlet.service(HttpServlet.java:634) at 
javax.servlet.http.HttpServlet.service(HttpServlet.java:741) at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231)
 at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
 at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53) at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
 at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
 at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:202)
 at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96)
 at 
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:643)
 at 
org.apache.catalina.valves.RequestFilterValve.process(RequestFilterValve.java:348)
 at org.apache.catalina.valves.RemoteAddrValve.invoke(RemoteAddrValve.java:53) 
at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:139) 
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:92) 
at 
org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:678)
 at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:74)
 at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:343) 
at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:408) 
at 
org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66)
 at 
org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:860)
 at 
org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1587)
 at 
org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49) 
at 
java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
 at 
java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
 at 
org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
 at java.base/java.lang.Thread.run(Thread.java:834)

 

Note:

However if I manually deploy the WAR file then the application works fine.  Its 
just that Netbeans is not able to copy the contextXXXX.xml file from 
C:\Users\Pramod Chandra\AppData\Local\Temp to C:\Program Files\Apache Software 
Foundation\Tomcat 9.0\conf\Catalina\localhost 

 

This is resulting in a File not found exception.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org
For additional commands, e-mail: commits-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Reply via email to