aspose file tools*
The moose likes EJB and other Java EE Technologies and the fly likes oracle blob with weblogic Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "oracle blob with weblogic" Watch "oracle blob with weblogic" New topic
Author

oracle blob with weblogic

vinoth prabakaran
Greenhorn

Joined: Dec 28, 2001
Posts: 3
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: oracle blob with weblogic
 
Similar Threads
try to solve cmp exception over weblogic8.1
Original Data Verification before Update
Data Source and JNDI problem
EJB 2.1 CMP Automatic primary key issue with <unknown-primary-key-field>empId</unknown-primary-key-f
error : Element type "persistence-type" must be declared ?