Announcement Announcement Module
Collapse
No announcement yet.
Error while starting websphere 6.0 Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Error while starting websphere 6.0

    Hi,

    I am getting below error while starting application server. I have no clue so far how to get rid of it.

    Any idea?

    [5/30/12 18:36:31:588 IST] 00000012 WebApp E Exception caught while initializing context
    org.springframework.beans.factory.access.Bootstrap Exception: Unable to return specified BeanFactory instance: factory key [ear.context], from group with resource name [classpath*:beanRefContext.xml]; nested exception is org.springframework.beans.factory.NoSuchBeanDefini tionException: No bean named 'ear.context' is defined
    at org.springframework.beans.factory.access.Singleton BeanFactoryLocator.useBeanFactory(SingletonBeanFac toryLocator.java:409)
    at org.springframework.web.context.ContextLoader.load ParentContext(ContextLoader.java:358)
    at org.springframework.web.context.ContextLoader.init WebApplicationContext(ContextLoader.java:193)
    at org.springframework.web.context.ContextLoaderListe ner.contextInitialized(ContextLoaderListener.java: 47)
    at com.fmr.commons.webservices.config.StartupListener .contextInitialized(StartupListener.java:39)
    at com.ibm.ws.wswebcontainer.webapp.WebApp.notifyServ letContextCreated(WebApp.java:641)
    at com.ibm.ws.webcontainer.webapp.WebApp.commonInitia lizationFinish(WebApp.java:298)
    at com.ibm.ws.wswebcontainer.webapp.WebApp.initialize (WebApp.java:289)
    at com.ibm.ws.wswebcontainer.webapp.WebGroup.addWebAp plication(WebGroup.java:90)
    at com.ibm.ws.wswebcontainer.VirtualHost.addWebApplic ation(VirtualHost.java:157)
    at com.ibm.ws.wswebcontainer.WebContainer.addWebApp(W ebContainer.java:665)
    at com.ibm.ws.wswebcontainer.WebContainer.addWebAppli cation(WebContainer.java:618)
    at com.ibm.ws.webcontainer.component.WebContainerImpl .install(WebContainerImpl.java:335)
    at com.ibm.ws.webcontainer.component.WebContainerImpl .start(WebContainerImpl.java:551)
    at com.ibm.ws.runtime.component.ApplicationMgrImpl.st art(ApplicationMgrImpl.java:1301)
    at com.ibm.ws.runtime.component.DeployedApplicationIm pl.fireDeployedObjectStart(DeployedApplicationImpl .java:1138)
    at com.ibm.ws.runtime.component.DeployedModuleImpl.st art(DeployedModuleImpl.java:569)
    at com.ibm.ws.runtime.component.DeployedApplicationIm pl.start(DeployedApplicationImpl.java:817)
    at com.ibm.ws.runtime.component.ApplicationMgrImpl.st artApplication(ApplicationMgrImpl.java:950)
    at com.ibm.ws.runtime.component.ApplicationMgrImpl$Ap pInitializer.run(ApplicationMgrImpl.java:2120)
    at com.ibm.wsspi.runtime.component.WsComponentImpl$_A synchInitializer.run(WsComponentImpl.java:342)
    at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.j ava:1469)
    Caused by: org.springframework.beans.factory.NoSuchBeanDefini tionException: No bean named 'ear.context' is defined
    at org.springframework.beans.factory.support.DefaultL istableBeanFactory.getBeanDefinition(DefaultListab leBeanFactory.java:521)
    at org.springframework.beans.factory.support.Abstract BeanFactory.getMergedLocalBeanDefinition(AbstractB eanFactory.java:1068)
    at org.springframework.beans.factory.support.Abstract BeanFactory.doGetBean(AbstractBeanFactory.java:274 )
    at org.springframework.beans.factory.support.Abstract BeanFactory.getBean(AbstractBeanFactory.java:194)
    at org.springframework.context.support.AbstractApplic ationContext.getBean(AbstractApplicationContext.ja va:1079)
    at org.springframework.beans.factory.access.Singleton BeanFactoryLocator.useBeanFactory(SingletonBeanFac toryLocator.java:397)
    ... 21 more

    [5/30/12 18:36:31:634 IST] 00000012 http I WSSERVLET12: JAX-WS context listener initializing
    [5/30/12 18:36:31:978 IST] 00000012 http E WSSERVLET11: failed to parse runtime descriptor: javax.xml.transform.TransformerFactoryConfiguratio nError: Provider com.sun.org.apache.xalan.internal.xsltc.trax.Trans formerFactoryImpl not found
    javax.xml.transform.TransformerFactoryConfiguratio nError: Provider com.sun.org.apache.xalan.internal.xsltc.trax.Trans formerFactoryImpl not found
    at javax.xml.transform.TransformerFactory.newInstance (Unknown Source)
    at com.sun.xml.ws.util.xml.XmlUtil.<clinit>(XmlUtil.j ava:212)
    at java.lang.J9VMInternals.initializeImpl(Native Method)
    at java.lang.J9VMInternals.initialize(J9VMInternals.j ava:177)
    at com.sun.xml.ws.transport.http.DeploymentDescriptor Parser.createEntityResolver(DeploymentDescriptorPa rser.java:402)
    at com.sun.xml.ws.transport.http.DeploymentDescriptor Parser.parseAdapters(DeploymentDescriptorParser.ja va:253)
    at com.sun.xml.ws.transport.http.DeploymentDescriptor Parser.parse(DeploymentDescriptorParser.java:147)
    at com.sun.xml.ws.transport.http.servlet.WSServletCon textListener.contextInitialized(WSServletContextLi stener.java:124)
    at com.ibm.ws.wswebcontainer.webapp.WebApp.notifyServ letContextCreated(WebApp.java:641)
    at com.ibm.ws.webcontainer.webapp.WebApp.commonInitia lizationFinish(WebApp.java:298)
    at com.ibm.ws.wswebcontainer.webapp.WebApp.initialize (WebApp.java:289)
    at com.ibm.ws.wswebcontainer.webapp.WebGroup.addWebAp plication(WebGroup.java:90)
    at com.ibm.ws.wswebcontainer.VirtualHost.addWebApplic ation(VirtualHost.java:157)
    at com.ibm.ws.wswebcontainer.WebContainer.addWebApp(W ebContainer.java:665)
    at com.ibm.ws.wswebcontainer.WebContainer.addWebAppli cation(WebContainer.java:618)
    at com.ibm.ws.webcontainer.component.WebContainerImpl .install(WebContainerImpl.java:335)
    at com.ibm.ws.webcontainer.component.WebContainerImpl .start(WebContainerImpl.java:551)
    at com.ibm.ws.runtime.component.ApplicationMgrImpl.st art(ApplicationMgrImpl.java:1301)
    at com.ibm.ws.runtime.component.DeployedApplicationIm pl.fireDeployedObjectStart(DeployedApplicationImpl .java:1138)
    at com.ibm.ws.runtime.component.DeployedModuleImpl.st art(DeployedModuleImpl.java:569)
    at com.ibm.ws.runtime.component.DeployedApplicationIm pl.start(DeployedApplicationImpl.java:817)
    at com.ibm.ws.runtime.component.ApplicationMgrImpl.st artApplication(ApplicationMgrImpl.java:950)
    at com.ibm.ws.runtime.component.ApplicationMgrImpl$Ap pInitializer.run(ApplicationMgrImpl.java:2120)
    at com.ibm.wsspi.runtime.component.WsComponentImpl$_A synchInitializer.run(WsComponentImpl.java:342)
    at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.j ava:1469)

    [5/30/12 18:36:32:072 IST] 00000012 ServiceLogger I com.ibm.ws.ffdc.IncidentStreamImpl open FFDC0009I: FFDC opened incident stream file C:\RAD7\IBM\SDP70\runtimes\base_v61\profiles\wi-dc-balances\logs\ffdc\server1_00000012_12.05.30_18.36 .32_0.txt
    [5/30/12 18:36:32:150 IST] 00000012 ServiceLogger I com.ibm.ws.ffdc.IncidentStreamImpl resetIncidentStream FFDC0010I: FFDC closed incident stream file C:\RAD7\IBM\SDP70\runtimes\base_v61\profiles\wi-dc-balances\logs\ffdc\server1_00000012_12.05.30_18.36 .32_0.txt
    [5/30/12 18:36:32:150 IST] 00000012 WebApp E Exception caught while initializing context
    com.sun.xml.ws.transport.http.servlet.WSServletExc eption: WSSERVLET11: failed to parse runtime descriptor: javax.xml.transform.TransformerFactoryConfiguratio nError: Provider com.sun.org.apache.xalan.internal.xsltc.trax.Trans formerFactoryImpl not found
    at com.sun.xml.ws.transport.http.servlet.WSServletCon textListener.contextInitialized(WSServletContextLi stener.java:139)
    at com.ibm.ws.wswebcontainer.webapp.WebApp.notifyServ letContextCreated(WebApp.java:641)
    at com.ibm.ws.webcontainer.webapp.WebApp.commonInitia lizationFinish(WebApp.java:298)
    at com.ibm.ws.wswebcontainer.webapp.WebApp.initialize (WebApp.java:289)
    at com.ibm.ws.wswebcontainer.webapp.WebGroup.addWebAp plication(WebGroup.java:90)
    at com.ibm.ws.wswebcontainer.VirtualHost.addWebApplic ation(VirtualHost.java:157)
    at com.ibm.ws.wswebcontainer.WebContainer.addWebApp(W ebContainer.java:665)
    at com.ibm.ws.wswebcontainer.WebContainer.addWebAppli cation(WebContainer.java:618)
    at com.ibm.ws.webcontainer.component.WebContainerImpl .install(WebContainerImpl.java:335)
    at com.ibm.ws.webcontainer.component.WebContainerImpl .start(WebContainerImpl.java:551)
    at com.ibm.ws.runtime.component.ApplicationMgrImpl.st art(ApplicationMgrImpl.java:1301)
    at com.ibm.ws.runtime.component.DeployedApplicationIm pl.fireDeployedObjectStart(DeployedApplicationImpl .java:1138)
    at com.ibm.ws.runtime.component.DeployedModuleImpl.st art(DeployedModuleImpl.java:569)
    at com.ibm.ws.runtime.component.DeployedApplicationIm pl.start(DeployedApplicationImpl.java:817)
    at com.ibm.ws.runtime.component.ApplicationMgrImpl.st artApplication(ApplicationMgrImpl.java:950)
    at com.ibm.ws.runtime.component.ApplicationMgrImpl$Ap pInitializer.run(ApplicationMgrImpl.java:2120)
    at com.ibm.wsspi.runtime.component.WsComponentImpl$_A synchInitializer.run(WsComponentImpl.java:342)
    at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.j ava:1469)
    Caused by: javax.xml.transform.TransformerFactoryConfiguratio nError: Provider com.sun.org.apache.xalan.internal.xsltc.trax.Trans formerFactoryImpl not found
    at javax.xml.transform.TransformerFactory.newInstance (Unknown Source)
    at com.sun.xml.ws.util.xml.XmlUtil.<clinit>(XmlUtil.j ava:212)
    at java.lang.J9VMInternals.initializeImpl(Native Method)
    at java.lang.J9VMInternals.initialize(J9VMInternals.j ava:177)
    at com.sun.xml.ws.transport.http.DeploymentDescriptor Parser.createEntityResolver(DeploymentDescriptorPa rser.java:402)
    at com.sun.xml.ws.transport.http.DeploymentDescriptor Parser.parseAdapters(DeploymentDescriptorParser.ja va:253)
    at com.sun.xml.ws.transport.http.DeploymentDescriptor Parser.parse(DeploymentDescriptorParser.java:147)
    at com.sun.xml.ws.transport.http.servlet.WSServletCon textListener.contextInitialized(WSServletContextLi stener.java:124)
    ... 17 more

  • #2
    Please use [ code][/code ] tags when posting code/xml/stacktraces, that way they remain readable..

    Have you read your stacktrace?

    Code:
    ailed to parse runtime descriptor: javax.xml.transform.TransformerFactoryConfigurationError: 
    Provider com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl not found
    As you are using websphere I also assume you are using a IBM JDK which doesn't has this class. So something is forcing you to use the sun implementation. I think you have included some XML apis/parsers in your application which is causing trouble on WebSphere.

    Comment


    • #3
      right, we need to know more details:
      - websphere version
      - java version (and whether it's Oracle, IBM, JRockit, etc.)

      From stacktrace, I also think it's something related to the XML parser api. Perhaps using the endorsed mechanism for xalan could resolve the issue.

      Comment


      • #4
        yes I am using websphere and IBM JDk.
        websphere version 6.1
        java version 1.5

        Comment


        • #5
          Originally posted by rishirai View Post
          yes I am using websphere and IBM JDk.
          websphere version 6.1
          java version 1.5
          I guess you're using the JDK that comes with WAS, so let's do the next:
          1 - Download latest Xalan libraries from here.
          2 - drop xercesImpl.jar, xml-apis.jar and xalan.jar into WAS_HOME/AppServer/java/jre/lib/endorsed directory. If the endorsed directory does not exist, create it.

          Start the server and let's see if that helps.

          Best,
          Carlos.

          Comment


          • #6
            I created endorsed directory and copied all jar files required. Now I am getting below error.

            Code:
            [6/1/12 16:45:33:734 IST] 00000012 WebApp        E   Exception caught while initializing context 
            org.springframework.beans.factory.access.BootstrapException: Unable to return specified BeanFactory instance: factory key [ear.context], from group with resource name [classpath*:beanRefContext.xml]; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'ear.context' is defined
            	at org.springframework.beans.factory.access.SingletonBeanFactoryLocator.useBeanFactory(SingletonBeanFactoryLocator.java:409)
            	at org.springframework.web.context.ContextLoader.loadParentContext(ContextLoader.java:358)
            	at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:193)
            	at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:47)
            	at com.fmr.commons.webservices.config.StartupListener.contextInitialized(StartupListener.java:39)
            	at com.ibm.ws.wswebcontainer.webapp.WebApp.notifyServletContextCreated(WebApp.java:641)
            	at com.ibm.ws.webcontainer.webapp.WebApp.commonInitializationFinish(WebApp.java:298)
            	at com.ibm.ws.wswebcontainer.webapp.WebApp.initialize(WebApp.java:289)
            	at com.ibm.ws.wswebcontainer.webapp.WebGroup.addWebApplication(WebGroup.java:90)
            	at com.ibm.ws.wswebcontainer.VirtualHost.addWebApplication(VirtualHost.java:157)
            	at com.ibm.ws.wswebcontainer.WebContainer.addWebApp(WebContainer.java:665)
            	at com.ibm.ws.wswebcontainer.WebContainer.addWebApplication(WebContainer.java:618)
            	at com.ibm.ws.webcontainer.component.WebContainerImpl.install(WebContainerImpl.java:335)
            	at com.ibm.ws.webcontainer.component.WebContainerImpl.start(WebContainerImpl.java:551)
            	at com.ibm.ws.runtime.component.ApplicationMgrImpl.start(ApplicationMgrImpl.java:1301)
            	at com.ibm.ws.runtime.component.DeployedApplicationImpl.fireDeployedObjectStart(DeployedApplicationImpl.java:1138)
            	at com.ibm.ws.runtime.component.DeployedModuleImpl.start(DeployedModuleImpl.java:569)
            	at com.ibm.ws.runtime.component.DeployedApplicationImpl.start(DeployedApplicationImpl.java:817)
            	at com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplication(ApplicationMgrImpl.java:950)
            	at com.ibm.ws.runtime.component.ApplicationMgrImpl$AppInitializer.run(ApplicationMgrImpl.java:2120)
            	at com.ibm.wsspi.runtime.component.WsComponentImpl$_AsynchInitializer.run(WsComponentImpl.java:342)
            	at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1469)
            Caused by: org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'ear.context' is defined
            	at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanDefinition(DefaultListableBeanFactory.java:521)
            	at org.springframework.beans.factory.support.AbstractBeanFactory.getMergedLocalBeanDefinition(AbstractBeanFactory.java:1068)
            	at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:274)
            	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194)
            	at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:1079)
            	at org.springframework.beans.factory.access.SingletonBeanFactoryLocator.useBeanFactory(SingletonBeanFactoryLocator.java:397)
            	... 21 more

            Comment


            • #7
              Could you please to post here your web.xml?

              Comment


              • #8
                Code:
                <?xml version="1.0" encoding="UTF-8"?>
                <web-app id="WebApp"
                	version="2.4" 
                	xmlns="http://java.sun.com/xml/ns/j2ee" 
                	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
                	xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
                
                	<!-- Required for AsyncAppender to ensure Log4J is initialized on J2EE thread	-->
                	<context-param>
                		<param-name>log4jConfigLocation</param-name>
                		<param-value>/WEB-INF/log4j.xml</param-value>
                	</context-param>
                
                	<context-param>
                		<param-name>log4jExposeWebAppRoot</param-name>
                		<param-value>false</param-value>
                	</context-param>
                
                	<listener>
                		<listener-class>org.springframework.web.util.Log4jConfigListener</listener-class>
                	</listener>
                
                	<!-- Spring config locations -->
                	<context-param>
                		<description>spring parent/child relationship link</description>
                		<param-name>parentContextKey</param-name>
                		<param-value>ear.context</param-value>
                	</context-param>
                
                	<context-param>
                		<description>Web Application root</description>
                		<param-name>webAppRootKey</param-name>
                		<param-value>wi--------.root</param-value>
                	</context-param>
                
                	<!-- Service  Startup Listener -->
                	<listener>
                		<display-name>ServiceEdgeStartupListener</display-name>
                		<listener-class>com.###.fesco.commons.webservices.util.jaxws.ServiceEdgeStartupListener</listener-class>
                	</listener>
                
                	<listener>
                		<display-name>StartupListener</display-name>
                		<listener-class>com.###.commons.webservices.config.StartupListener</listener-class>
                	</listener>
                
                	<listener>
                		<display-name>WSServletContextListener</display-name>
                		<listener-class>com.sun.xml.ws.transport.http.servlet.WSServletContextListener</listener-class>
                	</listener>
                
                	<!-- Servlets -->
                	
                
                	
                	<servlet>
                		<servlet-name>BindingImpl</servlet-name>
                		<servlet-class>
                			com.sun.xml.ws.transport.http.servlet.WSServlet
                		</servlet-class>
                		<load-on-startup>1</load-on-startup>
                	</servlet>
                
                	<servlet-mapping>
                		<servlet-name>BindingImpl</servlet-name>
                		<url-pattern>/services/######_2012_11</url-pattern>
                	</servlet-mapping>
                
                
                </web-app>

                Comment


                • #9
                  I think you're missing this in your web.xml:
                  Code:
                      <context-param>
                          <param-name>classpaht:locatorFactorySelector</param-name>
                          <param-value>beanRefContext.xml</param-value>
                      </context-param
                  Then, you need the beanRefFactory.xml:
                  Code:
                  <beans>
                      <bean id="ear.context" class="org.springframework.context.support.ClassPathXmlApplicationContext">
                          <constructor-arg>
                             <list>
                                  <value>your-application-context.xml</value>
                             </list>
                          </constructor-arg>
                      </bean>
                  </beans>
                  Note 1: change "your-application-context.xml" by the real file name.
                  Note 2: instead of ear.context, you could use something like beaRefFactory. It's just a name.

                  Comment


                  • #10
                    I made the changes, still i am getting beloe error msg.

                    Code:
                    file C:\RAD7\IBM\SDP70\runtimes\base_v61\profiles\wi-dc-balances\logs\ffdc\server1_00000014_12.06.05_18.08.33_0.txt
                    [6/5/12 18:08:33:981 IST] 00000014 WebApp        E   Exception caught while initializing context 
                    org.springframework.beans.factory.access.BootstrapException: Unable to return specified BeanFactory instance: factory key [beanRefFactory], from group with resource name [classpath*:beanRefContext.xml]; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'beanRefFactory' is defined
                    	at org.springframework.beans.factory.access.SingletonBeanFactoryLocator.useBeanFactory(SingletonBeanFactoryLocator.java:409)
                    	at org.springframework.web.context.ContextLoader.loadParentContext(ContextLoader.java:358)
                    	at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:193)
                    	at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:47)
                    	at com.fmr.commons.webservices.config.StartupListener.contextInitialized(StartupListener.java:39)
                    	at com.ibm.ws.wswebcontainer.webapp.WebApp.notifyServletContextCreated(WebApp.java:645)
                    	at com.ibm.ws.webcontainer.webapp.WebApp.commonInitializationFinish(WebApp.java:319)
                    	at com.ibm.ws.wswebcontainer.webapp.WebApp.initialize(WebApp.java:290)
                    	at com.ibm.ws.wswebcontainer.webapp.WebGroup.addWebApplication(WebGroup.java:90)
                    	at com.ibm.ws.wswebcontainer.VirtualHost.addWebApplication(VirtualHost.java:157)
                    	at com.ibm.ws.wswebcontainer.WebContainer.addWebApp(WebContainer.java:665)
                    	at com.ibm.ws.wswebcontainer.WebContainer.addWebApplication(WebContainer.java:618)
                    	at com.ibm.ws.webcontainer.component.WebContainerImpl.install(WebContainerImpl.java:335)
                    	at com.ibm.ws.webcontainer.component.WebContainerImpl.start(WebContainerImpl.java:551)
                    	at com.ibm.ws.runtime.component.ApplicationMgrImpl.start(ApplicationMgrImpl.java:1303)
                    	at com.ibm.ws.runtime.component.DeployedApplicationImpl.fireDeployedObjectStart(DeployedApplicationImpl.java:1138)
                    	at com.ibm.ws.runtime.component.DeployedModuleImpl.start(DeployedModuleImpl.java:569)
                    	at com.ibm.ws.runtime.component.DeployedApplicationImpl.start(DeployedApplicationImpl.java:817)
                    	at com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplication(ApplicationMgrImpl.java:949)
                    	at com.ibm.ws.runtime.component.ApplicationMgrImpl$AppInitializer.run(ApplicationMgrImpl.java:2122)
                    	at com.ibm.wsspi.runtime.component.WsComponentImpl$_AsynchInitializer.run(WsComponentImpl.java:342)
                    	at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1473)
                    Caused by: org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'beanRefFactory' is defined
                    	at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanDefinition(DefaultListableBeanFactory.java:521)
                    	at org.springframework.beans.factory.support.AbstractBeanFactory.getMergedLocalBeanDefinition(AbstractBeanFactory.java:1068)
                    	at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:274)
                    	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194)
                    	at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:1079)
                    	at org.springframework.beans.factory.access.SingletonBeanFactoryLocator.useBeanFactory(SingletonBeanFactoryLocator.java:397)
                    	... 21 more
                    
                    [6/5/12 18:08:33:996 IST] 00000014 http          I   WSSERVLET12: JAX-WS context listener initializing
                    [6/5/12 18:08:34:778 IST] 00000014 http          E   WSSERVLET11: failed to parse runtime descriptor: java.lang.ExceptionInInitializerError
                                                     java.lang.ExceptionInInitializerError
                    	at java.lang.J9VMInternals.initialize(J9VMInternals.java:195)
                    	at com.fmr.fesco.commons.webservices.edge.jaxws.FESCoStandardServiceHandler.<init>(FESCoStandardServiceHandler.java:55)
                    	at java.lang.Class.newInstanceImpl(Native Method)
                    	at java.lang.Class.newInstance(Class.java:1263)
                    	at com.sun.xml.ws.handler.HandlerChainsModel.parseHandlerFile(HandlerChainsModel.java:252)
                    	at com.sun.xml.ws.util.HandlerAnnotationProcessor.buildHandlerInfo(HandlerAnnotationProcessor.java:105)
                    	at com.sun.xml.ws.server.EndpointFactory.processHandlerAnnotation(EndpointFactory.java:214)
                    	at com.sun.xml.ws.server.EndpointFactory.createEndpoint(EndpointFactory.java:174)
                    	at com.sun.xml.ws.api.server.WSEndpoint.create(WSEndpoint.java:318)
                    	at com.sun.xml.ws.api.server.WSEndpoint.create(WSEndpoint.java:337)
                    	at com.sun.xml.ws.transport.http.DeploymentDescriptorParser.parseAdapters(DeploymentDescriptorParser.java:239)
                    	at com.sun.xml.ws.transport.http.DeploymentDescriptorParser.parse(DeploymentDescriptorParser.java:131)
                    	at com.sun.xml.ws.transport.http.servlet.WSServletContextListener.contextInitialized(WSServletContextListener.java:90)
                    	at com.ibm.ws.wswebcontainer.webapp.WebApp.notifyServletContextCreated(WebApp.java:645)
                    	at com.ibm.ws.webcontainer.webapp.WebApp.commonInitializationFinish(WebApp.java:319)
                    	at com.ibm.ws.wswebcontainer.webapp.WebApp.initialize(WebApp.java:290)
                    	at com.ibm.ws.wswebcontainer.webapp.WebGroup.addWebApplication(WebGroup.java:90)
                    	at com.ibm.ws.wswebcontainer.VirtualHost.addWebApplication(VirtualHost.java:157)
                    	at com.ibm.ws.wswebcontainer.WebContainer.addWebApp(WebContainer.java:665)
                    	at com.ibm.ws.wswebcontainer.WebContainer.addWebApplication(WebContainer.java:618)
                    	at com.ibm.ws.webcontainer.component.WebContainerImpl.install(WebContainerImpl.java:335)
                    	at com.ibm.ws.webcontainer.component.WebContainerImpl.start(WebContainerImpl.java:551)
                    	at com.ibm.ws.runtime.component.ApplicationMgrImpl.start(ApplicationMgrImpl.java:1303)
                    	at com.ibm.ws.runtime.component.DeployedApplicationImpl.fireDeployedObjectStart(DeployedApplicationImpl.java:1138)
                    	at com.ibm.ws.runtime.component.DeployedModuleImpl.start(DeployedModuleImpl.java:569)
                    	at com.ibm.ws.runtime.component.DeployedApplicationImpl.start(DeployedApplicationImpl.java:817)
                    	at com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplication(ApplicationMgrImpl.java:949)
                    	at com.ibm.ws.runtime.component.ApplicationMgrImpl$AppInitializer.run(ApplicationMgrImpl.java:2122)
                    	at com.ibm.wsspi.runtime.component.WsComponentImpl$_AsynchInitializer.run(WsComponentImpl.java:342)
                    	at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1473)
                    Caused by: org.springframework.beans.factory.access.BootstrapException: Unable to return specified BeanFactory instance: factory key [ear.context], from group with resource name [classpath*:beanRefContext.xml]; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'ear.context' is defined
                    	at org.springframework.beans.factory.access.SingletonBeanFactoryLocator.useBeanFactory(SingletonBeanFactoryLocator.java:409)
                    	at com.fmr.fesco.commons.webservices.util.jaxws.WebServiceHelper.<clinit>(WebServiceHelper.java:53)
                    	at java.lang.J9VMInternals.initializeImpl(Native Method)
                    	at java.lang.J9VMInternals.initialize(J9VMInternals.java:177)
                    	... 29 more
                    Caused by: org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'ear.context' is defined
                    	at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanDefinition(DefaultListableBeanFactory.java:521)
                    	at org.springframework.beans.factory.support.AbstractBeanFactory.getMergedLocalBeanDefinition(AbstractBeanFactory.java:1068)
                    	at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:274)
                    	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194)
                    	at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:1079)
                    	at org.springframework.beans.factory.access.SingletonBeanFactoryLocator.useBeanFactory(SingletonBeanFactoryLocator.java:397)
                    	... 32 more

                    Comment


                    • #11
                      i added below lines to my web.xml

                      Code:
                      <context-param>
                      	<param-name>classpaht:locatorFactorySelector</param-name>
                          <param-value>beanRefContext.xml</param-value>
                          </context-param>
                      	
                      	<context-param>
                      		<description>spring parent/child relationship link</description>
                      		<param-name>parentContextKey</param-name>
                      		<param-value>beanRefFactory</param-value>
                      	</context-param>

                      and my beanRefContext.xml is
                      Code:
                      <beans>
                          <bean id="beanRefFactory" class="org.springframework.context.support.ClassPathXmlApplicationContext">
                              <constructor-arg>
                                 <list>
                                      <value>applicationContext.xml</value>
                                 </list>
                              </constructor-arg>
                          </bean>
                      </beans>

                      Comment


                      • #12
                        Please let me know if you need more information.

                        I am just wondering if I need to install any extra pack or feature for my WAS version 6.1.0.21 for JAX-WS applications, Please clarify.

                        Comment


                        • #13
                          No you don't... At leat the problem you have isn't related to that. It simply is a misconfiguration of your application. You seem to be using an ear and it might be a classloading problem. Add the jars to the ear instead of the WEB-INF/lib directory and add the needed jars to the classpath element in the meta-inf file.

                          Comment


                          • #14
                            Originally posted by rishirai View Post
                            i added below lines to my web.xml

                            Code:
                            <context-param>
                            	<param-name>classpaht:locatorFactorySelector</param-name>
                                <param-value>beanRefContext.xml</param-value>
                                </context-param>
                            	
                            	<context-param>
                            		<description>spring parent/child relationship link</description>
                            		<param-name>parentContextKey</param-name>
                            		<param-value>beanRefFactory</param-value>
                            	</context-param>

                            and my beanRefContext.xml is
                            Code:
                            <beans>
                                <bean id="beanRefFactory" class="org.springframework.context.support.ClassPathXmlApplicationContext">
                                    <constructor-arg>
                                       <list>
                                            <value>applicationContext.xml</value>
                                       </list>
                                    </constructor-arg>
                                </bean>
                            </beans>
                            I think your problem is here:
                            Code:
                            	<param-name>classpaht:locatorFactorySelector</param-name>
                            Put "locatorFactorySelector" only (without the quotes).

                            Best,
                            Carlos.

                            Comment


                            • #15
                              Originally posted by Marten Deinum View Post
                              No you don't... At leat the problem you have isn't related to that. It simply is a misconfiguration of your application. You seem to be using an ear and it might be a classloading problem. Add the jars to the ear instead of the WEB-INF/lib directory and add the needed jars to the classpath element in the meta-inf file.

                              Yes I am using ear and all my jar files are in ear. meta-inf file is have all the path to jar files.

                              Comment

                              Working...
                              X