Hi Inaki,
you better unpack the xindice.war and deploy the unpacked
app to Tomcat. I am not sure whether it will run at all if you
deploy the war file, since the xindice db files are stored in the
file system. The location of these db files is by default in the
xindice webapp folder, so this place just does not exist if you
work with the packed war file. The error message you show
indicates this problem as well.
So, shutdown Tomcat, mkdir xindice in the webapps folder,
copy xindice.war to your newly created webapps/xindice
folder, do jar xf xindice.war there and then start Tomcat again.
Georg
Iñaki Salinas Bueno wrote:
Hello,
I was using xindice on TOMCAT 4.1 and all was nice.
I found the JAXB API and I think it is very interesting for my
application (easy to work with XML documents in Java), but it needs
the Java WSDP <http://java.sun.com/webservices/jwsdp/index.jsp> (Java
Web Service Developement Pack) installed and the Java WSDP needs to
work on TOMCAT 5.0 for JWSD
<http://java.sun.com/webservices/containers/tomcat_for_JWSDP_1_5.html> .
I installed this TOMCAT but Xindice does not work. I proved to
installing it from the manager html application, or installing it
copying in the weapps folder, but it does not work.
Someone use this version of Tomcat or can tell me how does not it
work? Thanks.
Tomcat outputs this error:
INFO: Installing web applications on context /xindice from URL
jar:file:/home/isa/Servidor/tomcat50-jwsdp/webapps/xindice.war!/
26-feb-2007 16:44:09 org.apache.xindice.server.XindiceServlet init
GRAVE: Failed to initialize database, throwing ServletException
org.apache.xindice.util.ConfigurationException: The database 'db'
configuration points to a relative path, but there was no
xindice.db.home property set. Furthermore, the war was not unpacked by
the application server so Xindice was unable to find a database
location Please check /WEB-INF/system.xml and set an absolute path as
the "dbroot" attribute of "root-collection" or specify a suitable
xindice.db.home system property.
at
org.apache.xindice.server.XindiceServlet.init(XindiceServlet.java:150)
at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:997)
at
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:840)
at
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3915)
at
org.apache.catalina.core.StandardContext.start(StandardContext.java:4240)
at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:823)
at
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:807)
at
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:595)
at
org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeployer.java:276)
at
org.apache.catalina.core.StandardHost.install(StandardHost.java:832)
at
org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:625)
at
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:429)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:961)
at
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:347)
at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1091)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:789)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1083)
at
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:478)
at
org.apache.catalina.core.StandardService.start(StandardService.java:476)
at
org.apache.catalina.core.StandardServer.start(StandardServer.java:2298)
at org.apache.catalina.startup.Catalina.start(Catalina.java:547)
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:585)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:286)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:387)
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:585)
at org.apache.commons.launcher.ChildMain.run(ChildMain.java:269)
26-feb-2007 16:44:09 org.apache.catalina.core.StandardHostDeployer install
...