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.
To reproduce: 1) install the Tomcat 5.0.16 on your system 2) run IDE and open the 'Add new server instance' dialog (from runtime/server registry/tomcat server instancies node) 3) fill up the tomcat installation directory 4) start the server The server is started but with wrong CATALINA_BASE property. It is set to the some directory as the CATALINA_HOME instead of the directory within netbeans user dir. See the server output in the IDE window for details.
Oops, I have just realized that the $CATALINA_BASE set to the $USER_DIR/jakarta-tomcat-5.0.16_base is not mandatory for making the deployment working. I am sorry. Regardless, there is another problem which prevents me to use the externall tomcat installation. After the server is started a java.io.FileNotFoundException: http://localhost:8080/manager/list is printed into IDE log and nothing works. You cannot deploy, even browse the deployed contexts. Its caused by the fact that there is no web application deployed after the start of the server (including the manager). If I run the tomcat from the console everything works fine. Is there any way how to get know what command is used to run the server? (currently I guess that this information is not visible anywhere, at least I cannot find it).
Created attachment 12816 [details] The IOE
I'll look at this.
The command use is $catalina_home\bin\catalina.bat run (.sh on linux, stop instead of run to stop the server) The reason why I am calling manager/list when starting the server is to make sure it really is already running -- this is important when starting and immediately deploying to it. It is a workaround, I admit. But the manager should be autoloaded by default. The problem is probably somewhere else... What is the port that you use for the externally added server? I susspect it is not 8080? At least when I test with 8080 it works just fine. But when I change the port in server.xml to 8082 it does not work. This mean there is hardcoded 8080 somwhere (I will check tomorrow).... But then again I think that you would notice that the error message "java.io.FileNotFoundException: http://localhost:8080/manager/list" is a little suspicious if you use another port, so please let me know.
Hi Pavel, I guess I have discovered what is wrong. The problem is caused by the fact, that the IDE adds a monitor filter section into conf/web.xml (even if I explicitly check the option - what is in fact a different bug) and then the server initialization fails with NoClassDefFoundError for a schema2beans class (the exception from tomcat log is attached). It seems to me that the forgets to copy a jar with these beans during the server instance creation??? There is another subsequent problem that the tomcat cannot be started externally since the web.xml contains the monitor servlet declaration. I am sorry that I didn't look into the catalina log yestarday :-(
Created attachment 12888 [details] The part of the catalina log with the NCDFE
so far I fixed this part at least: > (even if I explicitly check the option - what is in fact > a different bug)
and the fix of the main problem was even easier ;-) thanks for the tip - you were right
verified