Return-Path: Delivered-To: apmail-ws-axis-user-archive@www.apache.org Received: (qmail 74521 invoked from network); 30 Nov 2007 17:00:49 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 30 Nov 2007 17:00:49 -0000 Received: (qmail 10854 invoked by uid 500); 30 Nov 2007 17:00:28 -0000 Delivered-To: apmail-ws-axis-user-archive@ws.apache.org Received: (qmail 10714 invoked by uid 500); 30 Nov 2007 17:00:27 -0000 Mailing-List: contact axis-user-help@ws.apache.org; run by ezmlm Precedence: bulk Reply-To: axis-user@ws.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list axis-user@ws.apache.org Received: (qmail 10703 invoked by uid 99); 30 Nov 2007 17:00:27 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 30 Nov 2007 09:00:27 -0800 X-ASF-Spam-Status: No, hits=0.2 required=10.0 tests=SPF_PASS,WHOIS_MYPRIVREG X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of robertlazarski@gmail.com designates 72.14.204.233 as permitted sender) Received: from [72.14.204.233] (HELO qb-out-0506.google.com) (72.14.204.233) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 30 Nov 2007 17:00:06 +0000 Received: by qb-out-0506.google.com with SMTP id e34so2365472qbe for ; Fri, 30 Nov 2007 09:00:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=9VTydQGZ59F6KrwyYB6fCgypuGqJvSXPdrjfqL90GsE=; b=O5PdFDc6kmMsdB14NOqtv+/hIYVd4HCUGacdcsKGT3/WAN9eAFKSoL6FLRr4m0JyTxf4j36Th/HnmsMQhwyG39EpezFj72lpQ7zSMO6jarmRQaLUhttpvhVFohCI3nZiKqH9qiV/KCi7A4NKuHulIQLTceqgsbbXV6ZCAf04xgY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=VHT678P/+dvUZQ5CkdtBZE2PzpQBXhw1BL7bZu6wtKZ8JVNwnNoEIhOjX6GX5Uumb1QzanBfeomZn927uTuB6DvncPjA921iVm1a4Ksh2i1KzZmxcbLGto3j/5cmffUTQ9hfr6CYr/8d/5/B93+Ytx0b/is2+dplgY1WQD9nosE= Received: by 10.142.125.5 with SMTP id x5mr849436wfc.1196442003298; Fri, 30 Nov 2007 09:00:03 -0800 (PST) Received: by 10.142.73.7 with HTTP; Fri, 30 Nov 2007 09:00:03 -0800 (PST) Message-ID: Date: Fri, 30 Nov 2007 12:00:03 -0500 From: "robert lazarski" To: axis-user@ws.apache.org Subject: Re: Problem with Using Spring and Hibernate with Axis2 In-Reply-To: <14070476.post@talk.nabble.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <14031519.post@talk.nabble.com> <14032312.post@talk.nabble.com> <474F5789.9030006@bcsoft.co.nz> <5CAF723E09A90F41A21FF374623293CF179F9C@hnp4.hnp.local> <14070476.post@talk.nabble.com> X-Virus-Checked: Checked by ClamAV on apache.org The non-AAR approach is much simpler - you don't need to mess around with the TCCL for that and its the recommended approach. Just put all of your app level classes in WEB-INF/classes, all the spring jars in WEB-INF/lib, load your applicationContext.xml as normally done via a context listener in web.xml, setup your services.xml to use SpringServletContextObjectSupplier and it'll work fine. Incidently, I'm working on a new tutorial for all this that will explain spring and hibernate integration with a full example start to finish - even inside that AAR. Stay tuned... HTH, Robert On Nov 30, 2007 10:12 AM, ndthuy wrote: > > All, > > I am not using the AAR's approach. I bundle the whole axis2 under the web > application. This is my setup: > > WebApp: > + src > + WebRoot > + conf > + lib > + modules > + services > + common > + META-INF > + *.wsdl > + services.xml > > Does anyone try this approach and make it working to load applicationContext > from axis2 ? > > Thanks. > > > > jp4 wrote: > > > > I was able to get hibernate working just fine with spring under axis2 > > 1.1. I had to do some classloader manipulation in the SpringInit > > service but it wasn't very difficult. Basically, you have to set the > > context classloader = the axis2 class loader while the spring context > > is being loaded. Once the context is loaded you can put everything back > > to the way it was. Keep in mind that this only works when all of your > > libraries are inside the AAR file. > > > > > > > > In the end, I decided to abandon the AAR approach because it was to > > fragile, but I know that this worked before. > > > > > > > > Here is an example... > > > > > > > > > > > > > class="com.i4commerce.bml.webservice.axis2.SpringInit"> > > > > > > > > This is a spring sample Web Service with two operations. > > > > > > > > composite > > > > > > true > > > > > locked="false">applicationContext.xml, > > applicationContext2.xml > > > > > > > > > class="org.apache.axis2.receivers.RawXMLINOutMessageReceiver"/> > > > > > > > > > > > > > > > > import java.net.URL; > > > > import java.util.StringTokenizer; > > > > > > > > import org.apache.axiom.om.OMElement; > > > > import org.apache.axis2.context.ConfigurationContext; > > > > import org.apache.axis2.description.AxisService; > > > > import org.apache.axis2.engine.ServiceLifeCycle; > > > > import org.apache.commons.logging.Log; > > > > import org.apache.commons.logging.LogFactory; > > > > import > > org.springframework.context.support.ClassPathXmlApplicationContext; > > > > > > > > /** > > > > * This Axis2 Service Class is used for Axis2-Spring integration. The > > > > * primary role of this class is to load spring context files before > > other > > > > * web services are loaded. > > > > * > > > > * @author I4Commerce. > > > > * > > > > */ > > > > public class SpringInit implements ServiceLifeCycle { > > > > > > > > /** > > > > * SPRING_CONTEXT_FILE_NAMES > > > > */ > > > > public static final String SPRING_CONTEXT_FILE_NAMES = > > "springContextFileNames"; > > > > > > > > /** > > > > * logger > > > > */ > > > > private static Log logger = LogFactory.getLog(SpringInit.class); > > > > > > > > /** > > > > * springInit > > > > * @param ignore ignore > > > > * @return OMElement OMElement > > > > */ > > > > public OMElement springInit(OMElement ignore) { > > > > > > > > return null; > > > > } > > > > > > > > /** > > > > * This will be called during the system shut down time. > > irrespective of the service scope this method will be > > > > * called > > > > * @param ctxIgnore ctxIgnore > > > > * @param ignore ignore > > > > */ > > > > public void shutDown(ConfigurationContext ctxIgnore, AxisService > > ignore) { > > > > } > > > > > > > > /** > > > > * this will be called during the deployement time of the service. > > irrespective of the service scope this method > > > > * will be called > > > > * @param ignore ignore > > > > * @param service service > > > > */ > > > > public void startUp(ConfigurationContext ignore, AxisService > > service) { > > > > // By Default Spring uses > > Thread.currentThread().getContextClassLoader() to load > > > > // classes. When in the context of a Axis2 Service, we want to > > use the Service ClassLoader > > > > // instead of the context (or in this case webapp) ClassLoader. > > Therefore, we need to temporarily > > > > // set the context ClassLoader equal to the Service ClassLoader > > while we are loading the spring > > > > // context files. Once the spring context is loaded, we set the > > context ClassLoader back to > > > > // what is was before. > > > > ClassLoader contextCl = > > Thread.currentThread().getContextClassLoader(); > > > > ClassLoader classLoader = service.getClassLoader(); > > > > Thread.currentThread().setContextClassLoader(classLoader); > > > > String[] springContextFiles = > > getSpringContextFileNames(service.getParameter(SPRING_CONTEXT_FILE_NAMES > > ) > > > > .getValue().toString(), classLoader); > > > > ClassPathXmlApplicationContext appCtx = new > > ClassPathXmlApplicationContext(springContextFiles, false); > > > > > > > > // save the spring context in a static class > > > > Axis2SpringContextHolder.setContext(appCtx); > > > > > > > > appCtx.setClassLoader(classLoader); > > > > appCtx.refresh(); > > > > > > > > // set the context ClassLoader back to the webapp ClassLoader > > > > Thread.currentThread().setContextClassLoader(contextCl); > > > > > > > > if (logger.isDebugEnabled()) { > > > > logger.debug("\n\nstartUp() set spring classloader via > > axisService.getClassLoader() ... "); > > > > } > > > > } > > > > > > > > /** > > > > * getSpringContextFileNames > > > > * @param springContextParam springContextParam > > > > * @param cl cl > > > > * @return String[] spring context file names > > > > */ > > > > private String[] getSpringContextFileNames(String > > springContextParam, ClassLoader cl) { > > > > StringTokenizer tokenizer = new > > StringTokenizer(springContextParam, ","); > > > > String[] urls = new String[tokenizer.countTokens()]; > > > > int i = 0; > > > > > > > > if (logger.isDebugEnabled()) { > > > > logger.debug("ClassLoader = " + cl); > > > > logger.debug("Token count = " + tokenizer.countTokens()); > > > > logger.debug("Context files = " + springContextParam); > > > > } > > > > > > > > while ((tokenizer.hasMoreTokens())) { > > > > String contextFile = ((String) > > tokenizer.nextToken()).trim(); > > > > // URL url = cl.getResource("/" + contextFile); > > > > URL url = this.getClass().getResource("/" + contextFile); > > > > > > > > if (logger.isDebugEnabled()) { > > > > logger.debug("find resource /" + contextFile); > > > > logger.debug("loading spring context file " + url); > > > > } > > > > > > > > if (url == null) { > > > > urls[i] = null; > > > > } else { > > > > urls[i] = url.toString(); > > > > } > > > > > > > > i++; > > > > } > > > > > > > > return urls; > > > > } > > > > } > > > > > > > > > > > > > > > > > > > > ________________________________ > > > > From: Anthony Bull [mailto:anthony.bull@bcsoft.co.nz] > > Sent: Thursday, November 29, 2007 7:21 PM > > To: axis-user@ws.apache.org > > Subject: Re: Problem with Using Spring and Hibernate with Axis2 > > > > > > > > You will find the most persistance frameworks have real problems when > > combined with Spring inside an AAR. The Spring inside the AAR approach > > on the Axis2 website does not work correctly when using persistance > > frameworks. > > > > iBATIS and JPA also have similar issues where the only way around it is > > to expand the AAR file. With iBATIS its even worse, as no matter what > > you do, your mapping XML files only load from the axis2/WEB-INF/classes > > area. In the end, I ended up dropping the Axis2 Spring setup and do my > > own Spring initialisation from my Service Skeleton class, so I can > > ensure the correct classloader is used to boot my Spring context. > > > > ndthuy wrote: > > > > All, > > > > When I am not using axis2, I don't have any problem with loading > > applicationContext.xml > > > > > > iksrazal wrote: > > > > > > Remove 'parameter name="ServiceClass"' entries - they should be > > there > > when using spring beans in your service.xml . > > > > Beyond that, looks like you have a spring issue and not an axis2 > > issue > > - you seem to have problems with this area: > > > > > > > > > > > class="com.cvg.ap.service.privateservices.APSecurity"> > > > > > local="usersEntityProxyBean" /> > > > > > > > > > > > > > > > > HTH, > > Robert > > HTH, > > Robert > > > > On Nov 29, 2007 1:08 PM, ndthuy > > > wrote: > > > > > > Hi All, > > > > I am using Spring and Hibernate with Axis2. I have the > > problem with > > loading > > the applicationContext.xml. Does anyone has similar > > problems? > > Attached are service.xml, applicationContext.xml and > > error meesage. > > > > Thanks a lot. > > > > service.xml > > > > > > > > > > > > > class="com.cvg.ap.util.SpringInit"> > > This web service > > initializes > > Spring. > > > > sample.spring.service.SpringInit > > > > > name="ServiceTCCL">composite > > > name="load-on-startup">true > > > > > > > > > class="org.apache.axis2.receivers.RawXMLINOutMessageReceiver" /> > > > > > > > > > > > > > mep="http://www.w3.org/ns/wsdl/in-out" > > > > > > > > class="com.cvg.ap.ws.service.publicservices.adminretrieveuserservice.Adm > > inRetrieveUserServiceMessageReceiverInOut" > > /> > > > > > > > > > > com.cvg.ap.ws.service.publicservices.impl.AdminRetrieveUserServiceImpl > > > > > > > > > > org.apache.axis2.extensions.spring.receivers.SpringAppContextAwareObject > > Supplier > > > > > > springAdminRetrieveUserService > > > > > name="useOriginalwsdl">true > > > name="modifyUserWSDLPortAddress">true > > > > > mep="http://www.w3.org/ns/wsdl/in-out" > > > > > > > urn:retrieveUserProfile > > > > > > > > http://AdminRetrieveUserService.publicservices.service.ws.ap.cvg.com/Adm > > inRetrieveUserServicePortType/retrieveUserProfileResponse > > > > > > > > > > > > > > ApplicationContext.xml > > > > > > > xmlns="http://www.springframework.org/schema/beans" > > > > > > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > > > > > > xsi:schemaLocation="http://www.springframework.org/schema/beans > > > g/schema/beans/spring-beans-2.0.xsd> > > > > http://www.springframework.org/schema/beans/spring-beans-2.0.xsd" > > > g/schema/beans/spring-beans-2.0.xsd> > > > > > > > > > > class="org.apache.axis2.extensions.spring.receivers.ApplicationContextHo > > lder" > > /> > > > > > > > > > class="org.springframework.orm.hibernate3.LocalSessionFactoryBean"> > > > > > value="classpath:hibernate.cfg.xml"> > > > > > > > > > > > > > > > > > class="org.springframework.beans.factory.config.PropertyPlaceholderConfi > > gurer"> > > > > > > > > file:$ > > > {ACCESSPOINT_WS_CFG_HOME}/accesspoint_ws/config/accesspoint_ws.propertie > > s > > > > > > > > > > > class="com.mchange.v2.c3p0.ComboPooledDataSource" > > destroy-method="close"> > > > > > > oracle.jdbc.driver.OracleDriver > > > > > > > > > > > > jdbc:oracle:thin:@${jdbc.host}:${jdbc.port}:${jdbc.database} > > > > > > > > > > > > > key="user">${jdbc.username} > > > > > > ${ACCESSPOINT_DB_PWD_DECRYPTED} > > > > > key="c3p0.min_size"> > > > > ${jdbc.connectionPool.minSize} > > > > > key="c3p0.max_size"> > > > > ${jdbc.connectionPool.maxSize} > > > > > key="c3p0.acquire_increment"> > > > > ${jdbc.connectionPool.increment} > > > > > key="c3p0.idle_test_period">100 > > > > > > > > > > > > > class="com.cvg.ap.dao.GroupsDAO"> > > > > > > > > > > > class="com.cvg.ap.dao.UsersDAO"> > > > > > > > > > > > > > > > class="com.cvg.ap.dao.MetadataDAO"> > > > > > > > > > > > > > > > > > > > class="org.springframework.orm.hibernate3.HibernateTemplate"> > > > > > > > > > > > > > > > > > > > class="org.springframework.orm.hibernate3.HibernateTransactionManager"> > > > > > > > > > > > > > > > > > class="org.springframework.orm.hibernate3.HibernateInterceptor"> > > > > > > > > > > > > > > > > > class="org.springframework.transaction.interceptor.TransactionIntercepto > > r"> > > > > > /> > > > > > > > > > key="get*">PROPAGATION_REQUIRED,readOnly > > > key="save*">PROPAGATION_REQUIRED > > > key="update*">PROPAGATION_REQUIRED > > > key="delete*">PROPAGATION_REQUIRED > > > key="updateUserForSuccessfulAuthentication*"> > > > > PROPAGATION_REQUIRED > > > > > key="updateUserForFailedAuthentication*"> > > > > PROPAGATION_REQUIRED > > > > > > > > > > > > > class="com.cvg.ap.dbms.UsersEntity"> > > > > > > > > > > > > > > > > > class="org.springframework.aop.framework.ProxyFactoryBean"> > > > > true > > > > > > > > > > hibernateInterceptor > > > > usersEntityInterceptor > > > > > > > > > local="usersEntityProxyTargetBean" /> > > > > > > > > > class="com.cvg.ap.dbms.MetadataEntity"> > > > > > > > > > > > > > > > class="com.cvg.ap.dbms.ACMServicesEntity"> > > > > > > > > > > > > > > > class="com.cvg.ap.service.privateservices.APSecurity"> > > > > > local="usersEntityProxyBean" /> > > > > > > > > > > > > > > > class="com.cvg.ap.dbms.GroupsEntity"> > > > > > > > > > > > > > > > > > class="com.cvg.ap.service.privateservices.APUserManagement"> > > > > > local="usersEntityProxyBean" /> > > > > > > > > > > > > > class="com.cvg.ap.service.publicservices.impl.AdminRetrieveUserServiceIm > > pl"> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > class="com.cvg.ap.ws.service.publicservices.impl.AdminRetrieveUserServic > > > eImpl"> > > > name="adminRetrieveUserService" > > ref="adminRetrieveUserService" > > /> > > > > > > > > > > Errors: > > > > org.apache.axis2.deployment.DeploymentException: Error > > creating bean with > > name 'apSecurity' defined in class path resource > > [applicationContext.xml]: > > Cannot resolve reference to bean 'usersEntityProxyBean' > > while setting > > bean > > property 'usersEntity'; nested exception is > > org.springframework.beans.factory.BeanCreationException: > > Error creating > > bean > > with name 'usersEntityProxyBean': FactoryBean threw > > exception on object > > creation; nested exception is > > java.lang.NoClassDefFoundError > > at > > > > org.apache.axis2.deployment.ServiceGroupBuilder.populateServiceGroup(Ser > > viceGroupBuilder.java:106) > > at > > > > org.apache.axis2.deployment.repository.util.ArchiveReader.buildServiceGr > > oup(ArchiveReader.java:103) > > at > > > > org.apache.axis2.deployment.repository.util.ArchiveReader.processService > > Group(ArchiveReader.java:172) > > at > > > > org.apache.axis2.deployment.ServiceDeployer.deploy(ServiceDeployer.java: > > 78) > > at > > > > org.apache.axis2.deployment.repository.util.DeploymentFileData.deploy(De > > ploymentFileData.java:137) > > at > > > > org.apache.axis2.deployment.DeploymentEngine.doDeploy(DeploymentEngine.j > > ava:571) > > at > > > > org.apache.axis2.deployment.repository.util.WSInfoList.update(WSInfoList > > .java:141) > > at > > > > org.apache.axis2.deployment.RepositoryListener.update(RepositoryListener > > .java:318) > > at > > > > org.apache.axis2.deployment.RepositoryListener.checkServices(RepositoryL > > istener.java:220) > > at > > > > org.apache.axis2.deployment.DeploymentEngine.loadServices(DeploymentEngi > > ne.java:118) > > at > > > > org.apache.axis2.deployment.WarBasedAxisConfigurator.loadServices(WarBas > > edAxisConfigurator.java:272) > > at > > > > org.apache.axis2.context.ConfigurationContextFactory.createConfiguration > > Context(ConfigurationContextFactory.java:78) > > at > > > > org.apache.axis2.transport.http.AxisServlet.initConfigContext(AxisServle > > t.java:500) > > at > > > > org.apache.axis2.transport.http.AxisServlet.init(AxisServlet.java:420) > > at > > > > org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.jav > > a:1139) > > at > > > > org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:966) > > at > > > > org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.j > > ava:3956) > > at > > > > org.apache.catalina.core.StandardContext.start(StandardContext.java:4230 > > ) > > at > > > > org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.ja > > va:760) > > at > > > > org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:740) > > at > > > > org.apache.catalina.core.StandardHost.addChild(StandardHost.java:544) > > at > > > > org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:825) > > at > > > > org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:714) > > at > > > > org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:490) > > at > > > > org.apache.catalina.startup.HostConfig.start(HostConfig.java:1138) > > at > > > > org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:31 > > 1) > > at > > > > org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSu > > pport.java:120) > > at > > > > org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1022) > > at > > > > org.apache.catalina.core.StandardHost.start(StandardHost.java:736) > > at > > > > org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014) > > at > > > > org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443) > > at > > > > org.apache.catalina.core.StandardService.start(StandardService.java:448) > > at > > > > org.apache.catalina.core.StandardServer.start(StandardServer.java:700) > > at > > org.apache.catalina.startup.Catalina.start(Catalina.java:552) > > at > > sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > > at > > > > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav > > a:39) > > at > > > > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor > > Impl.java:25) > > at > > java.lang.reflect.Method.invoke(Method.java:585) > > at > > > > org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295) > > at > > org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:433) > > Caused by: > > org.apache.axis2.deployment.DeploymentException: Error > > creating > > bean with name 'apSecurity' defined in class path > > resource > > [applicationContext.xml]: Cannot resolve reference to > > bean > > 'usersEntityProxyBean' while setting bean property > > 'usersEntity'; nested > > exception is > > org.springframework.beans.factory.BeanCreationException: > > Error > > creating bean with name 'usersEntityProxyBean': > > FactoryBean threw > > exception > > on object creation; nested exception is > > java.lang.NoClassDefFoundError > > at > > > > org.apache.axis2.deployment.ServiceBuilder.populateService(ServiceBuilde > > r.java:389) > > at > > > > org.apache.axis2.deployment.ServiceGroupBuilder.populateServiceGroup(Ser > > viceGroupBuilder.java:101) > > ... 39 more > > Caused by: > > org.apache.axis2.deployment.DeploymentException: Error > > creating > > bean with name 'apSecurity' defined in class path > > resource > > [applicationContext.xml]: Cannot resolve reference to > > bean > > 'usersEntityProxyBean' while setting bean property > > 'usersEntity'; nested > > exception is > > org.springframework.beans.factory.BeanCreationException: > > Error > > creating bean with name 'usersEntityProxyBean': > > FactoryBean threw > > exception > > on object creation; nested exception is > > java.lang.NoClassDefFoundError > > at > > > > org.apache.axis2.deployment.ServiceBuilder.loadServiceLifeCycleClass(Ser > > viceBuilder.java:473) > > at > > > > org.apache.axis2.deployment.ServiceBuilder.populateService(ServiceBuilde > > r.java:184) > > ... 40 more > > Caused by: > > org.springframework.beans.factory.BeanCreationException: Error > > creating bean with name 'apSecurity' defined in class > > path resource > > [applicationContext.xml]: Cannot resolve reference to > > bean > > 'usersEntityProxyBean' while setting bean property > > 'usersEntity'; nested > > exception is > > org.springframework.beans.factory.BeanCreationException: > > Error > > creating bean with name 'usersEntityProxyBean': > > FactoryBean threw > > exception > > on object creation; nested exception is > > java.lang.NoClassDefFoundError > > at > > > > org.springframework.beans.factory.support.BeanDefinitionValueResolver.re > > solveReference(BeanDefinitionValueResolver.java:275) > > at > > > > org.springframework.beans.factory.support.BeanDefinitionValueResolver.re > > solveValueIfNecessary(BeanDefinitionValueResolver.java:110) > > at > > > > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFac > > tory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1095) > > at > > > > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFac > > tory.populateBean(AbstractAutowireCapableBeanFactory.java:857) > > at > > > > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFac > > tory.createBean(AbstractAutowireCapableBeanFactory.java:423) > > at > > > > org.springframework.beans.factory.support.AbstractBeanFactory$1.getObjec > > t(AbstractBeanFactory.java:249) > > at > > > > org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.g > > etSingleton(DefaultSingletonBeanRegistry.java:155) > > at > > > > org.springframework.beans.factory.support.AbstractBeanFactory.getBean(Ab > > stractBeanFactory.java:246) > > at > > > > org.springframework.beans.factory.support.AbstractBeanFactory.getBean(Ab > > stractBeanFactory.java:160) > > at > > > > org.springframework.beans.factory.support.DefaultListableBeanFactory.pre > > InstantiateSingletons(DefaultListableBeanFactory.java:291) > > at > > > > org.springframework.context.support.AbstractApplicationContext.refresh(A > > bstractApplicationContext.java:352) > > at > > > com.cvg.ap.util.SpringInit.startUp(SpringInit.java:60) > > at > > > > org.apache.axis2.deployment.ServiceBuilder.loadServiceLifeCycleClass(Ser > > viceBuilder.java:469) > > ... 41 more > > Caused by: > > org.springframework.beans.factory.BeanCreationException: Error > > creating bean with name 'usersEntityProxyBean': > > FactoryBean threw > > exception > > on object creation; nested exception is > > java.lang.NoClassDefFoundError > > at > > > > org.springframework.beans.factory.support.AbstractBeanFactory.getObjectF > > romFactoryBean(AbstractBeanFactory.java:1252) > > at > > > > org.springframework.beans.factory.support.AbstractBeanFactory.getObjectF > > orBeanInstance(AbstractBeanFactory.java:1217) > > at > > > > org.springframework.beans.factory.support.AbstractBeanFactory.getBean(Ab > > stractBeanFactory.java:206) > > at > > > > org.springframework.beans.factory.support.AbstractBeanFactory.getBean(Ab > > stractBeanFactory.java:160) > > at > > > > org.springframework.beans.factory.support.BeanDefinitionValueResolver.re > > solveReference(BeanDefinitionValueResolver.java:267) > > ... 53 more > > Caused by: java.lang.NoClassDefFoundError > > at > > > > org.springframework.aop.framework.Cglib2AopProxy.createEnhancer(Cglib2Ao > > pProxy.java:223) > > at > > > > org.springframework.aop.framework.Cglib2AopProxy.getProxy(Cglib2AopProxy > > .java:150) > > at > > > > org.springframework.aop.framework.ProxyFactoryBean.getProxy(ProxyFactory > > Bean.java:347) > > at > > > > org.springframework.aop.framework.ProxyFactoryBean.getSingletonInstance( > > ProxyFactoryBean.java:302) > > at > > > > org.springframework.aop.framework.ProxyFactoryBean.getObject(ProxyFactor > > yBean.java:228) > > at > > > > org.springframework.beans.factory.support.AbstractBeanFactory.getObjectF > > romFactoryBean(AbstractBeanFactory.java:1246) > > ... 57 more > > > > -- > > View this message in context: > > > > http://www.nabble.com/Problem-with-Using-Spring-and-Hibernate-with-Axis2 > > -tf4898949.html#a14031519 > > Sent from the Axis - User mailing list archive at > > Nabble.com. > > > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: > > axis-user-unsubscribe@ws.apache.org > > For additional commands, e-mail: > > axis-user-help@ws.apache.org > > > > > > > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org > > For additional commands, e-mail: axis-user-help@ws.apache.org > > > > > > > > > > > > > > > > > > > > > > > > > > > > -- > > > > Anthony > > ------------------------------------- > > Anthony Bull > > Senior Developer > > Black Coffee Software Ltd > > PO Box 10-192 The Terrace > > Wellington, New Zealand > > > > anthony.bull@bcsoft.co.nz > > Ph +64 4 472 8818 > > Fax +64 4 472 8811 > > ------------------------------------- > > www.bcsoft.co.nz > > --------------------------------------------------------------- > > This email may contain confidential or privileged information, > > and is intended for use only by the addressee, or addressees. > > If you are not the intended recipient please advise the sender > > immediately and do not copy, use or disclose the contents to > > any other person or organisation. > > Black Coffee Software Ltd accepts no responsibility for viruses > > received with this email, or to any changes made to the original > > content. Any views or opinions expressed in this email may be > > personal to the sender and are not necessarily those of Black > > Coffee Software Ltd. > > --------------------------------------------------------------- > > --------------------------------------------------------------------- To > > unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org For additional > > commands, e-mail: axis-user-help@ws.apache.org > > > > > > -- > View this message in context: http://www.nabble.com/Problem-with-Using-Spring-and-Hibernate-with-Axis2-tf4898949.html#a14070476 > > Sent from the Axis - User mailing list archive at Nabble.com. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org > For additional commands, e-mail: axis-user-help@ws.apache.org > > --------------------------------------------------------------------- To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org For additional commands, e-mail: axis-user-help@ws.apache.org