Ticket #140 (closed defect: fixed)
Unable to locate themes under Linux
Description
From http://bugzilla.millstone.org/show_bug.cgi?id=659
Is this really still true?
Line 409 in org.millstone.webadapter.WebAdapterServlet#getThemeSources?() causes the Servlet to look for themes under directory paths that start with /WEB-INF/lib/themes (for example in /WEB-INF/lib/themes/gogame):
File sourceFile = new File(source);
Under Windows this works fine but under Linux the servlet isn't able to find the directories because they doesn't exist (the search starts at the root of the filesystem).
I fixed the problem by adding
sourceFile = new File(this.getServletContext().getResource (source).toExternalForm());
at line 412 as the first statement in the try block.
I tested this solution with JBoss 3.2.3 under Windows and SuseLinux? 8.1.
