Problem creating datasources and connectionpools in EM of oc4j
Can SQLServer2000's connection pool be created through ENTERPRISE MANAGER of OC4J shipped with jdeveloper10.1.3.2. If yes, please let me know how? What is the Connection Factory Class to be specified?
Please provide useful links
hi,
The version of sqlserver is SQLServer2000
Similar Messages
-
How to create DataSource and ConnectionPooling in WAS
hi,
can u please tell me how to create connectionpool and data source in WAS.pls send me step by step procedure
regards
GuruHi,
Here is the steps to creat a JNDI lookup using Datasource for MSSQL Server. Follow this and use necessary oracle parameters (in bold) as gives by me in the help link above.
Click DataSources in the same path i.e. server > services > JDBC connector
Click new driver or datasource.
Enter/ Set the following properties:
Main Tab
DataSource Name : KAAR_DS
Add Alias : KAAR
SRI
Driver Name : KaarSQLDriver
JDBC version :2.0 (with XA support)
<b>Object factory : com.microsoft.jdbcx.sqlserver.SQLServerDataSourceFactory
DataSource Type : ConnectionPoolDataSource
CPDS classname : com.microsoft.jdbcx.sqlserver.SQLServerDataSource</b>
Additional tab
Add the following properties (key-value):
serverName = localhost
databaseName = KA4
portNumber = 1433
user = CV
password =<password>
Save and restart J2EE. The datasource is now ready to use.
Connection Pooling
Initial connection : 0
Maximum connection : 100
Maximum time to wait for connection : 60
Default connection isolation : DEFAULT
SQL Engine
Select, Vendor SQL
DB Initialization Tab
Add a valid sql statement, and execute. If it is successfully executed, a popup window comes up saying Executing <sql query> . OK.
It is done. Now you can use the JNDI look up name in your coding to access the database. Get connection and use the queries to fetch data from db.
Regards,
Srinivasan T
<b>Helpful answer=>points</b> -
Creating Datasource and Extracting from SAP R/3 ECC 6.0
Hello Gurus,
I am very new in BI field, I am learning through notes provided in this Blog.
Curretnly I need to know how we create Datasource at SAP R/3 ECC 6.0 (is there any difference b/t these?)
and how we may extract data from R/3 ECC 6.0 Source System.
Looking for your kind reply
Thanks in Advance
KKYou can use any specific Extractors to Create Data Source in R/3 side.
Let me explain with Generic Extraction
Goto SBIW--> you can see all the extractions here
Generic extractors are of 3 types:
1. Based on table/view
2. Based on Info set Query
3. Based on Function module
If you would like to create a custom table, then goto SE11>Select Table>Click on Create (Now create you own table here & use this table while creating Transaction data)
Goto RS02-->Select Transaction data.
Click on Create
Choose an application component to which the data source is to be assigned
Click on Generic Delta
Specify the Delta-Specific and the type for the field.
Specify a safety interval
Select Data type>Save> Now Data source was generated successfully
After generating the data source , you will find Delta Flag checked.
Please go through the following link for Generic Delta
[https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/84bf4d68-0601-0010-13b5-b062adbb3e33]
Once you've done with Data Source in R/3 side--> u need to Replicate it to BI
Goto RSA1>source system>Select the Source system in which u've created Data source>R.C select Data Source Overview>Select the Application Component to which Data source is assigned>R.C Select Replicate dataSorce>here you can see your NEW Data source
Hope it helps! -
Problems creating Datasource in Weblogic for E-biz R12 DB
Hi,
I've got an instance of E-Business Release 12 on a 10.2.0.2.0 DB which I am trying to create a Datasource and connection pool for in Weblogic Server 11g. I have successfully set up connections for other DB's but I am unable to connect to this Ebiz DB. I go through the settings but when I click on 'Test Configuration' at the end, I get the following error message:
Connection test failed.
Message icon - Error The Network Adapter could not establish the connection
oracle.jdbc.driver.SQLStateMapping.newSQLException(SQLStateMapping.java:70)
oracle.jdbc.driver.DatabaseError.newSQLException(DatabaseError.java:133)
oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:199)
oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:480)
oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:413)
oracle.jdbc.driver.PhysicalConnection.<init>(PhysicalConnection.java:508)
oracle.jdbc.driver.T4CConnection.<init>(T4CConnection.java:203)
oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtension.java:33)
oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:510)
oracle.jdbc.pool.OracleDataSource.getPhysicalConnection(OracleDataSource.java:275)
oracle.jdbc.xa.client.OracleXADataSource.getPooledConnection(OracleXADataSource.java:454)
oracle.jdbc.xa.client.OracleXADataSource.getXAConnection(OracleXADataSource.java:159)
oracle.jdbc.xa.client.OracleXADataSource.getXAConnection(OracleXADataSource.java:105)
com.bea.console.utils.jdbc.JDBCUtils.testConnection(JDBCUtils.java:550)
com.bea.console.actions.jdbc.datasources.createjdbcdatasource.CreateJDBCDataSource.testConnectionConfiguration(CreateJDBCDataSource.java:450)
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
java.lang.reflect.Method.invoke(Method.java:597)
org.apache.beehive.netui.pageflow.FlowController.invokeActionMethod(FlowController.java:870)
I have set it up to use the database driver 'Oracle's (Thin XA) Driver for Instance Connections....' .
I am wondering whether the DB version is compatible with this version of Weblogic Server and whether it may need to be patched if it isn't?
I appreciate your help
Edited by: user10248308 on 30-Sep-2009 08:55The "The Network Adapter could not establish the connection" message usually indicates a network / connectivity failure
-
Problem in datasource and connection factory.
I am using a connection factory to make connections to the database.
First I create a connection pool then i created a datasource and finally i used the JNDI Location name which i used inside the BPEL to create a connection factory.
Does this activity requires a restart of server. I am getting the following error.
file:/software/product/10.1.3.3.0/bpel/domains/default/tmp/.bpel_IRobo_Workflow1_1.0_e580208857197172fe72bbfca5d9d8b6.tmp/fr_jumper_info.wsdl [ fr_jumper_info_ptt::fr_jumper_info(InputParameters) ] - WSIF JCA Execute of operation 'fr_jumper_info' failed due to: Could not create/access the TopLink Session.
This session is used to connect to the datastore. [Caused by: VDMT_IROBO_DATASOURCE not found]
; nested exception is:
ORABPEL-11622
Could not create/access the TopLink Session.
This session is used to connect to the datastore. [Caused by: VDMT_IROBO_DATASOURCE not found]
See root exception for the specific exception. You may need to configure the connection settings in the deployment descriptor (i.e. $J2EE_HOME/application-deployments/default/DbAdapter/oc4j-ra.xml) and restart the server. Caused by Exception [TOPLINK-7060] (Oracle TopLink - 10g Release 3 (10.1.3.3.0) (Build 070608)): oracle.toplink.exceptions.ValidationException
Exception Description: Cannot acquire data source [VDMT_IROBO_DATASOURCE].
Internal Exception: javax.naming.NameNotFoundException: VDMT_IROBO_DATASOURCE not found.
</summary>
</part>
-<part name="detail">
<detail>
Exception Description: Cannot acquire data source [VDMT_IROBO_DATASOURCE].
Internal Exception: javax.naming.NameNotFoundException: VDMT_IROBO_DATASOURCE not found
</detailException Description: Cannot acquire data source [VDMT_IROBO_DATASOURCE].
Internal Exception: javax.naming.NameNotFoundException: VDMT_IROBO_DATASOURCE not found
</detailHi James
I have created the data source and i can find it in the path C:\product\10.1.3.1\OracleAS_1\j2ee\home\config\data-sources.xml
<managed-data-source connection-pool-name="IRoboConnectionPool" jndi-name="jdbc/VDMT_IROBO_DATASOURCE" name="VDMT_IROBO_DATASOURCE"/>
And in C:\product\10.1.3.1\OracleAS_1\j2ee\home\application-deployments\default\DbAdapter\oc4j-ra.xml i can see
<connector-factory location="eis/DB/VDMT_IROBO" connector-name="Database Adapter">
<config-property name="xADataSourceName" value="jdbc/VDMT_IROBO_DATASOURCE"/>
<config-property name="dataSourceName" value="VDMT_IROBO_DATASOURCE"/>
<config-property name="platformClassName" value="oracle.toplink.platform.database.Oracle9Platform"/>
<config-property name="usesNativeSequencing" value="true"/>
<config-property name="sequencePreallocationSize" value="50"/>
<config-property name="defaultNChar" value="false"/>
<config-property name="usesBatchWriting" value="true"/>
<connection-pooling use="none">
</connection-pooling>
<security-config use="none">
</security-config>
</connector-factory>
You have said I have given the name for dataSourceName incorrectly , what value should we give I dont know that I thought it is a user defined value. -
Problem using JDBC (JNDI) DataSource and data-sources.xml w/ OC4J
I have a JClient application developed in JDev X. It works fine when using a JDBC URL for the connection (which then writes the connection into the BC4J.xcfg files, one for each application module). However, I would like the app to retrieve the data source from the server's data-sources.xml file. However, when, on the configurations tab of the application module I set the connection type to JDBC DataSource, and give it the JNDI name, it does not work, either with the embedded OC4J or the stand-alone OC4J. Any suggestions???
In the stand alone OC4J I verified that the data source exists (using java -jar admin.jar ormi://nemethzoltan3 admin welcome -application adatklinika -testDataSource -location jdbc/adatklinikaCoreDS) ... so the data source is defined in the data-sources.xml. Of course the error I get is JBO-30003.
If I just try to "test" the data source in Jdeveloper (using the context menu of the app module, and setting it to use the adatklinikaCoreDS) I get a JNDI error: unable to lookup data source and at level 3 a "javax.naming.NoInitialContextException: Need to specify class name in environment or system property, or as an applet parameter, or in an application resource file: java.naming.factory.initial". I checked, the data source is defined under tools->embedded OC4J properties->data sources.
If I try to run the main form, simply nothing happens.
Please help!!!Ok, figured out why running from jdeveloper wasn't working: the embedded OC4J server wasn't started (start it by running an html page from your project or something...and make sure you don't have a stand-alone oc4j running). AND more importantly it didn't have the library "embedded oc4j client" library included (project properties -> profiles -> development -> libraries)...which is needed for whatever reason.
Now to try and get it working with the stand-alone OC4J... -
Problem creating stub and skeleton.
C:\RMI\PRODUCT>rmic JDBCProductImpl
error: Invalid class file format in .\JDBCProductImpl.class. The major.minor ve
rsion '49.0' is too recent for this tool to understand.
error: Class JDBCProductImpl not found.
2 errors
C:\RMI\PRODUCT>
what's wrong??
could somebody please tell me?thanks in advance.You are using a higher JDK version for compiling your class than what the rmic is expecting. Try using javac -version "1.x" FileName.java while compiling. And don't forget to specify something for x (4 should work).
-
Create datasource from SQL Server 2000
successfully create DB connect source system from Northwind database in SQL Server 2000.
create datasource and activate, got error:
@5C\QError@ Event with errors RSDL_META_UPLOAD in DataSource
@5D\QWarning@ Field name CategoryID contains non-alpha-numeric characters
How to avoid this error?Hi,
CategoryID have problem. Check data in source system and check data type for CategoryID in BW sys.
It could be care as CategoryID having some alphabets and while creating info objects in sys you make data type as Number. -
JDBCDataSource and ConnectionPool
Please answer to this question! I have been asking questions about WLS
Implementation of JMX on this newsgroup but I hardly get any answer from the
readers or BEA folks.
1. Can I create a JDBCDataSource and ConnectionPool Configuration MBeans
through progrmatically ?
2. If So, Will the server automatically start the connection pool and
register the DataSource in the JNDI? Explain how should I do this.
If the above is not possible, then what is the work around ?. I need this
since the connection lookup using the driver manager is depreciated
Thanks
/selvan
Captura Software, IncOk. But the weblogic documentation doesn't show the (Dynamic Connection
Pool) API anymore in the reference section and also it recommends that not
to lookup the connections using the JTS DriverManager.
I know that the API for creating dynamic connection pool is available in WLS
5.1 and WLS 6.x, Any API to create
Datasource's dynamically?
If there is no way to create Datasource and Connection Pool using the JMX
interface then
I don't really see the complete usefulness of having these JMX
implementation.
How about providing JMX interface for creating Connection Pool and
Datasource in WLS 6.1 ?
I know that this too much to ask but I think that this will be cool when it
is done.
Thanks
/selvan
Captura Software, Inc
"Slava Imeshev" <[email protected]> wrote in message
news:[email protected]...
There is an ability to create connection pools dynamically.
AFAIK it's the same as it was in 5.1
Slava
"Selvan Ramasamy" <[email protected]> wrote in message
news:[email protected]...
Hi Slava,
Thanks for your quick response.
But our application demands the dynamic connection pool as the database
connection information is stored with other configurations of our
applications. So I need to create connection pools dynamically.
There has to be a way to create connection pools and datasources
dynamically. Internally WLS server must be doing it.
Currently we are using the WLS 5.1 and we are able to create dynamic
connection pools, we need a similar solution in WLS 6.1 so that we cankeep
the same concept that we have employed so far.
Thanks
/selvan--------------------------------------------------------------------------
"Slava Imeshev" <[email protected]> wrote in message
news:[email protected]...
Hi Selvan,
You can create DataSources and ConnectioPools from the console
and then you can lookup for DataSource via JNDI with subsequent
call of ds.getConnection()
Regards,
Slava Imeshev
"Selvan Ramasamy" <[email protected]> wrote in message
news:[email protected]...
Please answer to this question! I have been asking questions about
WLS
Implementation of JMX on this newsgroup but I hardly get any answerfrom
the
readers or BEA folks.
1. Can I create a JDBCDataSource and ConnectionPool Configuration
MBeans
through progrmatically ?
2. If So, Will the server automatically start the connection pool
and
register the DataSource in the JNDI? Explain how should I do this.
If the above is not possible, then what is the work around ?. I needthis
since the connection lookup using the driver manager is depreciated
Thanks
/selvan
Captura Software, Inc -
Data Source and ConnectionPool
This is a query for information about javax.sq.ConnectionPool and javax.sql.DataSource
Does datasource represent one connection to a database? - if you register it through JNDI does this just register the object and every time you call it does it instatiate the connection?
ConnectionPool - how do i set parameters regarding max and min size of the pool etc.
Where would i use datasource and where would i use connectionpool - what factors determine what one to use?
If you can give me information for these, particulary any examples where you would use one and not the other.
And if possible where applicable to the Oracle classes12 implementation
CheersHi,
I suggest that you could reference the book, Database
Programming with JDBC and Java 2nd Edition from
oreilly. In the beginning of chapter 5, it has great descrption
to answer your question. Including the relationship between
the datasource and connectionpool, and code snippet of
access datasource by JNDI.
No method is found in the API doucment which show me
how to handle the size of connectionpool. So I think that
you may conisder your application server or database
server document, or ldap server for further informtation.
good luck,
Alfred Wu -
Big problems with Matrix and Screen Painter
Hi all !!!
I have a terrible time with my matrix in screen painter. I looked over all the samples in SDK and tried different things. The closest i got to make it work is when my form loads, i can click in each on my cells on the first row of the matrix but when i enter data if i click on another cell i lose the data. My form is fairly simple. I got 4 fields as regular data and a matrix with 8 columns. Can someone help me with this !!! Maybe one of you have an complete example for entering manually data in cells and then save it. I'm using a UDT (not UDO) table and using .net ...
Thanks in advanceHi Alain
It's not necaserry to delete the matrix. Leave it there. Then access your matrix with the following code
Dim oMatrix As SAPbouiCOM.Matrix
Dim oColumn As SAPbouiCOM.Column
Dim oColumns As SAPbouiCOM.Columns
oMatrix = SBO_Application.Forms.Item("FormID").Items.Item("MatrixID").Specific
oColumns = oMatrix.Columns
oMatrix.Clear()
then create datasource and bind
oForm.DataSources.UserDataSources.Add("DataID", SAPbouiCOM.BoDataType.dt_SHORT_TEXT, 20)
oColumn = oColumns.Item("ColID")
oColumn.DataBind.SetBound(True, "", "DataID")
Hope this helps -
How to use DataSource and External transaction in 9ias?
I'm working on a project that the application server needs to connect to over 100 databases.
I'd like to use connection pooling and external transaction service defined in OC4J's Datasources.
I wonder if anyone has an example of using datasource and external transaction service for OC4J.
Right now, I export toplink project to a java source and do the initialization there manually but I don't know how to use Datasource to get connections and how to use the external transaction service in the java code for OC4J.
I really appreciate you help.
WeiHere is a fill in the blank example on how you could set this up through code:
Project project = new MyProject();
// alternatively, use the XMLProjectReader
server = project.createServerSession();
server.getLogin().useExternalConnectionPooling();
server.getLogin().setConnector(new JNDIConnector(new javax.naming.InitialContext(), "jdbc/DataSourceName"));
// the next line depends on the type of driver you want to use.
server.getLogin().useOracleThinJDBCDriver();
server.getLogin().useOracle();
server.getLogin().setUserName("username");
server.getLogin().setPassword("password");
server.getLogin().useExternalTransactionController();
server.setExternalTransactionController(new Oracle9iJTSExternalTransactionController());
server.logMessages();
server.login(); -
Problem in creating the trasformation between my DataSource and InfoCube
Hi All,
when i am trying to create the trasformation between my DataSource and InfoCube through "Create Trasformation"...in the source of trasformation area when i am giving my DataSource 0CO-OM_CCA_1 and in the Source System T90CLNT090. system is showing the message "Source RSDS 0CO_OM_CCA_1 T90CLNT090 not active".......what to do ???.....then I went and check the monitoring tab there I got the system message that I am attaching belowu2026u2026Please provide the solution..........previously when i was doing that time there was no problem, but i was unable to transfer the data from my PSA to Infocube. So i have deleted the transfer rule and every thing and then when i am trying again i am getting this error.....so plz advise. The system message isu2026..
u201CActive version of emulated 3.x DataSource 0CO_OM_CCA_1(T90CLNT090) cannot be displayed
Message no. RSDS170
Diagnosis
The A version of the emulated 3.x DataSource cannot be displayed because no active transfer structure with PSA is available.
Procedure
Create a mapping between the 3.x DataSource and a 3.x InfoSource and activate the transfer rules. Select PSA as the transfer method in the 3.x InfoSource.
Alternatively, you can migrate the 3.x DataSource in a DataSource to create an active version.u201Dwhen u deleted tranfer rule , psa for the DataSource 0CO-OM_CCA_1 is no longer available..
since u plan to use transformation, its better to migrate the DataSource 0CO-OM_CCA_1 to 7.0 version...
just select the datasource and right click.. migrate to 7.0... once its migrated, u can create the transformation..also create info package and DTP for loading data to cube...
if u don't want to migrate to 7.x .. then create infosource .. transfer rule and update rule.. -
My problem in using weblogic Datasource and proxy user
Hello
I create a DataSource in Weblogic that connect to the database by a proxy user and I have a client application that use this DataSource and create a proxy session , I've written my client application (it's a stand alone client application) code below :
public static void main(String [] args) {
OracleConnection conn=null;
javax.sql.DataSource ds=null;
Hashtable env = new Hashtable();
env.put( Context.INITIAL_CONTEXT_FACTORY, "weblogic.jndi.WLInitialContextFactory" );
env.put(Context.PROVIDER_URL, "t3://127.0.0.1:7001");
try{
Context context=new InitialContext( env );
ds=(javax.sql.DataSource) context.lookup ("OracleConnection2");
conn=(OracleConnection) ds.getConnection();
java.util.Properties prop = new java.util.Properties();
prop.put(OracleConnection.PROXY_USER_NAME, "web_user1");
prop.put(OracleConnection.PROXY_USER_PASSWORD,"web_user1");
conn.openProxySession(OracleConnection.PROXYTYPE_USER_NAME, prop);
if (conn.isClosed()){
System.out.println("Connection closed");
return;
testJDBC(conn,true);
for(int k=0;k<10;k++){
testJDBC(conn,false);
conn.close(OracleConnection.PROXY_SESSION);
conn.close();
}catch(Exception ex){
ex.printStackTrace();
It works but my problem is that in line "prop.put(OracleConnection.PROXY_USER_PASSWORD,"web_user1")" or line "prop.put(OracleConnection.PROXY_USER_NAME, "web_user1");"
Let me to mention a scenario :
*1- I type a wrong username or password in my client application and I run the client application it shows me this error : invalid username/password*
*this error is acceptable*
*2- then I correct the wrong username or password immediately and run the application again , it shows me this error (at line conn.openProxySession(OracleConnection.PROXYTYPE_USER_NAME, prop)) :*
java.sql.SQLException: Closed Connection
at weblogic.rjvm.ResponseImpl.unmarshalReturn(ResponseImpl.java:234)
at weblogic.rmi.internal.BasicRemoteRef.invoke(BasicRemoteRef.java:223)
at weblogic.jdbc.rmi.internal.ConnectionImpl_weblogic_jdbc_wrapper_JTAConnection_weblogic_jdbc_wrapper_XAConnection_oracle_jdbc_driver_LogicalConnection_1032_WLStub.openProxySession(Unknown Source)
at weblogic.jdbc.rmi.SerialConnection_weblogic_jdbc_rmi_internal_ConnectionImpl_weblogic_jdbc_wrapper_JTAConnection_weblogic_jdbc_wrapper_XAConnection_oracle_jdbc_driver_LogicalConnection_1032_WLStub.openProxySession(Unknown Source)
at oracle.HRFacadeClient.main(HRFacadeClient.java:38)
*3- I run the application again (by correct username and password) but this time it shows me this error :*
java.sql.SQLException: Unsupported feature
at weblogic.rjvm.ResponseImpl.unmarshalReturn(ResponseImpl.java:234)
at weblogic.rmi.internal.BasicRemoteRef.invoke(BasicRemoteRef.java:223)
at weblogic.jdbc.rmi.internal.ConnectionImpl_weblogic_jdbc_wrapper_JTAConnection_weblogic_jdbc_wrapper_XAConnection_oracle_jdbc_driver_LogicalConnection_1032_WLStub.openProxySession(Unknown Source)
at weblogic.jdbc.rmi.SerialConnection_weblogic_jdbc_rmi_internal_ConnectionImpl_weblogic_jdbc_wrapper_JTAConnection_weblogic_jdbc_wrapper_XAConnection_oracle_jdbc_driver_LogicalConnection_1032_WLStub.openProxySession(Unknown Source)
at oracle.HRFacadeClient.main(HRFacadeClient.java:38)
*4 - if I repeat running the application for multi times every time it shows me the previous error*
*5- I wait about one minute the problem solved and my application can create proxy session *
the result is that if I wanna create proxy session by wrong username or password and I get "Invalid username/password" error message , then after correcting username or password I have to wait about one minute and then run the application again_
Do you know how I can overcome this problem ?
Thank youHi Jamshid,
There is same problem observed few days back with us, and we have used the below code, and it got solved. Actually there is a problem observed while using proxy connections on weblogic.
if(conn instanceof weblogic.jdbc.extensions.WLConnection){
weblogic.jdbc.extensions.WLConnection cn=(weblogic.jdbc.extensions.WLConnection)conn;
cn.clearStatementCache();
http://rocksolutions.wordpress.com/2010/06/04/connection-pool-issue-on-weblogic/
Hope this helps.
Thanks -
Problems creating MySQL Datasource in OC4J
I was recently tasked with creating a MySQL datasource in my development OC4J container (running through Eclipse, but that's irrelevant). I searched for and found this page: http://www.oracle.com/technology/products/jdev/tips/duff/mysql_and_oc4j3.html which tells me how to do this.
I searched for and found the Datasource class jar file: mysql-connector-java-3.0.17-ga-bin.jar, installing it in the ORACLE_HOME/applib directory of my container.
I then fired up the container, and accessed the ascontrol app to add the Datasource (via Administration/JDBC options), and ran into a few problems:
After entering the "Create Datasource" menu, I filled in the appropriate values for the JNDI name, class name of the Datasource, URL of the database, username and password. When I went to test the connection, I received an error that the Datasource class could not be created, yet in the error message it showed me where the Datasource class was (in which jar), so obviously the container knew about the jar.
After much playing around, I determined that the ascontrol app itself was the issue. In the orion-application.xml file for the ascontrol found in ORACLE_HOME/application-deployments/ascontrol, I found the line:
<remove-inherited name="global.libraries"/>
in the <imported-shared-libraries> tag. This essentially means, "ignore everything in the applib directory". It seems, as the instructions in the page above state, you actually have to manually edit the data-sources.xml file in your ORACLE_HOME/config directory in order to add this datasource, as the ascontrol app is unable to do so without loading the library from applib.
Now, I just commented out this line in the ascontrol's xml file temporarily, and was able to use the ascontrol to add the datasource, but this seems wrong. Now, finally, I can ask my questions:
1. Is this really the preferred method for adding a MySQL datasource to an OC4J container?
2. If not, what is?
3. If so, why is the ascontrol crippled in this fashion, and should it be fixed so it isn't anymore?Tank -- we recently discovered this situation with ASC ourselves. There's some history there in that by importing the global.libraries in the past, there has been problems with some libs that ASC itself needed being overridden -- evidently some common practice with a framework we supply was to use the applib directory in this manner, which caused issues for ASC. So the solution was to remove global.libraries from ASC.
OK so how to solve it, there's a number of options.
1. Remove the remove-inherited libraries tag from the ASC deployment descriptor as you've identified. I actually have the ASC team checking on whether this is something they want to do in a patch release.
2. Put the mysql driver into its own installed shared-library, then import that into each app that needs it. And add it to ASC as an imported-shared-library. That way the same code-source is available in each location. I'd have to say this is probably the preferred option at this point.
3. Put the mysql jar file into both the j2ee/home/applib directory AND the web-inf/lib directory of the so both apps have at it. This introduces an abstract dependency, which may cause issues if you update one but not the other at some future point. But it should work.
cheers
-steve-
Maybe you are looking for
-
Keyboard keys are not working correctly in Logic Pro X 10.0.6
I was trying to use my MIDI keyboard but for some reason the "A flat" key above "Middle C" no longer works properly in Logic. At first I thought it was my keyboard but I tried the same key in Reasons and Pro Tools and it works fine in both of these p
-
Configure airport express with mac book air
I am trying to configure airport express with a Mac Book Air, without success; the program is installed, but then, nothing appears to configure Airpor Express... Can I get any help? Thank you António
-
Reconciliation for a vendor who is also a customer
Dear Gurus, I have a requirement which is as follows, My client has a vendor for subcontracting who is also a customer to him. Client sells a material and buys back the same with some additional parts fitted or some operations performed. He wants to
-
My MacBook air died from humidity in the amazon any tips on bringing it back to life?
MacBook air died in humidity in the amazon. Any idea on how to biting it back to life?
-
Front screen of my iPhone 4s is cracked, it freezes/lags, camera flash doesn't work, and every time you press a bit harder on the front screen red and grey vertical lines appear. I have had it for more than a year now, so how much will it cost for me