Bug 35305 - Check Xalan libraries during install/boot
Summary: Check Xalan libraries during install/boot
Alias: None
Product: Lenya
Classification: Unclassified
Component: Miscellaneous (show other bugs)
Version: unspecified
Hardware: All All
: P2 enhancement
Target Milestone: 2.0.1
Assignee: Lenya Developers
Depends on:
Reported: 2005-06-10 03:36 UTC by solprovider
Modified: 2010-07-21 11:15 UTC (History)
0 users


Note You need to log in before you can comment on or make changes to this bug.
Description solprovider 2005-06-10 03:36:58 UTC
Having multiple Xalan libraries is a common source of problems.  Check either
during the installation, during the first load of Lenya, or during every load of
Lenya (recommended if process is fast).  Pseudocode would be something like:

classpath = Get CLASSPATH;
pathList = Parse classpath;
For every path in pathList: XalanList = GetFiles({path} + {OS Directory
Separator} + "xalan*.jar")
(XalanList should be structure XalanVersion = XalanPath, so each version appears
once.  HashMap?)
If XalanList.length = 0:
   Message "No Xalan found.  Lenya will not work."
Else If XalanList.length > 1:
   Message "There are more than one version of Xalan.  This causes problems with
Lenya.  These versions were found:"
   Message XalanList values for paths (one per line).
Else (XalanList.length = 1):
   If Xalan is at least minimum for this version of Lenya:
      Message "Using xalan-{version).  This is good."
       Message "Using xalan-{version}.  Lenya may have problems.  Please upgrade
Xalan to at least xalan-{requiredVersion}."
   End If
End If
Comment 1 Florent ANDRE 2010-07-21 11:15:51 UTC
More than 3 years with no activity. 

Reopen this bug if your are still facing this.