I have a noobish question. Probably a silly one.
I have a static html page; that I want to deploy with my existing app on jboss.
I put my static page xyz.html in my xyz-app.war folder in jboss.
I restarted the jboss and tried to hit
http://localhost:8080/xyz-app/xyz.html
it doesn’t come up as the control goes to Ruby Routes controller. I am running Rails code (JRUBY) and Java both togather.
How can I bypass route lookup and show the page? It currently says no route found for xyz.html.
Your application’s
web.xmlmust have aurl-patternset up which catches thexyz.htmlrequest. You need to refine thaturl-pattern, making sure it only catches requests you want to go to jruby. Any request that comes in which isn’t caught by aurl-patternwill be served as a static file.