Urgent -- Oracle Type Mapping
Hi All,
I have two types created in my Oracle DB.
1. One is of RECORD TYPE
NAME :- "REGIONREC"
2. The other is a TABLE of the above Record TYPE
Name :- "REGIONFRANCHISE"
This is a table of "REGIONREC"
I have a Stored Procedure which has an input parameter of type varchar2 and has an output parameter of type "REGIONFRANCHISE"
Now I want to retreive the data in the out parameter from my java code.
How to do it?
Any help on this will be really greatful.
Thanks in advance.
Regards,
Sethu
Hi Sethu,
I'm not sure, but maybe these Web pages will help you:
http://technet.oracle.com/sample_code/tech/java/sqlj_jdbc/files/jdbc20/WTCollectionSample/Readme.html
http://technet.oracle.com/sample_code/tech/java/sqlj_jdbc/files/9i_jdbc/MultipleCollectionSample/Readme.html
http://asktom.oracle.com/pls/ask/f?p=4950:8:172149323441365601::NO::F4950_P8_DISPLAYID,F4950_P8_CRITERIA:7350176492925,
http://otn.oracle.com/sample_code/tech/java/codesnippet/jdbc/refcur/content.html
Hope this helps.
Good Luck,
Avi.
Similar Messages
-
ADF Business Component Type MAP Oracls vs Java
what the advantages and disadvantages from each one map type
thank in advanceTake a look at this link in developer's guide:
http://docs.oracle.com/cd/E16162_01/web.1112/e16182/bcintro.htm#sm0062
The Java Extended for Oracle type map and the Oracle Domains type map handle numeric data differently. When you create a new application the default type map Java Extended for Oracle maps numeric data to the java.math.BigDecimal >class, which inherits from java.math.Number. The java.math.BigDecimal default matches the way the Fusion web application view layer, consisting of ADF Faces components, preserves alignment of numeric data (such as numeric values >displayed by ADF Faces input fields in a web page). Whereas the Oracle Domains type map, which maps numeric data to the oracle.jbo.domain.Number class, may not display the data with the alignment expected by certain ADF Faces >components. Aside from this alignment issue, the Oracle Domains type map remains a valid choice and applications without ADF Faces components will function without issue.Thanks,
Navaneeth -
BC4J Custom Type Maps (MS-SQL cont.)
(FYI using JDeveloper 9.0.2.0.0, MS-SQL 2000 spk2 and MS-SQL's JDBC driver Version 2.2.0022)
In the process of trying to get JDeveloper working fully with MS-SQL, I am at the point of developing a custom type map.
Should this typemap include all mappings or only those different than the "Java" or "Oracle" type map? I was assuming all at first. Now I wonder how it's handling missing mappings.
How does it find a matching typemap? I noticed that Entity's database column types looked like "int(10,0)" and "bit(1,0)", but in my typemap, like the examples, it's just "INT", "BIT" with no precision, scale. Is this a case of where it's assuming the driver will return a string for type and it's returning type(p,s)? Or is JDev building that string? Either way, would you need a different mapping for "bit(1,0)" than "bit"?
As "bit(1,0)" it had problems with both the Java map and my custom map. Changing it to "bit" seem to get it to work. So what typemapping was it trying to use as "bit(1,0)"?
[Bug?] I noticed that when I view the bc4j settings (project (rt-click) -> edit business components project), the value for type map is incorrect if I am using a custom type map. If I am using the Java type map it says "Java" in the greyed out select, but if I am using my custom map ("MS-SQL"), it says "Oracle". I checked the bc4j.xcfg for the one using my custom map and it does say the right class name for jbo.TypeMapEntries.
On a related note, when testing the bc4j modules, we are instructed to use the edited local configuration, but how do view/edit the project default configuration?
====================================================================
typemap in progress...
================================
public class MsSqlTypeMapEntries
public MsSqlTypeMapEntries()
/* ColumnType, JavaClassName, JdbcSqlType, JdbcSqlTypeID, DefaultDisplayLength, isNumericType */
new JboTypeMap("BIGINT", "java.math.BigInteger", "BIGINT",java.sql.Types.BIGINT,null,true);
//new JboTypeMap("BIGINT IDENTITY", "java.math.BigInteger", "BIGINT",java.sql.Types.BIGINT,null,true);
//new JboTypeMap("BINARY BINARY
new JboTypeMap("BIT","java.lang.Boolean","BIT",java.sql.Types.BIT,null,true);
new JboTypeMap("CHAR","java.lang.String","CHAR",java.sql.Types.CHAR,null);
new JboTypeMap("DATETIME" ,"java.sql.Timestamp","TIMESTAMP",java.sql.Types.TIMESTAMP ,null);
new JboTypeMap("DECIMAL","java.math.BigDecimal","DECIMAL",java.sql.Types.DECIMAL,null,true);
//new JboTypeMap("DECIMAL() IDENTITY DECIMAL
//new JboTypeMap("FLOAT FLOAT
//new JboTypeMap("IMAGE LONGVARBINARY
new JboTypeMap("INT","java.lang.Integer","INTEGER",java.sql.Types.INTEGER,null,true);
new JboTypeMap("INT IDENTITY","java.lang.Integer","INTEGER",java.sql.Types.INTEGER,null,true);
new JboTypeMap("MONEY","java.math.BigDecimal","DECIMAL",java.sql.Types.DECIMAL,null,true);
new JboTypeMap("NCHAR","java.lang.String","CHAR",java.sql.Types.CHAR,null);
new JboTypeMap("NTEXT","java.lang.String","LONGVARCHAR", java.sql.Types.LONGVARCHAR, null);
new JboTypeMap("NUMERIC","java.math.BigDecimal","NUMERIC",java.sql.Types.NUMERIC,null,true);
//new JboTypeMap("NUMERIC() IDENTITY","java.math.BigDecimal","NUMERIC",java.sql.Types.NUMERIC,null,true);
new JboTypeMap("NVARCHAR","java.lang.String","VARCHAR",java.sql.Types.VARCHAR,null);
//new JboTypeMap("REAL REAL
new JboTypeMap("SMALLDATETIME" ,"java.sql.Date","TIMESTAMP",java.sql.Types.TIMESTAMP ,null);
new JboTypeMap("SMALLINT","java.lang.Integer","SMALLINT",java.sql.Types.SMALLINT,null,true);
new JboTypeMap("SMALLINT IDENTITY","java.lang.Integer","SMALLINT",java.sql.Types.SMALLINT,null,true);
new JboTypeMap("SMALLMONEY","java.math.BigDecimal","DECIMAL",java.sql.Types.DECIMAL,null,true);
new JboTypeMap("SQL_VARIANT","java.lang.String","VARCHAR",java.sql.Types.VARCHAR,null);
new JboTypeMap("SYSNAME","java.lang.String","VARCHAR",java.sql.Types.VARCHAR,null);
new JboTypeMap("TEXT","java.lang.String","LONGVARCHAR", java.sql.Types.LONGVARCHAR, null);
//new JboTypeMap("TIMESTAMP BINARY
new JboTypeMap("TINYINT","java.lang.Integer","TINYINT",java.sql.Types.TINYINT,null,true);
new JboTypeMap("TINYINT IDENTITY","java.lang.Integer","TINYINT",java.sql.Types.TINYINT,null,true);
new JboTypeMap("UNIQUEIDENTIFIER","java.lang.String","CHAR",java.sql.Types.CHAR,null);
//new JboTypeMap("VARBINARY VARBINARY
new JboTypeMap("VARCHAR","java.lang.String","CHAR",java.sql.Types.CHAR,null);
}(FYI using JDeveloper 9.0.2.0.0, MS-SQL 2000 spk2 and MS-SQL's JDBC driver Version 2.2.0022)
In the process of trying to get JDeveloper working fully with MS-SQL, I am at the point of developing a custom type map.
Should this typemap include all mappings or only those different than the "Java" or "Oracle" type map? I was assuming all at first. Now I wonder how it's handling missing mappings.
How does it find a matching typemap? I noticed that Entity's database column types looked like "int(10,0)" and "bit(1,0)", but in my typemap, like the examples, it's just "INT", "BIT" with no precision, scale. Is this a case of where it's assuming the driver will return a string for type and it's returning type(p,s)? Or is JDev building that string? Either way, would you need a different mapping for "bit(1,0)" than "bit"?
As "bit(1,0)" it had problems with both the Java map and my custom map. Changing it to "bit" seem to get it to work. So what typemapping was it trying to use as "bit(1,0)"?
[Bug?] I noticed that when I view the bc4j settings (project (rt-click) -> edit business components project), the value for type map is incorrect if I am using a custom type map. If I am using the Java type map it says "Java" in the greyed out select, but if I am using my custom map ("MS-SQL"), it says "Oracle". I checked the bc4j.xcfg for the one using my custom map and it does say the right class name for jbo.TypeMapEntries.
On a related note, when testing the bc4j modules, we are instructed to use the edited local configuration, but how do view/edit the project default configuration?
====================================================================
typemap in progress...
================================
public class MsSqlTypeMapEntries
public MsSqlTypeMapEntries()
/* ColumnType, JavaClassName, JdbcSqlType, JdbcSqlTypeID, DefaultDisplayLength, isNumericType */
new JboTypeMap("BIGINT", "java.math.BigInteger", "BIGINT",java.sql.Types.BIGINT,null,true);
//new JboTypeMap("BIGINT IDENTITY", "java.math.BigInteger", "BIGINT",java.sql.Types.BIGINT,null,true);
//new JboTypeMap("BINARY BINARY
new JboTypeMap("BIT","java.lang.Boolean","BIT",java.sql.Types.BIT,null,true);
new JboTypeMap("CHAR","java.lang.String","CHAR",java.sql.Types.CHAR,null);
new JboTypeMap("DATETIME" ,"java.sql.Timestamp","TIMESTAMP",java.sql.Types.TIMESTAMP ,null);
new JboTypeMap("DECIMAL","java.math.BigDecimal","DECIMAL",java.sql.Types.DECIMAL,null,true);
//new JboTypeMap("DECIMAL() IDENTITY DECIMAL
//new JboTypeMap("FLOAT FLOAT
//new JboTypeMap("IMAGE LONGVARBINARY
new JboTypeMap("INT","java.lang.Integer","INTEGER",java.sql.Types.INTEGER,null,true);
new JboTypeMap("INT IDENTITY","java.lang.Integer","INTEGER",java.sql.Types.INTEGER,null,true);
new JboTypeMap("MONEY","java.math.BigDecimal","DECIMAL",java.sql.Types.DECIMAL,null,true);
new JboTypeMap("NCHAR","java.lang.String","CHAR",java.sql.Types.CHAR,null);
new JboTypeMap("NTEXT","java.lang.String","LONGVARCHAR", java.sql.Types.LONGVARCHAR, null);
new JboTypeMap("NUMERIC","java.math.BigDecimal","NUMERIC",java.sql.Types.NUMERIC,null,true);
//new JboTypeMap("NUMERIC() IDENTITY","java.math.BigDecimal","NUMERIC",java.sql.Types.NUMERIC,null,true);
new JboTypeMap("NVARCHAR","java.lang.String","VARCHAR",java.sql.Types.VARCHAR,null);
//new JboTypeMap("REAL REAL
new JboTypeMap("SMALLDATETIME" ,"java.sql.Date","TIMESTAMP",java.sql.Types.TIMESTAMP ,null);
new JboTypeMap("SMALLINT","java.lang.Integer","SMALLINT",java.sql.Types.SMALLINT,null,true);
new JboTypeMap("SMALLINT IDENTITY","java.lang.Integer","SMALLINT",java.sql.Types.SMALLINT,null,true);
new JboTypeMap("SMALLMONEY","java.math.BigDecimal","DECIMAL",java.sql.Types.DECIMAL,null,true);
new JboTypeMap("SQL_VARIANT","java.lang.String","VARCHAR",java.sql.Types.VARCHAR,null);
new JboTypeMap("SYSNAME","java.lang.String","VARCHAR",java.sql.Types.VARCHAR,null);
new JboTypeMap("TEXT","java.lang.String","LONGVARCHAR", java.sql.Types.LONGVARCHAR, null);
//new JboTypeMap("TIMESTAMP BINARY
new JboTypeMap("TINYINT","java.lang.Integer","TINYINT",java.sql.Types.TINYINT,null,true);
new JboTypeMap("TINYINT IDENTITY","java.lang.Integer","TINYINT",java.sql.Types.TINYINT,null,true);
new JboTypeMap("UNIQUEIDENTIFIER","java.lang.String","CHAR",java.sql.Types.CHAR,null);
//new JboTypeMap("VARBINARY VARBINARY
new JboTypeMap("VARCHAR","java.lang.String","CHAR",java.sql.Types.CHAR,null);
} -
OracleCustomTypeMappingAttribute Issue in Custom type mapping(Urgent Help)
I am figuring "OracleCustomTypeMappingAttribute" attribute in web.conifg.
I am getting Error when i am trying execute the code.please find the error messsage in below
"Custom type mapping for 'QR.iPromansys.Common.UDT.TAB_MC_REGION' is not specified or is invalid."
This is my configuation of webconfig:-
<oracle.dataaccess.client>
<settings>
<add name="REGION" value="udtMapping factoryName='QR.iPromansys.Common.UDT.TAB_MC_REGIONFactory,
QR.iPromansys.Common.UDT, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'
typeName='TAB_MC_REGION' schemaName='IPROM' dataSource='QAPRISM' "/>
</settings>
</oracle.dataaccess.client>
provide what i missed in in configure or anything else i have to do more in coding side.
Class Information (Struture) Start
public class TAB_MC_REGION : INullable, IOracleCustomType, IXmlSerializable
private bool m_IsNull;
private RegionInfo[] m_RegionInfo;
public TAB_MC_REGION()
// TODO : Add code to initialise the object
public TAB_MC_REGION(string str)
// TODO : Add code to initialise the object based on the given string
public TAB_MC_REGION(RegionInfo[] obj)
this.m_RegionInfo = obj;
public virtual bool IsNull
get
return this.m_IsNull;
public static TAB_MC_REGION Null
get
TAB_MC_REGION obj = new TAB_MC_REGION();
obj.m_IsNull = true;
return obj;
[OracleArrayMappingAttribute()]
public virtual RegionInfo[] Value
get
return this.m_RegionInfo;
set
this.m_RegionInfo = value;
public virtual void FromCustomObject(Oracle.DataAccess.Client.OracleConnection con, System.IntPtr pUdt)
OracleUdt.SetValue(con, pUdt, 0, this.m_RegionInfo);
public virtual void ToCustomObject(Oracle.DataAccess.Client.OracleConnection con, System.IntPtr pUdt)
this.m_RegionInfo = ((RegionInfo[])(OracleUdt.GetValue(con, pUdt, 0)));
public virtual void ReadXml(System.Xml.XmlReader reader)
// TODO : Read Serialized Xml Data
public virtual void WriteXml(System.Xml.XmlWriter writer)
// TODO : Serialize object to xml data
public virtual XmlSchema GetSchema()
// TODO : Implement GetSchema
return null;
public override string ToString()
// TODO : Return a string that represents the current object
return "";
public static TAB_MC_REGION Parse(string str)
// TODO : Add code needed to parse the string and get the object represented by the string
return new TAB_MC_REGION();
// Factory to create an object for the above class
//[OracleCustomTypeMappingAttribute("IPROM.TAB_MC_REGION")]
public class TAB_MC_REGIONFactory : IOracleCustomTypeFactory, IOracleArrayTypeFactory
public virtual IOracleCustomType CreateObject()
TAB_MC_REGION obj = new TAB_MC_REGION();
return obj;
public virtual System.Array CreateArray(int length)
RegionInfo[] collElem = new RegionInfo[length];
return collElem;
public virtual System.Array CreateStatusArray(int length)
return null;
End
Main Class Code(Execution Part) Start
I am using "Microsoft.Practices.EnterpriseLibrary.Data.Database"
List<RegionInfo> mealRegionList = new List<RegionInfo>();
TAB_MC_REGION mealregionTableObject = new TAB_MC_REGION(mealRegionList.ToArray());
Database database = DatabaseFactory.CreateDatabase();
using (DbCommand command = database.GetStoredProcCommand("mealplanning_services.SAVE_MC_REGION"))
database.AddOracleInParameter(command, string.Empty, OracleDbType.Object, "TAB_MC_REGION", mealregionTableObject);
database.AddOracleOutParameter(command, "@po_result_code", OracleDbType.Decimal, 50);
database.ExecuteNonQuery(command);
End
email address:- [email protected]
please fill free to contact.Issue Resolved. For less than 50 records, client side filtering takes over. In that case the search help exit will not come into picture. Issue resolved by avoiding client side rendering.
callcontrol-maxexceed = 'X'.
Thanks,
Pris. -
Number field type mapped as String
Oracle Number field is mapped as CSTRING when using CRECORDSET class in VC++.
Any ideas why? or what I should do?How big is the number column defined? ANything larger than a NUMBER(14) will map to a character string since there isn't a datatype large enough to hold say a NUMBER(30).
Here is the mapping as I rememeber it (it is old information and may not be quite up to date with the latest drivers):
if Scale = 0 then if Precision <= 4 then
Number Size: Integer
if Precision <= 9 then Number Size: Long
Integer
if Precision <= 15 then Number Size: Double
if Scale > 0 then if Precision <= 15 then
Number Size: Double
Any other field types mapped to Text (Field
Size = 255). -
SQL TYPE MAPPING for MSSQL SERVER and POSTGRES
I have deployed an ejb application using weblogic6.1 and Oracle which was successful.The same application i tried to deploy for MSSQL SERVER which failed with the following exception :
Errors encountered ''The Container-Managed Persistence Entity EJB failed while creating its SQL Type Map. The error was:
[Microsoft][SQLServer 2000 Driver for JDBC][SQLServer]Invalid object name 'd_sip_salary_earning_1'.',
'Error encountered while attempting to create Default DBMS Table: 'd_sip_salary_earning_1'. Error Text: '[Microsoft][SQLServer 2000 Driver for JDBC][SQLServer]Column or parameter #3: Cannot find data type DATE.'.''
How do i solve the above issue?
Please someone help me solve this issue.
Thanks in Advance.
Regds,
--JaganJagan wrote:
I have deployed an ejb application using weblogic6.1 and Oracle which was successful.The same application i tried to deploy for MSSQL SERVER which failed with the following exception :
Errors encountered ''The Container-Managed Persistence Entity EJB failed while creating its SQL Type Map. The error was:
[Microsoft][SQLServer 2000 Driver for JDBC][SQLServer]Invalid object name 'd_sip_salary_earning_1'.',
'Error encountered while attempting to create Default DBMS Table: 'd_sip_salary_earning_1'. Error Text: '[Microsoft][SQLServer 2000 Driver for JDBC][SQLServer]Column or parameter #3: Cannot find data type DATE.'.''
How do i solve the above issue?
Please someone help me solve this issue.
Thanks in Advance.
Regds,
--JaganMS SQLServer does not have a DATE column type. The column type you want is 'DATETIME' in MS SQLServer.
If you did not specify the DDL and/or if this is coming from generated code, then show me the full stack trace
of this exception. If you dont have it, please turn on JDBC logging, and the full SQLException will show up in
the jdbc log file.
thanks,
Joe -
How to combine "Object-to-XML (OXM)" and "Direct to XML Type" mapping?
hi
If I have an XMLType column in my table (wich I can map using TopLink) and I have defined the structure of the contents of this XMLType column using XML Schema (wich I can map using Toplink), how can I combine both types of TopLink mappings "as transparently as possible"?
for "Object-to-XML (OXM)" mapping
see http://www.oracle.com/technology/products/ias/toplink/technical/tips/ox/index.htm
for "Direct to XML Type" mapping
see http://www.oracle.com/technology/products/ias/toplink/doc/1013/main/_html/relmapun004.htm#CHDFIFEF
thanks
Jan VerveckenThanks for your reply James Sutherland.
Although I haven't used a "TopLink Converter" before, this seems like a good idea.
The thing is that the "TopLink Workbench Editor" for my "Direct to XML Type" mapping doesn't have a "Converter" tab, some other mapping type editors do have such a "Converter" tab.
I'm not sure if I completely understand how such a "TopLink Converter" is supposed to work. How many attributes do I need in the "XMLRow" Java object for the "MY_XML" column in the "XML_TABLE" table I try to map to?
I suppose I should try to get a situation where the "XMLRow" Java object has an "myXML" attribute of Java class type "MyXML" (where "MyXML" has been mapped to an XML Schema), not?
So do I also still need an attribute "myXMLDocument" of type org.w3c.dom.Document as I do now for the "Direct to XML Type" mapping?
Oh, by the way ... for anyone who hits this forum thread looking for the reason why the TopLink Workbench reports the problem "Attribute must be assignable to java.lang.String, org.w3c.dom.Document, or org.w3c.Node" while your attribute is of such a type, read this forum post
Re: Toplink WB 10.1.3 - Aggregate field mapping bug and XMLType question
For me the "Direct to XML Type" mapping works fine, just ignoring the waring. This is supposed to be bug number 5071250.
thanks
Jan Vervecken -
Hi,
Where can I map the java datatype to its equivalent DB datatype. I think for Oracle, MS SQL server,Sysbase there is default type mapping.Jagan wrote:
Great Joe,
Thanks for ur immediate response.:-)
I have few issues here :
1.) Tell me whether i can use Postgres with weblogic6.1 and above versions.Weblogic supports any JDBC driver to any DBMS, as long as the JDBC driver
implements the standard JDBC spec, and is threadsafe.
2.)Can i create tables using weblogic and Postgres?if yes,how?Surely, via the SQL commands Postgres understands, and JDBC:
statement.executeUpdate("create table myTable(myInt int, myName varchar(30), ...)");
3.)If no support is provided,please tell whether weblogic support only the four
Databases mentioned in the doc,explain clearly.BEA is totally devoted to the J2EE standards. We must support any driver and
DBMS that also meets the J2EE spec.
4.)Is there no way i can specify datatype mapping using the weblogic API also?
Application servers like JBoss provide us with a xml where we specify the datatype
mappings for each database,is there something like that for weblogic?no.
Else provide me with a solution.I'm not sure what your exact desire is. For a given DBMS there are a unique
set of column types. There is some overlap across DBMSes, and there is
usually some types that are unique to the DBMS, and some that are generic
in purpose, such as date-time values, that is implemented differently in each
DBMS.
For each DBMS there is one or more JDBC drivers. Each driver will convert
a given DBMS column type to any logically convertable JDBC type. Ie:
an integer column in the DBMS can be asked for via getString(), and the
driver will convert the value 123 to "123". Drivers will also decide what
JDBC type to create from a given DBMS column. If a column value is
asked for via getObject(), the driver will make what it thinks is the best
Java type to represent the column. There is a JDBC spec for this, but many
drivers diverge from the spec.
What do you need, and how can we help?
Once again thanks for ur response,expecting the same again.Sure.
Joe Weinstein
Thanks & Regds,
--Jagan.
Joseph Weinstein <[email protected]> wrote:
Hi. No, we don't have a Postgres-Oracle,Oracle-postgres conversion
chart. Sorry.
Joe
Jagan wrote:
Joseph Weinstein <[email protected]> wrote:
Jagan wrote:
Hi,
Where can I map the java datatype to its equivalent DB datatype.
I
think for Oracle, MS SQL server,Sysbase there is default type mapping.
You will have to check the driver documentation for each DBMS driver
you use. There are too many deviations from the
JDBC spec to rely on it. For instance if you create an Oracle tablewith
an int column, if you do a getObject() to fetch
it's value, the Oracle driver will provide a BigDecimal object.
Joe
Hi Joe,
I think there is a big misunderstanding after seeing your reply.
What i meant was :
I am actually porting an application to weblogic6.1 and Postgre databasewhich
deployed and executed succesfully using weblogic6.1 and Oracle.
Here i face the problem of Datatype mapping for Postgres.
What i wanted is,is there a file or xml in weblogic where i can specifythe datatype
mapping for each database?
If yes,where and how do i do that,explain me with a sample plaese.
Please do not be specific to any database,because i am porting thesame application
to many databases,so please answer me in
generic.
Thanks in Advance,
--Jagan. -
TopLink : attribute-mapping direct-xml-type-mapping
hi
Using TopLink Workbench 10g Release 3 (10.1.3.0.0) Build 060118 it is possible to configure a "Direct to XML Type" mapping.
see http://www.oracle.com/technology/products/ias/toplink/doc/1013/main/_html/relmapun004.htm#CHDFIFEF
In the TopLink map this results in a
<opm:attribute-mapping xsi:type="toplink:direct-xml-type-mapping">Is there a way to configure this kind of attribute mapping using JDeveloper?
thanks
Jan VerveckenHi Paul,
The problem you're going to hit trying to do this with a TransformationMapping in 904 (as in my other post) is that during the UnitOfWork commit, when TopLink is checking for changes a .equals will end up being called on an XMLType instance which will throw a NullPointerException (in oracle.sql.Datum I think).
One way to work around this (depending on the requirements for your app) is to set the isMutable flag on the TransformationMapping to false. This flag indicates that the value in the object's attribute isn't going to be changed, so we don't bother trying to check to see if it's changed. This will allow you to do reads, inserts and deletes with no problems.
The downside is that if you need to be able to change the XML content in your objects model and do an update of the row, TopLink will never detect a change and never issue an update of the XMLType field.
Incidentilly, if you happen to hit the same issue you had with the DirectToXMLTypeMapping where you were getting back an instance of java.sql.Opaque instead of the expected oracle.xdb.XMLType from JDBC, you should be able to handle that case in your AttributeTransformer by doing
XMLType myXML = XMLType.createXML(myOpaque)
Document = myXML.getDocument();
Hope this helps
Matt MacIvor -
TT5121 error - Non standard type mapping?
Hi all,
I'm creating cache groups on the TT database, but for some tables I'm getting the following error:
TT5121: Non standard type mapping for column [Schema].[Table].[Column], cache operations are restricted.
I'm creating the tables on TT using the Oracle tables DDL, so I quite don't understand where's the problem. I found another thread here on OTN with a similar problem, but it didn't help me. Both TT and Oracle have the UTF8 Character Set.
Can anyone help?
Thanks,
AndréHi Chris,
The DDL for the 11g source table:
CREATE TABLE DMTCMT_AT.DIM_ADDRESS
ADDRESS_ID NUMBER(19) NOT NULL,
ADDRESS_CODE VARCHAR2(40 CHAR),
ADDRESS_TYPE VARCHAR2(32 CHAR),
STREETNAME VARCHAR2(64 CHAR),
HOUSE_NUMBER VARCHAR2(16 CHAR),
HOUSE_NUMBER_EXTENSION VARCHAR2(8 CHAR),
HOUSE_NAME VARCHAR2(64 CHAR),
FLAT_NUMBER VARCHAR2(16 CHAR),
FLOOR_NUMBER VARCHAR2(16 CHAR),
STAIR_CASE VARCHAR2(16 CHAR),
ZIP_CODE VARCHAR2(8 CHAR),
ZIP_CODE_WITHOUT_EXTENSION VARCHAR2(8 CHAR),
ZIP_CODE_EXTENSION VARCHAR2(8 CHAR),
DISTRICT_NAME VARCHAR2(64 CHAR),
CITY_NAME VARCHAR2(64 CHAR),
COMMUNITY_NAME VARCHAR2(64 CHAR),
REGION_NAME VARCHAR2(64 CHAR),
COUNTRY_NAME VARCHAR2(64 CHAR),
PO_BOX_NUMBER VARCHAR2(16 CHAR),
PO_BOX_TYPE VARCHAR2(16 CHAR),
X_COORDINATE VARCHAR2(16 CHAR),
Y_COORDINATE VARCHAR2(16 CHAR),
IS_COMPLETE VARCHAR2(1 CHAR),
DSL_FRANCHISE_ID NUMBER(19),
CABLE_FRANCHISE_ID NUMBER(19),
OBJECT_SCD1_WID NUMBER(19),
OBJECT_WID NUMBER,
EXTERNAL_ID VARCHAR2(255 BYTE),
VALID_FOR_START_DATE_TIME DATE,
VALID_FOR_END_DATE_TIME DATE,
META_VALID_FOR_START_DATE_TIME DATE,
META_VALID_FOR_END_DATE_TIME DATE,
META_DATASOURCE_ID NUMBER(19),
META_CREATION_DATE DATE,
META_IS_CURRENT VARCHAR2(1 BYTE),
META_IS_VALID VARCHAR2(1 BYTE),
META_IS_ACTIVE VARCHAR2(1 BYTE),
META_BUSINESS_UNIT_ID NUMBER(19),
META_COUNTRY_CODE VARCHAR2(3 BYTE) NOT NULL,
META_PROCESS_ID NUMBER(19),
META_MODIFICATION_DATE DATE,
MD5_CRC VARCHAR2(32 BYTE),
IS_SELF_INSTALL VARCHAR2(1 BYTE),
SELF_INSTALL_DATE DATE,
BUSINESS_FRANCHISE_ID NUMBER(20)
TABLESPACE CDMDWHPE
PCTUSED 0
PCTFREE 10
INITRANS 1
MAXTRANS 255
STORAGE (
INITIAL 64K
NEXT 1M
MINEXTENTS 1
MAXEXTENTS UNLIMITED
PCTINCREASE 0
BUFFER_POOL DEFAULT
LOGGING
NOCOMPRESS
NOCACHE
NOPARALLEL
MONITORING
ENABLE ROW MOVEMENT;
The DDL for the TT cache group:
CREATE READONLY CACHE GROUP DIM_ADDRESS_AT FROM DMTCMT_AT.DIM_ADDRESS
( ADDRESS_ID NUMBER(19) NOT NULL,
ADDRESS_CODE VARCHAR2(40 CHAR),
ADDRESS_TYPE VARCHAR2(32 CHAR),
STREETNAME VARCHAR2(64 CHAR),
HOUSE_NUMBER VARCHAR2(16 CHAR),
HOUSE_NUMBER_EXTENSION VARCHAR2(8 CHAR),
HOUSE_NAME VARCHAR2(64 CHAR),
FLAT_NUMBER VARCHAR2(16 CHAR),
FLOOR_NUMBER VARCHAR2(16 CHAR),
STAIR_CASE VARCHAR2(16 CHAR),
ZIP_CODE VARCHAR2(8 CHAR),
ZIP_CODE_WITHOUT_EXTENSION VARCHAR2(8 CHAR),
ZIP_CODE_EXTENSION VARCHAR2(8 CHAR),
DISTRICT_NAME VARCHAR2(64 CHAR),
CITY_NAME VARCHAR2(64 CHAR),
COMMUNITY_NAME VARCHAR2(64 CHAR),
REGION_NAME VARCHAR2(64 CHAR),
COUNTRY_NAME VARCHAR2(64 CHAR),
PO_BOX_NUMBER VARCHAR2(16 CHAR),
PO_BOX_TYPE VARCHAR2(16 CHAR),
X_COORDINATE VARCHAR2(16 CHAR),
Y_COORDINATE VARCHAR2(16 CHAR),
IS_COMPLETE VARCHAR2(1 CHAR),
DSL_FRANCHISE_ID NUMBER(19),
CABLE_FRANCHISE_ID NUMBER(19),
OBJECT_SCD1_WID NUMBER(19),
OBJECT_WID NUMBER,
EXTERNAL_ID VARCHAR2(255 BYTE),
VALID_FOR_START_DATE_TIME DATE,
VALID_FOR_END_DATE_TIME DATE,
META_VALID_FOR_START_DATE_TIME DATE,
META_VALID_FOR_END_DATE_TIME DATE,
META_DATASOURCE_ID NUMBER(19),
META_CREATION_DATE DATE,
META_IS_CURRENT VARCHAR2(1 BYTE),
META_IS_VALID VARCHAR2(1 BYTE),
META_IS_ACTIVE VARCHAR2(1 BYTE),
META_BUSINESS_UNIT_ID NUMBER(19),
META_COUNTRY_CODE VARCHAR2(3 BYTE) NOT NULL,
META_PROCESS_ID NUMBER(19),
META_MODIFICATION_DATE DATE,
MD5_CRC VARCHAR2(32 BYTE),
IS_SELF_INSTALL VARCHAR2(1 BYTE),
SELF_INSTALL_DATE DATE,
BUSINESS_FRANCHISE_ID NUMBER(20)
PRIMARY KEY ("OBJECT_WID"));
Thanks,
André -
Type-mapping not working correctly, get "Unable to find a javaType for the xmlType" WARNING
I'm manually creating a web-services.xml file, and using the autogen ant task to
generate the codec XML/Java classes. The XML definition is provided by SAP.
The ant build.xml file:
<project name="buildWebservice" default="stubgen">
<target name="stubgen">
<clientgen ear="C:\projects\RMIS\ifrrequests\RMIS.ear"
packageName="com.aa.rmis.webservice.client"
clientJar="C:\projects\RMIS\ifrrequests\rmisws-client.jar"
autotype="False" />
</target>
<target name="all" depends="stubgen"/>
</project>
The problem is seen below in the output from Ant. Note the WARNINIG. The problem
is that the xml type cannot be mapped to the Java type.
C:\projects\RMIS\ifrrequests>ant -buildfile clientbuild.xml
Buildfile: clientbuild.xml
stubgen:
[clientgen] Generating client jar for RMIS.ear ...
[clientgen] WARNINIG: Unable to find a javaType for the xmlType:['urn:sap-com:do
cument:sap:business']:PaymentRequest.Create. Make sure that you have registered
this xml type in the type mapping
[clientgen] Using SOAPElement instead
[clientgen] Compiling 4 source files to C:\DOCUME~1\944377\LOCALS~1\Temp\rmisws-
client.jar-836624340
[clientgen] Building jar: C:\projects\RMIS\ifrrequests\rmisws-client.jar
BUILD SUCCESSFUL
Total time: 17 seconds
The Java source that has the implementation of the service methods is simply:
package com.aa.rmis.webservice;
import com.aa.rmis.ifr.request.*;
public class TestService
public TestService()
public int serviceRequest(PaymentRequestCreate request)
System.out.println("Received serviceRequest message");
return 0;
public void testStringRequest(String request)
The web-service.xml file is attached, which contains the schema for the SAP PaymentRequest.Create
object definition.
Another problem I have, which is probably related, is that the service method
that has a complex data type (non-built in data type) is not being deployed into
the WebLogic server. But the other service method that simply takes a String
parameter is.
The steps I took are:
1. Get XML from SAP Interface Repository (IFR) for PaymentRequest
2. Use ant task autogen to generate the request codec classes
3. Create the web-services.xml file by inserting the schema definition and the
mapping file created by the autogen task, and defining the operations
4. Build web-services.war file that contains all autogen compiled class files,
the web-services.xml file, and the service implementation class
5. Build the ear file that holds the web service files
6. Use the clientgen ant task to generate (included above) to generate the client
jar file that should contain the proxy for both of the service methods
Environment:
* WebLogic 7.02
* JDK 1.3.1_06
* JBuilder 9 Enterprise
* Ant 1.4
Possible causes:
* Namespace not being used correctly
* copied verbatim the mapping xml file generated by autogen into the web-services.xml
file
* xml-schema part of web-services.xml might not be set correctly
* operation definition might not be using the correct namespace
* Classpath used for ant might not be right
* Doubt this is the problem, but I'm out of other ideas
* Set by using the setWLEnv.cmd file provided by WebLogic
* Tried adding the generated classes directory for my project to the classpath,
but did not work
I've been referencing the Programming WebLogic Web Services document throughout
this entire process. I must be missing something.
Can anybody from BEA help me out with this problem?
Thanks in advance.
[web-services.xml]Hi JD,
I spent a few cycles looking over your web-services.xml file, however I
don't have any suggestions other that one that looks like you have
already tried, at the top, in the <schema...>
targetNamespace="urn:sap-com:document:sap:business"
Making edits to these generated files can be tricky and my only
suggestion is to create a small reproducer to run by our outstanding
support team.
A quick look at our problem database shows one issue (CR095109) related
to a similar problem at deploy time that was fixed with 7.0SP3. Again,
the support folks will be able to help focus in on the issue.
Regards,
Bruce
JD wrote:
>
The first posting contains the wrong web-services.xml file. Please refer to this
one instead.
"JD" <[email protected]> wrote:
I'm manually creating a web-services.xml file, and using the autogen
ant task to
generate the codec XML/Java classes. The XML definition is provided
by SAP.
The ant build.xml file:
<project name="buildWebservice" default="stubgen">
<target name="stubgen">
<clientgen ear="C:\projects\RMIS\ifrrequests\RMIS.ear"
packageName="com.aa.rmis.webservice.client"
clientJar="C:\projects\RMIS\ifrrequests\rmisws-client.jar"
autotype="False" />
</target>
<target name="all" depends="stubgen"/>
</project>
The problem is seen below in the output from Ant. Note the WARNINIG.
The problem
is that the xml type cannot be mapped to the Java type.
C:\projects\RMIS\ifrrequests>ant -buildfile clientbuild.xml
Buildfile: clientbuild.xml
stubgen:
[clientgen] Generating client jar for RMIS.ear ...
[clientgen] WARNINIG: Unable to find a javaType for the xmlType:['urn:sap-com:do
cument:sap:business']:PaymentRequest.Create. Make sure that you have
registered
this xml type in the type mapping
[clientgen] Using SOAPElement instead
[clientgen] Compiling 4 source files to C:\DOCUME~1\944377\LOCALS~1\Temp\rmisws-
client.jar-836624340
[clientgen] Building jar: C:\projects\RMIS\ifrrequests\rmisws-client.jar
BUILD SUCCESSFUL
Total time: 17 seconds
The Java source that has the implementation of the service methods is
simply:
package com.aa.rmis.webservice;
import com.aa.rmis.ifr.request.*;
public class TestService
public TestService()
public int serviceRequest(PaymentRequestCreate request)
System.out.println("Received serviceRequest message");
return 0;
public void testStringRequest(String request)
The web-service.xml file is attached, which contains the schema for the
SAP PaymentRequest.Create
object definition.
Another problem I have, which is probably related, is that the service
method
that has a complex data type (non-built in data type) is not being deployed
into
the WebLogic server. But the other service method that simply takes
a String
parameter is.
The steps I took are:
1. Get XML from SAP Interface Repository (IFR) for PaymentRequest
2. Use ant task autogen to generate the request codec classes
3. Create the web-services.xml file by inserting the schema definition
and the
mapping file created by the autogen task, and defining the operations
4. Build web-services.war file that contains all autogen compiled class
files,
the web-services.xml file, and the service implementation class
5. Build the ear file that holds the web service files
6. Use the clientgen ant task to generate (included above) to generate
the client
jar file that should contain the proxy for both of the service methods
Environment:
* WebLogic 7.02
* JDK 1.3.1_06
* JBuilder 9 Enterprise
* Ant 1.4
Possible causes:
* Namespace not being used correctly
* copied verbatim the mapping xml file generated by autogen into
the web-services.xml
file
* xml-schema part of web-services.xml might not be set correctly
* operation definition might not be using the correct namespace
* Classpath used for ant might not be right
* Doubt this is the problem, but I'm out of other ideas
* Set by using the setWLEnv.cmd file provided by WebLogic
* Tried adding the generated classes directory for my project to
the classpath,
but did not work
I've been referencing the Programming WebLogic Web Services document
throughout
this entire process. I must be missing something.
Can anybody from BEA help me out with this problem?
Thanks in advance.
Name: web-services.xml
web-services.xml Type: ACT Project (text/xml)
Encoding: base64 -
Calling web service from MBean weblogic cannot find type mapping file
When calling web service from custom MBean i get java.io.IOException.
java.io.IOException: unable to find the type mapping resource file for:
net.msl.sfx.ebooking.client.BookingPartiesServiceService
at weblogic.webservice.core.encoding.DefaultRegistry.<init>(DefaultRegis
try.java:67)
at weblogic.webservice.core.rpc.ServiceImpl.<init>(ServiceImpl.java:83)
at net.msl.sfx.ebooking.client.BookingPartiesServiceService_Impl.<init>(
BookingPartiesServiceService_Impl.java:22)
at net.msl.sfx.ebooking.service.EBookingService.getBookingParties(EBooki
ngService.java:59)
The types.xml file is placed in same jar file as the classes such as net.msl.sfx.ebooking.client.BookingPartiesServiceService_Impl.
When calling the same class/method from a EJB, everything works fine and the web service is called.i am having the same problem.
Do you have a solution now?
Thanks -
Java.io.IOException: unable to find the type mapping resource file
Hi,
I am using weblogic7.0 to deploy my applications. I wrote a web service and
was able to deploy it sucessfully. I am trying to access the web service through
a jsp page. I am the error posted below on my server and " error:505 internal
server error" on the browser. Can any one please help me out with the problem.
My jsp page just displays the float value i am returing from the session bean
method.
Thanks,
Ramya.
<Apr 14, 2003 4:32:51 PM PDT> <Error> <HTTP> <101019> <[ServletContext(id=64204
55,name=bankwebapp,context-path=/bankwebapp)] Servlet failed with IOException
java.io.IOException: unable to find the type mapping resource file for:bank.Ban
kService
at weblogic.webservice.core.encoding.DefaultRegistry.<init>(DefaultRegi
stry.java:62)
at weblogic.webservice.core.rpc.ServiceImpl.<init>(ServiceImpl.java:72)
at bank.BankService_Impl.<init>(BankService_Impl.java:23)
at jsp_servlet.__getbal._jspService(__getbal.java:106)
at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.ru
n(ServletStubImpl.java:1058)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubI
mpl.java:401)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubI
mpl.java:445)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubI
mpl.java:306)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationActi
on.run(WebAppServletContext.java:5412)
at weblogic.security.service.SecurityServiceManager.runAs(SecurityServi
ceManager.java:744)
at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppS
ervletContext.java:3086)
at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestI
mpl.java:2544)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:153)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:134)
>
<Apr 14, 2003 4:40:59 PM PDT> <Notice> <Application Poller> <149400> <Activatin
g application: appsdirbankwebapp_war>
<Apr 14, 2003 4:40:59 PM PDT> <Notice> <Application Poller> <149404> <Activate
application appsdirbankwebapp_war on myserver - Running>
<Apr 14, 2003 4:41:01 PM PDT> <Notice> <Application Poller> <149404> <Activate
application appsdirbankwebapp_war on myserver - Completed>
The url value from the jsp page ishttp://localhost:7001
The wsdl value from the jsp page ishttp://localhost:7001/web_services/BankServi
ce
<Apr 14, 2003 4:41:06 PM PDT> <Error> <HTTP> <101019> <[ServletContext(id=72463
20,name=bankwebapp,context-path=/bankwebapp)] Servlet failed with IOException
java.io.IOException: unable to find the type mapping resource file for:bank.Ban
kService
at weblogic.webservice.core.encoding.DefaultRegistry.<init>(DefaultRegi
stry.java:62)
at weblogic.webservice.core.rpc.ServiceImpl.<init>(ServiceImpl.java:72)
at bank.BankService_Impl.<init>(BankService_Impl.java:23)
at jsp_servlet.__getbal._jspService(__getbal.java:106)
at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.ru
n(ServletStubImpl.java:1058)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubI
mpl.java:401)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubI
mpl.java:445)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubI
mpl.java:306)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationActi
on.run(WebAppServletContext.java:5412)
at weblogic.security.service.SecurityServiceManager.runAs(SecurityServi
ceManager.java:744)
at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppS
ervletContext.java:3086)
at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestI
mpl.java:2544)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:153)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:134)
>Hi Manoj,
Thanks a lot for your hepl. I tried as you said and its working now.
Ramya
"manoj cheenath" <[email protected]> wrote:
Make sure that you put the client jar file generated by
clientgen in the lib directory of the jsp web app.
It looks like the runtime is unable to load
<service>.xml type mapping file. This xml file
should be in the classpath (web-inf/lib or
web-inf/classes).
-manoj
"Ramya" <[email protected]> wrote in message
news:[email protected]...
Hi,
I am using weblogic7.0 to deploy my applications. I wrote a web serviceand
was able to deploy it sucessfully. I am trying to access the web servicethrough
a jsp page. I am the error posted below on my server and " error:505internal
server error" on the browser. Can any one please help me out with theproblem.
My jsp page just displays the float value i am returing from the sessionbean
method.
Thanks,
Ramya.
<Apr 14, 2003 4:32:51 PM PDT> <Error> <HTTP> <101019><[ServletContext(id=64204
55,name=bankwebapp,context-path=/bankwebapp)] Servlet failed withIOException
java.io.IOException: unable to find the type mapping resource filefor:bank.Ban
kService
atweblogic.webservice.core.encoding.DefaultRegistry.<init>(DefaultRegi
stry.java:62)
atweblogic.webservice.core.rpc.ServiceImpl.<init>(ServiceImpl.java:72)
at bank.BankService_Impl.<init>(BankService_Impl.java:23)
at jsp_servlet.__getbal._jspService(__getbal.java:106)
at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
atweblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.ru
n(ServletStubImpl.java:1058)
atweblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubI
mpl.java:401)
atweblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubI
mpl.java:445)
atweblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubI
mpl.java:306)
atweblogic.servlet.internal.WebAppServletContext$ServletInvocationActi
on.run(WebAppServletContext.java:5412)
atweblogic.security.service.SecurityServiceManager.runAs(SecurityServi
ceManager.java:744)
atweblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppS
ervletContext.java:3086)
atweblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestI
mpl.java:2544)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:153)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:134)
>
<Apr 14, 2003 4:40:59 PM PDT> <Notice> <Application Poller> <149400><Activatin
g application: appsdirbankwebapp_war>
<Apr 14, 2003 4:40:59 PM PDT> <Notice> <Application Poller> <149404><Activate
application appsdirbankwebapp_war on myserver - Running>
<Apr 14, 2003 4:41:01 PM PDT> <Notice> <Application Poller> <149404><Activate
application appsdirbankwebapp_war on myserver - Completed>
The url value from the jsp page ishttp://localhost:7001
The wsdl value from the jsp page
ishttp://localhost:7001/web_services/BankServi
ce
<Apr 14, 2003 4:41:06 PM PDT> <Error> <HTTP> <101019><[ServletContext(id=72463
20,name=bankwebapp,context-path=/bankwebapp)] Servlet failed withIOException
java.io.IOException: unable to find the type mapping resource filefor:bank.Ban
kService
atweblogic.webservice.core.encoding.DefaultRegistry.<init>(DefaultRegi
stry.java:62)
atweblogic.webservice.core.rpc.ServiceImpl.<init>(ServiceImpl.java:72)
at bank.BankService_Impl.<init>(BankService_Impl.java:23)
at jsp_servlet.__getbal._jspService(__getbal.java:106)
at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
atweblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.ru
n(ServletStubImpl.java:1058)
atweblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubI
mpl.java:401)
atweblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubI
mpl.java:445)
atweblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubI
mpl.java:306)
atweblogic.servlet.internal.WebAppServletContext$ServletInvocationActi
on.run(WebAppServletContext.java:5412)
atweblogic.security.service.SecurityServiceManager.runAs(SecurityServi
ceManager.java:744)
atweblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppS
ervletContext.java:3086)
atweblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestI
mpl.java:2544)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:153)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:134)
> -
Unable to Find the Type Mapping Resource File (Two web services)
Hello,
I am using BEA weblogic 7.0 to deploy my applications. I have a web service and was able to deploy it sucessfully. I am trying to access this web service from another web service previously succesfully deployed too. When I call the second one, I have the next problem:
java.io.IOException: unable to find the type mapping resource file for:tuoprec.sinsesion.TuOPRecService
at weblogic.webservice.core.encoding.DefaultRegistry.<init>(DefaultRegistry.java:62)
at weblogic.webservice.core.rpc.ServiceImpl.<init>(ServiceImpl.java:72)
at tuoprec.sinsesion.TuOPRecService_Impl.<init>(TuOPRecService_Impl.java
I put the client jar file (2nd web service) obtained from the <clientgen> in the class path of the ear file (1st web service), but I have the same error.
Can anybody help me?,
jose luisHello,
I am using BEA weblogic 7.0 to deploy my applications. I have a web service and was able to deploy it sucessfully. I am trying to access this web service from another web service previously succesfully deployed too. When I call the second one, I have the next problem:
java.io.IOException: unable to find the type mapping resource file for:tuoprec.sinsesion.TuOPRecService
at weblogic.webservice.core.encoding.DefaultRegistry.<init>(DefaultRegistry.java:62)
at weblogic.webservice.core.rpc.ServiceImpl.<init>(ServiceImpl.java:72)
at tuoprec.sinsesion.TuOPRecService_Impl.<init>(TuOPRecService_Impl.java
I put the client jar file (2nd web service) obtained from the <clientgen> in the class path of the ear file (1st web service), but I have the same error.
Can anybody help me?,
jose luis -
Non-build-in-data type mapping error
Hi,
I started a new web service design using a pre-defined Schema. I created a schema project and use XML bean as my web service method parameter.
It works fine in workshop test IDE. But when I deployed it and tried to generate client jar, it gave me Failed to do type mapping error.
What steps I should do to fix this non-build-in data type problem?
thanks
MayHi,
I started a new web service design using a pre-defined Schema. I created a schema project and use XML bean as my web service method parameter.
It works fine in workshop test IDE. But when I deployed it and tried to generate client jar, it gave me Failed to do type mapping error.
What steps I should do to fix this non-build-in data type problem?
thanks
May
Maybe you are looking for
-
How to set up two iphones on same computer
I'm trying to set up a second Iphone on my computer. When I try to download music, it has information from my first Iphone. How do I set up a second Iphone? I've created all the accounts I can think of but it's like it doesn't recognize my second
-
Grey screen following update to 10.6.8
Need help. Tried to update to 10.6.8 and all I get is a grey screen
-
Problem in activating "Certify Completion" Button in LBK1.
Hi Experts, We are working on LBK1 logbook entry. The Certify Completion Button in Notification is coming correctly, but in Log Entry this button is not displayed. How we can activate / display this button in LBK1 ? Study SAP
-
Opendocument failing when parameters populated by Report
Post Author: Lesley CA Forum: General I don't know whether this has been raised before, but I am using Crystal Reports XI and trying to access the URL to call a report. When I pass a parameter to the report, it works. eg http://localhost:8080/busin
-
Ship To assignment to Sold To not needed in Order
Hi experts, Can I book an order with a ship to who is not assigned to the sold to ? Ex: Sold to 1000 has 2 ship tos --> 1001 & 1002 Sold to 2000 has 1 ship to --> 2001 Can I book an order with Sold to 1000 and ship to 2001 ? I am surprised to see thi