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 96637 - Need to Release Note migration of project that is missing server specific files
Summary: Need to Release Note migration of project that is missing server specific files
Status: RESOLVED FIXED
Alias: None
Product: obsolete
Classification: Unclassified
Component: visualweb (show other bugs)
Version: 5.x
Hardware: All All
: P2 blocker (vote)
Assignee: Joseph Silber
URL:
Keywords: RELNOTE
Depends on:
Blocks:
 
Reported: 2007-02-27 00:33 UTC by John Baker
Modified: 2007-02-27 18:48 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description John Baker 2007-02-27 00:33:50 UTC
In VWP 5.5, server specific information is not always added to projects.

This creates a problem when migrating projects to 5.5.1/GF V2

Scenario:

Using VWP 5.5, for the first project created with database connections, the server
specific info is added to the project in the "setup" folder

For subsequent projects that use the same database connections, then the server
specific info is NOT added to the project.
Consequently, during deployment, since JDBC resources are not generated (from
the resources in the project's setup folder), deploying the project to 9.1 will
fail.

Workaround is for the user to create resources in the Project.
1) In the Projects window, select the top-level node for the project,
right-click and choose New->File/Folder.  Next select Sun Resources and JDBC
Connection Pool (note that the connection for the project must be available
under Databases in the Runtime tab)

2) Repeat 1 except create a JDBC Resource

3) Deploy

If this doesn't succeed, check the server.log file
Comment 1 Joseph Silber 2007-02-27 17:09:46 UTC
It's a little wordy, but I've added the following text to the 551 VWP release
notes: 


Database Project Migration from NetBeans Visual Web Pack 5.5 to 5.5.1

Server-specific information is not added to some projects in Visual Web Pack 5.5
and therefore JDBC resources are not generated when projects are migrated to
Visual Web Pack 5.5 and Sun Java System Application Server 9.1.

    Description: In Visual Web Pack 5.5, the server-specific information is
added to the project in the setup folder for the first project created with a
specific database connection, but not for subsequent projects that use the same
database connection. Consequently, during deployment, since JDBC resources are
not generated from the resources in the project's setup folder, deploying the
project to Sun Java System Application 9.1 (GlassFish V2) will fail.

    Workaround: Create the appropriate resources in the project as follows:

       1. In the Projects window, select the top-level node for the project,
right-click and choose New > File/Folder.
       2. Select Sun Resources and JDBC Connection Pool. Note that the
connection for the project must be available under Databases in the Runtime tab.
       3. In the Projects window, select the top-level node for the project,
right-click and choose New > JDBC Resource, and create the resource in the project.
       4. Deploy the project.

    If this doesn't succeed, check the server.log file.
Comment 2 John Baker 2007-02-27 18:48:38 UTC
Small update:

Instead of ...
"JDBC resources are not generated when projects are migrated to
Visual Web Pack 5.5 and Sun Java System Application Server 9.1"

say

"JDBC resources are not available when such projects are migrated to
Visual Web Pack 5.5 and Sun Java System Application Server 9.1"


Also, to expand upon ...
"If this doesn't succeed, check the server.log file"
say

"If this doesn't succeed, check the server.log file to see if any database
connection parameters were incorrectly set while creating Sun Resources."