[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...]
12 years, 6 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...]
12 years, 6 months