[jboss-dev-forums] [Design of JBoss Profiler] - Current Web app broken due to xhtml filename case issue
rhills
do-not-reply at jboss.com
Mon Nov 24 19:49:09 EST 2008
I checked out the latest JBoss Profiler 2 source from http://anonsvn.jboss.org/repos/jbossprofiler/branches/JBossProfiler2 and then built the Web Application:
ant web
I deployed the resulting jboss-profiler.war file to my jboss-as/server/default/deploy directory.
When I accessed the Web app via http://localhost:8080/jboss-profiler, it redirected to http://localhost:8080/jboss-profiler/listsnapshot.faces and returned a 404.
I looked into the source xhtml files to try and find the problem and discovered that while all the xhtml filenames were all lower case, references to them are all camel case. For example, in www/template/head.xhtml, the following lines appear:
<ui:include src="/addClassPanel.xhtml"></ui:include>
| <ui:include src="/removeClassPanel.xhtml"></ui:include>
| , but the files they refer to are named addclasspanel.xhtml and removeclasspanel.xhtml respectively.
I then renamed the relevant xhtml files using camel case and rebuilt the war file (using "ant web" again) and the web application now works correctly.
Should the source files be renamed, or else the references be updated to match their names? I can submit a JIRA for this if required and/or submit the changes required if I can have commit rights to the SVN repository.
Cheers,
Rob Hills
Waikiki, Western Australia
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4191938#4191938
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4191938
More information about the jboss-dev-forums
mailing list