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.

View | Details | Raw Unified | Return to bug 214554
Collapse All | Expand All

(-)a/j2eeserver/src/org/netbeans/modules/j2ee/deployment/impl/ServerInstance.java (-1 / +1 lines)
Lines 240-246 Link Here
240
    }
240
    }
241
    
241
    
242
    /** Get the server startup timeout in milliseconds */
242
    /** Get the server startup timeout in milliseconds */
243
    private long getStartupTimeout() {
243
    long getStartupTimeout() {
244
        return getTimeout(InstanceProperties.STARTUP_TIMEOUT, DEFAULT_TIMEOUT);
244
        return getTimeout(InstanceProperties.STARTUP_TIMEOUT, DEFAULT_TIMEOUT);
245
    }
245
    }
246
    
246
    
(-)a/j2eeserver/src/org/netbeans/modules/j2ee/deployment/impl/TargetServer.java (+11 lines)
Lines 542-547 Link Here
542
                    } finally {
542
                    } finally {
543
                        instance.removeStateListener(sl);
543
                        instance.removeStateListener(sl);
544
                    }
544
                    }
545
                    // TODO whole this thing would deserve a better solution
546
                    long start = System.nanoTime();
547
                    while (!instance.isReallyRunning()
548
                            && instance.getStartupTimeout() < ((System.nanoTime() - start) / 1000000)) {
549
                        try {
550
                            Thread.sleep(100);
551
                        } catch (InterruptedException ex) {
552
                            Thread.currentThread().interrupt();
553
                            // proceed to exit
554
                        }
555
                    }
545
                    break;
556
                    break;
546
                }
557
                }
547
                case RUN: {
558
                case RUN: {

Return to bug 214554