[jboss-user] [JBoss Seam] - java.lang.RuntimeException: Could not create Component: org.

tiwaryamit do-not-reply at jboss.com
Wed Apr 4 11:29:18 EDT 2007


PLEASE HELP.
Hey Geeks;
 Pls help. This is the first day with Seam and I ran into this problem. I am trying to use Spring with Seam. I get the above exception. The root cause is

Caused by: java.lang.IllegalArgumentException: no such setter method: org.jboss.seam.ioc.spring.ContextLoader.contextLocations
	at org.jboss.seam.util.Reflections.getSetterMethod(Reflections.java:219)
	at org.jboss.seam.Component.initInitializers(Component.java:401)
	at org.jboss.seam.Component.(Component.java:263)
	at org.jboss.seam.Component.(Component.java:203)
	at org.jboss.seam.init.Initialization.addComponent(Initialization.java:851)
	... 138 more

What could be the reason for this? I am pasting below the components.xml too.

<?xml version="1.0" encoding="UTF-8"?>
<components xmlns="http://jboss.com/products/seam/components"
            xmlns:core="http://jboss.com/products/seam/core"
            xmlns:spring="http://jboss.com/products/seam/spring"            
            xmlns:security="http://jboss.com/products/seam/security"
            xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
            xsi:schemaLocation=
                "http://jboss.com/products/seam/components http://jboss.com/products/seam/components-1.2.xsd
                 http://jboss.com/products/seam/core http://jboss.com/products/seam/core-1.2.xsd
                 http://jboss.com/products/seam/spring http://jboss.com/products/seam/spring-1.2.xsd
                 http://jboss.com/products/seam/security http://jboss.com/products/seam/security-1.2.xsd">

    
        true
    

    <!-- 120 second conversation timeout -->
    
        120000
    
    
    <!-- Bootstrap Hibernate -->
    <component name="preveaDB" 
        auto-create="true"
              class="org.jboss.seam.core.ManagedHibernateSession"/>
              
    
              
    
           
    <spring:context-loader context-locations="/WEB-INF/applicationContext.xml"/>

    <security:identity authenticate-method="#{authenticator.authenticate}"/>           
    





View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4034653#4034653

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4034653



More information about the jboss-user mailing list