• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Help please: access .xsd inside a jar

 
Denis Wang
Ranch Hand
Posts: 81
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello, all,
I use the following code to access my schema
URL schemaURL = getClass().getClassLoader().getResource(schemaString);

This code works fine in my IDE. But when i deploy the project and jar up the xsd file, this line returns null.

Any ideas?
thanks a lot!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic