Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7762941
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T14:32:22+00:00 2026-06-01T14:32:22+00:00

I deployed a resource adapter (XADisk) in jboss 7.1.0.final and now get an exception

  • 0

I deployed a resource adapter (XADisk) in jboss 7.1.0.final and now get an exception on JNDI lookup.

I configured the ra.xml and deployed XADisk.rar.
Then I added the following to my standalone.xml:

<subsystem xmlns="urn:jboss:domain:resource-adapters:1.0">
        <resource-adapters>
            <resource-adapter>
                <archive>
                    XADisk.rar
                </archive>
                <transaction-support>XATransaction</transaction-support>
                <connection-definitions>
                    <connection-definition
                        class-name="org.xadisk.connector.outbound.XADiskConnectionFactory"
                        jndi-name="java:/XADiskCF" 
                        pool-name="XADiskConnectionFactory">
                        <xa-pool>
                            <min-pool-size>2</min-pool-size>
                            <max-pool-size>10</max-pool-size>
                        </xa-pool>
                        <security>
                            <application/>
                        </security>
                    </connection-definition>
                </connection-definitions>
            </resource-adapter>
        </resource-adapters>
</subsystem>

Now I tried to use it from a simple servlet:

XADiskConnectionFactory cf1 =
(XADiskConnectionFactory) new InitialContext().lookup("java:/XADiskCF");

if I invoke the servlet the following is raised:

javax.naming.NameNotFoundException: XADiskCF -- service jboss.naming.context.java.XADiskCF at  
org.jboss.as.naming.ServiceBasedNamingStore.lookup(ServiceBasedNamingStore.java:97) at 
org.jboss.as.naming.NamingContext.lookup(NamingContext.java:177) at 
org.jboss.as.naming.InitialContext.lookup(InitialContext.java:113) at 
org.jboss.as.naming.NamingContext.lookup(NamingContext.java:213) at 
...

I hope someone with a better understanding of jndi and jboss can help me out.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T14:32:23+00:00Added an answer on June 1, 2026 at 2:32 pm

    the described problem occured due an incompatibility between xadisk and jboss 7

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to get the servlet context of a Jersey resource deployed in Tomcat,
I have the following directory structure deployed to JBoss AS 7.1.1.Final (under standalone/deployments ):
i deployed my App to my iPhone and get Unknown error calling sqlite3_step (8:
Currently my setup is: in my ear META-INF/jboss-app.xml <jboss-app> <module> <service>datasource-ds.xml</service> </module> </jboss-app> and
I have a web application deployed on path /var/lib/tomcat6/webapps/abc/</code> in server.xml on path /etc/tomcat/server.xml
I have developed a java 1.4 web application.Application is deployed on jboss(tomcat). suppose my
i have deployed my application on jboss 3.I have restored a database back up
I'm trying to use Spring to configure a web app deployed in JBoss. I've
After configuring the datasources in the jboss 5.0 AS , I deployed the jbpm
How can I read a file deployed as a resource within a EAR or

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.