sorry, but I do not know where to find the archives
and cannot search for my problem. <The archives at
covalent I cannot access and the archives on the main
web page point to covalent>

I have a problem that I think is specific to WebSphere
3.0.2 and the import statement.

I can get to the first file in my document root
directory, but then it seems that it wants to keep
finding the import files in the bin directory.

The initial file is found from the document root:
"stylesheets/mifIntegrationReport.xsl"

My import code will look like:

import href="common.xsl"

my java code looks like:

public void init(ServletConfig servletconfig) throws
ServletException {
        try {
                super.init(servletconfig);
                conf = servletconfig;
                _stylesheetCache = new Hashtable();
                ServletContext servletcontext =
conf.getServletContext();
                InputStream xslIS = new
BufferedInputStream(new
FileInputStream(servletcontext.getRealPath("stylesheets/mifIntegrationReport.xsl")));
                StreamSource xslSource = new
StreamSource(xslIS);
        
xslSource.setSystemId(servletcontext.getRealPath("stylesheets/mifIntegrationReport.xsl"));
                TransformerFactory factory =
TransformerFactory.newInstance();
                Templates compiledSheet =
factory.newTemplates(xslSource);
        
_stylesheetCache.put("stylesheets/mifIntegrationReport.xsl",
compiledSheet);
        } catch (Exception e) {
                System.out.println(e);
        }
}

the error I get looks like:

javax.xml.transform.TransformerConfigurationException:
File
"file:////usr/WebSphere/AppServer/bin////usr/WebSphere/AppServer/hosts/default_host/CreditProcessWebAppTest/web/common.xsl"
not found.

I can get it to work by moving all my stylesheets to
the bin directory.  However i would prefer if I didn't
have to do this.  Is this a websphere 3.0.2 problem? 
Can I fix this somehow?

Thanks for any help

Sandeep



__________________________________________________
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail - only $35 
a year!  http://personal.mail.yahoo.com/

Reply via email to