Ticket #140 (closed defect: fixed)

Opened 2 years ago

Last modified 22 months ago

Unable to locate themes under Linux

Reported by: Joonas Lehtinen Owned by: Marc Englund
Priority: undefined Milestone:
Component: undefined Version:
Keywords: Cc:
Known Issue description:
Hours estimate: Deadline (dd.mm.yyyy):
Known Issue version (since): Known Issue title:
Hours done: Depends to:
Affects documentation: no
Known Issue workaround:
Affects release notes: Contract:

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.

Change History

Changed 22 months ago by Jani Laakso

  • status changed from new to closed
  • resolution set to fixed
  • affects_documentation unset

I have verified that this is not an issue on Linux platform.

Tomcat 5.5.20 and Tomcat 6 (beta) used.

Note: See TracTickets for help on using tickets.