Revision 26521

View differences:

tmp/trunk/servidor/WorkSpace_Servidor/SoftwareAdicional/wps040-0.0.1-with-dependencies/src/commons-jaxb-frogs/src/org/tigris/frogs/jaxb/Parser.java
63 63
	  *
64 64
	  */
65 65
	private void instanciateParser() throws JAXBException {
66
	    // create a JAXBContext with the schema
66
	    try {
67
		// create a JAXBContext with the schema
67 68
		log("New JAXB Instance of " + getNamespace() );
68
		this.jc = JAXBContext.newInstance( getNamespace() );
69
		this.jc = JAXBContext.newInstance( getNamespace());
69 70
		setDocumentErrors();
71
	    } catch (JAXBException e) {
72
	    	   	log("JAXBContext loaded with different classLoader. Trying whith this.getClass.getClassLoader");
73
	    		this.jc = JAXBContext.newInstance( getNamespace(),this.getClass().getClassLoader());
74
	    }
70 75
	}
71 76

  
72 77
	 /**

Also available in: Unified diff