Open NiklasA opened 8 years ago
Hi,
I changed my web.xml to:
<filter>
<display-name>Stripes Filter</display-name>
<filter-name>StripesFilter</filter-name>
<filter-class>net.sourceforge.stripes.controller.StripesFilter</filter-class>
<init-param>
<param-name>ActionResolver.Packages</param-name>
<param-value>de.fom.skillDB.war.actionbeans</param-value>
</init-param>
</filter>
<filter>
<description>Dynamically maps URLs to ActionBeans.</description>
<display-name>Stripes Dynamic Mapping Filter</display-name>
<filter-name>DynamicMappingFilter</filter-name>
<filter-class>net.sourceforge.stripes.controller.DynamicMappingFilter</filter-class>
</filter>
<filter-mapping>
<filter-name>DynamicMappingFilter</filter-name>
<url-pattern>/*</url-pattern>
<dispatcher>REQUEST</dispatcher>
<dispatcher>FORWARD</dispatcher>
<dispatcher>INCLUDE</dispatcher>
</filter-mapping>
<filter-mapping>
<filter-name>StripesFilter</filter-name>
<url-pattern>*.jsp</url-pattern>
<dispatcher>REQUEST</dispatcher>
<dispatcher>FORWARD</dispatcher>
<dispatcher>INCLUDE</dispatcher>
</filter-mapping>
<filter-mapping>
<filter-name>StripesFilter</filter-name>
<servlet-name>StripesDispatcher</servlet-name>
<dispatcher>REQUEST</dispatcher>
<dispatcher>FORWARD</dispatcher>
<dispatcher>INCLUDE</dispatcher>
</filter-mapping>
<servlet>
<servlet-name>StripesDispatcher</servlet-name>
<servlet-class>net.sourceforge.stripes.controller.DispatcherServlet</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>StripesDispatcher</servlet-name>
<url-pattern>*.action</url-pattern>
</servlet-mapping>
But now I will getting all the time: Error 404: SRVE0295E: Error reported: 404, when I am trying to open the following site https://localhost/<ctx_root>/example/
.
Hi Niklas, were you able to get Stripes running on Websphere 8.5? If not, I can download it and give it a try to see if I can get it going.
-- Rick
We have a JIRA issue for this one I think :
Hi Rick,
no, I was not able to get Stripes running with a current IBM WebSphere Liberty version. I tested Stripes with serveral versions of WebSphere Application Server (8.5.5.4, .7 and .9).
@vankeisb: Yes, you could be right Bluemix uses a similar WebSphere Liberty version.
@rgrashel: Do you need any help to reproduce this issue? Then i would create a test project (Maven / EAR-File).
Thank you in advance. Niklas
That's a VFS issue. In short, Stripes has a pluggable way of scanning the classpath, called VFS. This allows to discover your @ActionBeans etc. (see ResolverUtil
). VFSs are provided for some ASs (Tomcat, JBoss, etc), but not all of them.
Unfortunately, we have no VFS for liberty.
@rgrashel I should be able to find the code that I wrote in order to leverage Servlet 3+ API class discovery. I think it should be checked in, in order to workaround issues like this one. It's much simpler than to write a VFS, and I still think it should be the standard, since it's built-in the Servlet spec. So if you have a servlet 3+ container, you should not be concerned about this VFS thing. VFS should be kept only for Mock testing IMHO.
Hi Niklas,
If you have an EAR file that you could provide, that would be hugely helpful. Thanks.
-- Rick
On Sun, Aug 21, 2016 at 5:46 AM, NiklasA notifications@github.com wrote:
Hi Rick,
no, I was not able to get Stripes running with a current IBM WebSphere Liberty version. I tested Stripes with serveral versions of WebSphere Application Server (8.5.5.4, .7 and .9).
@vankeisb https://github.com/vankeisb: Yes, you could be right Bluemix uses a similar WebSphere Liberty version.
@rgrashel https://github.com/rgrashel: Do you need any help to reproduce this issue? Then i would create a test project (Maven / EAR-File).
Thank you in advance. Niklas
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/StripesFramework/stripes/issues/57#issuecomment-241250595, or mute the thread https://github.com/notifications/unsubscribe-auth/AEv4H_liy-R1lOZMqW2dYsbyMnqS1w4_ks5qiCx9gaJpZM4IafIm .
Hi Rick,
sorry, for the late response. I uploaded a war file here: Link.
I used the following AppServer: WebSphere Liberty Profile
If you need further help, please let me know.
Niklas
Niklas,
I just installed the latest version of Liberty (16.0.0.3) with Java EE 7 Web Profile. Running on JDK1.8. I dropped your WAR right in the defaultServer/dropins directory and got no errors. I even pulled up the test helloworld page at http://localhost:9080/test.
Then, I went ahead and built the Stripes Examples WAR file from master and copied that into the defaultServer/dropins directory. That also deployed successfully. There are a couple of bugs because of relative pathing, but you can hit http://localhost:9080/stripes-examples/rockandroll/artists and get a JSON response from a RestActionBean.
Is there something I am not doing to duplicate the error you are getting?
-- Rick
Hi Rick,
sorry, the issue was that I could not call http(s)://localhost:9080/test/example/. But you gave me the right hint with the Stripes examples. I compared both web.xml files and I was able to get it running (Commit).
But I am wondering, because I'm pretty sure that I have tried the DynamicMappingFilter in same way earlier and it did not work. And in the log the warning is still thrown "[WARNING ] No MultipartWrapper implementation could be loaded".
That's why I looked again at the JIRA ticket, which @vankeisb has mentioned. And then I remembered that I used a Multi-Module Maven Project, where the WAR file includes the Stripes staff and was packaged to an EAR file. Perhaps the problem can only be reproduced in this way.
Niklas
Hi Rick,
because I could not reproduced the issue with a single WAR file, I have expanded my test project and created a Multiple Module Maven project. With it, I was able to reproduce the issue. Sorry that it takes so long and the ticket gets longer and longer...
Steps:
I hope you can use my test project to investigate the issue and I hope too that is not an issue of misconfiguration on my side and I wasted your time ;-).
Thank you in advance. Niklas
Hi,
I just included Stripes into my JEE application but every time I will get this error message during start up. I am using a WebSphere Application Server 8.5.5.X. I am searching for awhile now and I've heard that there are some troubles with IBM WebSphere in combination with the Stripes Framework. Is there anyone, who get a JEE application running in a similar combination or know what I have to consider?
Error Log:
Web.xml:
Server.xml(including all WebSphere features):
TestActionBean.java:
Thank you in advance! :+1: Niklas