- This topic has 5 replies, 2 voices, and was last updated 12 years, 9 months ago by support-joy.
-
AuthorPosts
-
NagendraMemberHi Team,
We are using MyEclipse Blue 10.1 IDE and Websphere 7 as a server to deploy our application. Our application contains Spring & Hibernate. I have configured the server into MyEclipse and running in Debug (In-Workspace Mode) mode. We are getting below ecxeptions while server start-up. It seems that its not able to initialize Spring beans.
But when I run the server in Running Mode application is working fine. Please look into this issue asap.
——————————————————————-
[4/11/12 13:42:15:349 IST] 0000000b extension E com.ibm.wsspi.webcontainer.extension.WebExtensionProcessor createServletWrapper Error occured while preparing the servlet for initialization.
javax.servlet.ServletException: SRVE0207E: Uncaught initialization exception created by servlet
at com.ibm.ws.webcontainer.servlet.ServletWrapper.init(ServletWrapper.java:377)
at com.ibm.ws.webcontainer.servlet.ServletWrapperImpl.init(ServletWrapperImpl.java:165)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.initialize(ServletWrapper.java:1588)
at com.ibm.wsspi.webcontainer.extension.WebExtensionProcessor.createServletWrapper(WebExtensionProcessor.java:98)
at com.ibm.ws.webcontainer.webapp.WebApp.getServletWrapper(WebApp.java:936)
at com.ibm.ws.webcontainer.webapp.WebApp.getServletWrapper(WebApp.java:857)
at com.ibm.ws.webcontainer.webapp.WebApp.initializeTargetMappings(WebApp.java:538)
at com.ibm.ws.webcontainer.webapp.WebApp.commonInitializationFinish(WebApp.java:360)
at com.ibm.ws.webcontainer.webapp.WebAppImpl.initialize(WebAppImpl.java:292)
at com.ibm.ws.webcontainer.webapp.WebGroupImpl.addWebApplication(WebGroupImpl.java:99)
at com.ibm.ws.webcontainer.VirtualHostImpl.addWebApplication(VirtualHostImpl.java:167)
at com.ibm.ws.webcontainer.WSWebContainer.addWebApp(WSWebContainer.java:722)
at com.ibm.ws.webcontainer.WSWebContainer.addWebApplication(WSWebContainer.java:607)
at com.ibm.ws.webcontainer.component.WebContainerImpl.install(WebContainerImpl.java:376)
at com.ibm.ws.webcontainer.component.WebContainerImpl.start(WebContainerImpl.java:668)
at com.ibm.ws.runtime.component.ApplicationMgrImpl.start(ApplicationMgrImpl.java:1162)
at com.ibm.ws.runtime.component.DeployedApplicationImpl.fireDeployedObjectStart(DeployedApplicationImpl.java:1313)
at com.ibm.ws.runtime.component.DeployedModuleImpl.start(DeployedModuleImpl.java:611)
at com.ibm.ws.runtime.component.DeployedApplicationImpl.start(DeployedApplicationImpl.java:938)
at com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplication(ApplicationMgrImpl.java:740)
at com.ibm.ws.runtime.component.ApplicationMgrImpl.start(ApplicationMgrImpl.java:2092)
at com.ibm.ws.runtime.component.CompositionUnitMgrImpl.start(CompositionUnitMgrImpl.java:437)
at com.ibm.ws.runtime.component.CompositionUnitImpl.start(CompositionUnitImpl.java:122)
at com.ibm.ws.runtime.component.CompositionUnitMgrImpl.start(CompositionUnitMgrImpl.java:380)
at com.ibm.ws.runtime.component.CompositionUnitMgrImpl.access$300(CompositionUnitMgrImpl.java:105)
at com.ibm.ws.runtime.component.CompositionUnitMgrImpl$CUInitializer.run(CompositionUnitMgrImpl.java:928)
at com.ibm.wsspi.runtime.component.WsComponentImpl$_AsynchInitializer.run(WsComponentImpl.java:349)
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1527)
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘rxUserProfile’ defined in ServletContext resource [/WEB-INF/context/user-profile-beans.xml]: Cannot resolve reference to bean ‘rxCaregiverService’ while setting bean property ‘rxCaregiverService’; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘rxCaregiverService’ defined in ServletContext resource [/WEB-INF/context/service-provider-beans.xml]: Cannot resolve reference to bean ‘rxMemberService’ while setting bean property ‘claimsMemberService’; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘rxMemberService’ defined in ServletContext resource [/WEB-INF/context/service-provider-beans.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [com.uhg.rxsol.services.rxclaim.service.RxMemberServiceImpl]: Constructor threw exception; nested exception is java.lang.ExceptionInInitializerError
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:275)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:104)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1245)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1010)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:472)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)
at java.security.AccessController.doPrivileged(AccessController.java:224)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:429)
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:728)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:380)
at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:255)
at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:199)
at com.uhg.rxsol.chp.framework.spring.context.RxParameterizableContextLoaderListener.contextInitialized(RxParameterizableContextLoaderListener.java:50)
at com.ibm.ws.webcontainer.webapp.WebApp.notifyServletContextCreated(WebApp.java:1588)
at com.ibm.ws.webcontainer.webapp.WebApp.commonInitializationFinish(WebApp.java:350)
… 20 more
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘rxCaregiverService’ defined in ServletContext resource [/WEB-INF/context/service-provider-beans.xml]: Cannot resolve reference to bean ‘rxMemberService’ while setting bean property ‘claimsMemberService’; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘rxMemberService’ defined in ServletContext resource [/WEB-INF/context/service-provider-beans.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [com.uhg.rxsol.services.rxclaim.service.RxMemberServiceImpl]: Constructor threw exception; nested exception is java.lang.ExceptionInInitializerError
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:275)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:104)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1245)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1010)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:472)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)
at java.security.AccessController.doPrivileged(AccessController.java:224)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:269)
… 40 more
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘rxMemberService’ defined in ServletContext resource [/WEB-INF/context/service-provider-beans.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [com.uhg.rxsol.services.rxclaim.service.RxMemberServiceImpl]: Constructor threw exception; nested exception is java.lang.ExceptionInInitializerError
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:883)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:839)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:440)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)
at java.security.AccessController.doPrivileged(AccessController.java:224)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:269)
——————————————————————-Thanks in Advance,
Nagendra
support-joyMemberNagendra,
Please refer –
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'rxUserProfile' defined in ServletContext resource [/WEB-INF/context/user-profile-beans.xml]: Cannot resolve reference to bean 'rxCaregiverService' while setting bean property 'rxCaregiverService'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'rxCaregiverService' defined in ServletContext resource [/WEB-INF/context/service-provider-beans.xml]: Cannot resolve reference to bean 'rxMemberService' while setting bean property 'claimsMemberService'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'rxMemberService' defined in ServletContext resource [/WEB-INF/context/service-provider-beans.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [com.uhg.rxsol.services.rxclaim.service.RxMemberServiceImpl]: Constructor threw exception;
Make sure you beans are mapped properly. Exception says it can’t resolve rxCaregiverService bean. Check your mappings.
You could try out the solutions listed here –
1. http://www.coderanch.com/t/434771/oa/org-springframework-beans-factory-BeanCreationException
2. http://www.coderanch.com/t/458747/Spring/Exception-thread-main-org-springframeworkI would recommend you cross post on WAS and spring forums.
NagendraMemberHi Joy,
Thanks for your reply. And I have verified the links whIch you have provided but I didnt find the solution.
This issue not related to Spring Or WAS. Because same application is working when I run the server in normal Running mode. But its giving the error only when I run it on Debug mode.
Is eclipse use differnt Jars when we run in Debug mode ?
Please help me to resolve the error.
Thanks,
Nagendra
support-joyMemberNagendra,
Could you check if you can debug this application on Tomcat or any other application server and verify if the debug works fine?
In case debug is still an issue with other app servers, please zip and attach a toned-down version of your project to help me reproduce the same here. You could send an email to support@genuitec.com, include a reference of this post for quick tracing and add ATTN:Joy in the subject. Include the following in your email –
1. Attach your project as a .zip.
2. Include installation details. Open MyEclipse IDE, from menu options click on MyEclipse > Installation Summary > Installation Details > [Copy to Clipboard] and paste the same.
3. Clear your .log file located at [your workspace dir]/.metadata/.log, replicate the issue and attach file.
4. Include details of all the third party plugins with the update site or weblink to download the plugin.
NagendraMemberJoy,
It is not possible to test our application in other app servers as we dont have licenced ones and we are not supposed to download any freeware or un-licenced softwares.
Also not possible to send our Ear/Zip file as we dont have rights to upload any files. and ours is huge application having 90 MB.Is it possible to get support directly. Means who can come to our place and provide support ?
Please let me know the support availability and see below installation summary.
————————————————————————–
*** Date:
Thursday, April 12, 2012 2:48:25 PM IST*** System properties:
OS=WindowsXP
OS version=5.1.0
OS arch=x86
Profile arch=x86
Window system=win32
Java version=1.6.0_13
Workspace=file:/C:/FLMWorkspace/
VM Args=-Xmx512m
-XX:MaxPermSize=256m
-XX:ReservedCodeCacheSize=64m
-Dosgi.nls.warnings=ignore
-Djava.class.path=C:\PROGRA~1\MYECLI~1\MYECLI~1\../Common/plugins/OR02A7~1.JAR*** Subscription information
Product Id: E3MB (MyEclipse Blue Subscription)
License version: 3.0
Full Maintenance Included
Subscription expiration date (YYYYMMDD): 20130124
Number of users: 9*** Eclipse details:
MyEclipse Blue EditionVersion: 10.1 Blue
Build id: 10.1-Blue-20120316Blueprint: MyEclipse Blue Edition 10
com.genuitec.myeclipse.blue.feature – 10.1.0.me201203170059
com.genuitec.myeclipse.database – 10.1.0.me201203170059
com.genuitec.myeclipse.db2 – 10.1.0.me201203170059
com.genuitec.myeclipse.desktop – 10.1.0.me201203170059
com.genuitec.myeclipse.editor – 10.1.0.me201203170059
com.genuitec.myeclipse.geronimo – 10.1.0.me201203170059
com.genuitec.myeclipse.icefaces.feature – 10.1.0.me201203170059
com.genuitec.myeclipse.iedebugger – 10.1.0.me201203170059
com.genuitec.myeclipse.imageeditor – 10.1.0.me201203170059
com.genuitec.myeclipse.jsf – 10.1.0.me201203170059
com.genuitec.myeclipse.maven – 10.1.0.me201203170059
com.genuitec.myeclipse.oracle – 10.1.0.me201203170059
com.genuitec.myeclipse.orion – 10.1.0.me201203170059
com.genuitec.myeclipse.persistence – 10.1.0.me201203170059
com.genuitec.myeclipse.pulse – 10.1.0.me201203170059
com.genuitec.myeclipse.reports – 10.1.0.me201203170059
com.genuitec.myeclipse.resin – 10.1.0.me201203170059
com.genuitec.myeclipse.struts – 10.1.0.me201203170059
com.genuitec.myeclipse.sun – 10.1.0.me201203170059
com.genuitec.myeclipse.tomcat – 10.1.0.me201203170059
com.genuitec.myeclipse.uml2 – 10.1.0.me201203170059
com.genuitec.myeclipse.visualvm – 10.1.0.me201203170059
com.genuitec.myeclipse.visualvm.server – 10.1.0.me201203170059
com.genuitec.myeclipse.ws – 10.1.0.me201203170059
com.genuitec.myeclipse.ws.blue – 10.1.0.me201203170059
org.eclipse.birt – 2.6.1.me201203170059
org.eclipse.datatools.connectivity.feature – 1.9.0.me201203170059
org.eclipse.datatools.enablement.feature – 1.9.0.me201203170059
org.eclipse.datatools.modelbase.feature – 1.9.0.v201106031100-77078CcNBHCBYKYEbNV
org.eclipse.datatools.sqldevtools.feature – 1.9.0.me201203170059
org.eclipse.emf – 2.7.0.v20110606-0949
org.eclipse.gef – 3.7.0.v20110425-2050-777D-81B2Bz0685C3A6E34272
org.eclipse.graphiti.feature – 0.8.0.v20110607-1252
org.eclipse.jpt.jpa.feature – 3.0.0.me201203170059
org.eclipse.jpt.jpadiagrameditor.feature – 1.0.0.me201203170059
org.eclipse.jst.common.fproj.enablement.jdt – 3.3.0.me201203170059
org.eclipse.jst.enterprise_ui.feature – 3.3.0.me201203170059
org.eclipse.jst.server_adapters.ext.feature – 3.3.0.me201203170059
org.eclipse.jst.server_adapters.feature – 3.2.100.me201203170059
org.eclipse.jst.server_ui.feature – 3.3.0.me201203170059
org.eclipse.jst.ws.axis2tools.feature – 1.1.200.me201203170059
org.eclipse.m2e.feature – 1.0.0.me201203170059
org.eclipse.sapphire.platform – 0.3.0.201106221325
org.eclipse.wst.common.fproj – 3.3.0.me201203170059
org.eclipse.wst.server_adapters.feature – 3.2.100.me201203170059
org.eclipse.xsd – 2.7.0.v20110606-0949
org.springframework.ide.eclipse.feature – 2.7.1.me201203170059com.collabnet.subversion.merge.feature – 2.2.4
fr.obeo.acceleo.bridge.feature – 2.6.0.200906261742
org.eclipse.cvs – 1.3.100.v20110520-0800-7B78FHl9VF7BD7KBM4GP9C
org.eclipse.draw2d – 3.7.0.v20110425-2050-46-7w3122153603161
org.eclipse.equinox.p2.core.feature – 1.0.1.v20110906-1605-8290FZ9FVKHVRKtmx3fpNuo02129
org.eclipse.equinox.p2.extras.feature – 1.0.1.v20110906-1605-7A4FD4DiVOMap8cHSc6vPuny4gqO
org.eclipse.equinox.p2.rcp.feature – 1.0.1.v20110906-1605-782EqBqNKGVkiV-PUsgz-uny4gqO
org.eclipse.equinox.p2.user.ui – 2.1.2.R37x_v20110815-1155-6-Bk8pYWZz0qUTX5I15GZWwbXkrl
org.eclipse.help – 1.3.0.v20110530-0844-7i7uFFmFFl8nvqbDpEqTvx
org.eclipse.jdt – 3.7.2.v20120120-1414-7z8gFcuFMP7BW5XTz0jLTnz0l9B1
org.eclipse.jsf.feature – 3.3.0.me201203170059
org.eclipse.ocl – 3.1.0.v20110606-1427
org.eclipse.pde – 3.7.2.v20120120-1420-7b7rFUOFEx2Xnqafnpz0E–0
org.eclipse.platform – 3.7.2.v20120207-1839-9gF7UHPDFxGjd-PqDr2jX_4yKaumkoHTz04_q-q
org.eclipse.rcp – 3.7.2.v20120120-1424-9DB5FmnFq5JCf1UA38R-kz0S0272
org.tigris.subversion.clientadapter.feature – 1.6.12
org.tigris.subversion.clientadapter.javahl.feature – 1.6.17
org.tigris.subversion.subclipse – 1.6.18
org.tigris.subversion.subclipse.graph.feature – 1.0.9
org.tigris.subversion.subclipse.mylyn – 3.0.0Eclipse startup command=-os
win32
-ws
win32
-arch
x86
-showsplash
-launcher
C:\Program Files\MyEclipse Blue Edition\MyEclipse Blue Edition 10\myeclipse-blue.exe
-name
Myeclipse-blue
–launcher.library
C:\Program Files\MyEclipse Blue Edition\MyEclipse Blue Edition 10\../Common/plugins/org.eclipse.equinox.launcher.i18n.win32.win32.x86_4.2.0.v201201111650\eclipse_4201.dll
-startup
C:\Program Files\MyEclipse Blue Edition\MyEclipse Blue Edition 10\../Common/plugins/org.eclipse.equinox.launcher_1.2.0.v20110502.jar
-install
C:\Program Files\MyEclipse Blue Edition\MyEclipse Blue Edition 10
-configuration
C:\Program Files\MyEclipse Blue Edition\MyEclipse Blue Edition 10\configuration
-data
C:\FLMWorkspace
-launcher
C:\Program Files\MyEclipse Blue Edition\MyEclipse Blue Edition 10\myeclipse-blue.exe
-install
C:\Program Files\MyEclipse Blue Edition\MyEclipse Blue Edition 10
-configuration
C:\Program Files\MyEclipse Blue Edition\MyEclipse Blue Edition 10\configuration
-vm
C:\Program Files\MyEclipse Blue Edition\Common\binary\com.sun.java.jdk.win32.x86_1.6.0.013\jre\bin\client\jvm.dll———————————————————————————–
Thanks In Advance,
Nagendra
UHG
Hyderabad
support-joyMemberNagendra ,
My apologies for the late reply. Could you try running on tomcat / MyEclipse tomcat? You could send us a small sample project with which to replicate this issue. This way you wont be breaching the confidentiality agreement. We do not provide onsite technical support.
-
AuthorPosts