Hello,
I've been trying to use a SLSB from a Stripes ActionBean, but for some reason it doesn't work. Checking the JMX console, the SLSB looks correctly deployed, so I guess it's a matter of Spring configuration.
Code:<!-- Security service EJB --> <bean id="securityServiceEjb" class="org.springframework.jndi.JndiObjectFactoryBean"> <property name="jndiEnvironment"> <props> <prop key="java.naming.factory.initial"> org.jnp.interfaces.NamingContextFactory </prop> <prop key="java.naming.factory.url.pkgs"> org.jboss.naming:org.jnp.interfaces </prop> <prop key="java.naming.provider.url"> jnp://localhost:1099 </prop> </props> </property> <property name="jndiName" value="schlange-security/SecurityServiceEjb/local" /> <property name="proxyInterface" value="org.schlange.security.server.SecurityService" /> <property name="lookupOnStartup" value="false" /> </bean>I saw other posts concerning this issue, but I couldn't find out a way to get this issue solved yet.Code:20:36:45,062 INFO [STDOUT] ERROR 08:36:45 org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/mpc].[StripesDispatcher].error(L119) - Servlet.service() for servlet StripesDispatcher threw exception java.lang.IllegalArgumentException: object is not an instance of declaring class 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:585) at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:318) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:198) at $Proxy75.login(Unknown Source) at org.mpc.web.controller.user.LoginActionBean.confirm(LoginActionBean.java:56)
Can anybody give me a hand here, please?
Thanks in advance!


Reply With Quote
