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 76543 - Customer CMP in JavaEE5 Samples doesn't work
Summary: Customer CMP in JavaEE5 Samples doesn't work
Status: VERIFIED FIXED
Alias: None
Product: usersguide
Classification: Unclassified
Component: JavaEE (show other bugs)
Version: 5.x
Hardware: All Windows XP
: P2 blocker (vote)
Assignee: Tomasz Slota
URL:
Keywords:
Depends on: 79342
Blocks:
  Show dependency tree
 
Reported: 2006-05-18 10:32 UTC by Dan Kolar
Modified: 2006-07-14 13:51 UTC (History)
3 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 Dan Kolar 2006-05-18 10:32:10 UTC
build 200605170200   jdk1.5.06fcs

Have Glassfish installed
1) New Project -> Samples -> JavaEE5 -> EJB3 -> Customer CMP
2) Next -> Finish
3) Deploy this project to Glassfish
4) Open it in browser and click to link "Search For Customer"
5) Insert any value and click Search

EJB esception is thrown, as drop of Customer table fails on deploy and current 
Customer table in Sample database is different from it.
Guess renaming table used in sample will solve it.
Comment 1 jrojcek 2006-06-07 09:53:26 UTC
This is a P2 issue. We should not ship something that doesn't work.
Comment 2 Andrei Badea 2006-06-29 14:52:49 UTC
Is it really necessary to let the user set an user name and password for the
created databases? It seems to me that it is not a high priority right now, at
least when I consider the amount of work that is needed to support it.

Jano, would you agree with allowing the user to enter just the database name and
to use the default "APP" user name and password (which are used for the sample
database)?
Comment 3 jrojcek 2006-06-30 09:33:43 UTC
Yes, that makes sense to me. It would be simpler. What would the UI look like then? Like this?...

+-----------------------------------------------------------------+
| New <sample-project-name>                                       |
+-----------------------------------------------------------------+
| Name and Location                                               |
| --------------------------------------------------------------- |
|                                                                 |
| Project Name:      |_Customer_________________________________| |
|                                                                 |
| Project Location:  |_/users/me__________________| [ Browse... ] |
| Project Folder:    |_/users/me/Customer_______________________| |
|                                                                 |
|                                                                 |
| Specify the newly created database used by the sample project.  |
|                                                                 |
| Database Name:     |_Customer_________________________________| |
| Database Location: |_/users/me/.netbeans-javadb_______________| |
|                                                                 |
| You can change the location...                                  |
|                                                                 |
| [x] Set as Main Project                                         |
|                                                                 |
+-----------------------------------------------------------------+
Comment 4 Tomasz Slota 2006-06-30 10:50:32 UTC
another idea is to leave usr/pwd fields but make them read only. I prefer the user is aware we set these 
parameters in arbitrary way
Comment 5 jrojcek 2006-06-30 13:06:05 UTC
Maybe as a note in the wizard. Not as readonly fields.
Comment 6 Tomasz Slota 2006-07-12 15:54:43 UTC
fixed; change log:

IDE: [7/12/06 4:53 PM] Committing "Java Enterprise Samples" started
cvs server: scheduling file `CreateDatabasePanel.java' for addition on branch `release55'
cvs server: scheduling file `DatabaseUsingSampleWizardIterator.java' for addition on branch `release55'
cvs server: scheduling file `CreateDatabasePanelVisual.java' for addition on branch `release55'
cvs server: scheduling file `CreateDatabasePanelVisual.form' for addition on branch `release55'
cvs server: use 'cvs commit' to add these files permanently
RCS file: /cvs/j2ee/samples/src/org/netbeans/modules/j2ee/samples/Attic/
CreateDatabasePanelVisual.form,v
done
Checking in src/org/netbeans/modules/j2ee/samples/CreateDatabasePanelVisual.form;
/cvs/j2ee/samples/src/org/netbeans/modules/j2ee/samples/Attic/CreateDatabasePanelVisual.form,v  
<--  CreateDatabasePanelVisual.form
new revision: 1.1.2.1; previous revision: 1.1
done
Checking in src/org/netbeans/modules/j2ee/samples/JavaEESamplesWizardIterator.java;
/cvs/j2ee/samples/src/org/netbeans/modules/j2ee/samples/Attic/JavaEESamplesWizardIterator.java,v  
<--  JavaEESamplesWizardIterator.java
new revision: 1.1.2.7; previous revision: 1.1.2.6
done
RCS file: /cvs/j2ee/samples/src/org/netbeans/modules/j2ee/samples/Attic/
DatabaseUsingSampleWizardIterator.java,v
done
Checking in src/org/netbeans/modules/j2ee/samples/DatabaseUsingSampleWizardIterator.java;
/cvs/j2ee/samples/src/org/netbeans/modules/j2ee/samples/Attic/
DatabaseUsingSampleWizardIterator.java,v  <--  DatabaseUsingSampleWizardIterator.java
new revision: 1.1.2.1; previous revision: 1.1
done
RCS file: /cvs/j2ee/samples/src/org/netbeans/modules/j2ee/samples/Attic/
CreateDatabasePanel.java,v
done
Checking in src/org/netbeans/modules/j2ee/samples/CreateDatabasePanel.java;
/cvs/j2ee/samples/src/org/netbeans/modules/j2ee/samples/Attic/CreateDatabasePanel.java,v  <--  
CreateDatabasePanel.java
new revision: 1.1.2.1; previous revision: 1.1
done
Checking in src/org/netbeans/modules/j2ee/samples/JavaEESamplesWizardPanel.java;
/cvs/j2ee/samples/src/org/netbeans/modules/j2ee/samples/Attic/JavaEESamplesWizardPanel.java,v  
<--  JavaEESamplesWizardPanel.java
new revision: 1.1.2.5; previous revision: 1.1.2.4
done
Checking in src/org/netbeans/modules/j2ee/samples/layer.xml;
/cvs/j2ee/samples/src/org/netbeans/modules/j2ee/samples/Attic/layer.xml,v  <--  layer.xml
new revision: 1.1.2.7; previous revision: 1.1.2.6
done
Checking in src/org/netbeans/modules/j2ee/samples/Bundle.properties;
/cvs/j2ee/samples/src/org/netbeans/modules/j2ee/samples/Attic/Bundle.properties,v  <--  
Bundle.properties
new revision: 1.1.2.10; previous revision: 1.1.2.9
done
RCS file: /cvs/j2ee/samples/src/org/netbeans/modules/j2ee/samples/Attic/
CreateDatabasePanelVisual.java,v
done
Checking in src/org/netbeans/modules/j2ee/samples/CreateDatabasePanelVisual.java;
/cvs/j2ee/samples/src/org/netbeans/modules/j2ee/samples/Attic/CreateDatabasePanelVisual.java,v  
<--  CreateDatabasePanelVisual.java
new revision: 1.1.2.1; previous revision: 1.1
done
Checking in src/org/netbeans/modules/j2ee/samples/WizardProperties.java;
/cvs/j2ee/samples/src/org/netbeans/modules/j2ee/samples/Attic/WizardProperties.java,v  <--  
WizardProperties.java
new revision: 1.1.2.3; previous revision: 1.1.2.2
done
Checking in nbproject/project.properties;
/cvs/j2ee/samples/nbproject/Attic/project.properties,v  <--  project.properties
new revision: 1.1.2.2; previous revision: 1.1.2.1
done
Checking in nbproject/project.xml;
/cvs/j2ee/samples/nbproject/Attic/project.xml,v  <--  project.xml
new revision: 1.1.2.2; previous revision: 1.1.2.1
done
IDE: [7/12/06 4:53 PM] Committing "Java Enterprise Samples" finished
Comment 7 Dan Kolar 2006-07-14 13:51:13 UTC
v. build 200607140000