This week's book giveaway is in the Other Languages forum.
We're giving away four copies of Functional Reactive Programming and have Stephen Blackheath and Anthony Jones on-line!
See this thread for details.
Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

jboss datasource

kishore nag
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 5856
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic