05-19-2009 09:27 AM
<engine label="Google Search" proxy="remote">
<url type="application/atom+xml">
<url type="application/atom+xml">
http://www.google.co.in/search?hl=en&q={searchTerms}&btnG=Google+Search&meta=&aq=f&oq=
</url>
<url type="application/rss+xml">
http://www.google.co.in/search?hl=en&q={searchTerms}&btnG=Google+Search&meta=&aq=f&oq=
</url>
</engine>
kipped for source: classpath:alfresco/extension/web-scripts-config-custom.xml'
org.alfresco.config.ConfigException: Failed to parse config stream
at org.alfresco.config.xml.XMLConfigService.parse(XMLConfigService.java:
177)
at org.alfresco.config.BaseConfigService.appendConfig(BaseConfigService.
java:255)
at org.alfresco.config.BaseConfigService.parse(BaseConfigService.java:28
5)
at org.alfresco.config.xml.XMLConfigService.initConfig(XMLConfigService.
java:111)
at org.alfresco.config.BaseConfigService.init(BaseConfigService.java:96)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.springframework.beans.factory.support.AbstractAutowireCapableBean
Factory.invokeCustomInitMethod(AbstractAutowireCapableBeanFactory.java:1240)
at org.springframework.beans.factory.support.AbstractAutowireCapableBean
Factory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1205)
at org.springframework.beans.factory.support.AbstractAutowireCapableBean
Factory.initializeBean(AbstractAutowireCapableBeanFactory.java:1171)
at org.springframework.beans.factory.support.AbstractAutowireCapableBean
Factory.createBean(AbstractAutowireCapableBeanFactory.java:425)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getOb
ject(AbstractBeanFactory.java:251)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistr
y.getSingleton(DefaultSingletonBeanRegistry.java:156)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean
(AbstractBeanFactory.java:248)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean
(AbstractBeanFactory.java:160)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.
getBeansOfType(DefaultListableBeanFactory.java:247)
at org.springframework.context.support.AbstractApplicationContext.getBea
nsOfType(AbstractApplicationContext.java:796)
at org.springframework.context.support.AbstractApplicationContext.regist
erListeners(AbstractApplicationContext.java:592)
at org.springframework.context.support.AbstractApplicationContext.refres
h(AbstractApplicationContext.java:349)
at org.springframework.web.context.ContextLoader.createWebApplicationCon
text(ContextLoader.java:244)
at org.springframework.web.context.ContextLoader.initWebApplicationConte
xt(ContextLoader.java:187)
at org.springframework.web.context.ContextLoaderListener.contextInitiali
zed(ContextLoaderListener.java:49)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContex
t.java:3843)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4
342)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase
.java:791)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:77
1)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)
at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.jav
a:926)
at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.j
ava:889)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:492
)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1149)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java
:311)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Lifecycl
eSupport.java:117)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443
)
at org.apache.catalina.core.StandardService.start(StandardService.java:5
16)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:710
)
at org.apache.catalina.startup.Catalina.start(Catalina.java:578)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
Caused by: org.dom4j.DocumentException: Error on line 51 of document : The refe
rence to entity "q" must end with the ';' delimiter. Nested exception: The refer
ence to entity "q" must end with the ';' delimiter.
at org.dom4j.io.SAXReader.read(SAXReader.java:482)
at org.dom4j.io.SAXReader.read(SAXReader.java:343)
at org.alfresco.config.xml.XMLConfigService.parse(XMLConfigService.java:
144)
… 47 more
05-25-2009 03:50 AM
05-25-2009 06:42 AM
Hi Mike,
I did the modifications according to ur suggestions but still no luck.
I'm getting the following error.
org.alfresco.config.ConfigException: Failed to parse config stream
at org.alfresco.config.xml.XMLConfigService.parse(XMLConfigService.java:
177)
at org.alfresco.config.BaseConfigService.appendConfig(BaseConfigService.
java:255)
at org.alfresco.config.BaseConfigService.parse(BaseConfigService.java:28
5)
at org.alfresco.config.xml.XMLConfigService.initConfig(XMLConfigService.
java:111)
at org.alfresco.config.BaseConfigService.init(BaseConfigService.java:96)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.springframework.beans.factory.support.AbstractAutowireCapableBean
Factory.invokeCustomInitMethod(AbstractAutowireCapableBeanFactory.java:1240)
at org.springframework.beans.factory.support.AbstractAutowireCapableBean
Factory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1205)
at org.springframework.beans.factory.support.AbstractAutowireCapableBean
Factory.initializeBean(AbstractAutowireCapableBeanFactory.java:1171)
at org.springframework.beans.factory.support.AbstractAutowireCapableBean
Factory.createBean(AbstractAutowireCapableBeanFactory.java:425)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getOb
ject(AbstractBeanFactory.java:251)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistr
y.getSingleton(DefaultSingletonBeanRegistry.java:156)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean
(AbstractBeanFactory.java:248)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean
(AbstractBeanFactory.java:160)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.
getBeansOfType(DefaultListableBeanFactory.java:247)
at org.springframework.context.support.AbstractApplicationContext.getBea
nsOfType(AbstractApplicationContext.java:796)
at org.springframework.context.support.AbstractApplicationContext.regist
erListeners(AbstractApplicationContext.java:592)
at org.springframework.context.support.AbstractApplicationContext.refres
h(AbstractApplicationContext.java:349)
at org.springframework.web.context.ContextLoader.createWebApplicationCon
text(ContextLoader.java:244)
at org.springframework.web.context.ContextLoader.initWebApplicationConte
xt(ContextLoader.java:187)
at org.springframework.web.context.ContextLoaderListener.contextInitiali
zed(ContextLoaderListener.java:49)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContex
t.java:3843)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4
342)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase
.java:791)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:77
1)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)
at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.jav
a:926)
at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.j
ava:889)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:492
)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1149)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java
:311)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Lifecycl
eSupport.java:117)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443
)
at org.apache.catalina.core.StandardService.start(StandardService.java:5
16)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:710
)
My web-script-config-custom.xml file is having the following stuff.
<engine label="Google Search" proxy="remote">
<url type="application/atom+xml" >
<![CDATA[
<url type="application/atom+xml">
http://www.google.co.in/search?hl=en& q={searchTerms}& btnG=Google+Search& meta=& aq=f& oq=
</url>
<url type="application/rss+xml">
http://www.google.co.in/search?hl=en& q={searchTerms}& btnG=Google+Search& meta=& aq=f& oq=
</url>
]]>
</engine>
Still it is not even showing the "Google search" check box option in open search.
If we remove the "
Thank you very much for your time
05-25-2009 06:07 PM
05-26-2009 01:17 AM
Hi Mike,
Good morning.
I did the changes according to ur suggesstions but still no luck.
The below is my web-scripts-config-custom.xml.
<engine label="Google Search" proxy="remote">
<url type="application/atom+xml" >
<url type="application/atom+xml">
http://www.google.co.in/search?hl=en&q={searchTerms}&btnG=Google+Search&
meta=&aq=f&oq=
</url>
<url type="application/rss+xml">
http://www.google.co.in/search?hl=en&q={searchTerms}&btnG=Google+Search&
meta=&aq=f&oq=
</url>
</engine>
the error i'm getting is
org.alfresco.config.ConfigException: Failed to parse config stream
at org.alfresco.config.xml.XMLConfigService.parse(XMLConfigService.java:
177)
at org.alfresco.config.BaseConfigService.appendConfig(BaseConfigService.
java:255)
at org.alfresco.config.BaseConfigService.parse(BaseConfigService.java:28
5)
at org.alfresco.config.xml.XMLConfigService.initConfig(XMLConfigService.
java:111)
at org.alfresco.config.BaseConfigService.init(BaseConfigService.java:96)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.springframework.beans.factory.support.AbstractAutowireCapableBean
Factory.invokeCustomInitMethod(AbstractAutowireCapableBeanFactory.java:1240)
at org.springframework.beans.factory.support.AbstractAutowireCapableBean
Factory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1205)
at org.springframework.beans.factory.support.AbstractAutowireCapableBean
Factory.initializeBean(AbstractAutowireCapableBeanFactory.java:1171)
at org.springframework.beans.factory.support.AbstractAutowireCapableBean
Factory.createBean(AbstractAutowireCapableBeanFactory.java:425)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getOb
ject(AbstractBeanFactory.java:251)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistr
y.getSingleton(DefaultSingletonBeanRegistry.java:156)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean
(AbstractBeanFactory.java:248)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean
(AbstractBeanFactory.java:160)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.
getBeansOfType(DefaultListableBeanFactory.java:247)
at org.springframework.context.support.AbstractApplicationContext.getBea
nsOfType(AbstractApplicationContext.java:796)
at org.springframework.context.support.AbstractApplicationContext.regist
erListeners(AbstractApplicationContext.java:592)
at org.springframework.context.support.AbstractApplicationContext.refres
h(AbstractApplicationContext.java:349)
at org.springframework.web.context.ContextLoader.createWebApplicationCon
text(ContextLoader.java:244)
at org.springframework.web.context.ContextLoader.initWebApplicationConte
xt(ContextLoader.java:187)
at org.springframework.web.context.ContextLoaderListener.contextInitiali
zed(ContextLoaderListener.java:49)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContex
t.java:3843)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4
342)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase
.java:791)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:77
1)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)
at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.jav
a:926)
at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.j
ava:889)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:492
)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1149)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java
:311)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Lifecycl
eSupport.java:117)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443
)
at org.apache.catalina.core.StandardService.start(StandardService.java:5
16)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:710
)
at org.apache.catalina.startup.Catalina.start(Catalina.java:578)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
Caused by: org.dom4j.DocumentException: Error on line 98 of document : The elem
ent type "url" must be terminated by the matching end-tag "</url>". Nested excep
tion: The element type "url" must be terminated by the matching end-tag "</url>"
.
at org.dom4j.io.SAXReader.read(SAXReader.java:482)
at org.dom4j.io.SAXReader.read(SAXReader.java:343)
at org.alfresco.config.xml.XMLConfigService.parse(XMLConfigService.java:
144)
... 47 more
if i comment the above code everything working just fine including searching to another repositories.
any help in this.. I'm stucked here to move.. I want to search external sites from alfresco. like google. The related config files i did not found in wiki.
thanks for ur support.
Thank you very much for your time
05-26-2009 02:35 AM
An error occured:
Failed to retrieve search results for 'Google Search':500 Internal Server Error
An error occured:
Failed to retrieve search results for 'Remote Alfresco Repository':500 Internal Server Error
<!– –>
<!– Example configuration of multiple OpenSearch engines –>
<!– –>
<alfresco-config>
<config evaluator="string-compare" condition="OpenSearch">
<opensearch>
<engines>
<!– –>
<!– Example: Registration of remote Alfresco Server –>
<!– –>
<!– TODO: Find/Replace [host] with server host name –>
<!– TODO: Find/Replace [port] with server port number –>
<engine label="Remote Alfresco Repository" proxy="remote">
<url type="application/atom+xml">
http://192.133.35.121:8080/alfresco/service/api/search/keyword.atom?q={searchTerms}&p={startPage?}&c...
</url>
<url type="application/rss+xml">
http://192.133.35.121:8080/alfresco/api/service/search/keyword.rss?q={searchTerms}&p={startPage?}&c=...
</url>
</engine>
<!– –>
<!– Example: Registration of Alfresco's Open Talk Blog –>
<!– –>
<!–
<engine label="Alfresco Open Source Talk" proxy="opentalk">
<url type="application/rss+xml">
http://blogs.alfresco.com/opentalk/os-query?s={searchTerms}&itemstart={startIndex?}&itempage={startP...?}
</url>
</engine>
–>
<engine label="Google Search" proxy="remote">
<url type="application/atom+xml" />
<url type="application/atom+xml">
http://www.google.co.in/search?hl=en&q={searchTerms}&btnG=Google+Search&meta=&aq=f&oq=
</url>
<url type="application/rss+xml">
http://www.google.co.in/search?hl=en&q={searchTerms}&btnG=Google+Search&meta=&aq=f&oq=
</url>
</engine>
</engines>
</opensearch>
</config>
</alfresco-config>
05-26-2009 04:15 AM
05-26-2009 04:49 AM
05-26-2009 05:19 AM
<url type="application/atom+xml" />
05-26-2009 05:36 AM
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.