Results 1 to 3 of 3

Thread: XSLT stylesheet include causes IO Exception

  1. #1
    Join Date
    Aug 2004
    Location
    Dayton, OH
    Posts
    15

    Default XSLT stylesheet include causes IO Exception

    Hi,

    If I use a single standalone xsl stylesheet everything works fine. If I break the stylesheet into parts and use <xsl:include href="foo.xsl">
    where foo.xsl is in the same directory as the main stylesheet,
    it looks like the path name gets messed up and I get an

    Had IO Exception with stylesheet file: foo.xsl

    and further down in the stack trace I see

    Caused by: java.io.FileNotFoundException: /some/wrong/path/foo.xsl

    where /some/wrong/path/ is the path to the JBoss bin directory (I am running in JBoss). If I run the application using my own stylesheet classes,
    it works fine. Note that Spring appears to read the main stylesheet just fine or it would never have seen the include.

    Thoughts? Thanks!

    John Westerkamp

  2. #2
    Join Date
    Aug 2004
    Location
    London, UK
    Posts
    339

    Default

    are you extending AbstractXsltView? What version of Spring are you using?

    This should have been fixed in 1.1 final (see http://opensource.atlassian.com/proj...browse/SPR-261)

    Regards,
    Darren Davison.
    Public Key: 0xE855B3EA

  3. #3
    Join Date
    Aug 2004
    Location
    Dayton, OH
    Posts
    15

    Default

    Hi Darren,

    Yes, I was aware of that thread and must have applied the patch or rebuilt the jar incorrectly. After seeing your post, I got the patch applied correctly, and it worked like a charm.

    Thanks for your quick reply!

    John Westerkamp

Similar Threads

  1. Context initialization failed
    By kanonmicke in forum Container
    Replies: 7
    Last Post: Sep 29th, 2005, 12:35 AM
  2. Odd behaviour when injecting TransactionTemplate
    By damon311 in forum Container
    Replies: 3
    Last Post: Jul 23rd, 2005, 11:21 AM
  3. Replies: 0
    Last Post: Jul 11th, 2005, 05:49 PM
  4. Replies: 3
    Last Post: Nov 8th, 2004, 07:30 PM
  5. Replies: 1
    Last Post: Sep 6th, 2004, 12:30 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •