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 98366

Summary: Application utilizing datasource can not be deployed to WebLogic
Product: obsolete Reporter: Roman Mostyka <romanmostyka>
Component: visualwebAssignee: John Baker <jbaker>
Status: NEW ---    
Severity: blocker Keywords: RELNOTE
Priority: P3    
Version: 5.x   
Hardware: PC   
OS: Windows XP   
Issue Type: ENHANCEMENT Exception Reporter:
Bug Depends on: 90232, 108377, 112427, 114938    
Bug Blocks:    

Description Roman Mostyka 2007-03-20 16:13:45 UTC
1. Create Visual Web Application.
2. Add 'Table' component to the page.
3. Bind it with DB.
4. Deploy it to WebLogic.

Result: Build failed:
"init:
deps-module-jar:
deps-ear-jar:
deps-jar:
Created dir: C:\Documents and
Settings\rm153204.GRIF\TableTemplateWL\build\web\WEB-INF\classes
Created dir: C:\Documents and
Settings\rm153204.GRIF\TableTemplateWL\build\web\META-INF
Copying 1 file to C:\Documents and
Settings\rm153204.GRIF\TableTemplateWL\build\web\META-INF
Copying 12 files to C:\Documents and
Settings\rm153204.GRIF\TableTemplateWL\build\web
library-inclusion-in-archive:
Copying 1 file to C:\Documents and
Settings\rm153204.GRIF\TableTemplateWL\build\web\WEB-INF\lib
Copying 1 file to C:\Documents and
Settings\rm153204.GRIF\TableTemplateWL\build\web\WEB-INF\lib
Copying 1 file to C:\Documents and
Settings\rm153204.GRIF\TableTemplateWL\build\web\WEB-INF\lib
Copying 1 file to C:\Documents and
Settings\rm153204.GRIF\TableTemplateWL\build\web\WEB-INF\lib
Copying 1 file to C:\Documents and
Settings\rm153204.GRIF\TableTemplateWL\build\web\WEB-INF\lib
Copying 1 file to C:\Documents and
Settings\rm153204.GRIF\TableTemplateWL\build\web\WEB-INF\lib
Copying 1 file to C:\Documents and
Settings\rm153204.GRIF\TableTemplateWL\build\web\WEB-INF\lib
Copying 1 file to C:\Documents and
Settings\rm153204.GRIF\TableTemplateWL\build\web\WEB-INF\lib
Copying 1 file to C:\Documents and
Settings\rm153204.GRIF\TableTemplateWL\build\web\WEB-INF\lib
Copying 1 file to C:\Documents and
Settings\rm153204.GRIF\TableTemplateWL\build\web\WEB-INF\lib
Copying 1 file to C:\Documents and
Settings\rm153204.GRIF\TableTemplateWL\build\web\WEB-INF\lib
Copying 1 file to C:\Documents and
Settings\rm153204.GRIF\TableTemplateWL\build\web\WEB-INF\lib
Copying 1 file to C:\Documents and
Settings\rm153204.GRIF\TableTemplateWL\build\web\WEB-INF\lib
Copying 1 file to C:\Documents and
Settings\rm153204.GRIF\TableTemplateWL\build\web\WEB-INF\lib
Copying 1 file to C:\Documents and
Settings\rm153204.GRIF\TableTemplateWL\build\web\WEB-INF\lib
library-inclusion-in-manifest:
Compiling 8 source files to C:\Documents and
Settings\rm153204.GRIF\TableTemplateWL\build\web\WEB-INF\classes
Copying 1 file to C:\Documents and
Settings\rm153204.GRIF\TableTemplateWL\build\web\WEB-INF\classes
compile:
compile-jsps:
Created dir: C:\Documents and Settings\rm153204.GRIF\TableTemplateWL\dist
Building jar: C:\Documents and
Settings\rm153204.GRIF\TableTemplateWL\dist\TableTemplateWL.war
do-dist:
dist:
C:\Documents and
Settings\rm153204.GRIF\TableTemplateWL\nbproject\build-impl.xml:471: Deployment
error:
[J2EE Deployment SPI:260111]Errors detected attempting to communicate with admin
server.
See the server log for details.
BUILD FAILED (total time: 16 seconds)".
Comment 1 Roman Mostyka 2007-03-20 16:59:02 UTC
WebLogic 9.1 was started outside of IDE.
Comment 2 Roman Mostyka 2007-03-20 17:20:33 UTC
Everything is fine after restart WebLogic.
Comment 3 Sherold Dev 2007-06-28 10:53:39 UTC
Cannot evaluate because of issue 108377
Comment 4 Sherold Dev 2007-08-01 12:01:52 UTC
Still cannot evaluate this issue, but since the reporter mentioned that after restarting the server everything worked
OK, it seems that there is a work-around -> lowering the priority to P3
Comment 5 Sherold Dev 2007-08-02 09:20:58 UTC
I reproduced this issue with NB 5.5.1.

Since the WebLogic plugin does not support data source creation, the resource reference created in the web application
could not be bound to a data source.

To get the application working properly, the user has to create the corresponding data source manually on the server and
bind it with the resource reference.

This issue should be fixed in visualweb component. If the server plugin does not support data source creation the user
needs to be notified that he has to create and bind the data source by hand.

Reassign to visualweb.
Comment 6 John Baker 2007-08-25 00:07:34 UTC
there are some other issues with WebLogic 112427
Comment 7 John Baker 2007-09-06 00:20:26 UTC
Is this still an issue for visual web projects with data sources?
Comment 8 John Baker 2007-09-07 06:52:17 UTC
Issue 90232 (dependent issue) was changed to an enhancement.  
Comment 9 John Baker 2007-09-07 07:02:08 UTC
If information on getting Weblogic to work becomes available, it will be added to this issue
Comment 10 John Baker 2007-09-07 19:57:27 UTC
Here's some steps so far I've tried, but I can't seem to either get the binding to work or even if I force 
the binding, execution fails


Drag and drop a database table

Open SessionBean1.java and add an import statement
import com.sun.sql.rowset.CachedRowSetXImpl;

add a field name is based on the database table
    private CachedRowSetXImpl tripRowSet = new CachedRowSetXImpl();

right-click in the Editor and choose Refactor->Encapsulate Fields
choose the field added and choose to create getters and setters

Add some code to the _init() method
(Note the rowset field is used and the data source name - in this case for the Travel schema and Derby)

        tripRowSet.setDataSourceName("java:comp/env/jdbc/TRAVEL_ApacheDerby");
        tripRowSet.setCommand("SELECT * FROM TRAVEL.TRIP");
        tripRowSet.setTableName("TRIP");

In Page1.java add to the _init() method:
        cachedRowSetDataProvider1.setCachedRowSet((javax.sql.rowset.CachedRowSet) getValue("#{SessionBean1.tripRowSet}"));

Drag and drop a component.
In the text property of the component add this expression:
#{Page1.cachedRowSetDataProvider1.value['TRIP.TRIPID']}
Comment 11 John Baker 2008-01-14 01:15:55 UTC
Dependent issue is an enhancement 90232- Weblogic is not supported