web.xml example in quick start is not compatible with Glassfish 2 and
EJBInterceptor
------------------------------------------------------------------------------------
Key: STS-742
URL: http://www.stripesframework.org/jira/browse/STS-742
Project: Stripes
Issue Type: Bug
Components: Documentation, Examples
Affects Versions: Release 1.5.3
Environment: Sun Java System Application Server 9.1_02 (build b04-fcs)
EJBInterceptor = stripejb3-1.0.1.jar
Reporter: David Purpura
The quick start guides uses the following as an example web.xml file:
"<web-app xmlns="http://java.sun.com/xml/ns/j2ee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"
version="2.4">
"
However, with this xmlns (?) Glassfish reports the lookup exception:
Caused by: net.sourceforge.stripes.exception.StripesRuntimeException: Unable to
find an EJBBean with name [java:comp/env/bookmarkFacade] in the initial context.
at com.samaxes.stripejb3.EJBInterceptor.findEJB(EJBInterceptor.java:253)
at
com.samaxes.stripejb3.EJBInterceptor.intercept(EJBInterceptor.java:135)
... 40 more
StandardWrapperValve[StripesDispatcher]: PWC1406: Servlet.service() for servlet
StripesDispatcher threw exception
net.sourceforge.stripes.exception.StripesRuntimeException: Exception while
trying to lookup and inject a EJB bean into a bean of type PostActionBean using
field access on field private rest.controllers.BookmarkFacadeLocal
rest.action.PostActionBean.bookmarkFacade
at
com.samaxes.stripejb3.EJBInterceptor.intercept(EJBInterceptor.java:138)
at
net.sourceforge.stripes.controller.ExecutionContext.proceed(ExecutionContext.java:155).
Changing the header to the following, fixes the issue
<web-app version="2.5" xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://www.stripesframework.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Stripes-development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-development