englishteeth.co.uk

… the weblog of Ian “English Teeth” Robinson
  • rss
  • Home

JBoss not using the deployed Xalan jar

Ian | February 20, 2009

Something that felt like forever to track down…

A test running problem free on the test server was throwing a transformer error locally:

javax.xml.transform.TransformerException:
Had IO Exception with stylesheet file: C:\jboss-4.0.3SP1\server\default\conf\documentservice\pmi\include.xslt
at org.apache.xalan.processor.TransformerFactoryImpl.processFromNode(TransformerFactoryImpl.java:126)
...

On the surface, it looked like there was no difference in the environments; same deployed war file, same JBoss version, same Java version, same everything. Obviously something was different…

Xalan 2.7.0 was distributed in the WEB-INF/lib of the war, but stepping through the code on the failing local server, the byte code didn’t match the attached source. It wasn’t 2.7.0 being used, it was actually the 2.6.0 version shipped with JBoss (found in lib/endorsed).

It turns out that libraries in the lib/endorsed directory are considered system libraries by virtue of being loaded by the System and bootstrap class loaders and as such being used in preference to deployed war files version. (It should be noted that this is an older version of JBoss, namely 4.0.3 SP1.)

That explained why the wrong class was being picked up locally, but not why it worked in the test server environment.

The main difference was that the server was being run as a service on the test server and via a batch file locally.

Purely by chance, the endorsed.dirs parameter had been missed from the configuration of the service wrapper.

wrapper.java.additional.2=-Djava.endorsed.dirs=%JBOSS_HOME%\lib\endorsed

Striking this out of the local batch file, sanity returned once more.

rem set JBOSS_ENDORSED_DIRS=%JBOSS_HOME%\lib\endorsed

Removing Xalan and Xerces from lib\endorsed would have much the same effect and is proposed in this jira task at jboss.org

Comments
No Comments »
Categories
development
Tags
java, jboss, xalan, xerces, xslt
Comments rss Comments rss
Trackback Trackback

The DVD Library in Vista Media Center

Ian | February 12, 2009

I’m a fan of the DVD Library functionality built into Windows Media Center Edition and Vista Media Center. I prefer it over something like My Movies purely because of it’s slickness and simplicity.

Though I have no idea why the ability to enable it is not a core configuration option, the methods are well enough documented around the place.

With such simplicity however, you often run into a restriction or a niggle that in a stand alone set-top box you may well just live with. With an HTPC though, which is most definitely a labour of love, you search an probe for a way to do that particular thing you want to do.

My niggle was that I wanted files other than DVD images to be accessible via the DVD Library. This desire was further provoked by Vista listing movies I recorded from TV in the library. This was almost enough. If I could have moved these movies out of the Recorded TV area and still have access to them, but no.

I found references to other format files being made accessible to extenders from the DVD Library via play lists and virtual links. I was again spurred on.

Ultimately though I was disappointed to find that these only worked from the extender and locally the DVD Library was truely limited to DRMS or WTV files located in a watched TV folder or DVD files.

I came across a free plug-in called Video Browser, but I was sceptical. I really didn’t want to install a plug-in to solve something I felt there must be a way around in the core software.

Nevertheless, in a fit of idle curiosity I installed it and pointed it at my folder of DVD Images.

Excellent. By default I had an interface almost identical to that of the DVD Library (at least in that release), but with a richer detail screen and the promise of other file types. There were eye-candy back drops and cover art for nearly every film without me doing anything. The plug-in is really slick and integrates seamlessly.

Slowly I started moving my other movie files into the sights to the plug-in. It has a simple convention…

Create a folder for the movie and drop your file, image or whatever into it.

After a spousal consultation, I gave up on the standard DVD Library “poster” view and moved to the detail view.

I then started thinking about the series I had and moved them over. I played with the options and tried the supporting metadata tools for getting more images and information Media Scout and Salamis movie browser (which is a stripped back version of the My Movies data capture interface tuned to the plug-in).

Finally, I moved the library, movies, series and all to the Home Server, something I’d never felt ready to do with my “open issues” with the DVD Library.

I feel my quest for the solution to my original niggle may be over.
Until the next one that is…

One problem with video browser is aside effect of a very positive side of it. It is in beta and is under the seemingly constant attention of its contributing developers. Even while writing this post and update was released which significantly changed the detail screens and removed some of the big brash eye candy banner art for a more subtle presentation.

But the project from the forum the developers seem open to suggestions and besides, it is also open source. If I really want something a certain way, I just need to pull my finger out and make it so.

Comments
No Comments »
Categories
development, miscellaneous, software
Tags
movies, open source, video browser, vmc
Comments rss Comments rss
Trackback Trackback

Author

Ian Robinson is a relatively agile software engineer interested in things both sides of the object relational divide and beyond.

Categories

  • development (37)
  • miscellaneous (28)
  • music (7)
  • software (19)

What I'm Doing...

  • @noelfielding11 why are you in watching telly!? in reply to noelfielding11 2010-04-16
  • What was so good about Nick Drake? These "artists" are covering, music is spot on but no effect at all. Totally lacking the goose pimples. 2010-04-16
  • Some Ginger bloke's on telly covering Nick Drake in a mediocre style. 2010-04-16
  • More updates...

Posting tweet...

Powered by Twitter Tools.

Blogroll

  • Dan North
  • Dave Astels
  • Dave Wood
  • eirikso.com
  • Matt Raible
  • Object Mentor Blog
  • The Ancient Art of Programming
  • The Wisdom of Ganesh

Tags

active-mq architecture bauhaus css db eclipse esb festivals freesat gorm grails groovy hd hibernate htpc java jboss jms junit links mce media center mini music oracle osgi patterns pirsig plugins satellite soa software spring sql struts2 testing themes tools tv vmc web wordpress xml xpath xslt
rss Comments rss valid xhtml 1.1 design by jide powered by Wordpress get firefox