Executing web service with configuration in attachment file, proceeds to:
Caused by: org.webharvest.exception.ConfigurationException: Configuration error: element "http, http://web-harvest.sourceforge.net/schema/2.1/http" is not allowed inside element "html-to-xml"!
at org.webharvest.definition.DefinitionResolver.validate(DefinitionResolver.java:457)
at org.webharvest.definition.DefinitionResolver.createElementDefinition(DefinitionResolver.java:395)
at org.webharvest.definition.AbstractElementDef.<init>(AbstractElementDef.java:34)
at org.webharvest.definition.WebHarvestPluginDef.<init>(WebHarvestPluginDef.java:25)
at org.webharvest.definition.WebHarvestPluginDef.<init>(WebHarvestPluginDef.java:19)
at org.webharvest.definition.XPathDef.<init>(XPathDef.java:55)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
at org.webharvest.definition.DefinitionResolver.createElementDefinition(DefinitionResolver.java:399)
at org.webharvest.definition.AbstractElementDef.<init>(AbstractElementDef.java:34)
at org.webharvest.definition.WebHarvestPluginDef.<init>(WebHarvestPluginDef.java:25)
at org.webharvest.definition.WebHarvestPluginDef.<init>(WebHarvestPluginDef.java:19)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
at org.webharvest.definition.DefinitionResolver.createElementDefinition(DefinitionResolver.java:399)
at org.webharvest.definition.ScraperConfiguration.createFromInputStream(ScraperConfiguration.java:127)
at org.webharvest.definition.ScraperConfiguration.<init>(ScraperConfiguration.java:80)
at com.hurra.shop.mashup.integration.ScraperService.getConfiguration(ScraperService.java:229)
at com.hurra.shop.mashup.integration.ScraperService.scrape(ScraperService.java:157)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.springframework.expression.spel.support.ReflectiveMethodExecutor.execute(ReflectiveMethodExecutor.java:69)
at org.springframework.expression.spel.ast.MethodReference.getValueInternal(MethodReference.java:83)
at org.springframework.expression.spel.ast.CompoundExpression.getValueInternal(CompoundExpression.java:57)
at org.springframework.expression.spel.ast.SpelNodeImpl.getTypedValue(SpelNodeImpl.java:102)
at org.springframework.expression.spel.standard.SpelExpression.getValue(SpelExpression.java:102)
at org.springframework.integration.util.AbstractExpressionEvaluator.evaluateExpression(AbstractExpressionEvaluator.java:114)
at org.springframework.integration.util.MessagingMethodInvokerHelper.processInternal(MessagingMethodInvokerHelper.java:223)
at org.springframework.integration.util.MessagingMethodInvokerHelper.process(MessagingMethodInvokerHelper.java:123)
at org.springframework.integration.handler.MethodInvokingMessageProcessor.processMessage(MethodInvokingMessageProcessor.java:73)
... 147 more</init></init></init></init></init></init></init></init>
Anonymous
Diff:
Release of version 2.1 is going to introduce configuration validation using XML schemas so if XSD for custom plugin will be written correctly and it will be provided to Web Harvest then configuration described above should work without errors.
assigned_to: Maciej Czapiewski
status: open --> closed