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.
Summary: | Application utilizing datasource can not be deployed to WebLogic | ||
---|---|---|---|
Product: | obsolete | Reporter: | Roman Mostyka <romanmostyka> |
Component: | visualweb | Assignee: | 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
WebLogic 9.1 was started outside of IDE. Everything is fine after restart WebLogic. Cannot evaluate because of issue 108377 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 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. there are some other issues with WebLogic 112427 Is this still an issue for visual web projects with data sources? Issue 90232 (dependent issue) was changed to an enhancement. If information on getting Weblogic to work becomes available, it will be added to this issue 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']} Dependent issue is an enhancement 90232- Weblogic is not supported |