Project

General

Profile

« Previous | Next » 

Revision 5337

Added by berkley almost 14 years ago

removed CrudService dependency on servlet params. CrudService is now a singleton. I'm getting an error from metacat saying it can't find teh systemmetadata schema, even though it is, in fact, registered with metacat. need to identify why this is happening.

View differences:

DocumentImpl.java
2632 2632
                    // write to xml_node complete. start the indexing thread.
2633 2633
                    addDocidToIndexingQueue(docid, rev);
2634 2634
               } catch (Exception e) {
2635
                   e.printStackTrace();
2635 2636
            	   logMetacat.error("DocumentImpl.write - Problem with parsing: " + e.getMessage());
2636 2637
                    conn.rollback();
2637 2638
                    conn.setAutoCommit(true);
......
3466 3467
                    Vector<XMLSchema> schemaList = XMLSchemaService.findSchemasInXML((StringReader)xml);
3467 3468
                    boolean allSchemasRegistered = 
3468 3469
                    	XMLSchemaService.areAllSchemasRegistered(schemaList);
3470
                    System.out.println("!!!!!!!!!!!!!!!!!!!!!!!!are all schemas registered: " + allSchemasRegistered);
3469 3471
                    if (XMLSchemaService.useFullSchemaValidation() && !allSchemasRegistered) {
3472
                        System.out.println("setting full schema validation");
3470 3473
                    	parser.setFeature(FULLSCHEMAVALIDATIONFEATURE, true);
3471 3474
                    }
3472 3475
                    // From DB to find the register external schema location
3473 3476
                    String externalSchemaLocation = null;
3474 3477
                    externalSchemaLocation = XMLSchemaService.getNameSpaceAndLocationString();
3478
                    System.out.println("external schema location: " + externalSchemaLocation);
3475 3479
                    logMetacat.debug("DocumentImpl.initalizeParser - Generic external schema location: " + externalSchemaLocation);              
3476 3480
                    // Set external schemalocation.
3477 3481
                    if (externalSchemaLocation != null
3478 3482
                            && !(externalSchemaLocation.trim()).equals("")) {
3483
                    System.out.println("setting external schema location to " + externalSchemaLocation);
3479 3484
                        parser.setProperty(EXTERNALSCHEMALOCATIONPROPERTY,
3480 3485
                                externalSchemaLocation);
3481 3486
                    }

Also available in: Unified diff