You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by bu...@apache.org on 2001/11/27 16:48:40 UTC

DO NOT REPLY [Bug 5130] New: - Only SystemClassLoader is used.

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=5130>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=5130

Only SystemClassLoader is used.

           Summary: Only SystemClassLoader is used.
           Product: XalanJ2
           Version: CurrentCVS
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Enhancement
          Priority: Other
         Component: org.apache.xalan.xsltc
        AssignedTo: xalan-dev@xml.apache.org
        ReportedBy: jochen.cordes@t-online.de


A LinkageError occurs when attempting to use xsltc-templates in an environment
where archives are not loaded by the SystemClassLoader (e.g. Catalina).

Solution:

- Adding a new Constructor (after line 99 in
org.apache.xalan.xsltc.trax.TemplatesImpl.java)
   
  protected TemplateClassLoader(ClassLoader parent){
    super(parent);
  }

- Setting appropiate ClassLoader (in line 173, same class)
  return new TransletClassLoader(getClass().getClassLoader());