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 221667 - Unit testing setup hint does not support GF 3.1.2.x
Summary: Unit testing setup hint does not support GF 3.1.2.x
Status: RESOLVED FIXED
Alias: None
Product: javaee
Classification: Unclassified
Component: Maven (show other bugs)
Version: 7.3
Hardware: All All
: P3 normal (vote)
Assignee: Martin Janicek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-11-07 16:55 UTC by Petr Jiricka
Modified: 2012-11-21 15:37 UTC (History)
1 user (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 Petr Jiricka 2012-11-07 16:55:49 UTC
See EmbeddableEJBContainerHint.createGF3SystemScope (around line 210)
Comment 1 Martin Janicek 2012-11-08 09:14:05 UTC
Thanks Petr, I'm aware of that. Unfortunately as much as I know we don't have any API for getting current version of Glassfish (or am I wrong Tomasi?). Would be good to create something for that, so we won't need to change these things manually with every GF update..
Comment 2 Martin Janicek 2012-11-08 09:27:30 UTC
One more question. I can't see GF3.1.2 on maven repo (http://repo2.maven.org/maven2/org/glassfish/extras/glassfish-embedded-static-shell/). Is there another place (resp. URL) for that particular new version?
Comment 3 Petr Jiricka 2012-11-08 09:48:58 UTC
> we don't have any API for getting current version of Glassfish

I am afraid not. I agree this would be good to have.

> Is there another place (resp. URL) for that particular new version?

I found https://maven.java.net/content/repositories/releases/org/glassfish/main/extras/glassfish-embedded-static-shell/3.1.2.2/
Comment 4 Martin Janicek 2012-11-19 13:13:27 UTC
Ok, should be fixed now:

web-main #8fbf64bd0f0a
web-main #39433e7cc165

..it's not doing much magic I'm only changing the GF url to a different pom ;) however I don't know how to setup the project so the hint will be available, so please verify the fix if you can.
Comment 5 Martin Janicek 2012-11-19 13:22:55 UTC
I've created new issue 222386, so we will get a new API for getting latest GF version.
Comment 6 Quality Engineering 2012-11-21 13:44:59 UTC
Integrated into 'main-golden', will be available in build *201211211016* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/8fbf64bd0f0a
User: Martin Janicek <mjanicek@netbeans.org>
Log: #221667 - Unit testing setup hint does not support GF 3.1.2.x
Comment 7 Petr Jiricka 2012-11-21 14:39:25 UTC
> I don't know how to setup the project so the hint will be available

See this tutorial: http://netbeans.org/kb/docs/javaee/maven-entapp-testing.html
Comment 8 Martin Janicek 2012-11-21 15:37:24 UTC
(In reply to comment #7)
> > I don't know how to setup the project so the hint will be available
> 
> See this tutorial: http://netbeans.org/kb/docs/javaee/maven-entapp-testing.html

Thanks. I tested it and it seems to be working correctly.