This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Hi, I am trying to test a simple Hello World Web application and the Integrated Tomcat WebServer (which is part the the IDE install) is failing during the deployment. Below is all the information I can find. I tagged the XML where the error is occurring. You can search for "Beginning of problem" Thanks for all your help (I am new to Web development and currently can not run anything) ========================================================= Run Tab output from the IDE init: deps-module-jar: deps-ear-jar: deps-jar: library-inclusion-in-archive: library-inclusion-in-manifest: compile: compile-jsps: do-dist: dist: run-deploy: Starting server Bundled Tomcat (5.5.7) Starting Tomcat process... Start server Bundled Tomcat (5.5.7) timeout or interrupted Failed to start server Bundled Tomcat (5.5.7) Deployment error: Failed to start server Bundled Tomcat (5.5.7). See the server log file for details. C:\WebProjects\HelloWeb\nbproject\build-impl.xml:355: Deployment error: Failed to start server Bundled Tomcat (5.5.7). See the server log file for details. BUILD FAILED (total time: 3 minutes 2 seconds) ========================================================================== bundled Tomcat(5.5.7) tab output from the IDE Using CATALINA_BASE: C:\WINDOWS\.netbeans\4.1\jakarta-tomcat-5.5.7_base Using CATALINA_HOME: C:\Program Files\netbeans-4.1\enterprise1\jakarta-tomcat- 5.5.7 Using CATALINA_TMPDIR: C:\WINDOWS\.netbeans\4.1\jakarta-tomcat-5.5.7_base\temp Using JAVA_HOME: C:\Program Files\Java\jdk1.5.0_05 Nov 6, 2005 7:14:02 PM org.apache.coyote.http11.Http11Protocol init INFO: Initializing Coyote HTTP/1.1 on http-8084 Nov 6, 2005 7:14:02 PM org.apache.catalina.startup.Catalina load INFO: Initialization processed in 5380 ms Nov 6, 2005 7:14:03 PM org.apache.catalina.core.StandardService start INFO: Starting service Catalina Nov 6, 2005 7:14:03 PM org.apache.catalina.core.StandardEngine start INFO: Starting Servlet Engine: Apache Tomcat/5.5.7 Nov 6, 2005 7:14:03 PM org.apache.catalina.core.StandardHost start INFO: XML validation disabled Nov 6, 2005 7:14:09 PM org.apache.coyote.http11.Http11Protocol start INFO: Starting Coyote HTTP/1.1 on http-8084 Nov 6, 2005 7:14:10 PM org.apache.jk.common.ChannelSocket init INFO: JK2: ajp13 listening on /0.0.0.0:8009 Nov 6, 2005 7:14:10 PM org.apache.jk.server.JkMain start INFO: Jk running ID=0 time=0/330 config=null Nov 6, 2005 7:14:11 PM org.apache.catalina.storeconfig.StoreLoader load INFO: Find registry server-registry.xml at classpath resource Nov 6, 2005 7:14:11 PM org.apache.catalina.startup.Catalina start INFO: Server startup in 8680 ms ========================================================================== Server var\log file message INFORMATIONAL *********** Exception occurred ************ at 7:16 PM on Nov 6, 2005 Failed to start server Bundled Tomcat (5.5.7) [catch] at org.netbeans.modules.j2ee.deployment.devmodules.api.Deployment.deploy (Deployment.java:125) at org.netbeans.modules.j2ee.ant.Deploy.execute(Deploy.java:62) at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275) at org.apache.tools.ant.Task.perform(Task.java:364) at org.apache.tools.ant.Target.execute(Target.java:341) at org.apache.tools.ant.Target.performTasks(Target.java:369) at org.apache.tools.ant.Project.executeTarget(Project.java:1214) at org.apache.tools.ant.Project.executeTargets(Project.java:1062) at org.apache.tools.ant.module.bridge.impl.BridgeImpl.run (BridgeImpl.java:234) at org.apache.tools.ant.module.run.TargetExecutor.run (TargetExecutor.java:242) at org.netbeans.core.execution.RunClassThread.run (RunClassThread.java:125) ================================================================================ EXECUTION SECTION from Build-impl.xml file ====================== --> <target name="run" depends="run-deploy,run-display-browser" description="Deploy to server and show in browser."/> <target name="run-deploy" depends="init,compile,compile-jsps,-do-compile-single- jsp,dist"> <<<<<< ********************************************************* >>>>>> <<<<<< Beginning of problem <<<<<< it is failing on the XML line below <<<<<< ********************************************************* >>>>>> <nbdeploy forceRedeploy="${forceRedeploy}" clientUrlPart="${client.urlPart}" debugmode="false"/> <<<<<< ********************************************************* >>>>>> <<<<<< End of problem <<<<<< ********************************************************* >>>>>> </target> <target name="verify" depends="init,dist"> <nbverify file="${dist.war}"/> </target> <target if="do.display.browser" name="run-display-browser" depends="run- deploy"> <nbbrowse url="${client.url}"/> </target> <target name="run-main" depends="init,compile-single"> <fail unless="run.class">Must select one file in the IDE or set run.class</fail> <webproject1:java classname="${run.class}"/> </target>
Hi, the problem seems to be that the IDE failed to recognize that your bundled Tomcat had started successfully. Could you please open the Runtime window, start Tomcat and see whether the IDE detects the server status correctly. You should also check your firewall settings, since it could prevent NB from detecting the correct status. Marking as INCOMPLETE until more info is provided.
Closing as invalid since there is no farther user feedback. Please, feel free to reopen this issue, if you have more info.