You are viewing a plain text version of this content. The canonical link for it is here.
Posted to xindice-users@xml.apache.org by Iñaki Salinas Bueno <in...@gmail.com> on 2007/02/26 17:04:24 UTC
installing xindice.war in TOMCAT 5.0 for JWSDP
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.homeproperty 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
...
Re: installing xindice.war in TOMCAT 5.0 for JWSDP
Posted by Georg Sauer-Limbach <gs...@gslweb.de>.
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
> ...
Re: installing xindice.war in TOMCAT 5.0 for JWSDP
Posted by Iñaki Salinas Bueno <in...@gmail.com>.
I had some some errors that I did not understand but finally works. This is
what I did:
1) I proved what Georg said with xindice v1.0 and v1.1b4 but it did not
work.
2) I did what Vadim said: checkout Xindice from subversion. To build this
Xindice version with Java 1.5 OK, but the deploying on the tomcat server did
not work. This is what happened:
- From the Web: Tomcat said that the deploy was OK, but it did not
create the folder
- Copying in webapps folder: The folder disappeared when Tomcat started
up
3) Doing it with Georg technic did not work because the folder created
disappeared when I reloaded Tomcat Web application. So, I did the next:
- I deployed the xindice.war (built from subversion) from the Tomcat
Web application
- I followed same steps Georg said:
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.
>
- Although I restarted Tomcat, I maintained the Tomcat Web application
page on the navigator
- Once Tomcat was started up, I reloaded the xindice application on it
(without doing any other action before on the Tomcat Web application or the
folder had disappeared again) and it worked.
I hope this will be helpfull for someone.
Thanks both!
Iñaki
2007/2/28, Vadim Gritsenko <va...@reverycodes.com>:
>
> Iñaki Salinas Bueno wrote:
> > More information, I hope it helps:
> >
> > I am using Xindice 1.1b4.
> > The Java WSDP needs SDK 1.5 or later, so I change from 1.4 to 1.5.
> > I try to build Xindice 1.1b4 with this version of Java but I have 51
> > errors like this:
>
> Current trunk of Xindice works with java 1.5. Last release, Xindice 1.1b4,
> does
> not. If you want to use Java 5, please checkout Xindice from subversion.
>
> Vadim
>
> > [javac]
> > /.../xindice-1.1b4
> /java/src/org/apache/xindice/xml/sax/SetContentHandler.java:230:
> > as of release 1.5, 'enum' is a keyword, and may not be used as an
> identifier
> > [javac} (try -source 1.4 or lower to use 'enum' as an identifier)
> >
> > Does it means that Xindice-1.1b4 needs SDK 1.4?
> > Does it means that I have to choose between Java WSDP or Xindice?
> > I don't know how can I use both, if it is possible.
> >
> > Thanks for your help
> > Iñaki
>
>
Re: installing xindice.war in TOMCAT 5.0 for JWSDP
Posted by Vadim Gritsenko <va...@reverycodes.com>.
Iñaki Salinas Bueno wrote:
> More information, I hope it helps:
>
> I am using Xindice 1.1b4.
> The Java WSDP needs SDK 1.5 or later, so I change from 1.4 to 1.5.
> I try to build Xindice 1.1b4 with this version of Java but I have 51
> errors like this:
Current trunk of Xindice works with java 1.5. Last release, Xindice 1.1b4, does
not. If you want to use Java 5, please checkout Xindice from subversion.
Vadim
> [javac]
> /.../xindice-1.1b4/java/src/org/apache/xindice/xml/sax/SetContentHandler.java:230:
> as of release 1.5, 'enum' is a keyword, and may not be used as an identifier
> [javac} (try -source 1.4 or lower to use 'enum' as an identifier)
>
> Does it means that Xindice-1.1b4 needs SDK 1.4?
> Does it means that I have to choose between Java WSDP or Xindice?
> I don't know how can I use both, if it is possible.
>
> Thanks for your help
> Iñaki
Re: installing xindice.war in TOMCAT 5.0 for JWSDP
Posted by Iñaki Salinas Bueno <in...@gmail.com>.
More information, I hope it helps:
I am using Xindice 1.1b4.
The Java WSDP needs SDK 1.5 or later, so I change from 1.4 to 1.5.
I try to build Xindice 1.1b4 with this version of Java but I have 51 errors
like this:
[javac] /.../xindice-1.1b4/java/src/org/apache/xindice/xml/sax/SetContentHandler.java:230:
as of release 1.5, 'enum' is a keyword, and may not be used as an identifier
[javac} (try -source 1.4 or lower to use 'enum' as an identifier)
Does it means that Xindice-1.1b4 needs SDK 1.4?
Does it means that I have to choose between Java WSDP or Xindice?
I don't know how can I use both, if it is possible.
Thanks for your help
Iñaki