Thanks again for spending your spare time in helping me.
Ifinally, I left the possibility of reusing the application I had with Tomcat.
I've read the Startup Guide in jboss.org as you recomended and I tried to
follow the steps:
1. I uncommented the Pad attribute in jboss-service.xml,
2. Add the classes12.jar at default/lib folder.
3. I created oracle-xa-ds.xml configuring the url, user and password.
The process says the connection is created but when I try to execute the
servlet which makes the connection appears the following error:
19:01:23,269 INFO [STDOUT] javax.naming.NameNotFoundException: jdbc not bound
19:01:23,271 INFO [STDOUT] at
org.jnp.server.NamingServer.getBinding(NamingServer.java:495)
19:01:23,271 INFO [STDOUT] at
org.jnp.server.NamingServer.getBinding(NamingServer.java:503)
19:01:23,271 INFO [STDOUT] at
org.jnp.server.NamingServer.getObject(NamingServer.java:509)
19:01:23,272 INFO [STDOUT] at
org.jnp.server.NamingServer.lookup(NamingServer.java:253)
19:01:23,272 INFO [STDOUT] at
org.jnp.server.NamingServer.lookup(NamingServer.java:256)
19:01:23,272 INFO [STDOUT] at
org.jnp.interfaces.NamingContext.lookup(NamingContext.java:529)
19:01:23,272 INFO [STDOUT] at
org.jnp.interfaces.NamingContext.lookup(NamingContext.java:508)
19:01:23,273 INFO [STDOUT] at
servlet.DataBaseServlet.doGet(DataBaseServlet.java:41)
19:01:23,273 INFO [STDOUT] at
javax.servlet.http.HttpServlet.service(HttpServlet.java:697)
19:01:23,273 INFO [STDOUT] at
javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
19:01:23,273 INFO [STDOUT] at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
That's my default/deploy/oracle-xa-ds.xml:
-
<xa-datasource>
<jndi-name>XAOracleDS</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.30.99:1521:PorDB2</xa-datasource-property>
<xa-datasource-property name="User">servijob</xa-datasource-property>
<xa-datasource-property name="Password">Servi_Ds</xa-datasource-property>
-
<exception-sorter-class-name>
org.jboss.resource.adapter.jdbc.vendor.OracleExceptionSorter
</exception-sorter-class-name>
<no-tx-separate-pools/>
</xa-datasource>
-
<!--
mbean
code="org.jboss.resource.adapter.jdbc.xa.oracle.OracleXAExceptionFormatter"
name="jboss.jca:service=OracleXAExceptionFormatter"
-->
-
<!--
depends
optional-attribute-name="TransactionManagerService">jboss:service=TransactionManager</depends
-->
<!--/mbean-->
What's more do I have to configure?
Thanks,
Esther
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3859324#3859324
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3859324
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://productguide.itmanagersjournal.com/
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user