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 7713537
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T01:54:01+00:00 2026-06-01T01:54:01+00:00

I have following code: //preparing DAO objects FileSystemXmlApplicationContext context = new FileSystemXmlApplicationContext(test-context.xml); surveyDao =

  • 0

I have following code:

//preparing DAO objects
FileSystemXmlApplicationContext context = new FileSystemXmlApplicationContext("test-context.xml");
surveyDao = (SurveyDao)context.getBean("surveyDao");
recordDao = (RecordDao)context.getBean("recordDao");    
//creating GUI
createWindow();

The problem is that it runs perfectly in Eclipse, but when I export it to executable jar it crashes with following

org.springframework.beans.factory.parsing.BeanDefinitionParsingException
unable to locate Spring NameSpaceHandler for XML schema namespace
[http://www.springframework.org/schema/tx]
Offending resource: file test-context.xml

test-context.xml file:

<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
    xmlns:security="http://www.springframework.org/schema/security"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
    xmlns:context="http://www.springframework.org/schema/context"
    xmlns:tx="http://www.springframework.org/schema/tx" 
    xmlns:p="http://www.springframework.org/schema/p"
    xmlns:util="http://www.springframework.org/schema/util"
    xsi:schemaLocation="
    http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.1.xsd
    http://www.springframework.org/schema/security http://www.springframework.org/schema/security/spring-security-3.1.xsd
    http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-3.1.xsd
    http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util-3.1.xsd
    http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-3.1.xsd"
    default-lazy-init="true"
    default-autowire="byName">

    <context:annotation-config/>

<!--     <bean id="applicationContextProvider" class="org.openforis.collect.context.ApplicationContextAwareImpl" /> -->

    <bean id="propertyConfigurer" class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
        <property name="location" value="file:${user.dir}/dev.properties"/>
    </bean>

    <bean id="dataSource" class="org.apache.commons.dbcp.BasicDataSource" destroy-method="close">
        <property name="driverClassName" value="org.postgresql.Driver" />
        <property name="url" value="${collect.devdb.url}"/>
        <property name="username" value="${collect.devdb.username}" />
        <property name="password" value="${collect.devdb.password}" />
    </bean>

    <bean id="transactionManager" class="org.springframework.jdbc.datasource.DataSourceTransactionManager">
        <property name="dataSource" ref="dataSource"/>
    </bean>



    <bean id="surveyDao" class="org.openforis.collect.persistence.SurveyDao" init-method="init">
        <property name="dataSource" ref="dataSource"/>
    </bean>

    <bean id="logoDao" class="org.openforis.collect.persistence.LogoDao">
        <property name="dataSource" ref="dataSource"/>
    </bean>

    <bean id="recordDao" class="org.openforis.collect.persistence.RecordDao">
        <property name="dataSource" ref="dataSource"/>
    </bean>

    <bean id="taxonomyDao" class="org.openforis.collect.persistence.TaxonomyDao">
        <property name="dataSource" ref="dataSource"/>
    </bean>

    <bean id="taxonDao" class="org.openforis.collect.persistence.TaxonDao">
        <property name="dataSource" ref="dataSource"/>
    </bean>

    <bean id="dynamicTableDao" class="org.openforis.collect.persistence.DynamicTableDao">
        <property name="dataSource" ref="dataSource"/>
    </bean>

    <bean id="myTest" class="com.arbonaut.collcomm.main.MyTest" init-method="init" />



    <!--  Managers -->
    <bean id="recordManager"                    class="org.openforis.collect.manager.RecordManager" init-method="init" />   
    <bean id="surveyManager"                    class="org.openforis.collect.manager.SurveyManager" init-method="init" />

    <!-- Expression Factory -->
    <bean id="expressionFactory" class="org.openforis.idm.model.expression.ExpressionFactory" />
    <bean id="validator"                    class="org.openforis.idm.metamodel.validation.Validator" />
    <bean id="externalCodeListProvider"     class="org.openforis.collect.persistence.DatabaseExternalCodeListProvider" />

    <bean id="taxonVernacularNameDao" class="org.openforis.collect.persistence.TaxonVernacularNameDao">
        <property name="dataSource" ref="dataSource"/>
    </bean>
    <!-- enables interpretation of the @Transactional annotations for declarative transaction management-->
    <tx:annotation-driven transaction-manager="transactionManager" proxy-target-class="true"/>
</beans>
  • 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-01T01:54:02+00:00Added an answer on June 1, 2026 at 1:54 am

    Have you got the spring-tx jar on the classpath / rebundled into your executable jar?

    spring-tx-3.1.0-RELEASE.jar contains the xsd http://www.springframework.org/schema/tx/spring-tx-3.1.xsd:

    /org/springframework/transaction/config/spring-tx-3.1.xsd

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

Sidebar

Related Questions

I have following code class User attr_accessor :name end u = User.new u.name =
I have following code snipped: ... var tpc = new ThirtPartyClass(); tpc.ExecuteCommand(); tpc.ExecuteCommand(); ...
I have following code in C# PasswordDeriveBytes DerivedPassword = new PasswordDeriveBytes(Password, SaltValueBytes, HashAlgorithm, PasswordIterations);
I have following code in C# PasswordDeriveBytes DerivedPassword = new PasswordDeriveBytes(Password, SaltValueBytes, HashAlgorithm, PasswordIterations);
I have following code snippet in c#. var list = new List<string> { a,
I have following code I want to test: public class MessageService { private MessageDAO
I have following code that I creating a grid var store = Ext.create('Ext.data.ArrayStore', {
I have following code: $telnums = array(10, 20, 30); $obj = new StdClass(); $obj->telnums
I have following code in my application: // to set tip - photo in
I have following code in my Application. Comments in my code will specify My

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.