my dog learned polymorphism*
The moose likes JBoss/WildFly and the fly likes jboss datasource Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "jboss datasource" Watch "jboss datasource" New topic

jboss datasource

kishore nag

Joined: Feb 18, 2010
Posts: 17
Hello Everybody,

I have an issues with jboss while i am deploying my project in to jboss iam getting these errors can you please give me reply and do needfull for me . i have an project in struts2 with jpa persistence.

12:51:20,841 ERROR [TomcatDeployment] ENC setup failed
javax.naming.NameNotFoundException: comp not bound
at org.jnp.server.NamingServer.getBinding(
at org.jnp.server.NamingServer.getBinding(
at org.jnp.server.NamingServer.getObject(

2:51:20,841 ERROR [AbstractKernelController] Error installing to Start: name=jboss.web.deployment:war=/struts2ex state=Create mode=Manual requiredState=Installed
org.jboss.deployers.spi.DeploymentException: URL file:/C:/openlogic-jboss-5.1.0.GA-all-bin-1/jboss-5.1.0.GA/server/default/deploy/struts2ex.war/ deployment failed
at org.jboss.deployers.spi.DeploymentException.rethrowAsDeploymentException(
at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeployInternal(
at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeploy(
at org.jboss.web.deployers.AbstractWarDeployment.start(

and my persistence.xml is

<persistence-unit name="Struts2ex" transaction-type="RESOURCE_LOCAL">
<!-- StrutsExamplePU -->

<!-- <jta-data-source>java:iportds</jta-data-source> -->

<property name="toplink.jdbc.driver"
<property name="toplink.jdbc.url"
<property name="toplink.jdbc.user" value="iport"/>
<property name="toplink.jdbc.password" value="iport"/>

and created one xml file and i put in to deploy dircetory that was in the name of oracle-ds.xml

<?xml version="1.0" encoding="UTF-8"?>

<!-- ===================================================================== -->
<!-- -->
<!-- JBoss Server Configuration -->
<!-- -->
<!-- ===================================================================== -->

<!-- See for information about local-tx-datasource -->
<!-- $Id: oracle-ds.xml 88948 2009-05-15 14:09:08Z jesper.pedersen $ -->
<!-- ==================================================================== -->
<!-- Datasource config for Oracle originally from Steven Coy -->
<!-- ==================================================================== -->


Here are a couple of the possible OCI configurations.
For more information, see


Clearly, its better to have TNS set up properly.
<!-- Uses the pingDatabase method to check a connection is still valid before handing it out from the pool -->
<!-- Checks the Oracle error codes and messages for fatal errors -->
<!-- sql to call when connection is created
<new-connection-sql>some arbitrary sql</new-connection-sql>

<!-- sql to call on an existing pooled connection when it is obtained from pool - the OracleValidConnectionChecker is prefered
<check-valid-connection-sql>some arbitrary sql</check-valid-connection-sql>

<!-- corresponding type-mapping in the standardjbosscmp-jdbc.xml (optional) -->

and body please give me reply how to do this

Peter Johnson

Joined: May 14, 2008
Posts: 5812

Try putting source code within code tags (do not use color!!!). If your post is legible, it might be more apt to generate helpful replies.

JBoss In Action
jQuery in Action, 2nd edition
subject: jboss datasource
Similar Threads
Problem in configuring Oracle 10g data source in JBOSS.
env not bound, could not dereference object
JNDI Mapping for oracle datasource
3 days stucked - NullPointer Persistent Unit no Caused By
please help in setting db connection in jboss