667514 members! Sign up to stay informed.

Sponsored Links


Resources

Enterprise Java
Research Library

Get Java white papers, product information, case studies and webcasts

XML & Web services XML & Web services XML & Web services Messages: 0 Messages: 0 Messages: 0 Printer friendly Printer friendly Printer friendly Post reply Post reply Post reply XML XML XML

Using xml catalog to resolve URIs - failing in web project

Posted by: Suzana Barreto on November 02, 2009 DIGG
Hi,
I am developing a project which transforms xhtml data into xml with an xsl stylesheet. I am using the JAXP api, and keep getting exceptions on the call to the Tranformer.transform method. These exceptions are being thrown because the DTD access request is being denied (HTTP 503 error). I have thus altered the code so that it makes use of an Entity resolver to point to an oasis.xml catalog file which resolves the URI, pointing at our locally cached DTD files. The problem is that I keep getting the warning that the CatalogManager.properties file cannot be found, and then resolution fails. I am aware that this file needs to be placed on the classpath and have managed to get it working in a standard Java project but I cannot seem to get this to work within my web project because I am not sure where this file should be placed. I have tried various options including placing it in a resources folder and referencing that folder by adding it to the project libraries, or placing it in the default package where it appears in the top level of the /web-inf/classes folder - all to no avail. The message is always ‘cannot find CatalogManager.properties’. Has anybody come across this same problem? I am using netbeans 6.5 and deploying to Glassfish V2
Recent active threads Recent active threads Recent active threads More More More
Jt - Java Pattern Oriented Framework (Jt 4.5)
IPhone App Development with JSF
Web as the Platform: Day 1 at the Ajax Experience
Need help for login page using java servlet
Stateful Webservice in java
SAP Asks Sun/Oracle to Let Java Be Free
Registration for TheServerSide Java Symposium Las Vegas now open
Use Sun SPOTs as your build canary
AspectJ In Action Published; Sample Chapters Posted on TSS
WSO2 goes all RESTy
More active threads »
Top posters of the weekTop posters of the weekTop posters of the week
This list contains the members who have made the most posts in all forums over the last 7 days:
  1. Dan Evans
  2. James Watson
  3. William Louth
  4. sara foster
  5. Chief Thrall
Hot threads Hot threads Hot threads More hot threads More hot threads More hot threads

Object pooling is now a serious performance loss

Brian Goetz continues to lift the lid and peak into the inner workings of Java in Java Urban Performance Legends. In this article he exposes the fallacy behind some of the more common performance myths found in the annals of the JVM.
(93 comments, last posted February 06, 2009)

Beyond Java

Bruce Tate, author of Better, Faster Lighter Java and Bitter EJB has come out with a new book called Beyond Java. Bruce has an epiphany about the future of software development. Does it include Java?
(770 comments, last posted September 23, 2009)

Three forms of AJAX: solid, liquid and gas.

Looks like today AJAX concept have several interpretations. We can distinguish different approaches of AJAX integration. Can they co-exist within the same application? Can we talk about layered AJAX integration?
(68 comments, last posted May 08, 2008)

Design-Time API Promises to make Java more like VB

Artima has published a short article describing the Design-Time API for JavaBeans, which was recently approved as JSR 273. This API promises to bring VB-like ease to Java development, but may face a cultural bias among Java developers who tend to think more in terms of class libraries than components.
(225 comments, last posted November 19, 2009)

Will Sun be that target of a management buyout?

There is plenty of speculation today regarding a potential buyout of Sun Microsystems by Scott McNealy and Silver Lake Partners. How would privatization of Sun affect Java?
(16 comments, last posted May 15, 2009)
More hot threads »

News | Blogs | Discussions | Tech talks | Patterns | Reviews | White Papers | Downloads | Articles | Media kit | About
Java Solutions
All Content Copyright ©2007 TheServerSide Privacy Policy      Powered by JIVE
Site Map