Skip to Main Content

Database Software

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Jena adapter and glassfish

759822Mar 12 2010 — edited Aug 16 2010
I have been trying to get the Jena adapter , joseki and glassfish to work with 11g.
No success so far. Glassfish just throws an error because somewhere in the code there is a cast to (OracleConnection) that is incorrect.
My glassfish connection pool is setup using oracle.jdbc.pool.OracleDataSource.

Has anyone got any ideas ?

trace:

WARN [httpSSLWorkerThread-8080-1] (Configuration.java:115) - Failed to build dataset from description (service name: updat
e/service): caught: open: the connection from the datasource is not of OracleConnection type
com.hp.hpl.jena.assembler.exceptions.AssemblerException: caught: open: the connection from the datasource is not of OracleConnection type
doing:
root: file:///export/apps/phil/glassfish/domains/domain1/config/joseki-config.ttl#oracle with type: http://www.oracle.com/2009/05/orardf/jena-joseki-ns#Da
taset assembler class: class oracle.spatial.rdf.client.jena.assembler.OracleDatasetAssembler

at com.hp.hpl.jena.assembler.assemblers.AssemblerGroup$PlainAssemblerGroup.openBySpecificType(AssemblerGroup.java:126)
at com.hp.hpl.jena.assembler.assemblers.AssemblerGroup$PlainAssemblerGroup.open(AssemblerGroup.java:105)
at com.hp.hpl.jena.assembler.assemblers.AssemblerGroup$ExpandingAssemblerGroup.open(AssemblerGroup.java:69)
at com.hp.hpl.jena.assembler.assemblers.AssemblerBase.open(AssemblerBase.java:37)
at com.hp.hpl.jena.assembler.assemblers.AssemblerBase.open(AssemblerBase.java:34)


UPDATE: I believe this is because glassfish wraps its connections, so I'd need to create a new data source that gets the physical OracleConnection for me.
As discussed here: http://forums.sun.com/thread.jspa?threadID=5100748

Edited by: user2570981 on 12-Mar-2010 08:30

Comments

LA County APEX

Isn't it the current record based on the row selected on the report or based on other pre-selected value from some where?

van Baal HR

yes. And that is exactly where the problem is located. There seems to be NO row selected.

LA County APEX

Supposed, your report region a static id is MYREP, create a dynamic action.

Event: After Refresh

Selection Type: Region

Region: your region

----

Add a true action.

Action: Execute JavaScript Code

Code:

$("#MYREP_ir tr").click(function() {

      $x('PX_REC_ID').value = this.cells[1].innerHTML;  //supposed the first column is the record id

      apex.widget.waitPopup();

      document.body.style.cursor = 'wait';

      apex.submit('BTN'); //use the button to redirect to popup a page

});

----

Create a branch.

Page or URL (Redirect)

When Button Pressed: BTN

1 - 3
Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Sep 13 2010
Added on Mar 12 2010
5 comments
2,967 views