简体   繁体   中英

Tomcat Server Netbeans 8.0 is not working in Windows 8

After creating a new java Web Application Project in net beans,When i am trying to deploy it in Tomcat

Server( apache-tomcat-7.0.53-windows-x64 ) getting below error,can any one please help me

out,Thanks in Advance.

ant -f \\NetBeansProjects\\WebApplication1 -Dbrowser.context=Documents\\NetBeansProjects\\WebApplication1 -DforceRedeploy=false -Ddirectory.deployment.supported=true -Dnb.wait.for.caches=true -Dnb.internal.action.name=run run init: deps-module-jar: deps-ear-jar: deps-jar: library-inclusion-in-archive: library-inclusion-in-manifest: compile: compile-jsps: Starting Tomcat process... Waiting for Tomcat... Tomcat server started. In-place deployment at ...\\NetBeansProjects\\WebApplication1\\build\\web Deployment is in progress... deploy?config=file%3A%2FC%3A%2FUsers%2FTHULAS%7E1%2FAppData%2FLocal%2FTemp%2Fcontext3096225649611752059.xml&path=/WebApplication1 Server returned HTTP response code: 400 for URL: xxxx:8080/manager/text/deploy?config=file%3A%2FC%3A%2FUsers%2FTHULAS%7E1%2FAppData%2FLocal%2FTemp%2Fcontext3096225649611752059.xml&path=/WebApplication1 ...\\NetBeansProjects\\WebApplication1\\nbproject\\build-impl.xml:1045: The module has not been deployed. See the server log for details. BUILD FAILED (total time: 1 minute 23 seconds)

This is an old question but I just ran into the same thing and since I couldn't find an answer, here is what I did to get it to work:

1) Set up the %Catalina Home%/conf/tomcat-users.xml file with something like this:

<role rolename="ide"/>
<user password="secret" roles="manager-script" username="ide"/>

Where ide is the username and secret the password used in the server configuration in Netbeans.

Netbeans Tomcat配置

2) Set JAVA_HOME and/or JRE_HOME environment variables in Windows

在此处输入图片说明

3) Run Netbeans as Administrator . There might be a way around this, but this works for me. If not run as Administrator the Tomcat startup.bat will be run as a restricted user which results in no permission to write log files etc. and then fails to deploy the webapp.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM