Besides the one in the WEB-INF/lib ... I am not using any other plugin. And
no, I don't have the JSF plugin because I am not using JSF in my project.

Here are xmls:

<beans xmlns="http://www.springframework.org/schema/beans";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";   
xmlns:aop="http://www.springframework.org/schema/aop";   
xmlns:tx="http://www.springframework.org/schema/tx";    xsi:schemaLocation="   
http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-2.0.xsd   
http://www.springframework.org/schema/tx
http://www.springframework.org/schema/tx/spring-tx-2.0.xsd   
http://www.springframework.org/schema/aop
http://www.springframework.org/schema/aop/spring-aop-2.0.xsd";>
    
    <bean
class="org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor"/>
    
    <bean id="userService" class="service.UserServiceImpl" />
    
    <bean id="entityManagerFactory"
class="org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean">
        <property name="dataSource" ref="dataSource" />
        <property name="jpaVendorAdapter">
            <bean
class="org.springframework.orm.jpa.vendor.HibernateJpaVendorAdapter">
                <property name="databasePlatform"
value="org.hibernate.dialect.DerbyDialect"/>
                <property name="generateDdl" value="true"/>
                <property name="showSql" value="true"/>
            </bean>
        </property>
    </bean>
    
    <bean id="dataSource"
class="org.springframework.jdbc.datasource.DriverManagerDataSource">
        <property name="driverClassName"
value="org.apache.derby.jdbc.ClientDriver" />
        <property name="url"
value="jdbc:derby://localhost:1527/MyDbTest;create=true" />
        <property name="username" value="xxx" />
        <property name="password" value="xxx" />        
    </bean>    
    
    <bean id="transactionManager"
class="org.springframework.orm.jpa.JpaTransactionManager" >
        <property name="entityManagerFactory" ref="entityManagerFactory" />
    </bean>
    
    <tx:annotation-driven transaction-manager="transactionManager" />
    
    <bean id="userAction" class="action.userAction" scope="prototype">
        <constructor-arg ref="userService" />
    </bean>
</beans>

An the struts.xml

<struts>
<constant name="struts.action.extension" value="action" />
<constant name="struts.objectFactory" value="spring" />
<constant name="struts.devMode" value="true" />
 
<package name="PartyLive" extends="struts-default">
    
    <interceptors>
        
        <interceptor name="login" class="interceptors.LoginInterceptor" />
        
        <interceptor-stack name="defaultLoginStack">
            <interceptor-ref name="servlet-config" />
            <interceptor-ref name="params" />
            <interceptor-ref name="login" />
            <interceptor-ref name="chain" />
            <interceptor-ref name="model-driven" />
            <interceptor-ref name="fileUpload" />
            <interceptor-ref name="static-params" />
            <interceptor-ref name="params" />
            <interceptor-ref name="conversionError" />
            <interceptor-ref name="validation" />
            <interceptor-ref name="workflow" />
        </interceptor-stack>
        
        <interceptor-stack name="defaultInsecureStack">
            <interceptor-ref name="servlet-config" />
            <interceptor-ref name="params" />
            <interceptor-ref name="prepare" />
            <interceptor-ref name="chain" />
            <interceptor-ref name="model-driven" />
            <interceptor-ref name="fileUpload" />
            <interceptor-ref name="static-params" />
            <interceptor-ref name="params" />
            <interceptor-ref name="prepare" />
            <interceptor-ref name="conversionError" />
            <interceptor-ref name="validation" />
            <interceptor-ref name="workflow" />
        </interceptor-stack>
</interceptors> 
        <default-interceptor-ref name="defaultLoginStack" />
        
        <default-action-ref name="index" />
        
        <global-results>
            <result name="login">/WEB-INF/pages/Login.jsp</result>
            <result name="login-success">/WEB-INF/pages/Index.jsp</result>
        </global-results>
        
        <action name="index">
            <result name="input">/WEB-INF/pages/Index.jsp</result>
            <result name="success">/WEB-INF/pages/Index.jsp</result>
        </action>
        
       
</package>
</struts>

and the interceptor source:
package interceptors;

import com.opensymphony.xwork2.ActionContext;
import com.opensymphony.xwork2.ActionInvocation;
import com.opensymphony.xwork2.ValidationAware;
import com.opensymphony.xwork2.interceptor.AbstractInterceptor;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;
import org.apache.struts2.StrutsStatics;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import security.SecurityManager;

/**
 *
 * @author george.dadulescu
 */
public class LoginInterceptor extends AbstractInterceptor implements
StrutsStatics {
    private SecurityManager securityManager;
    private static final Log log =
LogFactory.getLog(LoginInterceptor.class);
    private static final String USER_HANDLE =
"PARTYLIVE_USER_SESSSION_HANDLE";
    private static final String LOGIN_ATTEMPT = "PARTYLIVE_LOGIN_ATTEMPT";
    private static final String USERNAME = "PARTYLIVE_USERNAME";
    private static final String PASSWORD = "PARTYLIVE_PASSWORD";
    
    public String intercept(ActionInvocation invocation) throws Exception {
        final ActionContext actioncontext =
invocation.getInvocationContext();
        HttpServletRequest request = (HttpServletRequest)
actioncontext.getContext();
        HttpSession session = request.getSession(true);
        
        //exista vreun obiect de tip user in HttpSession
        Object user = session.getAttribute(USER_HANDLE);
        if (user == null) {
            //nu este logat nici un user logat
            //oare a incercat sa se logheze acum ?
           
            String loginareInCurs = request.getParameter(LOGIN_ATTEMPT);
            if ((loginareInCurs!=null)&&(!loginareInCurs.equals(""))) {
                //s-a introdus un nume de user
                //procesam acest nume de user
                if (procesezIncercareDeLogin(request, session)) {
                    //userul s-a logat cu succes
                    return "login-success";
                } else
                {
                    //loginul nu a reusit
                    Object action = invocation.getAction();
                    if (action instanceof ValidationAware) {
                       
((ValidationAware)action).addActionError("Username-ul sau parola nu sunt
introduse corect!");
                    }
                }
            }
           
            //incercarea nu a reusit sau userul nu a incercat sa se
loghineze ... trimitem la loghinare
            return "login";
        } else {
            //avem un user logat in sesiune
            return invocation.invoke();            
        }
    }
    
    private boolean procesezIncercareDeLogin(HttpServletRequest request,
HttpSession session) {
        //luam din request userul si parola introduse
        String username = request.getParameter(USERNAME);
        String password = request.getParameter(PASSWORD);
        
        //le prelucram folosind SecurityManagerul din dotare
        //si presupunem ca s-a logat corect     
        Object user = securityManager.login(username, password);
        session.setAttribute(USER_HANDLE,user);
        return true;
    }
    
        public void setSecurityManager (SecurityManager in) {
                log.debug ("Setting security manager using: " + in.toString () 
);
                this.securityManager = in;
        }

Thanks in advance.



newton.dave wrote:
> 
> What plugin libs are you using vs. having in
> WEB-INF/lib? For example, do you have the JSF plugin?
> 
> d.
> 
> --- GEDA <[EMAIL PROTECTED]> wrote:
> 
>> 
>> 
>> 
>> cilquirm wrote:
>> > 
>> > 
>> > Did you see what happens when you take out the
>> interceptor?
>> > 
>> > As I see it, you should still be getting this
>> error ( since I postulate
>> > they are unrelated :) )
>> > 
>> > I am sure they are unrelated ... 
>> > I will try to rule it out from the struts.xml file
>> > 
>> > If not, then this indeed is a mystery.
>> > 
>> > Do you know if there are any libraries of struts
>> or spring that could
>> > generate such claim of class ? Maybe I loaded in
>> the project too much
>> > unneeded libraries.
>> > 
>> > 
>> > GEDA wrote:
>> >> 
>> >> Thanks anyway for your answer. 
>> >> I have to say there are a great bunch of good
>> guys on this forum.
>> >> The thing is that I am not using intentionally
>> the JSF framewrok. I just
>> >> added an interceptor to the application. What is
>> the problem here ?
>> >> 
>> >> 
>> >> 
>> >> cilquirm wrote:
>> >>> 
>> >>> This is most probably not related to Struts.
>> >>> 
>> >>> I can't claim to know the intrinsics of your
>> setup but it looks like
>> >>> you're missing some jars need for JSF.
>> >>> It might be that you're running an older version
>> of the J2EE stack.
>> >>> 
>> >>> javax.el.ExpressionFactory comes with J2EE 5,
>> and is part of JSF 1.2
>> >>> 
>> >>> 
>> >>> 
>> >>> GEDA wrote:
>> >>>> 
>> >>>> Hi. I created an interceptor which extends
>> AbstractInterceptor and
>> >>>> implements StrutsStatics. Also I added it in
>> the applicationcontext.xml
>> >>>> of the Spring framework. My problem is the
>> following and I don't know
>> >>>> where to get the missing class:
>> >>>> 
>> >>>> Jun 20, 2007 2:32:16 PM
>> org.apache.catalina.core.StandardContext
>> >>>> listenerStart
>> >>>> SEVERE: Error configuring application listener
>> of class
>> >>>> com.sun.faces.config.GlassFishConfigureListener
>> >>>> java.lang.NoClassDefFoundError:
>> javax/el/ExpressionFactory
>> >>>>         at
>> java.lang.Class.getDeclaredConstructors0(Native
>> Method)
>> >>>>         at
>> >>>>
>>
> java.lang.Class.privateGetDeclaredConstructors(Class.java:2389)
>> >>>>         at
>> java.lang.Class.getConstructor0(Class.java:2699)
>> >>>>         at
>> java.lang.Class.newInstance0(Class.java:326)
>> >>>>         at
>> java.lang.Class.newInstance(Class.java:308)
>> >>>>         at
>> >>>>
>>
> org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3678)
>> >>>>         at
>> >>>>
>>
> org.apache.catalina.core.StandardContext.start(StandardContext.java:4187)
>> >>>>         at
>> >>>>
>>
> org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759)
>> >>>>         at
>> >>>>
>>
> org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739)
>> >>>>         at
>> >>>>
>>
> org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524)
>> >>>>         at
>> >>>>
>>
> org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:608)
>> >>>>         at
>> >>>>
>>
> org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:535)
>> >>>>         at
>> >>>>
>>
> org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:470)
>> >>>>         at
>> >>>>
>>
> org.apache.catalina.startup.HostConfig.start(HostConfig.java:1122)
>> >>>>         at
>> >>>>
>>
> org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:310)
>> >>>>         at
>> >>>>
>>
> org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
>> >>>>         at
>> >>>>
>>
> org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1021)
>> >>>>         at
>> >>>>
>>
> org.apache.catalina.core.StandardHost.start(StandardHost.java:718)
>> >>>>         at
>> >>>>
>>
> org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1013)
>> >>>>         at
>> >>>>
>>
> org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442)
>> >>>>         at
>> >>>>
>>
> org.apache.catalina.core.StandardService.start(StandardService.java:450)
>> >>>>         at
>> >>>>
>>
> org.apache.catalina.core.StandardServer.start(StandardServer.java:709)
>> >>>>         at
>> >>>>
>>
> org.apache.catalina.startup.Catalina.start(Catalina.java:551)
>> >>>>         at
>> sun.reflect.NativeMethodAccessorImpl.invoke0(Native
>> Method)
>> >>>>         at
>> >>>>
>>
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>> >>>>         at
>> >>>>
>>
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>> >>>>         at
>> java.lang.reflect.Method.invoke(Method.java:597)
>> >>>>         at
>> >>>>
>>
> org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:294)
>> >>>>         at
>> >>>>
>>
> org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:432)
>> >>>> Jun 20, 2007 2:32:16 PM
>> org.apache.catalina.core.StandardContext
>> >>>> listenerStart
>> >>>> SEVERE: Skipped installing application
>> listeners due to previous
>> >>>> error(s)
>> >>>> Jun 20, 2007 2:32:18 PM
>> org.apache.catalina.core.ApplicationContext log
>> >>>> INFO: Initializing Spring root
>> WebApplicationContext
>> >>>> 
>> >>>> Thank you.
>> >>>> 
>> >>>> 
>> >>> 
>> >>> 
>> >> 
>> >> 
>> > 
>> > 
>> 
>> -- 
>> View this message in context:
>>
> http://www.nabble.com/javax.el.ExpressionFactory-tf3951985.html#a11221802
>> Sent from the Struts - User mailing list archive at
>> Nabble.com.
>> 
>> 
>>
> ---------------------------------------------------------------------
>> To unsubscribe, e-mail:
>> [EMAIL PROTECTED]
>> For additional commands, e-mail:
>> [EMAIL PROTECTED]
>> 
>> 
> 
> 
> 
>        
> ____________________________________________________________________________________
> Take the Internet to Go: Yahoo!Go puts the Internet in your pocket: mail,
> news, photos & more. 
> http://mobile.yahoo.com/go?refer=1GNXIC
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/javax.el.ExpressionFactory-tf3951985.html#a11227873
Sent from the Struts - User mailing list archive at Nabble.com.


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

Reply via email to