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 226298 - GlassFish server unusable after deploy on save was used once
Summary: GlassFish server unusable after deploy on save was used once
Status: RESOLVED FIXED
Alias: None
Product: serverplugins
Classification: Unclassified
Component: GlassFish (show other bugs)
Version: 7.4
Hardware: PC Linux
: P1 normal (vote)
Assignee: TomasKraus
URL:
Keywords: REGRESSION
Depends on:
Blocks:
 
Reported: 2013-02-19 01:02 UTC by David Konecny
Modified: 2013-05-03 02:17 UTC (History)
4 users (show)

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 David Konecny 2013-02-19 01:02:53 UTC
I have a simple testing Web App with few REST services. I run project and everything is OK. If I change now web.xml (eg. changing init-param of a servlet) and save it the redeployment process is started but it never finishes - IDE shows progress bar with text "Deploying SampleDBrest Initializing...". What's interesting is that even IDE and server restart does not make this problem go away - running project after fresh IDE and server restart results into the same never ending progress bar.

I had to expand server node in Services and undeploy the app there to be able to run project successfully again (until first redeploy on save).

Product Version: NetBeans IDE Dev (Build 20130219-a4bf31d19444)
Java: 1.6.0_26; Java HotSpot(TM) 64-Bit Server VM 20.1-b02
Runtime: Java(TM) SE Runtime Environment 1.6.0_26-b03
System: Linux version 3.2.0-37-generic running on amd64; UTF-8; en_NZ (nb)
User directory: /home/dev/main/nbbuild/testuserdir
Cache directory: /home/dev/main/nbbuild/testuserdir/var/cache
Comment 1 TomasKraus 2013-02-25 15:32:26 UTC
Is it possible to get your testing web app? If so, please attach it to this bug.
Comment 2 David Konecny 2013-02-25 20:20:27 UTC
Create blank Web Application and deploy. Once server runs and app is opened in a browser create a new Servlet in the project and save it. The save will trigger redeploy on save and you will get neverending deploying progress bar.
Comment 3 Petr Jiricka 2013-03-03 15:00:23 UTC
P1 bugs should get immediate attention - Tomas are you investigating please?
Comment 4 TomasKraus 2013-03-04 10:23:11 UTC
First of all I need to know what glassfish did you use.
Comment 5 David Konecny 2013-03-04 18:39:53 UTC
glassfish3.1.2.2
Comment 6 TomasKraus 2013-03-08 14:59:16 UTC
I saw that jersey-core.jar was missing in JavaEE classpath. This caused javax.ws.rs.* to be not supported by the plugin.

GlassFish Tooling Library:
--------------------------
changeset:   250:fb094e274b6b
branch:      0.3-b036
summary:     Added missing jersey-core.jar in JavaEE classpath
Comment 7 TomasKraus 2013-03-08 15:22:28 UTC
Ok, now I can reproduce this.
Comment 8 TomasKraus 2013-03-08 16:24:40 UTC
Verified on javaee7 branch and saw that 7.3.1 is not affected by this bug. It must be related to 8.0 changes I did to completely remove old admin commands and use new GlassFish Tooling Library code.
Comment 9 Quality Engineering 2013-03-12 02:06:22 UTC
Integrated into 'main-golden', will be available in build *201303112300* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/fe9c2335e520
User: Tomas Kraus <TomasKraus@netbeans.org>
Log: #226298 - Added missing jersey-core.jar in JavaEE classpath
Comment 10 TomasKraus 2013-03-16 01:09:41 UTC
Some issue logs were attached to bug# 222501.
Comment 11 David Konecny 2013-04-18 21:24:20 UTC
Has this been fixed or not?? I'm running recent trunk build and the problem seems to be still there.
Comment 12 TomasKraus 2013-04-19 11:31:35 UTC
I won't do any changes to trunk until javaee7 branch will be closed. Current amount of conflicts is enough.
Comment 13 Petr Jiricka 2013-04-19 11:42:05 UTC
Possibility of conflicts can not be used as an excuse. See this wiki page: http://wiki.netbeans.org/IssueLifeCycle#Evaluating_Issues

"All newly reported issues should be evaluated by responsible developer as soon as possible:
* P1,P2 in a week"
Comment 14 ievans 2013-05-01 15:59:19 UTC
I'm seeing this error in the EAR examples from the Java EE 7 Tutorial using a recent nightly.

Product Version: NetBeans IDE Dev (Build 201304282301)
Java: 1.7.0_21; Java HotSpot(TM) Client VM 23.21-b01
Runtime: Java(TM) SE Runtime Environment 1.7.0_21-b11
System: Windows XP version 5.1 running on x86; Cp1252; en_US (nb)
User directory: C:\Documents and Settings\ievans.ST-USERS\Application Data\NetBeans\dev
Cache directory: C:\Documents and Settings\ievans.ST-USERS\Local Settings\Application Data\NetBeans\Cache\dev
Comment 15 piotrik 2013-05-02 16:20:35 UTC
Resolved with CL 252037:9615a3036595.
Comment 16 Quality Engineering 2013-05-03 02:17:12 UTC
Integrated into 'main-golden', will be available in build *201305022300* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/9615a3036595
User: Peter Benedikovic <piotrik@netbeans.org>
Log: #226298: Deploy on save for Glassfish does not hang anymore.