试了下,action不可用,会报上面的错误, Unable to instantiate Action, 包名.LoginAction, defined for 'mobileLogin' in namespace '/'Error creating bean with name '包名.LoginAction': Initialization of bean failed; nested exception is java.lang.NoClassDefFoundError: javax/ejb/EJBObject
试了下,action不可用,会报上面的错误, Unable to instantiate Action, 包名.LoginAction, defined for 'mobileLogin' in namespace '/'Error creating bean with name '包名.LoginAction': Initialization of bean failed; nested exception is java.lang.NoClassDefFoundError: javax/ejb/EJBObject 那就是路径搞错了,仔细查查,肯定是workspace的问题
Unable to instantiate Action, 包名.LoginAction, defined for 'mobileLogin' in namespace '/'Error creating bean with name '包名.LoginAction': Initialization of bean failed; nested exception is java.lang.NoClassDefFoundError: javax/ejb/EJBObject
Unable to instantiate Action, 包名.LoginAction, defined for 'mobileLogin' in namespace '/'Error creating bean with name '包名.LoginAction': Initialization of bean failed; nested exception is java.lang.NoClassDefFoundError: javax/ejb/EJBObject
那就是路径搞错了,仔细查查,肯定是workspace的问题
还有你struts2的命名空间配置就知道了
解决了,是jetty启动配置出现了问题,对maven不熟悉啊!谢谢大家!