File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Object Relational Mapping and the fly likes How can i tell Hibernate not to fetch files from internet Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "How can i tell Hibernate not to fetch files from internet" Watch "How can i tell Hibernate not to fetch files from internet" New topic
Author

How can i tell Hibernate not to fetch files from internet

Java Bugger
Greenhorn

Joined: Apr 19, 2011
Posts: 2
Hello,

i use hibernate, and it tries to download the XSD definition used from an persistance.xml file.

The persistance.xml looks like:


The stacktrace looks like this:



How can i tell hibernate that it should not fetch the XSD file from internet? Because my application cannot be started up when it has no internet or java.sun.com delivers a non-XSD document (like happened her) or the delivery just hangs up.

Any ideas?
Chers
JB
Ramon Anger
Ranch Hand

Joined: Apr 19, 2011
Posts: 56

Hi JB,

according to the missing XSD your stacktrace shows only a warning.
You could download the XSD, place it in a local directory, and change the schema location in your persistence.xml to that local path. With that, the warning should be gone.

By the way, don't you think the problem of your application not starting is more related to line 155 in the stacktrace you've posted?

Regards,
Ramon


Blackbelt on BlackBeltFactory.com.
Java Bugger
Greenhorn

Joined: Apr 19, 2011
Posts: 2
The problem was JPA2 is not supported in this version JBoss 5. If you want to put an XSD not known by JBoss, you need to put it in the libraries folder. but i changed JPA version from 2 to 1.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How can i tell Hibernate not to fetch files from internet
 
Similar Threads
Class Loading Configuration
Error starting up my jboss
Error creating bean with name 'datasource': Invocation of init method failed; comp not bound
Problem deploying two war files to one instance of jboss-5.1.0.GA
Encript the password in jboss