JDBC or FILE???
Hi,
We have a scenario in which an oracle in Unix needs to be interfaced with a DB2 system. Since both are database systems is it right to use JDBC adapters and communicate??
I am a little confused on how FILE adapters would be used...
-Krishnan
Hi Krishnan,
You could use FILE adapters but then you would need to write some kind of data dump routine in the source database, load it in XI (do do data transformations) and then write a data import routine in the target database. If no data transformations are needed, then you would probbably not even need XI.
The better approcach would be a simple JDBC interface using XI. For example if the UNIX Oracle is your source database, create a stored procedure or view (if you need to get data from multiple tables), create a mapping in XI, and post it DB2 again with a JDBC.
Similar Messages
-
JDBC-XI-FILE scenario. How to extract data from more than one table in JDBC
Hi,
I was asked a question like in JDBC-XI-FILE scenario........ How to extract data from more than one tables (i.e from JDBC system) ?? What is the logic to do the same ??
I am not sure whether this is a valid question..........but any help in this regards is highly appreciated.
Regards
KumarHI,
Yes it can be possible ,please see the following links
JDBC Receiver with Oracle Stored Procedures
configuring jdbc adapter with multiple tables
RFC -> XI -> JDBC Scenario Updating Multiple Tables
/people/alessandro.berta/blog/2005/10/04/save-time-with-generalized-jdbc-datatypes
JDBC Adapter multiple Selects
https://www.sdn.sap.com/irj/sdn/advancedsearch?query=jdbc%20with%20multiple%20tables&cat=sdn_all
Regards
Chilla.. -
Help with jdbc to file scenario
Hi guys,
I want to do a JDBC to file scenario. I need to do a SELECT * query from my table.
An external application does the updation into my tables. I needed XI to connect to my JDBC system whenever there is an update in the tables and post it as a file.
Please guide me on this guys
Varunas pointed out have a indicator in ur table that is updated by the external system for setting that the record is read when the jdbc is polled. this would be help for avoiding reading the same records again and again whioch results in duplication. u can follow this blog (reve engg )
/people/bhavesh.kantilal/blog/2006/07/03/jdbc-receiver-adapter--synchronous-select-150-step-by-step -
JDBC to file scenario - Time limit exceeded
Hi All,
I am getting timelimit exceeded error in the inbound queues when I am processing the interface JDBC-XI-file. I have tried many options like registering the queues, changed the integration engine configuraion parameters for timeout , checked the memory space. When less data is being sent like 50kb then it is executing successfully. With large data the messages are getting stuck in the queues and then giving the timeout error.
Also when I am checking in sm50 it showing that some rfc is going on hold.
Please suggest .
Thanks,
AparnaThanks for the reply Pragati.
What will be the UDF code for RFC lookup in case of passing the data in Queue. I am currently using the below code for gettng single value.
Also is it possible to get multiple output values which can be mapped to different target fields. Currently I am using different rfc lookups for different target fields. So if I can combine them into single rfc lookup them this may effect the performance.
//write your code here
String content = "";
MappingTrace importanttrace;
importanttrace = container.getTrace();
// Create document builder to create DOM XML document
DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
DocumentBuilder builder = null;
factory.setNamespaceAware(false);
factory.setValidating(false);
try {
// Create XML document using document builder
builder = factory.newDocumentBuilder();
} catch (Exception e) {
importanttrace.addWarning("Error creating DocumentBuilder - " + e.getMessage());
return null;
// filling the string with our RFC-XML (with values)
String m ="<?xml version=\"1.0\" encoding=\"UTF-8\"?><ns1:ZFI_GET_COCODE xmlns:ns1=\"urn:sap-com:document:sap:rfc:functions\"><COMPANYID>" + a + "</COMPANYID></ns1:ZFI_GET_COCODE>";
RfcAccessor accessor = null;
ByteArrayOutputStream out = null;
Payload result = null;
try
// 1. Determine a channel (Business system, Communication channel)
Channel channel = LookupService.getChannel("BS_SAP_DEC210","CC_RECEIVER_RFC_test");
// 2. Get a RFC accessor for a channel.
accessor = LookupService.getRfcAccessor(channel);
// 3. Create a xml input stream representing the function module request message.
InputStream inputStream = new ByteArrayInputStream(m.getBytes());
// 4. Create xml payload
XmlPayload payload = LookupService.getXmlPayload(inputStream);
// 5. Execute lookup
result = accessor.call(payload);
/*InputStream in = result.getContent();
out = new ByteArrayOutputStream(1024);
byte[] buffer = new byte[1024];
for (int read = in.read(buffer); read > 0; read = in.read(buffer)) {
out.write(buffer, 0, read);
content = out.toString();
if (result == null) {
importanttrace.addWarning("result of RFC call is null");
catch(LookupException e)
importanttrace.addWarning("Error while lookup " + e.getMessage() );
Document docResponse = null;
InputStream in = result.getContent();
String res = "";
try {
docResponse = builder.parse(in);
if (docResponse == null) {
importanttrace.addWarning("docResponse is null");
res = docResponse.getElementsByTagName("COMPANY_CODE").item(0).getFirstChild().getNodeValue();
if (res == null) {
importanttrace.addWarning("res is null");
catch (Exception e) {
importanttrace.addWarning("Error when parsing RFC Response - " + e.getMessage());
try {
// Free resources, close the accessor..
if (accessor != null) {
try {
accessor.close();
} catch (LookupException e) {
importanttrace.addWarning( "Error while closing accessor " + e.getMessage());
} catch (Exception e) {
importanttrace.addWarning("Result value not found in DOM - " + e);
// return the result obtained above
return res;
Thanks. -
Hey Experts,
I have a scenario from JDBC to File (xml) scenario.
The problem is that the data is being picked up from the data base and is sent through the sender JDBC channel to the receiver file adapter channel where the file content conversion is done. But when I check the output text file, it is empty. When I go to SXMB_MONI to check if there is any error, every thing is fine with a checkered flag on the message. My sender and the receiver data types are the same.
Here is the scenario:
DT_sender and DT_receiver ---> row
NAME
ID
GRADE
payload from the sender channel is:
<MT_DB2FILE_SENDER>
< row>
<NAME>CNCN</NAME>
<ID>222</ID>
<GRADE>A</GRADE>
</MT_DB2FILE_SENDER>
When the content conversion is done with the parameters :
Recordset structure : row,1
row.fieldNames : NAME,ID,GRADE
row.fieldSeparator : \t
row.endSeparator: 'nl'
The text file that is generated is empty. I have tried out all the posts that are related to this topic. But I could not find the suitable answer. ANy help would be greatly appreciated.
Regards.Hey
I m a little confused here
In your earlier reply,you posted
<?xml version="1.0" encoding="UTF-8" ?>
<ns0:MT_DB2FILE_RECEIVER xmlns:ns0="http://jdbc2jdbc" />
and now you are posting this
<?xml version="1.0" encoding="utf-8" ?>
- <MT_DB2FILE_SENDER>
- <row>
<NAME>CHAD</NAME>
<ID>204</ID>
<GRADE>A</GRADE>
</row>
- <row>
<NAME>TYLER</NAME>
<ID>204</ID>
<GRADE>A</GRADE>
</row>
- <row>
<NAME>AMER</NAME>
<ID>204</ID>
<GRADE>A</GRADE>
</row>
- <row>
<NAME>BASHIR</NAME>
<ID>204</ID>
<GRADE>A</GRADE>
</row>
- <row>
<NAME>WENBIN</NAME>
<ID>206</ID>
<GRADE>A</GRADE>
</row>
- <row>
<NAME>lilian</NAME>
<ID>139</ID>
<GRADE>A</GRADE>
</row>
</MT_DB2FILE_SENDER>
The above looks like a sender structure to me.
Could you please confirm this is exactly the payload you are getting in sxmb_moni under Technical routing .
Thanks
Aamir -
Jdbc to file scenario - base mapping error
hello all,
i am facing a similar issue discussed in this thread,
Re: JDBC to FILE scenatio: How to map the resultSet?
1. i changed the document name and namespace
2. i checked for the occurence of the filed elements
3. i tried using the documentname and namespce both from the MONI and MAPPING TEST TAB...but still the same base mapping runtime exception error.
Please advice.
Thanks
i have been following theAarthi,
Can you give us the following details,
1. select query that you are using in your JDBC sender adapter
2.the Document Name and namespace that you have given in the JDBC adapter
3. the source datatype that you have created for your JDBC side along with the occurence of each element.
This will help us nail the causwe for your problem.
Regards,
bhavesh -
OC4J에서 DEFAULT로 제공하는 JDBC CLASSES를 원하는 JDBC CLASSES FILE로 변경하는 방법
제품 : JDBC
작성날짜 :
OC4J에서 DEFAULT로 제공하는 JDBC CLASSES를 원하는 JDBC CLASSES FILE로 변경하는 방법
=================================================================
PURPOSE
9iAS에서 JDBC thin driver인 classes file을 새로운 version으로 변경하기 위한
여러가지 방법을 정리한다.
Explanation
9iAS R2에 포함된 JDBC THIN driver는 기본적으로 <J2EE_HOME>/jdbc/lib directory에
포함된 classes12dms.jar 화일이다. 이 classes12dml.jar는 경우에 따라서 새로운
version의 classes12.jar file로 변경되어져야 할 필요가 있는데 그러한 경우
먼저 현재 화일 backup을 받아두고 지우거나 옮긴 후 아래 정리된 방법 중
한가지를 이용하여 조치한다.
단 아래와 같이 아래의 certify된 jdbc driver version에 한하여
필요한 경우 같은 version을 대치, 혹은 upgrade하도록 한다.
Application Server release Certified Oracle JDBC Supported Database
release releases
================================================================================
===
Oracle9iAS Release 1 (1.0.2.2) 8.1.7 8.1.7
Oracle9iAS Release 2 (9.0.2 and 9.0.3) 9.0.1.4 9.2.0*, 9.0.1, 8.1.7
Oracle9iAS Release 2 (9.0.3.1) 9.0.1.4, 10.1.0 (thin), 10.1.0, 9.2.0, 9.0.1, 8
.1.7
+ one off patch 9.2.0 (thin)
Oracle Application Server 10g (9.0.4) 9.0.1.4 9.2.0*, 9.0.1, 8.1.7
Oracle Application Server 10g (9.0.4.1) 9.0.1.5, 10.1.0 (thin), 10.1.0*, 9.2.0*,
9.0.1, 8.1.7
- patched core 9.2.0 (thin)
================================================================================
===
현재 화일이 인식되지 못하도록 하기 위한 가장 간단한 방법은 다음과 같이
화일이 .jar나 .zip으로 인식되지 않도록 rename하는 것이다.
os>cd $ORACLE_HOME (or top level directory where oc4j was unpacked)
os>cd jdbc/lib
os>mv classes12dms.jar classes12dms.raj
(1) 방법1
OC4J가 실행되는 JSDK환경에서 global하게 access되도록 하려면 다음 directory에
classes12.jar 와 nls_charset12.jar를 copy한다.
<JDK_HOME>/jre/lib/ext
[주의] 이 위치에 .jar file을 위치시키게 되면, 이것은 OC4J뿐 아니라
command line에서 실행되는 java application 등 이 JDK환경의 어떤
java class에서도 인식이 된다.
이 extention directory는 jdk boot classpath보다는 이후 인식되지만,
사용자가 지정하는 CLASSPATH환경 변수 등보다는 더 상위에서 인식되기
때문이다.
그러므로 이 extention directory에 .jar를 위치시키는 것이 경우에 따라
원하지 않는 결과를 발생시킬 수 있음을 유의하여야 한다.
(2) 방법2
새로 사용하고자 하는 library file을 OC4J가 기본적으로 인식하는
<J2EE_HOME>/jdbc/lib directory로 다음과 같이 위치시킨다.
단 이때 새로운 version의 jdbc에 classes12dms.jar가 없다면 classes12.jar를 classe
s12dms.jar로 이름을 변경시켜 두도록 한다.
그 이유는 9iAS의 경우 default로 dms가 붙은 jdbc를 이용하기 때문이다.
os>cp classes12.jar <J2EE_HOME>/jdbc/lib/classes12dms.jar
os>cp nls_charset12.jar <J2EE_HOME>/jdbc/lib/nls_charset12.jar
(3) 방법3
$OC4J_HOME/j2ee/home/config/application.xml 에 아래와 같이 library path로
새로운 jdbc driver를 지정한다.
이때 다른 library path tag보다 앞 부분에 지정하도록 한다.
<library path="jdbc_classfile이_위치한_상대경로\classes12.jar"/>
<library path="jdbc_classfile이_위치한_상대경로\nls_charset12.jar"/>
NOTE: OPTIONS 1 through 3 update the JDBC classes used by all
applications running in the OC4J container.
(4) 방법4
위의 세가지 방법이 해당 OC4J의 모든 application에 영향을 미친게 된다.
원하는 application에서만 변경된 jdbc driver를 사용하고자 한다면
해당 application의 META-INF/application.xml화일에 다음 내용을 다른 libarary
path tag보다 앞 부분에 지정하도록 한다.
<library path="jdbc_classfile이_위치한_상대경로\classes12.jar"/>
<library path="jdbc_classfile이_위치한_상대경로\nls_charset12.jar"/>
Reference Documents
<Note:236947.1> How to override the default JDBC DRIVER classes with the
selected JDBC classes in OC4J -
File - to - JDBC- to - File Scenario using Stored Procedure
Hi,
I want to do File - to - JDBC - to - File scenario, because I'm getting data in a file format and that data i want to load in a database. Database level i have a stored procedure. if any exceptions. my stored procedure will give the Response. so, now i want to store that resposne in a file..
for this. what are the steps we have to use. is this scenario will comes in Synch ronous or Asynchronous ? and I have searched the web blogs also. al the blogs are related to Http or Soap with JDBC . so, please give me some input help about this...
how many data types we have to create... any body having step step procedure for this...
regards
JainHi,
You will need a BPM in your design as Sender File adapter does not support Synchronous messaging. Refer my answer in this thread (page 2) and have your design accordingly....instead of RFC you will have a file adapter as the ultimate receiver.
Re: BPM FILE--> JDBC--> RFC
Just take care of below things:
1) JDBC message format is as per the guidelines
[Message format for sending req to JDBC|http://help.sap.com/saphelp_nw04/helpdata/en/2e/96fd3f2d14e869e10000000a155106/content.htm]
2) check for the format of your source and target file format (if it is a Flat-file with a xml structure that XI can parse then no need of FCC but if it is a CSV file then you will need FCC)
Regards,
Abhishek
Edited by: abhishek salvi on Apr 14, 2009 7:32 PM -
Dera experts
i have a scenario in xi when i am configuring jdbc to file ,an error occured "error in structure mapping" can anybody tell me how to configure complete IR and ID and how to check data transfer to file.
thanks in advance
with regards
someshHi Venkata,
Refer to following Links
End to End Explained PDF
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/a04cd6f9-9eb0-2a10-07b8-a0fc6e88f4d4
SAP NOTE NO :
831162
/people/sap.user72/blog/2005/06/01/file-to-jdbc-adapter-using-sap-xi-30
Also this one further to enhance..
/people/bhavesh.kantilal/blog/2006/07/03/jdbc-receiver-adapter--synchronous-select-150-step-by-step
If you wanna do update/insert you will have to follow the
Document Formats for the Receiver JDBC Adapter
For Configuring the Receiver JDBC Adapter refer:
Configuring the Receiver JDBC Adapter
For Configuring the Sender JDBC Adapter refer:
Configuring the Sender JDBC Adapter
Please go through this blog and see if it helps you.
/people/prasadbabu.nemalikanti3/blog/2006/02/27/collecting-and-bundling-vendor-records-from-different-multiple-interfaces-file-systempeoplesoft-and-sending-to-sap-r3-system-part-2
For more info, just take a look at these links also,
http://help.sap.com/saphelp_nw04/helpdata/en/2e/96fd3f2d14e869e10000000a155106/content.htm
http://help.sap.com/saphelp_nw04/helpdata/en/2e/96fd3f2d14e869e10000000a155106/content.htm
All that i could get from the SAP Help regarding JDBC Adapters once when i searched for the same were these links, so go through these links and see if you find anything useful.
http://help.sap.com/bp_bpmv130/Documentation/Planning/XIUnicodeGuide030411.pdf
Configuring the Receiver JDBC Adapter
Mapping Lookups
JDBC Adapter
Configuring the Receiver JDBC Adapter - part 2
http://help.sap.com/saphelp_nw04/helpdata/en/2e/96fd3f2d14e869e10000000a155106/content.htm
Reward Points if Helpful
Thanks
Sunil Singh -
JDBC to FILE scenatio: How to map the resultSet?
Hi,
I am doing the JDBC-XI-File integration scenario.
I am getting the data from the Database as the following XML:
<b><?xml version="1.0" encoding="utf-8" ?>
- <resultset>
- <row>
<EMPNAME>Nagarjuna</EMPNAME>
<EMPID>100</EMPID>
<SALARY>15000</SALARY>
<DEPT>dev</DEPT>
</row>
- <row>
<EMPNAME>Mahendra</EMPNAME>
<EMPID>101</EMPID>
<SALARY>25000</SALARY>
<DEPT>dev</DEPT>
</row>
</resultset></b>
how to do the mapping?
I actually created a Data Type(JDBCSend_DT) & Message type & Message Interface for the Sender JDBC.
The mapping program I defined was not between <b>JDBCSend_MT</b> and <b>FileReceiver_MT</b>. (NOT BETWEEN resultSet and FileReceiver_MT)
Please help me to solve this.
Thanks in advance,
Nagarjuna.Hi,
I am getting the following error when I tested.
<b>11:42:04 Start of test
Document start
Start tag [ns1:FileRecv_MT]
Add raw attribute [ xmlns:ns1="http://www.xxx.com/file"]
Fatal Error: com.sap.engine.lib.xml.parser.ParserException: XMLParser: No data allowed here: (hex) 2d, 20, 3c(:main:, row:2, col:3) com.sap.aii.utilxi.misc.api.BaseRuntimeException: Fatal Error: com.sap.engine.lib.xml.parser.ParserException: XMLParser: No data allowed here: (hex) 2d, 20, 3c(:main:, row:2, col:3) at com.sap.aii.mappingtool.tf3.rt.xparser.MTSaxHandler.run(MTSaxHandler.java:130) at com.sap.aii.mappingtool.tf3.rt.xparser.XParser.run(XParser.java:68) Root Cause: com.sap.engine.lib.xml.parser.NestedSAXParserException: Fatal Error: com.sap.engine.lib.xml.parser.ParserException: XMLParser: No data allowed here: (hex) 2d, 20, 3c(:main:, row:2, col:3)(:main:, row=2, col=3) -> com.sap.engine.lib.xml.parser.ParserException: XMLParser: No data allowed here: (hex) 2d, 20, 3c(:main:, row:2, col:3) at com.sap.engine.lib.xml.parser.XMLParser.scanProlog(XMLParser.java:2733) at com.sap.engine.lib.xml.parser.XMLParser.scanDocument(XMLParser.java:2778) at com.sap.engine.lib.xml.parser.XMLParser.parse0(XMLParser.java:227) at com.sap.engine.lib.xml.parser.AbstractXMLParser.parseAndCatchException(AbstractXMLParser.java:141) at com.sap.engine.lib.xml.parser.AbstractXMLParser.parse(AbstractXMLParser.java:156) at com.sap.engine.lib.xml.parser.AbstractXMLParser.parse(AbstractXMLParser.java:259) at com.sap.engine.lib.xml.parser.Parser.parseWithoutSchemaValidationProcessing(Parser.java:276) at com.sap.engine.lib.xml.parser.Parser.parse(Parser.java:338) at com.sap.engine.lib.xml.parser.SAXParser.parse(SAXParser.java:125) at javax.xml.parsers.SAXParser.parse(SAXParser.java:345) at com.sap.aii.mappingtool.tf3.rt.xparser.MTSaxHandler.run(MTSaxHandler.java:128) at com.sap.aii.mappingtool.tf3.rt.xparser.XParser.run(XParser.java:68) -
at com.sap.engine.lib.xml.parser.SAXParser.parse(SAXParser.java:144) at javax.xml.parsers.SAXParser.parse(SAXParser.java:345) at com.sap.aii.mappingtool.tf3.rt.xparser.MTSaxHandler.run(MTSaxHandler.java:128) at com.sap.aii.mappingtool.tf3.rt.xparser.XParser.run(XParser.java:68) Caused by: com.sap.engine.lib.xml.parser.ParserException: XMLParser: No data allowed here: (hex) 2d, 20, 3c(:main:, row:2, col:3) at com.sap.engine.lib.xml.parser.XMLParser.scanProlog(XMLParser.java:2733) at com.sap.engine.lib.xml.parser.XMLParser.scanDocument(XMLParser.java:2778) at com.sap.engine.lib.xml.parser.XMLParser.parse0(XMLParser.java:227) at com.sap.engine.lib.xml.parser.AbstractXMLParser.parseAndCatchException(AbstractXMLParser.java:141) at com.sap.engine.lib.xml.parser.AbstractXMLParser.parse(AbstractXMLParser.java:156) at com.sap.engine.lib.xml.parser.AbstractXMLParser.parse(AbstractXMLParser.java:259) at com.sap.engine.lib.xml.parser.Parser.parseWithoutSchemaValidationProcessing(Parser.java:276) at com.sap.engine.lib.xml.parser.Parser.parse(Parser.java:338) at com.sap.engine.lib.xml.parser.SAXParser.parse(SAXParser.java:125) ... 3 more Fatal Error: com.sap.engine.lib.xml.parser.ParserException: XMLParser: No data allowed here: (hex) 2d, 20, 3c(:main:, row:2, col:3)
11:42:04 End of test</b>
Thanks,
Nagarjuna. -
WLST and JDBC Descriptor files
I'm trying to change the configuration of an portal domain. In 8.1 this was no problem, but in 9.X there's a notion of a JDBC Descriptor file to describe the JDBC connection.
So when I run:
readTemplate(r'/%bea_home%/weblogic92/common/templates/applications/wlp.jar')
cd('JDBCSystemResource/portalDataSourceAlwaysXA')
When I look at this JDBC resource all it contains is a reference to a descriptor file.
How to I change these settings (we're using Oracle and not Pointbase)?
Second question:
Where are all the other jdbc settings set? When I run the configuration wizard, I see a lot of data sources - among them a sample data source. These are no in the referenced JDBC descriptor files - so where do they come from? I'm talking about the following data sources which show up in the configuration wizard:
- p13nDataSource
- cgDataSource
- cgDataSource-nonXA
- samplesDataSource
As a sidenote - I think that BEA should document how one alters JDBC connections which are already defined inside a template. I haven't found any such documentation.
Trond Andersen, Invenia AS, http://www.invenia.noThe problem with the IOException (Permission denied) is
solved. It arised when I tried to create the domain in my
ClearCase view. When doing the same thing in my home folder
I didn't have this problem.
How about creating a JMSDestinationKey? Anyone having a
solution for this?
//M
"Martin Gustavsson" <[email protected]> wrote:
>
>
>
Thanks for your quick response. I attach my config.xml.
//Martin
Satya Ghattu <[email protected]> wrote:
Hello Martin,
Martin Gustavsson wrote:
Some problems with configToScript (WLST).
I have a config.xml which I run configToScript on.
It works fine and the message I get at the end is that I
should replace "ChangeME" to proper values. For my
JDBC Connection-pool, I replace it with a cleartext password.
But what should I replace it with for EmbeddedLDAP and
SecurityConfiguration? If I run the script
without changing it I get this critical error:
<Jun 22, 2004 5:06:01 PM CEST> <Critical> <EmbeddedLDAP>
<BEA-171517><An error occurred while attempting to get
exclusive access to the embedded LDAP data files
directory - temp/myserver/ldap/ldapfiles. The exception thown
is java.io.IOException: Permission denied.>I haven't seen this myself and could not reproduce. It might
help if you remove the myResource.setCredential("changeME")
for the embedded ldap and security configuration from the
script. Server will assign a default value and you should be
all set.
Another problem I have when running the generated script is
that it fails to create a JMSDestinationKey:
Error occured while performing create : Cannot create MBean
of type JMSDestinationKey. You can only create MBean's
children to the current cmo of type: Domain. Use dumpStack()
to view the error stack trace.Could you please attach your config.xml?
Thanks,
-satya
Even in interactive mode I have the same problem and the
dumpStack() gives me zero.
I'm running on Linux RedHat using WebLogic 8.1SP2.
Regards,
Martin -
Hi All,
I need jdbc.jar file that is needed to connect from Java to Progress of Progress 10.1 version. Please can anybody provided the same.Found it.
Place the jar files in
{jetspeed-home}/shared/libThat must be a hidden, undocumented feature. Mindreading and/or clairvoyance is an important ability. -
Hi all,
I am using Oracle 9i application server and have installed an OC4J instance on it. I am trying to execute some servlet that makes JDBC calls(This servlet is mounted on the OC4J instance).
When I start my OC4J instance using "java -jar oc4j.jar" I found that it was using classes12dms.jar(under <ORACLE_HOME>/jdbc/lib directory) as the JDBC driver.
But I am not able to figure out which JDBC driver file is being used when I start the OC4J instance using
"java -jar orion.jar". Also can anyone point out to me as to why there are 2 ways to start the OC4J instance (is it only 2 different versions- oc4j.jar and orion.jar- or do they have different functionalities?) . This might look naive to you, but I am new to this.
This is very critical for my debugging.
Can anybody provide any pointers regarding this?
I would be really grateful.
Thanks in Advance.
Warm Regards,
Chetan DixitChetan,
As far as I know, "orion.jar" was only used in the first version of OC4J (1.0.2.2.1). Since then, each version only has an "oc4j.jar" file. Hence I don't understand your question. You simply cannot start OC4J using the "orion.jar" file (because OC4J does not have an "orion.jar" file).
Of-course OrionServer still has an "orion.jar" file. If I remember correctly, JDBC driver files are usually installed into the "j2ee/home/lib" subdirectory (of the "OrionServer" installation).
Good Luck,
Avi. -
Connection has no password, -jdbc.xml file not generated for connection
Hi,
I'm migrating a jdev 10g web application (with EJB) to 11g, i did the automatic migration tool offred by 11g, i'm using the integrated weblogic server but it seems there is a *-jdbc.xml file missed, and it must be generated, this is the log file of the start of server :
IntegratedWebLogicServer started.
[Running application SAB_ADMIN on Server Instance IntegratedWebLogicServer...]
[09:14:15 AM] ---- Deployment started. ----
[09:14:15 AM] Target platform is (Weblogic 10.3).
[09:14:18 AM] Retrieving existing application information
[09:14:19 AM] Running dependency analysis...
[09:14:19 AM] Deploying 4 profiles...
[09:14:21 AM] Wrote Web Application Module to C:\Users\Moshe\AppData\Roaming\JDeveloper\system11.1.1.3.37.56.60\o.j2ee\drs\SAB_ADMIN\ViewControllerWebApp.war
[09:14:21 AM] Wrote Web Application Module to C:\Users\Moshe\AppData\Roaming\JDeveloper\system11.1.1.3.37.56.60\o.j2ee\drs\SAB_ADMIN\ModelWebApp.war
[09:14:25 AM] Wrote EJB Module to C:\Users\Moshe\AppData\Roaming\JDeveloper\system11.1.1.3.37.56.60\o.j2ee\drs\SAB_ADMIN\ModelEJB.jar
[09:14:25 AM] WARNING: Connection DBConnectionSAB has no password. DBConnectionSAB-jdbc.xml file not generated for connection DBConnectionSAB.
[09:14:26 AM] Wrote Enterprise Application Module to C:\Users\Moshe\AppData\Roaming\JDeveloper\system11.1.1.3.37.56.60\o.j2ee\drs\SAB_ADMIN
[09:14:26 AM] Deploying Application...
<14 oct. 2010 09 h 14 GMT+01:00> <Notice> <EclipseLink> <BEA-2005000> <2010-10-14 09:14:28.065--ServerSession(40464643)--property eclipselink.jdbc.user is deprecated, property javax.persistence.jdbc.user should be used instead.>
<14 oct. 2010 09 h 14 GMT+01:00> <Notice> <EclipseLink> <BEA-2005000> <2010-10-14 09:14:28.299--ServerSession(40464643)--property eclipselink.jdbc.driver is deprecated, property javax.persistence.jdbc.driver should be used instead.>
<14 oct. 2010 09 h 14 GMT+01:00> <Notice> <EclipseLink> <BEA-2005000> <2010-10-14 09:14:28.299--ServerSession(40464643)--property eclipselink.jdbc.url is deprecated, property javax.persistence.jdbc.url should be used instead.>
<14 oct. 2010 09 h 14 GMT+01:00> <Notice> <EclipseLink> <BEA-2005000> <2010-10-14 09:14:28.299--ServerSession(40464643)--property eclipselink.jdbc.password is deprecated, property javax.persistence.jdbc.password should be used instead.>
<14 oct. 2010 09 h 14 GMT+01:00> <Warning> <EJB> <BEA-012035> <The Remote interface method: 'public abstract java.lang.Object oracle.user.Session_user.mergeEntity(java.lang.Object)' in EJB 'SessionEJB' contains a parameter of type: 'java.lang.Object' which is not Serializable. Though the EJB 'SessionEJB' has call-by-reference set to false, this parameter is not Serializable and hence will be passed by reference. A parameter can be passed using call-by-value only if the parameter type is Serializable.>
<14 oct. 2010 09 h 14 GMT+01:00> <Warning> <EJB> <BEA-012035> <The Remote interface method: 'public abstract java.lang.Object oracle.user.Session_user.persistEntity(java.lang.Object)' in EJB 'SessionEJB' contains a parameter of type: 'java.lang.Object' which is not Serializable. Though the EJB 'SessionEJB' has call-by-reference set to false, this parameter is not Serializable and hence will be passed by reference. A parameter can be passed using call-by-value only if the parameter type is Serializable.>
<14 oct. 2010 09 h 14 GMT+01:00> <Warning> <EJB> <BEA-012035> <The Remote interface method: 'public abstract java.lang.Object oracle.bouton.Session_bouton.mergeEntity(java.lang.Object)' in EJB 'Session_bouton' contains a parameter of type: 'java.lang.Object' which is not Serializable. Though the EJB 'Session_bouton' has call-by-reference set to false, this parameter is not Serializable and hence will be passed by reference. A parameter can be passed using call-by-value only if the parameter type is Serializable.>
<14 oct. 2010 09 h 14 GMT+01:00> <Warning> <EJB> <BEA-012035> <The Remote interface method: 'public abstract java.lang.Object oracle.bouton.Session_bouton.persistEntity(java.lang.Object)' in EJB 'Session_bouton' contains a parameter of type: 'java.lang.Object' which is not Serializable. Though the EJB 'Session_bouton' has call-by-reference set to false, this parameter is not Serializable and hence will be passed by reference. A parameter can be passed using call-by-value only if the parameter type is Serializable.>
<14 oct. 2010 09 h 14 GMT+01:00> <Warning> <EJB> <BEA-012035> <The Remote interface method: 'public abstract java.lang.Object oracle.operation.Session_operation.mergeEntity(java.lang.Object)' in EJB 'Session_operation' contains a parameter of type: 'java.lang.Object' which is not Serializable. Though the EJB 'Session_operation' has call-by-reference set to false, this parameter is not Serializable and hence will be passed by reference. A parameter can be passed using call-by-value only if the parameter type is Serializable.>
<14 oct. 2010 09 h 14 GMT+01:00> <Warning> <EJB> <BEA-012035> <The Remote interface method: 'public abstract java.lang.Object oracle.operation.Session_operation.persistEntity(java.lang.Object)' in EJB 'Session_operation' contains a parameter of type: 'java.lang.Object' which is not Serializable. Though the EJB 'Session_operation' has call-by-reference set to false, this parameter is not Serializable and hence will be passed by reference. A parameter can be passed using call-by-value only if the parameter type is Serializable.>
<14 oct. 2010 09 h 14 GMT+01:00> <Notice> <EclipseLink> <BEA-2005000> <2010-10-14 09:14:29.656--ServerSession(42285779)--property eclipselink.jdbc.user is deprecated, property javax.persistence.jdbc.user should be used instead.>
<14 oct. 2010 09 h 14 GMT+01:00> <Notice> <EclipseLink> <BEA-2005000> <2010-10-14 09:14:29.656--ServerSession(42285779)--property eclipselink.jdbc.driver is deprecated, property javax.persistence.jdbc.driver should be used instead.>
<14 oct. 2010 09 h 14 GMT+01:00> <Notice> <EclipseLink> <BEA-2005000> <2010-10-14 09:14:29.656--ServerSession(42285779)--property eclipselink.jdbc.url is deprecated, property javax.persistence.jdbc.url should be used instead.>
<14 oct. 2010 09 h 14 GMT+01:00> <Notice> <EclipseLink> <BEA-2005000> <2010-10-14 09:14:29.656--ServerSession(42285779)--property eclipselink.jdbc.password is deprecated, property javax.persistence.jdbc.password should be used instead.>
<14 oct. 2010 09 h 14 GMT+01:00> <Error> <HTTP> <BEA-101371> <There was a failure when processing annotations for application C:\Users\Moshe\AppData\Roaming\JDeveloper\system11.1.1.3.37.56.60\o.j2ee\drs\SAB_ADMIN\ModelWebApp.war. Please make sure that the annotations are valid. The error is oracle.adf.view.faces.webapp.ResourceServlet>
<14 oct. 2010 09 h 14 GMT+01:00> <Error> <Deployer> <BEA-149265> <Failure occurred in the execution of deployment request with ID '1287044066833' for task '0'. Error is: 'weblogic.application.ModuleException: Failed to load webapp: 'SAB_CRUD-Model-context-root''
weblogic.application.ModuleException: Failed to load webapp: 'SAB_CRUD-Model-context-root'
at weblogic.servlet.internal.WebAppModule.prepare(WebAppModule.java:404)
at weblogic.application.internal.flow.ScopedModuleDriver.prepare(ScopedModuleDriver.java:180)
at weblogic.application.internal.flow.ModuleListenerInvoker.prepare(ModuleListenerInvoker.java:199)
at weblogic.application.internal.flow.DeploymentCallbackFlow$1.next(DeploymentCallbackFlow.java:508)
at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:41)
Truncated. see log file for complete stacktrace
Caused By: java.lang.ClassNotFoundException: oracle.adf.view.faces.webapp.ResourceServlet
at weblogic.utils.classloaders.GenericClassLoader.findLocalClass(GenericClassLoader.java:280)
at weblogic.utils.classloaders.GenericClassLoader.findClass(GenericClassLoader.java:253)
at weblogic.utils.classloaders.ChangeAwareClassLoader.findClass(ChangeAwareClassLoader.java:56)
at java.lang.ClassLoader.loadClass(ClassLoader.java:303)
at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
Truncated. see log file for complete stacktraceThis is the content of my web.xml file where i found the markup <servlet> and i tried to run without the first one but the error still like it was :
<servlet>
<servlet-name>Faces Servlet</servlet-name>
<servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet>
<servlet-name>resources</servlet-name>
<servlet-class>oracle.adf.view.faces.webapp.ResourceServlet</servlet-class>
</servlet>
<servlet>
<servlet-name>resources</servlet-name>
<servlet-class>org.apache.myfaces.trinidad.webapp.ResourceServlet</servlet-class>
</servlet>
<servlet>
<description>Web Service MyConnexionServiceSoapHttpPort</description>
<display-name>Web Service MyConnexionServiceSoapHttpPort</display-name>
<servlet-name>MyConnexionServiceSoapHttpPort</servlet-name>
<servlet-class>oracle.controll.ConnexionBaseDeDonnees</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet>
<servlet-name>ResultatRequetePort</servlet-name>
<servlet-class>oracle.controll.ResultatRequete</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>Faces Servlet</servlet-name>
<url-pattern>/faces/*</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>resources</servlet-name>
<url-pattern>/adf/*</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>MyConnexionServiceSoapHttpPort</servlet-name>
<url-pattern>MyConnexionServiceSoapHttpPort</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>ResultatRequetePort</servlet-name>
<url-pattern>/ResultatRequetePort</url-pattern>
</servlet-mapping>
Thanks... -
hI,
i AM DOING A JDBC TO FILE SCENARIO.JDBC ADAPTER IS POLLING THE DATABASE AND IN COMM CHANNEL ITS SHOWING PROSESSING SUCCESFULLY.BUT IN SXMB_MONI ITS NOT SHOWING ANY MESSAGE
SO WHT I SHOULD DO?Hi,
In JDBC communication channel what Select query you have written.
Is there any data avaialble as per it and are you maintaining the proper update query also for it.
Mostly there will be somthing abrrupt about the Select query as per the avaialble data .
refer below link
Tips and Tutorial for Sender JDBC Adapter
/people/yining.mao/blog/2006/09/13/tips-and-tutorial-for-sender-jdbc-adapter
Thanks
Swarup
Edited by: Swarup Sawant on Feb 13, 2008 10:52 AM -
How to access jdbc jar file using JWS - Hlep needed
hi guys i am having a problem running jdbc jar files (msutil,msbase,mssqlserver) using JWS. I am able to downlod it to the client machine but i am getting an error
java.sql.SQLException: [Microsoft][SQLServer 2000 Driver for JDBC]Error opening/loading com.microsoft.util.transliteration.properties.
i am able to run it locally. but using JWS in my machine itself is generating this error. In general what am i supposed to do to run an application using jdbc through JWS. I am able to download the jar files do i need to do anything more. Your help will be well appreciated.
thanks,
ravi.hi guys i got the problem solved i was not metioning security tag in the jnlp file with all permissions.
thanks,
ravi.
Maybe you are looking for
-
Exchange 2010 coexist with exchange 2013
Hi All , Planning to have a coexistence scenario in my environment which is mentioned below Exchange 2010 - ambiguous url in place - OA enabled For mapi/rpc traffic - mail.domain.in - exchange 2010 For https traffic - mail.domain.in - exchange 2010
-
ITunes 11.0 is horrible!!!!
Can't copy songs from my iTunes library on my iMac to my iPod anymore! How moronic is that?
-
Exception in Server Logs : JMSCC0033 While using Weblogic 10.3.X and MQ 7
Following exception is contuniously occuring in Weblogic Managed Server Logs after migrating to IBM MQ 7. com.ibm.msg.client.jms.DetailedIllegalStateException: JMSCC0033: A synchronous method call is not permitted when a session is being used asynchr
-
Problem in Using Collections as Web Parameters
Hello, I have tried to use ArrayList and Map variables to pass as web parameter in oc4j(10.1.3.1.0). The interesting this is that, in my web method return type object, if i am declaring a variable of type Map or List, and the variable name is all in
-
Premiere Pro CS5.5 crashes upon starting...
Just to be clear I have been running PP5.5 since July with no issues or crashes no matter what video or rendering I do. I am running on MacPro Quad-Core 2.8Ghz with 16GB of RAM on OS X 10.6.8 with all the latest patches. No problem up to this morni