[
http://www.stripesframework.org/jira/browse/STS-655?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Allen Petersen updated STS-655:
-------------------------------
Attachment: STS-655-jboss5x.patch
This (STS-655-jboss5x.patch) is what I'm using right now to run Stripes with
JBoss 5.x. The main change is updating the ResolverUtil to handle vfszip files
by reading it from the URL stream.
I also had to change the example build code to put the classes into a jar file
in WEB-INF/lib instead of directly in WEB-INF/classes. This is because this
fix only works with vfszip: jar files; it doesn't handle vfs files directly on
the filesystem. I didn't see a way to support that without using the JBoss VFS
API directly; even Hibernate(!!)'s similar code loading EJB3 persistence.xml
classes (which is fairly nice, by the way, if perhaps a bit over-engineered)
doesn't work with the WEB-INF/classes directory on JBoss 5.x. Still, that
should be a restriction that people can live with.
> Example .war does not work on JBoss 5
> -------------------------------------
>
> Key: STS-655
> URL: http://www.stripesframework.org/jira/browse/STS-655
> Project: Stripes
> Issue Type: Bug
> Affects Versions: Release 1.5
> Environment: MS Window XP, JDK 1.6, Jboss 5.0.0GA
> Reporter: Richard Tsang
> Priority: Critical
> Fix For: Release 1.6
>
> Attachments: server.zip, server.zip, STS-655-jboss5x.patch
>
>
> -Dropping the stripes-example.war (from stripes-1.5.zip) into JBoss 5.0.0GA
> (EG: jboss-5.0.0.GA\server\default\deploy)
> -Start up server and open stripes-examples
> (http://localhost:8080/stripes-examples)
> -Click the quick start link to the simple calculator
> -Enter two numbers and press the Add button
> Got the following stacktrace:
> net.sourceforge.stripes.exception.ActionBeanNotFoundException: Could not
> locate an ActionBean that is bound to the URL
> [/examples/quickstart/Calculator.action]. Commons reasons for this include
> mis-matched URLs and forgetting to implement ActionBean in your class.
> Registered ActionBeans are: {/controller/DefaultView.action=class
> net.sourceforge.stripes.controller.DefaultViewActionBean}
>
> net.sourceforge.stripes.controller.AnnotatedClassActionResolver.getActionBean(AnnotatedClassActionResolver.java:325)
>
> net.sourceforge.stripes.controller.NameBasedActionResolver.getActionBean(NameBasedActionResolver.java:264)
>
> net.sourceforge.stripes.controller.AnnotatedClassActionResolver.getActionBean(AnnotatedClassActionResolver.java:279)
>
> net.sourceforge.stripes.controller.DispatcherHelper$1.intercept(DispatcherHelper.java:106)
>
> net.sourceforge.stripes.controller.ExecutionContext.proceed(ExecutionContext.java:158)
>
> net.sourceforge.stripes.controller.BeforeAfterMethodInterceptor.intercept(BeforeAfterMethodInterceptor.java:113)
>
> net.sourceforge.stripes.controller.ExecutionContext.proceed(ExecutionContext.java:155)
>
> net.sourceforge.stripes.controller.ExecutionContext.wrap(ExecutionContext.java:74)
>
> net.sourceforge.stripes.controller.DispatcherHelper.resolveActionBean(DispatcherHelper.java:102)
>
> net.sourceforge.stripes.controller.DispatcherServlet.resolveActionBean(DispatcherServlet.java:245)
>
> net.sourceforge.stripes.controller.DispatcherServlet.doPost(DispatcherServlet.java:148)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
>
> net.sourceforge.stripes.controller.StripesFilter.doFilter(StripesFilter.java:246)
>
> org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
--
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
------------------------------------------------------------------------------
_______________________________________________
Stripes-development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-development