Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

oracle blob with weblogic

 
vinoth prabakaran
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,
i am developing an ejb application using container managed bean in weblogic6.1 server.
one of my field is oracle blob object.
when i try to create ejb jar using the comand
C:\>java weblogic.ejbc doclib.jar ejbdoclib.jar
i got the following error
*****
ERROR: Error from ejbc: Error while reading 'META-INF/weblogic-cmp-rdbms-jar.xml
'. The error was:
In EJB DocLibBean, cmp-field: file is declared to be of Class: oracle.sq
l.BLOB, which is not supported in WebLogic EJB CMP 1.1
ERROR: ejbc found errors
*****
so i changed the deployment descriptor, weblogic-cmp-rdbms-jar.xml as said in the weblogic site
<field-map>
<cmp-field>file</cmp-field>
<dbms-column>fileColumn</dbms-column>
</field-map>
to
<field-map>
<cmp-field>file</cmp-field>
<dbms-column>fileColumn</dbms-column>
<dbms-column-type>OracleBlob</dbms-column-type>
</field-map>
ie i added the element dbms-column-type in the descriptor
after then i again run the command
now i am getting an error
C:\>java weblogic.ejbc doclib.jar ejbdoclib.jar
ERROR: Error from ejbc: While reading META-INF/weblogic-cmp-rdbms-jar.xml, the E
ntity EJB's persistence layer failed to deploy. The error was:
Error in descriptor line 18: Element type "dbms-column-type" is not declared in
the dtd or schema.
ERROR: ejbc found errors

CAN ANYBODY HELP ME OUT OF THIS?
Thanks
Vinoth
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic