user3698675
user3698675

Reputation: 1

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)

Upvotes: 0

Views: 1351

Answers (1)

IamNaN
IamNaN

Reputation: 6864

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 config

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

enter image description here

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.

Upvotes: 1

Related Questions