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.

Bug 40270 - Empty basedir causes IDE not to create it
Summary: Empty basedir causes IDE not to create it
Status: VERIFIED FIXED
Alias: None
Product: serverplugins
Classification: Unclassified
Component: Tomcat (show other bugs)
Version: 3.x
Hardware: PC Linux
: P3 blocker (vote)
Assignee: Martin Grebac
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-02-19 12:08 UTC by Martin Grebac
Modified: 2004-07-09 12:37 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Grebac 2004-02-19 12:08:43 UTC
Add new shared server instance - as a basedir
choose some existing empty directory. Set the
instance as default.
Convert sampledir to webmodule and try to execute it.

Exception comes:

[catch]java.lang.Exception:
tomcat:home=/local/tomcat/tomcat-5018:base=/local/tomcat/shared:http://localhost:8080/manager/
org.netbeans.modules.tomcat5.ide.MonitorSupport.synchronizeMonitorWithFlag(MonitorSupport.java:103)
org.netbeans.modules.tomcat5.ide.StartTomcat$StartRunnable.run(StartTomcat.java:266)

This is because we are checking (whether create
basedir or not) just for an existence of a
directory, and nothing else. We should handle case
when the directory is empty, at least.
Comment 1 Martin Grebac 2004-02-19 13:50:21 UTC
The problem was bigger than described here, but it's fixed in trunk.
Comment 2 Petr Blaha 2004-07-09 12:37:07 UTC
Verified