re: install xindice into tomcat6.0

"Tak-po Li" <[email protected]> Sat, 13 Sep 2008 23:42:53 -0400
Newsgroups gmane.text.xml.xindice.user
Message-ID <[email protected]>
Hi,
I am newbie with xindice.
1. I rename xindice-1.2m1.war to xindice.war and move it into webapps.  I
successfully got "xindice (zeen-de-chay)" screen with localhost:8080/xindice
2. I did the same to addressbook-1.2mi.war and got a good screen with
locathost:8080/addressbook.
3. add <context ..></context> into server.xml (below <host> level).
4. When I try to add my entered data into database I get the following
message:  Could someone please help?
Thanks,
Tak

p.s. attached please find tomcat log files right after start.  It seems the
xindice was started then stopped

 HTTP Status 500 -
------------------------------
*type* Exception report
*message* **
*description* *The server encountered an internal error () that prevented it
from fulfilling this request.*
*exception*
javax.servlet.ServletException: Servlet execution threw an exception
 *root cause*
java.lang.NoClassDefFoundError:
org/apache/ws/commons/serialize/DOMSerializer

org.apache.xmlrpc.serializer.NodeSerializer.<clinit>(NodeSerializer.java:27)

org.apache.xmlrpc.common.TypeFactoryImpl.<clinit>(TypeFactoryImpl.java:85)

org.apache.xmlrpc.common.XmlRpcController.<init>(XmlRpcController.java:28)
       org.apache.xmlrpc.client.XmlRpcClient.<init>(XmlRpcClient.java:50)

org.apache.xindice.client.xmldb.xmlrpc.DatabaseImpl.connect(DatabaseImpl.java:222)

org.apache.xindice.client.xmldb.xmlrpc.DatabaseImpl.getCollection(DatabaseImpl.java:287)

org.apache.xindice.client.xmldb.DatabaseImpl.getCollection(DatabaseImpl.java:138)
       org.xmldb.api.DatabaseManager.getCollection(Unknown Source)
       org.xmldb.api.DatabaseManager.getCollection(Unknown Source)
       addressbook.DBConnection.getCollectionInstance(DBConnection.java:56)
       addressbook.Action.getCollection(Action.java:51)
       addressbook.AddContact.add(AddContact.java:42)
       addressbook.Task.doPost(Task.java:77)
       javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
       javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
 *root cause*
java.lang.ClassNotFoundException:
org.apache.ws.commons.serialize.DOMSerializer

org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1360)

org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1206)
       java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)

org.apache.xmlrpc.serializer.NodeSerializer.<clinit>(NodeSerializer.java:27)

org.apache.xmlrpc.common.TypeFactoryImpl.<clinit>(TypeFactoryImpl.java:85)

org.apache.xmlrpc.common.XmlRpcController.<init>(XmlRpcController.java:28)
       org.apache.xmlrpc.client.XmlRpcClient.<init>(XmlRpcClient.java:50)

org.apache.xindice.client.xmldb.xmlrpc.DatabaseImpl.connect(DatabaseImpl.java:222)

org.apache.xindice.client.xmldb.xmlrpc.DatabaseImpl.getCollection(DatabaseImpl.java:287)

org.apache.xindice.client.xmldb.DatabaseImpl.getCollection(DatabaseImpl.java:138)
       org.xmldb.api.DatabaseManager.getCollection(Unknown Source)
       org.xmldb.api.DatabaseManager.getCollection(Unknown Source)
       addressbook.DBConnection.getCollectionInstance(DBConnection.java:56)
       addressbook.Action.getCollection(Action.java:51)
       addressbook.AddContact.add(AddContact.java:42)
       addressbook.Task.doPost(Task.java:77)
       javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
       javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
 *note* *The full stack trace of the root cause is available in the Apache
Tomcat/6.0.16 logs.*
------------------------------
Apache Tomcat/6.0.16
------=_Part_9282_15842929.1221321652266
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
<div dir="ltr"><div>&nbsp;</div>
<div>Hi,</div>
<div>&nbsp;</div>
<div>I am newbie with xindice.</div>
<div>&nbsp;</div>
<div>1. I rename xindice-1.2m1.war to xindice.war and move it into
webapps.&nbsp; I successfully got &quot;xindice (zeen-de-chay)&quot; screen
with localhost:8080/xindice</div>
<div>&nbsp;</div>
<div>2. I did the same to addressbook-1.2mi.war and got a good screen with
locathost:8080/addressbook.</div>
<div>&nbsp;</div>
<div>3. When I trt to add my entered data into database I get the following
message:&nbsp; Could someone please help?</div>
<div>&nbsp;</div>
<div>Thanks,</div>
<div>&nbsp;</div>
<div>Tak</div>
<div>&nbsp;</div>
<div>&nbsp;</div>
<div>&nbsp;</div>
<div>
<h1>HTTP Status 500 - </h1>
<hr noshade size="1">
<p><b>type</b> Exception report</p>
<p><b>message</b> <u></u></p>
<p><b>description</b> <u>The server encountered an internal error () that
prevented it from fulfilling this request.</u></p>
<p><b>exception</b> </p><pre>javax.servlet.ServletException: Servlet
execution threw an exception
</pre>
<p></p>
<p><b>root cause</b> </p><pre>java.lang.NoClassDefFoundError:
org/apache/ws/commons/serialize/DOMSerializer

org.apache.xmlrpc.serializer.NodeSerializer.&lt;clinit&gt;(NodeSerializer.java:27)

org.apache.xmlrpc.common.TypeFactoryImpl.&lt;clinit&gt;(TypeFactoryImpl.java:85)

org.apache.xmlrpc.common.XmlRpcController.&lt;init&gt;(XmlRpcController.java:28)

org.apache.xmlrpc.client.XmlRpcClient.&lt;init&gt;(XmlRpcClient.java:50)

org.apache.xindice.client.xmldb.xmlrpc.DatabaseImpl.connect(DatabaseImpl.java:222)

org.apache.xindice.client.xmldb.xmlrpc.DatabaseImpl.getCollection(DatabaseImpl.java:287)

org.apache.xindice.client.xmldb.DatabaseImpl.getCollection(DatabaseImpl.java:138)
       org.xmldb.api.DatabaseManager.getCollection(Unknown Source)
       org.xmldb.api.DatabaseManager.getCollection(Unknown Source)
       addressbook.DBConnection.getCollectionInstance(DBConnection.java:56)
       addressbook.Action.getCollection(Action.java:51)
       addressbook.AddContact.add(AddContact.java:42)
       addressbook.Task.doPost(Task.java:77)
       javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
       javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
</pre>
<p></p>
<p><b>root cause</b> </p><pre>java.lang.ClassNotFoundException:
org.apache.ws.commons.serialize.DOMSerializer

org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1360)

org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1206)
       java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)

org.apache.xmlrpc.serializer.NodeSerializer.&lt;clinit&gt;(NodeSerializer.java:27)

org.apache.xmlrpc.common.TypeFactoryImpl.&lt;clinit&gt;(TypeFactoryImpl.java:85)

org.apache.xmlrpc.common.XmlRpcController.&lt;init&gt;(XmlRpcController.java:28)

org.apache.xmlrpc.client.XmlRpcClient.&lt;init&gt;(XmlRpcClient.java:50)

org.apache.xindice.client.xmldb.xmlrpc.DatabaseImpl.connect(DatabaseImpl.java:222)

org.apache.xindice.client.xmldb.xmlrpc.DatabaseImpl.getCollection(DatabaseImpl.java:287)

org.apache.xindice.client.xmldb.DatabaseImpl.getCollection(DatabaseImpl.java:138)
       org.xmldb.api.DatabaseManager.getCollection(Unknown Source)
       org.xmldb.api.DatabaseManager.getCollection(Unknown Source)
       addressbook.DBConnection.getCollectionInstance(DBConnection.java:56)
       addressbook.Action.getCollection(Action.java:51)
       addressbook.AddContact.add(AddContact.java:42)
       addressbook.Task.doPost(Task.java:77)
       javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
       javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
</pre>
<p></p>
<p><b>note</b> <u>The full stack trace of the root cause is available in the
Apache Tomcat/6.0.16 logs.</u></p>
<hr noshade size="1">
<h3>Apache Tomcat/6.0.16</h3></div></div>
catalina.2008-09-13.log (application/octet-stream, 9.3 KB)
Sep 13, 2008 10:52:21 PM org.apache.tomcat.util.digester.Digester endElement
WARNING:   No rules found matching 'Server/Service/Engine/Context/Logger'.
Sep 13, 2008 10:52:21 PM org.apache.tomcat.util.digester.Digester endElement
WARNING:   No rules found matching 'Server/Service/Engine/Context'.
Sep 13, 2008 10:52:21 PM org.apache.catalina.core.AprLifecycleListener init
INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\Web\Tomcat6.0\bin;.;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\MentorGraphics 2005sp3\2005PADS\SDD_HOME\common\win32\bin;C:\MentorGraphics 2005sp3\2005PADS\SDD_HOME\common\win32\lib;C:\cad\Tcl\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\NTRU Cryptosystems\NTRU TCG Software Stack\bin\;C:\Program Files\Wave Systems Corp\Dell Preboot Manager\Access Client\v5\;C:\cad\Xilinx92i\bin\nt;c:\cad\altera\70\quartus\bin;;c:\matlab6p5p1\bin\win32;C:\Web\MySQL5.0\bin
Sep 13, 2008 10:52:21 PM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
Sep 13, 2008 10:52:21 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 565 ms
Sep 13, 2008 10:52:21 PM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Sep 13, 2008 10:52:21 PM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/6.0.16
Sep 13, 2008 10:52:21 PM org.apache.catalina.startup.HostConfig deployWAR
INFO: Deploying web application archive addressbook.war
Sep 13, 2008 10:52:22 PM org.apache.catalina.startup.HostConfig deployWAR
INFO: Deploying web application archive xindice.war
Sep 13, 2008 10:52:22 PM org.apache.xindice.server.XindiceServlet loadConfiguration
INFO: Loading configuration from context path WEB-INF/config/system.xml
Sep 13, 2008 10:52:22 PM org.apache.xindice.server.XindiceServlet init
WARNING: The database 'db' root directory has been set to C:\Web\Tomcat6.0\webapps\xindice\WEB-INF\db. Keep in mind that if a war upgrade will take place the database will be lost.
Sep 13, 2008 10:52:22 PM org.apache.xindice.core.Database setConfig
INFO: Database points to C:\Web\Tomcat6.0\webapps\xindice\WEB-INF\db
Sep 13, 2008 10:52:22 PM org.apache.xindice.server.XindiceServlet init
INFO: Database 'db' successfully opened
Sep 13, 2008 10:52:22 PM org.apache.xindice.server.XindiceServlet init
INFO: XML-RPC interface initialized.
Sep 13, 2008 10:52:23 PM org.apache.xindice.server.XindiceServlet init
INFO: Xindice server successfully started
Sep 13, 2008 10:52:23 PM org.apache.catalina.core.StandardContext addApplicationListener
INFO: The listener "listeners.ContextListener" is already configured for this context. The duplicate definition has been ignored.
Sep 13, 2008 10:52:23 PM org.apache.catalina.core.StandardContext addApplicationListener
INFO: The listener "listeners.SessionListener" is already configured for this context. The duplicate definition has been ignored.
Sep 13, 2008 10:52:23 PM org.apache.catalina.loader.WebappClassLoader validateJarFile
INFO: validateJarFile(C:\Web\Tomcat6.0\webapps\springapp\WEB-INF\lib\servlet.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/Servlet.class
Sep 13, 2008 10:52:23 PM org.apache.catalina.core.StandardContext addApplicationListener
INFO: The listener "org.springframework.web.context.ContextLoaderListener" is already configured for this context. The duplicate definition has been ignored.
Sep 13, 2008 10:52:23 PM org.springframework.web.context.ContextLoader initWebApplicationContext
INFO: Root WebApplicationContext: initialization started
Sep 13, 2008 10:52:24 PM org.springframework.context.support.AbstractApplicationContext prepareRefresh
INFO: Refreshing org.springframework.web.context.support.XmlWebApplicationContext@1bb9696: display name [Root WebApplicationContext]; startup date [Sat Sep 13 22:52:24 EDT 2008]; root of context hierarchy
Sep 13, 2008 10:52:24 PM org.springframework.beans.factory.xml.XmlBeanDefinitionReader loadBeanDefinitions
INFO: Loading XML bean definitions from ServletContext resource [/WEB-INF/applicationContext.xml]
Sep 13, 2008 10:52:24 PM org.springframework.context.support.AbstractApplicationContext obtainFreshBeanFactory
INFO: Bean factory for application context [org.springframework.web.context.support.XmlWebApplicationContext@1bb9696]: org.springframework.beans.factory.support.DefaultListableBeanFactory@8beff2
Sep 13, 2008 10:52:24 PM org.springframework.core.io.support.PropertiesLoaderSupport loadProperties
INFO: Loading properties file from class path resource [jdbc.properties]
Sep 13, 2008 10:52:24 PM org.springframework.beans.factory.support.DefaultListableBeanFactory preInstantiateSingletons
INFO: Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@8beff2: defining beans [productManager,productDao,dataSource,propertyConfigurer,transactionManager,org.springframework.aop.config.internalAutoProxyCreator,org.springframework.aop.support.DefaultBeanFactoryPointcutAdvisor#0,txAdvice]; root of factory hierarchy
Sep 13, 2008 10:52:24 PM org.springframework.web.context.ContextLoader initWebApplicationContext
INFO: Root WebApplicationContext: initialization completed in 953 ms
Sep 13, 2008 10:52:24 PM org.springframework.web.servlet.FrameworkServlet initServletBean
INFO: FrameworkServlet 'springapp': initialization started
Sep 13, 2008 10:52:24 PM org.springframework.context.support.AbstractApplicationContext prepareRefresh
INFO: Refreshing org.springframework.web.context.support.XmlWebApplicationContext@1cb2795: display name [WebApplicationContext for namespace 'springapp-servlet']; startup date [Sat Sep 13 22:52:24 EDT 2008]; parent: org.springframework.web.context.support.XmlWebApplicationContext@1bb9696
Sep 13, 2008 10:52:24 PM org.springframework.beans.factory.xml.XmlBeanDefinitionReader loadBeanDefinitions
INFO: Loading XML bean definitions from ServletContext resource [/WEB-INF/springapp-servlet.xml]
Sep 13, 2008 10:52:25 PM org.springframework.context.support.AbstractApplicationContext obtainFreshBeanFactory
INFO: Bean factory for application context [org.springframework.web.context.support.XmlWebApplicationContext@1cb2795]: org.springframework.beans.factory.support.DefaultListableBeanFactory@3da850
Sep 13, 2008 10:52:25 PM org.springframework.beans.factory.support.DefaultListableBeanFactory preInstantiateSingletons
INFO: Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@3da850: defining beans [messageSource,/hello.htm,/priceincrease.htm,/hotsraw.htm,viewResolver]; parent: org.springframework.beans.factory.support.DefaultListableBeanFactory@8beff2
Sep 13, 2008 10:52:25 PM org.springframework.web.servlet.FrameworkServlet initServletBean
INFO: FrameworkServlet 'springapp': initialization completed in 172 ms
Sep 13, 2008 10:52:25 PM org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on http-8080
Sep 13, 2008 10:52:25 PM org.apache.jk.common.ChannelSocket init
INFO: JK: ajp13 listening on /0.0.0.0:8009
Sep 13, 2008 10:52:25 PM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/16  config=null
Sep 13, 2008 10:52:25 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 3419 ms
Sep 13, 2008 10:52:34 PM org.apache.coyote.http11.Http11Protocol pause
INFO: Pausing Coyote HTTP/1.1 on http-8080
Sep 13, 2008 10:52:35 PM org.apache.catalina.core.StandardService stop
INFO: Stopping service Catalina
Sep 13, 2008 10:52:35 PM org.springframework.context.support.AbstractApplicationContext doClose
INFO: Closing org.springframework.web.context.support.XmlWebApplicationContext@1cb2795: display name [WebApplicationContext for namespace 'springapp-servlet']; startup date [Sat Sep 13 22:52:24 EDT 2008]; parent: org.springframework.web.context.support.XmlWebApplicationContext@1bb9696
Sep 13, 2008 10:52:35 PM org.springframework.beans.factory.support.DefaultSingletonBeanRegistry destroySingletons
INFO: Destroying singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@3da850: defining beans [messageSource,/hello.htm,/priceincrease.htm,/hotsraw.htm,viewResolver]; parent: org.springframework.beans.factory.support.DefaultListableBeanFactory@8beff2
Sep 13, 2008 10:52:35 PM org.springframework.context.support.AbstractApplicationContext doClose
INFO: Closing org.springframework.web.context.support.XmlWebApplicationContext@1bb9696: display name [Root WebApplicationContext]; startup date [Sat Sep 13 22:52:24 EDT 2008]; root of context hierarchy
Sep 13, 2008 10:52:35 PM org.springframework.beans.factory.support.DefaultSingletonBeanRegistry destroySingletons
INFO: Destroying singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@8beff2: defining beans [productManager,productDao,dataSource,propertyConfigurer,transactionManager,org.springframework.aop.config.internalAutoProxyCreator,org.springframework.aop.support.DefaultBeanFactoryPointcutAdvisor#0,txAdvice]; root of factory hierarchy
Sep 13, 2008 10:52:35 PM org.apache.xindice.server.XindiceServlet destroy
INFO: Database 'db' successfully closed
Sep 13, 2008 10:52:36 PM org.apache.coyote.http11.Http11Protocol destroy
INFO: Stopping Coyote HTTP/1.1 on http-8080
localhost.2008-09-13.log (application/octet-stream, 981 B)
Sep 13, 2008 10:52:23 PM org.apache.catalina.core.ApplicationContext log
INFO: ContextListener: contextInitialized()
Sep 13, 2008 10:52:23 PM org.apache.catalina.core.ApplicationContext log
INFO: SessionListener: contextInitialized()
Sep 13, 2008 10:52:23 PM org.apache.catalina.core.ApplicationContext log
INFO: Initializing Spring root WebApplicationContext
Sep 13, 2008 10:52:24 PM org.apache.catalina.core.ApplicationContext log
INFO: Initializing Spring FrameworkServlet 'springapp'
Sep 13, 2008 10:52:35 PM org.apache.catalina.core.ApplicationContext log
INFO: Destroying Spring FrameworkServlet 'springapp'
Sep 13, 2008 10:52:35 PM org.apache.catalina.core.ApplicationContext log
INFO: Closing Spring root WebApplicationContext
Sep 13, 2008 10:52:35 PM org.apache.catalina.core.ApplicationContext log
INFO: SessionListener: contextDestroyed()
Sep 13, 2008 10:52:35 PM org.apache.catalina.core.ApplicationContext log
INFO: ContextListener: contextDestroyed()