将web应用部署在tomcat中报一下异常
Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListener
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'studentService' defined in class path resource [applicationContext.xml]: Initialization of bean failed; nested e
xception is org.springframework.beans.TypeMismatchException: Failed to convert property value of type 'java.lang.String' to required type 'java.lang.Class' for property 'businessInterface'; nested exc
eption is java.lang.IllegalArgumentException: Cannot find class [student.service.StudentServiceRemote]
在applicationContext.xml中配置ejb出现找不到ejb项目中的类的错误
ejb项目配置在jboss中,
配置ejb代理对象如下
<bean id="studentService"
class="org.springframework.ejb.access.SimpleRemoteStatelessSessionProxyFactoryBean">
<property name="jndiName" value="StudentService/remote"></property>
<property name="businessInterface"  value="student.service.StudentServiceRemote"></property>
<property name="jndiEnvironment">
<props>
<prop key="java.naming.provider.url">jnp://localhost</prop>
<prop key="java.naming.factory.initial">org.jnp.interfaces.NamingContextFactory</prop>
</props>
</property>
</bean>
如果将web项目和ejb项目都配置在jboss中,运行完全正常,没有异常出现,希望大家帮个忙,在线等,,,