0 Replies Latest reply on Apr 26, 2002 10:23 AM by L Stitz

    Oracle8i: SQL Exception when trying to use predefined type m

    L Stitz Newbie

      Hey,

      can anybody explain to me why I keep getting the following exception:

      javax.ejb.CreateException: Could not create entity:java.sql.SQLException: Ungültiger Spaltentyp
      at org.jboss.ejb.plugins.jaws.jdbc.JDBCCreateEntityCommand.execute(JDBCCreateEntityCommand.java:148)

      in both JBoss 2.4.4 and JBoss 3.0.0RC1 when I try to set a type-mapping in my META-INF/jaws.xml like this:

      <?xml version="1.0" encoding="ISO-8859-1"?>

      OracleDS
      <!-- The problematic line follows: -->
      <type-mapping>Oracle8</type-mapping>
      <enterprise-beans>[...]</enterprise-beans>


      It works fine if I comment the type mapping out, otherwise he complains about "Ungültiger Spaltentyp" (invalid column type). This complain originates from the JDBC driver, as is visible in JBoss 3 (JBoss 2.4.4 hides this information).

      Is this a feature? From reading http://www.jboss.org/online-manual/HTML/ch06s02.html , I thought the use of the type-mapping tag to be ok at this point...

      Thanks a lot,
      Lars