throw new IllegalStateException("Conflicting context-param "+name+"="+value+" in "+descriptor.getResource());
/** * {@inheritDoc} */ @Override public void process(WebAppContext context, Descriptor descriptor) throws Exception { if (descriptor == null) return; start(context,descriptor); XmlParser.Node root = descriptor.getRoot(); Iterator<?> iter = root.iterator(); XmlParser.Node node = null; while (iter.hasNext()) { Object o = iter.next(); if (!(o instanceof XmlParser.Node)) continue; node = (XmlParser.Node) o; visit(context, descriptor, node); } end(context,descriptor); }
public void parse () throws Exception { if (_root == null) { try { XmlParser parser = ensureParser(); _root = parser.parse(_xml.getInputStream()); _dtd = parser.getDTD(); } finally { _xml.close(); } } }
XmlParser.Node otherFragmentRoot = otherFragment.getRoot(); Iterator<Object> iter = otherFragmentRoot.iterator(); XmlParser.Node otherNode = null; throw new IllegalStateException("Conflicting resource-env-ref "+jndiName+" in "+descriptor.getResource());
@Override public void parse () throws Exception { super.parse(); processVersion(); processOrdering(); }
@Override public String toString() { if (descriptor!=null) return descriptor.toString(); if (annotation!=null) return "@"+annotation.annotationType().getSimpleName()+"("+annotated.getName()+")"; return origin.toString(); } }
XmlParser.Node otherFragmentRoot = otherFragment.getRoot(); Iterator<Object> iter = otherFragmentRoot.iterator(); XmlParser.Node otherNode = null; throw new IllegalStateException("Conflicting resource-env-ref "+jndiName+" in "+descriptor.getResource());
public void parse () throws Exception { super.parse(); processVersion(); processOrdering(); }
@Override public String toString() { if (descriptor!=null) return descriptor.toString(); if (annotation!=null) return "@"+annotation.annotationType().getSimpleName()+"("+annotated.getName()+")"; return origin.toString(); } }
throw new IllegalStateException("Conflicting error-code or exception-type "+error+" in "+descriptor.getResource()); break;
XmlParser.Node otherFragmentRoot = otherFragment.getRoot(); Iterator<Object> iter = otherFragmentRoot.iterator(); XmlParser.Node otherNode = null; usage = (usage==null?"":usage); if (!type.equals(otherType) || !usage.equalsIgnoreCase(otherUsage)) throw new IllegalStateException("Conflicting message-destination-ref "+jndiName+" in "+descriptor.getResource());
/** * {@inheritDoc} */ public void process(WebAppContext context, Descriptor descriptor) throws Exception { if (descriptor == null) return; start(context,descriptor); XmlParser.Node root = descriptor.getRoot(); Iterator<?> iter = root.iterator(); XmlParser.Node node = null; while (iter.hasNext()) { Object o = iter.next(); if (!(o instanceof XmlParser.Node)) continue; node = (XmlParser.Node) o; visit(context, descriptor, node); } end(context,descriptor); }
public void parse () throws Exception { super.parse(); processVersion(); processOrdering(); }
public void parse () throws Exception { if (_parser == null) ensureParser(); if (_root == null) { try { _root = _parser.parse(_xml.getInputStream()); } finally { _xml.release(); } } }
throw new IllegalStateException("Conflicting loacle-encoding mapping for locale "+locale+" in "+descriptor.getResource()); break;
XmlParser.Node otherFragmentRoot = otherFragment.getRoot(); Iterator<Object> iter = otherFragmentRoot.iterator(); XmlParser.Node otherNode = null; usage = (usage==null?"":usage); if (!type.equals(otherType) || !usage.equalsIgnoreCase(otherUsage)) throw new IllegalStateException("Conflicting message-destination-ref "+jndiName+" in "+descriptor.getResource());
/** * {@inheritDoc} */ public void process(WebAppContext context, Descriptor descriptor) throws Exception { if (descriptor == null) return; start(context,descriptor); XmlParser.Node root = descriptor.getRoot(); Iterator<?> iter = root.iterator(); XmlParser.Node node = null; while (iter.hasNext()) { Object o = iter.next(); if (!(o instanceof XmlParser.Node)) continue; node = (XmlParser.Node) o; visit(context, descriptor, node); } end(context,descriptor); }
public void parse () throws Exception { super.parse(); processVersion(); processOrdering(); }
public void parse () throws Exception { if (_parser == null) ensureParser(); if (_root == null) { try { _root = _parser.parse(_xml.getInputStream()); } finally { _xml.release(); } } }
if (existing != null && !isAllowDuplicateFragmentNames()) throw new IllegalStateException("Duplicate fragment name: "+descriptor.getName()+" for "+existing.getResource()+" and "+descriptor.getResource());