Hi,
I have some problems when I try to use the tapestry-acegi.jar. My Jboss
server starts up fine without any exceptions, but as soon as I try to access
my application I get this exception:

11:07:48,750 ERROR [[/]] mycompany: ServletException
javax.servlet.ServletException: Unable to construct service
tapestry.acegi.ExceptionTranslationFilter: Error building se
rvice tapestry.acegi.ExceptionTranslationFilter: Could not load class
com.javaforge.tapestry.acegi.filter.ExceptionTrans
lationFilter from WebappClassLoader
  delegate: false
  repositories:
----------> Parent Classloader:
[EMAIL PROTECTED]
: com/javaforge/hivemind/util/HiveMindService
        at
org.apache.tapestry.services.impl.WebRequestServicerPipelineBridge.service(WebRequestServicerPipelineBridge.j
ava:60)... 

the entire Exception is in the attached file 
http://www.nabble.com/file/6115/exception.txt exception.txt 

In out hivemodule.xml we have this code:
 <contribution configuration-id="hivemind.ApplicationDefaults">
        <default 
                symbol="hivemind.acegi.dao.passwordEncoder"
        
value="org.acegisecurity.providers.encoding.PlaintextPasswordEncoder"/>
        <default symbol="hivemind.acegi.dao.systemWideSalt" value="" />
    </contribution>

    <implementation service-id="hivemind.acegi.dao.UserDetailsService">
        <invoke-factory service-id="hivemind.lib.SpringLookupFactory">
                <lookup-bean name="jdbcDaoImpl" />
        </invoke-factory>
    </implementation>

    <contribution configuration-id="hivemind.acegi.AccessDecisionVoters">
        <voter object="instance:org.acegisecurity.vote.RoleVoter" />
    </contribution>

In our web.xml we have this:
        <servlet>
        <servlet-name>MyCompany</servlet-name>
       
<servlet-class>org.apache.tapestry.ApplicationServlet</servlet-class>
        <load-on-startup>0</load-on-startup>
        </servlet>

    <servlet-mapping>
        <servlet-name>MyCompany</servlet-name>
        <url-pattern>/index.html</url-pattern>
    </servlet-mapping>

    <servlet-mapping>
        <servlet-name>MyCompany</servlet-name>
        <url-pattern>*.html</url-pattern>
    </servlet-mapping>
    
    <servlet-mapping>
        <servlet-name>MyCompany</servlet-name>
        <url-pattern>*.direct</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
        <servlet-name>MyCompany</servlet-name>
        <url-pattern>*.sdirect</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
        <servlet-name>MyCompany</servlet-name>
        <url-pattern>*.svc</url-pattern>
    </servlet-mapping>

In our spring applicationContext.xml we have:

   <bean id="jdbcDaoImpl"
class="org.acegisecurity.userdetails.jdbc.JdbcDaoImpl">
                <property name="dataSource">
                        <ref bean="dataSource"/>
                </property>
                <property name="usersByUsernameQuery">
                        <value>
                                SELECT user_name as username, user_password as 
password, enabled as
ENABLED  FROM app_user WHERE user_name=?
                        </value>
                </property>
                <property name="authoritiesByUsernameQuery">
                        <value>
                                SELECT user_name as username, user_role as 
authority FROM app_user_role
WHERE user_name=?
                        </value>
                </property>
   </bean>

We are using the folloing jar files for tapestry-ageci:
tapestry-acegi-0.1-20070126.164757-10.jar
hivemind-acegi-dao-0.1-20060608.022406-1.jar
hivemind-acegi-0.1-20060607.122705-3.jar

Does anybody know what we are doing wrong?

Thanks,
Jacob



-- 
View this message in context: 
http://www.nabble.com/Exception-when-trying-to-configure-tapestry-acegi.jar-tf3142373.html#a8709323
Sent from the Tapestry - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to