[Datasource Configuration] - Not able to configure datasource in jboss as 7
by Ankita Bairathi
Ankita Bairathi [http://community.jboss.org/people/ank.bairathi] created the discussion
"Not able to configure datasource in jboss as 7"
To view the discussion, visit: http://community.jboss.org/message/638133#638133
--------------------------------------------------------------
Below is the configuration done.
1) created the folder structure
jboss-as-7.0.2.Final/modules/com/oracle/ojdbc6/main
2) module.xml
<module xmlns="urn:jboss:module:1.0" name="com.oracle.ojdbc6">
<resources>
<resource-root path="ojdbc6.jar"/>
</resources>
<dependencies>
<module name="javax.api"/>
</dependencies>
</module>
3) Datasource in standalone-ha.xml
<subsystem xmlns="urn:jboss:domain:datasources:1.0">
<datasources>
<datasource jndi-name="java:jboss/datasources/XXXX" enabled="true" use-java-context="true" pool-name="OracleDS">
<connection-url>jdbc:oracle:thin sick.tif (DESCRIPTION frown.tif ADDRESS_LIST frown.tif ADDRESS frown.tif PROTOCOL=TCP)(HOST=XXXX.corp.apple.com)(PORT=1803)))(CONNECT_DATA frown.tif SID=XXXX)(SERVER=DEDICATED)))</connection-url>
<driver-class>oracle.jdbc.driver.OracleDriver</driver-class>
<driver>com.oracle.ojdbc6</driver>
<pool>
<max-pool-size>100</max-pool-size>
<min-pool-size>5</min-pool-size>
</pool>
<security>
<user-name>xpuser</user-name>
<password>pass</password>
</security>
</datasource>
<drivers>
<driver name="com.oracle.ojdbc6" module="com.oracle.ojdbc6">
<!-- <xa-datasource-class>oracle.jdbc.xa.client.OracleXADataSource</xa-datasource-class>-->
<xa-datasource-class>oracle.jdbc.OracleDriver</xa-datasource-class>
</driver>
</drivers>
</datasources>
I am getting below error.
12:19:01,049 INFO [org.jboss.as.controller] (Controller Boot Thread) Service status report
New missing/unsatisfied dependencies:
service jboss.jdbc-driver.com_oracle_ojdbc6 (missing)
Please please help!!!
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/638133#638133]
Start a new discussion in Datasource Configuration at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
14 years, 4 months
[JNDI and Naming] - javax.naming.NameNotFoundException: IPC_DB not bound
by Aurel Sandu
Aurel Sandu [http://community.jboss.org/people/aurelsandu] created the discussion
"javax.naming.NameNotFoundException: IPC_DB not bound"
To view the discussion, visit: http://community.jboss.org/message/638145#638145
--------------------------------------------------------------
Hello all of you,
I work with jboss 4.2.1 , jdk 6 and oracle XE 10g
I put in oracle_ds.xml following :
<?xml version="1.0" encoding="UTF-8"?>
<datasources>
<xa-datasource>
<jndi-name>IPC_DB</jndi-name>
<track-connection-by-tx>true</track-connection-by-tx>
<isSameRM-override-value>false</isSameRM-override-value>
<xa-datasource-class>oracle.jdbc.xa.client.OracleXADataSource</xa-datasource-class>
<xa-datasource-property name="URL">jdbc:oracle:thin:@192.168.10.164:1521:XE</xa-datasource-property>
<xa-datasource-property name="User">ipc</xa-datasource-property>
<xa-datasource-property name="Password">ipc</xa-datasource-property>
<exception-sorter-class-name>org.jboss.resource.adapter.jdbc.vendor.OracleExceptionSorter</exception-sorter-class-name>
<no-tx-separate-pools/>
<min-pool-size>5</min-pool-size>
<max-pool-size>50</max-pool-size>
<metadata>
<type-mapping>Oracle10g</type-mapping>
</metadata>
</xa-datasource>
<mbean code="org.jboss.resource.adapter.jdbc.vendor.OracleXAExceptionFormatter" name="jboss.jca:service=OracleXAExceptionFormatter">
<depends optional-attribute-name="TransactionManagerService">jboss:service=TransactionManager</depends>
</mbean>
</datasources>
but I get the following:
Caused by: javax.naming.NameNotFoundException: IPC_DB not bound
Any ideea what is happed?
TIA,
Aurel
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/638145#638145]
Start a new discussion in JNDI and Naming at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
14 years, 4 months
[Beginner's Corner] - error connecting to jboss-admin concole [JBoss AS 7.0.2.Final "Arc"]
by David Bettenhausen
David Bettenhausen [http://community.jboss.org/people/dbhausen] created the discussion
"error connecting to jboss-admin concole [JBoss AS 7.0.2.Final "Arc"]"
To view the discussion, visit: http://community.jboss.org/message/637317#637317
--------------------------------------------------------------
I have just installed JBoss AS 7.0.2.Final "Arc". Web console in not available and command line interface throws exception but does come to the command line.
tried editing jboss-admin.sh as follows but it did not help.
JAVA_OPTS="$JAVA_OPTS -Xmx950m"
[root@xxxxx bin]# ./jboss-admin.sh --connect
java.io.IOException: Cannot run program "sh": java.io.IOException: error=12, Cannot allocate memory
at java.lang.ProcessBuilder.start(ProcessBuilder.java:459)
at java.lang.Runtime.exec(Runtime.java:593)
at java.lang.Runtime.exec(Runtime.java:466)
at jline.UnixTerminal.exec(UnixTerminal.java:297)
at jline.UnixTerminal.exec(UnixTerminal.java:282)
at jline.UnixTerminal.stty(UnixTerminal.java:273)
at jline.UnixTerminal.initializeTerminal(UnixTerminal.java:77)
at jline.Terminal.setupTerminal(Terminal.java:75)
at jline.Terminal.getTerminal(Terminal.java:26)
at jline.ConsoleReader.<init>(ConsoleReader.java:191)
at org.jboss.as.cli.CommandLineMain.initConsoleReader(CommandLineMain.java:529)
at org.jboss.as.cli.CommandLineMain.main(CommandLineMain.java:299)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.jboss.modules.Module.run(Module.java:272)
at org.jboss.modules.Main.main(Main.java:313)
Caused by: java.io.IOException: java.io.IOException: error=12, Cannot allocate memory
at java.lang.UNIXProcess.<init>(UNIXProcess.java:148)
at java.lang.ProcessImpl.start(ProcessImpl.java:65)
at java.lang.ProcessBuilder.start(ProcessBuilder.java:452)
... 17 more
Connected to standalone controller at localhost:9999
[standalone@localhost:9999 /]
free memory while connected without change to JAVA_OPTS:
[root@xxxxx bin]# free
total used free shared buffers cached
Mem: 2097152 1650900 446252 0 0 0
-/+ buffers/cache: 1650900 446252
Swap: 0 0 0
free memory after closing:
[root@xxxx bin]# free
total used free shared buffers cached
Mem: 2097152 981220 1115932 0 0 0
-/+ buffers/cache: 981220 1115932
Swap: 0 0 0
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/637317#637317]
Start a new discussion in Beginner's Corner at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
14 years, 4 months