[英]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 在Net Bean中创建新的Java Web应用程序项目后,当我尝试在Tomcat中部署它时
Server( apache-tomcat-7.0.53-windows-x64 ) getting below error,can any one please help me 服务器(apache-tomcat-7.0.53-windows-x64)出现以下错误,请问有人
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.
ant -f \\ NetBeansProjects \\ WebApplication1 -Dbrowser.context = Documents \\ NetBeansProjects \\ WebApplication1 -DforceRedeploy = false -Ddirectory.deployment.supported = true -Dnb.wait.for.caches = true -Dnb.internal.action.name =运行初始化:deps-module-jar:deps-ear-jar:deps-jar:归档中的包含库:清单中的包含库:编译:compile-jsps:正在启动Tomcat进程...等待Tomcat。 .. Tomcat服务器启动。 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.
正在就地部署... \\ NetBeansProjects \\ WebApplication1 \\ build \\ web正在进行部署... deploy?config = file%3A%2FC%3A%2FUsers%2FTHULAS%7E1%2FAppData%2FLocal%2FTemp%2Fcontext3096225649611752059.xml&path = / WebApplication1服务器返回HTTP响应代码:400,用于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:该模块尚未部署。 See the server log for details.
有关详细信息,请参见服务器日志。 BUILD FAILED (total time: 1 minute 23 seconds)
生成失败(总时间:1分23秒)
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: 1)设置
%Catalina Home%/conf/tomcat-users.xml
文件,如下所示:
<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. 当
ide
是用户名和secret
在NetBeans中的服务器配置中使用的密码。
2) Set JAVA_HOME and/or JRE_HOME environment variables in Windows 2)在Windows中设置JAVA_HOME和/或JRE_HOME环境变量
3) Run Netbeans as Administrator . 3) 以管理员身份 运行 Netbeans。 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.
如果不以管理员身份运行,则Tomcat startup.bat将以受限用户身份运行,这将导致没有写日志文件等权限,然后将无法部署Webapp。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.