[FIRSTCUP-20] "tut-install" mentioned but not explained Created: 11/Sep/14  Updated: 15/Sep/14  Resolved: 15/Sep/14

Status: Closed
Project: firstcup
Component/s: doc
Affects Version/s: None
Fix Version/s: 7.0.5

Type: Bug Priority: Major
Reporter: Kim Haase Assignee: Kim Haase
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

A user points out that we never explain the term "tut-install", which is used exactly once in the tutorial to mean the location where the user installed the tutorial.



 Comments   
Comment by Kim Haase [ 11/Sep/14 ]

In general, the installation instructions are too terse and need some expansion for the benefit of new users.

Comment by Kim Haase [ 12/Sep/14 ]

Some changes have been made to the HTML output at http://docs.oracle.com/javaee/7/firstcup/doc/home.htm (Sections 1.2 and 3.2.1.1). The PDF has not been updated yet.

Comment by Kim Haase [ 12/Sep/14 ]

Fixes have been made in source.

Comment by Kim Haase [ 15/Sep/14 ]

Fixed in online version.





[FIRSTCUP-18] Missing Persistence explanation Created: 16/Apr/14  Updated: 25/Apr/14  Resolved: 25/Apr/14

Status: Closed
Project: firstcup
Component/s: doc
Affects Version/s: 7.0.1
Fix Version/s: 7.0.1

Type: Improvement Priority: Major
Reporter: JKitzbichler Assignee: Kim Haase
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

any



 Description   

The persistence functionality together with the needed database is completely missing.
Therefore also the sample code can't be deployed because of an EclipseLink failure.



 Comments   
Comment by jendrock [ 16/Apr/14 ]

Could you please list the software that you are running?

  • What version of the JDK?
  • What version of the Java EE 7 SDK?
  • Did you use GlassFish 4 that came with the SDK or NetBeans IDE or standalone?

We have never seen or heard of this error before, so I suspect it is a configuration issue that can easily be fixed once the problem has been narrowed down.

Please read Section 1.2, "Requirements for this Tutorial: A Checklist," which you can access here: http://docs.oracle.com/javaee/7/firstcup/doc/intro002.htm#GCQZL

Comment by JKitzbichler [ 17/Apr/14 ]

Hi Jendrock,

I have the following software versions installed:

Netbeans:
Product Version: NetBeans IDE 7.4 (Build 201311011758)
Updates: NetBeans IDE wurde auf Version NetBeans 7.4 Patch 3 aktualisiert
Java: 1.7.0_45; Java HotSpot(TM) 64-Bit Server VM 24.45-b08
Runtime: Java(TM) SE Runtime Environment 1.7.0_45-b18
System: Windows 7 version 6.1 running on amd64; Cp1252; de_DE (nb)

JDK: 1.7.0_45
SDK: Java EE SDK 7 - but the detailled version I can't find out

Glassfish: 4.0 (Build 89)

I think, but I'm no more really sure, that I have installed Netbeans separetly from the Glassfish server,
but I installed the Glassfish with a Windows installer under C:\Programs\...

The Glassfish error message during the deployment process - partely in German:
Schwerwiegend: Ausnahme beim Deployment der Anwendung [firstcup-war] : Exception [EclipseLink-4002] (Eclipse Persistence Services - 2.5.0.v20130507-3faac2b): org.eclipse.persistence.exceptions.DatabaseException
Internal Exception: java.sql.SQLException: Fehler beim Zuweisen einer Verbindung. Ursache: Connection could not be allocated because: java.net.ConnectException: Fehler beim Herstellen der Verbindung zum Server localhost am Port 1527. Nachricht: Connection refused: connect.
Error Code: 0

Do I need the "Java EE 7 SDK Extensions 4.0-89" and or
the "Java EE 7 Profile Extensions 4.0-89" which I can see as available Add-Ons within the Glassfish Update Tool?

Also "Java EE 7 SDK Full Platform" and "Java EE 7 SDK Web Profile", each with version 4.0-89,
would be available as Add-Ons.

Do I have to install these four packages?
I read Section 1.2, "Requirements for this Tutorial: A Checklist". Do I miss some SDK packages?

In the first-cup tutorial the persistence part is not really explained. The database handling,
the involved tables, any JDBC settings (Connection Pool / JNDI) or persistence configurations are missing
or I couldn't read it...

Also it was not possible for me to create the projects out of the Maven Archetypes,
see http://docs.oracle.com/javaee/7/firstcup/doc/creating-example002.htm, section 3.2.1.1
and section 3.2.2.2.
The "dukes-age-archetype"ArcheType is NOT listed within the known archetypes list...

Greetings Josef

Comment by Kim Haase [ 17/Apr/14 ]

Hi, Josef,

Your software versions look fine. You do not need the extensions, and you can use either the full profile or the web profile version of the Java EE 7 SDK.

This tutorial doesn't go into detail about the technologies – it is just a quick start to get you used to building and running an application. For information about persistence and JAX-RS you can consult the Java EE 7 Tutorial.

When you followed step 1 in "3.2.1.1 Install the Maven Archetypes", how many projects did you see under Projects after you selected "example" and clicked Open Project? You should see six:

archetypes
dukes-age
dukes-age-archetype
firstcup
firstcup-war
firstcup-war-archetype

If you saw only firstcup, it may be that the checkbox "Open Required Projects" was not selected. You need to open the required projects.

When you follow the instructions to create a dukes-age (and firstcup-war) application, you will then see two projects with identical contents. We suggest that you close the old ones before creating the new ones. By default, the new ones are created in your NetBeansProjects directory under your home directory, but they will appear next to the existing ones in the IDE, which can be quite confusing. Alternatively, you could give the new ones slightly different names from the existing ones.

We did encounter the same persistence error, which indicates that the database server is not running. This is because the Maven project doesn't start the database. We will need to change the project file and/or the instructions so that the database is started before you deploy the firstcup-war application.

The workaround for now is to go to the Services tab, expand the Databases node, right-click "Java DB" and choose Start Server, then deploy the application.

Thank you very much for pointing out this error. (We've found a few more while testing this, so thank you even more.)

Comment by jendrock [ 17/Apr/14 ]

Hi, Josef.
We made many fixes, including the ones that address the problem that you pointed out with the database not starting, in our documentation source files. We will provide an updated First Cup release in the near future.

Comment by Kim Haase [ 25/Apr/14 ]

We have released a new version of the First Cup Tutorial , 7.0.1-8, that fixes a number of issues we found. I hope you find it usable.

The description of Persistence is still brief, but the Java EE 7 Tutorial is the place to go for more information.

Thanks for bringing our attention to First Cup.





[FIRSTCUP-19] CLONE -Archetypes use incorrect version of parent pom. Created: 29/Apr/14  Updated: 15/Sep/14  Resolved: 15/Sep/14

Status: Closed
Project: firstcup
Component/s: examples
Affects Version/s: 7.0.1
Fix Version/s: 7.0.5

Type: Bug Priority: Major
Reporter: JKitzbichler Assignee: jendrock
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

The Maven release plugin doesn't update the versions in archetype projects, so the created archetypes are looking for org.glassfish.javaeetutorial.firstcup:firstcup:pom:7.0.1-SNAPSHOT. This should be 7.0.1.

See:
http://stackoverflow.com/questions/17071365/java-ee-7-first-cup-tutorial-maven-issues



 Comments   
Comment by JKitzbichler [ 29/Apr/14 ]

The bug is still available for version 7.0.2.
The workaround, replacing 7.0.2-SNAPSHOT' with '7.0.1', works however.

Comment by jendrock [ 07/Aug/14 ]

We will be fixing this issue tomorrow, when we rebuild the IPS package. Never suspected that you had to manually set the version number for archetypes. Now we know better!

Comment by jendrock [ 07/Aug/14 ]

Fixed in source.





[FIRSTCUP-3] Misleading home page instructions and Documents & files directory structure Created: 13/Oct/10  Updated: 09/May/11  Resolved: 13/Oct/10

Status: Resolved
Project: firstcup
Component/s: www
Affects Version/s: 2.0.2-6
Fix Version/s: 2.0.3

Type: Bug Priority: Major
Reporter: jendrock Assignee: jendrock
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Operating System: All
Platform: All
URL: https://firstcup.dev.java.net


Issuezilla Id: 3

 Description   

As noted in the GlassFish user forum, some users have encountered problems when
trying to run the firstcup project. Most of these problems are caused by using
a version of the firstcup project with the wrong version of GlassFish. A user
could follow the links on the project's home page and inadvertently download
and use the Java EE 5 firstcup project with GlassFish v3 or GlassFish Server
Open Source Edition 3.0.1 (Java EE 6-compatible).

The top-level project directory, firstcup, should simply be a container
directory. It should not contain the other project directories (firstcup-2.0,
plans, resources, reviews) and the Java EE 5 firstcup bundles.

A new directory, firstcup-1.0, needs to be created and explicitly labeled as a
directory that contains the Java EE 5-compatible bundles. Then, the firstcup-
1.0 bundles that are in the top-level firstcup directory need to be moved to
the firstcup-1.0 directory.

A label indicating that the firstcup-2.0 directory contains Java EE 6-
compatible bundles needs to be added.

The project home page needs to include a description of both the Java EE 5-
compatible and Java EE 6-compatible versions of the tutorials and clearly
indicate with which versions of GlassFish Server each was designed to work.
Pointers to the appropriate versions of GlassFish Server would help eliminate
confusion as well.



 Comments   
Comment by jendrock [ 13/Oct/10 ]

Revised project's home page. Created firstcup-1.0 folder under firstcup
folder. Moved firstcup-1.0 bundles from firstcup folder to firstcup-1.0
folder. Uploaded new firstcup-2.0.zip bundle with all doc fixes.





[FIRSTCUP-2] Typos in First Cup instructions Created: 30/Sep/10  Updated: 09/May/11  Resolved: 09/May/11

Status: Resolved
Project: firstcup
Component/s: doc
Affects Version/s: 2.0.2-6
Fix Version/s: 2.0.3

Type: Bug Priority: Major
Reporter: Ian Evans Assignee: Ian Evans
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Operating System: All
Platform: All


Issuezilla Id: 2

 Description   

Moving from:
https://javaeetutorial.dev.java.net/issues/show_bug.cgi?id=13

On page http://download-llnw.oracle.com/javaee/6/firstcup/doc/gcrkm.html there
is a small typo in the source of “Implement the getText Method� section:

Calendar now = GregorialCalendar.getInstance();

should be

Calendar now = GregorianCalendar.getInstance();

-------

This should be fixed.

------- Additional comments from chaase3 Thu Sep 30 17:58:11 +0000 2010 -------

The same user noted some additional typos:

1. a. In section “Add a Named Query to the FirstcupUser Entity�:

@NamedQuery(name="findAverageAgeDifferenceOfAllFirstcupUsers",

query="SELECT AVG(u.ageDifference) FROM FirstcupUser u)

should be

@NamedQuery(name="findAverageAgeDifferenceOfAllFirstcupUsers",

query="SELECT AVG(u.ageDifference) FROM FirstcupUser u")

(Closing quotation mark missing).

1. b. Also Fix imports required after adding this text.

2. „Creating the DukesBDay Managed Bean Classâ€� â€" „Adding an Enterprise Bean
Reference� - Step 1:
Right-click in the editor window, select „Insert code…� and select Call
Enterprise Bean.
4. Logger declarations should be private static final everywhere instead of
private static

He also noted the ordering problem with the birthday bean tasks, but we have
fixed that for the next docarch push.



 Comments   
Comment by Ian Evans [ 01/Oct/10 ]

Fixed issues in doc and example source.

Comment by Ian Evans [ 09/May/11 ]

Fixed the documentation source in preparation for Java EE 6 SDK update.





[FIRSTCUP-1] Update steps for NetBeans 6.9 Created: 29/Jul/10  Updated: 09/May/11  Resolved: 09/May/11

Status: Resolved
Project: firstcup
Component/s: doc
Affects Version/s: 2.0.2-6
Fix Version/s: 2.0.3

Type: Bug Priority: Major
Reporter: Ian Evans Assignee: Ian Evans
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Operating System: All
Platform: Macintosh


Issuezilla Id: 1

 Description   

NetBeans 6.9 now prompts you to create a resource register after clicking Finish
in the New RESTful Web Service wizard. Add additional step to click OK.

Unnecessary call to String constructor in return statement in getText. Change to:
return "" + dukesAge;

In example of output of DukesAgeService, change to 15 (Duke's current age now).

In New Persistence Entity wizard, no Create Persistence Unit button, but a
checkbox (checked by default) Create Persistence Unit, then click Next to
configure the PU.



 Comments   
Comment by Ian Evans [ 01/Oct/10 ]

Checked in changes in source code.

Comment by Ian Evans [ 31/Jan/11 ]

"Tools -> Server Manager" is now "Tools -> Servers".

Comment by Ian Evans [ 09/May/11 ]

Fixed documentation source in preparation for Java EE 6 SDK update.





[FIRSTCUP-4] Explicitly outline which distribution of NetBeans has Java EE support Created: 04/Mar/11  Updated: 09/May/11  Resolved: 09/May/11

Status: Resolved
Project: firstcup
Component/s: doc
Affects Version/s: 2.0.2-6
Fix Version/s: 2.0.3

Type: Bug Priority: Major
Reporter: Ian Evans Assignee: Ian Evans
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Tags: glassfish, netbeans

 Description   

User Alexy wrote:
I found that, there were no menu "Tools" / "Servers" in NetBeans as described in the steps under "Add GlassFish Server as a Server in NetBeans IDE" section :
http://download.oracle.com/javaee/6/firstcup/doc/gcqzl.html

In fact, it depends on some set of plug-ins in NetBeans. I don't know the set. But after I added a lot of different plug-ins the menu appeared.
It would be helpful to add a footnote to "Your First Cup" article to tell which plug-in enables this menu. This can save some ~11.4% of novices from frustration.

We should be more explicit about which distribution the tutorial assumes you're using, and then link to the NetBeans documentation for upgrading a minimal install.



 Comments   
Comment by Ian Evans [ 09/May/11 ]

Fixed documentation source in preparation for Java EE 6 SDK update.





[FIRSTCUP-5] Outdated JavaFX info in doc Created: 11/Oct/11  Updated: 15/Mar/12  Resolved: 15/Mar/12

Status: Resolved
Project: firstcup
Component/s: doc
Affects Version/s: current
Fix Version/s: 2.1.3

Type: Bug Priority: Major
Reporter: Ian Evans Assignee: Ian Evans
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

Update the JavaFX section to reflect JavaFX 2.0:
http://download.oracle.com/javaee/6/firstcup/doc/gkhoy.html#gcrkk



 Comments   
Comment by Ian Evans [ 11/Oct/11 ]

Updated in source. Fix will appear in the next update of First Cup.

Comment by Ian Evans [ 14/Mar/12 ]

There must have been a regression or a version overwrite, as the updated JavaFX info was lost.

Comment by Ian Evans [ 15/Mar/12 ]

Fixed in source. Will appear in the next update.





[FIRSTCUP-16] Improving parent pom to add <finalName> tag into <build> section Created: 22/Aug/13  Updated: 22/Aug/13  Resolved: 22/Aug/13

Status: Resolved
Project: firstcup
Component/s: examples
Affects Version/s: 7.0.1, 7.0.2
Fix Version/s: 7.0.2

Type: Improvement Priority: Major
Reporter: TangYong Assignee: Ian Evans
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

I suggest to improving parent pom to add <finalName> tag into <build> section liking the following:

<build>
<finalName>$

{project.artifactId}

</finalName>
...
</build>

Why doing this improvement?

For released version, this has not any issue because in <version>, we can not set "SNAPSHOT", however, for trunk,
this will cause error while requesting ("http://localhost:8080/dukes-age/webapi/dukesAge") in DukesBDay class because uri has been hard-coded.

Thanks
Tang Yong



 Comments   
Comment by Ian Evans [ 22/Aug/13 ]

Fixed in source. Will appear in the next update.





[FIRSTCUP-14] Archetypes use incorrect version of parent pom. Created: 14/Jun/13  Updated: 14/Jun/13  Resolved: 14/Jun/13

Status: Resolved
Project: firstcup
Component/s: examples
Affects Version/s: 7.0.1
Fix Version/s: 7.0.2

Type: Bug Priority: Major
Reporter: Ian Evans Assignee: Ian Evans
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

The Maven release plugin doesn't update the versions in archetype projects, so the created archetypes are looking for org.glassfish.javaeetutorial.firstcup:firstcup:pom:7.0.1-SNAPSHOT. This should be 7.0.1.

See:
http://stackoverflow.com/questions/17071365/java-ee-7-first-cup-tutorial-maven-issues



 Comments   
Comment by Ian Evans [ 14/Jun/13 ]

The workaround is to edit the generated pom.xml and replace the parent definition with:

<parent>
    <artifactId>firstcup</artifactId>
    <groupId>org.glassfish.javaeetutorial.firstcup</groupId>
    <version>7.0.1</version>
</parent>

That is, delete -SNAPSHOT from <version> in the generated pom.xml.

Comment by Ian Evans [ 14/Jun/13 ]

Fixed in source, and committed to 7.0.1 and 7.0.2 branch. Looking into the possibility of pushing out an updated package in the Update Center.





[FIRSTCUP-13] PDF has "Confidential" notice on title page Created: 11/Jun/13  Updated: 14/Jun/13  Resolved: 14/Jun/13

Status: Resolved
Project: firstcup
Component/s: None
Affects Version/s: 7.0.1
Fix Version/s: 7.0.1

Type: Bug Priority: Major
Reporter: Ian Evans Assignee: Ian Evans
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

Internal confidential notice was mistakenly included in the PDF title page.



 Comments   
Comment by Ian Evans [ 11/Jun/13 ]

Updated files in source. Will rebuild package for the Update Center.

Comment by Ian Evans [ 14/Jun/13 ]

Fixed in the 7.0.1 and trunk. Updated online PDF, and pushed out new package in Update Center.





[FIRSTCUP-10] Incorrect groupId for firstcup-war Created: 27/Mar/13  Updated: 27/Mar/13  Resolved: 27/Mar/13

Status: Resolved
Project: firstcup
Component/s: examples
Affects Version/s: 7.0.0
Fix Version/s: None

Type: Bug Priority: Major
Reporter: Ian Evans Assignee: Ian Evans
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: 0 minutes
Time Spent: Not Specified
Original Estimate: 0 minutes


 Description   

The groupId org.glassfish.javaeetutorial is incorrect. It should be org.glassfish.javaeetutorial.firstcup.



 Comments   
Comment by Ian Evans [ 27/Mar/13 ]

Revision: 185
Author: ievans
Date: 2013-03-27 13:04
Message: Fixed incorrect groupId.





[FIRSTCUP-12] Method getAgeDifference of DukesBirthdayBean returns wrong value Created: 13/May/13  Updated: 11/Jun/13  Resolved: 11/Jun/13

Status: Resolved
Project: firstcup
Component/s: examples
Affects Version/s: current
Fix Version/s: 7.0.1

Type: Bug Priority: Major
Reporter: Johann_Kropf Assignee: Ian Evans
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Netbeans 7.3, Your Firstcup Cup, April 2012, Windows 7 64bit



 Description   

The method getAgeDifference of the enterprise bean class DukesBirthdayBean returns wrong values. That's because 1. theirBirthday and dukesBirthday are not at the same year when compared and 2. if the user is younger (<0) and dukesBirthday is after the user's one the ageDifference should be reduced.

I have added the following code:

// Bring the dates to the same year (the dukes Year)
theirBirthday.add(Calendar.YEAR, ageDifference);

// Check to see if Duke's birthday occurs before the user's when the user is older. If so,
// subtract one from the age difference
if (dukesBirthday.before(theirBirthday) && (ageDifference > 0)) {
ageDifference--;
}
// Check to see if Duke's birthday occurs after the user's when the user is younger. If so,
// subtract one from the age difference
if (dukesBirthday.after(theirBirthday) && (ageDifference < 0)) {
ageDifference++;
}



 Comments   
Comment by Ian Evans [ 11/Jun/13 ]

Updated the source with the fix, and it is in version 7.0.1, in the Java EE 7 SDK.





[FIRSTCUP-9] JAX-RS runtime mapping in NetBeans 7.2 defaults to /webresources/ instead of /resources/. Created: 19/Sep/12  Updated: 11/Jun/13  Resolved: 11/Jun/13

Status: Resolved
Project: firstcup
Component/s: doc, examples
Affects Version/s: 2.1.3
Fix Version/s: 7.0.0

Type: Bug Priority: Major
Reporter: Ian Evans Assignee: Ian Evans
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: 0 minutes
Time Spent: Not Specified
Original Estimate: 0 minutes

Issue Links:
Duplicate
is duplicated by JAVAEETUTORIAL-157 DukesAgeResource Example Application ... Closed

 Description   

Set the default URL that is brought up in a web browser when you run dukes-age.

Right-click the dukes-age project in the Projects tab and select Properties.
In the Categories pane, click Run.
Set Relative URL to /resources/dukesAge.
Click OK.

Step 3 should set the url to /webresources/dukesAge to match the application path in ApplicationConfig.java

Otherwise the url generated is http://localhost:8080/DukesAgeService/resources/dukesAge resulting in http 404 error.



 Comments   
Comment by Ian Evans [ 19/Sep/12 ]

Revision: 173
Author: ievans
Date: 2012-09-19 13:22
Message: Updated JAX-RS service to match new default resources URL in NetBeans 7.2.
Issue #FIRSTCUP-9 - JAX-RS runtime mapping in NetBeans 7.2 defaults to /webresources/ instead of /resources/.

Comment by Ian Evans [ 19/Sep/12 ]

Revision: 174
Author: ievans
Date: 2012-09-19 13:26
Message: Updated client to match new default JAX-RS resources URL in NetBeans 7.2.
Issue #FIRSTCUP-9 - JAX-RS runtime mapping in NetBeans 7.2 defaults to /webresources/ instead of /resources/.

Comment by Ian Evans [ 11/Jun/13 ]

Fixed in source.





[FIRSTCUP-17] SEQUENCE Table was not deleted automatically while undeploying firstcup-war Created: 22/Aug/13  Updated: 22/Aug/13  Resolved: 22/Aug/13

Status: Resolved
Project: firstcup
Component/s: examples
Affects Version/s: 7.0.1, 7.0.2
Fix Version/s: current

Type: Improvement Priority: Minor
Reporter: TangYong Assignee: Ian Evans
Resolution: Works as designed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

GlassFish 4



 Description   

1 asadmin deploy firstcup-war.war

2 asadmin undeploy firstcup-war

3 asadmin deploy firstcup-war.war

PER01003: Deployment encountered SQL Exceptions:
PER01000: Got SQLException executing statement "CREATE TABLE SEQUENCE (SEQ_NAME VARCHAR(50) NOT NULL, SEQ_COUNT DECIMAL(15), PRIMARY KEY (SEQ_NAME))": java.sql.SQLException: Table/View 'SEQUENCE' は、既に Schema 'APP' に存在します。
Command deploy completed with warnings.

The exception is not friendly and we should also delete SEQUENCE Table while undeploying firstcup-war.



 Comments   
Comment by Ian Evans [ 22/Aug/13 ]

This is actually the correct behavior, as SEQUENCE is a table that is used by the persistence provider for auto-generated primary keys. firstcup-war uses SEQUENCE, but other applications might also use SEQUENCE for their auto-generated primary keys.

The persistence provider (in this case EclipseLink) will create SEQUENCE if it doesn't exist when you first deploy firstcup-war, but will not delete it when firstcup-war is undeployed because other applications may have been subsequently deployed that depend on SEQUENCE for auto-generated primary keys.

The SQLException thrown on deployment isn't fatal, and subsequent deployments of firstcup-war will use auto-generated primary keys further down the sequence.





[FIRSTCUP-15] First Cup typo in code example Created: 14/Jun/13  Updated: 14/Jun/13  Resolved: 14/Jun/13

Status: Resolved
Project: firstcup
Component/s: doc
Affects Version/s: 7.0.1
Fix Version/s: 7.0.2

Type: Bug Priority: Minor
Reporter: dipe Assignee: Ian Evans
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

Found a minor bug in First Cup Tutorial
Section 4.4.1.2,line logger.log(http://Level.INFO ,"absAgeDiff

{0}". absAgeDiff);
should be comma after "absAgeDiff {0}

" instead of period.

Thanks,
Dionisis Petrakopoulos



 Comments   
Comment by dipe [ 14/Jun/13 ]

it is "Level.INFO" not with http at the beginning....JIRA inserted that.

Comment by Ian Evans [ 14/Jun/13 ]

Fixed in source. Will appear in next update.





[FIRSTCUP-11] Change 3.1.2 to use "CDI managed bean" instead of "CDI bean" Created: 27/Mar/13  Updated: 27/Mar/13  Resolved: 27/Mar/13

Status: Resolved
Project: firstcup
Component/s: doc
Affects Version/s: 7.0.0
Fix Version/s: None

Type: Bug Priority: Minor
Reporter: Ian Evans Assignee: Ian Evans
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

Section 3.1.2: "The DukesBDay CDI bean" – how about "CDI managed bean"?



 Comments   
Comment by Ian Evans [ 27/Mar/13 ]

Fixed in source. Will appear in the next build.





[FIRSTCUP-8] Put all the technology lists in a table with descriptions Created: 14/Mar/12  Updated: 15/Mar/12  Due: 28/Mar/12  Resolved: 15/Mar/12

Status: Resolved
Project: firstcup
Component/s: doc
Affects Version/s: 2.1.2
Fix Version/s: 2.1.3

Type: Improvement Priority: Minor
Reporter: Ian Evans Assignee: Ian Evans
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

Reorganize the list of technologies in the business and EIS tiers into a table with descriptions similar to the web tier table:
http://docs.oracle.com/javaee/6/firstcup/doc/gcrky.html



 Comments   
Comment by Ian Evans [ 15/Mar/12 ]

Fixed in source. Will appear in the next update.





[FIRSTCUP-7] Wrong package for Logger class in "Creating the Enterprise Bean" Created: 12/Mar/12  Updated: 15/Mar/12  Resolved: 15/Mar/12

Status: Resolved
Project: firstcup
Component/s: doc
Affects Version/s: 2.1.2
Fix Version/s: 2.1.3

Type: Bug Priority: Minor
Reporter: Ian Evans Assignee: Ian Evans
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

There is a small error in chapter 4, section "Creating the Enterprise
Bean" -> "Add a Logger Instance to DukesBirthdayBean.java"
in the sentence "Add a java.util.Logger instance to the session bean
for logging events."
Logger class is actually located at java.util.logging package.



 Comments   
Comment by Ian Evans [ 15/Mar/12 ]

Fixed in source. Will appear in the next update of the package.





[FIRSTCUP-6] Spelling Mistake in Your First Cup (endpoing) Created: 22/Feb/12  Updated: 12/Mar/12  Resolved: 12/Mar/12

Status: Resolved
Project: firstcup
Component/s: doc
Affects Version/s: 2.1
Fix Version/s: 2.1.3

Type: Bug Priority: Trivial
Reporter: TimMc Assignee: Ian Evans
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: 5 minutes
Time Spent: Not Specified
Original Estimate: 5 minutes

Tags: tutorial

 Description   

Source:
http://docs.oracle.com/javaee/6/firstcup/doc/gcrkm.html

Line:
This section describes how to code the DukesAgeResource example application, a JAX-RS RESTful web service endpoing.

Recommended fix:
This section describes how to code the DukesAgeResource example application, a JAX-RS RESTful web service endpoint.



 Comments   
Comment by Ian Evans [ 12/Mar/12 ]

Fixed in source. Will appear in next update.





Generated at Sun May 24 22:50:20 UTC 2015 using JIRA 6.2.3#6260-sha1:63ef1d6dac3f4f4d7db4c1effd405ba38ccdc558.