Configuration problem Oracle 9i
bhushan_shelke Apr 11, 2003 5:26 AMHello,
I am trying to configure JBoss for oracle 9i, but facing some problems.
I have created directory structure separate for oracle like
JBOSS_ROOT
SERVER
MyConf
CONF
DB
Deploy
Lib
Log
Tmp
I am using jboss-3.0.4, Oracle 9i, Win2000 proff.
Here are the steps i have alredy taken.
1> Copied oracle-service.xml To Deploy directory of "MyConf"
2> Copied classes12.jar to : JBoss_ROOT>SERVER>DEFAULT>LIB directory
3>Also modified stanadardjbosscmp.xml like
java:/DefaultDS
<datasource-mapping>Oracle 9i</datasource-mapping>
....
4> Modified Standardjaws.xml as
java:/DefaultDS
<type-mapping>Oracle 9i</type-mapping>
false
...
I Get Two errors
1> No resource manager found for jdbc/OracleDS
2> while executing line
javax.sql.DataSource ds = (javax.sql.DataSource) ctx.lookup("java:comp/env/jdbc/OracleDS");
i get error OracleDS Not Bound
I also have to ask one morew thing what role does Directory "DB " plays
in configuration of datasource other than Hypersonic which is default.
If Yes where can i get files within that diretory for oracle 9i
anyone plese answer me
here is my oracle-service.xml file
<?xml version="1.0" encoding="UTF-8"?>
<!-- ===================================================================== -->
<!-- -->
<!-- JBoss Server Configuration -->
<!-- -->
<!-- ===================================================================== -->
<!-- ==================================================================== -->
<!-- ConnectionManager setup for Oracle dbs -->
<!-- Build jmx-api (build/build.sh all) and view for config documentation -->
<!-- Thanks to Steven Coy -->
<!-- ==================================================================== -->
<!-- Include a login module configuration named OracleDbRealm.
Update your login-conf.xml, here is an example for a
ConfiguredIdentityLoginModule:
<application-policy name = "OracleDbRealm">
<login-module code = "org.jboss.resource.security.ConfiguredIdentityLoginModule" flag = "required">
<module-option name = "principal">yourprincipal</module-option>
<module-option name = "userName">yourusername</module-option>
<module-option name = "password">yourpassword</module-option>
<module-option name = "managedConnectionFactoryName">jboss.jca:service=LocalTxCM,name=OracleDS</module-option>
</login-module>
</application-policy>
NOTE: the application-policy name attribute must match SecurityDomainJndiName, and the
module-option name = "managedConnectionFactoryName"
must match the object name of the ConnectionManager you are configuring here.
-->
<!--uncomment out this line if you are using the OracleDbRealm above
OracleDbRealm
-->
<depends optional-attribute-name="ManagedConnectionFactoryName">
<!--embedded mbean-->
jdbc/OracleDS
<config-property name="ConnectionURL" type="java.lang.String">jdbc:oracle:thin:@200.200.200.166:1521:payroll</config-property>
<config-property name="DriverClass" type="java.lang.String">oracle.jdbc.driver.OracleDriver</config-property>
<!--set these only if you want only default logins, not through JAAS -->
<config-property name="UserName" type="java.lang.String">payroll</config-property>
<config-property name="Password" type="java.lang.String">payroll</config-property>
<!--Below here are advanced properties -->
<!--hack-->
<depends optional-attribute-name="OldRarDeployment">jboss.jca:service=RARDeployment,name=JBoss LocalTransaction JDBC Wrapper
<depends optional-attribute-name="ManagedConnectionPool">
<!--embedded mbean-->
0
50
5000
15
<!--criteria indicates if Subject (from security domain) or app supplied
parameters (such as from getConnection(user, pw)) are used to distinguish
connections in the pool. Choices are
ByContainerAndApplication (use both),
ByContainer (use Subject),
ByApplication (use app supplied params only),
ByNothing (all connections are equivalent, usually if adapter supports
reauthentication)-->
ByContainer
<depends optional-attribute-name="CachedConnectionManager">jboss.jca:service=CachedConnectionManager
<depends optional-attribute-name="JaasSecurityManagerService">jboss.security:service=JaasSecurityManager
java:/TransactionManager
<!--make the rar deploy! hack till better deployment-->
jboss.jca:service=RARDeployer
Thankx in advance