Page 2 of 2 FirstFirst 12
Results 11 to 17 of 17

Thread: Error while starting websphere 6.0

  1. #11
    Join Date
    May 2012
    Posts
    10

    Default

    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>

  2. #12
    Join Date
    May 2012
    Posts
    10

    Default

    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.

  3. #13
    Join Date
    Jun 2006
    Location
    The Netherlands
    Posts
    13,632

    Default

    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.
    Marten Deinum
    Java Consultant / Pragmatist / Open Source Enthousiast / Author


    Pro Spring MVC: With Web Flow
    Conspect

    Have you read the reference guide.
    Use the [ code ] tags, young padawan

  4. #14

    Default

    Quote 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.

  5. #15
    Join Date
    May 2012
    Posts
    10

    Default

    Quote 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.

  6. #16
    Join Date
    May 2012
    Posts
    10

    Default

    [QUOTE=cmontemu;415080]I think your problem is here:
    Code:
    	<param-name>classpaht:locatorFactorySelector</param-name>
    Put "locatorFactorySelector" only (without the quotes).

    It didn't work, I am getting same result.

  7. #17
    Join Date
    May 2012
    Posts
    10

    Default

    can this problem be caused because, I have wto war files in one ear file. If this is the case how should my two web.xml look like?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •