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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T21:07:28+00:00 2026-06-02T21:07:28+00:00

Good afternoon, I have a project based on apache-cxf v 2.5.2, spring 2.5.6 and

  • 0

Good afternoon, I have a project based on apache-cxf v 2.5.2, spring 2.5.6 and hibernate v v 3.2.1. I’m using annotations to mark the units and objects I persist and am having a problem when deploying the war. Giving me the following exception:
org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘storeService’: Can not resolve reference to bean ‘storeService’ while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCurrentlyInCreationException: Error creating bean with name ‘storeService’: Requested bean is Currently in creation: is there an unresolvable loop reference?

this is the applicationContext.xml file

<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns:context="http://www.springframework.org/schema/context"
    xmlns:jee="http://www.springframework.org/schema/jee"
    xmlns:tx="http://www.springframework.org/schema/tx"
    xsi:schemaLocation="
        http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
        http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-2.5.xsd
        http://www.springframework.org/schema/jee http://www.springframework.org/schema/jee/spring-jee-2.5.xsd
        http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-2.5.xsd
       ">
    <context:component-scan base-package="com.aironman.core" />
    <tx:annotation-driven transaction-manager="txManager"/>
    <bean id="txManager" class="org.springframework.orm.hibernate3.HibernateTransactionManager">
        <property name="sessionFactory" ref="sessionFactory"/>
    </bean>
    <bean class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
        <property name="location" value="classpath:hibernate.properties"/>
    </bean>
    <bean id="dataSource" class="org.apache.commons.dbcp.BasicDataSource" destroy-method="close">
        <property name="driverClassName" value="${database.driverClassName}"/>
        <property name="url" value="${database.url}"/>
        <property name="username" value="sa"/>
        <property name="password" value=""/>
    </bean>
    <bean id="sessionFactory" class="org.springframework.orm.hibernate3.annotation.AnnotationSessionFactoryBean">
        <property name="dataSource" ref="dataSource"/>
        <property name="hibernateProperties">
            <value>
                hibernate.dialect=${database.hibernate.dialect}
                hibernate.cache.provider_class=org.hibernate.cache.HashtableCacheProvider
                hibernate.show_sql=true
                hibernate.use_sql_comments=true
                hibernate.jdbc.batch_size=0
                hibernate.hbm2ddl.auto=create-drop
                hibernate.default_schema=${hibernate.default_schema}
                hibernate.generate_statistics=true
                hibernate.cache.use_structured_entries=true
            </value>
        </property>
    <property name="annotatedClasses">
            <list>
                <value>com.aironman.core.pojos.Usuario</value>
                <value>com.aironman.core.pojos.Item</value>
                <value>com.aironman.core.pojos.Persona</value>
            </list>
        </property>
    </bean>
</beans>

this is beans.xml

<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns:jaxws="http://cxf.apache.org/jaxws"
    xsi:schemaLocation="
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
http://cxf.apache.org/jaxws http://cxf.apache.org/schemas/jaxws.xsd">
    <import resource="classpath:META-INF/cxf/cxf.xml" />
    <import resource="classpath:META-INF/cxf/cxf-extension-soap.xml" />
    <import resource="classpath:META-INF/cxf/cxf-servlet.xml" />
        <!-- DECLARACION DE LOS ENDPOINTS DE LOS WEB SERVICES-->
        <jaxws:endpoint
      id="storeService" implementor="#storeService"
      implementorClass="com.aironman.core.cxf.service.StoreServiceImpl"
      address="/Store" />
</beans>

both files are included on web.xml

this is implementation end point web service, storeService:

**@Service("storeService")
@WebService(endpointInterface = "com.aironman.core.cxf.service.StoreService")
public class StoreServiceImpl implements StoreService** {

    private Log log = LogFactory.getLog(StoreServiceImpl.class);
    @Autowired
    @Qualifier("servicioUsuarios")
    private ServicioUsuarios            servicioUsuarios;
    @Autowired
    @Qualifier("servicioItems")
    private ServicioItems               servicioItems;
    @Autowired
    @Qualifier("servicioApuntes")
    private ServicioApuntesContables    servicioApuntesContables;
    [B]public StoreServiceImpl()[/B]{
        log.info("CONSTRUCTOR SIN tipo StoreServiceImpl...");
    }
some methods... getters and setters ...
}

this is ServicioUsuariosImpl file:

package com.aironman.core.service;
**@Service("servicioUsuarios")
public class ServicioUsuariosImpl implements ServicioUsuarios** {
    private static ConcurrentHashMap <String,Usuario>hashMapUsuarios = new ConcurrentHashMap <String,Usuario> () ;
    private Log log = LogFactory.getLog(ServicioUsuariosImpl.class);
    @Autowired
    @Qualifier("servicioEncriptacion")
    private ServicioEncriptacion                    servicioEncriptacion;
    @Autowired
    @Qualifier("servicioPersistenciaUsuarios")
    private ServicioPersistenciaUsuarios            servicioPersistenciaUsuarios;
    public ServicioUsuariosImpl(){
        log.info("Constructor SIN tipo ServicioUsuariosImpl...");
        //TODO pendiente cargar el mapa con una llamada al servicioPersistencia
    }
    @PostConstruct
    public void init()
    {
        log.info("init method on ServicioUsuariosImpl. Initializing hashMap...");
        //i need to call persistence layer to fill the hashMap        
    }
    some methods, getters and setters
}

As you can see, this service has inyected a persistent service called servicioPersistenciaUsuarios, which basically uses a dao marked as @repository.

this is ServicioPersistenciaUsuariosImpl implementation file:

package com.aironman.core.service;
**@Service("servicioPersistenciaUsuarios")
public class ServicioPersistenciaUsuariosImpl implements ServicioPersistenciaUsuarios** {
    @Autowired
    @Qualifier("usuarioHibernateDao")
    private UsuarioHibernateDao usuarioHibernateDao;
    private Log log = LogFactory.getLog(ServicioPersistenciaUsuariosImpl.class);
    public ServicioPersistenciaUsuariosImpl()
    {
        log.info("Constructor ServicioPersistenciaUsuariosImpl...");
    }
    some methods, getters and setters
}

this is usuarioHibernateDao implementation file:

package com.aironman.core.hibernate;
**@Repository
public class UsuarioHibernateDao extends HibernateGenericDao<Usuario, String> implements UsuarioDao**
{
            private Log log = LogFactory.getLog(UsuarioHibernateDao.class);
        [B]@Autowired
        public UsuarioHibernateDao(@Qualifier("sessionFactory")   SessionFactory sessionFactory) [/B]{
            super(sessionFactory);
        }
        some methods...         
}

ServicioUsuariosImpl has another dependencie, servicioEncriptacion, and as you may see, this is the implementation:

package com.aironman.core.service;
@Service("servicioEncriptacion")
public class ServicioEncriptacionImpl implements ServicioEncriptacion
{
      private static final String  algoritmo = "SHA-256";
      private Log log = LogFactory.getLog(ServicioEncriptacionImpl.class);
      private static java.security.MessageDigest diggest ;
      [B]public ServicioEncriptacionImpl()[/B]
      {some code...
      }
      some methods...
    } 

this is ServicioItemsImpl implementation file, another dependencie belongs to StoreServiceImpl.

package com.aironman.core.service;
**@Service("servicioItems")
public class ServicioItemsImpl implements ServicioItems**{
    private static final ConcurrentHashMap 
            <String,com.aironman.core.pojos.Item>
            //La pk es el isbn del item
            hashMapItems = new ConcurrentHashMap<String,com.aironman.core.pojos.Item>() ;
    private Log log = LogFactory.getLog(ServicioItemsImpl.class);
    @Autowired
    @Qualifier("servicioPersistenciaItems")
    private ServicioPersistenciaItems servicioPersistenciaItems;
    [B]public ServicioItemsImpl()[/B]
    {
        log.info("Constructor SIN TIPO ServicioItemsImpl");    
    }
    [B]@PostConstruct
    public void init()[/B]
    {
        log.info("init method on ServicioItemsImpl. Initializing hashMap...");
    }
    some methods, getters and setters
}

this is servicioPersistenciaItems implementation file:

package com.aironman.core.service;

@Service("servicioPersistenciaItems")
public class ServicioPersistenciaItemsImpl implements ServicioPersistenciaItems
{
    @Autowired
    @Qualifier("itemHibernateDao")
    private ItemHibernateDao itemHibernateDao;
    private Log log = LogFactory.getLog(ServicioPersistenciaItemsImpl.class);    
    [B]public ServicioPersistenciaItemsImpl()[/B]
    {
        log.info("Constructor SIN tipo ServicioPersistenciaItemsImpl...");
    }
some methods, getters and setters...
}

and finish, ServicioApuntesContablesImpl implementation file, with no dependencies

package com.aironman.core.service;
[B]@Service("servicioApuntes")
public class ServicioApuntesContablesImpl implements ServicioApuntesContables[/B]{

    private Log log = LogFactory.getLog(ServicioApuntesContablesImpl.class);
    private static ConcurrentHashMap <ClaveApunteContable,ApunteContable> mapaApuntesContables
                      = new ConcurrentHashMap <ClaveApunteContable,ApunteContable> ();

    //TODO al final tendre que persistir los apuntes contables, por ahora los mantendre en memoria...
    [B]public ServicioApuntesContablesImpl()[/B]
    {}
    some methods
}

in short, the problem is happening when Spring tries to instantiate the endpoint implementation file storeService and do not understand it because I have no typed constructor in any of the files, getters and setters I have the right and above any dependence is used to each other. Can someone please help me and explain what is happening? thank you very much

PD i have not put some code for readability issues and i easyly reach limit caracters, if someone needs to watch, let me know.

  • 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-02T21:07:29+00:00Added an answer on June 2, 2026 at 9:07 pm

    Ok, i allready solved my problem. Inside the endpoints.xml file a declared my ws with a id and i d already have declared the implementation ws file with a @Service annotation, so the exception is now clear to me…

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

Sidebar

Related Questions

Good afternoon, I'm learning about using RegEx's in Ruby, and have hit a point
Good afternoon to all, I have this scenario: I am using SQL Server 'BulkInsert'
Good afternoon all, I'm using a java.lang.StringBuilder to store some characters. I have no
Good afternoon all. I have a page that displays data in a gridview based
Good afternoon, I have encountered a problem to choose from two connection strings using
Good afternoon, I have a listview filled using linqdatasource + entity framework iqueryable query.
Good afternoon, I have a web query in Excel 2002 going against a web
Good afternoon, I have a quick 'top level' question regarding the usage of Facebook
Good Afternoon All, I have two tables in my SQL Server 2005 DB, Main
Good afternoon all, I have a Java applet that I wish to embed on

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.